text
stringlengths 2
1.05M
|
|---|
module.exports = { prefix: 'fas', iconName: 'signal', icon: [640, 512, [], "f012", "M36 384h56c6.6 0 12 5.4 12 12v104c0 6.6-5.4 12-12 12H36c-6.6 0-12-5.4-12-12V396c0-6.6 5.4-12 12-12zm116-36v152c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12V348c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12zm128-80v232c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12V268c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12zm128-112v344c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12V156c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12zM536 12v488c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12V12c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12z"] };
|
function randomNumber(min, max) {
return Math.random() * (max - min) + min;
}
function tailslap(id, by, x, y, angle, spec, radius) {
this.class = 'Object Ability Non Movable'
this.isdead = false;
this.id = id;
this.radius = radius
this.angleupd = true;
this.isbiome = false;
this.specType2 = 0
this.is1v1 = false
this.specType = spec;
this.secondaryType = 74
this.type = 14; //object type (animal. hill bush)
this.biome = 0;
this.isloaded = false;
this.sendhp = false
this.spawned = true
this.spawnedby = by
this.spawnedby2 = by
this.angle = angle
this.movable = false
this.speed = 0
this.killerid = 0
this.isinvisible = false
this.x = x
this.y = y
this.isinquadtree = false
this.hurt = false
this.spawnedtime = Date.now();
setTimeout(() => {
this.isdead = true
}, 600);
this.veloX = 0
this.veloY = 0
};
tailslap.prototype = {
};
tailslap.prototype.customdatawriteoncreate = function (buf, off) {
}
tailslap.prototype.customdatawriteonupdate = function (buf, off) {
}
module.exports = tailslap;
|
'use strict';
const Code = require('@hapi/code');
const Lab = require('@hapi/lab');
const Joi = require('../..');
const Helper = require('../helper');
const internals = {};
const { describe, it } = exports.lab = Lab.script();
const { expect } = Code;
describe('alternatives', () => {
it('can be called on its own', () => {
const alternatives = Joi.alternatives;
expect(() => alternatives()).to.throw('Must be invoked on a Joi instance.');
});
it('fails when no alternatives are provided', async () => {
const err = await expect(Joi.alternatives().validate('a')).to.reject();
expect(err.message).to.equal('"value" does not match any of the allowed types');
expect(err.details).to.equal([
{
context: {
label: 'value',
value: 'a'
},
message: '"value" does not match any of the allowed types',
path: [],
type: 'alternatives.base'
}
]);
});
it('allows undefined when no alternatives are provided', async () => {
await Joi.alternatives().validate(undefined);
});
it('applies modifiers when higher priority converts', async () => {
const schema = Joi.object({
a: [
Joi.number(),
Joi.string()
]
});
const value = await schema.validate({ a: '5' });
expect(value.a).to.equal(5);
});
it('applies modifiers when lower priority valid is a match', async () => {
const schema = Joi.object({
a: [
Joi.number(),
Joi.valid('5')
]
});
const value = await schema.validate({ a: '5' });
expect(value.a).to.equal(5);
});
it('does not apply modifier if alternative fails', async () => {
const schema = Joi.object({
a: [
Joi.object({ c: Joi.any(), d: Joi.number() }).rename('b', 'c'),
{ b: Joi.any(), d: Joi.string() }
]
});
const input = { a: { b: 'any', d: 'string' } };
const value = await schema.validate(input);
expect(value.a.b).to.equal('any');
});
describe('describe()', () => {
it('describes when', () => {
const schema = Joi.object({
a: Joi.alternatives()
.when('b', { is: 5, then: 'x' })
.when('b', { is: 6, otherwise: 'y' })
.try('z'),
b: Joi.any()
});
expect(schema.describe()).to.equal({
type: 'object',
keys: {
b: {
type: 'any'
},
a: {
type: 'alternatives',
matches: [
{
ref: { path: ['b'] },
is: {
type: 'number',
flags: {
only: true,
presence: 'required'
},
allow: [5]
},
then: {
type: 'string',
flags: {
only: true
},
allow: ['x']
}
},
{
ref: { path: ['b'] },
is: {
type: 'number',
flags: {
only: true,
presence: 'required'
},
allow: [6]
},
otherwise: {
type: 'string',
flags: {
only: true
},
allow: ['y']
}
},
{
schema: {
type: 'string',
flags: {
only: true
},
allow: ['z']
}
}
]
}
}
});
});
it('describes when (only then)', () => {
const schema = Joi.object({
a: Joi.alternatives()
.when('b', { is: 5, then: 'x' })
.try('z'),
b: Joi.any()
});
expect(schema.describe()).to.equal({
type: 'object',
keys: {
b: {
type: 'any'
},
a: {
type: 'alternatives',
matches: [
{
ref: { path: ['b'] },
is: {
type: 'number',
flags: {
only: true,
presence: 'required'
},
allow: [5]
},
then: {
type: 'string',
flags: {
only: true
},
allow: ['x']
}
},
{
schema: {
type: 'string',
flags: {
only: true
},
allow: ['z']
}
}
]
}
}
});
});
it('describes when (only otherwise)', () => {
const schema = Joi.object({
a: Joi.alternatives()
.when('b', { is: 5, otherwise: 'y' })
.try('z'),
b: Joi.any()
});
expect(schema.describe()).to.equal({
type: 'object',
keys: {
b: {
type: 'any'
},
a: {
type: 'alternatives',
matches: [
{
ref: { path: ['b'] },
is: {
type: 'number',
flags: {
only: true,
presence: 'required'
},
allow: [5]
},
otherwise: {
type: 'string',
flags: {
only: true
},
allow: ['y']
}
},
{
schema: {
type: 'string',
flags: {
only: true
},
allow: ['z']
}
}
]
}
}
});
});
it('describes when (with schema)', () => {
const schema = Joi.alternatives()
.when(Joi.string().label('foo'), {
then: Joi.string().required().min(1),
otherwise: Joi.boolean()
});
const outcome = {
type: 'alternatives',
matches: [{
peek: {
type: 'string',
flags: {
label: 'foo'
}
},
then: {
type: 'string',
flags: { presence: 'required' },
rules: [{ args: { limit: 1 }, name: 'min' }]
},
otherwise: {
type: 'boolean'
}
}]
};
expect(schema.describe()).to.equal(outcome);
});
it('describes inherited fields (from any)', () => {
const schema = Joi.alternatives()
.try('a')
.description('d')
.example('a')
.meta('b')
.meta('c')
.note('f')
.tag('g');
const outcome = {
type: 'alternatives',
notes: ['f'],
tags: ['g'],
metas: ['b', 'c'],
examples: ['a'],
flags: {
description: 'd'
},
matches: [{
schema: {
type: 'string',
flags: {
only: true
},
allow: ['a']
}
}]
};
expect(schema.describe()).to.equal(outcome);
});
});
describe('error()', () => {
it('overrides single try error', async () => {
const override = new Error('failed!');
const schema = Joi.object({
x: Joi.alternatives([
Joi.number(),
Joi.string().error(override)
])
});
const err = await expect(schema.validate({ x: [] })).to.reject('"x" does not match any of the allowed types');
expect(err.details[0].context.details).to.equal([
{
message: '"x" must be a number',
path: ['x'],
type: 'number.base',
context: { value: [], label: 'x', key: 'x' }
},
{
message: 'Error: failed!',
type: 'override',
context: {
error: override
}
}
]);
});
it('overrides top level error', async () => {
const schema = Joi.object({
x: Joi.alternatives([
Joi.number(),
Joi.string()
])
.error(new Error('failed!'))
});
await expect(schema.validate({ x: [] })).to.reject('failed!');
});
});
describe('label()', () => {
it('passes the label to the underlying schema', () => {
const schema = Joi.object().keys({
a: Joi.boolean(),
b: Joi.when('a', {
is: true,
then: Joi.string().empty('').allow(null)
})
.label('Label b'),
c: Joi.when('a', {
is: true,
otherwise: Joi.string().empty('').allow(null)
})
.label('Label c'),
d: Joi.alt()
.try([Joi.string()])
.label('Label d')
})
.or('b', 'c', 'd');
Helper.validate(schema, [
[{ a: true, b: 1 }, false, null, {
message: '"Label b" must be a string',
details: [{
message: '"Label b" must be a string',
path: ['b'],
type: 'string.base',
context: { value: 1, key: 'b', label: 'Label b' }
}]
}],
[{ a: false, b: 1, d: 1 }, false, null, {
message: '"Label d" must be a string',
details: [{
message: '"Label d" must be a string',
path: ['d'],
type: 'string.base',
context: { value: 1, key: 'd', label: 'Label d' }
}]
}],
[{ a: false, b: 1, c: 1 }, false, null, {
message: '"Label c" must be a string',
details: [{
message: '"Label c" must be a string',
path: ['c'],
type: 'string.base',
context: { value: 1, key: 'c', label: 'Label c' }
}]
}]
]);
});
it('does not modify the original schema', () => {
const schema = Joi.when('a', {
is: true,
then: Joi.string().empty('').allow(null)
});
const labeled = schema.label('Label b');
expect(schema.describe()).to.equal({
type: 'alternatives',
matches: [{
is: {
type: 'boolean',
flags: { only: true, presence: 'required' },
allow: [true]
},
ref: { path: ['a'] },
then: {
type: 'string',
flags: {
empty: {
flags: { only: true },
type: 'string',
allow: ['']
}
},
allow: [null]
},
otherwise: { type: 'any' }
}]
});
expect(labeled.describe()).to.equal({
flags: {
label: 'Label b'
},
type: 'alternatives',
matches: [{
is: {
type: 'boolean',
flags: { only: true, presence: 'required' },
allow: [true]
},
ref: { path: ['a'] },
then: {
type: 'string',
flags: {
label: 'Label b',
empty: {
flags: { only: true },
type: 'string',
allow: ['']
}
},
allow: [null]
},
otherwise: {
type: 'any',
flags: { label: 'Label b' }
}
}]
});
});
it('applies label to then', () => {
const schema = Joi.object({
a: Joi.boolean(),
b: Joi.alternatives()
.when('a', { is: true, then: Joi.string() })
.label('x')
});
expect(schema.describe()).to.equal({
type: 'object',
keys: {
a: {
type: 'boolean'
},
b: {
type: 'alternatives',
flags: {
label: 'x'
},
matches: [
{
is: {
type: 'boolean',
allow: [true],
flags: {
only: true,
presence: 'required'
}
},
ref: {
path: ['a']
},
then: {
type: 'string',
flags: {
label: 'x'
}
}
}
]
}
}
});
});
it('applies label to otherwise', () => {
const schema = Joi.object({
a: Joi.boolean(),
b: Joi.alternatives()
.when('a', { is: true, otherwise: Joi.string() })
.label('x')
});
expect(schema.describe()).to.equal({
type: 'object',
keys: {
a: {
type: 'boolean'
},
b: {
type: 'alternatives',
flags: {
label: 'x'
},
matches: [
{
is: {
type: 'boolean',
allow: [true],
flags: {
only: true,
presence: 'required'
}
},
ref: {
path: ['a']
},
otherwise: {
type: 'string',
flags: {
label: 'x'
}
}
}
]
}
}
});
});
});
describe('tailor()', () => {
it('customizes schema', () => {
const alternatives = {
v: (s) => s.min(10)
};
const before = Joi.object({
x: Joi.alternatives([
Joi.number().alter(alternatives),
Joi.string().alter(alternatives)
])
});
const bd = before.describe();
const first = before.tailor('v');
const after = Joi.object({
x: Joi.alternatives([
Joi.number().min(10).alter(alternatives),
Joi.string().min(10).alter(alternatives)
])
});
expect(first).to.equal(after);
expect(first.describe()).to.equal(after.describe());
expect(before.describe()).to.equal(bd);
});
it('customizes schema with outter rule', () => {
const alt1 = {
v: (s) => s.min(10)
};
const alt2 = {
v: (s) => s.try(Joi.valid('x'))
};
const before = Joi.object({
x: Joi.alternatives([
Joi.number().alter(alt1),
Joi.string().alter(alt1)
])
.alter(alt2)
});
const bd = before.describe();
const first = before.tailor('v');
const after = Joi.object({
x: Joi.alternatives([
Joi.number().min(10).alter(alt1),
Joi.string().min(10).alter(alt1),
Joi.valid('x')
])
.alter(alt2)
});
expect(first).to.equal(after);
expect(first.describe()).to.equal(after.describe());
expect(before.describe()).to.equal(bd);
});
});
describe('try()', () => {
it('throws when missing alternatives', () => {
expect(() => {
Joi.alternatives().try();
}).to.throw('Missing alternative schemas');
});
it('throws on unreachable condition', () => {
expect(() => {
Joi.object({
a: Joi.alternatives().when('b', { is: 6, then: 7, otherwise: 0 }).try(5),
b: Joi.any()
});
}).to.throw('Unreachable condition');
});
it('validates deep alternatives', () => {
const schema = Joi.alternatives().try([
Joi.boolean(),
Joi.object({
p: Joi.alternatives().try([
Joi.boolean(),
Joi.string().valid('foo', 'bar')
])
})
]);
Helper.validate(schema, [
[{ p: 1 }, false, null, {
message: '"value" does not match any of the allowed types',
details: [
{
message: '"value" does not match any of the allowed types',
path: [],
type: 'alternatives.match',
context: {
label: 'value',
message: '"value" must be a boolean. "p" does not match any of the allowed types',
value: { p: 1 },
details: [
{
message: '"value" must be a boolean',
path: [],
type: 'boolean.base',
context: { label: 'value', value: { p: 1 } }
},
{
message: '"p" does not match any of the allowed types',
path: ['p'],
type: 'alternatives.match',
context: {
key: 'p',
label: 'p',
message: '"p" must be a boolean. "p" must be one of [foo, bar]',
value: 1,
details: [
{
message: '"p" must be a boolean',
path: ['p'],
type: 'boolean.base',
context: { label: 'p', key: 'p', value: 1 }
},
{
message: '"p" must be one of [foo, bar]',
path: ['p'],
type: 'any.only',
context: { value: 1, valids: ['foo', 'bar'], label: 'p', key: 'p' }
}
]
}
}
]
}
}
]
}],
[{ p: '...' }, false, null, {
message: '"value" does not match any of the allowed types',
details: [
{
message: '"value" does not match any of the allowed types',
path: [],
type: 'alternatives.match',
context: {
label: 'value',
message: '"value" must be a boolean. "p" does not match any of the allowed types',
value: { p: '...' },
details: [
{
message: '"value" must be a boolean',
path: [],
type: 'boolean.base',
context: { label: 'value', value: { p: '...' } }
},
{
message: '"p" does not match any of the allowed types',
path: ['p'],
type: 'alternatives.match',
context: {
key: 'p',
label: 'p',
message: '"p" must be a boolean. "p" must be one of [foo, bar]',
value: '...',
details: [
{
message: '"p" must be a boolean',
path: ['p'],
type: 'boolean.base',
context: { label: 'p', key: 'p', value: '...' }
},
{
message: '"p" must be one of [foo, bar]',
path: ['p'],
type: 'any.only',
context: { value: '...', valids: ['foo', 'bar'], label: 'p', key: 'p' }
}
]
}
}
]
}
}
]
}],
[1, false, null, {
message: '"value" must be one of [boolean, object]',
details: [
{
message: '"value" must be one of [boolean, object]',
path: [],
type: 'alternatives.types',
context: { types: ['boolean', 'object'], label: 'value', value: 1 }
}
]
}]
]);
});
it('validates deep alternatives (with wrapArrays false)', () => {
const schema = Joi.alternatives().try([
Joi.boolean(),
Joi.object({
p: Joi.alternatives().try([
Joi.boolean(),
Joi.string().valid('foo', 'bar')
])
})
]).prefs({ errors: { wrapArrays: false } });
Helper.validate(schema, [
[{ p: 1 }, false, null, {
message: '"value" does not match any of the allowed types',
details: [
{
message: '"value" does not match any of the allowed types',
path: [],
type: 'alternatives.match',
context: {
label: 'value',
message: '"value" must be a boolean. "p" does not match any of the allowed types',
value: { p: 1 },
details: [
{
message: '"value" must be a boolean',
path: [],
type: 'boolean.base',
context: { label: 'value', value: { p: 1 } }
},
{
message: '"p" does not match any of the allowed types',
path: ['p'],
type: 'alternatives.match',
context: {
key: 'p',
label: 'p',
message: '"p" must be a boolean. "p" must be one of foo, bar',
value: 1,
details: [
{
message: '"p" must be a boolean',
path: ['p'],
type: 'boolean.base',
context: { label: 'p', key: 'p', value: 1 }
},
{
message: '"p" must be one of foo, bar',
path: ['p'],
type: 'any.only',
context: { value: 1, valids: ['foo', 'bar'], label: 'p', key: 'p' }
}
]
}
}
]
}
}
]
}],
[{ p: '...' }, false, null, {
message: '"value" does not match any of the allowed types',
details: [
{
message: '"value" does not match any of the allowed types',
path: [],
type: 'alternatives.match',
context: {
label: 'value',
message: '"value" must be a boolean. "p" does not match any of the allowed types',
value: { p: '...' },
details: [
{
message: '"value" must be a boolean',
path: [],
type: 'boolean.base',
context: { label: 'value', value: { p: '...' } }
},
{
message: '"p" does not match any of the allowed types',
path: ['p'],
type: 'alternatives.match',
context: {
key: 'p',
label: 'p',
message: '"p" must be a boolean. "p" must be one of foo, bar',
value: '...',
details: [
{
message: '"p" must be a boolean',
path: ['p'],
type: 'boolean.base',
context: { label: 'p', key: 'p', value: '...' }
},
{
message: '"p" must be one of foo, bar',
path: ['p'],
type: 'any.only',
context: { value: '...', valids: ['foo', 'bar'], label: 'p', key: 'p' }
}
]
}
}
]
}
}
]
}],
[1, false, null, {
message: '"value" must be one of boolean, object',
details: [
{
message: '"value" must be one of boolean, object',
path: [],
type: 'alternatives.types',
context: { types: ['boolean', 'object'], label: 'value', value: 1 }
}
]
}]
]);
});
it('validates deep alternatives (with custom error)', () => {
const schema = Joi.alternatives().try([Joi.boolean(), Joi.object({
p: Joi.number()
})]).error(new Error('oops'));
expect(schema.validate({ p: 'a' }).error).to.be.an.error('oops');
});
});
describe('when()', () => {
it('throws on invalid ref (not string)', () => {
expect(() => Joi.alternatives().when(5, { is: 6, then: Joi.number() })).to.throw('Invalid condition: 5');
});
it('throws on unreachable condition', () => {
expect(() => {
Joi.object({
a: Joi.alternatives().when('b', { is: 6, then: 7, otherwise: 0 }).when('b', { is: 6, then: 7 }),
b: Joi.any()
});
}).to.throw('Unreachable condition');
});
it('tests only otherwise', () => {
const schema = Joi.object({
a: Joi.number().required(),
b: Joi.alternatives().when('a', { is: 0, otherwise: Joi.valid(1) })
});
Helper.validate(schema, [
[{ a: 1, b: 1 }, true],
[{ a: 0, b: 2 }, false, null, {
message: '"b" does not match any of the allowed types',
details: [{
message: '"b" does not match any of the allowed types',
path: ['b'],
type: 'alternatives.base',
context: { value: 2, label: 'b', key: 'b' }
}]
}]
]);
});
describe('with ref', () => {
it('validates conditional alternatives', () => {
const schema = {
a: Joi.alternatives()
.when('b', { is: 5, then: 'x', otherwise: 'y' }),
b: Joi.any()
};
Helper.validate(schema, [
[{ a: 'x', b: 5 }, true],
[{ a: 'x', b: 6 }, false, null, {
message: '"a" must be one of [y]',
details: [{
message: '"a" must be one of [y]',
path: ['a'],
type: 'any.only',
context: { value: 'x', valids: ['y'], label: 'a', key: 'a' }
}]
}],
[{ a: 'y', b: 5 }, false, null, {
message: '"a" must be one of [x]',
details: [{
message: '"a" must be one of [x]',
path: ['a'],
type: 'any.only',
context: { value: 'y', valids: ['x'], label: 'a', key: 'a' }
}]
}],
[{ a: 'y', b: 6 }, true],
[{ a: 'z', b: 5 }, false, null, {
message: '"a" must be one of [x]',
details: [{
message: '"a" must be one of [x]',
path: ['a'],
type: 'any.only',
context: { value: 'z', valids: ['x'], label: 'a', key: 'a' }
}]
}],
[{ a: 'z', b: 6 }, false, null, {
message: '"a" must be one of [y]',
details: [{
message: '"a" must be one of [y]',
path: ['a'],
type: 'any.only',
context: { value: 'z', valids: ['y'], label: 'a', key: 'a' }
}]
}]
]);
});
it('validates conditional alternatives (self reference, explicit)', () => {
const schema = Joi.object({
a: Joi.boolean().required()
})
.when(Joi.ref('a', { ancestor: 0 }), {
is: true,
then: {
b: Joi.string().required()
},
otherwise: {
c: Joi.string().required()
}
});
Helper.validate(schema, [
[{ a: true, b: 'x' }, true],
[{ a: true, b: 5 }, false, null, {
message: '"b" must be a string',
details: [{
message: '"b" must be a string',
path: ['b'],
type: 'string.base',
context: { value: 5, key: 'b', label: 'b' }
}]
}],
[{ a: true }, false, null, {
message: '"b" is required',
details: [{
message: '"b" is required',
path: ['b'],
type: 'any.required',
context: { key: 'b', label: 'b' }
}]
}],
[{ a: true, c: 5 }, false, null, {
message: '"b" is required',
details: [{
message: '"b" is required',
path: ['b'],
type: 'any.required',
context: { key: 'b', label: 'b' }
}]
}],
[{ a: true, c: 'x' }, false, null, {
message: '"b" is required',
details: [{
message: '"b" is required',
path: ['b'],
type: 'any.required',
context: { key: 'b', label: 'b' }
}]
}],
[{ a: false, b: 'x' }, false, null, {
message: '"c" is required',
details: [{
message: '"c" is required',
path: ['c'],
type: 'any.required',
context: { key: 'c', label: 'c' }
}]
}],
[{ a: false, b: 5 }, false, null, {
message: '"c" is required',
details: [{
message: '"c" is required',
path: ['c'],
type: 'any.required',
context: { key: 'c', label: 'c' }
}]
}],
[{ a: false }, false, null, {
message: '"c" is required',
details: [{
message: '"c" is required',
path: ['c'],
type: 'any.required',
context: { key: 'c', label: 'c' }
}]
}],
[{ a: false, c: 5 }, false, null, {
message: '"c" must be a string',
details: [{
message: '"c" must be a string',
path: ['c'],
type: 'string.base',
context: { value: 5, key: 'c', label: 'c' }
}]
}],
[{ a: false, c: 'x' }, true]
]);
});
it('validates conditional alternatives (self reference, implicit)', () => {
const schema = Joi.object({
a: Joi.boolean().required()
})
.when('.a', {
is: true,
then: {
b: Joi.string().required()
},
otherwise: {
c: Joi.string().required()
}
});
Helper.validate(schema, [
[{ a: true, b: 'x' }, true],
[{ a: true, b: 5 }, false, null, {
message: '"b" must be a string',
details: [{
message: '"b" must be a string',
path: ['b'],
type: 'string.base',
context: { value: 5, key: 'b', label: 'b' }
}]
}],
[{ a: true }, false, null, {
message: '"b" is required',
details: [{
message: '"b" is required',
path: ['b'],
type: 'any.required',
context: { key: 'b', label: 'b' }
}]
}],
[{ a: true, c: 5 }, false, null, {
message: '"b" is required',
details: [{
message: '"b" is required',
path: ['b'],
type: 'any.required',
context: { key: 'b', label: 'b' }
}]
}],
[{ a: true, c: 'x' }, false, null, {
message: '"b" is required',
details: [{
message: '"b" is required',
path: ['b'],
type: 'any.required',
context: { key: 'b', label: 'b' }
}]
}],
[{ a: false, b: 'x' }, false, null, {
message: '"c" is required',
details: [{
message: '"c" is required',
path: ['c'],
type: 'any.required',
context: { key: 'c', label: 'c' }
}]
}],
[{ a: false, b: 5 }, false, null, {
message: '"c" is required',
details: [{
message: '"c" is required',
path: ['c'],
type: 'any.required',
context: { key: 'c', label: 'c' }
}]
}],
[{ a: false }, false, null, {
message: '"c" is required',
details: [{
message: '"c" is required',
path: ['c'],
type: 'any.required',
context: { key: 'c', label: 'c' }
}]
}],
[{ a: false, c: 5 }, false, null, {
message: '"c" must be a string',
details: [{
message: '"c" must be a string',
path: ['c'],
type: 'string.base',
context: { value: 5, key: 'c', label: 'c' }
}]
}],
[{ a: false, c: 'x' }, true]
]);
});
it('validates conditional alternatives (empty key)', () => {
const schema = {
a: Joi.alternatives()
.when('', { is: 5, then: 'x', otherwise: 'y' }),
'': Joi.any()
};
Helper.validate(schema, [
[{ a: 'x', '': 5 }, true],
[{ a: 'x', '': 6 }, false, null, {
message: '"a" must be one of [y]',
details: [{
message: '"a" must be one of [y]',
path: ['a'],
type: 'any.only',
context: { value: 'x', valids: ['y'], label: 'a', key: 'a' }
}]
}],
[{ a: 'y', '': 5 }, false, null, {
message: '"a" must be one of [x]',
details: [{
message: '"a" must be one of [x]',
path: ['a'],
type: 'any.only',
context: { value: 'y', valids: ['x'], label: 'a', key: 'a' }
}]
}],
[{ a: 'y', '': 6 }, true],
[{ a: 'z', '': 5 }, false, null, {
message: '"a" must be one of [x]',
details: [{
message: '"a" must be one of [x]',
path: ['a'],
type: 'any.only',
context: { value: 'z', valids: ['x'], label: 'a', key: 'a' }
}]
}],
[{ a: 'z', '': 6 }, false, null, {
message: '"a" must be one of [y]',
details: [{
message: '"a" must be one of [y]',
path: ['a'],
type: 'any.only',
context: { value: 'z', valids: ['y'], label: 'a', key: 'a' }
}]
}]
]);
});
it('validates only then', () => {
const schema = {
a: Joi.alternatives()
.when(Joi.ref('b'), { is: 5, then: 'x' })
.try('z'),
b: Joi.any()
};
Helper.validate(schema, [
[{ a: 'x', b: 5 }, true],
[{ a: 'x', b: 6 }, false, null, {
message: '"a" must be one of [z]',
details: [{
message: '"a" must be one of [z]',
path: ['a'],
type: 'any.only',
context: { value: 'x', valids: ['z'], label: 'a', key: 'a' }
}]
}],
[{ a: 'y', b: 5 }, false, null, {
message: '"a" must be one of [x]',
details: [{
message: '"a" must be one of [x]',
path: ['a'],
type: 'any.only',
context: { value: 'y', valids: ['x'], label: 'a', key: 'a' }
}]
}],
[{ a: 'y', b: 6 }, false, null, {
message: '"a" must be one of [z]',
details: [{
message: '"a" must be one of [z]',
path: ['a'],
type: 'any.only',
context: { value: 'y', valids: ['z'], label: 'a', key: 'a' }
}]
}],
[{ a: 'z', b: 5 }, false, null, {
message: '"a" must be one of [x]',
details: [{
message: '"a" must be one of [x]',
path: ['a'],
type: 'any.only',
context: { value: 'z', valids: ['x'], label: 'a', key: 'a' }
}]
}],
[{ a: 'z', b: 6 }, true]
]);
});
it('validates only otherwise', () => {
const schema = {
a: Joi.alternatives()
.when('b', { is: 5, otherwise: 'y' })
.try('z'),
b: Joi.any()
};
Helper.validate(schema, [
[{ a: 'x', b: 5 }, false, null, {
message: '"a" must be one of [z]',
details: [{
message: '"a" must be one of [z]',
path: ['a'],
type: 'any.only',
context: { value: 'x', valids: ['z'], label: 'a', key: 'a' }
}]
}],
[{ a: 'x', b: 6 }, false, null, {
message: '"a" must be one of [y]',
details: [{
message: '"a" must be one of [y]',
path: ['a'],
type: 'any.only',
context: { value: 'x', valids: ['y'], label: 'a', key: 'a' }
}]
}],
[{ a: 'y', b: 5 }, false, null, {
message: '"a" must be one of [z]',
details: [{
message: '"a" must be one of [z]',
path: ['a'],
type: 'any.only',
context: { value: 'y', valids: ['z'], label: 'a', key: 'a' }
}]
}],
[{ a: 'y', b: 6 }, true],
[{ a: 'z', b: 5 }, true],
[{ a: 'z', b: 6 }, false, null, {
message: '"a" must be one of [y]',
details: [{
message: '"a" must be one of [y]',
path: ['a'],
type: 'any.only',
context: { value: 'z', valids: ['y'], label: 'a', key: 'a' }
}]
}]
]);
});
it('validates "then" when a preceding "when" has only "otherwise"', () => {
const schema = Joi.object({
a: Joi.number(),
b: Joi.number(),
c: Joi.alternatives()
.when('a', { is: 1, otherwise: Joi.number().min(1) })
.when('b', { is: 1, then: Joi.number().min(1), otherwise: Joi.number() })
});
Helper.validate(schema, [
[{ a: 1, b: 1, c: 0 }, false, null, {
message: '"c" must be larger than or equal to 1',
details: [{
message: '"c" must be larger than or equal to 1',
path: ['c'],
type: 'number.min',
context: { limit: 1, value: 0, label: 'c', key: 'c' }
}]
}],
[{ a: 1, b: 1, c: 1 }, true],
[{ a: 0, b: 1, c: 1 }, true],
[{ a: 1, b: 0, c: 0 }, true]
]);
});
it('validates when is is null', () => {
const schema = {
a: Joi.alternatives().when('b', { is: null, then: 'x', otherwise: Joi.number() }),
b: Joi.any()
};
Helper.validate(schema, [
[{ a: 1 }, true],
[{ a: 'y' }, false, null, {
message: '"a" must be a number',
details: [{
message: '"a" must be a number',
path: ['a'],
type: 'number.base',
context: { label: 'a', key: 'a', value: 'y' }
}]
}],
[{ a: 'x', b: null }, true],
[{ a: 'y', b: null }, false, null, {
message: '"a" must be one of [x]',
details: [{
message: '"a" must be one of [x]',
path: ['a'],
type: 'any.only',
context: { value: 'y', valids: ['x'], label: 'a', key: 'a' }
}]
}],
[{ a: 1, b: null }, false, null, {
message: '"a" must be one of [x]',
details: [{
message: '"a" must be one of [x]',
path: ['a'],
type: 'any.only',
context: { value: 1, valids: ['x'], label: 'a', key: 'a' }
}]
}]
]);
});
it('validates when is has ref', () => {
const schema = {
a: Joi.alternatives().when('b', { is: Joi.ref('c'), then: 'x' }),
b: Joi.any(),
c: Joi.number()
};
Helper.validate(schema, [
[{ a: 'x', b: 5, c: '5' }, true],
[{ a: 'x', b: 5, c: '1' }, false, null, {
message: '"a" does not match any of the allowed types',
details: [{
message: '"a" does not match any of the allowed types',
path: ['a'],
type: 'alternatives.base',
context: { label: 'a', key: 'a', value: 'x' }
}]
}],
[{ a: 'x', b: '5', c: '5' }, false, null, {
message: '"a" does not match any of the allowed types',
details: [{
message: '"a" does not match any of the allowed types',
path: ['a'],
type: 'alternatives.base',
context: { label: 'a', key: 'a', value: 'x' }
}]
}],
[{ a: 'y', b: 5, c: 5 }, false, null, {
message: '"a" must be one of [x]',
details: [{
message: '"a" must be one of [x]',
path: ['a'],
type: 'any.only',
context: { value: 'y', valids: ['x'], label: 'a', key: 'a' }
}]
}],
[{ a: 'y' }, false, null, {
message: '"a" must be one of [x]',
details: [{
message: '"a" must be one of [x]',
path: ['a'],
type: 'any.only',
context: { value: 'y', valids: ['x'], label: 'a', key: 'a' }
}]
}]
]);
});
it('validates when is has ref pointing to a complex type', () => {
const date = new Date(42);
const schema = {
a: Joi.alternatives().when('b', { is: Joi.ref('c'), then: 'x' }),
b: Joi.date(),
c: Joi.date()
};
Helper.validate(schema, [
[{ a: 'x', b: date, c: date }, true],
[{ a: 'x', b: date, c: Date.now() }, false, null, {
message: '"a" does not match any of the allowed types',
details: [{
message: '"a" does not match any of the allowed types',
path: ['a'],
type: 'alternatives.base',
context: { label: 'a', key: 'a', value: 'x' }
}]
}],
[{ a: 'y', b: date, c: date }, false, null, {
message: '"a" must be one of [x]',
details: [{
message: '"a" must be one of [x]',
path: ['a'],
type: 'any.only',
context: { value: 'y', valids: ['x'], label: 'a', key: 'a' }
}]
}],
[{ a: 'y' }, false, null, {
message: '"a" must be one of [x]',
details: [{
message: '"a" must be one of [x]',
path: ['a'],
type: 'any.only',
context: { value: 'y', valids: ['x'], label: 'a', key: 'a' }
}]
}]
]);
});
it('validates when is has either ref pointing to a complex type or value', () => {
const date = new Date(42);
const now = Date.now();
const schema = {
a: Joi.alternatives().when('b', {
is: Joi.valid(
new Date(+date), // Intentional cloning of the date to change the reference
Joi.ref('c')
),
then: 'x'
}),
b: Joi.date(),
c: Joi.date()
};
Helper.validate(schema, [
[{ a: 'x', b: date, c: date }, true],
[{ a: 'x', b: date, c: now }, true, null, { a: 'x', b: date, c: new Date(now) }],
[{ a: 'y', b: date, c: date }, false, null, {
message: '"a" must be one of [x]',
details: [{
message: '"a" must be one of [x]',
path: ['a'],
type: 'any.only',
context: { value: 'y', valids: ['x'], label: 'a', key: 'a' }
}]
}],
[{ a: 'y' }, false, null, {
message: '"a" must be one of [x]',
details: [{
message: '"a" must be one of [x]',
path: ['a'],
type: 'any.only',
context: { value: 'y', valids: ['x'], label: 'a', key: 'a' }
}]
}]
]);
});
it('validates when then has ref', () => {
const ref = Joi.ref('c');
const schema = {
a: Joi.alternatives().when('b', { is: 5, then: ref }),
b: Joi.any(),
c: Joi.number()
};
Helper.validate(schema, [
[{ a: 'x', b: 5, c: '1' }, false, null, {
message: '"a" must be one of [ref:c]',
details: [{
message: '"a" must be one of [ref:c]',
path: ['a'],
type: 'any.only',
context: { value: 'x', valids: [ref], label: 'a', key: 'a' }
}]
}],
[{ a: 1, b: 5, c: '1' }, true],
[{ a: '1', b: 5, c: '1' }, false, null, {
message: '"a" must be one of [ref:c]',
details: [{
message: '"a" must be one of [ref:c]',
path: ['a'],
type: 'any.only',
context: { value: '1', valids: [ref], label: 'a', key: 'a' }
}]
}]
]);
});
it('validates when otherwise has ref', () => {
const ref = Joi.ref('c');
const schema = {
a: Joi.alternatives().when('b', { is: 6, otherwise: ref }),
b: Joi.any(),
c: Joi.number()
};
Helper.validate(schema, [
[{ a: 'x', b: 5, c: '1' }, false, null, {
message: '"a" must be one of [ref:c]',
details: [{
message: '"a" must be one of [ref:c]',
path: ['a'],
type: 'any.only',
context: { value: 'x', valids: [ref], label: 'a', key: 'a' }
}]
}],
[{ a: 1, b: 5, c: '1' }, true],
[{ a: '1', b: 5, c: '1' }, false, null, {
message: '"a" must be one of [ref:c]',
details: [{
message: '"a" must be one of [ref:c]',
path: ['a'],
type: 'any.only',
context: { value: '1', valids: [ref], label: 'a', key: 'a' }
}]
}]
]);
});
it('validates when empty value', () => {
const schema = {
a: Joi.alternatives().when('b', { is: true, then: Joi.required() }),
b: Joi.boolean().default(false)
};
Helper.validate(schema, [
[{ b: false }, true],
[{ b: true }, true] // true because required() only applies to the one alternative
]);
});
it('validates when missing value', () => {
const schema = Joi.object({
a: Joi.alternatives().when('b', {
is: 5,
then: Joi.optional(),
otherwise: Joi.required()
}).required(),
b: Joi.number()
});
Helper.validate(schema, [
[{ a: 1 }, true],
[{}, false, null, {
message: '"a" is required',
details: [{
message: '"a" is required',
path: ['a'],
type: 'any.required',
context: { label: 'a', key: 'a' }
}]
}],
[{ b: 1 }, false, null, {
message: '"a" is required',
details: [{
message: '"a" is required',
path: ['a'],
type: 'any.required',
context: { label: 'a', key: 'a' }
}]
}],
[{ a: 1, b: 1 }, true],
[{ a: 1, b: 5 }, true],
[{ b: 5 }, false, null, {
message: '"a" is required',
details: [{
message: '"a" is required',
path: ['a'],
type: 'any.required',
context: { label: 'a', key: 'a' }
}]
}]
]);
});
it('validates with nested whens', () => {
// If ((b === 0 && a === 123) ||
// (b !== 0 && a === anything))
// then c === 456
// else c === 789
const schema = Joi.object({
a: Joi.number().required(),
b: Joi.number().required(),
c: Joi.when('a', {
is: Joi.when('b', {
is: Joi.valid(0),
then: Joi.valid(123)
}),
then: Joi.valid(456),
otherwise: Joi.valid(789)
})
});
Helper.validate(schema, [
[{ a: 123, b: 0, c: 456 }, true],
[{ a: 0, b: 1, c: 456 }, true],
[{ a: 0, b: 0, c: 789 }, true],
[{ a: 123, b: 456, c: 456 }, true],
[{ a: 0, b: 0, c: 456 }, false, null, {
message: '"c" must be one of [789]',
details: [{
message: '"c" must be one of [789]',
path: ['c'],
type: 'any.only',
context: { value: 456, valids: [789], label: 'c', key: 'c' }
}]
}],
[{ a: 123, b: 456, c: 789 }, false, null, {
message: '"c" must be one of [456]',
details: [{
message: '"c" must be one of [456]',
path: ['c'],
type: 'any.only',
context: { value: 789, valids: [456], label: 'c', key: 'c' }
}]
}]
]);
});
});
describe('with schema', () => {
it('should peek inside a simple value', () => {
const schema = Joi.number().when(Joi.number().min(0), { then: Joi.number().min(10) });
Helper.validate(schema, [
[-1, true, null, -1],
[1, false, null, {
message: '"value" must be larger than or equal to 10',
details: [{
message: '"value" must be larger than or equal to 10',
path: [],
type: 'number.min',
context: { limit: 10, value: 1, label: 'value' }
}]
}],
[10, true, null, 10]
]);
});
it('should peek inside an object', () => {
const schema = Joi.object().keys({
foo: Joi.string(),
bar: Joi.number()
})
.when(Joi.object().keys({ foo: Joi.valid('hasBar').required() }).unknown(), {
then: Joi.object().keys({ bar: Joi.required() })
});
Helper.validate(schema, [
[{ foo: 'whatever' }, true, null, { foo: 'whatever' }],
[{ foo: 'hasBar' }, false, null, {
message: '"bar" is required',
details: [{
message: '"bar" is required',
path: ['bar'],
type: 'any.required',
context: { key: 'bar', label: 'bar' }
}]
}],
[{ foo: 'hasBar', bar: 42 }, true, null, { foo: 'hasBar', bar: 42 }],
[{}, true, null, {}]
]);
});
});
describe('with switch', () => {
it('sets value based on multiple conditions', () => {
const schema = Joi.object({
a: Joi.number().required(),
b: Joi.alternatives()
.when('a', [
{ is: 0, then: Joi.valid(1) },
{ is: 1, then: Joi.valid(2) },
{ is: 2, then: Joi.valid(3), otherwise: Joi.valid(4) }
])
});
Helper.validate(schema, [
[{ a: 0, b: 1 }, true],
[{ a: 0, b: 2 }, false, null, {
message: '"b" must be one of [1]',
details: [{
message: '"b" must be one of [1]',
path: ['b'],
type: 'any.only',
context: { value: 2, valids: [1], label: 'b', key: 'b' }
}]
}],
[{ a: 1, b: 2 }, true],
[{ a: 1, b: 3 }, false, null, {
message: '"b" must be one of [2]',
details: [{
message: '"b" must be one of [2]',
path: ['b'],
type: 'any.only',
context: { value: 3, valids: [2], label: 'b', key: 'b' }
}]
}],
[{ a: 2, b: 3 }, true],
[{ a: 2, b: 2 }, false, null, {
message: '"b" must be one of [3]',
details: [{
message: '"b" must be one of [3]',
path: ['b'],
type: 'any.only',
context: { value: 2, valids: [3], label: 'b', key: 'b' }
}]
}],
[{ a: 42, b: 4 }, true],
[{ a: 42, b: 128 }, false, null, {
message: '"b" must be one of [4]',
details: [{
message: '"b" must be one of [4]',
path: ['b'],
type: 'any.only',
context: { value: 128, valids: [4], label: 'b', key: 'b' }
}]
}]
]);
});
});
});
});
|
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var React = __webpack_require__(1);
var ReactDOM = __webpack_require__(2);
var odata_1 = __webpack_require__(3);
var grid_1 = __webpack_require__(4);
var adapter = new odata_1.ODataAdapter({
uri: "http://services.odata.org/V4/OData/OData.svc/Products",
columns: [
{ key: "ID", width: 70 },
{ key: "Name", width: 140 },
{ key: "Description", width: 250 }
]
});
ReactDOM.render(React.createElement(grid_1.Grid, {adapter: adapter}), document.getElementById("example"));
/***/ },
/* 1 */
/***/ function(module, exports) {
module.exports = React;
/***/ },
/* 2 */
/***/ function(module, exports) {
module.exports = ReactDOM;
/***/ },
/* 3 */
/***/ function(module, exports) {
"use strict";
var ODataAdapter = (function () {
function ODataAdapter(metadata) {
this.metadata = metadata;
if (metadata.columns.length < 1) {
throw "You need to provide at least one column definition";
}
}
ODataAdapter.prototype.getColumns = function () {
var _this = this;
return new Promise(function (resolve, reject) {
resolve(_this.metadata.columns);
});
};
ODataAdapter.prototype.handleResponse = function (response) {
var identifier = this.metadata.columns[0].key;
return response.value.map(function (i) {
i["id"] = i[identifier];
return i;
});
};
ODataAdapter.prototype.find = function () {
var _this = this;
var uri = this.metadata.uri;
return new Promise(function (resolve, reject) {
var request = new XMLHttpRequest();
request.open("GET", uri, true);
request.onload = function () {
if (request.status >= 200 && request.status < 400) {
var response = JSON.parse(request.responseText);
var entities = _this.handleResponse(response);
resolve(entities);
}
else {
reject();
}
};
request.onerror = function () {
reject();
};
request.send();
});
};
return ODataAdapter;
}());
exports.ODataAdapter = ODataAdapter;
/***/ },
/* 4 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var React = __webpack_require__(1);
var header_1 = __webpack_require__(5);
var body_1 = __webpack_require__(7);
var Grid = (function (_super) {
__extends(Grid, _super);
function Grid() {
_super.apply(this, arguments);
}
Grid.prototype.render = function () {
return (React.createElement("div", {className: "react-grid"}, React.createElement(header_1.Header, null), React.createElement(body_1.Body, null)));
};
return Grid;
}(React.Component));
exports.Grid = Grid;
/***/ },
/* 5 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var React = __webpack_require__(1);
var headerCell_1 = __webpack_require__(6);
var Header = (function (_super) {
__extends(Header, _super);
function Header() {
_super.apply(this, arguments);
}
Header.prototype.render = function () {
return (React.createElement("div", {className: "header"}, React.createElement(headerCell_1.HeaderCell, {title: "Header Cell 1"}), React.createElement(headerCell_1.HeaderCell, {title: "Header Cell 2"})));
};
return Header;
}(React.Component));
exports.Header = Header;
/***/ },
/* 6 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var React = __webpack_require__(1);
var HeaderCell = (function (_super) {
__extends(HeaderCell, _super);
function HeaderCell() {
_super.apply(this, arguments);
}
HeaderCell.prototype.render = function () {
return (React.createElement("div", {className: "header-cell"}, this.props.title));
};
return HeaderCell;
}(React.Component));
exports.HeaderCell = HeaderCell;
/***/ },
/* 7 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var React = __webpack_require__(1);
var row_1 = __webpack_require__(8);
var Body = (function (_super) {
__extends(Body, _super);
function Body() {
_super.apply(this, arguments);
}
Body.prototype.render = function () {
return (React.createElement("div", {className: "body"}, React.createElement(row_1.Row, null), React.createElement(row_1.Row, null)));
};
return Body;
}(React.Component));
exports.Body = Body;
/***/ },
/* 8 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var React = __webpack_require__(1);
var cell_1 = __webpack_require__(9);
var Row = (function (_super) {
__extends(Row, _super);
function Row() {
_super.apply(this, arguments);
}
Row.prototype.render = function () {
return (React.createElement("div", {className: "row"}, React.createElement(cell_1.Cell, {value: "Cell 1"}), React.createElement(cell_1.Cell, {value: "Cell 2"})));
};
return Row;
}(React.Component));
exports.Row = Row;
/***/ },
/* 9 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var React = __webpack_require__(1);
var Cell = (function (_super) {
__extends(Cell, _super);
function Cell() {
_super.apply(this, arguments);
}
Cell.prototype.render = function () {
return (React.createElement("div", {className: "cell"}, this.props.value));
};
return Cell;
}(React.Component));
exports.Cell = Cell;
/***/ }
/******/ ]);
//# sourceMappingURL=react-typescript-webpack.js.map
|
/**
* Copyright 2017, Yahoo Holdings Inc.
* Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms.
*/
import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';
import { get } from '@ember/object';
export default Route.extend({
/**
* @property {Service} user
*/
user: service(),
/**
* @method model
* @returns {DS.Model} report model
*/
model() {
let widget = this.modelFor('dashboards.dashboard.widgets.widget');
return this._cloneToReport(widget);
},
/**
* Transitions to newly created report
*
* @method afterModel
* @param report - resolved report model
* @override
*/
afterModel(report) {
return this.replaceWith('reports.report.view', get(report, 'tempId'));
},
/**
* Convert a widget to a report
*
* @method _cloneToReport
* @private
* @param {DS.Model} widget - the widget to clone
* @returns {DS.Model} report model from widget
*/
_cloneToReport(widget) {
let clonedWidget = widget.toJSON();
return this.store.createRecord('report', {
title: `Copy of ${clonedWidget.title}`.substring(0, 150),
author: get(this, 'user').getUser(),
request: get(widget, 'request').clone(),
visualization: this.store.createFragment(clonedWidget.visualization.type, clonedWidget.visualization)
});
}
});
|
import React from 'react';
import logo from '../../assets/trivago_logo.svg';
import {Link} from "react-router-dom";
export default (props) => (
<header className="magazine-header">
<div className="container-wide">
<div className="fixed-header">
<Link to="/">
<img src={logo} className="logo" alt="logo" style={{display:"inline-block"}} />
</Link>
</div>
</div>
</header>
)
|
import React from 'react';
import ReactDOM from 'react-dom';
class SideBar extends React.Component {
constructor(props) {
super(props);
}
render(){
return (
<div>
<div className="btn-group btn-group-justified" role="group" aria-label="..." id="button-grp">
<div className="btn-group" role="group">
<a><button type="button" className="btn btn-default">Brott</button></a>
</div>
<div className="btn-group" role="group">
<a ><button type="button" className="btn btn-default">Statistik</button></a>
</div>
</div>
</div>
);
}
}
export default SideBar;
|
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
import './goToDefinitionMouse.css';
import * as nls from '../../../nls.js';
import { createCancelablePromise } from '../../../base/common/async.js';
import { onUnexpectedError } from '../../../base/common/errors.js';
import { MarkdownString } from '../../../base/common/htmlContent.js';
import { IModeService } from '../../common/services/modeService.js';
import { Range } from '../../common/core/range.js';
import { DefinitionProviderRegistry } from '../../common/modes.js';
import { registerEditorContribution } from '../../browser/editorExtensions.js';
import { getDefinitionsAtPosition } from './goToDefinition.js';
import { dispose } from '../../../base/common/lifecycle.js';
import { ITextModelService } from '../../common/services/resolverService.js';
import { registerThemingParticipant } from '../../../platform/theme/common/themeService.js';
import { editorActiveLinkForeground } from '../../../platform/theme/common/colorRegistry.js';
import { EditorState } from '../../browser/core/editorState.js';
import { DefinitionAction, DefinitionActionConfig } from './goToDefinitionCommands.js';
import { ClickLinkGesture } from './clickLinkGesture.js';
import { Position } from '../../common/core/position.js';
import { withNullAsUndefined } from '../../../base/common/types.js';
var GotoDefinitionWithMouseEditorContribution = /** @class */ (function () {
function GotoDefinitionWithMouseEditorContribution(editor, textModelResolverService, modeService) {
var _this = this;
this.textModelResolverService = textModelResolverService;
this.modeService = modeService;
this.toUnhook = [];
this.decorations = [];
this.editor = editor;
this.previousPromise = null;
var linkGesture = new ClickLinkGesture(editor);
this.toUnhook.push(linkGesture);
this.toUnhook.push(linkGesture.onMouseMoveOrRelevantKeyDown(function (_a) {
var mouseEvent = _a[0], keyboardEvent = _a[1];
_this.startFindDefinition(mouseEvent, withNullAsUndefined(keyboardEvent));
}));
this.toUnhook.push(linkGesture.onExecute(function (mouseEvent) {
if (_this.isEnabled(mouseEvent)) {
_this.gotoDefinition(mouseEvent.target, mouseEvent.hasSideBySideModifier).then(function () {
_this.removeDecorations();
}, function (error) {
_this.removeDecorations();
onUnexpectedError(error);
});
}
}));
this.toUnhook.push(linkGesture.onCancel(function () {
_this.removeDecorations();
_this.currentWordUnderMouse = null;
}));
}
GotoDefinitionWithMouseEditorContribution.prototype.startFindDefinition = function (mouseEvent, withKey) {
var _this = this;
// check if we are active and on a content widget
if (mouseEvent.target.type === 9 /* CONTENT_WIDGET */ && this.decorations.length > 0) {
return;
}
if (!this.editor.hasModel() || !this.isEnabled(mouseEvent, withKey)) {
this.currentWordUnderMouse = null;
this.removeDecorations();
return;
}
// Find word at mouse position
var word = mouseEvent.target.position ? this.editor.getModel().getWordAtPosition(mouseEvent.target.position) : null;
if (!word) {
this.currentWordUnderMouse = null;
this.removeDecorations();
return;
}
var position = mouseEvent.target.position;
// Return early if word at position is still the same
if (this.currentWordUnderMouse && this.currentWordUnderMouse.startColumn === word.startColumn && this.currentWordUnderMouse.endColumn === word.endColumn && this.currentWordUnderMouse.word === word.word) {
return;
}
this.currentWordUnderMouse = word;
// Find definition and decorate word if found
var state = new EditorState(this.editor, 4 /* Position */ | 1 /* Value */ | 2 /* Selection */ | 8 /* Scroll */);
if (this.previousPromise) {
this.previousPromise.cancel();
this.previousPromise = null;
}
this.previousPromise = createCancelablePromise(function (token) { return _this.findDefinition(mouseEvent.target, token); });
this.previousPromise.then(function (results) {
if (!results || !results.length || !state.validate(_this.editor)) {
_this.removeDecorations();
return;
}
// Multiple results
if (results.length > 1) {
_this.addDecoration(new Range(position.lineNumber, word.startColumn, position.lineNumber, word.endColumn), new MarkdownString().appendText(nls.localize('multipleResults', "Click to show {0} definitions.", results.length)));
}
// Single result
else {
var result_1 = results[0];
if (!result_1.uri) {
return;
}
_this.textModelResolverService.createModelReference(result_1.uri).then(function (ref) {
if (!ref.object || !ref.object.textEditorModel) {
ref.dispose();
return;
}
var textEditorModel = ref.object.textEditorModel;
var startLineNumber = result_1.range.startLineNumber;
if (startLineNumber < 1 || startLineNumber > textEditorModel.getLineCount()) {
// invalid range
ref.dispose();
return;
}
var previewValue = _this.getPreviewValue(textEditorModel, startLineNumber);
var wordRange;
if (result_1.originSelectionRange) {
wordRange = Range.lift(result_1.originSelectionRange);
}
else {
wordRange = new Range(position.lineNumber, word.startColumn, position.lineNumber, word.endColumn);
}
var modeId = _this.modeService.getModeIdByFilepathOrFirstLine(textEditorModel.uri.fsPath);
_this.addDecoration(wordRange, new MarkdownString().appendCodeblock(modeId ? modeId : '', previewValue));
ref.dispose();
});
}
}).then(undefined, onUnexpectedError);
};
GotoDefinitionWithMouseEditorContribution.prototype.getPreviewValue = function (textEditorModel, startLineNumber) {
var rangeToUse = this.getPreviewRangeBasedOnBrackets(textEditorModel, startLineNumber);
var numberOfLinesInRange = rangeToUse.endLineNumber - rangeToUse.startLineNumber;
if (numberOfLinesInRange >= GotoDefinitionWithMouseEditorContribution.MAX_SOURCE_PREVIEW_LINES) {
rangeToUse = this.getPreviewRangeBasedOnIndentation(textEditorModel, startLineNumber);
}
var previewValue = this.stripIndentationFromPreviewRange(textEditorModel, startLineNumber, rangeToUse);
return previewValue;
};
GotoDefinitionWithMouseEditorContribution.prototype.stripIndentationFromPreviewRange = function (textEditorModel, startLineNumber, previewRange) {
var startIndent = textEditorModel.getLineFirstNonWhitespaceColumn(startLineNumber);
var minIndent = startIndent;
for (var endLineNumber = startLineNumber + 1; endLineNumber < previewRange.endLineNumber; endLineNumber++) {
var endIndent = textEditorModel.getLineFirstNonWhitespaceColumn(endLineNumber);
minIndent = Math.min(minIndent, endIndent);
}
var previewValue = textEditorModel.getValueInRange(previewRange).replace(new RegExp("^\\s{" + (minIndent - 1) + "}", 'gm'), '').trim();
return previewValue;
};
GotoDefinitionWithMouseEditorContribution.prototype.getPreviewRangeBasedOnIndentation = function (textEditorModel, startLineNumber) {
var startIndent = textEditorModel.getLineFirstNonWhitespaceColumn(startLineNumber);
var maxLineNumber = Math.min(textEditorModel.getLineCount(), startLineNumber + GotoDefinitionWithMouseEditorContribution.MAX_SOURCE_PREVIEW_LINES);
var endLineNumber = startLineNumber + 1;
for (; endLineNumber < maxLineNumber; endLineNumber++) {
var endIndent = textEditorModel.getLineFirstNonWhitespaceColumn(endLineNumber);
if (startIndent === endIndent) {
break;
}
}
return new Range(startLineNumber, 1, endLineNumber + 1, 1);
};
GotoDefinitionWithMouseEditorContribution.prototype.getPreviewRangeBasedOnBrackets = function (textEditorModel, startLineNumber) {
var maxLineNumber = Math.min(textEditorModel.getLineCount(), startLineNumber + GotoDefinitionWithMouseEditorContribution.MAX_SOURCE_PREVIEW_LINES);
var brackets = [];
var ignoreFirstEmpty = true;
var currentBracket = textEditorModel.findNextBracket(new Position(startLineNumber, 1));
while (currentBracket !== null) {
if (brackets.length === 0) {
brackets.push(currentBracket);
}
else {
var lastBracket = brackets[brackets.length - 1];
if (lastBracket.open === currentBracket.open && lastBracket.isOpen && !currentBracket.isOpen) {
brackets.pop();
}
else {
brackets.push(currentBracket);
}
if (brackets.length === 0) {
if (ignoreFirstEmpty) {
ignoreFirstEmpty = false;
}
else {
return new Range(startLineNumber, 1, currentBracket.range.endLineNumber + 1, 1);
}
}
}
var maxColumn = textEditorModel.getLineMaxColumn(startLineNumber);
var nextLineNumber = currentBracket.range.endLineNumber;
var nextColumn = currentBracket.range.endColumn;
if (maxColumn === currentBracket.range.endColumn) {
nextLineNumber++;
nextColumn = 1;
}
if (nextLineNumber > maxLineNumber) {
return new Range(startLineNumber, 1, maxLineNumber + 1, 1);
}
currentBracket = textEditorModel.findNextBracket(new Position(nextLineNumber, nextColumn));
}
return new Range(startLineNumber, 1, maxLineNumber + 1, 1);
};
GotoDefinitionWithMouseEditorContribution.prototype.addDecoration = function (range, hoverMessage) {
var newDecorations = {
range: range,
options: {
inlineClassName: 'goto-definition-link',
hoverMessage: hoverMessage
}
};
this.decorations = this.editor.deltaDecorations(this.decorations, [newDecorations]);
};
GotoDefinitionWithMouseEditorContribution.prototype.removeDecorations = function () {
if (this.decorations.length > 0) {
this.decorations = this.editor.deltaDecorations(this.decorations, []);
}
};
GotoDefinitionWithMouseEditorContribution.prototype.isEnabled = function (mouseEvent, withKey) {
return this.editor.hasModel() &&
mouseEvent.isNoneOrSingleMouseDown &&
(mouseEvent.target.type === 6 /* CONTENT_TEXT */) &&
(mouseEvent.hasTriggerModifier || (withKey ? withKey.keyCodeIsTriggerKey : false)) &&
DefinitionProviderRegistry.has(this.editor.getModel());
};
GotoDefinitionWithMouseEditorContribution.prototype.findDefinition = function (target, token) {
var model = this.editor.getModel();
if (!model) {
return Promise.resolve(null);
}
return getDefinitionsAtPosition(model, target.position, token);
};
GotoDefinitionWithMouseEditorContribution.prototype.gotoDefinition = function (target, sideBySide) {
var _this = this;
this.editor.setPosition(target.position);
var action = new DefinitionAction(new DefinitionActionConfig(sideBySide, false, true, false), { alias: '', label: '', id: '', precondition: null });
return this.editor.invokeWithinContext(function (accessor) { return action.run(accessor, _this.editor); });
};
GotoDefinitionWithMouseEditorContribution.prototype.getId = function () {
return GotoDefinitionWithMouseEditorContribution.ID;
};
GotoDefinitionWithMouseEditorContribution.prototype.dispose = function () {
this.toUnhook = dispose(this.toUnhook);
};
GotoDefinitionWithMouseEditorContribution.ID = 'editor.contrib.gotodefinitionwithmouse';
GotoDefinitionWithMouseEditorContribution.MAX_SOURCE_PREVIEW_LINES = 8;
GotoDefinitionWithMouseEditorContribution = __decorate([
__param(1, ITextModelService),
__param(2, IModeService)
], GotoDefinitionWithMouseEditorContribution);
return GotoDefinitionWithMouseEditorContribution;
}());
registerEditorContribution(GotoDefinitionWithMouseEditorContribution);
registerThemingParticipant(function (theme, collector) {
var activeLinkForeground = theme.getColor(editorActiveLinkForeground);
if (activeLinkForeground) {
collector.addRule(".monaco-editor .goto-definition-link { color: " + activeLinkForeground + " !important; }");
}
});
|
import Document, { Html, Head, Main, NextScript } from 'next/document';
import config from "../../config"
import "../theme/less/index.less"
class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
render() {
return (
<Html lang="en-US">
<Head>
<base href="/" />
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<link rel="icon" type="image/x-icon" href="/static/img/favicon.ico" />
<meta name="referrer" content="always" />
{config.site_headers_react && config.site_headers_react.map((item, index) => <meta name="author" key={index} content={item} />)}
<link title="RSS" type="application/rss+xml" rel="alternate" href="/rss" />
{config.site_icon && <link rel="icon" href={config.site_icon} type="image/x-icon" />}
<link rel="stylesheet" href="/public/libs/editor/editor.css" media="all"></link>
<script src="/public/libs/jquery-2.1.0.js"></script>
<script src="/public/javascripts/main.js"></script>
<script src="/public/javascripts/responsive.js"></script>
<script src="/public/libs/lodash.compat.js"></script>
<script src="/public/libs/jquery-ujs.js"></script>
<script src="/public/libs/bootstrap/js/bootstrap.js"></script>
<script src="/public/libs/jquery.caret.js"></script>
<script src="/public/libs/jquery.atwho.js"></script>
<script src="/public/libs/markdownit.js"></script>
<script src="/public/libs/code-prettify/prettify.js"></script>
<script src="/public/libs/qrcode.js"></script>
</Head>
<body>
<Main />
<NextScript />
</body>
{ config.cnzz_tracker_id && <script src={`//s95.cnzz.com/z_stat.php?id=${config.cnzz_tracker_id}&web_id=${config.cnzz_tracker_id}`} language="JavaScript"></script>}
</Html>
);
}
}
export default MyDocument;
|
import { Provider } from 'react-redux'
import React from 'react'
import { storiesOf } from '@storybook/react'
import { CreatorLocks } from '../../components/creator/CreatorLocks'
import createUnlockStore from '../../createUnlockStore'
import { ConfigContext } from '../../utils/withConfig'
import { Web3ServiceContext } from '../../utils/withWeb3Service'
import { WalletServiceContext } from '../../utils/withWalletService'
import doNothing from '../../utils/doNothing'
import configure from '../../config'
const account = {
address: '0xdeadbeef',
balance: '0.12',
}
const lock = {
name: 'First Lock',
keyPrice: '0.01',
expirationDuration: 172800,
maxNumberOfKeys: 240,
outstandingKeys: 3,
address: '0xab7c74abc0c4d48d1bdad5dcb26153fc8780f83e',
transaction: 'transactionId',
}
const anotherLock = {
name: 'Another Lock',
keyPrice: '1',
expirationDuration: 60 * 60 * 24 * 365,
maxNumberOfKeys: -1,
unlimitedKeys: true,
outstandingKeys: 1234,
address: '0x21cC9C438D9751A3225496F6FD1F1215C7bd5D83',
transaction: 'anotherTransactionId',
}
const store = createUnlockStore({
account,
locks: [lock],
})
const config = configure()
const ConfigProvider = ConfigContext.Provider
const WalletServiceProvider = WalletServiceContext.Provider
const Web3ServiceProvider = Web3ServiceContext.Provider
const createLock = doNothing
const web3Service = {
off: () => {},
}
const walletService = {}
storiesOf('CreatorLocks', module)
.addDecorator((getStory) => <Provider store={store}>{getStory()}</Provider>)
.addDecorator((getStory) => (
<Web3ServiceProvider value={web3Service}>{getStory()}</Web3ServiceProvider>
))
.addDecorator((getStory) => (
<WalletServiceProvider value={walletService}>
{getStory()}
</WalletServiceProvider>
))
.addDecorator((getStory) => (
<ConfigProvider value={config}>{getStory()}</ConfigProvider>
))
.add('no lock', () => {
return (
<CreatorLocks
account={account}
createLock={createLock}
lockFeed={[]}
hideForm={doNothing}
formIsVisible={false}
/>
)
})
.add('no lock, showForm', () => {
return (
<CreatorLocks
account={account}
createLock={createLock}
lockFeed={[]}
hideForm={doNothing}
formIsVisible
/>
)
})
.add('single lock', () => {
return (
<CreatorLocks
account={account}
createLock={createLock}
lockFeed={[lock]}
hideForm={doNothing}
formIsVisible={false}
/>
)
})
.add('multiple locks', () => {
return (
<CreatorLocks
account={account}
createLock={createLock}
lockFeed={[lock, anotherLock]}
hideForm={doNothing}
formIsVisible={false}
/>
)
})
.add('loading with locks', () => {
return (
<CreatorLocks
account={account}
createLock={createLock}
lockFeed={[lock, anotherLock]}
formIsVisible={false}
hideForm={doNothing}
loading
/>
)
})
.add('loading with no lock', () => {
return (
<CreatorLocks
account={account}
createLock={createLock}
lockFeed={[]}
loading
hideForm={doNothing}
formIsVisible={false}
/>
)
})
|
"use strict";
var __importStar =
(this && this.__importStar) ||
function(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null)
for (var k in mod)
if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
var __importDefault =
(this && this.__importDefault) ||
function(mod) {
return mod && mod.__esModule ? mod : { default: mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const React = __importStar(require("react"));
const native_base_1 = require("native-base");
const react_navigation_1 = require("react-navigation");
const react_redux_1 = require("react-redux");
const lang_1 = __importDefault(require("./lang"));
const react_native_1 = require("react-native");
class HeaderApp extends React.Component {
render() {
return React.createElement(
native_base_1.Header,
null,
React.createElement(
native_base_1.Left,
null,
React.createElement(
native_base_1.Button,
{
transparent: true,
testID: "menuButton",
onPress: () => this.openMenu()
},
React.createElement(native_base_1.Icon, { name: "menu" })
)
),
React.createElement(
native_base_1.Body,
null,
React.createElement(native_base_1.Title, null, this.props.headerTitle)
),
React.createElement(native_base_1.Right, null)
);
}
openMenu() {
if (this.props.userProfile === null) {
react_native_1.Alert.alert(
lang_1.default("Save your profile info before to start")
);
} else this.props.navigation.openDrawer();
}
}
exports.HeaderApp = HeaderApp;
exports.mapStateToProps = state => ({
userProfile: state.profile.profileLoad.data
});
exports.default = react_redux_1.connect(exports.mapStateToProps)(
react_navigation_1.withNavigation(HeaderApp)
);
|
(function () {
/*global iD*/
window.iD = function () {
window.locale.en = iD.data.en;
window.locale.current('en');
var dispatch = d3.dispatch('enter', 'exit', 'change', 'levelchange'),
context = {};
// https://github.com/openstreetmap/iD/issues/772
// http://mathiasbynens.be/notes/localstorage-pattern#comment-9
var storage;
try { storage = localStorage; } catch (e) {} // eslint-disable-line no-empty
storage = storage || (function() {
var s = {};
return {
getItem: function(k) { return s[k]; },
setItem: function(k, v) { s[k] = v; },
removeItem: function(k) { delete s[k]; }
};
})();
context.storage = function(k, v) {
try {
if (arguments.length === 1) return storage.getItem(k);
else if (v === null) storage.removeItem(k);
else storage.setItem(k, v);
} catch (e) {
// localstorage quota exceeded
/* eslint-disable no-console */
if (typeof console !== 'undefined') console.error('localStorage quota exceeded');
/* eslint-enable no-console */
}
};
/* Straight accessors. Avoid using these if you can. */
var ui, connection, history;
context.ui = function() { return ui; };
context.connection = function() { return connection; };
context.history = function() { return history; };
/* Connection */
function entitiesLoaded(err, result) {
if (!err) history.merge(result.data, result.extent);
}
context.preauth = function(options) {
connection.switch(options);
return context;
};
context.loadTiles = function(projection, dimensions, callback) {
function done(err, result) {
entitiesLoaded(err, result);
if (callback) callback(err, result);
}
connection.loadTiles(projection, dimensions, done);
};
context.loadEntity = function(id, callback) {
function done(err, result) {
entitiesLoaded(err, result);
if (callback) callback(err, result);
}
connection.loadEntity(id, done);
};
context.zoomToEntity = function(id, zoomTo) {
if (zoomTo !== false) {
this.loadEntity(id, function(err, result) {
if (err) return;
var entity = _.find(result.data, function(e) { return e.id === id; });
if (entity) { map.zoomTo(entity); }
});
}
map.on('drawn.zoomToEntity', function() {
if (!context.hasEntity(id)) return;
map.on('drawn.zoomToEntity', null);
context.on('enter.zoomToEntity', null);
context.enter(iD.modes.Select(context, [id]));
});
context.on('enter.zoomToEntity', function() {
if (mode.id !== 'browse') {
map.on('drawn.zoomToEntity', null);
context.on('enter.zoomToEntity', null);
}
});
};
var minEditableZoom = 16;
context.minEditableZoom = function(_) {
if (!arguments.length) return minEditableZoom;
minEditableZoom = _;
connection.tileZoom(_);
return context;
};
/* History */
var inIntro = false;
context.inIntro = function(_) {
if (!arguments.length) return inIntro;
inIntro = _;
return context;
};
context.save = function() {
if (inIntro || (mode && mode.id === 'save') || d3.select('.modal').size()) return;
history.save();
if (history.hasChanges()) return t('save.unsaved_changes');
};
context.flush = function() {
context.debouncedSave.cancel();
connection.flush();
features.reset();
history.reset();
_.each(iD.services, function(service) {
var reset = service().reset;
if (reset) reset(context);
});
return context;
};
/* Graph */
context.hasEntity = function(id) {
return history.graph().hasEntity(id);
};
context.entity = function(id) {
return history.graph().entity(id);
};
context.childNodes = function(way) {
return history.graph().childNodes(way);
};
context.geometry = function(id) {
return context.entity(id).geometry(history.graph());
};
/* Modes */
var mode;
context.mode = function() {
return mode;
};
context.enter = function(newMode) {
if (mode) {
mode.exit();
dispatch.exit(mode);
}
mode = newMode;
mode.enter();
dispatch.enter(mode);
};
context.selectedIDs = function() {
if (mode && mode.selectedIDs) {
return mode.selectedIDs();
} else {
return [];
}
};
/* Behaviors */
context.install = function(behavior) {
context.surface().call(behavior);
};
context.uninstall = function(behavior) {
context.surface().call(behavior.off);
};
/* Copy/Paste */
var copyIDs = [], copyGraph;
context.copyGraph = function() { return copyGraph; };
context.copyIDs = function(_) {
if (!arguments.length) return copyIDs;
copyIDs = _;
copyGraph = history.graph();
return context;
};
/* Background */
var background;
context.background = function() { return background; };
/* Features */
var features;
context.features = function() { return features; };
context.hasHiddenConnections = function(id) {
var graph = history.graph(),
entity = graph.entity(id);
return features.hasHiddenConnections(entity, graph);
};
/* Map */
var map;
context.map = function() { return map; };
context.layers = function() { return map.layers; };
context.surface = function() { return map.surface; };
context.editable = function() { return map.editable(); };
context.surfaceRect = function() {
// Work around a bug in Firefox.
// http://stackoverflow.com/questions/18153989/
// https://bugzilla.mozilla.org/show_bug.cgi?id=530985
return context.surface().node().parentNode.getBoundingClientRect();
};
/* Levels */
var level = 0;
var availableLevels = [ 0 ];
context.level = function() { return level; }
context.availableLevels = function() { return availableLevels; }
context.hasLevelsDefined = function(id) { return context.graph().entities[id].levels.length > 0; }
context.updateAvailableLevels = function() {
var entities = context.graph().entities;
var levels = d3.set([ 0 ]);
for(var i in entities) {
var entity = entities[i];
if(entity != undefined) {
for(var l in entity.levels) {
levels.add(entity.levels[l]);
}
}
}
levels = levels.values();
for(var l in levels) {
levels[l] = parseFloat(levels[l]);
}
levels.sort(iD.util.sortNumberArray);
availableLevels = levels;
context.updateLevelFromHash();
}
context.updateLevelFromHash = function() {
if (context.storage('level') !== null) {
var storedLevel = parseFloat(context.storage('level'));
if(availableLevels.indexOf(storedLevel) >= 0) {
if(storedLevel != level) {
context.setLevel(storedLevel);
//Restore selection if needed
if (context.storage('id-level') !== null) {
context.zoomToEntity(context.storage('id-level'), true);
context.storage('id-level', null);
}
}
context.storage('level', null);
}
}
};
context.levelUp = function() {
var al = context.availableLevels();
var lvlId = al.indexOf(level);
if(lvlId + 1 < al.length) { context.setLevel(al[lvlId+1]); }
};
context.levelDown = function() {
var al = context.availableLevels();
var lvlId = al.indexOf(level);
if(lvlId > 0) { context.setLevel(al[lvlId-1]); }
};
context.setLevel = function(l) {
var al = context.availableLevels();
if(al.indexOf(l) >= 0 && level != l) {
level = l;
context.enter(iD.modes.Browse(context));
context.pan([0,0]);
dispatch.levelchange();
}
};
/* Debug */
var debugFlags = {
tile: false,
collision: false,
imagery: false,
imperial: false,
driveLeft: false
};
context.debugFlags = function() {
return debugFlags;
};
context.setDebug = function(flag, val) {
if (arguments.length === 1) val = true;
debugFlags[flag] = val;
dispatch.change();
return context;
};
context.getDebug = function(flag) {
return flag && debugFlags[flag];
};
/* Presets */
var presets;
context.presets = function(_) {
if (!arguments.length) return presets;
presets.load(_);
iD.areaKeys = presets.areaKeys();
return context;
};
/* Imagery */
context.imagery = function(_) {
background.load(_);
return context;
};
/* Container */
var container, embed;
context.container = function(_) {
if (!arguments.length) return container;
container = _;
container.classed('id-container', true);
return context;
};
context.embed = function(_) {
if (!arguments.length) return embed;
embed = _;
return context;
};
/* Taginfo */
var taginfo;
context.taginfo = function(_) {
if (!arguments.length) return taginfo;
taginfo = _;
return context;
};
/* Assets */
var assetPath = '';
context.assetPath = function(_) {
if (!arguments.length) return assetPath;
assetPath = _;
return context;
};
var assetMap = {};
context.assetMap = function(_) {
if (!arguments.length) return assetMap;
assetMap = _;
return context;
};
context.asset = function(_) {
var filename = assetPath + _;
return assetMap[filename] || filename;
};
context.imagePath = function(_) {
return context.asset('img/' + _);
};
var locale, localePath;
context.locale = function(loc, path) {
if (!arguments.length) return locale;
locale = loc;
localePath = path;
return context;
};
context.loadLocale = function(cb) {
if (locale && locale !== 'en' && iD.data.locales.indexOf(locale) !== -1) {
localePath = localePath || context.asset('locales/' + locale + '.json');
d3.json(localePath, function(err, result) {
window.locale[locale] = result;
window.locale.current(locale);
cb();
});
} else {
cb();
}
};
/* Init */
context.projection = iD.geo.RawMercator();
locale = iD.Detect().locale;
if (locale && iD.data.locales.indexOf(locale) === -1) {
locale = locale.split('-')[0];
}
history = iD.History(context);
context.graph = history.graph;
context.changes = history.changes;
context.intersects = history.intersects;
// Debounce save, since it's a synchronous localStorage write,
// and history changes can happen frequently (e.g. when dragging).
context.debouncedSave = _.debounce(context.save, 350);
function withDebouncedSave(fn) {
return function() {
var result = fn.apply(history, arguments);
context.debouncedSave();
return result;
};
}
context.perform = withDebouncedSave(history.perform);
context.replace = withDebouncedSave(history.replace);
context.pop = withDebouncedSave(history.pop);
context.overwrite = withDebouncedSave(history.overwrite);
context.undo = withDebouncedSave(history.undo);
context.redo = withDebouncedSave(history.redo);
ui = iD.ui.init(context);
connection = iD.Connection();
background = iD.Background(context);
features = iD.Features(context);
map = iD.Map(context);
context.mouse = map.mouse;
context.extent = map.extent;
context.pan = map.pan;
context.zoomIn = map.zoomIn;
context.zoomOut = map.zoomOut;
context.zoomInFurther = map.zoomInFurther;
context.zoomOutFurther = map.zoomOutFurther;
context.redrawEnable = map.redrawEnable;
presets = iD.presets.presets();
return d3.rebind(context, dispatch, 'on');
};
iD.version = '1.9.6';
})();
|
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.map
es5id: 15.4.4.19-3-6
description: >
Array.prototype.map - 'length' is a string containing a positive
number
---*/
function callbackfn(val, idx, obj) {
return val > 10;
}
var obj = {
0: 10,
1: 12,
2: 9,
length: 2
};
var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
|
import React from 'react'
import PropTypes from 'prop-types'
import * as S from './styled'
const PostList = ({ slug, background, category, date, timeToRead, title, description }) => (
<S.PostListLink to={slug}>
<S.PostListWrapper>
<S.PostListTag background={background}>{category}</S.PostListTag>
<S.PostListInfo>
<S.PostListDate>{date} - {timeToRead} min de leitura</S.PostListDate>
<S.PostListTitle>{title}</S.PostListTitle>
<S.PostListDescription>{description}</S.PostListDescription>
</S.PostListInfo>
</S.PostListWrapper>
</S.PostListLink>
)
PostList.defaultProps = {
background: '#1fa1f2'
}
PostList.prototype = {
slug: PropTypes.string.isRequired,
background: PropTypes.string,
category: PropTypes.string.isRequired,
date: PropTypes.string.isRequired,
timeToRead: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
description: PropTypes.string.isRequired
}
export default PostList
|
// Copyright (c) 2019, Ovresko Solutions Algerie and contributors
// For license information, please see license.txt
frappe.ui.form.on('Valeur parametre vehicule', {
refresh: function(frm) {
}
});
|
const assert = require('assert');
const pluto99 = require('../dist/pluto99');
const PRECISION = 6;
describe('pluto99()', () => {
it('should return expected values for Julian day 807932.5', () => {
const pluto = pluto99(807932.5);
assert.equal(pluto.x.toFixed(PRECISION), -24.450898);
assert.equal(pluto.y.toFixed(PRECISION), 27.864841);
assert.equal(pluto.z.toFixed(PRECISION), 4.020151);
});
it('should return expected values for Julian day 990557.5', () => {
const pluto = pluto99(990557.5);
assert.equal(pluto.x.toFixed(PRECISION), -28.090595);
assert.equal(pluto.y.toFixed(PRECISION), 20.600908);
assert.equal(pluto.z.toFixed(PRECISION), 5.869147);
});
it('should return expected values for Julian day 1173182.5', () => {
const pluto = pluto99(1173182.5);
assert.equal(pluto.x.toFixed(PRECISION), -30.166984);
assert.equal(pluto.y.toFixed(PRECISION), 12.762686);
assert.equal(pluto.z.toFixed(PRECISION), 7.327759);
});
it('should return expected values for Julian day 1355807.5', () => {
const pluto = pluto99(1355807.5);
assert.equal(pluto.x.toFixed(PRECISION), -30.612416);
assert.equal(pluto.y.toFixed(PRECISION), 4.70315);
assert.equal(pluto.z.toFixed(PRECISION), 8.334771);
});
it('should return expected values for Julian day 1538432.5', () => {
const pluto = pluto99(1538432.5);
assert.equal(pluto.x.toFixed(PRECISION), -29.447885);
assert.equal(pluto.y.toFixed(PRECISION), -3.154766);
assert.equal(pluto.z.toFixed(PRECISION), 8.849075);
});
it('should return expected values for Julian day 1721057.5', () => {
const pluto = pluto99(1721057.5);
assert.equal(pluto.x.toFixed(PRECISION), -26.904668);
assert.equal(pluto.y.toFixed(PRECISION), -10.265583);
assert.equal(pluto.z.toFixed(PRECISION), 8.881072);
});
it('should return expected values for Julian day 1903682.5', () => {
const pluto = pluto99(1903682.5);
assert.equal(pluto.x.toFixed(PRECISION), -23.346605);
assert.equal(pluto.y.toFixed(PRECISION), -16.332474);
assert.equal(pluto.z.toFixed(PRECISION), 8.505363);
});
it('should return expected values for Julian day 2086307.5', () => {
const pluto = pluto99(2086307.5);
assert.equal(pluto.x.toFixed(PRECISION), -19.112797);
assert.equal(pluto.y.toFixed(PRECISION), -21.288876);
assert.equal(pluto.z.toFixed(PRECISION), 7.813304);
});
it('should return expected values for Julian day 2268932.5', () => {
const pluto = pluto99(2268932.5);
assert.equal(pluto.x.toFixed(PRECISION), -14.504729);
assert.equal(pluto.y.toFixed(PRECISION), -25.154226);
assert.equal(pluto.z.toFixed(PRECISION), 6.893533);
});
it('should return expected values for Julian day 2451557.5', () => {
const pluto = pluto99(2451557.5);
assert.equal(pluto.x.toFixed(PRECISION), -9.83748);
assert.equal(pluto.y.toFixed(PRECISION), -27.977994);
assert.equal(pluto.z.toFixed(PRECISION), 5.841542);
});
it('should return expected values for Julian day 2634182.5', () => {
const pluto = pluto99(2634182.5);
assert.equal(pluto.x.toFixed(PRECISION), -5.418324);
assert.equal(pluto.y.toFixed(PRECISION), -29.873589);
assert.equal(pluto.z.toFixed(PRECISION), 4.75852);
});
});
|
'use strict';
app.controller('deviceController', ['$scope', '$routeParams', 'authService', 'devicesService', 'toaster', 'signalRService',
function ($scope, $routeParams, authService, deviceService, toaster, signalRService) {
$scope.authentication = authService.authentication;
$scope.messageToDevice = null;
$scope.pop = function () {
toaster.pop('success', "title", "text");
};
$scope.setDeviceState = {
deviceState: ""
};
$scope.deviceStatesHistoryDownloaded = false;
var deviceId = $routeParams.device_id;
var connection = $.hubConnection("http://localhost:55932/signalR");
var hub = connection.createHubProxy("UsersHub");
$scope.onSetDeviceState = function () {
toaster.pop({ type: 'wait', body: "Setting up new device state", toastId: 1 });
var message = {
deviceState: $scope.setDeviceState.deviceState,
secretKey: $scope.device.secretKey,
deviceName: $scope.device.deviceName
}
deviceService.setDeviceState(message, function (result) {
toaster.clear(null, 1);
}, function (error) {
toaster.clear(null, 1);
});
}
//---------------- Controller logic ---------------------
hub.on("NotifyAboutDeviceStateChange", function (response) {
toaster.clear();
console.log("Response from device state notification: ");
console.log(response);
toaster.pop({ type: 'success', body: "Device state changed to: " + response.State, timeOut: 1500, toastId: 2 });
if ($scope.device.id.localeCompare(response.Id) === 0) {
var newStateHistoryElement = {
state: response.State,
stateTransitionDateTime: response.DateTime
}
$scope.deviceStatesHistory.unshift(newStateHistoryElement);
$scope.device.actualState = response.State;
}
});
hub.on("NotifyAboutDeviceMessageReceived", function (response) {
toaster.clear();
console.log("Response from device message notification: ");
console.log(response);
toaster.pop({ type: 'success', body: "Device message received: " + response.Message, timeOut: 1500, toastId: 2 });
if ($scope.device.id.localeCompare(response.Id) === 0) {
var newMessageElement = {
messageContent: response.Message,
messageDateTime: response.DateTime
}
$scope.deviceMessagesHistory.unshift(newMessageElement);
}
});
connection.start().done(function() {
hub.invoke("RegisterUser", authService.authentication.userName);
});
deviceService.getDevice(deviceId, function (result) {
$scope.device = result.data;
console.log($scope.device);
}, function (error) {
alert(error.data.message);
});
deviceService.getDeviceStatesHistory(deviceId, function (result) {
$scope.deviceStatesHistory = result.data;
$scope.deviceStatesHistoryDownloaded = true;
console.log($scope.deviceStatesHistory);
}, function (error) {
toaster.pop({ type: 'error', body: "Unable to find the device states history" });
});
deviceService.getDeviceMessagesHistory(deviceId, function (result) {
$scope.deviceMessagesHistory = result.data;
$scope.deviceMessagesHistoryDownloaded = true;
console.log($scope.deviceMessagesHistory);
}, function (error) {
toaster.pop({ type: 'error', body: "Unable to find the device messages history" });
});
}]);
|
const Promise = require("bluebird");
const urlLib = require("url");
const uuid = require("uuid/v4");
Promise.config({ warnings: false });
export default function websocket(url) {
//Create the message queue
var messages = [];
//Create the socket
url = url.replace("https://", "wss://").replace("http://", "ws://");
console.log("Creating WebSocket for", url);
var socket;
var connected = false;
var httpCallbacks = {};
var watchCallbacks = {};
function sendMessages() {
if (!connected) return;
messages.forEach((message) => {
socket.send(JSON.stringify(message));
});
messages = [];
}
return new Promise((resolve, reject) => {
console.log("Calling WebSocket(url)");
socket = new WebSocket(url);
socket.onopen = function (event) {
console.log("We are connected via websocket");
connected = true;
sendMessages();
resolve(socket);
};
socket.onclose = function (event) {
console.log("Websocket closed.");
};
socket.onmessage = function (event) {
var response = JSON.parse(event.data);
//Look for id in httpCallbacks
if (response.requestId) {
if (httpCallbacks[response.requestId]) {
//Resolve Promise
if (response.status >= 200 && response.status < 300) {
httpCallbacks[response.requestId].resolve(response);
} else {
//Create error like axios
let err = new Error(
"Request failed with status code " + response.status
);
err.request = httpCallbacks[response.requestId].request;
err.response = {
status: response.status,
statusText: response.statusText,
headers: response.headers,
data: response.data,
};
err.originalStack =
httpCallbacks[response.requestId].request.requestStack;
httpCallbacks[response.requestId].reject(err);
}
delete httpCallbacks[response.requestId];
} else if (watchCallbacks[response.requestId]) {
if (watchCallbacks[response.requestId].resolve) {
if (response.status === 200) {
//if (response.status === 'success') {
//Successfully setup websocket, resolve promise
watchCallbacks[response.requestId].resolve(response);
} else {
//error(watchCallbacks[response.requestId].request, response);
let err = new Error(
"Request failed with status code " + response.status
);
err.response = response;
err.request = watchCallbacks[response.requestId].request;
watchCallbacks[response.requestId].reject(err);
}
//Remove resolve and reject so we process change as a signal next time
delete watchCallbacks[response.requestId]["resolve"];
delete watchCallbacks[response.requestId]["reject"];
} else {
if (watchCallbacks[response.requestId].callback === null)
throw new Error(
"The given watch function has an undefined callback:",
watchCallbacks[response.requestId]
);
watchCallbacks[response.requestId].callback(response);
}
}
}
};
}).then(() => {
console.log("Returning websocket obj");
function _http(request) {
//Do a HTTP request
return new Promise((resolve, reject) => {
let urlObj = urlLib.parse(request.url);
let message = {
requestId: uuid(),
method: request.method.toLowerCase(),
path: urlObj.path,
data: request.data,
headers: Object.entries(request.headers)
.map(([key, value]) => {
return { [key.toLowerCase()]: value };
})
.reduce((a, b) => {
return { ...a, ...b };
}),
};
messages.push(message);
httpCallbacks[message.requestId] = {
request: request,
resolve: resolve,
reject: reject,
};
sendMessages();
});
}
function _unwatch(request, callback) {
//Unwatch for changes on requested resource and trigger provided signal
let urlObj = urlLib.parse(request.url);
return new Promise((resolve, reject) => {
let message = {
requestId: uuid(),
method: "unwatch",
path: urlObj.path,
headers: Object.entries(request.headers)
.map(([key, value]) => {
return { [key.toLowerCase()]: value };
})
.reduce((a, b) => {
return { ...a, ...b };
}),
};
messages.push(message);
watchCallbacks[message.requestId] = {
request,
resolve,
reject,
callback,
};
sendMessages();
});
}
function _watch(request, callback) {
//Watch for changes on requested resource and trigger provided signal
let urlObj = urlLib.parse(request.url);
return new Promise((resolve, reject) => {
let message = {
requestId: uuid(),
method: "watch",
path: urlObj.path,
headers: Object.entries(request.headers)
.map(([key, value]) => {
return { [key.toLowerCase()]: value };
})
.reduce((a, b) => {
return { ...a, ...b };
}),
};
messages.push(message);
watchCallbacks[message.requestId] = {
request,
resolve,
reject,
callback,
};
sendMessages();
});
}
function _close() {
//TODO reject all callbacks that have not resolved
//Clear everything
messages = [];
httpCallbacks = {};
watchCallbacks = {};
//Close socket
socket.close();
}
return {
url,
http: _http,
close: _close,
watch: _watch,
unwatch: _unwatch,
};
});
}
|
import axios from 'axios';
export function getRecipes(
limit = 10,
start = 0,
order = 'asc',
list = ''
){
const request = axios.get(`/api/recipes?limit=${limit}&skip=${start}&order=${order}`)
.then(response => {
if(list) {
return [...list, ...response.data]
} else {
return response.data
}
}
)
return {
type:'GET_RECIPES',
payload:request
}
}
export function getRecipeWithAdder(id) {
const request = axios.get(`/api/getRecipe?id=${id}`)
return (dispatch)=>{
request.then(({data})=>{
let recipe = data;
axios.get(`/api/getRecipeAdder?id=${recipe.ownerId}`)
.then(({data})=>{
let response = {
recipe,
adder:data
}
dispatch({
type:'GET_RECIPE_W_ADDER',
payload:response
})
})
})
}
}
export function clearRecipeWithAdder() {
return {
type:'CLEAR_RECIPE_W_ADDER',
payload:{
recipe:{},
adder:{}
}
}
}
export function addRecipe(recipe) {
const request = axios.post(`/api/recipe`, recipe)
.then(response => response.data);
return {
type:'ADD_RECIPE',
payload:request
}
}
export function clearNewRecipe() {
return{
type:'CLEAR_NEW_RECIPE',
payload:{}
}
}
export function getUserRecipes(userId) {
const request = axios.get(`/api/users_recipes?user=${userId}`)
.then(response => response.data)
return {
type: 'GET_USER_RECIPES',
payload:request
}
}
export function getRecipe(id){
const request = axios.get(`/api/getRecipe?id=${id}`)
.then(response => response.data);
return {
type:'GET_RECIPE',
payload:request
}
}
export function updateRecipe(data){
const request = axios.post(`/api/recipe_update`, data)
.then(response=> response.data);
return {
type:'UPDATE_RECIPE',
payload:request
}
}
export function deleteRecipe(id) {
const request = axios.delete(`/api/delete_recipe?id=${id}`)
.then(response => response.data)
return {
type: 'DELETE_RECIPE',
payload:request
}
}
export function clearRecipe(){
return {
type:'CLEAR_RECIPE',
payload:{
recipe:null,
updateRecipe:false,
recipeDeleted:false
}
}
}
export function loginUser ({email, password}) {
const request = axios.post(`/api/login`, {email, password})
.then(response => response.data)
return {
type:'USER_LOGIN',
payload: request
}
}
export function auth() {
const request =axios.get(`/api/auth`)
.then(response => response.data);
return {
type:'USER_AUTH',
payload: request
}
}
export function getUsers(){
const request = axios.get(`/api/users`)
.then(response => response.data);
return {
type:'GET_USER',
payload:request
}
}
export function userRegister(user,userList){
const request = axios.post(`/api/register`,user)
return (dispatch) =>{
request.then(({data})=>{
let users = data.success ? [...userList,data.user]:userList;
let response = {
success:data.success,
users
}
dispatch({
type:'USER_REGISTER',
payload:response
})
})
}
}
|
import i18n from '@/locales'
export default {
created () {
this.singleActions = [
{
label: i18n.t('compute.perform_delete'),
permission: 'keypairs_delete',
action: obj => {
this.createDialog('DeleteResDialog', {
vm: this,
data: [obj],
columns: this.columns,
title: i18n.t('compute.perform_delete'),
name: this.$t('dictionary.keypair'),
onManager: this.onManager,
})
},
meta: obj => this.$getDeleteResult(obj),
},
]
},
}
|
import { memo, Fragment, useCallback, useState, useEffect } from "react";
import { connect, useDispatch } from "react-redux";
import debounce from "lodash/debounce";
import { searchItems } from "shell/store/content";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faSpinner, faCheck, faTimes } from "@fortawesome/free-solid-svg-icons";
import { Input } from "@zesty-io/core/Input";
import { InputIcon } from "@zesty-io/core/InputIcon";
import { Infotip } from "@zesty-io/core/Infotip";
import { AppLink } from "@zesty-io/core/AppLink";
import { notify } from "shell/store/notifications";
import styles from "./ItemRoute.less";
export const ItemRoute = connect((state) => {
return {
content: state.content,
};
})(
memo(function ItemRoute(props) {
const dispatch = useDispatch();
const [pathPart, setPathPart] = useState(props.path_part);
const [loading, setLoading] = useState(false);
const [unique, setUnique] = useState(true);
const validate = useCallback(
debounce((path) => {
if (!path) {
setUnique(false);
return;
}
const parent = props.content[props.parentZUID];
const fullPath = parent ? parent.web.path + path : path;
setLoading(true);
return dispatch(searchItems(fullPath))
.then((res) => {
// check list of partial matches for exact path match
const matches = res.data.filter((item) => {
/**
* Exclude currently viewed item zuid, as it's currently saved path would match.
* Check if other results have a matching path, if so then it is already taken and
* can not be used.
* Result paths come with leading and trailing slashes
*/
return (
item.meta.ZUID !== props.ZUID &&
item.web.path === "/" + fullPath + "/"
);
});
if (matches.length) {
props.dispatch(
notify({
kind: "warn",
message: (
<p>
URL <strong>{matches[0].web.path}</strong> is unavailable.
Used by
<AppLink
to={`/content/${matches[0].meta.contentModelZUID}/${matches[0].meta.ZUID}`}
>
{matches[0].web.metaLinkText ||
matches[0].web.metaTitle}
</AppLink>
</p>
),
})
);
}
setUnique(!matches.length);
})
.finally(() => setLoading(false));
}, 500),
[props.parentZUID]
);
const onChange = (evt) => {
// All URLs are lowercased
// Replace ampersand characters with 'and'
// Only allow alphanumeric characters
const path = evt.target.value
.trim()
.toLowerCase()
.replace(/\&/g, "and")
.replace(/[^a-zA-Z0-9]/g, "-");
validate(path);
setPathPart(path);
props.dispatch({
type: "SET_ITEM_WEB",
itemZUID: props.ZUID,
key: "pathPart",
value: path,
});
};
// update internal state if external path part changes
useEffect(() => {
if (props.path_part) {
validate(props.path_part);
setPathPart(props.path_part);
}
}, [props.path_part, props.parentZUID]);
return (
<article className={styles.ItemRoute} data-cy="itemRoute">
<label>
<Infotip title="Path parts must be unique within your instance, lowercased and can not contain non-alphnumeric characters. This ensures you create SEO friendly structured and crawlable URLs." />
URL Path Part
</label>
<div className={styles.Path}>
{props.path_part === "zesty_home" ? (
<h1>
<FontAwesomeIcon icon={faHome} />
Homepage
</h1>
) : (
<Fragment>
<Input
type={"text"}
name="pathPart"
className={styles.Part}
value={pathPart}
onChange={onChange}
/>
{loading && (
<InputIcon className={styles.Checking}>
<FontAwesomeIcon icon={faSpinner} spin />
</InputIcon>
)}
{!loading && unique && (
<InputIcon className={styles.Valid}>
<FontAwesomeIcon icon={faCheck} />
</InputIcon>
)}
{!loading && !unique && (
<InputIcon className={styles.Invalid}>
<FontAwesomeIcon icon={faTimes} />
</InputIcon>
)}
</Fragment>
)}
</div>
</article>
);
})
);
|
const {
applicationContext,
} = require('../../../business/test/createTestApplicationContext');
const { deleteCaseDeadline } = require('./deleteCaseDeadline');
describe('deleteCaseDeadline', () => {
const CASE_DEADLINE_ID = '6805d1ab-18d0-43ec-bafb-654e83405416';
const mockCaseDeadline = {
caseDeadlineId: CASE_DEADLINE_ID,
deadlineDate: '2019-03-01T21:42:29.073Z',
description: 'hello world',
docketNumber: '123-20',
};
beforeEach(() => {
applicationContext.getDocumentClient().get.mockReturnValue({
promise: async () => Promise.resolve({ Item: mockCaseDeadline }),
});
});
it('deletes the case deadline records', async () => {
await deleteCaseDeadline({
applicationContext,
caseDeadlineId: CASE_DEADLINE_ID,
docketNumber: '456-20',
});
expect(
applicationContext.getDocumentClient().delete.mock.calls[0][0],
).toMatchObject({
Key: {
pk: `case-deadline|${CASE_DEADLINE_ID}`,
sk: `case-deadline|${CASE_DEADLINE_ID}`,
},
});
expect(
applicationContext.getDocumentClient().delete.mock.calls[1][0],
).toMatchObject({
Key: {
pk: 'case|456-20',
sk: `case-deadline|${CASE_DEADLINE_ID}`,
},
});
});
it('does not call delete function if original case deadline is not found', async () => {
applicationContext.getDocumentClient().get.mockReturnValue({
promise: async () => Promise.resolve({}),
});
await deleteCaseDeadline({
applicationContext,
caseDeadlineId: CASE_DEADLINE_ID,
docketNumber: '456-20',
});
expect(applicationContext.getDocumentClient().delete).not.toBeCalled();
});
});
|
/**
* Copyright <%= year %> Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
!function(e,define){define([],e)}(function(){return function(e){var t=e.kendo||(e.kendo={cultures:{}});t.cultures["bs-Cyrl"]={name:"bs-Cyrl",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":".",".":",",groupSize:[3],symbol:"КМ"}},calendars:{standard:{days:{names:["недјеља","понедјељак","уторак","сриједа","четвртак","петак","субота"],namesAbbr:["нед","пон","уто","сре","чет","пет","суб"],namesShort:["н","п","у","с","ч","п","с"]},months:{names:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],namesAbbr:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец",""]},AM:[""],PM:[""],patterns:{d:"d.M.yyyy",D:"d. MMMM yyyy",F:"d. MMMM yyyy H:mm:ss",g:"d.M.yyyy H:mm",G:"d.M.yyyy H:mm:ss",m:"d. MMMM",M:"d. MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"H:mm",T:"H:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":".",":":":",firstDay:1}}}}(this),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()});
|
export const getData = () => {
return new Promise(resolve => {
let data = [
{ name: 'smss.exe', device: 'Stark', path: '\\Device\\HarddiskVolume2\\Windows\\System32\\smss.exe', status: 'scheduled' },
{ name: 'netsh.exe', device: 'Targaryen', path: '\\Device\\HarddiskVolume2\\Windows\\System32\\netsh.exe', status: 'available' },
{ name: 'uxtheme.dll', device: 'Lanniester', path: '\\Device\\HarddiskVolume1\\Windows\\System32\\uxtheme.dll', status: 'available' },
{ name: 'cryptbase.dll', device: 'Martell', path: '\\Device\\HarddiskVolume1\\Windows\\System32\\cryptbase.dll', status: 'scheduled' },
{ name: '7za.exe', device: 'Baratheon', path: '\\Device\\HarddiskVolume1\\temp\\7za.exe', status: 'scheduled' }
];
resolve(data);
})
}
|
'use strict'
var Buffer = require('safe-buffer').Buffer
var bip66 = require('bip66')
var EC_PRIVKEY_EXPORT_DER_COMPRESSED = Buffer.from([
// begin
0x30, 0x81, 0xd3, 0x02, 0x01, 0x01, 0x04, 0x20,
// private key
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
// middle
0xa0, 0x81, 0x85, 0x30, 0x81, 0x82, 0x02, 0x01, 0x01, 0x30, 0x2c, 0x06, 0x07, 0x2a, 0x86, 0x48,
0xcE, 0x3d, 0x01, 0x01, 0x02, 0x21, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfE, 0xff, 0xff, 0xfc, 0x2f, 0x30, 0x06, 0x04, 0x01, 0x00, 0x04, 0x01, 0x07, 0x04,
0x21, 0x02, 0x79, 0xbE, 0x66, 0x7E, 0xf9, 0xdc, 0xbb, 0xac, 0x55, 0xa0, 0x62, 0x95, 0xcE, 0x87,
0x0b, 0x07, 0x02, 0x9b, 0xfc, 0xdb, 0x2d, 0xcE, 0x28, 0xd9, 0x59, 0xf2, 0x81, 0x5b, 0x16, 0xf8,
0x17, 0x98, 0x02, 0x21, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xfE, 0xba, 0xaE, 0xdc, 0xE6, 0xaf, 0x48, 0xa0, 0x3b, 0xbf, 0xd2, 0x5E,
0x8c, 0xd0, 0x36, 0x41, 0x41, 0x02, 0x01, 0x01, 0xa1, 0x24, 0x03, 0x22, 0x00,
// public key
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
])
var EC_PRIVKEY_EXPORT_DER_UNCOMPRESSED = Buffer.from([
// begin
0x30, 0x82, 0x01, 0x13, 0x02, 0x01, 0x01, 0x04, 0x20,
// private key
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
// middle
0xa0, 0x81, 0xa5, 0x30, 0x81, 0xa2, 0x02, 0x01, 0x01, 0x30, 0x2c, 0x06, 0x07, 0x2a, 0x86, 0x48,
0xcE, 0x3d, 0x01, 0x01, 0x02, 0x21, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfE, 0xff, 0xff, 0xfc, 0x2f, 0x30, 0x06, 0x04, 0x01, 0x00, 0x04, 0x01, 0x07, 0x04,
0x41, 0x04, 0x79, 0xbE, 0x66, 0x7E, 0xf9, 0xdc, 0xbb, 0xac, 0x55, 0xa0, 0x62, 0x95, 0xcE, 0x87,
0x0b, 0x07, 0x02, 0x9b, 0xfc, 0xdb, 0x2d, 0xcE, 0x28, 0xd9, 0x59, 0xf2, 0x81, 0x5b, 0x16, 0xf8,
0x17, 0x98, 0x48, 0x3a, 0xda, 0x77, 0x26, 0xa3, 0xc4, 0x65, 0x5d, 0xa4, 0xfb, 0xfc, 0x0E, 0x11,
0x08, 0xa8, 0xfd, 0x17, 0xb4, 0x48, 0xa6, 0x85, 0x54, 0x19, 0x9c, 0x47, 0xd0, 0x8f, 0xfb, 0x10,
0xd4, 0xb8, 0x02, 0x21, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xfE, 0xba, 0xaE, 0xdc, 0xE6, 0xaf, 0x48, 0xa0, 0x3b, 0xbf, 0xd2, 0x5E,
0x8c, 0xd0, 0x36, 0x41, 0x41, 0x02, 0x01, 0x01, 0xa1, 0x44, 0x03, 0x42, 0x00,
// public key
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
])
exports.privateKeyExport = function (privateKey, publicKey, compressed) {
var result = Buffer.from(compressed ? EC_PRIVKEY_EXPORT_DER_COMPRESSED : EC_PRIVKEY_EXPORT_DER_UNCOMPRESSED)
privateKey.copy(result, compressed ? 8 : 9)
publicKey.copy(result, compressed ? 181 : 214)
return result
}
exports.privateKeyImport = function (privateKey) {
var length = privateKey.length
// sequence header
var index = 0
if (length < index + 1 || privateKey[index] !== 0x30) return
index += 1
// sequence length constructor
if (length < index + 1 || !(privateKey[index] & 0x80)) return
var lenb = privateKey[index] & 0x7f
index += 1
if (lenb < 1 || lenb > 2) return
if (length < index + lenb) return
// sequence length
var len = privateKey[index + lenb - 1] | (lenb > 1 ? privateKey[index + lenb - 2] << 8 : 0)
index += lenb
if (length < index + len) return
// sequence element 0: version number (=1)
if (length < index + 3 ||
privateKey[index] !== 0x02 ||
privateKey[index + 1] !== 0x01 ||
privateKey[index + 2] !== 0x01) {
return
}
index += 3
// sequence element 1: octet string, up to 32 bytes
if (length < index + 2 ||
privateKey[index] !== 0x04 ||
privateKey[index + 1] > 0x20 ||
length < index + 2 + privateKey[index + 1]) {
return
}
return privateKey.slice(index + 2, index + 2 + privateKey[index + 1])
}
exports.signatureExport = function (sigObj) {
var r = Buffer.concat([Buffer.from([0]), sigObj.r])
for (var lenR = 33, posR = 0; lenR > 1 && r[posR] === 0x00 && !(r[posR + 1] & 0x80); --lenR, ++posR);
var s = Buffer.concat([Buffer.from([0]), sigObj.s])
for (var lenS = 33, posS = 0; lenS > 1 && s[posS] === 0x00 && !(s[posS + 1] & 0x80); --lenS, ++posS);
return bip66.encode(r.slice(posR), s.slice(posS))
}
exports.signatureImport = function (sig) {
var r = Buffer.alloc(32, 0)
var s = Buffer.alloc(32, 0)
try {
var sigObj = bip66.decode(sig)
if (sigObj.r.length === 33 && sigObj.r[0] === 0x00) sigObj.r = sigObj.r.slice(1)
if (sigObj.r.length > 32) throw new Error('R length is too long')
if (sigObj.s.length === 33 && sigObj.s[0] === 0x00) sigObj.s = sigObj.s.slice(1)
if (sigObj.s.length > 32) throw new Error('S length is too long')
} catch (err) {
return
}
sigObj.r.copy(r, 32 - sigObj.r.length)
sigObj.s.copy(s, 32 - sigObj.s.length)
return { r: r, s: s }
}
exports.signatureImportLax = function (sig) {
var r = Buffer.alloc(32, 0)
var s = Buffer.alloc(32, 0)
var length = sig.length
var index = 0
// sequence tag byte
if (sig[index++] !== 0x30) return
// sequence length byte
var lenbyte = sig[index++]
if (lenbyte & 0x80) {
index += lenbyte - 0x80
if (index > length) return
}
// sequence tag byte for r
if (sig[index++] !== 0x02) return
// length for r
var rlen = sig[index++]
if (rlen & 0x80) {
lenbyte = rlen - 0x80
if (index + lenbyte > length) return
for (; lenbyte > 0 && sig[index] === 0x00; index += 1, lenbyte -= 1);
for (rlen = 0; lenbyte > 0; index += 1, lenbyte -= 1) rlen = (rlen << 8) + sig[index]
}
if (rlen > length - index) return
var rindex = index
index += rlen
// sequence tag byte for s
if (sig[index++] !== 0x02) return
// length for s
var slen = sig[index++]
if (slen & 0x80) {
lenbyte = slen - 0x80
if (index + lenbyte > length) return
for (; lenbyte > 0 && sig[index] === 0x00; index += 1, lenbyte -= 1);
for (slen = 0; lenbyte > 0; index += 1, lenbyte -= 1) slen = (slen << 8) + sig[index]
}
if (slen > length - index) return
var sindex = index
index += slen
// ignore leading zeros in r
for (; rlen > 0 && sig[rindex] === 0x00; rlen -= 1, rindex += 1);
// copy r value
if (rlen > 32) return
var rvalue = sig.slice(rindex, rindex + rlen)
rvalue.copy(r, 32 - rvalue.length)
// ignore leading zeros in s
for (; slen > 0 && sig[sindex] === 0x00; slen -= 1, sindex += 1);
// copy s value
if (slen > 32) return
var svalue = sig.slice(sindex, sindex + slen)
svalue.copy(s, 32 - svalue.length)
return { r: r, s: s }
}
|
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
var Client = require('azure-iot-device').Client;
var Protocol = require('azure-iot-device-mqtt').Mqtt;
var deviceConnectionString = process.env.DEVICE_CONNECTION_STRING;
var client = Client.fromConnectionString(deviceConnectionString, Protocol);
client.open(function(err) {
if (!err) {
client.onDeviceMethod('reboot', function onReboot(request, response) {
response.send(200, 'Reboot started', function(err) {
if (err) {
console.error('An error occured when sending a method response:\n' + err.toString());
} else {
console.log('Response to method \'' + request.methodName + '\' sent successfully.');
}
});
// Get device Twin
client.getTwin(function(err, twin) {
if (err) {
console.error('could not get twin');
} else {
console.log('twin acquired');
// Update the reported properties for this device through the
// twin. This enables the back end app to query for all device that
// have completed a reboot based on the lastReboot property.
twin.properties.reported.update({
iothubDM : {
reboot : {
startedRebootTime : new Date().toISOString(),
}
}
}, function(err) {
if (err) console.error('Error updating twin');
else console.log('Device reboot twin state reported')
});
}
});
// Add your device's reboot API for physical restart.
console.log('Rebooting!');
});
console.log('Client connected to IoT Hub. Waiting for reboot device method.');
} else {
console.error(err);
}
});
|
module.exports = {
apps: [{
name: 'demo-ecommerce-backend',
script: './src/index.ts',
watch: true,
instances: 1,
exec_mode: 'fork',
interpreter: 'node',
interpreter_args: '--require ts-node/register --require tsconfig-paths/register',
}],
}
|
'use strict';
const {
MAX_LENGTH,
MIN_LENGTH,
MIN_NUMBER_OF_COUPONS_TO_GENERATE,
ERROR_CONSTANTS
} = require('../constants.js');
const ValidationError = require('../error/validation-error.js');
const {
isArray,
isUndefined,
isInteger,
isString,
isObject,
isEmptyArray
} = require('../validator/validator.js');
const throwValidationError = ({ message, field }) => {
throw new ValidationError({
message,
errors: [
{
message,
field,
type: ERROR_CONSTANTS.COUPONJS_GENERATE_COUPON_CONFIGURATION_ERROR.type
}
]
});
};
/**
* This will validate length of the coupon.
* @param {number} length
* @returns {*}
*/
function validateLength(length) {
if (!isUndefined(length)) {
if (!isInteger(length)) {
throwValidationError({
message: `The field 'length' must be of type integer.`,
field: 'length'
});
}
if (length < MIN_LENGTH) {
throwValidationError({
message: `Minimum value for 'length' is ${MIN_LENGTH}.`,
field: 'length'
});
}
if (length > MAX_LENGTH) {
throwValidationError({
message: `Maximum value for length is ${MAX_LENGTH}.`,
field: 'length'
});
}
return length;
}
throwValidationError({
message: `The field 'length' must be defined.`,
field: 'length'
});
}
/**
* This will validate the number of coupons.
* @param {number} numberOfCoupons
* @param {number} maxNumberOfCouponsToGenerate
* @param {number} totalNumberOfPossibleCoupons
* @returns {*}
*/
function validateNumberOfCoupons(
numberOfCoupons,
maxNumberOfCouponsToGenerate,
totalNumberOfPossibleCoupons
) {
if (!isUndefined(numberOfCoupons)) {
if (!isInteger(numberOfCoupons)) {
throwValidationError({
message: `The field 'numberOfCoupons' must be of type integer.`,
field: 'numberOfCoupons'
});
}
if (numberOfCoupons < MIN_NUMBER_OF_COUPONS_TO_GENERATE) {
throwValidationError({
message: `Minimum value for numberOfCoupons is ${MIN_NUMBER_OF_COUPONS_TO_GENERATE}.`,
field: 'numberOfCoupons'
});
}
if (numberOfCoupons > maxNumberOfCouponsToGenerate) {
throwValidationError({
message: `Maximum value for numberOfCoupons is ${maxNumberOfCouponsToGenerate}.`,
field: 'numberOfCoupons'
});
}
if (numberOfCoupons > totalNumberOfPossibleCoupons) {
throwValidationError({
message: `Total number of possible coupons that can be generated is ${totalNumberOfPossibleCoupons} for the given length and characterSet.`,
field: 'numberOfCoupons'
});
}
return numberOfCoupons;
}
throwValidationError({
message: `The field 'numberOfCoupons' must be defined.`,
field: 'numberOfCoupons'
});
}
/**
* This will validate the characters to omit.
* @param {string[]} omitCharacters
* @returns {*}
*/
function validateOmitCharacters(omitCharacters) {
if (!isUndefined(omitCharacters)) {
if (!isArray(omitCharacters)) {
throwValidationError({
message: `The field 'omitCharacters' must be of type array.`,
field: 'omitCharacters'
});
}
const errors = omitCharacters.reduce((error, omitCharacter, index) => {
if (isString(omitCharacter)) {
return error;
}
return [
...error,
{
field: 'omitCharacters',
message: `The field 'omitCharacters' must be an array of string. Non-string value found at index ${index}.`,
type: ERROR_CONSTANTS.COUPONJS_GENERATE_COUPON_CONFIGURATION_ERROR.type
}
];
}, []);
if (!isEmptyArray(errors)) {
throw new ValidationError({
errors,
message: `The field 'omitCharacters' must be an array of strings.`
});
}
return omitCharacters;
}
throwValidationError({
message: `The field 'omitCharacters' must be defined.`,
field: 'omitCharacters'
});
}
/**
* This will validate the prefix.
* @param {string} prefix
* @returns {*}
*/
function validatePrefix(prefix) {
if (isUndefined(prefix)) {
throwValidationError({
message: `The field 'prefix' must be defined.`,
field: 'prefix'
});
}
if (!isString(prefix)) {
throwValidationError({
message: `The field 'prefix' must be of type string.`,
field: 'prefix'
});
}
return prefix;
}
/**
* This will validate the suffix.
* @param {string} suffix
* @returns {*}
*/
function validateSuffix(suffix) {
if (isUndefined(suffix)) {
throwValidationError({
message: `The field 'suffix' must be defined.`,
field: 'suffix'
});
}
if (!isString(suffix)) {
throwValidationError({
message: `The field 'suffix' must be of type string.`,
field: 'suffix'
});
}
return suffix;
}
/**
* This will validate the character set option.
* @param {{builtIn: string[], custom: string[]}} characterSetOption
* @returns {*}
*/
function validateCharacterSetOption(characterSetOption) {
if (isUndefined(characterSetOption)) {
throwValidationError({
message: `The field 'characterSet' must be defined.`,
field: 'characterSet'
});
}
if (!isObject(characterSetOption)) {
throwValidationError({
message: `The field 'characterSet' must be of type object.`,
field: 'characterSet'
});
}
const { builtIn, custom } = characterSetOption;
if (!isUndefined(builtIn)) {
if (!isArray(builtIn)) {
throwValidationError({
message: `The field 'characterSet.builtIn' must be an array.`,
field: 'characterSet.builtIn'
});
}
const builtInErrors = builtIn.reduce((error, charSet, index) => {
if (isString(charSet)) {
return error;
}
return [
...error,
{
field: 'characterSet.builtIn',
message: `The field 'characterSet.builtIn' must be an array of string. Non-string value found at index ${index}.`,
type: ERROR_CONSTANTS.COUPONJS_GENERATE_COUPON_CONFIGURATION_ERROR.type
}
];
}, []);
if (!isEmptyArray(builtInErrors)) {
throw new ValidationError({
errors: builtInErrors,
message: `The field 'characterSet.builtIn' must be an array of strings.`
});
}
}
if (!isUndefined(custom)) {
if (!isArray(custom)) {
throwValidationError({
message: `The field 'characterSet.custom' must be an array.`,
field: 'characterSet.custom'
});
}
const customErrors = custom.reduce((error, charSet, index) => {
if (isString(charSet)) {
return error;
}
return [
...error,
{
field: 'characterSet.custom',
message: `The field 'characterSet.custom' must be an array of string. Non-string value found at index ${index}.`,
type: ERROR_CONSTANTS.COUPONJS_GENERATE_COUPON_CONFIGURATION_ERROR.type
}
];
}, []);
if (!isEmptyArray(customErrors)) {
throw new ValidationError({
errors: customErrors,
message: `The field 'characterSet.custom' must be an array of strings.`
});
}
}
return characterSetOption;
}
module.exports = {
validateLength,
validateNumberOfCoupons,
validateOmitCharacters,
validatePrefix,
validateSuffix,
validateCharacterSetOption
};
|
/*! jQuery UI - v1.11.4 - 2015-03-13
* http://jqueryui.com
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function(t){"function"==typeof define&&define.amd?define(["jquery","./effect"],t):t(jQuery)})(function(t){return t.effects.effect.size=function(e,i){var s,n,o,a=t(this),r=["position","top","bottom","left","right","width","height","overflow","opacity"],h=["position","top","bottom","left","right","overflow","opacity"],l=["width","height","overflow"],c=["fontSize"],u=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],d=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=t.effects.setMode(a,e.mode||"effect"),f=e.restore||"effect"!==p,g=e.scale||"both",m=e.origin||["middle","center"],v=a.css("position"),_=f?r:h,b={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&a.show(),s={height:a.height(),width:a.width(),outerHeight:a.outerHeight(),outerWidth:a.outerWidth()},"toggle"===e.mode&&"show"===p?(a.from=e.to||b,a.to=e.from||s):(a.from=e.from||("show"===p?b:s),a.to=e.to||("hide"===p?b:s)),o={from:{y:a.from.height/s.height,x:a.from.width/s.width},to:{y:a.to.height/s.height,x:a.to.width/s.width}},("box"===g||"both"===g)&&(o.from.y!==o.to.y&&(_=_.concat(u),a.from=t.effects.setTransition(a,u,o.from.y,a.from),a.to=t.effects.setTransition(a,u,o.to.y,a.to)),o.from.x!==o.to.x&&(_=_.concat(d),a.from=t.effects.setTransition(a,d,o.from.x,a.from),a.to=t.effects.setTransition(a,d,o.to.x,a.to))),("content"===g||"both"===g)&&o.from.y!==o.to.y&&(_=_.concat(c).concat(l),a.from=t.effects.setTransition(a,c,o.from.y,a.from),a.to=t.effects.setTransition(a,c,o.to.y,a.to)),t.effects.save(a,_),a.show(),t.effects.createWrapper(a),a.css("overflow","hidden").css(a.from),m&&(n=t.effects.getBaseline(m,s),a.from.top=(s.outerHeight-a.outerHeight())*n.y,a.from.left=(s.outerWidth-a.outerWidth())*n.x,a.to.top=(s.outerHeight-a.to.outerHeight)*n.y,a.to.left=(s.outerWidth-a.to.outerWidth)*n.x),a.css(a.from),("content"===g||"both"===g)&&(u=u.concat(["marginTop","marginBottom"]).concat(c),d=d.concat(["marginLeft","marginRight"]),l=r.concat(u).concat(d),a.find("*[width]").each(function(){var i=t(this),s={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&t.effects.save(i,l),i.from={height:s.height*o.from.y,width:s.width*o.from.x,outerHeight:s.outerHeight*o.from.y,outerWidth:s.outerWidth*o.from.x},i.to={height:s.height*o.to.y,width:s.width*o.to.x,outerHeight:s.height*o.to.y,outerWidth:s.width*o.to.x},o.from.y!==o.to.y&&(i.from=t.effects.setTransition(i,u,o.from.y,i.from),i.to=t.effects.setTransition(i,u,o.to.y,i.to)),o.from.x!==o.to.x&&(i.from=t.effects.setTransition(i,d,o.from.x,i.from),i.to=t.effects.setTransition(i,d,o.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){f&&t.effects.restore(i,l)})})),a.animate(a.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===a.to.opacity&&a.css("opacity",a.from.opacity),"hide"===p&&a.hide(),t.effects.restore(a,_),f||("static"===v?a.css({position:"relative",top:a.to.top,left:a.to.left}):t.each(["top","left"],function(t,e){a.css(e,function(e,i){var s=parseInt(i,10),n=t?a.to.left:a.to.top;return"auto"===i?n+"px":s+n+"px"})})),t.effects.removeWrapper(a),i()}})}});
|
import React from 'react';
import styles from './styles.scss';
import CSSModules from 'react-css-modules';
export type Props = {}
export type OwnProps = {}
class About extends React.Component<OwnProps & Props> {
render() {
return (
<div styleName="container">
Sup
</div>
);
}
}
export default CSSModules(About, styles, {allowMultiple: true});
|
module.exports.pdf = {
templateDir: "views/invoices"
};
|
/**
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
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 CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
'use strict';
AppServices.Controllers.controller('AppOverviewCtrl',
['ug',
'$scope',
'$rootScope',
'$log',
function (ug, $scope, $rootScope, $log) {
//util
$scope.appOverview = {};
$scope.collections = [];
$scope.graph = '';
$scope.$on('top-collections-received', function (event, collections) {
$scope.collections = collections;
$scope.applyScope();
});
ug.getTopCollections();
}]);
|
define(function(require, exports, module) {
"use strict";
exports.snippetText = require("../requirejs/text!./d.snippets");
exports.scope = "d";
});
|
import {Model} from '@grid/core/infrastructure';
import {serialize} from './get.serialize';
describe('Model serialization to post parameters', () => {
describe('pagination', () => {
it('should set skip/take values', () => {
const model = new Model().pagination({
current: 2,
size: 50
});
const params = serialize(model);
expect(params.skip).to.be.equal(100);
expect(params.take).to.be.equal(50);
});
});
describe('sorting', () => {
it('should map ascending order to "+"', () => {
const model = new Model().sort({
by: [{lastName: 'asc'}]
});
const params = serialize(model);
expect(params.order).to.be.equal('+lastName');
});
it('should map descending order to "-"', () => {
const model = new Model().sort({
by: [{lastName: 'desc'}]
});
const params = serialize(model);
expect(params.order).to.be.equal('-lastName');
});
it('should map sorting to comma-separated string', () => {
const model = new Model().sort({
by: [{firstName: 'asc'}, {lastName: 'desc'}]
});
const params = serialize(model);
expect(params.order).to.be.equal('+firstName,-lastName');
});
});
describe('filtering', () => {
it('should be empty string in case of empty filter', () => {
const model = new Model().filter({
by: {}
});
const params = serialize(model);
expect(params.filter).to.be.equal('');
});
it('should map filter to in operation', () => {
const model = new Model().filter({
by: {
lastName: ['Doe']
}
});
const params = serialize(model);
expect(params.filter).to.be.equal('lastName=in:Doe');
});
it('should join parameters with comma', () => {
const model = new Model().filter({
by: {
lastName: ['Doe', 'Jones']
}
});
const params = serialize(model);
expect(params.filter).to.be.equal('lastName=in:Doe,Jones');
});
it('should join fields with ;', () => {
const model = new Model().filter({
by: {
lastName: ['Doe', 'Jones'],
firstName: ['John', 'Harry']
}
});
const params = serialize(model);
expect(params.filter).to.be.equal('lastName=in:Doe,Jones;firstName=in:John,Harry');
});
});
});
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+ZDr":function(t,e,n){"use strict";n("2Spj"),n("0l/t"),n("8+KV"),n("pIFo");var r=n("TqRt");e.__esModule=!0,e.withPrefix=d,e.withAssetPrefix=function(t){return[""].concat([t.replace(/^\//,"")]).join("/")},e.navigateTo=e.replace=e.push=e.navigate=e.default=void 0;var o=r(n("8OQS")),i=r(n("pVnL")),a=r(n("PJYZ")),c=r(n("VbXa")),u=r(n("lSNA")),s=r(n("17x9")),l=r(n("q1tI")),f=n("YwZP"),p=n("cu4x");function d(t){return function(t){return t.replace(/\/+/g,"/")}(["",t].join("/"))}e.parsePath=p.parsePath;var h={activeClassName:s.default.string,activeStyle:s.default.object,partiallyActive:s.default.bool},v=function(t){function e(e){var n;n=t.call(this,e)||this,(0,u.default)((0,a.default)(n),"defaultGetProps",(function(t){var e=t.isPartiallyCurrent,r=t.isCurrent;return(n.props.partiallyActive?e:r)?{className:[n.props.className,n.props.activeClassName].filter(Boolean).join(" "),style:(0,i.default)({},n.props.style,{},n.props.activeStyle)}:null}));var r=!1;return"undefined"!=typeof window&&window.IntersectionObserver&&(r=!0),n.state={IOSupported:r},n.handleRef=n.handleRef.bind((0,a.default)(n)),n}(0,c.default)(e,t);var n=e.prototype;return n.componentDidUpdate=function(t,e){this.props.to===t.to||this.state.IOSupported||___loader.enqueue((0,p.parsePath)(this.props.to).pathname)},n.componentDidMount=function(){this.state.IOSupported||___loader.enqueue((0,p.parsePath)(this.props.to).pathname)},n.componentWillUnmount=function(){if(this.io){var t=this.io,e=t.instance,n=t.el;e.unobserve(n),e.disconnect()}},n.handleRef=function(t){var e,n,r,o=this;this.props.innerRef&&this.props.innerRef.hasOwnProperty("current")?this.props.innerRef.current=t:this.props.innerRef&&this.props.innerRef(t),this.state.IOSupported&&t&&(this.io=(e=t,n=function(){___loader.enqueue((0,p.parsePath)(o.props.to).pathname)},(r=new window.IntersectionObserver((function(t){t.forEach((function(t){e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(r.unobserve(e),r.disconnect(),n())}))}))).observe(e),{instance:r,el:e}))},n.render=function(){var t=this,e=this.props,n=e.to,r=e.getProps,a=void 0===r?this.defaultGetProps:r,c=e.onClick,u=e.onMouseEnter,s=(e.activeClassName,e.activeStyle,e.innerRef,e.partiallyActive,e.state),h=e.replace,v=(0,o.default)(e,["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace"]);var g=d(n);return l.default.createElement(f.Link,(0,i.default)({to:g,state:s,getProps:a,innerRef:this.handleRef,onMouseEnter:function(t){u&&u(t),___loader.hovering((0,p.parsePath)(n).pathname)},onClick:function(e){return c&&c(e),0!==e.button||t.props.target||e.defaultPrevented||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||(e.preventDefault(),y(n,{state:s,replace:h})),!0}},v))},e}(l.default.Component);v.propTypes=(0,i.default)({},h,{onClick:s.default.func,to:s.default.string.isRequired,replace:s.default.bool});var g=function(t,e,n){return console.warn('The "'+t+'" method is now deprecated and will be removed in Gatsby v'+n+'. Please use "'+e+'" instead.')},m=l.default.forwardRef((function(t,e){return l.default.createElement(v,(0,i.default)({innerRef:e},t))}));e.default=m;var y=function(t,e){window.___navigate(d(t),e)};e.navigate=y;var E=function(t){g("push","navigate",3),window.___push(d(t))};e.push=E;e.replace=function(t){g("replace","navigate",3),window.___replace(d(t))};e.navigateTo=function(t){return g("navigateTo","navigate",3),E(t)}},"+i7v":function(t,e,n){"use strict";var r=n("TqRt");e.__esModule=!0,e.default=function(t,e){var n=(0,o.default)(t);if(void 0===e)return n?"pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft:t.scrollLeft;n?n.scrollTo(e,"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop):t.scrollLeft=e};var o=r(n("8Y+z"));t.exports=e.default},"+lvF":function(t,e,n){t.exports=n("VTer")("native-function-to-string",Function.toString)},"+rLv":function(t,e,n){var r=n("dyZX").document;t.exports=r&&r.documentElement},"/SS/":function(t,e,n){var r=n("XKFU");r(r.S,"Object",{setPrototypeOf:n("i5dc").set})},"/e88":function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"0/R4":function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},"0l/t":function(t,e,n){"use strict";var r=n("XKFU"),o=n("CkkT")(2);r(r.P+r.F*!n("LyE8")([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},"0sh+":function(t,e,n){var r=n("quPj"),o=n("vhPU");t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},"16Al":function(t,e,n){"use strict";n("f3/d");var r=n("WbBG");function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("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");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},"17x9":function(t,e,n){t.exports=n("16Al")()},"1MBn":function(t,e,n){var r=n("DVgA"),o=n("JiEa"),i=n("UqcF");t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,c=n(t),u=i.f,s=0;c.length>s;)u.call(t,a=c[s++])&&e.push(a);return e}},"1TsA":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},"1fHE":function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=function(){function t(){}var e=t.prototype;return e.read=function(t,e){var n=this.getStateKey(t,e);try{var r=window.sessionStorage.getItem(n);return JSON.parse(r)}catch(o){return window&&window.___GATSBY_REACT_ROUTER_SCROLL&&window.___GATSBY_REACT_ROUTER_SCROLL[n]?window.___GATSBY_REACT_ROUTER_SCROLL[n]:{}}},e.save=function(t,e,n){var r=this.getStateKey(t,e),o=JSON.stringify(n);try{window.sessionStorage.setItem(r,o)}catch(i){window&&window.___GATSBY_REACT_ROUTER_SCROLL?window.___GATSBY_REACT_ROUTER_SCROLL[r]=JSON.parse(o):(window.___GATSBY_REACT_ROUTER_SCROLL={},window.___GATSBY_REACT_ROUTER_SCROLL[r]=JSON.parse(o))}},e.getStateKey=function(t,e){var n="@@scroll|"+(t.key||t.pathname);return null==e?n:n+"|"+e},t}();e.default=r},"25dN":function(t,e,n){var r=n("XKFU");r(r.S,"Object",{is:n("g6HL")})},"2OiF":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"2Spj":function(t,e,n){var r=n("XKFU");r(r.P,"Function",{bind:n("8MEG")})},"3Lyj":function(t,e,n){var r=n("KroJ");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},"444f":function(t,e,n){"use strict";var r=n("TqRt");e.__esModule=!0,e.default=void 0;var o=r(n("PJYZ")),i=r(n("VbXa")),a=r(n("lSNA")),c=r(n("q1tI")),u=r(n("LHMV")),s=r(n("17x9")),l=n("9Xx/"),f=r(n("1fHE")),p={shouldUpdateScroll:s.default.func,children:s.default.element.isRequired,location:s.default.object.isRequired},d={scrollBehavior:s.default.object.isRequired},h=function(t){function e(e,n){var r;return r=t.call(this,e,n)||this,(0,a.default)((0,o.default)(r),"shouldUpdateScroll",(function(t,e){var n=r.props.shouldUpdateScroll;return!n||n.call(r.scrollBehavior,t,e)})),(0,a.default)((0,o.default)(r),"registerElement",(function(t,e,n){r.scrollBehavior.registerElement(t,e,n,r.getRouterProps())})),(0,a.default)((0,o.default)(r),"unregisterElement",(function(t){r.scrollBehavior.unregisterElement(t)})),r.scrollBehavior=new u.default({addTransitionHook:l.globalHistory.listen,stateStorage:new f.default,getCurrentLocation:function(){return r.props.location},shouldUpdateScroll:r.shouldUpdateScroll}),r}(0,i.default)(e,t);var n=e.prototype;return n.getChildContext=function(){return{scrollBehavior:this}},n.componentDidUpdate=function(t){var e=this.props.location;if(e!==t.location){var n={location:t.location};window.__navigatingToLink?e.action="PUSH":e.action="POP",this.scrollBehavior.updateScroll(n,{history:l.globalHistory,location:e})}},n.componentWillUnmount=function(){this.scrollBehavior.stop()},n.getRouterProps=function(){return{location:this.props.location,history:l.globalHistory}},n.render=function(){return c.default.Children.only(this.props.children)},e}(c.default.Component);h.propTypes=p,h.childContextTypes=d;var v=h;e.default=v},"4LiD":function(t,e,n){"use strict";var r=n("dyZX"),o=n("XKFU"),i=n("KroJ"),a=n("3Lyj"),c=n("Z6vF"),u=n("SlkY"),s=n("9gX7"),l=n("0/R4"),f=n("eeVq"),p=n("XMVh"),d=n("fyDq"),h=n("Xbzi");t.exports=function(t,e,n,v,g,m){var y=r[t],E=y,b=g?"set":"add",w=E&&E.prototype,T={},_=function(t){var e=w[t];i(w,t,"delete"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof E&&(m||w.forEach&&!f((function(){(new E).entries().next()})))){var S=new E,P=S[b](m?{}:-0,1)!=S,O=f((function(){S.has(1)})),x=p((function(t){new E(t)})),R=!m&&f((function(){for(var t=new E,e=5;e--;)t[b](e,e);return!t.has(-0)}));x||((E=e((function(e,n){s(e,E,t);var r=h(new y,e,E);return null!=n&&u(n,g,r[b],r),r}))).prototype=w,w.constructor=E),(O||R)&&(_("delete"),_("has"),g&&_("get")),(R||P)&&_(b),m&&w.clear&&delete w.clear}else E=v.getConstructor(e,t,g,b),a(E.prototype,n),c.NEED=!0;return d(E,t),T[t]=E,o(o.G+o.W+o.F*(E!=y),T),m||v.setStrong(E,t,g),E}},"4R4u":function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"5yr3":function(t,e,n){"use strict";n("bWfx"),n("V+eJ"),n("hHhE");var r=function(t){return t=t||Object.create(null),{on:function(e,n){(t[e]||(t[e]=[])).push(n)},off:function(e,n){t[e]&&t[e].splice(t[e].indexOf(n)>>>0,1)},emit:function(e,n){(t[e]||[]).slice().map((function(t){t(n)})),(t["*"]||[]).slice().map((function(t){t(e,n)}))}}}();e.a=r},"69bn":function(t,e,n){var r=n("y3w9"),o=n("2OiF"),i=n("K0xU")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},"6DQo":function(t,e,n){"use strict";n("pIFo");t.exports=function(){}},"6FMO":function(t,e,n){var r=n("0/R4"),o=n("EWmC"),i=n("K0xU")("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},"7hJ6":function(t,e,n){"use strict";var r=n("TqRt"),o=r(n("444f")),i=r(n("IVHb"));e.ScrollContainer=i.default,e.ScrollContext=o.default},"8+KV":function(t,e,n){"use strict";var r=n("XKFU"),o=n("CkkT")(0),i=n("LyE8")([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},"8+s/":function(t,e,n){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t.default:t}n("V+eJ"),n("bWfx"),n("f3/d"),n("hHhE"),n("HAE/");var o=n("q1tI"),i=r(o),a=r(n("Gytx"));function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=function(t,e,n){if("function"!=typeof t)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof e)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var s,l=[];function f(){s=t(l.map((function(t){return t.props}))),p.canUseDOM?e(s):n&&(s=n(s))}var p=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o.peek=function(){return s},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var t=s;return s=void 0,l=[],t};var c=o.prototype;return c.shouldComponentUpdate=function(t){return!a(t,this.props)},c.componentWillMount=function(){l.push(this),f()},c.componentDidUpdate=function(){f()},c.componentWillUnmount=function(){var t=l.indexOf(this);l.splice(t,1),f()},c.render=function(){return i.createElement(r,this.props)},o}(o.Component);return c(p,"displayName","SideEffect("+function(t){return t.displayName||t.name||"Component"}(r)+")"),c(p,"canUseDOM",u),p}}},"8MEG":function(t,e,n){"use strict";var r=n("2OiF"),o=n("0/R4"),i=n("MfQN"),a=[].slice,c={},u=function(t,e,n){if(!(e in c)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";c[e]=Function("F,a","return new F("+r.join(",")+")")}return c[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),c=function(){var r=n.concat(a.call(arguments));return this instanceof c?u(e,r.length,r):i(e,r,t)};return o(e.prototype)&&(c.prototype=e.prototype),c}},"8OQS":function(t,e){t.exports=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}},"8Y+z":function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){return t===t.window?t:9===t.nodeType&&(t.defaultView||t.parentWindow)},t.exports=e.default},"8a7r":function(t,e,n){"use strict";var r=n("hswa"),o=n("RjD/");t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},"91GP":function(t,e,n){var r=n("XKFU");r(r.S+r.F,"Object",{assign:n("czNK")})},"94VI":function(t,e){e.polyfill=function(t){return t}},"9AAn":function(t,e,n){"use strict";var r=n("wmvG"),o=n("s5qY");t.exports=n("4LiD")("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},"9Xx/":function(t,e,n){"use strict";n.r(e),n.d(e,"globalHistory",(function(){return u})),n.d(e,"navigate",(function(){return s})),n.d(e,"createHistory",(function(){return i})),n.d(e,"createMemorySource",(function(){return a}));n("KKXr"),n("8+KV"),n("VRzm"),n("Btvt"),n("eM6i"),n("pIFo"),n("0l/t"),n("91GP");var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=function(t){return r({},t.location,{state:t.history.state,key:t.history.state&&t.history.state.key||"initial"})},i=function(t,e){var n=[],i=o(t),a=!1,c=function(){};return{get location(){return i},get transitioning(){return a},_onTransitionComplete:function(){a=!1,c()},listen:function(e){n.push(e);var r=function(){i=o(t),e({location:i,action:"POP"})};return t.addEventListener("popstate",r),function(){t.removeEventListener("popstate",r),n=n.filter((function(t){return t!==e}))}},navigate:function(e){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=u.state,l=u.replace,f=void 0!==l&&l;s=r({},s,{key:Date.now()+""});try{a||f?t.history.replaceState(s,null,e):t.history.pushState(s,null,e)}catch(d){t.location[f?"replace":"assign"](e)}i=o(t),a=!0;var p=new Promise((function(t){return c=t}));return n.forEach((function(t){return t({location:i,action:"PUSH"})})),p}}},a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=0,n=[{pathname:t,search:""}],r=[];return{get location(){return n[e]},addEventListener:function(t,e){},removeEventListener:function(t,e){},history:{get entries(){return n},get index(){return e},get state(){return r[e]},pushState:function(t,o,i){var a=i.split("?"),c=a[0],u=a[1],s=void 0===u?"":u;e++,n.push({pathname:c,search:s}),r.push(t)},replaceState:function(t,o,i){var a=i.split("?"),c=a[0],u=a[1],s=void 0===u?"":u;n[e]={pathname:c,search:s},r[e]=t}}}},c=!("undefined"==typeof window||!window.document||!window.document.createElement),u=i(c?window:a()),s=u.navigate},"9gX7":function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},A5AN:function(t,e,n){"use strict";var r=n("AvRE")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},Afnz:function(t,e,n){"use strict";var r=n("LQAc"),o=n("XKFU"),i=n("KroJ"),a=n("Mukb"),c=n("hPIQ"),u=n("QaDb"),s=n("fyDq"),l=n("OP3Y"),f=n("K0xU")("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,v,g,m){u(n,e,h);var y,E,b,w=function(t){if(!p&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},T=e+" Iterator",_="values"==v,S=!1,P=t.prototype,O=P[f]||P["@@iterator"]||v&&P[v],x=O||w(v),R=v?_?w("entries"):x:void 0,A="Array"==e&&P.entries||O;if(A&&(b=l(A.call(new t)))!==Object.prototype&&b.next&&(s(b,T,!0),r||"function"==typeof b[f]||a(b,f,d)),_&&O&&"values"!==O.name&&(S=!0,x=function(){return O.call(this)}),r&&!m||!p&&!S&&P[f]||a(P,f,x),c[e]=x,c[T]=d,v)if(y={values:_?x:w("values"),keys:g?x:w("keys"),entries:R},m)for(E in y)E in P||i(P,E,y[E]);else o(o.P+o.F*(p||S),e,y);return y}},AvRE:function(t,e,n){var r=n("RYi7"),o=n("vhPU");t.exports=function(t){return function(e,n){var i,a,c=String(o(e)),u=r(n),s=c.length;return u<0||u>=s?t?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?t?c.charAt(u):i:t?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},Bl7J:function(t,e,n){"use strict";n.r(e);var r=n("LTkQ"),o=n("q1tI"),i=n.n(o),a=n("TJpk"),c=n.n(a),u=n("Wbzz");function s(t){var e=t.siteTitle,n=Object(o.useState)(!1),r=n[0],c=n[1];return i.a.createElement("header",null,i.a.createElement(a.Helmet,null,i.a.createElement("title",null,e)),i.a.createElement("nav",{className:"bg-lavender text-purple"},i.a.createElement("div",{className:"flex flex-wrap container justify-between mx-auto p-2"},i.a.createElement(u.a,{to:"/",className:"flex items-center no-underline"},i.a.createElement("span",null,i.a.createElement("img",{src:"https://img.icons8.com/dusk/64/000000/bread.png",alt:"Cruchy Bread",width:"48px",height:"48px"})),i.a.createElement("h1",{className:"font-bold ml-4"},"Crunchy Bread")),i.a.createElement("button",{className:"block md:hidden border border-white flex items-center px-3 py-2",onClick:function(){return c(!r)}},i.a.createElement("img",{src:"https://img.icons8.com/nolan/64/000000/menu.png",width:"45px",height:"45px",alt:"menu"})),i.a.createElement("div",{className:(r?"block":"hidden")+" md:block md:flex md:items-center w-full md:w-auto ml-auto"},i.a.createElement("div",{className:"text-lg font-bold mt-3 md:m-0"},i.a.createElement(u.a,{to:"/",activeClassName:"text-purple-600 underline",className:"block p-1 md:px-4 md:inline-block"},"Home"),i.a.createElement(u.a,{to:"/products",partiallyActive:!0,activeClassName:"text-purple-600 underline",className:"block p-1 md:px-4 md:inline-block"},i.a.createElement("button",{className:"bg-purple hover:bg-purple-900 text-white-900 hover:text-purple rounded shadow hover:shadow-lg py-2 px-4 border border-white-900 hover:border-transparent"},"Let's Get Crunchy!")),i.a.createElement("button",{className:"snipcart-checkout inline-block align-middle"},i.a.createElement("span",{className:"shopping-cart inline-block align-middle"},i.a.createElement("svg",{className:"w-8",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},i.a.createElement("path",{fill:"purple",d:"M10 19.5c0 .829-.672 1.5-1.5 1.5s-1.5-.671-1.5-1.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5zm3.5-1.5c-.828 0-1.5.671-1.5 1.5s.672 1.5 1.5 1.5 1.5-.671 1.5-1.5c0-.828-.672-1.5-1.5-1.5zm1.336-5l1.977-7h-16.813l2.938 7h11.898zm4.969-10l-3.432 12h-12.597l.839 2h13.239l3.474-12h1.929l.743-2h-4.195z"}))),i.a.createElement("span",{className:"snipcart-items-count inline-block align-middle p-1"}),i.a.createElement("span",{className:"snipcart-total-price inline-block align-middle p-1"})))))))}function l(t){var e=t.metaData;return i.a.createElement("footer",{className:"flex p-2 bg-black text-white text-sm border-t-2 border-red-600 justify-content"},"© ",e.title,", ",(new Date).getFullYear(),". || Brought to you by (",i.a.createElement("a",{href:"https://www.linkedin.com/in/samson-okaludo",className:"line underline"},e.author),")")}function f(t){var e=t.children,n=r.data;return i.a.createElement(i.a.Fragment,null,i.a.createElement(c.a,null,i.a.createElement("link",{rel:"icon",href:n.site.siteMetadata.favicon})),i.a.createElement("div",{className:"min-h-screen flex flex-col"},i.a.createElement(s,{siteTitle:n.site.siteMetadata.title}),i.a.createElement("main",{className:"flex-grow mx-auto w-auto md:px-8 p-8"},e),i.a.createElement(l,{metaData:n.site.siteMetadata})))}n.d(e,"default",(function(){return f}))},Bp9Y:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);e.default=r,t.exports=e.default},Btvt:function(t,e,n){"use strict";var r=n("I8a+"),o={};o[n("K0xU")("toStringTag")]="z",o+""!="[object z]"&&n("KroJ")(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},"C/va":function(t,e,n){"use strict";var r=n("y3w9");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},CkkT:function(t,e,n){var r=n("m0Pp"),o=n("Ymqv"),i=n("S/j/"),a=n("ne8i"),c=n("zRwo");t.exports=function(t,e){var n=1==t,u=2==t,s=3==t,l=4==t,f=6==t,p=5==t||f,d=e||c;return function(e,c,h){for(var v,g,m=i(e),y=o(m),E=r(c,h,3),b=a(y.length),w=0,T=n?d(e,b):u?d(e,0):void 0;b>w;w++)if((p||w in y)&&(g=E(v=y[w],w,m),t))if(n)T[w]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:T.push(v)}else if(l)return!1;return f?-1:s||l?l:T}}},DNiP:function(t,e,n){"use strict";var r=n("XKFU"),o=n("eyMr");r(r.P+r.F*!n("LyE8")([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},DVgA:function(t,e,n){var r=n("zhAb"),o=n("4R4u");t.exports=Object.keys||function(t){return r(t,o)}},EK0E:function(t,e,n){"use strict";var r,o=n("dyZX"),i=n("CkkT")(0),a=n("KroJ"),c=n("Z6vF"),u=n("czNK"),s=n("ZD67"),l=n("0/R4"),f=n("s5qY"),p=n("s5qY"),d=!o.ActiveXObject&&"ActiveXObject"in o,h=c.getWeak,v=Object.isExtensible,g=s.ufstore,m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(l(t)){var e=h(t);return!0===e?g(f(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return s.def(f(this,"WeakMap"),t,e)}},E=t.exports=n("4LiD")("WeakMap",m,y,s,!0,!0);p&&d&&(u((r=s.getConstructor(m,"WeakMap")).prototype,y),c.NEED=!0,i(["delete","has","get","set"],(function(t){var e=E.prototype,n=e[t];a(e,t,(function(e,o){if(l(e)&&!v(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)}))})))},EWmC:function(t,e,n){var r=n("LZWt");t.exports=Array.isArray||function(t){return"Array"==r(t)}},EemH:function(t,e,n){var r=n("UqcF"),o=n("RjD/"),i=n("aCFj"),a=n("apmT"),c=n("aagx"),u=n("xpql"),s=Object.getOwnPropertyDescriptor;e.f=n("nh4g")?s:function(t,e){if(t=i(t),e=a(e,!0),u)try{return s(t,e)}catch(n){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},FJW5:function(t,e,n){var r=n("hswa"),o=n("y3w9"),i=n("DVgA");t.exports=n("nh4g")?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),c=a.length,u=0;c>u;)r.f(t,n=a[u++],e[n]);return t}},GZEu:function(t,e,n){var r,o,i,a=n("m0Pp"),c=n("MfQN"),u=n("+rLv"),s=n("Iw71"),l=n("dyZX"),f=l.process,p=l.setImmediate,d=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,g=0,m={},y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},E=function(t){y.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++g]=function(){c("function"==typeof t?t:Function(t),e)},r(g),g},d=function(t){delete m[t]},"process"==n("LZWt")(f)?r=function(t){f.nextTick(a(y,t,1))}:v&&v.now?r=function(t){v.now(a(y,t,1))}:h?(i=(o=new h).port2,o.port1.onmessage=E,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",E,!1)):r="onreadystatechange"in s("script")?function(t){u.appendChild(s("script")).onreadystatechange=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:p,clear:d}},GddB:function(t,e,n){"use strict";n.r(e);n("8z7e"),n("93Eu")},Gytx:function(t,e,n){n("2Spj"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),t.exports=function(t,e,n,r){var o=n?n.call(r,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(e),u=0;u<i.length;u++){var s=i[u];if(!c(s))return!1;var l=t[s],f=e[s];if(!1===(o=n?n.call(r,l,f,s):void 0)||void 0===o&&l!==f)return!1}return!0}},H6hf:function(t,e,n){var r=n("y3w9");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(a){var i=t.return;throw void 0!==i&&r(i.call(t)),a}}},"HAE/":function(t,e,n){var r=n("XKFU");r(r.S+r.F*!n("nh4g"),"Object",{defineProperty:n("hswa").f})},HEwt:function(t,e,n){"use strict";var r=n("m0Pp"),o=n("XKFU"),i=n("S/j/"),a=n("H6hf"),c=n("M6Qj"),u=n("ne8i"),s=n("8a7r"),l=n("J+6e");o(o.S+o.F*!n("XMVh")((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,f,p=i(t),d="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,g=void 0!==v,m=0,y=l(p);if(g&&(v=r(v,h>2?arguments[2]:void 0,2)),null==y||d==Array&&c(y))for(n=new d(e=u(p.length));e>m;m++)s(n,m,g?v(p[m],m):p[m]);else for(f=y.call(p),n=new d;!(o=f.next()).done;m++)s(n,m,g?a(f,v,[o.value,m],!0):o.value);return n.length=m,n}})},"I8a+":function(t,e,n){var r=n("LZWt"),o=n("K0xU")("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},IOVJ:function(t,e,n){"use strict";n("91GP");var r=n("q1tI"),o=n.n(r),i=n("emEt"),a=n("xtsi");var c=function(t){var e,n;function o(){return t.apply(this,arguments)||this}return n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o.prototype.render=function(){var t=Object.assign({},this.props,{pathContext:this.props.pageContext}),e=Object(a.apiRunner)("replaceComponentRenderer",{props:this.props,loader:i.publicLoader})[0]||Object(r.createElement)(this.props.pageResources.component,Object.assign({},t,{key:this.props.path||this.props.pageResources.page.path}));return Object(a.apiRunner)("wrapPageElement",{element:e,props:t},e,(function(e){return{element:e.result,props:t}})).pop()},o}(o.a.Component);e.a=c},"IU+Z":function(t,e,n){"use strict";n("sMXx");var r=n("KroJ"),o=n("Mukb"),i=n("eeVq"),a=n("vhPU"),c=n("K0xU"),u=n("Ugos"),s=c("species"),l=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var p=c(t),d=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),h=d?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[s]=function(){return n}),n[p](""),!e})):void 0;if(!d||!h||"replace"===t&&!l||"split"===t&&!f){var v=/./[p],g=n(a,p,""[t],(function(t,e,n,r,o){return e.exec===u?d&&!o?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),m=g[0],y=g[1];r(String.prototype,t,m),o(RegExp.prototype,p,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},IVHb:function(t,e,n){"use strict";var r=n("TqRt");e.__esModule=!0,e.default=void 0;var o=r(n("PJYZ")),i=r(n("VbXa")),a=r(n("lSNA")),c=r(n("q1tI")),u=r(n("i8i4")),s=r(n("6DQo")),l=r(n("17x9")),f={scrollKey:l.default.string.isRequired,shouldUpdateScroll:l.default.func,children:l.default.element.isRequired},p={scrollBehavior:l.default.object},d=function(t){function e(e,n){var r;return r=t.call(this,e,n)||this,(0,a.default)((0,o.default)(r),"shouldUpdateScroll",(function(t,e){var n=r.props.shouldUpdateScroll;return!n||n.call(r.context.scrollBehavior.scrollBehavior,t,e)})),r.scrollKey=e.scrollKey,r}(0,i.default)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.context.scrollBehavior.registerElement(this.props.scrollKey,u.default.findDOMNode(this),this.shouldUpdateScroll)},n.componentDidUpdate=function(t){(0,s.default)(t.scrollKey===this.props.scrollKey,"<ScrollContainer> does not support changing scrollKey.")},n.componentWillUnmount=function(){this.context.scrollBehavior.unregisterElement(this.scrollKey)},n.render=function(){return this.props.children},e}(c.default.Component);d.propTypes=f,d.contextTypes=p;var h=d;e.default=h},Iw71:function(t,e,n){var r=n("0/R4"),o=n("dyZX").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"J+6e":function(t,e,n){var r=n("I8a+"),o=n("K0xU")("iterator"),i=n("hPIQ");t.exports=n("g3g5").getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},JiEa:function(t,e){e.f=Object.getOwnPropertySymbols},K0xU:function(t,e,n){var r=n("VTer")("wks"),o=n("ylqs"),i=n("dyZX").Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},KKXr:function(t,e,n){"use strict";var r=n("quPj"),o=n("y3w9"),i=n("69bn"),a=n("A5AN"),c=n("ne8i"),u=n("Xxuz"),s=n("Ugos"),l=n("eeVq"),f=Math.min,p=[].push,d=!l((function(){RegExp(4294967295,"y")}));n("IU+Z")("split",2,(function(t,e,n,l){var h;return h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var i,a,c,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,d=void 0===e?4294967295:e>>>0,h=new RegExp(t.source,l+"g");(i=s.call(h,o))&&!((a=h.lastIndex)>f&&(u.push(o.slice(f,i.index)),i.length>1&&i.index<o.length&&p.apply(u,i.slice(1)),c=i[0].length,f=a,u.length>=d));)h.lastIndex===i.index&&h.lastIndex++;return f===o.length?!c&&h.test("")||u.push(""):u.push(o.slice(f)),u.length>d?u.slice(0,d):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):h.call(String(o),n,r)},function(t,e){var r=l(h,t,this,e,h!==n);if(r.done)return r.value;var s=o(t),p=String(this),v=i(s,RegExp),g=s.unicode,m=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(d?"y":"g"),y=new v(d?s:"^(?:"+s.source+")",m),E=void 0===e?4294967295:e>>>0;if(0===E)return[];if(0===p.length)return null===u(y,p)?[p]:[];for(var b=0,w=0,T=[];w<p.length;){y.lastIndex=d?w:0;var _,S=u(y,d?p:p.slice(w));if(null===S||(_=f(c(y.lastIndex+(d?0:w)),p.length))===b)w=a(p,w,g);else{if(T.push(p.slice(b,w)),T.length===E)return T;for(var P=1;P<=S.length-1;P++)if(T.push(S[P]),T.length===E)return T;w=b=_}}return T.push(p.slice(b)),T}]}))},KroJ:function(t,e,n){var r=n("dyZX"),o=n("Mukb"),i=n("aagx"),a=n("ylqs")("src"),c=n("+lvF"),u=(""+c).split("toString");n("g3g5").inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,c){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||o(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:c?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||c.call(this)}))},Kuth:function(t,e,n){var r=n("y3w9"),o=n("FJW5"),i=n("4R4u"),a=n("YTvA")("IE_PROTO"),c=function(){},u=function(){var t,e=n("Iw71")("iframe"),r=i.length;for(e.style.display="none",n("+rLv").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[a]=t):n=u(),void 0===e?n:o(n,e)}},L9s1:function(t,e,n){"use strict";var r=n("XKFU"),o=n("0sh+");r(r.P+r.F*n("UUeW")("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},LHMV:function(t,e,n){"use strict";n("LK8F"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("8+KV"),e.__esModule=!0;var r=l(n("c0Fl")),o=l(n("raBC")),i=l(n("+i7v")),a=l(n("ZfQF")),c=l(n("q5+k")),u=l(n("QLaP")),s=n("OysZ");function l(t){return t&&t.__esModule?t:{default:t}}var f=2,p=function(){function t(e){var n=this,r=e.addTransitionHook,u=e.stateStorage,l=e.getCurrentLocation,p=e.shouldUpdateScroll;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._restoreScrollRestoration=function(){if(n._oldScrollRestoration)try{window.history.scrollRestoration=n._oldScrollRestoration}catch(t){}},this._onWindowScroll=function(){if(n._saveWindowPositionHandle||(n._saveWindowPositionHandle=(0,c.default)(n._saveWindowPosition)),n._windowScrollTarget){var t=n._windowScrollTarget,e=t[0],r=t[1],o=(0,i.default)(window),u=(0,a.default)(window);o===e&&u===r&&(n._windowScrollTarget=null,n._cancelCheckWindowScroll())}},this._saveWindowPosition=function(){n._saveWindowPositionHandle=null,n._savePosition(null,window)},this._checkWindowScrollPosition=function(){n._checkWindowScrollHandle=null,n._windowScrollTarget&&(n.scrollToTarget(window,n._windowScrollTarget),++n._numWindowScrollAttempts,n._numWindowScrollAttempts>=f?n._windowScrollTarget=null:n._checkWindowScrollHandle=(0,c.default)(n._checkWindowScrollPosition))},this._stateStorage=u,this._getCurrentLocation=l,this._shouldUpdateScroll=p,"scrollRestoration"in window.history&&!(0,s.isMobileSafari)()){this._oldScrollRestoration=window.history.scrollRestoration;try{window.history.scrollRestoration="manual",(0,o.default)(window,"beforeunload",this._restoreScrollRestoration)}catch(d){this._oldScrollRestoration=null}}else this._oldScrollRestoration=null;this._saveWindowPositionHandle=null,this._checkWindowScrollHandle=null,this._windowScrollTarget=null,this._numWindowScrollAttempts=0,this._scrollElements={},(0,o.default)(window,"scroll",this._onWindowScroll),this._removeTransitionHook=r((function(){c.default.cancel(n._saveWindowPositionHandle),n._saveWindowPositionHandle=null,Object.keys(n._scrollElements).forEach((function(t){var e=n._scrollElements[t];c.default.cancel(e.savePositionHandle),e.savePositionHandle=null,n._saveElementPosition(t)}))}))}return t.prototype.registerElement=function(t,e,n,r){var i=this;this._scrollElements[t]&&(0,u.default)(!1);var a=function(){i._saveElementPosition(t)},s={element:e,shouldUpdateScroll:n,savePositionHandle:null,onScroll:function(){s.savePositionHandle||(s.savePositionHandle=(0,c.default)(a))}};this._scrollElements[t]=s,(0,o.default)(e,"scroll",s.onScroll),this._updateElementScroll(t,null,r)},t.prototype.unregisterElement=function(t){this._scrollElements[t]||(0,u.default)(!1);var e=this._scrollElements[t],n=e.element,o=e.onScroll,i=e.savePositionHandle;(0,r.default)(n,"scroll",o),c.default.cancel(i),delete this._scrollElements[t]},t.prototype.updateScroll=function(t,e){var n=this;this._updateWindowScroll(t,e),Object.keys(this._scrollElements).forEach((function(r){n._updateElementScroll(r,t,e)}))},t.prototype.stop=function(){this._restoreScrollRestoration(),(0,r.default)(window,"scroll",this._onWindowScroll),this._cancelCheckWindowScroll(),this._removeTransitionHook()},t.prototype._cancelCheckWindowScroll=function(){c.default.cancel(this._checkWindowScrollHandle),this._checkWindowScrollHandle=null},t.prototype._saveElementPosition=function(t){var e=this._scrollElements[t];e.savePositionHandle=null,this._savePosition(t,e.element)},t.prototype._savePosition=function(t,e){this._stateStorage.save(this._getCurrentLocation(),t,[(0,i.default)(e),(0,a.default)(e)])},t.prototype._updateWindowScroll=function(t,e){this._cancelCheckWindowScroll(),this._windowScrollTarget=this._getScrollTarget(null,this._shouldUpdateScroll,t,e),this._numWindowScrollAttempts=0,this._checkWindowScrollPosition()},t.prototype._updateElementScroll=function(t,e,n){var r=this._scrollElements[t],o=r.element,i=r.shouldUpdateScroll,a=this._getScrollTarget(t,i,e,n);a&&this.scrollToTarget(o,a)},t.prototype._getDefaultScrollTarget=function(t){var e=t.hash;return e&&"#"!==e?"#"===e.charAt(0)?e.slice(1):e:[0,0]},t.prototype._getScrollTarget=function(t,e,n,r){var o=!e||e.call(this,n,r);if(!o||Array.isArray(o)||"string"==typeof o)return o;var i=this._getCurrentLocation();return this._getSavedScrollTarget(t,i)||this._getDefaultScrollTarget(i)},t.prototype._getSavedScrollTarget=function(t,e){return"PUSH"===e.action?null:this._stateStorage.read(e,t)},t.prototype.scrollToTarget=function(t,e){if("string"==typeof e){var n=document.getElementById(e)||document.getElementsByName(e)[0];if(n)return void n.scrollIntoView();e=[0,0]}var r=e,o=r[0],c=r[1];(0,i.default)(t,o),(0,a.default)(t,c)},t}();e.default=p,t.exports=e.default},LK8F:function(t,e,n){var r=n("XKFU");r(r.S,"Array",{isArray:n("EWmC")})},LQAc:function(t,e){t.exports=!1},LTkQ:function(t){t.exports=JSON.parse('{"data":{"site":{"siteMetadata":{"title":"Crunchy Bread - Your Favourite Online Bread Store","author":"Samson Okaludo","company":"Ludo Tech, Inc.","companyWebsite":"https://ludotech.org","favicon":"https://img.icons8.com/dusk/64/000000/bread.png"}}}}')},LYrO:function(t,e,n){"use strict";n.d(e,"e",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return s})),n.d(e,"f",(function(){return l}));n("pIFo"),n("DNiP"),n("0l/t"),n("Vd3H"),n("V+eJ"),n("bWfx"),n("KKXr");var r=n("QLaP"),o=n.n(r),i=function(t,e){return t.substr(0,e.length)===e},a=function(t,e){for(var n=void 0,r=void 0,i=e.split("?")[0],a=v(i),c=""===a[0],u=h(t),s=0,l=u.length;s<l;s++){var p=!1,d=u[s].route;if(d.default)r={route:d,params:{},uri:e};else{for(var g=v(d.path),y={},E=Math.max(a.length,g.length),b=0;b<E;b++){var w=g[b],T=a[b];if("*"===w){y["*"]=a.slice(b).map(decodeURIComponent).join("/");break}if(void 0===T){p=!0;break}var _=f.exec(w);if(_&&!c){-1===m.indexOf(_[1])||o()(!1);var S=decodeURIComponent(T);y[_[1]]=S}else if(w!==T){p=!0;break}}if(!p){n={route:d,params:y,uri:"/"+a.slice(0,b).join("/")};break}}}return n||r||null},c=function(t,e){return a([{path:t}],e)},u=function(t,e){if(i(t,"/"))return t;var n=t.split("?"),r=n[0],o=n[1],a=e.split("?")[0],c=v(r),u=v(a);if(""===c[0])return g(a,o);if(!i(c[0],".")){var s=u.concat(c).join("/");return g(("/"===a?"":"/")+s,o)}for(var l=u.concat(c),f=[],p=0,d=l.length;p<d;p++){var h=l[p];".."===h?f.pop():"."!==h&&f.push(h)}return g("/"+f.join("/"),o)},s=function(t,e){return"/"+v(t).map((function(t){var n=f.exec(t);return n?e[n[1]]:t})).join("/")},l=function(t,e){var n=function(t){return p(t)};return v(t).filter(n).sort().join("/")===v(e).filter(n).sort().join("/")},f=/^:(.+)/,p=function(t){return f.test(t)},d=function(t,e){return{route:t,score:t.default?0:v(t.path).reduce((function(t,e){return t+=4,!function(t){return""===t}(e)?p(e)?t+=2:!function(t){return"*"===t}(e)?t+=3:t-=5:t+=1,t}),0),index:e}},h=function(t){return t.map(d).sort((function(t,e){return t.score<e.score?1:t.score>e.score?-1:t.index-e.index}))},v=function(t){return t.replace(/(^\/+|\/+$)/g,"").split("/")},g=function(t,e){return t+(e?"?"+e:"")},m=["uri","path"]},LZWt:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},LeKB:function(t,e,n){t.exports=[{plugin:n("gSxY"),options:{plugins:[],component:"C:\\Users\\HP.COM\\Desktop\\cunchy-bread\\src\\components\\layout.js"}},{plugin:n("GddB"),options:{plugins:[]}}]},LyE8:function(t,e,n){"use strict";var r=n("eeVq");t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},M6Qj:function(t,e,n){var r=n("hPIQ"),o=n("K0xU")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},MMVs:function(t,e,n){n("V+eJ"),t.exports=function(){var t=!1;-1!==navigator.appVersion.indexOf("MSIE 10")&&(t=!0);var e,n=[],r="object"==typeof document&&document,o=t?r.documentElement.doScroll():r.documentElement.doScroll,i=r&&(o?/^loaded|^c/:/^loaded|^i|^c/).test(r.readyState);return!i&&r&&r.addEventListener("DOMContentLoaded",e=function(){for(r.removeEventListener("DOMContentLoaded",e),i=1;e=n.shift();)e()}),function(t){i?setTimeout(t,0):n.push(t)}}()},MfQN:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},MgzW:function(t,e,n){"use strict";n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("KKXr"),n("8+KV"),n("bWfx"),n("91GP"),n("ioFf");var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(t,e){for(var n,c,u=a(t),s=1;s<arguments.length;s++){for(var l in n=Object(arguments[s]))o.call(n,l)&&(u[l]=n[l]);if(r){c=r(n);for(var f=0;f<c.length;f++)i.call(n,c[f])&&(u[c[f]]=n[c[f]])}}return u}},Mukb:function(t,e,n){var r=n("hswa"),o=n("RjD/");t.exports=n("nh4g")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},N8g3:function(t,e,n){e.f=n("K0xU")},NSX3:function(t,e,n){"use strict";n.r(e);var r=n("xtsi");"https:"!==window.location.protocol&&"localhost"!==window.location.hostname?console.error("Service workers can only be used over HTTPS, or on localhost for development"):"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then((function(t){t.addEventListener("updatefound",(function(){Object(r.apiRunner)("onServiceWorkerUpdateFound",{serviceWorker:t});var e=t.installing;console.log("installingWorker",e),e.addEventListener("statechange",(function(){switch(e.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,Object(r.apiRunner)("onServiceWorkerUpdateReady",{serviceWorker:t}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),Object(r.apiRunner)("onServiceWorkerInstalled",{serviceWorker:t}));break;case"redundant":console.error("The installing service worker became redundant."),Object(r.apiRunner)("onServiceWorkerRedundant",{serviceWorker:t});break;case"activated":Object(r.apiRunner)("onServiceWorkerActive",{serviceWorker:t})}}))}))})).catch((function(t){console.error("Error during service worker registration:",t)}))},OEbY:function(t,e,n){n("nh4g")&&"g"!=/./g.flags&&n("hswa").f(RegExp.prototype,"flags",{configurable:!0,get:n("C/va")})},OG14:function(t,e,n){"use strict";var r=n("y3w9"),o=n("g6HL"),i=n("Xxuz");n("IU+Z")("search",1,(function(t,e,n,a){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var c=r(t),u=String(this),s=c.lastIndex;o(s,0)||(c.lastIndex=0);var l=i(c,u);return o(c.lastIndex,s)||(c.lastIndex=s),null===l?-1:l.index}]}))},OP3Y:function(t,e,n){var r=n("aagx"),o=n("S/j/"),i=n("YTvA")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},OnI7:function(t,e,n){var r=n("dyZX"),o=n("g3g5"),i=n("LQAc"),a=n("N8g3"),c=n("hswa").f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:a.f(t)})}},OysZ:function(t,e,n){"use strict";e.__esModule=!0,e.isMobileSafari=function(){return/iPad|iPhone|iPod/.test(window.navigator.platform)&&/^((?!CriOS).)*Safari/.test(window.navigator.userAgent)}},Oyvg:function(t,e,n){var r=n("dyZX"),o=n("Xbzi"),i=n("hswa").f,a=n("kJMx").f,c=n("quPj"),u=n("C/va"),s=r.RegExp,l=s,f=s.prototype,p=/a/g,d=/a/g,h=new s(p)!==p;if(n("nh4g")&&(!h||n("eeVq")((function(){return d[n("K0xU")("match")]=!1,s(p)!=p||s(d)==d||"/a/i"!=s(p,"i")})))){s=function(t,e){var n=this instanceof s,r=c(t),i=void 0===e;return!n&&r&&t.constructor===s&&i?t:o(h?new l(r&&!i?t.source:t,e):l((r=t instanceof s)?t.source:t,r&&i?u.call(t):e),n?this:f,s)};for(var v=function(t){t in s||i(s,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},g=a(l),m=0;g.length>m;)v(g[m++]);f.constructor=s,s.prototype=f,n("KroJ")(r,"RegExp",s)}n("elZq")("RegExp")},PJYZ:function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},QLaP:function(t,e,n){"use strict";n("f3/d"),n("pIFo");t.exports=function(t,e,n,r,o,i,a,c){if(!t){var u;if(void 0===e)u=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,c],l=0;(u=new Error(e.replace(/%s/g,(function(){return s[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},QaDb:function(t,e,n){"use strict";var r=n("Kuth"),o=n("RjD/"),i=n("fyDq"),a={};n("Mukb")(a,n("K0xU")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},RW0V:function(t,e,n){var r=n("S/j/"),o=n("DVgA");n("Xtr8")("keys",(function(){return function(t){return o(r(t))}}))},RYi7:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"RjD/":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"S/j/":function(t,e,n){var r=n("vhPU");t.exports=function(t){return Object(r(t))}},SRfc:function(t,e,n){"use strict";var r=n("y3w9"),o=n("ne8i"),i=n("A5AN"),a=n("Xxuz");n("IU+Z")("match",1,(function(t,e,n,c){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=c(n,t,this);if(e.done)return e.value;var u=r(t),s=String(this);if(!u.global)return a(u,s);var l=u.unicode;u.lastIndex=0;for(var f,p=[],d=0;null!==(f=a(u,s));){var h=String(f[0]);p[d]=h,""===h&&(u.lastIndex=i(s,o(u.lastIndex),l)),d++}return 0===d?null:p}]}))},SlkY:function(t,e,n){var r=n("m0Pp"),o=n("H6hf"),i=n("M6Qj"),a=n("y3w9"),c=n("ne8i"),u=n("J+6e"),s={},l={};(e=t.exports=function(t,e,n,f,p){var d,h,v,g,m=p?function(){return t}:u(t),y=r(n,f,e?2:1),E=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(d=c(t.length);d>E;E++)if((g=e?y(a(h=t[E])[0],h[1]):y(t[E]))===s||g===l)return g}else for(v=m.call(t);!(h=v.next()).done;)if((g=o(v,y,h.value,e))===s||g===l)return g}).BREAK=s,e.RETURN=l},T39b:function(t,e,n){"use strict";var r=n("wmvG"),o=n("s5qY");t.exports=n("4LiD")("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},TJpk:function(t,e,n){n("LK8F"),n("dZ+Y"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("8+KV"),n("/SS/"),n("hHhE"),n("V+eJ"),n("HAE/"),n("91GP"),e.__esModule=!0,e.Helmet=void 0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=f(n("q1tI")),a=f(n("17x9")),c=f(n("8+s/")),u=f(n("bmMU")),s=n("v1p5"),l=n("hFT/");function f(t){return t&&t.__esModule?t:{default:t}}function p(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var d,h,v,g=(0,c.default)(s.reducePropsToState,s.handleClientStateChange,s.mapStateOnServer)((function(){return null})),m=(d=g,v=h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){return!(0,u.default)(this.props,t)},e.prototype.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case l.TAG_NAMES.SCRIPT:case l.TAG_NAMES.NOSCRIPT:return{innerHTML:e};case l.TAG_NAMES.STYLE:return{cssText:e}}throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},e.prototype.flattenArrayTypeChildren=function(t){var e,n=t.child,o=t.arrayTypeChildren,i=t.newChildProps,a=t.nestedChildren;return r({},o,((e={})[n.type]=[].concat(o[n.type]||[],[r({},i,this.mapNestedChildrenToProps(n,a))]),e))},e.prototype.mapObjectTypeChildren=function(t){var e,n,o=t.child,i=t.newProps,a=t.newChildProps,c=t.nestedChildren;switch(o.type){case l.TAG_NAMES.TITLE:return r({},i,((e={})[o.type]=c,e.titleAttributes=r({},a),e));case l.TAG_NAMES.BODY:return r({},i,{bodyAttributes:r({},a)});case l.TAG_NAMES.HTML:return r({},i,{htmlAttributes:r({},a)})}return r({},i,((n={})[o.type]=r({},a),n))},e.prototype.mapArrayTypeChildrenToProps=function(t,e){var n=r({},e);return Object.keys(t).forEach((function(e){var o;n=r({},n,((o={})[e]=t[e],o))})),n},e.prototype.warnOnInvalidChildren=function(t,e){return!0},e.prototype.mapChildrenToProps=function(t,e){var n=this,r={};return i.default.Children.forEach(t,(function(t){if(t&&t.props){var o=t.props,i=o.children,a=p(o,["children"]),c=(0,s.convertReactPropstoHtmlAttributes)(a);switch(n.warnOnInvalidChildren(t,i),t.type){case l.TAG_NAMES.LINK:case l.TAG_NAMES.META:case l.TAG_NAMES.NOSCRIPT:case l.TAG_NAMES.SCRIPT:case l.TAG_NAMES.STYLE:r=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:r,newChildProps:c,nestedChildren:i});break;default:e=n.mapObjectTypeChildren({child:t,newProps:e,newChildProps:c,nestedChildren:i})}}})),e=this.mapArrayTypeChildrenToProps(r,e)},e.prototype.render=function(){var t=this.props,e=t.children,n=p(t,["children"]),o=r({},n);return e&&(o=this.mapChildrenToProps(e,o)),i.default.createElement(d,o)},o(e,null,[{key:"canUseDOM",set:function(t){d.canUseDOM=t}}]),e}(i.default.Component),h.propTypes={base:a.default.object,bodyAttributes:a.default.object,children:a.default.oneOfType([a.default.arrayOf(a.default.node),a.default.node]),defaultTitle:a.default.string,defer:a.default.bool,encodeSpecialCharacters:a.default.bool,htmlAttributes:a.default.object,link:a.default.arrayOf(a.default.object),meta:a.default.arrayOf(a.default.object),noscript:a.default.arrayOf(a.default.object),onChangeClientState:a.default.func,script:a.default.arrayOf(a.default.object),style:a.default.arrayOf(a.default.object),title:a.default.string,titleAttributes:a.default.object,titleTemplate:a.default.string},h.defaultProps={defer:!0,encodeSpecialCharacters:!0},h.peek=d.peek,h.rewind=function(){var t=d.rewind();return t||(t=(0,s.mapStateOnServer)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},v);m.renderStatic=m.rewind,e.Helmet=m,e.default=m},TqRt:function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},Tze0:function(t,e,n){"use strict";n("qncB")("trim",(function(t){return function(){return t(this,3)}}))},UUeW:function(t,e,n){var r=n("K0xU")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(o){}}return!0}},Ugos:function(t,e,n){"use strict";var r,o,i=n("C/va"),a=RegExp.prototype.exec,c=String.prototype.replace,u=a,s=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),l=void 0!==/()??/.exec("")[1];(s||l)&&(u=function(t){var e,n,r,o,u=this;return l&&(n=new RegExp("^"+u.source+"$(?!\\s)",i.call(u))),s&&(e=u.lastIndex),r=a.call(u,t),s&&r&&(u.lastIndex=u.global?r.index+r[0].length:e),l&&r&&r.length>1&&c.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=u},UqcF:function(t,e){e.f={}.propertyIsEnumerable},UxWs:function(t,e,n){"use strict";n.r(e);n("OG14"),n("SRfc"),n("91GP");var r=n("xtsi"),o=n("q1tI"),i=n.n(o),a=n("i8i4"),c=n.n(a),u=n("YwZP"),s=n("7hJ6"),l=n("MMVs"),f=n.n(l),p=(n("pIFo"),n("emEt")),d=n("YLt+"),h=n("5yr3"),v=n("+ZDr");var g=d.reduce((function(t,e){return t[e.fromPath]=e,t}),{});function m(t){var e=g[t];return null!=e&&(window.___replace(e.toPath),!0)}var y=function(t,e){m(t.pathname)||Object(r.apiRunner)("onPreRouteUpdate",{location:t,prevLocation:e})},E=function(t,e){m(t.pathname)||(Object(r.apiRunner)("onRouteUpdate",{location:t,prevLocation:e}),window.__navigatingToLink=!1)},b=function(t,e){void 0===e&&(e={}),e.replace||(window.__navigatingToLink=!0);var n=Object(v.parsePath)(t).pathname,o=g[n];if(o&&(t=o.toPath,n=Object(v.parsePath)(t).pathname),window.___swUpdated)window.location=n;else{var i=setTimeout((function(){h.a.emit("onDelayedLoadPageResources",{pathname:n}),Object(r.apiRunner)("onRouteUpdateDelayed",{location:window.location})}),1e3);p.default.loadPage(n).then((function(r){r&&"error"!==r.status||(window.history.replaceState({},"",location.href),window.location=n),r&&r.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),console.log("Site has changed on server. Reloading browser"),window.location=n),Object(u.navigate)(t,e),clearTimeout(i)}))}};function w(t,e){var n=this,o=e.location,i=o.pathname,a=o.hash,c=Object(r.apiRunner)("shouldUpdateScroll",{prevRouterProps:t,pathname:i,routerProps:{location:o},getSavedScrollPosition:function(t){return n._stateStorage.read(t)}});if(c.length>0)return c[c.length-1];if(t&&t.location.pathname===i)return a?decodeURI(a.slice(1)):[0,0];return!0}var T=function(t){var e,n;function r(e){var n;return n=t.call(this,e)||this,y(e.location,null),n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){E(this.props.location,null)},o.componentDidUpdate=function(t,e,n){n&&E(this.props.location,t.location)},o.getSnapshotBeforeUpdate=function(t){return this.props.location.pathname!==t.location.pathname&&(y(this.props.location,t.location),!0)},o.render=function(){return this.props.children},r}(i.a.Component),_=n("IOVJ"),S=n("pCP8"),P=n.n(S);function O(t,e){for(var n in t)if(!(n in e))return!0;for(var r in e)if(t[r]!==e[r])return!0;return!1}var x=function(t){var e,n;function r(e){var n;n=t.call(this)||this;var r=e.location,o=e.pageResources;return n.state={location:Object.assign({},r),pageResources:o||p.default.loadPageSync(r.pathname)},n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.getDerivedStateFromProps=function(t,e){var n=t.location;return e.location.href!==n.href?{pageResources:p.default.loadPageSync(n.pathname),location:Object.assign({},n)}:{location:Object.assign({},n)}};var o=r.prototype;return o.loadResources=function(t){var e=this;p.default.loadPage(t).then((function(n){n&&"error"!==n.status?e.setState({location:Object.assign({},window.location),pageResources:n}):(window.history.replaceState({},"",location.href),window.location=t)}))},o.shouldComponentUpdate=function(t,e){return e.pageResources?this.state.pageResources!==e.pageResources||(this.state.pageResources.component!==e.pageResources.component||(this.state.pageResources.json!==e.pageResources.json||(!(this.state.location.key===e.location.key||!e.pageResources.page||!e.pageResources.page.matchPath&&!e.pageResources.page.path)||function(t,e,n){return O(t.props,e)||O(t.state,n)}(this,t,e)))):(this.loadResources(t.location.pathname),!1)},o.render=function(){return this.props.children(this.state)},r}(i.a.Component),R=n("cSJ8"),A=n("vf9c");var j=new p.ProdLoader(P.a,A);Object(p.setLoader)(j),j.setApiRunner(r.apiRunner),window.asyncRequires=P.a,window.___emitter=h.a,window.___loader=p.publicLoader,window.__navigatingToLink=!1,window.___push=function(t){return b(t,{replace:!1})},window.___replace=function(t){return b(t,{replace:!0})},window.___navigate=function(t,e){return b(t,e)},m(window.location.pathname),Object(r.apiRunnerAsync)("onClientEntry").then((function(){Object(r.apiRunner)("registerServiceWorker").length>0&&n("NSX3");var t=function(t){return i.a.createElement(u.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},i.a.createElement(_.a,t))},e=function(e){var n,r;function o(){return e.apply(this,arguments)||this}return r=e,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,o.prototype.render=function(){var e=this,n=this.props.location;return i.a.createElement(x,{location:n},(function(n){var r=n.pageResources,o=n.location;return i.a.createElement(T,{location:o},i.a.createElement(s.ScrollContext,{location:o,shouldUpdateScroll:w},i.a.createElement(u.Router,{basepath:"",location:o,id:"gatsby-focus-wrapper"},i.a.createElement(t,Object.assign({path:encodeURI("/404.html"===r.page.path?Object(R.a)(o.pathname,""):r.page.matchPath||r.page.path)},e.props,{location:o,pageResources:r},r.json)))))}))},o}(i.a.Component),o=window,a=o.pagePath,l=o.location;a&&""+a!==l.pathname&&!(j.findMatchPath(Object(R.a)(l.pathname,""))||"/404.html"===a||a.match(/^\/404\/?$/)||a.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&Object(u.navigate)(""+a+l.search+l.hash,{replace:!0}),p.publicLoader.loadPage(l.pathname).then((function(t){if(!t||"error"===t.status)throw new Error("page resources for "+l.pathname+" not found. Not rendering React");window.___webpackCompilationHash=t.page.webpackCompilationHash;var n=function(){return i.a.createElement(u.Location,null,(function(t){return i.a.createElement(e,t)}))},o=Object(r.apiRunner)("wrapRootElement",{element:i.a.createElement(n,null)},i.a.createElement(n,null),(function(t){return{element:t.result}})).pop(),a=function(){return o},s=Object(r.apiRunner)("replaceHydrateFunction",void 0,c.a.hydrate)[0];f()((function(){s(i.a.createElement(a,null),"undefined"!=typeof window?document.getElementById("___gatsby"):void 0,(function(){Object(r.apiRunner)("onInitialClientRender")}))}))}))}))},"V+eJ":function(t,e,n){"use strict";var r=n("XKFU"),o=n("w2a5")(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n("LyE8")(i)),"Array",{indexOf:function(t){return a?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},VRzm:function(t,e,n){"use strict";var r,o,i,a,c=n("LQAc"),u=n("dyZX"),s=n("m0Pp"),l=n("I8a+"),f=n("XKFU"),p=n("0/R4"),d=n("2OiF"),h=n("9gX7"),v=n("SlkY"),g=n("69bn"),m=n("GZEu").set,y=n("gHnn")(),E=n("pbhE"),b=n("nICZ"),w=n("ol8x"),T=n("vKrd"),_=u.TypeError,S=u.process,P=S&&S.versions,O=P&&P.v8||"",x=u.Promise,R="process"==l(S),A=function(){},j=o=E.f,C=!!function(){try{var t=x.resolve(1),e=(t.constructor={})[n("K0xU")("species")]=function(t){t(A,A)};return(R||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e&&0!==O.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(r){}}(),M=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,c=o?e.ok:e.fail,u=e.resolve,s=e.reject,l=e.domain;try{c?(o||(2==t._h&&F(t),t._h=1),!0===c?n=r:(l&&l.enter(),n=c(r),l&&(l.exit(),a=!0)),n===e.promise?s(_("Promise-chain cycle")):(i=M(n))?i.call(n,u,s):u(n)):s(r)}catch(f){l&&!a&&l.exit(),s(f)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&k(t)}))}},k=function(t){m.call(u,(function(){var e,n,r,o=t._v,i=I(t);if(i&&(e=b((function(){R?S.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=R||I(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},I=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){m.call(u,(function(){var e;R?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},N=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},U=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw _("Promise can't be resolved itself");(e=M(t))?y((function(){var r={_w:n,_d:!1};try{e.call(t,s(U,r,1),s(N,r,1))}catch(o){N.call(r,o)}})):(n._v=t,n._s=1,L(n,!1))}catch(r){N.call({_w:n,_d:!1},r)}}};C||(x=function(t){h(this,x,"Promise","_h"),d(t),r.call(this);try{t(s(U,this,1),s(N,this,1))}catch(e){N.call(this,e)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("3Lyj")(x.prototype,{then:function(t,e){var n=j(g(this,x));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=R?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=s(U,t,1),this.reject=s(N,t,1)},E.f=j=function(t){return t===x||t===a?new i(t):o(t)}),f(f.G+f.W+f.F*!C,{Promise:x}),n("fyDq")(x,"Promise"),n("elZq")("Promise"),a=n("g3g5").Promise,f(f.S+f.F*!C,"Promise",{reject:function(t){var e=j(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(c||!C),"Promise",{resolve:function(t){return T(c&&this===a?x:this,t)}}),f(f.S+f.F*!(C&&n("XMVh")((function(t){x.all(t).catch(A)}))),"Promise",{all:function(t){var e=this,n=j(e),r=n.resolve,o=n.reject,i=b((function(){var n=[],i=0,a=1;v(t,!1,(function(t){var c=i++,u=!1;n.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,n[c]=t,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=j(e),r=n.reject,o=b((function(){v(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},VTer:function(t,e,n){var r=n("g3g5"),o=n("dyZX"),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("LQAc")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},VbXa:function(t,e){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}},Vd3H:function(t,e,n){"use strict";var r=n("XKFU"),o=n("2OiF"),i=n("S/j/"),a=n("eeVq"),c=[].sort,u=[1,2,3];r(r.P+r.F*(a((function(){u.sort(void 0)}))||!a((function(){u.sort(null)}))||!n("LyE8")(c)),"Array",{sort:function(t){return void 0===t?c.call(i(this)):c.call(i(this),o(t))}})},WbBG:function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},Wbzz:function(t,e,n){"use strict";var r=n("q1tI"),o=n.n(r),i=n("+ZDr"),a=n.n(i);n.d(e,"a",(function(){return a.a}));n("lw3w"),n("emEt").default.enqueue,o.a.createContext({})},XKFU:function(t,e,n){var r=n("dyZX"),o=n("g3g5"),i=n("Mukb"),a=n("KroJ"),c=n("m0Pp"),u=function(t,e,n){var s,l,f,p,d=t&u.F,h=t&u.G,v=t&u.S,g=t&u.P,m=t&u.B,y=h?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,E=h?o:o[e]||(o[e]={}),b=E.prototype||(E.prototype={});for(s in h&&(n=e),n)f=((l=!d&&y&&void 0!==y[s])?y:n)[s],p=m&&l?c(f,r):g&&"function"==typeof f?c(Function.call,f):f,y&&a(y,s,f,t&u.U),E[s]!=f&&i(E,s,p),g&&b[s]!=f&&(b[s]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},XMVh:function(t,e,n){var r=n("K0xU")("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(a){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],c=i[r]();c.next=function(){return{done:n=!0}},i[r]=function(){return c},t(i)}catch(a){}return n}},Xbzi:function(t,e,n){var r=n("0/R4"),o=n("i5dc").set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},XfO3:function(t,e,n){"use strict";var r=n("AvRE")(!0);n("Afnz")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},Xtr8:function(t,e,n){var r=n("XKFU"),o=n("g3g5"),i=n("eeVq");t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},Xxuz:function(t,e,n){"use strict";var r=n("I8a+"),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"YLt+":function(t){t.exports=JSON.parse("[]")},YTvA:function(t,e,n){var r=n("VTer")("keys"),o=n("ylqs");t.exports=function(t){return r[t]||(r[t]=o(t))}},Ymqv:function(t,e,n){var r=n("LZWt");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},YwZP:function(t,e,n){"use strict";n.r(e);n("pIFo"),n("bWfx"),n("VRzm"),n("Btvt"),n("/SS/"),n("hHhE"),n("V+eJ"),n("91GP");var r=n("q1tI"),o=n.n(r),i=(n("6DQo"),n("17x9"),n("QLaP")),a=n.n(i),c=o.a.createContext,u=n("94VI"),s=n("LYrO"),l=n("9Xx/");n.d(e,"Link",(function(){return C})),n.d(e,"Location",(function(){return y})),n.d(e,"LocationProvider",(function(){return E})),n.d(e,"Match",(function(){return N})),n.d(e,"Redirect",(function(){return F})),n.d(e,"Router",(function(){return T})),n.d(e,"ServerLocation",(function(){return b})),n.d(e,"isRedirect",(function(){return L})),n.d(e,"redirectTo",(function(){return k})),n.d(e,"BaseContext",(function(){return w})),n.d(e,"createHistory",(function(){return l.createHistory})),n.d(e,"createMemorySource",(function(){return l.createMemorySource})),n.d(e,"navigate",(function(){return l.navigate})),n.d(e,"globalHistory",(function(){return l.globalHistory}));var f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function p(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=function(t,e){var n=c(e);return n.Consumer.displayName=t+".Consumer",n.Provider.displayName=t+".Provider",n},m=g("Location"),y=function(t){var e=t.children;return o.a.createElement(m.Consumer,null,(function(t){return t?e(t):o.a.createElement(E,null,e)}))},E=function(t){function e(){var n,r;d(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=h(this,t.call.apply(t,[this].concat(i))),r.state={context:r.getContext(),refs:{unlisten:null}},h(r,n)}return v(e,t),e.prototype.getContext=function(){var t=this.props.history;return{navigate:t.navigate,location:t.location}},e.prototype.componentDidCatch=function(t,e){if(!L(t))throw t;(0,this.props.history.navigate)(t.uri,{replace:!0})},e.prototype.componentDidUpdate=function(t,e){e.context.location!==this.state.context.location&&this.props.history._onTransitionComplete()},e.prototype.componentDidMount=function(){var t=this,e=this.state.refs,n=this.props.history;e.unlisten=n.listen((function(){Promise.resolve().then((function(){requestAnimationFrame((function(){t.unmounted||t.setState((function(){return{context:t.getContext()}}))}))}))}))},e.prototype.componentWillUnmount=function(){var t=this.state.refs;this.unmounted=!0,t.unlisten()},e.prototype.render=function(){var t=this.state.context,e=this.props.children;return o.a.createElement(m.Provider,{value:t},"function"==typeof e?e(t):e||null)},e}(o.a.Component);E.defaultProps={history:l.globalHistory};var b=function(t){var e=t.url,n=t.children;return o.a.createElement(m.Provider,{value:{location:{pathname:e,search:"",hash:""},navigate:function(){throw new Error("You can't call navigate on the server.")}}},n)},w=g("Base",{baseuri:"/",basepath:"/"}),T=function(t){return o.a.createElement(w.Consumer,null,(function(e){return o.a.createElement(y,null,(function(n){return o.a.createElement(_,f({},e,n,t))}))}))},_=function(t){function e(){return d(this,e),h(this,t.apply(this,arguments))}return v(e,t),e.prototype.render=function(){var t=this.props,e=t.location,n=t.navigate,r=t.basepath,i=t.primary,a=t.children,c=(t.baseuri,t.component),u=void 0===c?"div":c,l=p(t,["location","navigate","basepath","primary","children","baseuri","component"]),d=o.a.Children.map(a,D(r)),h=e.pathname,v=Object(s.c)(d,h);if(v){var g=v.params,m=v.uri,y=v.route,E=v.route.value;r=y.default?r:y.path.replace(/\*$/,"");var b=f({},g,{uri:m,location:e,navigate:function(t,e){return n(Object(s.d)(t,m),e)}}),_=o.a.cloneElement(E,b,E.props.children?o.a.createElement(T,{primary:i},E.props.children):void 0),S=i?P:u,O=i?f({uri:m,location:e,component:u},l):l;return o.a.createElement(w.Provider,{value:{baseuri:m,basepath:r}},o.a.createElement(S,O,_))}return null},e}(o.a.PureComponent);_.defaultProps={primary:!0};var S=g("Focus"),P=function(t){var e=t.uri,n=t.location,r=t.component,i=p(t,["uri","location","component"]);return o.a.createElement(S.Consumer,null,(function(t){return o.a.createElement(R,f({},i,{component:r,requestFocus:t,uri:e,location:n}))}))},O=!0,x=0,R=function(t){function e(){var n,r;d(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=h(this,t.call.apply(t,[this].concat(i))),r.state={},r.requestFocus=function(t){r.state.shouldFocus||t.focus()},h(r,n)}return v(e,t),e.getDerivedStateFromProps=function(t,e){if(null==e.uri)return f({shouldFocus:!0},t);var n=t.uri!==e.uri,r=e.location.pathname!==t.location.pathname&&t.location.pathname===t.uri;return f({shouldFocus:n||r},t)},e.prototype.componentDidMount=function(){x++,this.focus()},e.prototype.componentWillUnmount=function(){0===--x&&(O=!0)},e.prototype.componentDidUpdate=function(t,e){t.location!==this.props.location&&this.state.shouldFocus&&this.focus()},e.prototype.focus=function(){var t=this.props.requestFocus;t?t(this.node):O?O=!1:this.node.contains(document.activeElement)||this.node.focus()},e.prototype.render=function(){var t=this,e=this.props,n=(e.children,e.style),r=(e.requestFocus,e.role),i=void 0===r?"group":r,a=e.component,c=void 0===a?"div":a,u=(e.uri,e.location,p(e,["children","style","requestFocus","role","component","uri","location"]));return o.a.createElement(c,f({style:f({outline:"none"},n),tabIndex:"-1",role:i,ref:function(e){return t.node=e}},u),o.a.createElement(S.Provider,{value:this.requestFocus},this.props.children))},e}(o.a.Component);Object(u.polyfill)(R);var A=function(){},j=o.a.forwardRef;void 0===j&&(j=function(t){return t});var C=j((function(t,e){var n=t.innerRef,r=p(t,["innerRef"]);return o.a.createElement(w.Consumer,null,(function(t){t.basepath;var i=t.baseuri;return o.a.createElement(y,null,(function(t){var a=t.location,c=t.navigate,u=r.to,l=r.state,d=r.replace,h=r.getProps,v=void 0===h?A:h,g=p(r,["to","state","replace","getProps"]),m=Object(s.d)(u,i),y=a.pathname===m,E=Object(s.e)(a.pathname,m);return o.a.createElement("a",f({ref:e||n,"aria-current":y?"page":void 0},g,v({isCurrent:y,isPartiallyCurrent:E,href:m,location:a}),{href:m,onClick:function(t){g.onClick&&g.onClick(t),H(t)&&(t.preventDefault(),c(m,{state:l,replace:d}))}}))}))}))}));function M(t){this.uri=t}var L=function(t){return t instanceof M},k=function(t){throw new M(t)},I=function(t){function e(){return d(this,e),h(this,t.apply(this,arguments))}return v(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.navigate,n=t.to,r=(t.from,t.replace),o=void 0===r||r,i=t.state,a=(t.noThrow,p(t,["navigate","to","from","replace","state","noThrow"]));Promise.resolve().then((function(){e(Object(s.a)(n,a),{replace:o,state:i})}))},e.prototype.render=function(){var t=this.props,e=(t.navigate,t.to),n=(t.from,t.replace,t.state,t.noThrow),r=p(t,["navigate","to","from","replace","state","noThrow"]);return n||k(Object(s.a)(e,r)),null},e}(o.a.Component),F=function(t){return o.a.createElement(y,null,(function(e){return o.a.createElement(I,f({},e,t))}))},N=function(t){var e=t.path,n=t.children;return o.a.createElement(w.Consumer,null,(function(t){var r=t.baseuri;return o.a.createElement(y,null,(function(t){var o=t.navigate,i=t.location,a=Object(s.d)(e,r),c=Object(s.b)(a,i.pathname);return n({navigate:o,location:i,match:c?f({},c.params,{uri:c.uri,path:e}):null})}))}))},U=function(t){return t.replace(/(^\/+|\/+$)/g,"")},D=function(t){return function(e){if(!e)return null;if(e.props.path||e.props.default||e.type===F||a()(!1),e.type!==F||e.props.from&&e.props.to||a()(!1),e.type!==F||Object(s.f)(e.props.from,e.props.to)||a()(!1),e.props.default)return{value:e,default:!0};var n=e.type===F?e.props.from:e.props.path,r="/"===n?t:U(t)+"/"+U(n);return{value:e,default:e.props.default,path:e.props.children?U(r)+"/*":r}}},H=function(t){return!t.defaultPrevented&&0===t.button&&!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}},Z2Ku:function(t,e,n){"use strict";var r=n("XKFU"),o=n("w2a5")(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n("nGyu")("includes")},Z6vF:function(t,e,n){var r=n("ylqs")("meta"),o=n("0/R4"),i=n("aagx"),a=n("hswa").f,c=0,u=Object.isExtensible||function(){return!0},s=!n("eeVq")((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,r,{value:{i:"O"+ ++c,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return s&&f.NEED&&u(t)&&!i(t,r)&&l(t),t}}},ZD67:function(t,e,n){"use strict";var r=n("3Lyj"),o=n("Z6vF").getWeak,i=n("y3w9"),a=n("0/R4"),c=n("9gX7"),u=n("SlkY"),s=n("CkkT"),l=n("aagx"),f=n("s5qY"),p=s(5),d=s(6),h=0,v=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},m=function(t,e){return p(t.a,(function(t){return t[0]===e}))};g.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=d(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var s=t((function(t,r){c(t,s,e,"_i"),t._t=e,t._i=h++,t._l=void 0,null!=r&&u(r,n,t[i],t)}));return r(s.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(f(this,e)).delete(t):n&&l(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=o(t);return!0===n?v(f(this,e)).has(t):n&&l(n,this._i)}}),s},def:function(t,e,n){var r=o(i(e),!0);return!0===r?v(t).set(e,n):r[t._i]=n,t},ufstore:v}},ZfQF:function(t,e,n){"use strict";var r=n("TqRt");e.__esModule=!0,e.default=function(t,e){var n=(0,o.default)(t);if(void 0===e)return n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:t.scrollTop;n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,e):t.scrollTop=e};var o=r(n("8Y+z"));t.exports=e.default},a1Th:function(t,e,n){"use strict";n("OEbY");var r=n("y3w9"),o=n("C/va"),i=n("nh4g"),a=/./.toString,c=function(t){n("KroJ")(RegExp.prototype,"toString",t,!0)};n("eeVq")((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?c((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=a.name&&c((function(){return a.call(this)}))},aCFj:function(t,e,n){var r=n("Ymqv"),o=n("vhPU");t.exports=function(t){return r(o(t))}},aagx:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},apmT:function(t,e,n){var r=n("0/R4");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},bWfx:function(t,e,n){"use strict";var r=n("XKFU"),o=n("CkkT")(1);r(r.P+r.F*!n("LyE8")([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},bmMU:function(t,e,n){"use strict";n("f3/d"),n("SRfc"),n("a1Th"),n("h7Nl"),n("Oyvg"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("LK8F");var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;t.exports=function(t,e){try{return function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){var c,u,s,l=r(e),f=r(n);if(l&&f){if((u=e.length)!=n.length)return!1;for(c=u;0!=c--;)if(!t(e[c],n[c]))return!1;return!0}if(l!=f)return!1;var p=e instanceof Date,d=n instanceof Date;if(p!=d)return!1;if(p&&d)return e.getTime()==n.getTime();var h=e instanceof RegExp,v=n instanceof RegExp;if(h!=v)return!1;if(h&&v)return e.toString()==n.toString();var g=o(e);if((u=g.length)!==o(n).length)return!1;for(c=u;0!=c--;)if(!i.call(n,g[c]))return!1;if(a&&e instanceof Element&&n instanceof Element)return e===n;for(c=u;0!=c--;)if(!("_owner"===(s=g[c])&&e.$$typeof||t(e[s],n[s])))return!1;return!0}return e!=e&&n!=n}(t,e)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||-2146828260===n.number)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}},c0Fl:function(t,e,n){"use strict";var r=n("TqRt");e.__esModule=!0,e.default=void 0;var o=function(){};r(n("Bp9Y")).default&&(o=document.addEventListener?function(t,e,n,r){return t.removeEventListener(e,n,r||!1)}:document.attachEvent?function(t,e,n){return t.detachEvent("on"+e,n)}:void 0);var i=o;e.default=i,t.exports=e.default},cSJ8:function(t,e,n){"use strict";e.a=function(t,e){return void 0===e&&(e=""),e?(e+="/",t.substr(0,e.length)===e?t.slice(e.length-1):t):t}},cu4x:function(t,e,n){"use strict";n("V+eJ"),e.__esModule=!0,e.parsePath=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");-1!==i&&(n=e.substr(i),e=e.substr(0,i));return{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}},czNK:function(t,e,n){"use strict";var r=n("nh4g"),o=n("DVgA"),i=n("JiEa"),a=n("UqcF"),c=n("S/j/"),u=n("Ymqv"),s=Object.assign;t.exports=!s||n("eeVq")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r}))?function(t,e){for(var n=c(t),s=arguments.length,l=1,f=i.f,p=a.f;s>l;)for(var d,h=u(arguments[l++]),v=f?o(h).concat(f(h)):o(h),g=v.length,m=0;g>m;)d=v[m++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:s},"d/Gc":function(t,e,n){var r=n("RYi7"),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},"dZ+Y":function(t,e,n){"use strict";var r=n("XKFU"),o=n("CkkT")(3);r(r.P+r.F*!n("LyE8")([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},dyZX:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e7yV:function(t,e,n){var r=n("aCFj"),o=n("kJMx").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(e){return a.slice()}}(t):o(r(t))}},eM6i:function(t,e,n){var r=n("XKFU");r(r.S,"Date",{now:function(){return(new Date).getTime()}})},eeVq:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},elZq:function(t,e,n){"use strict";var r=n("dyZX"),o=n("hswa"),i=n("nh4g"),a=n("K0xU")("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},emEt:function(t,e,n){"use strict";n.r(e);n("HEwt"),n("a1Th"),n("rE2o"),n("ioFf"),n("T39b"),n("rGqo"),n("yt8O"),n("XfO3"),n("9AAn"),n("Z2Ku"),n("L9s1"),n("91GP"),n("VRzm"),n("Btvt"),n("rvZc"),n("RW0V");var r=function(t){if("undefined"==typeof document)return!1;var e=document.createElement("link");try{if(e.relList&&"function"==typeof e.relList.supports)return e.relList.supports(t)}catch(n){return!1}return!1}("prefetch")?function(t,e){return new Promise((function(n,r){if("undefined"!=typeof document){var o=document.createElement("link");o.setAttribute("rel","prefetch"),o.setAttribute("href",t),Object.keys(e).forEach((function(t){o.setAttribute(t,e[t])})),o.onload=n,o.onerror=r,(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(o)}else r()}))}:function(t){return new Promise((function(e,n){var r=new XMLHttpRequest;r.open("GET",t,!0),r.onload=function(){200===r.status?e():n()},r.send(null)}))},o={},i=function(t,e){return new Promise((function(n){o[t]?n():r(t,e).then((function(){n(),o[t]=!0})).catch((function(){}))}))},a=n("5yr3"),c=(n("KKXr"),n("LYrO")),u=n("cSJ8"),s=function(t){return void 0===t?t:"/"===t?"/":"/"===t.charAt(t.length-1)?t.slice(0,-1):t},l=new Map,f=[],p=function(t){var e=decodeURIComponent(t);return Object(u.a)(e,"").split("#")[0].split("?")[0]},d=function(t){f=t},h=function(t){var e=g(t),n=f,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i,u=a.matchPath,l=a.path;if(Object(c.b)(u,e))return s(l)}return null},v=function(t){var e=p(t);if(l.has(e))return l.get(e);var n=h(e);return n||(n=g(t)),l.set(e,n),n},g=function(t){var e=p(t);return"/index.html"===e&&(e="/"),e=s(e)};function m(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(e,"BaseLoader",(function(){return S})),n.d(e,"ProdLoader",(function(){return O})),n.d(e,"setLoader",(function(){return x})),n.d(e,"publicLoader",(function(){return R}));var y,E=function(t){return t&&t.default||t},b=function(t){var e;return"/page-data/"+("/"===t?"index":e=(e="/"===(e=t)[0]?e.slice(1):e).endsWith("/")?e.slice(0,-1):e)+"/page-data.json"},w=function(t,e){return void 0===e&&(e="GET"),new Promise((function(n,r){var o=new XMLHttpRequest;o.open(e,t,!0),o.onreadystatechange=function(){4==o.readyState&&n(o)},o.send(null)}))},T=function(t){var e=t.pagePath,n=t.retries,r=void 0===n?0:n,o=b(e);return w(o).then((function(n){var o=n.status,i=n.responseText;if(200===o)try{var a=JSON.parse(i);if(void 0===a.path)throw new Error("not a valid pageData response");return Object.assign(t,{status:"success",payload:a})}catch(c){}return 404===o||200===o?"/404.html"===e?Object.assign(t,{status:"failure"}):T(Object.assign(t,{pagePath:"/404.html",notFound:!0})):500===o?Object.assign(t,{status:"error"}):r<3?T(Object.assign(t,{retries:r+1})):Object.assign(t,{status:"error"})}))},_=function(t,e){void 0===e&&(e=null);var n={componentChunkName:t.componentChunkName,path:t.path,webpackCompilationHash:t.webpackCompilationHash,matchPath:t.matchPath};return{component:e,json:t.result,page:n}},S=function(){function t(t,e){this.pageDb=new Map,this.inFlightDb=new Map,this.pageDataDb=new Map,this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=t,d(e)}var e=t.prototype;return e.setApiRunner=function(t){this.apiRunner=t,this.prefetchDisabled=t("disableCorePrefetching").some((function(t){return t}))},e.loadPageDataJson=function(t){var e=this,n=v(t);return this.pageDataDb.has(n)?Promise.resolve(this.pageDataDb.get(n)):T({pagePath:n}).then((function(t){return e.pageDataDb.set(n,t),t}))},e.findMatchPath=function(t){return h(t)},e.loadPage=function(t){var e=this,n=v(t);if(this.pageDb.has(n)){var r=this.pageDb.get(n);return Promise.resolve(r.payload)}if(this.inFlightDb.has(n))return this.inFlightDb.get(n);var o=Promise.all([this.loadAppData(),this.loadPageDataJson(n)]).then((function(t){var r=t[1];if("error"===r.status)return{status:"error"};if("failure"===r.status)throw new Error("404 page could not be found. Checkout https://www.gatsbyjs.org/docs/add-404-page/");var o=r.payload,i=o.componentChunkName;return e.loadComponent(i).then((function(i){var c,u={createdAt:new Date};return i?(u.status="success",!0===r.notFound&&(u.notFound=!0),o=Object.assign(o,{webpackCompilationHash:t[0]?t[0].webpackCompilationHash:""}),c=_(o,i),u.payload=c,a.a.emit("onPostLoadPageResources",{page:c,pageResources:c})):u.status="error",e.pageDb.set(n,u),c}))})).then((function(t){return e.inFlightDb.delete(n),t})).catch((function(t){throw e.inFlightDb.delete(n),t}));return this.inFlightDb.set(n,o),o},e.loadPageSync=function(t){var e=v(t);if(this.pageDb.has(e))return this.pageDb.get(e).payload},e.shouldPrefetch=function(t){return!!function(){if("connection"in navigator&&void 0!==navigator.connection){if((navigator.connection.effectiveType||"").includes("2g"))return!1;if(navigator.connection.saveData)return!1}return!0}()&&!this.pageDb.has(t)},e.prefetch=function(t){var e=this;if(!this.shouldPrefetch(t))return!1;if(this.prefetchTriggered.has(t)||(this.apiRunner("onPrefetchPathname",{pathname:t}),this.prefetchTriggered.add(t)),this.prefetchDisabled)return!1;var n=v(t);return this.doPrefetch(n).then((function(){e.prefetchCompleted.has(t)||(e.apiRunner("onPostPrefetchPathname",{pathname:t}),e.prefetchCompleted.add(t))})),!0},e.doPrefetch=function(t){throw new Error("doPrefetch not implemented")},e.hovering=function(t){this.loadPage(t)},e.getResourceURLsForPathname=function(t){var e=v(t),n=this.pageDataDb.get(e);if(n){var r=_(n.payload);return[].concat(m(P(r.page.componentChunkName)),[b(e)])}return null},e.isPageNotFound=function(t){var e=v(t),n=this.pageDb.get(e);return n&&!0===n.notFound},e.loadAppData=function(t){var e=this;return void 0===t&&(t=0),w("/page-data/app-data.json").then((function(n){var r,o=n.status,i=n.responseText;if(200!==o&&t<3)return e.loadAppData(t+1);if(200===o)try{var a=JSON.parse(i);if(void 0===a.webpackCompilationHash)throw new Error("not a valid app-data response");r=a}catch(c){}return r}))},t}(),P=function(t){return window.___chunkMapping[t].map((function(t){return""+t}))},O=function(t){var e,n;function r(e,n){return t.call(this,(function(t){return e.components[t]().then(E)}),n)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.doPrefetch=function(t){var e=this,n=b(t);return i(n,{crossOrigin:"anonymous",as:"fetch"}).then((function(){return e.loadPageDataJson(t)})).then((function(t){if("success"!==t.status)return Promise.resolve();var e=t.payload,n=e.componentChunkName,r=P(n);return Promise.all(r.map(i)).then((function(){return e}))}))},r}(S),x=function(t){y=t},R={getResourcesForPathname:function(t){return console.warn("Warning: getResourcesForPathname is deprecated. Use loadPage instead"),y.i.loadPage(t)},getResourcesForPathnameSync:function(t){return console.warn("Warning: getResourcesForPathnameSync is deprecated. Use loadPageSync instead"),y.i.loadPageSync(t)},enqueue:function(t){return y.prefetch(t)},getResourceURLsForPathname:function(t){return y.getResourceURLsForPathname(t)},loadPage:function(t){return y.loadPage(t)},loadPageSync:function(t){return y.loadPageSync(t)},prefetch:function(t){return y.prefetch(t)},isPageNotFound:function(t){return y.isPageNotFound(t)},hovering:function(t){return y.hovering(t)},loadAppData:function(){return y.loadAppData()}};e.default=R},eyMr:function(t,e,n){var r=n("2OiF"),o=n("S/j/"),i=n("Ymqv"),a=n("ne8i");t.exports=function(t,e,n,c,u){r(e);var s=o(t),l=i(s),f=a(s.length),p=u?f-1:0,d=u?-1:1;if(n<2)for(;;){if(p in l){c=l[p],p+=d;break}if(p+=d,u?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;u?p>=0:f>p;p+=d)p in l&&(c=e(c,l[p],p,s));return c}},"f3/d":function(t,e,n){var r=n("hswa").f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n("nh4g")&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},fyDq:function(t,e,n){var r=n("hswa").f,o=n("aagx"),i=n("K0xU")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},g3g5:function(t,e){var n=t.exports={version:"2.6.10"};"number"==typeof __e&&(__e=n)},g6HL:function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},gHnn:function(t,e,n){var r=n("dyZX"),o=n("GZEu").set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,c=r.Promise,u="process"==n("LZWt")(a);t.exports=function(){var t,e,n,s=function(){var r,o;for(u&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(i){throw t?n():e=void 0,i}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(s)};else if(!i||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var l=c.resolve(void 0);n=function(){l.then(s)}}else n=function(){o.call(r,s)};else{var f=!0,p=document.createTextNode("");new i(s).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},gSxY:function(t,e,n){"use strict";e.wrapPageElement=n("yHiX")},h7Nl:function(t,e,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n("KroJ")(r,"toString",(function(){var t=i.call(this);return t==t?o.call(this):"Invalid Date"}))},"hFT/":function(t,e,n){n("DNiP"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("bWfx"),e.__esModule=!0;e.ATTRIBUTE_NAMES={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"};var r=e.TAG_NAMES={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},o=(e.VALID_TAG_NAMES=Object.keys(r).map((function(t){return r[t]})),e.TAG_PROPERTIES={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src"},e.REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"});e.HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},e.HTML_TAG_MAP=Object.keys(o).reduce((function(t,e){return t[o[e]]=e,t}),{}),e.SELF_CLOSING_TAGS=[r.NOSCRIPT,r.SCRIPT,r.STYLE],e.HELMET_ATTRIBUTE="data-react-helmet"},hHhE:function(t,e,n){var r=n("XKFU");r(r.S,"Object",{create:n("Kuth")})},hPIQ:function(t,e){t.exports={}},hswa:function(t,e,n){var r=n("y3w9"),o=n("xpql"),i=n("apmT"),a=Object.defineProperty;e.f=n("nh4g")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(c){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},i5dc:function(t,e,n){var r=n("0/R4"),o=n("y3w9"),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n("m0Pp")(Function.call,n("EemH").f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(o){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},ioFf:function(t,e,n){"use strict";var r=n("dyZX"),o=n("aagx"),i=n("nh4g"),a=n("XKFU"),c=n("KroJ"),u=n("Z6vF").KEY,s=n("eeVq"),l=n("VTer"),f=n("fyDq"),p=n("ylqs"),d=n("K0xU"),h=n("N8g3"),v=n("OnI7"),g=n("1MBn"),m=n("EWmC"),y=n("y3w9"),E=n("0/R4"),b=n("S/j/"),w=n("aCFj"),T=n("apmT"),_=n("RjD/"),S=n("Kuth"),P=n("e7yV"),O=n("EemH"),x=n("JiEa"),R=n("hswa"),A=n("DVgA"),j=O.f,C=R.f,M=P.f,L=r.Symbol,k=r.JSON,I=k&&k.stringify,F=d("_hidden"),N=d("toPrimitive"),U={}.propertyIsEnumerable,D=l("symbol-registry"),H=l("symbols"),G=l("op-symbols"),q=Object.prototype,K="function"==typeof L&&!!x.f,W=r.QObject,B=!W||!W.prototype||!W.prototype.findChild,X=i&&s((function(){return 7!=S(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=j(q,e);r&&delete q[e],C(t,e,n),r&&t!==q&&C(q,e,r)}:C,V=function(t){var e=H[t]=S(L.prototype);return e._k=t,e},Y=K&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Z=function(t,e,n){return t===q&&Z(G,e,n),y(t),e=T(e,!0),y(n),o(H,e)?(n.enumerable?(o(t,F)&&t[F][e]&&(t[F][e]=!1),n=S(n,{enumerable:_(0,!1)})):(o(t,F)||C(t,F,_(1,{})),t[F][e]=!0),X(t,e,n)):C(t,e,n)},J=function(t,e){y(t);for(var n,r=g(e=w(e)),o=0,i=r.length;i>o;)Z(t,n=r[o++],e[n]);return t},z=function(t){var e=U.call(this,t=T(t,!0));return!(this===q&&o(H,t)&&!o(G,t))&&(!(e||!o(this,t)||!o(H,t)||o(this,F)&&this[F][t])||e)},Q=function(t,e){if(t=w(t),e=T(e,!0),t!==q||!o(H,e)||o(G,e)){var n=j(t,e);return!n||!o(H,e)||o(t,F)&&t[F][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=M(w(t)),r=[],i=0;n.length>i;)o(H,e=n[i++])||e==F||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===q,r=M(n?G:w(t)),i=[],a=0;r.length>a;)!o(H,e=r[a++])||n&&!o(q,e)||i.push(H[e]);return i};K||(c((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===q&&e.call(G,n),o(this,F)&&o(this[F],t)&&(this[F][t]=!1),X(this,t,_(1,n))};return i&&B&&X(q,t,{configurable:!0,set:e}),V(t)}).prototype,"toString",(function(){return this._k})),O.f=Q,R.f=Z,n("kJMx").f=P.f=$,n("UqcF").f=z,x.f=tt,i&&!n("LQAc")&&c(q,"propertyIsEnumerable",z,!0),h.f=function(t){return V(d(t))}),a(a.G+a.W+a.F*!K,{Symbol:L});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var rt=A(d.store),ot=0;rt.length>ot;)v(rt[ot++]);a(a.S+a.F*!K,"Symbol",{for:function(t){return o(D,t+="")?D[t]:D[t]=L(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!K,"Object",{create:function(t,e){return void 0===e?S(t):J(S(t),e)},defineProperty:Z,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:tt});var it=s((function(){x.f(1)}));a(a.S+a.F*it,"Object",{getOwnPropertySymbols:function(t){return x.f(b(t))}}),k&&a(a.S+a.F*(!K||s((function(){var t=L();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(E(e)||void 0!==t)&&!Y(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Y(e))return e}),r[1]=e,I.apply(k,r)}}),L.prototype[N]||n("Mukb")(L.prototype,N,L.prototype.valueOf),f(L,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},kJMx:function(t,e,n){var r=n("zhAb"),o=n("4R4u").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},lSNA:function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},lw3w:function(t,e,n){var r;t.exports=(r=n("rzlk"))&&r.default||r},m0Pp:function(t,e,n){var r=n("2OiF");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},nGyu:function(t,e,n){var r=n("K0xU")("unscopables"),o=Array.prototype;null==o[r]&&n("Mukb")(o,r,{}),t.exports=function(t){o[r][t]=!0}},nICZ:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},ne8i:function(t,e,n){var r=n("RYi7"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},nh4g:function(t,e,n){t.exports=!n("eeVq")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},ol8x:function(t,e,n){var r=n("dyZX").navigator;t.exports=r&&r.userAgent||""},pCP8:function(t,e,n){e.components={"component---src-templates-product-page-js":function(){return Promise.all([n.e(0),n.e(4)]).then(n.bind(null,"5cVX"))},"component---src-pages-index-js":function(){return n.e(2).then(n.bind(null,"RXBc"))},"component---src-pages-products-js":function(){return Promise.all([n.e(0),n.e(3)]).then(n.bind(null,"mTwM"))}}},pIFo:function(t,e,n){"use strict";var r=n("y3w9"),o=n("S/j/"),i=n("ne8i"),a=n("RYi7"),c=n("A5AN"),u=n("Xxuz"),s=Math.max,l=Math.min,f=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;n("IU+Z")("replace",2,(function(t,e,n,h){return[function(r,o){var i=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=h(n,t,this,e);if(o.done)return o.value;var f=r(t),p=String(this),d="function"==typeof e;d||(e=String(e));var g=f.global;if(g){var m=f.unicode;f.lastIndex=0}for(var y=[];;){var E=u(f,p);if(null===E)break;if(y.push(E),!g)break;""===String(E[0])&&(f.lastIndex=c(p,i(f.lastIndex),m))}for(var b,w="",T=0,_=0;_<y.length;_++){E=y[_];for(var S=String(E[0]),P=s(l(a(E.index),p.length),0),O=[],x=1;x<E.length;x++)O.push(void 0===(b=E[x])?b:String(b));var R=E.groups;if(d){var A=[S].concat(O,P,p);void 0!==R&&A.push(R);var j=String(e.apply(void 0,A))}else j=v(S,p,P,O,R,e);P>=T&&(w+=p.slice(T,P)+j,T=P+S.length)}return w+p.slice(T)}];function v(t,e,r,i,a,c){var u=r+t.length,s=i.length,l=d;return void 0!==a&&(a=o(a),l=p),n.call(c,l,(function(n,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":c=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return n;if(l>s){var p=f(l/10);return 0===p?n:p<=s?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}c=i[l-1]}return void 0===c?"":c}))}}))},pVnL:function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}t.exports=n},pbhE:function(t,e,n){"use strict";var r=n("2OiF");function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},"q5+k":function(t,e,n){"use strict";n("dZ+Y");var r=n("TqRt");e.__esModule=!0,e.default=void 0;var o,i=r(n("Bp9Y")),a="clearTimeout",c=function(t){var e=(new Date).getTime(),n=Math.max(0,16-(e-s)),r=setTimeout(t,n);return s=e,r},u=function(t,e){return t+(t?e[0].toUpperCase()+e.substr(1):e)+"AnimationFrame"};i.default&&["","webkit","moz","o","ms"].some((function(t){var e=u(t,"request");if(e in window)return a=u(t,"cancel"),c=function(t){return window[e](t)}}));var s=(new Date).getTime();(o=function(t){return c(t)}).cancel=function(t){window[a]&&"function"==typeof window[a]&&window[a](t)};var l=o;e.default=l,t.exports=e.default},qncB:function(t,e,n){var r=n("XKFU"),o=n("vhPU"),i=n("eeVq"),a=n("/e88"),c="["+a+"]",u=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),l=function(t,e,n){var o={},c=i((function(){return!!a[t]()||"
"!="
"[t]()})),u=o[t]=c?e(f):a[t];n&&(o[n]=u),r(r.P+r.F*c,"String",o)},f=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(s,"")),t};t.exports=l},quPj:function(t,e,n){var r=n("0/R4"),o=n("LZWt"),i=n("K0xU")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},rE2o:function(t,e,n){n("OnI7")("asyncIterator")},rGqo:function(t,e,n){for(var r=n("yt8O"),o=n("DVgA"),i=n("KroJ"),a=n("dyZX"),c=n("Mukb"),u=n("hPIQ"),s=n("K0xU"),l=s("iterator"),f=s("toStringTag"),p=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(d),v=0;v<h.length;v++){var g,m=h[v],y=d[m],E=a[m],b=E&&E.prototype;if(b&&(b[l]||c(b,l,p),b[f]||c(b,f,m),u[m]=p,y))for(g in r)b[g]||i(b,g,r[g],!0)}},raBC:function(t,e,n){"use strict";var r=n("TqRt");e.__esModule=!0,e.default=void 0;var o=function(){};r(n("Bp9Y")).default&&(o=document.addEventListener?function(t,e,n,r){return t.addEventListener(e,n,r||!1)}:document.attachEvent?function(t,e,n){return t.attachEvent("on"+e,(function(e){(e=e||window.event).target=e.target||e.srcElement,e.currentTarget=t,n.call(t,e)}))}:void 0);var i=o;e.default=i,t.exports=e.default},rvZc:function(t,e,n){"use strict";var r=n("XKFU"),o=n("ne8i"),i=n("0sh+"),a="".endsWith;r(r.P+r.F*n("UUeW")("endsWith"),"String",{endsWith:function(t){var e=i(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),c=void 0===n?r:Math.min(o(n),r),u=String(t);return a?a.call(e,u,c):e.slice(c-u.length,c)===u}})},rzlk:function(t,e,n){"use strict";n.r(e);n("91GP");var r=n("q1tI"),o=n.n(r),i=n("IOVJ");e.default=function(t){var e=t.location,n=t.pageResources;return n?o.a.createElement(i.a,Object.assign({location:e,pageResources:n},n.json)):null}},s5qY:function(t,e,n){var r=n("0/R4");t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},sMXx:function(t,e,n){"use strict";var r=n("Ugos");n("XKFU")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},v1p5:function(t,e,n){(function(t){n("dZ+Y"),n("KKXr"),n("eM6i"),n("8+KV"),n("LK8F"),n("V+eJ"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("0l/t"),n("bWfx"),n("DNiP"),n("pIFo"),n("91GP"),n("rE2o"),n("ioFf"),e.__esModule=!0,e.warn=e.requestAnimationFrame=e.reducePropsToState=e.mapStateOnServer=e.handleClientStateChange=e.convertReactPropstoHtmlAttributes=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=u(n("q1tI")),a=u(n("MgzW")),c=n("hFT/");function u(t){return t&&t.__esModule?t:{default:t}}var s,l=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===e?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},f=function(t){var e=g(t,c.TAG_NAMES.TITLE),n=g(t,c.HELMET_PROPS.TITLE_TEMPLATE);if(n&&e)return n.replace(/%s/g,(function(){return e}));var r=g(t,c.HELMET_PROPS.DEFAULT_TITLE);return e||r||void 0},p=function(t){return g(t,c.HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||function(){}},d=function(t,e){return e.filter((function(e){return void 0!==e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return o({},t,e)}),{})},h=function(t,e){return e.filter((function(t){return void 0!==t[c.TAG_NAMES.BASE]})).map((function(t){return t[c.TAG_NAMES.BASE]})).reverse().reduce((function(e,n){if(!e.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==t.indexOf(i)&&n[i])return e.concat(n)}return e}),[])},v=function(t,e,n){var o={};return n.filter((function(e){return!!Array.isArray(e[t])||(void 0!==e[t]&&w("Helmet: "+t+' should be of type "Array". Instead found type "'+r(e[t])+'"'),!1)})).map((function(e){return e[t]})).reverse().reduce((function(t,n){var r={};n.filter((function(t){for(var n=void 0,i=Object.keys(t),a=0;a<i.length;a++){var u=i[a],s=u.toLowerCase();-1===e.indexOf(s)||n===c.TAG_PROPERTIES.REL&&"canonical"===t[n].toLowerCase()||s===c.TAG_PROPERTIES.REL&&"stylesheet"===t[s].toLowerCase()||(n=s),-1===e.indexOf(u)||u!==c.TAG_PROPERTIES.INNER_HTML&&u!==c.TAG_PROPERTIES.CSS_TEXT&&u!==c.TAG_PROPERTIES.ITEM_PROP||(n=u)}if(!n||!t[n])return!1;var l=t[n].toLowerCase();return o[n]||(o[n]={}),r[n]||(r[n]={}),!o[n][l]&&(r[n][l]=!0,!0)})).reverse().forEach((function(e){return t.push(e)}));for(var i=Object.keys(r),u=0;u<i.length;u++){var s=i[u],l=(0,a.default)({},o[s],r[s]);o[s]=l}return t}),[]).reverse()},g=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.hasOwnProperty(e))return r[e]}return null},m=(s=Date.now(),function(t){var e=Date.now();e-s>16?(s=e,t(e)):setTimeout((function(){m(t)}),0)}),y=function(t){return clearTimeout(t)},E="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||m:t.requestAnimationFrame||m,b="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||y:t.cancelAnimationFrame||y,w=function(t){return console&&"function"==typeof console.warn&&console.warn(t)},T=null,_=function(t,e){var n=t.baseTag,r=t.bodyAttributes,o=t.htmlAttributes,i=t.linkTags,a=t.metaTags,u=t.noscriptTags,s=t.onChangeClientState,l=t.scriptTags,f=t.styleTags,p=t.title,d=t.titleAttributes;O(c.TAG_NAMES.BODY,r),O(c.TAG_NAMES.HTML,o),P(p,d);var h={baseTag:x(c.TAG_NAMES.BASE,n),linkTags:x(c.TAG_NAMES.LINK,i),metaTags:x(c.TAG_NAMES.META,a),noscriptTags:x(c.TAG_NAMES.NOSCRIPT,u),scriptTags:x(c.TAG_NAMES.SCRIPT,l),styleTags:x(c.TAG_NAMES.STYLE,f)},v={},g={};Object.keys(h).forEach((function(t){var e=h[t],n=e.newTags,r=e.oldTags;n.length&&(v[t]=n),r.length&&(g[t]=h[t].oldTags)})),e&&e(),s(t,v,g)},S=function(t){return Array.isArray(t)?t.join(""):t},P=function(t,e){void 0!==t&&document.title!==t&&(document.title=S(t)),O(c.TAG_NAMES.TITLE,e)},O=function(t,e){var n=document.getElementsByTagName(t)[0];if(n){for(var r=n.getAttribute(c.HELMET_ATTRIBUTE),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(e),u=0;u<a.length;u++){var s=a[u],l=e[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),-1===o.indexOf(s)&&o.push(s);var f=i.indexOf(s);-1!==f&&i.splice(f,1)}for(var p=i.length-1;p>=0;p--)n.removeAttribute(i[p]);o.length===i.length?n.removeAttribute(c.HELMET_ATTRIBUTE):n.getAttribute(c.HELMET_ATTRIBUTE)!==a.join(",")&&n.setAttribute(c.HELMET_ATTRIBUTE,a.join(","))}},x=function(t,e){var n=document.head||document.querySelector(c.TAG_NAMES.HEAD),r=n.querySelectorAll(t+"["+c.HELMET_ATTRIBUTE+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var r in e)if(e.hasOwnProperty(r))if(r===c.TAG_PROPERTIES.INNER_HTML)n.innerHTML=e.innerHTML;else if(r===c.TAG_PROPERTIES.CSS_TEXT)n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText));else{var u=void 0===e[r]?"":e[r];n.setAttribute(r,u)}n.setAttribute(c.HELMET_ATTRIBUTE,"true"),o.some((function(t,e){return a=e,n.isEqualNode(t)}))?o.splice(a,1):i.push(n)})),o.forEach((function(t){return t.parentNode.removeChild(t)})),i.forEach((function(t){return n.appendChild(t)})),{oldTags:o,newTags:i}},R=function(t){return Object.keys(t).reduce((function(e,n){var r=void 0!==t[n]?n+'="'+t[n]+'"':""+n;return e?e+" "+r:r}),"")},A=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[c.REACT_TAG_MAP[n]||n]=t[n],e}),e)},j=function(t,e,n){switch(t){case c.TAG_NAMES.TITLE:return{toComponent:function(){return t=e.title,n=e.titleAttributes,(r={key:t})[c.HELMET_ATTRIBUTE]=!0,o=A(n,r),[i.default.createElement(c.TAG_NAMES.TITLE,o,t)];var t,n,r,o},toString:function(){return function(t,e,n,r){var o=R(n),i=S(e);return o?"<"+t+" "+c.HELMET_ATTRIBUTE+'="true" '+o+">"+l(i,r)+"</"+t+">":"<"+t+" "+c.HELMET_ATTRIBUTE+'="true">'+l(i,r)+"</"+t+">"}(t,e.title,e.titleAttributes,n)}};case c.ATTRIBUTE_NAMES.BODY:case c.ATTRIBUTE_NAMES.HTML:return{toComponent:function(){return A(e)},toString:function(){return R(e)}};default:return{toComponent:function(){return function(t,e){return e.map((function(e,n){var r,o=((r={key:n})[c.HELMET_ATTRIBUTE]=!0,r);return Object.keys(e).forEach((function(t){var n=c.REACT_TAG_MAP[t]||t;if(n===c.TAG_PROPERTIES.INNER_HTML||n===c.TAG_PROPERTIES.CSS_TEXT){var r=e.innerHTML||e.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=e[t]})),i.default.createElement(t,o)}))}(t,e)},toString:function(){return function(t,e,n){return e.reduce((function(e,r){var o=Object.keys(r).filter((function(t){return!(t===c.TAG_PROPERTIES.INNER_HTML||t===c.TAG_PROPERTIES.CSS_TEXT)})).reduce((function(t,e){var o=void 0===r[e]?e:e+'="'+l(r[e],n)+'"';return t?t+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===c.SELF_CLOSING_TAGS.indexOf(t);return e+"<"+t+" "+c.HELMET_ATTRIBUTE+'="true" '+o+(a?"/>":">"+i+"</"+t+">")}),"")}(t,e,n)}}}};e.convertReactPropstoHtmlAttributes=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[c.HTML_TAG_MAP[n]||n]=t[n],e}),e)},e.handleClientStateChange=function(t){T&&b(T),t.defer?T=E((function(){_(t,(function(){T=null}))})):(_(t),T=null)},e.mapStateOnServer=function(t){var e=t.baseTag,n=t.bodyAttributes,r=t.encode,o=t.htmlAttributes,i=t.linkTags,a=t.metaTags,u=t.noscriptTags,s=t.scriptTags,l=t.styleTags,f=t.title,p=void 0===f?"":f,d=t.titleAttributes;return{base:j(c.TAG_NAMES.BASE,e,r),bodyAttributes:j(c.ATTRIBUTE_NAMES.BODY,n,r),htmlAttributes:j(c.ATTRIBUTE_NAMES.HTML,o,r),link:j(c.TAG_NAMES.LINK,i,r),meta:j(c.TAG_NAMES.META,a,r),noscript:j(c.TAG_NAMES.NOSCRIPT,u,r),script:j(c.TAG_NAMES.SCRIPT,s,r),style:j(c.TAG_NAMES.STYLE,l,r),title:j(c.TAG_NAMES.TITLE,{title:p,titleAttributes:d},r)}},e.reducePropsToState=function(t){return{baseTag:h([c.TAG_PROPERTIES.HREF],t),bodyAttributes:d(c.ATTRIBUTE_NAMES.BODY,t),defer:g(t,c.HELMET_PROPS.DEFER),encode:g(t,c.HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:d(c.ATTRIBUTE_NAMES.HTML,t),linkTags:v(c.TAG_NAMES.LINK,[c.TAG_PROPERTIES.REL,c.TAG_PROPERTIES.HREF],t),metaTags:v(c.TAG_NAMES.META,[c.TAG_PROPERTIES.NAME,c.TAG_PROPERTIES.CHARSET,c.TAG_PROPERTIES.HTTPEQUIV,c.TAG_PROPERTIES.PROPERTY,c.TAG_PROPERTIES.ITEM_PROP],t),noscriptTags:v(c.TAG_NAMES.NOSCRIPT,[c.TAG_PROPERTIES.INNER_HTML],t),onChangeClientState:p(t),scriptTags:v(c.TAG_NAMES.SCRIPT,[c.TAG_PROPERTIES.SRC,c.TAG_PROPERTIES.INNER_HTML],t),styleTags:v(c.TAG_NAMES.STYLE,[c.TAG_PROPERTIES.CSS_TEXT],t),title:f(t),titleAttributes:d(c.ATTRIBUTE_NAMES.TITLE,t)}},e.requestAnimationFrame=E,e.warn=w}).call(this,n("yLpj"))},vKrd:function(t,e,n){var r=n("y3w9"),o=n("0/R4"),i=n("pbhE");t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},vf9c:function(t){t.exports=JSON.parse("[]")},vhPU:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},w2a5:function(t,e,n){var r=n("aCFj"),o=n("ne8i"),i=n("d/Gc");t.exports=function(t){return function(e,n,a){var c,u=r(e),s=o(u.length),l=i(a,s);if(t&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},wCsR:function(t,e,n){"use strict";var r=n("ZD67"),o=n("s5qY");n("4LiD")("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},wmvG:function(t,e,n){"use strict";var r=n("hswa").f,o=n("Kuth"),i=n("3Lyj"),a=n("m0Pp"),c=n("9gX7"),u=n("SlkY"),s=n("Afnz"),l=n("1TsA"),f=n("elZq"),p=n("nh4g"),d=n("Z6vF").fastKey,h=n("s5qY"),v=p?"_s":"size",g=function(t,e){var n,r=d(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,s){var l=t((function(t,r){c(t,l,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[v]=0,null!=r&&u(r,n,t[s],t)}));return i(l.prototype,{clear:function(){for(var t=h(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var n=h(this,e),r=g(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[v]--}return!!r},forEach:function(t){h(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(h(this,e),t)}}),p&&r(l.prototype,"size",{get:function(){return h(this,e)[v]}}),l},def:function(t,e,n){var r,o,i=g(t,e);return i?i.v=n:(t._l=i={i:o=d(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[v]++,"F"!==o&&(t._i[o]=i)),t},getEntry:g,setStrong:function(t,e,n){s(t,e,(function(t,n){this._t=h(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?l(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(e)}}},xpql:function(t,e,n){t.exports=!n("nh4g")&&!n("eeVq")((function(){return 7!=Object.defineProperty(n("Iw71")("div"),"a",{get:function(){return 7}}).a}))},xtsi:function(t,e,n){n("VRzm"),n("Btvt");var r=n("LeKB"),o=n("emEt").publicLoader,i=o.getResourcesForPathname,a=o.getResourcesForPathnameSync,c=o.getResourceURLsForPathname,u=o.loadPage,s=o.loadPageSync;e.apiRunner=function(t,e,n,o){void 0===e&&(e={});var l=r.map((function(n){if(n.plugin[t]){e.getResourcesForPathnameSync=a,e.getResourcesForPathname=i,e.getResourceURLsForPathname=c,e.loadPage=u,e.loadPageSync=s;var r=n.plugin[t](e,n.options);return r&&o&&(e=o({args:e,result:r,plugin:n})),r}}));return(l=l.filter((function(t){return void 0!==t}))).length>0?l:n?[n]:[]},e.apiRunnerAsync=function(t,e,n){return r.reduce((function(n,r){return r.plugin[t]?n.then((function(){return r.plugin[t](e,r.options)})):n}),Promise.resolve())}},y3w9:function(t,e,n){var r=n("0/R4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},yHiX:function(t,e,n){"use strict";n("a1Th"),n("Btvt");var r,o,i=n("q1tI");try{o=n("Bl7J"),r=o&&o.default||o}catch(a){throw-1!==a.toString().indexOf("Error: Cannot find module")?new Error("Couldn't find layout component at \"C:\\Users\\HP.COM\\Desktop\\cunchy-bread\\src\\components\\layout.js.\n\nPlease create layout component in that location or specify path to layout component in gatsby-config.js"):(console.error(a),a)}t.exports=function(t){var e=t.element,n=t.props;return i.createElement(r,n,e)}},yLpj:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"==typeof window&&(n=window)}t.exports=n},ylqs:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},yt8O:function(t,e,n){"use strict";var r=n("nGyu"),o=n("1TsA"),i=n("hPIQ"),a=n("aCFj");t.exports=n("Afnz")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},zRwo:function(t,e,n){var r=n("6FMO");t.exports=function(t,e){return new(r(t))(e)}},zhAb:function(t,e,n){var r=n("aagx"),o=n("aCFj"),i=n("w2a5")(!1),a=n("YTvA")("IE_PROTO");t.exports=function(t,e){var n,c=o(t),u=0,s=[];for(n in c)n!=a&&r(c,n)&&s.push(n);for(;e.length>u;)r(c,n=e[u++])&&(~i(s,n)||s.push(n));return s}}},[["UxWs",6,5,0]]]);
//# sourceMappingURL=app-330d4a8aad9f64faaa1c.js.map
|
import snackbar from ".";
export const SNACKBAR_REQUEST = snackbar.defineType("SNACKBAR_REQUEST");
export const SNACKBAR_CLEAR = snackbar.defineType("SNACKBAR_CLEAR");
export const SNACKBAR_CLEAR_DUCK = snackbar.defineType("SNACKBAR_CLEAR_DUCK");
|
module.exports = {
capitalizeFirstLetter: function (string) {
return string.charAt(0).toUpperCase() + string.slice(1)
},
aRandom: function (length) {
return Math.floor(Math.random() * length)
}
}
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Custom bindings for the mojoPrivate API.
*/
let binding = apiBridge || require('binding').Binding.create('mojoPrivate');
binding.registerCustomHook(function(bindingsAPI) {
let apiFunctions = bindingsAPI.apiFunctions;
apiFunctions.setHandleRequest('requireAsync', function(moduleName) {
return Promise.resolve(require(moduleName).returnValue);
});
});
if (!apiBridge)
exports.$set('binding', binding.generate());
|
'use strict'
const Hapi = require('hapi')
const server = new Hapi.Server()
server.connection() // no connection details for lambda
// flag so plugins dont get reconfigured
let loaded = false
/**
* Configures the lambda proxy to host hapi.js plugins
* @param plugins An array of plugins to register
*/
exports.configure = (plugins) => {
if (!plugins) throw 'Plugins must be configured as an array'
server.makeReady = (onServerReady) => {
if(!loaded){
server.register(plugins, onServerReady)
loaded = true
} else{
onServerReady(null)
}
}
}
exports.handler = (event, context, callback) => {
server.makeReady((err) => {
if (err) throw err
// lambda removes query string params from the url and places them into
// and object in event. Hapi expects them on the url path
let path = event.path
if(event.queryStringParameters){
const qs = Object.keys(event.queryStringParameters).map(key => { return key + '=' + event.queryStringParameters[key] })
if(qs.length > 0){
path += '?' + qs.join('&')
}
}
// map lambda event to hapi request
const options = {
method: event.httpMethod,
url: path,
payload: event.body,
headers: event.headers,
validate: false
}
server.inject(options, res => {
// some headers are rejected by lambda
// ref: http://stackoverflow.com/questions/37942119/rust-aws-api-gateway-service-proxy-to-s3-file-upload-using-raw-https-request/37950875#37950875
// ref: https://github.com/awslabs/aws-serverless-express/issues/10
delete res.headers['content-encoding']
delete res.headers['transfer-encoding']
// handle cors here b/c api gateway does half of it for us
// these options must match the serverless.yaml options
res.headers['Access-Control-Allow-Origin'] = '*'
res.headers['Access-Control-Allow-Credentials'] = true
const response = {
statusCode: res.statusCode,
headers: res.headers,
body: typeof res.result === 'string' ? res.result : JSON.stringify(res.result)
}
callback(null, response)
})
})
}
|
/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&D.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(j),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[S]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[S]?i.push(a):o.push(a);(a=A(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split("").sort(j).join("")===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var D,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(S(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(H[r]||S.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(P)||[],function(e,t){n[t]=!0}),n):S.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){S.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return S.each(arguments,function(e,t){var n;while(-1<(n=S.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e})};var F=S.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),S.ready()}S.fn.ready=function(e){return F.then(e)["catch"](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Te(){return!1}function Ce(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ee(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ee(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Se(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,we)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=be.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=be.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click",we),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Se(this,e,Ce),!1},trigger:function(){return Se(this,e),!0},_default:function(){return!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){S.event.remove(this,e,n,t)})}});var ke=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function He(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&Ae.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),He(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),De)).length;c<f;c++)u=e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,qe),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(Ne,""),u,l))}return n}function Oe(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return $(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return He(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return He(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ke.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return He(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Pe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Re=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Me=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ie=new RegExp(ne.join("|"),"i");function We(e,t,n){var r,i,o,a,s=e.style;return(n=n||Re(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Pe.test(a)&&Ie.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Fe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,re.removeChild(e)),a}}))}();var Be=["Webkit","Moz","ms"],$e=E.createElement("div").style,_e={};function ze(e){var t=S.cssProps[e]||_e[e];return t||(e in $e?e:_e[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Be.length;while(n--)if((e=Be[n]+t)in $e)return e}(e)||e)}var Ue=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,Ve={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"};function Ye(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Qe(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Je(e,t,n){var r=Re(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=We(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Pe.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Qe(e,t,n||(i?"border":"content"),o,r,a)+"px"}function Ke(e,t,n,r,i){return new Ke.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Xe.test(t),l=e.style;if(u||(t=ze(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Xe.test(t)||(t=ze(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=We(e,t,r)),"normal"===i&&t in Ge&&(i=Ge[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,t,n){if(t)return!Ue.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,u,n):Me(e,Ve,function(){return Je(e,u,n)})},set:function(e,t,n){var r,i=Re(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Qe(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Qe(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Ye(0,t,s)}}}),S.cssHooks.marginLeft=Fe(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-Me(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Ye)}),S.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Re(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=Ke).prototype={constructor:Ke,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=Ke.propHooks[this.prop];return e&&e.get?e.get(this):Ke.propHooks._default.get(this)},run:function(e){var t,n=Ke.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ke.propHooks._default.set(this),this}}).init.prototype=Ke.prototype,(Ke.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[ze(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ke.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=Ke.prototype.init,S.fx.step={};var Ze,et,tt,nt,rt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function ot(){et&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(ot):C.setTimeout(ot,S.fx.interval),S.fx.tick())}function at(){return C.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function st(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,n){for(var r,i=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function lt(o,e,t){var n,a,r=0,i=lt.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=Ze||at(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:Ze||at(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=lt.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ut,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(lt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],lt.tweeners[n]=lt.tweeners[n]||[],lt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],rt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=S.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)S.style(e,r,d[r])})),u=ut(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?lt.prefilters.unshift(e):lt.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=lt(this,S.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&it.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(st(r,!0),e,t,n)}}),S.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(Ze=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),Ze=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){et||(et=!0,ot())},S.fx.stop=function(){et=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},tt=E.createElement("input"),nt=E.createElement("select").appendChild(E.createElement("option")),tt.type="checkbox",y.checkOn=""!==tt.value,y.optSelected=nt.selected,(tt=E.createElement("input")).value="t",tt.type="radio",y.radioValue="t"===tt.value;var ct,ft=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=ft[t]||S.find.attr;ft[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=ft[o],ft[o]=r,r=null!=a(e,t,n)?o:null,ft[o]=i),r}});var pt=/^(?:input|select|textarea|button)$/i,dt=/^(?:a|area)$/i;function ht(e){return(e.match(P)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}S.fn.extend({prop:function(e,t){return $(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).addClass(t.call(this,e,gt(this)))});if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,gt(this)))});if(!arguments.length)return this.attr("class","");if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,gt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=vt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=gt(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+ht(gt(n))+" ").indexOf(t))return!0;return!1}});var yt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(yt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:ht(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var mt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!mt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,mt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,xt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,xt),S.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var bt=C.location,wt={guid:Date.now()},Tt=/\?/;S.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Ct=/\[\]$/,Et=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function At(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||Ct.test(n)?i(n,t):At(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)At(n+"["+t+"]",e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)At(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&kt.test(this.nodeName)&&!St.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}});var Nt=/%20/g,jt=/#.*$/,Dt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Ht=/^\/\//,Ot={},Pt={},Rt="*/".concat("*"),Mt=E.createElement("a");function It(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Wt(t,i,o,a){var s={},u=t===Pt;function l(e){var r;return s[e]=!0,S.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Ft(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Mt.href=bt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,S.ajaxSettings),t):Ft(S.ajaxSettings,e)},ajaxPrefilter:It(Ot),ajaxTransport:It(Pt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=S.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?S(y):S.event,x=S.Deferred(),b=S.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=qt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||bt.href)+"").replace(Ht,bt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(P)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Mt.protocol+"//"+Mt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=S.param(v.data,v.traditional)),Wt(Ot,v,t,T),h)return T;for(i in(g=S.event&&v.global)&&0==S.active++&&S.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Lt.test(v.type),f=v.url.replace(jt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Nt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Tt.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Dt,"$1"),o=(Tt.test(f)?"&":"?")+"_="+wt.guid+++o),v.url=f+o),v.ifModified&&(S.lastModified[f]&&T.setRequestHeader("If-Modified-Since",S.lastModified[f]),S.etag[f]&&T.setRequestHeader("If-None-Match",S.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Rt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Wt(Pt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<S.inArray("script",v.dataTypes)&&S.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(S.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(S.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var Bt={0:200,1223:204},$t=S.ajaxSettings.xhr();y.cors=!!$t&&"withCredentials"in $t,y.ajax=$t=!!$t,S.ajaxTransport(function(i){var o,a;if(y.cors||$t&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Bt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=ht(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Vt=C.jQuery,Gt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Gt),e&&C.jQuery===S&&(C.jQuery=Vt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S});
;
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
;(function(root, factory) {
// https://github.com/umdjs/umd/blob/master/returnExports.js
if (typeof exports == 'object') {
// For Node.js.
module.exports = factory(root);
} else if (typeof define == 'function' && define.amd) {
// For AMD. Register as an anonymous module.
define([], factory.bind(root, root));
} else {
// For browser globals (not exposing the function separately).
factory(root);
}
}(typeof global != 'undefined' ? global : this, function(root) {
if (root.CSS && root.CSS.escape) {
return root.CSS.escape;
}
// https://drafts.csswg.org/cssom/#serialize-an-identifier
var cssEscape = function(value) {
if (arguments.length == 0) {
throw new TypeError('`CSS.escape` requires an argument.');
}
var string = String(value);
var length = string.length;
var index = -1;
var codeUnit;
var result = '';
var firstCodeUnit = string.charCodeAt(0);
while (++index < length) {
codeUnit = string.charCodeAt(index);
// Note: there’s no need to special-case astral symbols, surrogate
// pairs, or lone surrogates.
// If the character is NULL (U+0000), then the REPLACEMENT CHARACTER
// (U+FFFD).
if (codeUnit == 0x0000) {
result += '\uFFFD';
continue;
}
if (
// If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
// U+007F, […]
(codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F ||
// If the character is the first character and is in the range [0-9]
// (U+0030 to U+0039), […]
(index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||
// If the character is the second character and is in the range [0-9]
// (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
(
index == 1 &&
codeUnit >= 0x0030 && codeUnit <= 0x0039 &&
firstCodeUnit == 0x002D
)
) {
// https://drafts.csswg.org/cssom/#escape-a-character-as-code-point
result += '\\' + codeUnit.toString(16) + ' ';
continue;
}
if (
// If the character is the first character and is a `-` (U+002D), and
// there is no second character, […]
index == 0 &&
length == 1 &&
codeUnit == 0x002D
) {
result += '\\' + string.charAt(index);
continue;
}
// If the character is not handled by one of the above rules and is
// greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or
// is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to
// U+005A), or [a-z] (U+0061 to U+007A), […]
if (
codeUnit >= 0x0080 ||
codeUnit == 0x002D ||
codeUnit == 0x005F ||
codeUnit >= 0x0030 && codeUnit <= 0x0039 ||
codeUnit >= 0x0041 && codeUnit <= 0x005A ||
codeUnit >= 0x0061 && codeUnit <= 0x007A
) {
// the character itself
result += string.charAt(index);
continue;
}
// Otherwise, the escaped character.
// https://drafts.csswg.org/cssom/#escape-a-character
result += '\\' + string.charAt(index);
}
return result;
};
if (!root.CSS) {
root.CSS = {};
}
root.CSS.escape = cssEscape;
return cssEscape;
}));
;
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define("underscore",r):(n="undefined"!=typeof globalThis?globalThis:n||self,function(){var t=n._,e=n._=r();e.noConflict=function(){return n._=t,e}}())}(this,(function(){
// Underscore.js 1.13.1
// https://underscorejs.org
// (c) 2009-2021 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
// Underscore may be freely distributed under the MIT license.
var n="1.13.1",r="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},t=Array.prototype,e=Object.prototype,u="undefined"!=typeof Symbol?Symbol.prototype:null,o=t.push,i=t.slice,a=e.toString,f=e.hasOwnProperty,c="undefined"!=typeof ArrayBuffer,l="undefined"!=typeof DataView,s=Array.isArray,p=Object.keys,v=Object.create,h=c&&ArrayBuffer.isView,y=isNaN,d=isFinite,g=!{toString:null}.propertyIsEnumerable("toString"),b=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],m=Math.pow(2,53)-1;function j(n,r){return r=null==r?n.length-1:+r,function(){for(var t=Math.max(arguments.length-r,0),e=Array(t),u=0;u<t;u++)e[u]=arguments[u+r];switch(r){case 0:return n.call(this,e);case 1:return n.call(this,arguments[0],e);case 2:return n.call(this,arguments[0],arguments[1],e)}var o=Array(r+1);for(u=0;u<r;u++)o[u]=arguments[u];return o[r]=e,n.apply(this,o)}}function _(n){var r=typeof n;return"function"===r||"object"===r&&!!n}function w(n){return void 0===n}function A(n){return!0===n||!1===n||"[object Boolean]"===a.call(n)}function x(n){var r="[object "+n+"]";return function(n){return a.call(n)===r}}var S=x("String"),O=x("Number"),M=x("Date"),E=x("RegExp"),B=x("Error"),N=x("Symbol"),I=x("ArrayBuffer"),T=x("Function"),k=r.document&&r.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof k&&(T=function(n){return"function"==typeof n||!1});var D=T,R=x("Object"),F=l&&R(new DataView(new ArrayBuffer(8))),V="undefined"!=typeof Map&&R(new Map),P=x("DataView");var q=F?function(n){return null!=n&&D(n.getInt8)&&I(n.buffer)}:P,U=s||x("Array");function W(n,r){return null!=n&&f.call(n,r)}var z=x("Arguments");!function(){z(arguments)||(z=function(n){return W(n,"callee")})}();var L=z;function $(n){return O(n)&&y(n)}function C(n){return function(){return n}}function K(n){return function(r){var t=n(r);return"number"==typeof t&&t>=0&&t<=m}}function J(n){return function(r){return null==r?void 0:r[n]}}var G=J("byteLength"),H=K(G),Q=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var X=c?function(n){return h?h(n)&&!q(n):H(n)&&Q.test(a.call(n))}:C(!1),Y=J("length");function Z(n,r){r=function(n){for(var r={},t=n.length,e=0;e<t;++e)r[n[e]]=!0;return{contains:function(n){return r[n]},push:function(t){return r[t]=!0,n.push(t)}}}(r);var t=b.length,u=n.constructor,o=D(u)&&u.prototype||e,i="constructor";for(W(n,i)&&!r.contains(i)&&r.push(i);t--;)(i=b[t])in n&&n[i]!==o[i]&&!r.contains(i)&&r.push(i)}function nn(n){if(!_(n))return[];if(p)return p(n);var r=[];for(var t in n)W(n,t)&&r.push(t);return g&&Z(n,r),r}function rn(n,r){var t=nn(r),e=t.length;if(null==n)return!e;for(var u=Object(n),o=0;o<e;o++){var i=t[o];if(r[i]!==u[i]||!(i in u))return!1}return!0}function tn(n){return n instanceof tn?n:this instanceof tn?void(this._wrapped=n):new tn(n)}function en(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,G(n))}tn.VERSION=n,tn.prototype.value=function(){return this._wrapped},tn.prototype.valueOf=tn.prototype.toJSON=tn.prototype.value,tn.prototype.toString=function(){return String(this._wrapped)};var un="[object DataView]";function on(n,r,t,e){if(n===r)return 0!==n||1/n==1/r;if(null==n||null==r)return!1;if(n!=n)return r!=r;var o=typeof n;return("function"===o||"object"===o||"object"==typeof r)&&function n(r,t,e,o){r instanceof tn&&(r=r._wrapped);t instanceof tn&&(t=t._wrapped);var i=a.call(r);if(i!==a.call(t))return!1;if(F&&"[object Object]"==i&&q(r)){if(!q(t))return!1;i=un}switch(i){case"[object RegExp]":case"[object String]":return""+r==""+t;case"[object Number]":return+r!=+r?+t!=+t:0==+r?1/+r==1/t:+r==+t;case"[object Date]":case"[object Boolean]":return+r==+t;case"[object Symbol]":return u.valueOf.call(r)===u.valueOf.call(t);case"[object ArrayBuffer]":case un:return n(en(r),en(t),e,o)}var f="[object Array]"===i;if(!f&&X(r)){if(G(r)!==G(t))return!1;if(r.buffer===t.buffer&&r.byteOffset===t.byteOffset)return!0;f=!0}if(!f){if("object"!=typeof r||"object"!=typeof t)return!1;var c=r.constructor,l=t.constructor;if(c!==l&&!(D(c)&&c instanceof c&&D(l)&&l instanceof l)&&"constructor"in r&&"constructor"in t)return!1}o=o||[];var s=(e=e||[]).length;for(;s--;)if(e[s]===r)return o[s]===t;if(e.push(r),o.push(t),f){if((s=r.length)!==t.length)return!1;for(;s--;)if(!on(r[s],t[s],e,o))return!1}else{var p,v=nn(r);if(s=v.length,nn(t).length!==s)return!1;for(;s--;)if(p=v[s],!W(t,p)||!on(r[p],t[p],e,o))return!1}return e.pop(),o.pop(),!0}(n,r,t,e)}function an(n){if(!_(n))return[];var r=[];for(var t in n)r.push(t);return g&&Z(n,r),r}function fn(n){var r=Y(n);return function(t){if(null==t)return!1;var e=an(t);if(Y(e))return!1;for(var u=0;u<r;u++)if(!D(t[n[u]]))return!1;return n!==hn||!D(t[cn])}}var cn="forEach",ln="has",sn=["clear","delete"],pn=["get",ln,"set"],vn=sn.concat(cn,pn),hn=sn.concat(pn),yn=["add"].concat(sn,cn,ln),dn=V?fn(vn):x("Map"),gn=V?fn(hn):x("WeakMap"),bn=V?fn(yn):x("Set"),mn=x("WeakSet");function jn(n){for(var r=nn(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=n[r[u]];return e}function _n(n){for(var r={},t=nn(n),e=0,u=t.length;e<u;e++)r[n[t[e]]]=t[e];return r}function wn(n){var r=[];for(var t in n)D(n[t])&&r.push(t);return r.sort()}function An(n,r){return function(t){var e=arguments.length;if(r&&(t=Object(t)),e<2||null==t)return t;for(var u=1;u<e;u++)for(var o=arguments[u],i=n(o),a=i.length,f=0;f<a;f++){var c=i[f];r&&void 0!==t[c]||(t[c]=o[c])}return t}}var xn=An(an),Sn=An(nn),On=An(an,!0);function Mn(n){if(!_(n))return{};if(v)return v(n);var r=function(){};r.prototype=n;var t=new r;return r.prototype=null,t}function En(n){return _(n)?U(n)?n.slice():xn({},n):n}function Bn(n){return U(n)?n:[n]}function Nn(n){return tn.toPath(n)}function In(n,r){for(var t=r.length,e=0;e<t;e++){if(null==n)return;n=n[r[e]]}return t?n:void 0}function Tn(n,r,t){var e=In(n,Nn(r));return w(e)?t:e}function kn(n){return n}function Dn(n){return n=Sn({},n),function(r){return rn(r,n)}}function Rn(n){return n=Nn(n),function(r){return In(r,n)}}function Fn(n,r,t){if(void 0===r)return n;switch(null==t?3:t){case 1:return function(t){return n.call(r,t)};case 3:return function(t,e,u){return n.call(r,t,e,u)};case 4:return function(t,e,u,o){return n.call(r,t,e,u,o)}}return function(){return n.apply(r,arguments)}}function Vn(n,r,t){return null==n?kn:D(n)?Fn(n,r,t):_(n)&&!U(n)?Dn(n):Rn(n)}function Pn(n,r){return Vn(n,r,1/0)}function qn(n,r,t){return tn.iteratee!==Pn?tn.iteratee(n,r):Vn(n,r,t)}function Un(){}function Wn(n,r){return null==r&&(r=n,n=0),n+Math.floor(Math.random()*(r-n+1))}tn.toPath=Bn,tn.iteratee=Pn;var zn=Date.now||function(){return(new Date).getTime()};function Ln(n){var r=function(r){return n[r]},t="(?:"+nn(n).join("|")+")",e=RegExp(t),u=RegExp(t,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,r):n}}var $n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Cn=Ln($n),Kn=Ln(_n($n)),Jn=tn.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Gn=/(.)^/,Hn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Qn=/\\|'|\r|\n|\u2028|\u2029/g;function Xn(n){return"\\"+Hn[n]}var Yn=/^\s*(\w|\$)+\s*$/;var Zn=0;function nr(n,r,t,e,u){if(!(e instanceof r))return n.apply(t,u);var o=Mn(n.prototype),i=n.apply(o,u);return _(i)?i:o}var rr=j((function(n,r){var t=rr.placeholder,e=function(){for(var u=0,o=r.length,i=Array(o),a=0;a<o;a++)i[a]=r[a]===t?arguments[u++]:r[a];for(;u<arguments.length;)i.push(arguments[u++]);return nr(n,e,this,this,i)};return e}));rr.placeholder=tn;var tr=j((function(n,r,t){if(!D(n))throw new TypeError("Bind must be called on a function");var e=j((function(u){return nr(n,e,r,this,t.concat(u))}));return e})),er=K(Y);function ur(n,r,t,e){if(e=e||[],r||0===r){if(r<=0)return e.concat(n)}else r=1/0;for(var u=e.length,o=0,i=Y(n);o<i;o++){var a=n[o];if(er(a)&&(U(a)||L(a)))if(r>1)ur(a,r-1,t,e),u=e.length;else for(var f=0,c=a.length;f<c;)e[u++]=a[f++];else t||(e[u++]=a)}return e}var or=j((function(n,r){var t=(r=ur(r,!1,!1)).length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var e=r[t];n[e]=tr(n[e],n)}return n}));var ir=j((function(n,r,t){return setTimeout((function(){return n.apply(null,t)}),r)})),ar=rr(ir,tn,1);function fr(n){return function(){return!n.apply(this,arguments)}}function cr(n,r){var t;return function(){return--n>0&&(t=r.apply(this,arguments)),n<=1&&(r=null),t}}var lr=rr(cr,2);function sr(n,r,t){r=qn(r,t);for(var e,u=nn(n),o=0,i=u.length;o<i;o++)if(r(n[e=u[o]],e,n))return e}function pr(n){return function(r,t,e){t=qn(t,e);for(var u=Y(r),o=n>0?0:u-1;o>=0&&o<u;o+=n)if(t(r[o],o,r))return o;return-1}}var vr=pr(1),hr=pr(-1);function yr(n,r,t,e){for(var u=(t=qn(t,e,1))(r),o=0,i=Y(n);o<i;){var a=Math.floor((o+i)/2);t(n[a])<u?o=a+1:i=a}return o}function dr(n,r,t){return function(e,u,o){var a=0,f=Y(e);if("number"==typeof o)n>0?a=o>=0?o:Math.max(o+f,a):f=o>=0?Math.min(o+1,f):o+f+1;else if(t&&o&&f)return e[o=t(e,u)]===u?o:-1;if(u!=u)return(o=r(i.call(e,a,f),$))>=0?o+a:-1;for(o=n>0?a:f-1;o>=0&&o<f;o+=n)if(e[o]===u)return o;return-1}}var gr=dr(1,vr,yr),br=dr(-1,hr);function mr(n,r,t){var e=(er(n)?vr:sr)(n,r,t);if(void 0!==e&&-1!==e)return n[e]}function jr(n,r,t){var e,u;if(r=Fn(r,t),er(n))for(e=0,u=n.length;e<u;e++)r(n[e],e,n);else{var o=nn(n);for(e=0,u=o.length;e<u;e++)r(n[o[e]],o[e],n)}return n}function _r(n,r,t){r=qn(r,t);for(var e=!er(n)&&nn(n),u=(e||n).length,o=Array(u),i=0;i<u;i++){var a=e?e[i]:i;o[i]=r(n[a],a,n)}return o}function wr(n){var r=function(r,t,e,u){var o=!er(r)&&nn(r),i=(o||r).length,a=n>0?0:i-1;for(u||(e=r[o?o[a]:a],a+=n);a>=0&&a<i;a+=n){var f=o?o[a]:a;e=t(e,r[f],f,r)}return e};return function(n,t,e,u){var o=arguments.length>=3;return r(n,Fn(t,u,4),e,o)}}var Ar=wr(1),xr=wr(-1);function Sr(n,r,t){var e=[];return r=qn(r,t),jr(n,(function(n,t,u){r(n,t,u)&&e.push(n)})),e}function Or(n,r,t){r=qn(r,t);for(var e=!er(n)&&nn(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(!r(n[i],i,n))return!1}return!0}function Mr(n,r,t){r=qn(r,t);for(var e=!er(n)&&nn(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(r(n[i],i,n))return!0}return!1}function Er(n,r,t,e){return er(n)||(n=jn(n)),("number"!=typeof t||e)&&(t=0),gr(n,r,t)>=0}var Br=j((function(n,r,t){var e,u;return D(r)?u=r:(r=Nn(r),e=r.slice(0,-1),r=r[r.length-1]),_r(n,(function(n){var o=u;if(!o){if(e&&e.length&&(n=In(n,e)),null==n)return;o=n[r]}return null==o?o:o.apply(n,t)}))}));function Nr(n,r){return _r(n,Rn(r))}function Ir(n,r,t){var e,u,o=-1/0,i=-1/0;if(null==r||"number"==typeof r&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=er(n)?n:jn(n)).length;a<f;a++)null!=(e=n[a])&&e>o&&(o=e);else r=qn(r,t),jr(n,(function(n,t,e){((u=r(n,t,e))>i||u===-1/0&&o===-1/0)&&(o=n,i=u)}));return o}function Tr(n,r,t){if(null==r||t)return er(n)||(n=jn(n)),n[Wn(n.length-1)];var e=er(n)?En(n):jn(n),u=Y(e);r=Math.max(Math.min(r,u),0);for(var o=u-1,i=0;i<r;i++){var a=Wn(i,o),f=e[i];e[i]=e[a],e[a]=f}return e.slice(0,r)}function kr(n,r){return function(t,e,u){var o=r?[[],[]]:{};return e=qn(e,u),jr(t,(function(r,u){var i=e(r,u,t);n(o,r,i)})),o}}var Dr=kr((function(n,r,t){W(n,t)?n[t].push(r):n[t]=[r]})),Rr=kr((function(n,r,t){n[t]=r})),Fr=kr((function(n,r,t){W(n,t)?n[t]++:n[t]=1})),Vr=kr((function(n,r,t){n[t?0:1].push(r)}),!0),Pr=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function qr(n,r,t){return r in t}var Ur=j((function(n,r){var t={},e=r[0];if(null==n)return t;D(e)?(r.length>1&&(e=Fn(e,r[1])),r=an(n)):(e=qr,r=ur(r,!1,!1),n=Object(n));for(var u=0,o=r.length;u<o;u++){var i=r[u],a=n[i];e(a,i,n)&&(t[i]=a)}return t})),Wr=j((function(n,r){var t,e=r[0];return D(e)?(e=fr(e),r.length>1&&(t=r[1])):(r=_r(ur(r,!1,!1),String),e=function(n,t){return!Er(r,t)}),Ur(n,e,t)}));function zr(n,r,t){return i.call(n,0,Math.max(0,n.length-(null==r||t?1:r)))}function Lr(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[0]:zr(n,n.length-r)}function $r(n,r,t){return i.call(n,null==r||t?1:r)}var Cr=j((function(n,r){return r=ur(r,!0,!0),Sr(n,(function(n){return!Er(r,n)}))})),Kr=j((function(n,r){return Cr(n,r)}));function Jr(n,r,t,e){A(r)||(e=t,t=r,r=!1),null!=t&&(t=qn(t,e));for(var u=[],o=[],i=0,a=Y(n);i<a;i++){var f=n[i],c=t?t(f,i,n):f;r&&!t?(i&&o===c||u.push(f),o=c):t?Er(o,c)||(o.push(c),u.push(f)):Er(u,f)||u.push(f)}return u}var Gr=j((function(n){return Jr(ur(n,!0,!0))}));function Hr(n){for(var r=n&&Ir(n,Y).length||0,t=Array(r),e=0;e<r;e++)t[e]=Nr(n,e);return t}var Qr=j(Hr);function Xr(n,r){return n._chain?tn(r).chain():r}function Yr(n){return jr(wn(n),(function(r){var t=tn[r]=n[r];tn.prototype[r]=function(){var n=[this._wrapped];return o.apply(n,arguments),Xr(this,t.apply(tn,n))}})),tn}jr(["pop","push","reverse","shift","sort","splice","unshift"],(function(n){var r=t[n];tn.prototype[n]=function(){var t=this._wrapped;return null!=t&&(r.apply(t,arguments),"shift"!==n&&"splice"!==n||0!==t.length||delete t[0]),Xr(this,t)}})),jr(["concat","join","slice"],(function(n){var r=t[n];tn.prototype[n]=function(){var n=this._wrapped;return null!=n&&(n=r.apply(n,arguments)),Xr(this,n)}}));var Zr=Yr({__proto__:null,VERSION:n,restArguments:j,isObject:_,isNull:function(n){return null===n},isUndefined:w,isBoolean:A,isElement:function(n){return!(!n||1!==n.nodeType)},isString:S,isNumber:O,isDate:M,isRegExp:E,isError:B,isSymbol:N,isArrayBuffer:I,isDataView:q,isArray:U,isFunction:D,isArguments:L,isFinite:function(n){return!N(n)&&d(n)&&!isNaN(parseFloat(n))},isNaN:$,isTypedArray:X,isEmpty:function(n){if(null==n)return!0;var r=Y(n);return"number"==typeof r&&(U(n)||S(n)||L(n))?0===r:0===Y(nn(n))},isMatch:rn,isEqual:function(n,r){return on(n,r)},isMap:dn,isWeakMap:gn,isSet:bn,isWeakSet:mn,keys:nn,allKeys:an,values:jn,pairs:function(n){for(var r=nn(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=[r[u],n[r[u]]];return e},invert:_n,functions:wn,methods:wn,extend:xn,extendOwn:Sn,assign:Sn,defaults:On,create:function(n,r){var t=Mn(n);return r&&Sn(t,r),t},clone:En,tap:function(n,r){return r(n),n},get:Tn,has:function(n,r){for(var t=(r=Nn(r)).length,e=0;e<t;e++){var u=r[e];if(!W(n,u))return!1;n=n[u]}return!!t},mapObject:function(n,r,t){r=qn(r,t);for(var e=nn(n),u=e.length,o={},i=0;i<u;i++){var a=e[i];o[a]=r(n[a],a,n)}return o},identity:kn,constant:C,noop:Un,toPath:Bn,property:Rn,propertyOf:function(n){return null==n?Un:function(r){return Tn(n,r)}},matcher:Dn,matches:Dn,times:function(n,r,t){var e=Array(Math.max(0,n));r=Fn(r,t,1);for(var u=0;u<n;u++)e[u]=r(u);return e},random:Wn,now:zn,escape:Cn,unescape:Kn,templateSettings:Jn,template:function(n,r,t){!r&&t&&(r=t),r=On({},r,tn.templateSettings);var e=RegExp([(r.escape||Gn).source,(r.interpolate||Gn).source,(r.evaluate||Gn).source].join("|")+"|$","g"),u=0,o="__p+='";n.replace(e,(function(r,t,e,i,a){return o+=n.slice(u,a).replace(Qn,Xn),u=a+r.length,t?o+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":e?o+="'+\n((__t=("+e+"))==null?'':__t)+\n'":i&&(o+="';\n"+i+"\n__p+='"),r})),o+="';\n";var i,a=r.variable;if(a){if(!Yn.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{i=new Function(a,"_",o)}catch(n){throw n.source=o,n}var f=function(n){return i.call(this,n,tn)};return f.source="function("+a+"){\n"+o+"}",f},result:function(n,r,t){var e=(r=Nn(r)).length;if(!e)return D(t)?t.call(n):t;for(var u=0;u<e;u++){var o=null==n?void 0:n[r[u]];void 0===o&&(o=t,u=e),n=D(o)?o.call(n):o}return n},uniqueId:function(n){var r=++Zn+"";return n?n+r:r},chain:function(n){var r=tn(n);return r._chain=!0,r},iteratee:Pn,partial:rr,bind:tr,bindAll:or,memoize:function(n,r){var t=function(e){var u=t.cache,o=""+(r?r.apply(this,arguments):e);return W(u,o)||(u[o]=n.apply(this,arguments)),u[o]};return t.cache={},t},delay:ir,defer:ar,throttle:function(n,r,t){var e,u,o,i,a=0;t||(t={});var f=function(){a=!1===t.leading?0:zn(),e=null,i=n.apply(u,o),e||(u=o=null)},c=function(){var c=zn();a||!1!==t.leading||(a=c);var l=r-(c-a);return u=this,o=arguments,l<=0||l>r?(e&&(clearTimeout(e),e=null),a=c,i=n.apply(u,o),e||(u=o=null)):e||!1===t.trailing||(e=setTimeout(f,l)),i};return c.cancel=function(){clearTimeout(e),a=0,e=u=o=null},c},debounce:function(n,r,t){var e,u,o,i,a,f=function(){var c=zn()-u;r>c?e=setTimeout(f,r-c):(e=null,t||(i=n.apply(a,o)),e||(o=a=null))},c=j((function(c){return a=this,o=c,u=zn(),e||(e=setTimeout(f,r),t&&(i=n.apply(a,o))),i}));return c.cancel=function(){clearTimeout(e),e=o=a=null},c},wrap:function(n,r){return rr(r,n)},negate:fr,compose:function(){var n=arguments,r=n.length-1;return function(){for(var t=r,e=n[r].apply(this,arguments);t--;)e=n[t].call(this,e);return e}},after:function(n,r){return function(){if(--n<1)return r.apply(this,arguments)}},before:cr,once:lr,findKey:sr,findIndex:vr,findLastIndex:hr,sortedIndex:yr,indexOf:gr,lastIndexOf:br,find:mr,detect:mr,findWhere:function(n,r){return mr(n,Dn(r))},each:jr,forEach:jr,map:_r,collect:_r,reduce:Ar,foldl:Ar,inject:Ar,reduceRight:xr,foldr:xr,filter:Sr,select:Sr,reject:function(n,r,t){return Sr(n,fr(qn(r)),t)},every:Or,all:Or,some:Mr,any:Mr,contains:Er,includes:Er,include:Er,invoke:Br,pluck:Nr,where:function(n,r){return Sr(n,Dn(r))},max:Ir,min:function(n,r,t){var e,u,o=1/0,i=1/0;if(null==r||"number"==typeof r&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=er(n)?n:jn(n)).length;a<f;a++)null!=(e=n[a])&&e<o&&(o=e);else r=qn(r,t),jr(n,(function(n,t,e){((u=r(n,t,e))<i||u===1/0&&o===1/0)&&(o=n,i=u)}));return o},shuffle:function(n){return Tr(n,1/0)},sample:Tr,sortBy:function(n,r,t){var e=0;return r=qn(r,t),Nr(_r(n,(function(n,t,u){return{value:n,index:e++,criteria:r(n,t,u)}})).sort((function(n,r){var t=n.criteria,e=r.criteria;if(t!==e){if(t>e||void 0===t)return 1;if(t<e||void 0===e)return-1}return n.index-r.index})),"value")},groupBy:Dr,indexBy:Rr,countBy:Fr,partition:Vr,toArray:function(n){return n?U(n)?i.call(n):S(n)?n.match(Pr):er(n)?_r(n,kn):jn(n):[]},size:function(n){return null==n?0:er(n)?n.length:nn(n).length},pick:Ur,omit:Wr,first:Lr,head:Lr,take:Lr,initial:zr,last:function(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[n.length-1]:$r(n,Math.max(0,n.length-r))},rest:$r,tail:$r,drop:$r,compact:function(n){return Sr(n,Boolean)},flatten:function(n,r){return ur(n,r,!1)},without:Kr,uniq:Jr,unique:Jr,union:Gr,intersection:function(n){for(var r=[],t=arguments.length,e=0,u=Y(n);e<u;e++){var o=n[e];if(!Er(r,o)){var i;for(i=1;i<t&&Er(arguments[i],o);i++);i===t&&r.push(o)}}return r},difference:Cr,unzip:Hr,transpose:Hr,zip:Qr,object:function(n,r){for(var t={},e=0,u=Y(n);e<u;e++)r?t[n[e]]=r[e]:t[n[e][0]]=n[e][1];return t},range:function(n,r,t){null==r&&(r=n||0,n=0),t||(t=r<n?-1:1);for(var e=Math.max(Math.ceil((r-n)/t),0),u=Array(e),o=0;o<e;o++,n+=t)u[o]=n;return u},chunk:function(n,r){if(null==r||r<1)return[];for(var t=[],e=0,u=n.length;e<u;)t.push(i.call(n,e,e+=r));return t},mixin:Yr,default:tn});return Zr._=Zr,Zr}));;
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
if (!Array.prototype.find) {
Object.defineProperty(Array.prototype, 'find', {
value: function value(predicate) {
if (this == null) {
throw TypeError('"this" is null or not defined');
}
var o = Object(this);
var len = o.length >>> 0;
if (typeof predicate !== 'function') {
throw TypeError('predicate must be a function');
}
var thisArg = arguments[1];
var k = 0;
while (k < len) {
var kValue = o[k];
if (predicate.call(thisArg, kValue, k, o)) {
return kValue;
}
k++;
}
return undefined;
},
configurable: true,
writable: true
});
};
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ES6Promise=e()}(this,function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}function n(t){W=t}function r(t){z=t}function o(){return function(){return process.nextTick(a)}}function i(){return"undefined"!=typeof U?function(){U(a)}:c()}function s(){var t=0,e=new H(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){return t.port2.postMessage(0)}}function c(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t<N;t+=2){var e=Q[t],n=Q[t+1];e(n),Q[t]=void 0,Q[t+1]=void 0}N=0}function f(){try{var t=Function("return this")().require("vertx");return U=t.runOnLoop||t.runOnContext,i()}catch(e){return c()}}function l(t,e){var n=this,r=new this.constructor(p);void 0===r[V]&&x(r);var o=n._state;if(o){var i=arguments[o-1];z(function(){return T(o,r,i,n._result)})}else j(n,r,t,e);return r}function h(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(p);return w(n,t),n}function p(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function d(){return new TypeError("A promises callback cannot return that same promise.")}function _(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function y(t,e,n){z(function(t){var r=!1,o=_(n,e,function(n){r||(r=!0,e!==n?w(t,n):A(t,n))},function(e){r||(r=!0,S(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,S(t,o))},t)}function m(t,e){e._state===Z?A(t,e._result):e._state===$?S(t,e._result):j(e,void 0,function(e){return w(t,e)},function(e){return S(t,e)})}function b(t,n,r){n.constructor===t.constructor&&r===l&&n.constructor.resolve===h?m(t,n):void 0===r?A(t,n):e(r)?y(t,n,r):A(t,n)}function w(e,n){if(e===n)S(e,v());else if(t(n)){var r=void 0;try{r=n.then}catch(o){return void S(e,o)}b(e,n,r)}else A(e,n)}function g(t){t._onerror&&t._onerror(t._result),E(t)}function A(t,e){t._state===X&&(t._result=e,t._state=Z,0!==t._subscribers.length&&z(E,t))}function S(t,e){t._state===X&&(t._state=$,t._result=e,z(g,t))}function j(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+Z]=n,o[i+$]=r,0===i&&t._state&&z(E,t)}function E(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?T(n,r,o,i):o(i);t._subscribers.length=0}}function T(t,n,r,o){var i=e(r),s=void 0,u=void 0,c=!0;if(i){try{s=r(o)}catch(a){c=!1,u=a}if(n===s)return void S(n,d())}else s=o;n._state!==X||(i&&c?w(n,s):c===!1?S(n,u):t===Z?A(n,s):t===$&&S(n,s))}function M(t,e){try{e(function(e){w(t,e)},function(e){S(t,e)})}catch(n){S(t,n)}}function P(){return tt++}function x(t){t[V]=tt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function C(){return new Error("Array Methods must be provided an Array")}function O(t){return new et(this,t).promise}function k(t){var e=this;return new e(L(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function F(t){var e=this,n=new e(p);return S(n,t),n}function Y(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function q(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function D(){var t=void 0;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(e){}if("[object Promise]"===r&&!n.cast)return}t.Promise=nt}var K=void 0;K=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var L=K,N=0,U=void 0,W=void 0,z=function(t,e){Q[N]=t,Q[N+1]=e,N+=2,2===N&&(W?W(a):R())},B="undefined"!=typeof window?window:void 0,G=B||{},H=G.MutationObserver||G.WebKitMutationObserver,I="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),J="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Q=new Array(1e3),R=void 0;R=I?o():H?s():J?u():void 0===B&&"function"==typeof require?f():c();var V=Math.random().toString(36).substring(2),X=void 0,Z=1,$=2,tt=0,et=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(p),this.promise[V]||x(this.promise),L(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?A(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&A(this.promise,this._result))):S(this.promise,C())}return t.prototype._enumerate=function(t){for(var e=0;this._state===X&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===h){var o=void 0,i=void 0,s=!1;try{o=t.then}catch(u){s=!0,i=u}if(o===l&&t._state!==X)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===nt){var c=new n(p);s?S(c,i):b(c,t,o),this._willSettleAt(c,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===X&&(this._remaining--,t===$?S(r,n):this._result[e]=n),0===this._remaining&&A(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;j(t,void 0,function(t){return n._settledAt(Z,e,t)},function(t){return n._settledAt($,e,t)})},t}(),nt=function(){function t(e){this[V]=P(),this._result=this._state=void 0,this._subscribers=[],p!==e&&("function"!=typeof e&&Y(),this instanceof t?M(this,e):q())}return t.prototype["catch"]=function(t){return this.then(null,t)},t.prototype["finally"]=function(t){var n=this,r=n.constructor;return e(t)?n.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):n.then(t,t)},t}();return nt.prototype.then=l,nt.all=O,nt.race=k,nt.resolve=h,nt.reject=F,nt._setScheduler=n,nt._setAsap=r,nt._asap=z,nt.polyfill=D,nt.Promise=nt,nt.polyfill(),nt});
;
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
if (typeof Object.assign !== 'function') {
Object.defineProperty(Object, 'assign', {
value: function assign(target, varArgs) {
'use strict';
if (target === null || target === undefined) {
throw new TypeError('Cannot convert undefined or null to object');
}
var to = Object(target);
for (var index = 1; index < arguments.length; index++) {
var nextSource = arguments[index];
if (nextSource !== null && nextSource !== undefined) {
for (var nextKey in nextSource) {
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
to[nextKey] = nextSource[nextKey];
}
}
}
}
return to;
},
writable: true,
configurable: true
});
};
/*!
* jQuery Once v2.2.3 - http://github.com/robloach/jquery-once
* @license MIT, GPL-2.0
* http://opensource.org/licenses/MIT
* http://opensource.org/licenses/GPL-2.0
*/
(function(e){"use strict";if(typeof exports==="object"&&typeof exports.nodeName!=="string"){e(require("jquery"))}else if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function(t){"use strict";var r=function(e){e=e||"once";if(typeof e!=="string"){throw new TypeError("The jQuery Once id parameter must be a string")}return e};t.fn.once=function(e){var n="jquery-once-"+r(e);return this.filter(function(){return t(this).data(n)!==true}).data(n,true)};t.fn.removeOnce=function(e){return this.findOnce(e).removeData("jquery-once-"+r(e))};t.fn.findOnce=function(e){var n="jquery-once-"+r(e);return this.filter(function(){return t(this).data(n)===true})}});
(function(t){var e=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global;if(typeof define==="function"&&define.amd){define(["underscore","jquery","exports"],function(i,n,r){e.Backbone=t(e,r,i,n)})}else if(typeof exports!=="undefined"){var i=require("underscore"),n;try{n=require("jquery")}catch(r){}t(e,exports,i,n)}else{e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}})(function(t,e,i,n){var r=t.Backbone;var s=Array.prototype.slice;e.VERSION="1.4.0";e.$=n;e.noConflict=function(){t.Backbone=r;return this};e.emulateHTTP=false;e.emulateJSON=false;var a=e.Events={};var o=/\s+/;var h;var u=function(t,e,n,r,s){var a=0,h;if(n&&typeof n==="object"){if(r!==void 0&&"context"in s&&s.context===void 0)s.context=r;for(h=i.keys(n);a<h.length;a++){e=u(t,e,h[a],n[h[a]],s)}}else if(n&&o.test(n)){for(h=n.split(o);a<h.length;a++){e=t(e,h[a],r,s)}}else{e=t(e,n,r,s)}return e};a.on=function(t,e,i){this._events=u(l,this._events||{},t,e,{context:i,ctx:this,listening:h});if(h){var n=this._listeners||(this._listeners={});n[h.id]=h;h.interop=false}return this};a.listenTo=function(t,e,n){if(!t)return this;var r=t._listenId||(t._listenId=i.uniqueId("l"));var s=this._listeningTo||(this._listeningTo={});var a=h=s[r];if(!a){this._listenId||(this._listenId=i.uniqueId("l"));a=h=s[r]=new g(this,t)}var o=c(t,e,n,this);h=void 0;if(o)throw o;if(a.interop)a.on(e,n);return this};var l=function(t,e,i,n){if(i){var r=t[e]||(t[e]=[]);var s=n.context,a=n.ctx,o=n.listening;if(o)o.count++;r.push({callback:i,context:s,ctx:s||a,listening:o})}return t};var c=function(t,e,i,n){try{t.on(e,i,n)}catch(r){return r}};a.off=function(t,e,i){if(!this._events)return this;this._events=u(f,this._events,t,e,{context:i,listeners:this._listeners});return this};a.stopListening=function(t,e,n){var r=this._listeningTo;if(!r)return this;var s=t?[t._listenId]:i.keys(r);for(var a=0;a<s.length;a++){var o=r[s[a]];if(!o)break;o.obj.off(e,n,this);if(o.interop)o.off(e,n)}if(i.isEmpty(r))this._listeningTo=void 0;return this};var f=function(t,e,n,r){if(!t)return;var s=r.context,a=r.listeners;var o=0,h;if(!e&&!s&&!n){for(h=i.keys(a);o<h.length;o++){a[h[o]].cleanup()}return}h=e?[e]:i.keys(t);for(;o<h.length;o++){e=h[o];var u=t[e];if(!u)break;var l=[];for(var c=0;c<u.length;c++){var f=u[c];if(n&&n!==f.callback&&n!==f.callback._callback||s&&s!==f.context){l.push(f)}else{var d=f.listening;if(d)d.off(e,n)}}if(l.length){t[e]=l}else{delete t[e]}}return t};a.once=function(t,e,i){var n=u(d,{},t,e,this.off.bind(this));if(typeof t==="string"&&i==null)e=void 0;return this.on(n,e,i)};a.listenToOnce=function(t,e,i){var n=u(d,{},e,i,this.stopListening.bind(this,t));return this.listenTo(t,n)};var d=function(t,e,n,r){if(n){var s=t[e]=i.once(function(){r(e,s);n.apply(this,arguments)});s._callback=n}return t};a.trigger=function(t){if(!this._events)return this;var e=Math.max(0,arguments.length-1);var i=Array(e);for(var n=0;n<e;n++)i[n]=arguments[n+1];u(v,this._events,t,void 0,i);return this};var v=function(t,e,i,n){if(t){var r=t[e];var s=t.all;if(r&&s)s=s.slice();if(r)p(r,n);if(s)p(s,[e].concat(n))}return t};var p=function(t,e){var i,n=-1,r=t.length,s=e[0],a=e[1],o=e[2];switch(e.length){case 0:while(++n<r)(i=t[n]).callback.call(i.ctx);return;case 1:while(++n<r)(i=t[n]).callback.call(i.ctx,s);return;case 2:while(++n<r)(i=t[n]).callback.call(i.ctx,s,a);return;case 3:while(++n<r)(i=t[n]).callback.call(i.ctx,s,a,o);return;default:while(++n<r)(i=t[n]).callback.apply(i.ctx,e);return}};var g=function(t,e){this.id=t._listenId;this.listener=t;this.obj=e;this.interop=true;this.count=0;this._events=void 0};g.prototype.on=a.on;g.prototype.off=function(t,e){var i;if(this.interop){this._events=u(f,this._events,t,e,{context:void 0,listeners:void 0});i=!this._events}else{this.count--;i=this.count===0}if(i)this.cleanup()};g.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId];if(!this.interop)delete this.obj._listeners[this.id]};a.bind=a.on;a.unbind=a.off;i.extend(e,a);var m=e.Model=function(t,e){var n=t||{};e||(e={});this.preinitialize.apply(this,arguments);this.cid=i.uniqueId(this.cidPrefix);this.attributes={};if(e.collection)this.collection=e.collection;if(e.parse)n=this.parse(n,e)||{};var r=i.result(this,"defaults");n=i.defaults(i.extend({},r,n),r);this.set(n,e);this.changed={};this.initialize.apply(this,arguments)};i.extend(m.prototype,a,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return this.get(t)!=null},matches:function(t){return!!i.iteratee(t,this)(this.attributes)},set:function(t,e,n){if(t==null)return this;var r;if(typeof t==="object"){r=t;n=e}else{(r={})[t]=e}n||(n={});if(!this._validate(r,n))return false;var s=n.unset;var a=n.silent;var o=[];var h=this._changing;this._changing=true;if(!h){this._previousAttributes=i.clone(this.attributes);this.changed={}}var u=this.attributes;var l=this.changed;var c=this._previousAttributes;for(var f in r){e=r[f];if(!i.isEqual(u[f],e))o.push(f);if(!i.isEqual(c[f],e)){l[f]=e}else{delete l[f]}s?delete u[f]:u[f]=e}if(this.idAttribute in r)this.id=this.get(this.idAttribute);if(!a){if(o.length)this._pending=n;for(var d=0;d<o.length;d++){this.trigger("change:"+o[d],this,u[o[d]],n)}}if(h)return this;if(!a){while(this._pending){n=this._pending;this._pending=false;this.trigger("change",this,n)}}this._pending=false;this._changing=false;return this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:true}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,i.extend({},t,{unset:true}))},hasChanged:function(t){if(t==null)return!i.isEmpty(this.changed);return i.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?i.clone(this.changed):false;var e=this._changing?this._previousAttributes:this.attributes;var n={};var r;for(var s in t){var a=t[s];if(i.isEqual(e[s],a))continue;n[s]=a;r=true}return r?n:false},previous:function(t){if(t==null||!this._previousAttributes)return null;return this._previousAttributes[t]},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=i.extend({parse:true},t);var e=this;var n=t.success;t.success=function(i){var r=t.parse?e.parse(i,t):i;if(!e.set(r,t))return false;if(n)n.call(t.context,e,i,t);e.trigger("sync",e,i,t)};G(this,t);return this.sync("read",this,t)},save:function(t,e,n){var r;if(t==null||typeof t==="object"){r=t;n=e}else{(r={})[t]=e}n=i.extend({validate:true,parse:true},n);var s=n.wait;if(r&&!s){if(!this.set(r,n))return false}else if(!this._validate(r,n)){return false}var a=this;var o=n.success;var h=this.attributes;n.success=function(t){a.attributes=h;var e=n.parse?a.parse(t,n):t;if(s)e=i.extend({},r,e);if(e&&!a.set(e,n))return false;if(o)o.call(n.context,a,t,n);a.trigger("sync",a,t,n)};G(this,n);if(r&&s)this.attributes=i.extend({},h,r);var u=this.isNew()?"create":n.patch?"patch":"update";if(u==="patch"&&!n.attrs)n.attrs=r;var l=this.sync(u,this,n);this.attributes=h;return l},destroy:function(t){t=t?i.clone(t):{};var e=this;var n=t.success;var r=t.wait;var s=function(){e.stopListening();e.trigger("destroy",e,e.collection,t)};t.success=function(i){if(r)s();if(n)n.call(t.context,e,i,t);if(!e.isNew())e.trigger("sync",e,i,t)};var a=false;if(this.isNew()){i.defer(t.success)}else{G(this,t);a=this.sync("delete",this,t)}if(!r)s();return a},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||V();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend({},t,{validate:true}))},_validate:function(t,e){if(!e.validate||!this.validate)return true;t=i.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;if(!n)return true;this.trigger("invalid",this,n,i.extend(e,{validationError:n}));return false}});var _=e.Collection=function(t,e){e||(e={});this.preinitialize.apply(this,arguments);if(e.model)this.model=e.model;if(e.comparator!==void 0)this.comparator=e.comparator;this._reset();this.initialize.apply(this,arguments);if(t)this.reset(t,i.extend({silent:true},e))};var y={add:true,remove:true,merge:true};var b={add:true,remove:false};var x=function(t,e,i){i=Math.min(Math.max(i,0),t.length);var n=Array(t.length-i);var r=e.length;var s;for(s=0;s<n.length;s++)n[s]=t[s+i];for(s=0;s<r;s++)t[s+i]=e[s];for(s=0;s<n.length;s++)t[s+r+i]=n[s]};i.extend(_.prototype,a,{model:m,preinitialize:function(){},initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:false},e,b))},remove:function(t,e){e=i.extend({},e);var n=!i.isArray(t);t=n?[t]:t.slice();var r=this._removeModels(t,e);if(!e.silent&&r.length){e.changes={added:[],merged:[],removed:r};this.trigger("update",this,e)}return n?r[0]:r},set:function(t,e){if(t==null)return;e=i.extend({},y,e);if(e.parse&&!this._isModel(t)){t=this.parse(t,e)||[]}var n=!i.isArray(t);t=n?[t]:t.slice();var r=e.at;if(r!=null)r=+r;if(r>this.length)r=this.length;if(r<0)r+=this.length+1;var s=[];var a=[];var o=[];var h=[];var u={};var l=e.add;var c=e.merge;var f=e.remove;var d=false;var v=this.comparator&&r==null&&e.sort!==false;var p=i.isString(this.comparator)?this.comparator:null;var g,m;for(m=0;m<t.length;m++){g=t[m];var _=this.get(g);if(_){if(c&&g!==_){var b=this._isModel(g)?g.attributes:g;if(e.parse)b=_.parse(b,e);_.set(b,e);o.push(_);if(v&&!d)d=_.hasChanged(p)}if(!u[_.cid]){u[_.cid]=true;s.push(_)}t[m]=_}else if(l){g=t[m]=this._prepareModel(g,e);if(g){a.push(g);this._addReference(g,e);u[g.cid]=true;s.push(g)}}}if(f){for(m=0;m<this.length;m++){g=this.models[m];if(!u[g.cid])h.push(g)}if(h.length)this._removeModels(h,e)}var w=false;var E=!v&&l&&f;if(s.length&&E){w=this.length!==s.length||i.some(this.models,function(t,e){return t!==s[e]});this.models.length=0;x(this.models,s,0);this.length=this.models.length}else if(a.length){if(v)d=true;x(this.models,a,r==null?this.length:r);this.length=this.models.length}if(d)this.sort({silent:true});if(!e.silent){for(m=0;m<a.length;m++){if(r!=null)e.index=r+m;g=a[m];g.trigger("add",g,this,e)}if(d||w)this.trigger("sort",this,e);if(a.length||h.length||o.length){e.changes={added:a,removed:h,merged:o};this.trigger("update",this,e)}}return n?t[0]:t},reset:function(t,e){e=e?i.clone(e):{};for(var n=0;n<this.models.length;n++){this._removeReference(this.models[n],e)}e.previousModels=this.models;this._reset();t=this.add(t,i.extend({silent:true},e));if(!e.silent)this.trigger("reset",this,e);return t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return s.apply(this.models,arguments)},get:function(t){if(t==null)return void 0;return this._byId[t]||this._byId[this.modelId(this._isModel(t)?t.attributes:t)]||t.cid&&this._byId[t.cid]},has:function(t){return this.get(t)!=null},at:function(t){if(t<0)t+=this.length;return this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,true)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var n=e.length;if(i.isFunction(e))e=e.bind(this);if(n===1||i.isString(e)){this.models=this.sortBy(e)}else{this.models.sort(e)}if(!t.silent)this.trigger("sort",this,t);return this},pluck:function(t){return this.map(t+"")},fetch:function(t){t=i.extend({parse:true},t);var e=t.success;var n=this;t.success=function(i){var r=t.reset?"reset":"set";n[r](i,t);if(e)e.call(t.context,n,i,t);n.trigger("sync",n,i,t)};G(this,t);return this.sync("read",this,t)},create:function(t,e){e=e?i.clone(e):{};var n=e.wait;t=this._prepareModel(t,e);if(!t)return false;if(!n)this.add(t,e);var r=this;var s=e.success;e.success=function(t,e,i){if(n)r.add(t,i);if(s)s.call(i.context,t,e,i)};t.save(null,e);return t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||"id"]},values:function(){return new E(this,k)},keys:function(){return new E(this,I)},entries:function(){return new E(this,S)},_reset:function(){this.length=0;this.models=[];this._byId={}},_prepareModel:function(t,e){if(this._isModel(t)){if(!t.collection)t.collection=this;return t}e=e?i.clone(e):{};e.collection=this;var n=new this.model(t,e);if(!n.validationError)return n;this.trigger("invalid",this,n.validationError,e);return false},_removeModels:function(t,e){var i=[];for(var n=0;n<t.length;n++){var r=this.get(t[n]);if(!r)continue;var s=this.indexOf(r);this.models.splice(s,1);this.length--;delete this._byId[r.cid];var a=this.modelId(r.attributes);if(a!=null)delete this._byId[a];if(!e.silent){e.index=s;r.trigger("remove",r,this,e)}i.push(r);this._removeReference(r,e)}return i},_isModel:function(t){return t instanceof m},_addReference:function(t,e){this._byId[t.cid]=t;var i=this.modelId(t.attributes);if(i!=null)this._byId[i]=t;t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var i=this.modelId(t.attributes);if(i!=null)delete this._byId[i];if(this===t.collection)delete t.collection;t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){if(e){if((t==="add"||t==="remove")&&i!==this)return;if(t==="destroy")this.remove(e,n);if(t==="change"){var r=this.modelId(e.previousAttributes());var s=this.modelId(e.attributes);if(r!==s){if(r!=null)delete this._byId[r];if(s!=null)this._byId[s]=e}}}this.trigger.apply(this,arguments)}});var w=typeof Symbol==="function"&&Symbol.iterator;if(w){_.prototype[w]=_.prototype.values}var E=function(t,e){this._collection=t;this._kind=e;this._index=0};var k=1;var I=2;var S=3;if(w){E.prototype[w]=function(){return this}}E.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var t=this._collection.at(this._index);this._index++;var e;if(this._kind===k){e=t}else{var i=this._collection.modelId(t.attributes);if(this._kind===I){e=i}else{e=[i,t]}}return{value:e,done:false}}this._collection=void 0}return{value:void 0,done:true}};var T=e.View=function(t){this.cid=i.uniqueId("view");this.preinitialize.apply(this,arguments);i.extend(this,i.pick(t,H));this._ensureElement();this.initialize.apply(this,arguments)};var P=/^(\S+)\s*(.*)$/;var H=["model","collection","el","id","attributes","className","tagName","events"];i.extend(T.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){this._removeElement();this.stopListening();return this},_removeElement:function(){this.$el.remove()},setElement:function(t){this.undelegateEvents();this._setElement(t);this.delegateEvents();return this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t);this.el=this.$el[0]},delegateEvents:function(t){t||(t=i.result(this,"events"));if(!t)return this;this.undelegateEvents();for(var e in t){var n=t[e];if(!i.isFunction(n))n=this[n];if(!n)continue;var r=e.match(P);this.delegate(r[1],r[2],n.bind(this))}return this},delegate:function(t,e,i){this.$el.on(t+".delegateEvents"+this.cid,e,i);return this},undelegateEvents:function(){if(this.$el)this.$el.off(".delegateEvents"+this.cid);return this},undelegate:function(t,e,i){this.$el.off(t+".delegateEvents"+this.cid,e,i);return this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(!this.el){var t=i.extend({},i.result(this,"attributes"));if(this.id)t.id=i.result(this,"id");if(this.className)t["class"]=i.result(this,"className");this.setElement(this._createElement(i.result(this,"tagName")));this._setAttributes(t)}else{this.setElement(i.result(this,"el"))}},_setAttributes:function(t){this.$el.attr(t)}});var $=function(t,e,i,n){switch(e){case 1:return function(){return t[i](this[n])};case 2:return function(e){return t[i](this[n],e)};case 3:return function(e,r){return t[i](this[n],C(e,this),r)};case 4:return function(e,r,s){return t[i](this[n],C(e,this),r,s)};default:return function(){var e=s.call(arguments);e.unshift(this[n]);return t[i].apply(t,e)}}};var A=function(t,e,n,r){i.each(n,function(i,n){if(e[n])t.prototype[n]=$(e,i,n,r)})};var C=function(t,e){if(i.isFunction(t))return t;if(i.isObject(t)&&!e._isModel(t))return R(t);if(i.isString(t))return function(e){return e.get(t)};return t};var R=function(t){var e=i.matches(t);return function(t){return e(t.attributes)}};var M={forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3};var N={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};i.each([[_,M,"models"],[m,N,"attributes"]],function(t){var e=t[0],n=t[1],r=t[2];e.mixin=function(t){var n=i.reduce(i.functions(t),function(t,e){t[e]=0;return t},{});A(e,t,n,r)};A(e,i,n,r)});e.sync=function(t,n,r){var s=j[t];i.defaults(r||(r={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:s,dataType:"json"};if(!r.url){a.url=i.result(n,"url")||V()}if(r.data==null&&n&&(t==="create"||t==="update"||t==="patch")){a.contentType="application/json";a.data=JSON.stringify(r.attrs||n.toJSON(r))}if(r.emulateJSON){a.contentType="application/x-www-form-urlencoded";a.data=a.data?{model:a.data}:{}}if(r.emulateHTTP&&(s==="PUT"||s==="DELETE"||s==="PATCH")){a.type="POST";if(r.emulateJSON)a.data._method=s;var o=r.beforeSend;r.beforeSend=function(t){t.setRequestHeader("X-HTTP-Method-Override",s);if(o)return o.apply(this,arguments)}}if(a.type!=="GET"&&!r.emulateJSON){a.processData=false}var h=r.error;r.error=function(t,e,i){r.textStatus=e;r.errorThrown=i;if(h)h.call(r.context,t,e,i)};var u=r.xhr=e.ajax(i.extend(a,r));n.trigger("request",n,u,r);return u};var j={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var O=e.Router=function(t){t||(t={});this.preinitialize.apply(this,arguments);if(t.routes)this.routes=t.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var U=/\((.*?)\)/g;var z=/(\(\?)?:\w+/g;var q=/\*\w+/g;var F=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(O.prototype,a,{preinitialize:function(){},initialize:function(){},route:function(t,n,r){if(!i.isRegExp(t))t=this._routeToRegExp(t);if(i.isFunction(n)){r=n;n=""}if(!r)r=this[n];var s=this;e.history.route(t,function(i){var a=s._extractParameters(t,i);if(s.execute(r,a,n)!==false){s.trigger.apply(s,["route:"+n].concat(a));s.trigger("route",n,a);e.history.trigger("route",s,n,a)}});return this},execute:function(t,e,i){if(t)t.apply(this,e)},navigate:function(t,i){e.history.navigate(t,i);return this},_bindRoutes:function(){if(!this.routes)return;this.routes=i.result(this,"routes");var t,e=i.keys(this.routes);while((t=e.pop())!=null){this.route(t,this.routes[t])}},_routeToRegExp:function(t){t=t.replace(F,"\\$&").replace(U,"(?:$1)?").replace(z,function(t,e){return e?t:"([^/?]+)"}).replace(q,"([^?]*?)");return new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return i.map(n,function(t,e){if(e===n.length-1)return t||null;return t?decodeURIComponent(t):null})}});var B=e.History=function(){this.handlers=[];this.checkUrl=this.checkUrl.bind(this);if(typeof window!=="undefined"){this.location=window.location;this.history=window.history}};var J=/^[#\/]|\s+$/g;var L=/^\/+|\/+$/g;var W=/#.*$/;B.started=false;i.extend(B.prototype,a,{interval:50,atRoot:function(){var t=this.location.pathname.replace(/[^\/]$/,"$&/");return t===this.root&&!this.getSearch()},matchRoot:function(){var t=this.decodeFragment(this.location.pathname);var e=t.slice(0,this.root.length-1)+"/";return e===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return t.charAt(0)==="/"?t.slice(1):t},getFragment:function(t){if(t==null){if(this._usePushState||!this._wantsHashChange){t=this.getPath()}else{t=this.getHash()}}return t.replace(J,"")},start:function(t){if(B.started)throw new Error("Backbone.history has already been started");B.started=true;this.options=i.extend({root:"/"},this.options,t);this.root=this.options.root;this._wantsHashChange=this.options.hashChange!==false;this._hasHashChange="onhashchange"in window&&(document.documentMode===void 0||document.documentMode>7);this._useHashChange=this._wantsHashChange&&this._hasHashChange;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.history&&this.history.pushState);this._usePushState=this._wantsPushState&&this._hasPushState;this.fragment=this.getFragment();this.root=("/"+this.root+"/").replace(L,"/");if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";this.location.replace(e+"#"+this.getPath());return true}else if(this._hasPushState&&this.atRoot()){this.navigate(this.getHash(),{replace:true})}}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe");this.iframe.src="javascript:0";this.iframe.style.display="none";this.iframe.tabIndex=-1;var n=document.body;var r=n.insertBefore(this.iframe,n.firstChild).contentWindow;r.document.open();r.document.close();r.location.hash="#"+this.fragment}var s=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState){s("popstate",this.checkUrl,false)}else if(this._useHashChange&&!this.iframe){s("hashchange",this.checkUrl,false)}else if(this._wantsHashChange){this._checkUrlInterval=setInterval(this.checkUrl,this.interval)}if(!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};if(this._usePushState){t("popstate",this.checkUrl,false)}else if(this._useHashChange&&!this.iframe){t("hashchange",this.checkUrl,false)}if(this.iframe){document.body.removeChild(this.iframe);this.iframe=null}if(this._checkUrlInterval)clearInterval(this._checkUrlInterval);B.started=false},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe){e=this.getHash(this.iframe.contentWindow)}if(e===this.fragment)return false;if(this.iframe)this.navigate(e);this.loadUrl()},loadUrl:function(t){if(!this.matchRoot())return false;t=this.fragment=this.getFragment(t);return i.some(this.handlers,function(e){if(e.route.test(t)){e.callback(t);return true}})},navigate:function(t,e){if(!B.started)return false;if(!e||e===true)e={trigger:!!e};t=this.getFragment(t||"");var i=this.root;if(t===""||t.charAt(0)==="?"){i=i.slice(0,-1)||"/"}var n=i+t;t=t.replace(W,"");var r=this.decodeFragment(t);if(this.fragment===r)return;this.fragment=r;if(this._usePushState){this.history[e.replace?"replaceState":"pushState"]({},document.title,n)}else if(this._wantsHashChange){this._updateHash(this.location,t,e.replace);if(this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var s=this.iframe.contentWindow;if(!e.replace){s.document.open();s.document.close()}this._updateHash(s.location,t,e.replace)}}else{return this.location.assign(n)}if(e.trigger)return this.loadUrl(t)},_updateHash:function(t,e,i){if(i){var n=t.href.replace(/(javascript:|#).*$/,"");t.replace(n+"#"+e)}else{t.hash="#"+e}}});e.history=new B;var D=function(t,e){var n=this;var r;if(t&&i.has(t,"constructor")){r=t.constructor}else{r=function(){return n.apply(this,arguments)}}i.extend(r,n,e);r.prototype=i.create(n.prototype,t);r.prototype.constructor=r;r.__super__=n.prototype;return r};m.extend=_.extend=O.extend=T.extend=B.extend=D;var V=function(){throw new Error('A "url" property or function must be specified')};var G=function(t,e){var i=e.error;e.error=function(n){if(i)i.call(e.context,t,n,e);t.trigger("error",t,n,e)}};return e});
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function () {
var settingsElement = document.querySelector('head > script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]');
window.drupalSettings = {};
if (settingsElement !== null) {
window.drupalSettings = JSON.parse(settingsElement.textContent);
}
})();;
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
window.Drupal = {
behaviors: {},
locale: {}
};
(function (Drupal, drupalSettings, drupalTranslations, console, Proxy, Reflect) {
Drupal.throwError = function (error) {
setTimeout(function () {
throw error;
}, 0);
};
Drupal.attachBehaviors = function (context, settings) {
context = context || document;
settings = settings || drupalSettings;
var behaviors = Drupal.behaviors;
Object.keys(behaviors || {}).forEach(function (i) {
if (typeof behaviors[i].attach === 'function') {
try {
behaviors[i].attach(context, settings);
} catch (e) {
Drupal.throwError(e);
}
}
});
};
Drupal.detachBehaviors = function (context, settings, trigger) {
context = context || document;
settings = settings || drupalSettings;
trigger = trigger || 'unload';
var behaviors = Drupal.behaviors;
Object.keys(behaviors || {}).forEach(function (i) {
if (typeof behaviors[i].detach === 'function') {
try {
behaviors[i].detach(context, settings, trigger);
} catch (e) {
Drupal.throwError(e);
}
}
});
};
Drupal.checkPlain = function (str) {
str = str.toString().replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''');
return str;
};
Drupal.formatString = function (str, args) {
var processedArgs = {};
Object.keys(args || {}).forEach(function (key) {
switch (key.charAt(0)) {
case '@':
processedArgs[key] = Drupal.checkPlain(args[key]);
break;
case '!':
processedArgs[key] = args[key];
break;
default:
processedArgs[key] = Drupal.theme('placeholder', args[key]);
break;
}
});
return Drupal.stringReplace(str, processedArgs, null);
};
Drupal.stringReplace = function (str, args, keys) {
if (str.length === 0) {
return str;
}
if (!Array.isArray(keys)) {
keys = Object.keys(args || {});
keys.sort(function (a, b) {
return a.length - b.length;
});
}
if (keys.length === 0) {
return str;
}
var key = keys.pop();
var fragments = str.split(key);
if (keys.length) {
for (var i = 0; i < fragments.length; i++) {
fragments[i] = Drupal.stringReplace(fragments[i], args, keys.slice(0));
}
}
return fragments.join(args[key]);
};
Drupal.t = function (str, args, options) {
options = options || {};
options.context = options.context || '';
if (typeof drupalTranslations !== 'undefined' && drupalTranslations.strings && drupalTranslations.strings[options.context] && drupalTranslations.strings[options.context][str]) {
str = drupalTranslations.strings[options.context][str];
}
if (args) {
str = Drupal.formatString(str, args);
}
return str;
};
Drupal.url = function (path) {
return drupalSettings.path.baseUrl + drupalSettings.path.pathPrefix + path;
};
Drupal.url.toAbsolute = function (url) {
var urlParsingNode = document.createElement('a');
try {
url = decodeURIComponent(url);
} catch (e) {}
urlParsingNode.setAttribute('href', url);
return urlParsingNode.cloneNode(false).href;
};
Drupal.url.isLocal = function (url) {
var absoluteUrl = Drupal.url.toAbsolute(url);
var protocol = window.location.protocol;
if (protocol === 'http:' && absoluteUrl.indexOf('https:') === 0) {
protocol = 'https:';
}
var baseUrl = "".concat(protocol, "//").concat(window.location.host).concat(drupalSettings.path.baseUrl.slice(0, -1));
try {
absoluteUrl = decodeURIComponent(absoluteUrl);
} catch (e) {}
try {
baseUrl = decodeURIComponent(baseUrl);
} catch (e) {}
return absoluteUrl === baseUrl || absoluteUrl.indexOf("".concat(baseUrl, "/")) === 0;
};
Drupal.formatPlural = function (count, singular, plural, args, options) {
args = args || {};
args['@count'] = count;
var pluralDelimiter = drupalSettings.pluralDelimiter;
var translations = Drupal.t(singular + pluralDelimiter + plural, args, options).split(pluralDelimiter);
var index = 0;
if (typeof drupalTranslations !== 'undefined' && drupalTranslations.pluralFormula) {
index = count in drupalTranslations.pluralFormula ? drupalTranslations.pluralFormula[count] : drupalTranslations.pluralFormula.default;
} else if (args['@count'] !== 1) {
index = 1;
}
return translations[index];
};
Drupal.encodePath = function (item) {
return window.encodeURIComponent(item).replace(/%2F/g, '/');
};
Drupal.deprecationError = function (_ref) {
var message = _ref.message;
if (drupalSettings.suppressDeprecationErrors === false && typeof console !== 'undefined' && console.warn) {
console.warn("[Deprecation] ".concat(message));
}
};
Drupal.deprecatedProperty = function (_ref2) {
var target = _ref2.target,
deprecatedProperty = _ref2.deprecatedProperty,
message = _ref2.message;
if (!Proxy || !Reflect) {
return target;
}
return new Proxy(target, {
get: function get(target, key) {
if (key === deprecatedProperty) {
Drupal.deprecationError({
message: message
});
}
for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
rest[_key - 2] = arguments[_key];
}
return Reflect.get.apply(Reflect, [target, key].concat(rest));
}
});
};
Drupal.theme = function (func) {
if (func in Drupal.theme) {
var _Drupal$theme;
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
args[_key2 - 1] = arguments[_key2];
}
return (_Drupal$theme = Drupal.theme)[func].apply(_Drupal$theme, args);
}
};
Drupal.theme.placeholder = function (str) {
return "<em class=\"placeholder\">".concat(Drupal.checkPlain(str), "</em>");
};
})(Drupal, window.drupalSettings, window.drupalTranslations, window.console, window.Proxy, window.Reflect);;
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
if (window.jQuery) {
jQuery.noConflict();
}
document.documentElement.className += ' js';
(function (Drupal, drupalSettings) {
var domReady = function domReady(callback) {
var listener = function listener() {
callback();
document.removeEventListener('DOMContentLoaded', listener);
};
if (document.readyState !== 'loading') {
setTimeout(callback, 0);
} else {
document.addEventListener('DOMContentLoaded', listener);
}
};
domReady(function () {
Drupal.attachBehaviors(document, drupalSettings);
});
})(Drupal, window.drupalSettings);;
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}((function(e){return e.ui=e.ui||{},e.ui.version="1.12.1"}));;
/*!
* jQuery UI :data 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){return e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo((function(n){return function(t){return!!e.data(t,n)}})):function(n,t,r){return!!e.data(n,r[3])}})}));;
!function(n){"function"==typeof define&&define.amd?define(["jquery","./version"],n):n(jQuery)}((function(n){return n.ui.plugin={add:function(e,i,o){var t,u=n.ui[e].prototype;for(t in o)u.plugins[t]=u.plugins[t]||[],u.plugins[t].push([i,o[t]])},call:function(n,e,i,o){var t,u=n.plugins[e];if(u&&(o||n.element[0].parentNode&&11!==n.element[0].parentNode.nodeType))for(t=0;t<u.length;t++)n.options[u[t][0]]&&u[t][1].apply(n.element,i)}}}));;
/*!
* jQuery UI Disable Selection 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){return e.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",(function(e){e.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var n}));;
!function(e){"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){return e.ui.escapeSelector=(n=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(e){return e.replace(n,"\\$1")});var n}));;
/*!
* jQuery UI Focusable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){return e.ui.focusable=function(i,t){var n,a,r,s,o,u=i.nodeName.toLowerCase();return"area"===u?(a=(n=i.parentNode).name,!(!i.href||!a||"map"!==n.nodeName.toLowerCase())&&((r=e("img[usemap='#"+a+"']")).length>0&&r.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(u)?(s=!i.disabled)&&(o=e(i).closest("fieldset")[0])&&(s=!o.disabled):s="a"===u&&i.href||t,s&&e(i).is(":visible")&&function(e){var i=e.css("visibility");for(;"inherit"===i;)i=(e=e.parent()).css("visibility");return"hidden"!==i}(e(i)))},e.extend(e.expr[":"],{focusable:function(i){return e.ui.focusable(i,null!=e.attr(i,"tabindex"))}}),e.ui.focusable}));;
!function(n){"function"==typeof define&&define.amd?define(["jquery","./version"],n):n(jQuery)}((function(n){return n.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):n(this[0].form)}}));;
!function(e){"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())}));;
/*!
* jQuery UI Support for jQuery core 1.7.x 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
!function(t){"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],(function(n,i){var e="Width"===i?["Left","Right"]:["Top","Bottom"],r=i.toLowerCase(),h={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};function s(n,i,r,h){return t.each(e,(function(){i-=parseFloat(t.css(n,"padding"+this))||0,r&&(i-=parseFloat(t.css(n,"border"+this+"Width"))||0),h&&(i-=parseFloat(t.css(n,"margin"+this))||0)})),i}t.fn["inner"+i]=function(n){return void 0===n?h["inner"+i].call(this):this.each((function(){t(this).css(r,s(this,n)+"px")}))},t.fn["outer"+i]=function(n,e){return"number"!=typeof n?h["outer"+i].call(this,n):this.each((function(){t(this).css(r,s(this,n,!0,e)+"px")}))}})),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))})}));;
/*!
* jQuery UI Keycode 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(E){"function"==typeof define&&define.amd?define(["jquery","./version"],E):E(jQuery)}((function(E){return E.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}));;
/*!
* jQuery UI Scroll Parent 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){return e.fn.scrollParent=function(t){var n=this.css("position"),o="absolute"===n,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,i=this.parents().filter((function(){var t=e(this);return(!o||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))})).eq(0);return"fixed"!==n&&i.length?i:e(this[0].ownerDocument||document)}}));;
!function(e){"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){return e.ui.safeActiveElement=function(e){var n;try{n=e.activeElement}catch(t){n=e.body}return n||(n=e.body),n.nodeName||(n=e.body),n}}));;
!function(e){"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){return e.ui.safeBlur=function(n){n&&"body"!==n.nodeName.toLowerCase()&&e(n).trigger("blur")}}));;
/*!
* jQuery UI Unique ID 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(i){"function"==typeof define&&define.amd?define(["jquery","./version"],i):i(jQuery)}((function(i){return i.fn.extend({uniqueId:(n=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++n)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&i(this).removeAttr("id")}))}});var n}));;
/*!
* jQuery UI Widget 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(t){"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){var e,i=0,s=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{(s=t._data(n,"events"))&&s.remove&&t(n).triggerHandler("remove")}catch(t){}e(i)}),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0],u=l+"-"+(e=e.split(".")[1]);return s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(s,(function(e,s){t.isFunction(s)?r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}():r[e]=s})),o.prototype=t.widget.extend(a,{widgetEventPrefix:n&&a.widgetEventPrefix||e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:u}),n?(t.each(n._childConstructors,(function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)})),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,n,o=s.call(arguments,1),a=0,r=o.length;a<r;a++)for(i in o[a])n=o[a][i],o[a].hasOwnProperty(i)&&void 0!==n&&(t.isPlainObject(n)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],n):t.widget.extend({},n):e[i]=n);return e},t.widget.bridge=function(e,i){var n=i.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=s.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each((function(){var i,s=t.data(this,n);return"instance"===o?(l=s,!1):s?t.isFunction(s[o])&&"_"!==o.charAt(0)?(i=s[o].apply(s,r))!==s&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each((function(){var e=t.data(this,n);e?(e.option(o||{}),e._init&&e._init()):t.data(this,n,new i(o,this))}))),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,i){e._removeClass(i,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;o<s.length-1;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],s=this;function n(n,o){var a,r;for(r=0;r<n.length;r++)a=s.classesElementLookup[n[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),s.classesElementLookup[n[r]]=a,i.push(n[r]),o&&e.classes[n[r]]&&i.push(e.classes[n[r]])}return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&n(e.keys.match(/\S+/g)||[],!0),e.extra&&n(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,(function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))}))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,(function(s,a){function r(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,h=l[2];h?n.on(u,h,r):i.on(u,r)}))},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout((function(){return("string"==typeof t?i[t]:t).apply(i,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&!1===a.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){var a;"string"==typeof n&&(n={effect:n});var r=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue((function(i){t(this)[e](),o&&o.call(s[0]),i()}))}})),t.widget}));;
/*!
* jQuery UI Controlgroup 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(t){"function"==typeof define&&define.amd?define(["jquery","../widget"],t):t(jQuery)}((function(t){var e=/ui-corner-([a-z]){2,6}/g;return t.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,(function(n,o){var s,l={};if(o)return"controlgroupLabel"===n?((s=e.element.find(o)).each((function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")})),e._addClass(s,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(s.get()))):void(t.fn[n]&&(l=e["_"+n+"Options"]?e["_"+n+"Options"]("middle"):{classes:{}},e.element.find(o).each((function(){var o=t(this),s=o[n]("instance"),r=t.widget.extend({},l);if("button"!==n||!o.parent(".ui-spinner").length){s||(s=o[n]()[n]("instance")),s&&(r.classes=e._resolveClassesValues(r.classes,s)),o[n](r);var u=o[n]("widget");t.data(u[0],"ui-controlgroup-data",s||o[n]("instance")),i.push(u[0])}}))))})),this.childWidgets=t(t.unique(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each((function(){var i=t(this).data("ui-controlgroup-data");i&&i[e]&&i[e]()}))},_updateCornerClass:function(t,e){var i=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,i)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,n){var o={};return t.each(i,(function(s){var l=n.options.classes[s]||"";l=t.trim(l.replace(e,"")),o[s]=(l+" "+i[s]).replace(/\s+/g," ")})),o},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],(function(t,n){var o=e[n]().data("ui-controlgroup-data");if(o&&i["_"+o.widgetName+"Options"]){var s=i["_"+o.widgetName+"Options"](1===e.length?"only":n);s.classes=i._resolveClassesValues(s.classes,o),o.element[o.widgetName](s)}else i._updateCornerClass(e[n](),n)})),this._callChildMethod("refresh"))}})}));;
/*!
* jQuery UI Form Reset Mixin 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","./form","./version"],e):e(jQuery)}((function(e){return e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout((function(){var r=t.data("ui-form-reset-instances");e.each(r,(function(){this.refresh()}))}))},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}}}));;
/*!
* jQuery UI Mouse 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","../ie","../version","../widget"],e):e(jQuery)}((function(e){var t=!1;return e(document).on("mouseup",(function(){t=!1})),e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(i){if(!0===e.data(i.target,t.widgetName+".preventClickEvent"))return e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var s=this,o=1===i.which,n=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&e(i.target).closest(this.options.cancel).length;return!(o&&!n&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){s.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return s._mouseMove(e)},this._mouseUpDelegate=function(e){return s._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&e.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,i.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}));;
/*!
* jQuery UI Labels 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","./version","./escape-selector"],e):e(jQuery)}((function(e){return e.fn.labels=function(){var t,s,i,n,a;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),(i=this.attr("id"))&&(a=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),s="label[for='"+e.ui.escapeSelector(i)+"']",n=n.add(a.find(s).addBack(s))),this.pushStack(n))}}));;
/*!
* jQuery UI Checkboxradio 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","../escape-selector","../form-reset-mixin","../labels","../widget"],e):e(jQuery)}((function(e){return e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var i,t,s=this,o=this._super()||{};return this._readType(),t=this.element.labels(),this.label=e(t[t.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each((function(){s.originalLabel+=3===this.nodeType?e(this).text():this.outerHTML})),this.originalLabel&&(o.label=this.originalLabel),null!=(i=this.element[0].disabled)&&(o.disabled=i),o},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var i=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===i&&/radio|checkbox/.test(this.type)||e.error("Can't create checkboxradio on element.nodeName="+i+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var i=this.element[0].name,t="input[name='"+e.ui.escapeSelector(i)+"']";return i?(this.form.length?e(this.form[0].elements).filter(t):e(t).filter((function(){return 0===e(this).form().length}))).not(this.element):e([])},_toggleClasses:function(){var i=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",i),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",i)._toggleClass(this.icon,null,"ui-icon-blank",!i),"radio"===this.type&&this._getRadioGroup().each((function(){var i=e(this).checkboxradio("instance");i&&i._removeClass(i.label,"ui-checkboxradio-checked","ui-state-active")}))},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,i){if("label"!==e||i){if(this._super(e,i),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",i),void(this.element[0].disabled=i);this.refresh()}},_updateIcon:function(i){var t="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(t+=i?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,i?"ui-icon-blank":"ui-icon-check")):t+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",t),i||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,i=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),i!==this.options.disabled&&this._setOptions({disabled:i})}}]),e.ui.checkboxradio}));;
/*!
* jQuery UI Resizable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(t){"function"==typeof define&&define.amd?define(["jquery","./mouse","../disable-selection","../plugin","../version","../widget"],t):t(jQuery)}((function(t){return t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(i,e){if("hidden"===t(i).css("overflow"))return!1;var s,h=e&&"left"===e?"scrollLeft":"scrollTop";return i[h]>0||(i[h]=1,s=i[h]>0,i[h]=0,s)},_create:function(){var i,e=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,i={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(i),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(i),this._proportionallyResize()),this._setupHandles(),e.autoHide&&t(this.element).on("mouseenter",(function(){e.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())})).on("mouseleave",(function(){e.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var i,e=function(i){t(i).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(e(this.element),i=this.element,this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")}).insertAfter(i),i.remove()),this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_setOption:function(t,i){switch(this._super(t,i),t){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var i,e,s,h,n,o=this.options,a=this;if(this.handles=o.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},e=0;e<s.length;e++)h="ui-resizable-"+(i=t.trim(s[e])),n=t("<div>"),this._addClass(n,"ui-resizable-handle "+h),n.css({zIndex:o.zIndex}),this.handles[i]=".ui-resizable-"+i,this.element.append(n);this._renderAxis=function(i){var e,s,h,n;for(e in i=i||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=t(this.handles[e]),this._on(this.handles[e],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[e],this.element),n=/sw|ne|nw|se|n|s/.test(e)?s.outerHeight():s.outerWidth(),h=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),i.css(h,n),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){a.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=n&&n[1]?n[1]:"se")})),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(i){var e,s,h=!1;for(e in this.handles)((s=t(this.handles[e])[0])===i.target||t.contains(s,i.target))&&(h=!0);return!this.options.disabled&&h},_mouseStart:function(i){var e,s,h,n=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),n.containment&&(e+=t(n.containment).scrollLeft()||0,s+=t(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:e,top:s},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1,h=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===h?this.axis+"-resize":h),this._addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(i){var e,s,h=this.originalMousePosition,n=this.axis,o=i.pageX-h.left||0,a=i.pageY-h.top||0,l=this._change[n];return this._updatePrevProperties(),!!l&&(e=l.apply(this,[i,o,a]),this._updateVirtualBoundaries(i.shiftKey),(this._aspectRatio||i.shiftKey)&&(e=this._updateRatio(e,i)),e=this._respectSize(e,i),this._updateCache(e),this._propagate("resize",i),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",i,this.ui()),this._applyChanges()),!1)},_mouseStop:function(i){this.resizing=!1;var e,s,h,n,o,a,l,r=this.options,p=this;return this._helper&&(h=(s=(e=this._proportionallyResizeElements).length&&/textarea/i.test(e[0].nodeName))&&this._hasScroll(e[0],"left")?0:p.sizeDiff.height,n=s?0:p.sizeDiff.width,o={width:p.helper.width()-n,height:p.helper.height()-h},a=parseFloat(p.element.css("left"))+(p.position.left-p.originalPosition.left)||null,l=parseFloat(p.element.css("top"))+(p.position.top-p.originalPosition.top)||null,r.animate||this.element.css(t.extend(o,{top:l,left:a})),p.helper.height(p.size.height),p.helper.width(p.size.width),this._helper&&!r.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",i),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var i,e,s,h,n,o=this.options;n={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(i=n.minHeight*this.aspectRatio,s=n.minWidth/this.aspectRatio,e=n.maxHeight*this.aspectRatio,h=n.maxWidth/this.aspectRatio,i>n.minWidth&&(n.minWidth=i),s>n.minHeight&&(n.minHeight=s),e<n.maxWidth&&(n.maxWidth=e),h<n.maxHeight&&(n.maxHeight=h)),this._vBoundaries=n},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var i=this.position,e=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=i.left+(e.width-t.width),t.top=null),"nw"===s&&(t.top=i.top+(e.height-t.height),t.left=i.left+(e.width-t.width)),t},_respectSize:function(t){var i=this._vBoundaries,e=this.axis,s=this._isNumber(t.width)&&i.maxWidth&&i.maxWidth<t.width,h=this._isNumber(t.height)&&i.maxHeight&&i.maxHeight<t.height,n=this._isNumber(t.width)&&i.minWidth&&i.minWidth>t.width,o=this._isNumber(t.height)&&i.minHeight&&i.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,r=/sw|nw|w/.test(e),p=/nw|ne|n/.test(e);return n&&(t.width=i.minWidth),o&&(t.height=i.minHeight),s&&(t.width=i.maxWidth),h&&(t.height=i.maxHeight),n&&r&&(t.left=a-i.minWidth),s&&r&&(t.left=a-i.maxWidth),o&&p&&(t.top=l-i.minHeight),h&&p&&(t.top=l-i.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var i=0,e=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],h=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];i<4;i++)e[i]=parseFloat(s[i])||0,e[i]+=parseFloat(h[i])||0;return{height:e[0]+e[2],width:e[1]+e[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,i=0,e=this.helper||this.element;i<this._proportionallyResizeElements.length;i++)t=this._proportionallyResizeElements[i],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:e.height()-this.outerDimensions.height||0,width:e.width()-this.outerDimensions.width||0})},_renderProxy:function(){var i=this.element,e=this.options;this.elementOffset=i.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,i){return{width:this.originalSize.width+i}},w:function(t,i){var e=this.originalSize;return{left:this.originalPosition.left+i,width:e.width-i}},n:function(t,i,e){var s=this.originalSize;return{top:this.originalPosition.top+e,height:s.height-e}},s:function(t,i,e){return{height:this.originalSize.height+e}},se:function(i,e,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[i,e,s]))},sw:function(i,e,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[i,e,s]))},ne:function(i,e,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[i,e,s]))},nw:function(i,e,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[i,e,s]))}},_propagate:function(i,e){t.ui.plugin.call(this,i,[e,this.ui()]),"resize"!==i&&this._trigger(i,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(i){var e=t(this).resizable("instance"),s=e.options,h=e._proportionallyResizeElements,n=h.length&&/textarea/i.test(h[0].nodeName),o=n&&e._hasScroll(h[0],"left")?0:e.sizeDiff.height,a=n?0:e.sizeDiff.width,l={width:e.size.width-a,height:e.size.height-o},r=parseFloat(e.element.css("left"))+(e.position.left-e.originalPosition.left)||null,p=parseFloat(e.element.css("top"))+(e.position.top-e.originalPosition.top)||null;e.element.animate(t.extend(l,p&&r?{top:p,left:r}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(e.element.css("width")),height:parseFloat(e.element.css("height")),top:parseFloat(e.element.css("top")),left:parseFloat(e.element.css("left"))};h&&h.length&&t(h[0]).css({width:s.width,height:s.height}),e._updateCache(s),e._propagate("resize",i)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var i,e,s,h,n,o,a,l=t(this).resizable("instance"),r=l.options,p=l.element,d=r.containment,g=d instanceof t?d.get(0):/parent/.test(d)?p.parent().get(0):d;g&&(l.containerElement=t(g),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(i=t(g),e=[],t(["Top","Right","Left","Bottom"]).each((function(t,s){e[t]=l._num(i.css("padding"+s))})),l.containerOffset=i.offset(),l.containerPosition=i.position(),l.containerSize={height:i.innerHeight()-e[3],width:i.innerWidth()-e[1]},s=l.containerOffset,h=l.containerSize.height,n=l.containerSize.width,o=l._hasScroll(g,"left")?g.scrollWidth:n,a=l._hasScroll(g)?g.scrollHeight:h,l.parentData={element:g,left:s.left,top:s.top,width:o,height:a}))},resize:function(i){var e,s,h,n,o=t(this).resizable("instance"),a=o.options,l=o.containerOffset,r=o.position,p=o._aspectRatio||i.shiftKey,d={top:0,left:0},g=o.containerElement,u=!0;g[0]!==document&&/static/.test(g.css("position"))&&(d=l),r.left<(o._helper?l.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-l.left:o.position.left-d.left),p&&(o.size.height=o.size.width/o.aspectRatio,u=!1),o.position.left=a.helper?l.left:0),r.top<(o._helper?l.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-l.top:o.position.top),p&&(o.size.width=o.size.height*o.aspectRatio,u=!1),o.position.top=o._helper?l.top:0),h=o.containerElement.get(0)===o.element.parent().get(0),n=/relative|absolute/.test(o.containerElement.css("position")),h&&n?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),e=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-d.left:o.offset.left-l.left)),s=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-d.top:o.offset.top-l.top)),e+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-e,p&&(o.size.height=o.size.width/o.aspectRatio,u=!1)),s+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-s,p&&(o.size.width=o.size.height*o.aspectRatio,u=!1)),u||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var i=t(this).resizable("instance"),e=i.options,s=i.containerOffset,h=i.containerPosition,n=i.containerElement,o=t(i.helper),a=o.offset(),l=o.outerWidth()-i.sizeDiff.width,r=o.outerHeight()-i.sizeDiff.height;i._helper&&!e.animate&&/relative/.test(n.css("position"))&&t(this).css({left:a.left-h.left-s.left,width:l,height:r}),i._helper&&!e.animate&&/static/.test(n.css("position"))&&t(this).css({left:a.left-h.left-s.left,width:l,height:r})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var i=t(this).resizable("instance").options;t(i.alsoResize).each((function(){var i=t(this);i.data("ui-resizable-alsoresize",{width:parseFloat(i.width()),height:parseFloat(i.height()),left:parseFloat(i.css("left")),top:parseFloat(i.css("top"))})}))},resize:function(i,e){var s=t(this).resizable("instance"),h=s.options,n=s.originalSize,o=s.originalPosition,a={height:s.size.height-n.height||0,width:s.size.width-n.width||0,top:s.position.top-o.top||0,left:s.position.left-o.left||0};t(h.alsoResize).each((function(){var i=t(this),s=t(this).data("ui-resizable-alsoresize"),h={},n=i.parents(e.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(n,(function(t,i){var e=(s[i]||0)+(a[i]||0);e&&e>=0&&(h[i]=e||null)})),i.css(h)}))},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var i=t(this).resizable("instance"),e=i.size;i.ghost=i.originalElement.clone(),i.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),i._addClass(i.ghost,"ui-resizable-ghost"),!1!==t.uiBackCompat&&"string"==typeof i.options.ghost&&i.ghost.addClass(this.options.ghost),i.ghost.appendTo(i.helper)},resize:function(){var i=t(this).resizable("instance");i.ghost&&i.ghost.css({position:"relative",height:i.size.height,width:i.size.width})},stop:function(){var i=t(this).resizable("instance");i.ghost&&i.helper&&i.helper.get(0).removeChild(i.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var i,e=t(this).resizable("instance"),s=e.options,h=e.size,n=e.originalSize,o=e.originalPosition,a=e.axis,l="number"==typeof s.grid?[s.grid,s.grid]:s.grid,r=l[0]||1,p=l[1]||1,d=Math.round((h.width-n.width)/r)*r,g=Math.round((h.height-n.height)/p)*p,u=n.width+d,f=n.height+g,c=s.maxWidth&&s.maxWidth<u,m=s.maxHeight&&s.maxHeight<f,z=s.minWidth&&s.minWidth>u,w=s.minHeight&&s.minHeight>f;s.grid=l,z&&(u+=r),w&&(f+=p),c&&(u-=r),m&&(f-=p),/^(se|s|e)$/.test(a)?(e.size.width=u,e.size.height=f):/^(ne)$/.test(a)?(e.size.width=u,e.size.height=f,e.position.top=o.top-g):/^(sw)$/.test(a)?(e.size.width=u,e.size.height=f,e.position.left=o.left-d):((f-p<=0||u-r<=0)&&(i=e._getPaddingPlusBorderDimensions(this)),f-p>0?(e.size.height=f,e.position.top=o.top-g):(f=p-i.height,e.size.height=f,e.position.top=o.top+n.height-f),u-r>0?(e.size.width=u,e.position.left=o.left-d):(u=r-i.width,e.size.width=u,e.position.left=o.left+n.width-u))}}),t.ui.resizable}));;
/*!
* jQuery UI Draggable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(t){"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../plugin","../safe-active-element","../safe-blur","../scroll-parent","../version","../widget"],t):t(jQuery)}((function(t){return t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var s=this.options;return!(this.helper||s.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===s.iframeFix?"iframe":s.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var s=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(s).length||t.ui.safeBlur(s)},_mouseStart:function(e){var s=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,s){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!s){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var s=this,i=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==s._trigger("stop",e)&&s._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var s=this.options,i=t.isFunction(s.helper),o=i?t(s.helper.apply(this.element[0],[e])):"clone"===s.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===s.appendTo?this.element[0].parentNode:s.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),s=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==s&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,s,i,o=this.options,n=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(i=(s=t(o.containment))[0])&&(e=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s)):this.containment=o.containment:this.containment=[0,0,t(n).width()-this.helperProportions.width-this.margins.left,(t(n).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var s="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*s,left:e.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*s}},_generatePosition:function(t,e){var s,i,o,n,r=this.options,l=this._isRootNode(this.scrollParent[0]),a=t.pageX,h=t.pageY;return l&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),s=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):s=this.containment,t.pageX-this.offset.click.left<s[0]&&(a=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(h=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(a=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3]&&(h=s[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,h=s?o-this.offset.click.top>=s[1]||o-this.offset.click.top>s[3]?o:o-this.offset.click.top>=s[1]?o-r.grid[1]:o+r.grid[1]:o,n=r.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,a=s?n-this.offset.click.left>=s[0]||n-this.offset.click.left>s[2]?n:n-this.offset.click.left>=s[0]?n-r.grid[0]:n+r.grid[0]:n),"y"===r.axis&&(a=this.originalPageX),"x"===r.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:l?0:this.offset.scroll.top),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:l?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,s,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[s,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,s,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,s,i){var o=t.extend({},s,{item:i.element});i.sortables=[],t(i.options.connectToSortable).each((function(){var s=t(this).sortable("instance");s&&!s.options.disabled&&(i.sortables.push(s),s.refreshPositions(),s._trigger("activate",e,o))}))},stop:function(e,s,i){var o=t.extend({},s,{item:i.element});i.cancelHelperRemoval=!1,t.each(i.sortables,(function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,o))}))},drag:function(e,s,i){t.each(i.sortables,(function(){var o=!1,n=this;n.positionAbs=i.positionAbs,n.helperProportions=i.helperProportions,n.offset.click=i.offset.click,n._intersectsWith(n.containerCache)&&(o=!0,t.each(i.sortables,(function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==n&&this._intersectsWith(this.containerCache)&&t.contains(n.element[0],this.element[0])&&(o=!1),o}))),o?(n.isOver||(n.isOver=1,i._parent=s.helper.parent(),n.currentItem=s.helper.appendTo(n.element).data("ui-sortable-item",!0),n.options._helper=n.options.helper,n.options.helper=function(){return s.helper[0]},e.target=n.currentItem[0],n._mouseCapture(e,!0),n._mouseStart(e,!0,!0),n.offset.click.top=i.offset.click.top,n.offset.click.left=i.offset.click.left,n.offset.parent.left-=i.offset.parent.left-n.offset.parent.left,n.offset.parent.top-=i.offset.parent.top-n.offset.parent.top,i._trigger("toSortable",e),i.dropped=n.element,t.each(i.sortables,(function(){this.refreshPositions()})),i.currentItem=i.element,n.fromOutside=i),n.currentItem&&(n._mouseDrag(e),s.position=n.position)):n.isOver&&(n.isOver=0,n.cancelHelperRemoval=!0,n.options._revert=n.options.revert,n.options.revert=!1,n._trigger("out",e,n._uiHash(n)),n._mouseStop(e,!0),n.options.revert=n.options._revert,n.options.helper=n.options._helper,n.placeholder&&n.placeholder.remove(),s.helper.appendTo(i._parent),i._refreshOffsets(e),s.position=i._generatePosition(e,!0),i._trigger("fromSortable",e),i.dropped=!1,t.each(i.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,s,i){var o=t("body"),n=i.options;o.css("cursor")&&(n._cursor=o.css("cursor")),o.css("cursor",n.cursor)},stop:function(e,s,i){var o=i.options;o._cursor&&t("body").css("cursor",o._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,s,i){var o=t(s.helper),n=i.options;o.css("opacity")&&(n._opacity=o.css("opacity")),o.css("opacity",n.opacity)},stop:function(e,s,i){var o=i.options;o._opacity&&t(s.helper).css("opacity",o._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,s){s.scrollParentNotHidden||(s.scrollParentNotHidden=s.helper.scrollParent(!1)),s.scrollParentNotHidden[0]!==s.document[0]&&"HTML"!==s.scrollParentNotHidden[0].tagName&&(s.overflowOffset=s.scrollParentNotHidden.offset())},drag:function(e,s,i){var o=i.options,n=!1,r=i.scrollParentNotHidden[0],l=i.document[0];r!==l&&"HTML"!==r.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+r.offsetHeight-e.pageY<o.scrollSensitivity?r.scrollTop=n=r.scrollTop+o.scrollSpeed:e.pageY-i.overflowOffset.top<o.scrollSensitivity&&(r.scrollTop=n=r.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(i.overflowOffset.left+r.offsetWidth-e.pageX<o.scrollSensitivity?r.scrollLeft=n=r.scrollLeft+o.scrollSpeed:e.pageX-i.overflowOffset.left<o.scrollSensitivity&&(r.scrollLeft=n=r.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(e.pageY-t(l).scrollTop()<o.scrollSensitivity?n=t(l).scrollTop(t(l).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(l).scrollTop())<o.scrollSensitivity&&(n=t(l).scrollTop(t(l).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(e.pageX-t(l).scrollLeft()<o.scrollSensitivity?n=t(l).scrollLeft(t(l).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(l).scrollLeft())<o.scrollSensitivity&&(n=t(l).scrollLeft(t(l).scrollLeft()+o.scrollSpeed)))),!1!==n&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,s,i){var o=i.options;i.snapElements=[],t(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each((function(){var e=t(this),s=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:s.top,left:s.left})}))},drag:function(e,s,i){var o,n,r,l,a,h,p,c,f,d,g=i.options,u=g.snapTolerance,m=s.offset.left,v=m+i.helperProportions.width,_=s.offset.top,P=_+i.helperProportions.height;for(f=i.snapElements.length-1;f>=0;f--)h=(a=i.snapElements[f].left-i.margins.left)+i.snapElements[f].width,c=(p=i.snapElements[f].top-i.margins.top)+i.snapElements[f].height,v<a-u||m>h+u||P<p-u||_>c+u||!t.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==g.snapMode&&(o=Math.abs(p-P)<=u,n=Math.abs(c-_)<=u,r=Math.abs(a-v)<=u,l=Math.abs(h-m)<=u,o&&(s.position.top=i._convertPositionTo("relative",{top:p-i.helperProportions.height,left:0}).top),n&&(s.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),r&&(s.position.left=i._convertPositionTo("relative",{top:0,left:a-i.helperProportions.width}).left),l&&(s.position.left=i._convertPositionTo("relative",{top:0,left:h}).left)),d=o||n||r||l,"outer"!==g.snapMode&&(o=Math.abs(p-_)<=u,n=Math.abs(c-P)<=u,r=Math.abs(a-m)<=u,l=Math.abs(h-v)<=u,o&&(s.position.top=i._convertPositionTo("relative",{top:p,left:0}).top),n&&(s.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),r&&(s.position.left=i._convertPositionTo("relative",{top:0,left:a}).left),l&&(s.position.left=i._convertPositionTo("relative",{top:0,left:h-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(o||n||r||l||d)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=o||n||r||l||d)}}),t.ui.plugin.add("draggable","stack",{start:function(e,s,i){var o,n=i.options,r=t.makeArray(t(n.stack)).sort((function(e,s){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(s).css("zIndex"),10)||0)}));r.length&&(o=parseInt(t(r[0]).css("zIndex"),10)||0,t(r).each((function(e){t(this).css("zIndex",o+e)})),this.css("zIndex",o+r.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,s,i){var o=t(s.helper),n=i.options;o.css("zIndex")&&(n._zIndex=o.css("zIndex")),o.css("zIndex",n.zIndex)},stop:function(e,s,i){var o=i.options;o._zIndex&&t(s.helper).css("zIndex",o._zIndex)}}),t.ui.draggable}));;
/*!
* jQuery UI Button 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(t){"function"==typeof define&&define.amd?define(["jquery","./controlgroup","./checkboxradio","../keycode","../widget"],t):t(jQuery)}((function(t){var i;return t.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,i=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(i.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(i.label=this.originalLabel),i},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(i){i.keyCode===t.ui.keyCode.SPACE&&(i.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(i,o){var s="iconPosition"!==i,n=s?this.options.iconPosition:o,e="top"===n||"bottom"===n;this.icon?s&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),s&&this._addClass(this.icon,null,o),this._attachIcon(n),e?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var i=void 0===t.showLabel?this.options.showLabel:t.showLabel,o=void 0===t.icon?this.options.icon:t.icon;i||o||(t.showLabel=!0),this._super(t)},_setOption:function(t,i){"icon"===t&&(i?this._updateIcon(t,i):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,i),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!i),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(i):(this.element.html(i),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,i),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",i),this.element[0].disabled=i,i&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,i){"text"!==t?("showLabel"===t&&(this.options.text=i),"icon"===t&&(this.options.icons.primary=i),"icons"===t&&(i.primary?(this._super("icon",i.primary),this._super("iconPosition","beginning")):i.secondary&&(this._super("icon",i.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",i)}}),t.fn.button=(i=t.fn.button,function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?i.apply(this,arguments):(t.ui.checkboxradio||t.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button}));;
/*!
* jQuery UI Dialog 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(i){"function"==typeof define&&define.amd?define(["jquery","./button","./draggable","./mouse","./resizable","../focusable","../keycode","../position","../safe-active-element","../safe-blur","../unique-id","../version","../widget"],i):i(jQuery)}((function(i){return i.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=i(this).css(t).offset().top;e<0&&i(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&i.fn.draggable&&this._makeDraggable(),this.options.resizable&&i.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?i(t):this.document.find(t||"body").eq(0)},_destroy:function(){var i,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(i=t.parent.children().eq(t.index)).length&&i[0]!==this.element[0]?i.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:i.noop,enable:i.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||i.ui.safeBlur(i.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,(function(){e._trigger("close",t)})))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var o=!1,s=this.uiDialog.siblings(".ui-front:visible").map((function(){return+i(this).css("z-index")})).get(),n=Math.max.apply(null,s);return n>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",n+1),o=!0),o&&!e&&this._trigger("focus",t),o},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=i(i.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,(function(){t._focusTabbable(),t._trigger("focus")})),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var i=this._focusedElement;i||(i=this.element.find("[autofocus]")),i.length||(i=this.element.find(":tabbable")),i.length||(i=this.uiDialogButtonPane.find(":tabbable")),i.length||(i=this.uiDialogTitlebarClose.filter(":tabbable")),i.length||(i=this.uiDialog),i.eq(0).trigger("focus")},_keepFocus:function(t){function e(){var t=i.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||i.contains(this.uiDialog[0],t)||this._focusTabbable()}t.preventDefault(),e.call(this),this._delay(e)},_createWrapper:function(){this.uiDialog=i("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===i.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===i.ui.keyCode.TAB&&!t.isDefaultPrevented()){var e=this.uiDialog.find(":tabbable"),o=e.filter(":first"),s=e.filter(":last");t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==o[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay((function(){s.trigger("focus")})),t.preventDefault()):(this._delay((function(){o.trigger("focus")})),t.preventDefault())}},mousedown:function(i){this._moveToTop(i)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=i("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){i(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=i("<button type='button'></button>").button({label:i("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(i){i.preventDefault(),this.close(i)}}),t=i("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(i){this.options.title?i.text(this.options.title):i.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=i("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=i("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,e=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),i.isEmptyObject(e)||i.isArray(e)&&!e.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(i.each(e,(function(e,o){var s,n;o=i.isFunction(o)?{click:o,text:e}:o,o=i.extend({type:"button"},o),s=o.click,n={icon:o.icon,iconPosition:o.iconPosition,showLabel:o.showLabel,icons:o.icons,text:o.text},delete o.click,delete o.icon,delete o.iconPosition,delete o.showLabel,delete o.icons,"boolean"==typeof o.text&&delete o.text,i("<button></button>",o).button(n).appendTo(t.uiButtonSet).on("click",(function(){s.apply(t.element[0],arguments)}))})),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var t=this,e=this.options;function o(i){return{position:i.position,offset:i.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,s){t._addClass(i(this),"ui-dialog-dragging"),t._blockFrames(),t._trigger("dragStart",e,o(s))},drag:function(i,e){t._trigger("drag",i,o(e))},stop:function(s,n){var a=n.offset.left-t.document.scrollLeft(),l=n.offset.top-t.document.scrollTop();e.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(l>=0?"+":"")+l,of:t.window},t._removeClass(i(this),"ui-dialog-dragging"),t._unblockFrames(),t._trigger("dragStop",s,o(n))}})},_makeResizable:function(){var t=this,e=this.options,o=e.resizable,s=this.uiDialog.css("position"),n="string"==typeof o?o:"n,e,s,w,se,sw,ne,nw";function a(i){return{originalPosition:i.originalPosition,originalSize:i.originalSize,position:i.position,size:i.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:this._minHeight(),handles:n,start:function(e,o){t._addClass(i(this),"ui-dialog-resizing"),t._blockFrames(),t._trigger("resizeStart",e,a(o))},resize:function(i,e){t._trigger("resize",i,a(e))},stop:function(o,s){var n=t.uiDialog.offset(),l=n.left-t.document.scrollLeft(),h=n.top-t.document.scrollTop();e.height=t.uiDialog.height(),e.width=t.uiDialog.width(),e.position={my:"left top",at:"left"+(l>=0?"+":"")+l+" top"+(h>=0?"+":"")+h,of:t.window},t._removeClass(i(this),"ui-dialog-resizing"),t._unblockFrames(),t._trigger("resizeStop",o,a(s))}}).css("position",s)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=i(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=i.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var i=this.document.data("ui-dialog-instances");return i||(i=[],this.document.data("ui-dialog-instances",i)),i},_minHeight:function(){var i=this.options;return"auto"===i.height?i.minHeight:Math.min(i.minHeight,i.height)},_position:function(){var i=this.uiDialog.is(":visible");i||this.uiDialog.show(),this.uiDialog.position(this.options.position),i||this.uiDialog.hide()},_setOptions:function(t){var e=this,o=!1,s={};i.each(t,(function(i,t){e._setOption(i,t),i in e.sizeRelatedOptions&&(o=!0),i in e.resizableRelatedOptions&&(s[i]=t)})),o&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,e){var o,s,n=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:i("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((o=n.is(":data(ui-draggable)"))&&!e&&n.draggable("destroy"),!o&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((s=n.is(":data(ui-resizable)"))&&!e&&n.resizable("destroy"),s&&"string"==typeof e&&n.resizable("option","handles",e),s||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var i,t,e,o=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),o.minWidth>o.width&&(o.width=o.minWidth),i=this.uiDialog.css({height:"auto",width:o.width}).outerHeight(),t=Math.max(0,o.minHeight-i),e="number"==typeof o.maxHeight?Math.max(0,o.maxHeight-i):"none","auto"===o.height?this.element.css({minHeight:t,maxHeight:e,height:"auto"}):this.element.height(Math.max(0,o.height-i)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var t=i(this);return i("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!i(t.target).closest(".ui-dialog").length||!!i(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay((function(){t=!1})),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(i){t||this._allowInteraction(i)||(i.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=i("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var i=this.document.data("ui-dialog-overlays")-1;i?this.document.data("ui-dialog-overlays",i):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==i.uiBackCompat&&i.widget("ui.dialog",i.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(i,t){"dialogClass"===i&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),i.ui.dialog}));;
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function ($, Drupal, drupalSettings, _, Backbone, JSON, storage) {
var options = $.extend(drupalSettings.contextual, {
strings: {
open: Drupal.t('Open'),
close: Drupal.t('Close')
}
});
var cachedPermissionsHash = storage.getItem('Drupal.contextual.permissionsHash');
var permissionsHash = drupalSettings.user.permissionsHash;
if (cachedPermissionsHash !== permissionsHash) {
if (typeof permissionsHash === 'string') {
_.chain(storage).keys().each(function (key) {
if (key.substring(0, 18) === 'Drupal.contextual.') {
storage.removeItem(key);
}
});
}
storage.setItem('Drupal.contextual.permissionsHash', permissionsHash);
}
function adjustIfNestedAndOverlapping($contextual) {
var $contextuals = $contextual.parents('.contextual-region').eq(-1).find('.contextual');
if ($contextuals.length <= 1) {
return;
}
var firstTop = $contextuals.eq(0).offset().top;
var secondTop = $contextuals.eq(1).offset().top;
if (firstTop === secondTop) {
var $nestedContextual = $contextuals.eq(1);
var height = 0;
var $trigger = $nestedContextual.find('.trigger');
$trigger.removeClass('visually-hidden');
height = $nestedContextual.height();
$trigger.addClass('visually-hidden');
$nestedContextual.css({
top: $nestedContextual.position().top + height
});
}
}
function initContextual($contextual, html) {
var $region = $contextual.closest('.contextual-region');
var contextual = Drupal.contextual;
$contextual.html(html).addClass('contextual').prepend(Drupal.theme('contextualTrigger'));
var destination = "destination=".concat(Drupal.encodePath(Drupal.url(drupalSettings.path.currentPath)));
$contextual.find('.contextual-links a').each(function () {
var url = this.getAttribute('href');
var glue = url.indexOf('?') === -1 ? '?' : '&';
this.setAttribute('href', url + glue + destination);
});
var model = new contextual.StateModel({
title: $region.find('h2').eq(0).text().trim()
});
var viewOptions = $.extend({
el: $contextual,
model: model
}, options);
contextual.views.push({
visual: new contextual.VisualView(viewOptions),
aural: new contextual.AuralView(viewOptions),
keyboard: new contextual.KeyboardView(viewOptions)
});
contextual.regionViews.push(new contextual.RegionView($.extend({
el: $region,
model: model
}, options)));
contextual.collection.add(model);
$(document).trigger('drupalContextualLinkAdded', {
$el: $contextual,
$region: $region,
model: model
});
adjustIfNestedAndOverlapping($contextual);
}
Drupal.behaviors.contextual = {
attach: function attach(context) {
var $context = $(context);
var $placeholders = $context.find('[data-contextual-id]').once('contextual-render');
if ($placeholders.length === 0) {
return;
}
var ids = [];
$placeholders.each(function () {
ids.push({
id: $(this).attr('data-contextual-id'),
token: $(this).attr('data-contextual-token')
});
});
var uncachedIDs = [];
var uncachedTokens = [];
ids.forEach(function (contextualID) {
var html = storage.getItem("Drupal.contextual.".concat(contextualID.id));
if (html && html.length) {
window.setTimeout(function () {
initContextual($context.find("[data-contextual-id=\"".concat(contextualID.id, "\"]:empty")).eq(0), html);
});
return;
}
uncachedIDs.push(contextualID.id);
uncachedTokens.push(contextualID.token);
});
if (uncachedIDs.length > 0) {
$.ajax({
url: Drupal.url('contextual/render'),
type: 'POST',
data: {
'ids[]': uncachedIDs,
'tokens[]': uncachedTokens
},
dataType: 'json',
success: function success(results) {
_.each(results, function (html, contextualID) {
storage.setItem("Drupal.contextual.".concat(contextualID), html);
if (html.length > 0) {
$placeholders = $context.find("[data-contextual-id=\"".concat(contextualID, "\"]"));
for (var i = 0; i < $placeholders.length; i++) {
initContextual($placeholders.eq(i), html);
}
}
});
}
});
}
}
};
Drupal.contextual = {
views: [],
regionViews: []
};
Drupal.contextual.collection = new Backbone.Collection([], {
model: Drupal.contextual.StateModel
});
Drupal.theme.contextualTrigger = function () {
return '<button class="trigger visually-hidden focusable" type="button"></button>';
};
$(document).on('drupalContextualLinkAdded', function (event, data) {
Drupal.ajax.bindAjaxLinks(data.$el[0]);
});
})(jQuery, Drupal, drupalSettings, _, Backbone, window.JSON, window.sessionStorage);;
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function (Drupal, Backbone) {
Drupal.contextual.StateModel = Backbone.Model.extend({
defaults: {
title: '',
regionIsHovered: false,
hasFocus: false,
isOpen: false,
isLocked: false
},
toggleOpen: function toggleOpen() {
var newIsOpen = !this.get('isOpen');
this.set('isOpen', newIsOpen);
if (newIsOpen) {
this.focus();
}
return this;
},
close: function close() {
this.set('isOpen', false);
return this;
},
focus: function focus() {
this.set('hasFocus', true);
var cid = this.cid;
this.collection.each(function (model) {
if (model.cid !== cid) {
model.close().blur();
}
});
return this;
},
blur: function blur() {
if (!this.get('isOpen')) {
this.set('hasFocus', false);
}
return this;
}
});
})(Drupal, Backbone);;
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function (Drupal, Backbone) {
Drupal.contextual.AuralView = Backbone.View.extend({
initialize: function initialize(options) {
this.options = options;
this.listenTo(this.model, 'change', this.render);
this.render();
},
render: function render() {
var isOpen = this.model.get('isOpen');
this.$el.find('.contextual-links').prop('hidden', !isOpen);
this.$el.find('.trigger').text(Drupal.t('@action @title configuration options', {
'@action': !isOpen ? this.options.strings.open : this.options.strings.close,
'@title': this.model.get('title')
})).attr('aria-pressed', isOpen);
}
});
})(Drupal, Backbone);;
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function (Drupal, Backbone) {
Drupal.contextual.KeyboardView = Backbone.View.extend({
events: {
'focus .trigger': 'focus',
'focus .contextual-links a': 'focus',
'blur .trigger': function blurTrigger() {
this.model.blur();
},
'blur .contextual-links a': function blurContextualLinksA() {
var that = this;
this.timer = window.setTimeout(function () {
that.model.close().blur();
}, 150);
}
},
initialize: function initialize() {
this.timer = NaN;
},
focus: function focus() {
window.clearTimeout(this.timer);
this.model.focus();
}
});
})(Drupal, Backbone);;
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function (Drupal, Backbone, Modernizr) {
Drupal.contextual.RegionView = Backbone.View.extend({
events: function events() {
var mapping = {
mouseenter: function mouseenter() {
this.model.set('regionIsHovered', true);
},
mouseleave: function mouseleave() {
this.model.close().blur().set('regionIsHovered', false);
}
};
if (Modernizr.touchevents) {
mapping = {};
}
return mapping;
},
initialize: function initialize() {
this.listenTo(this.model, 'change:hasFocus', this.render);
},
render: function render() {
this.$el.toggleClass('focus', this.model.get('hasFocus'));
return this;
}
});
})(Drupal, Backbone, Modernizr);;
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function (Drupal, Backbone, Modernizr) {
Drupal.contextual.VisualView = Backbone.View.extend({
events: function events() {
var touchEndToClick = function touchEndToClick(event) {
event.preventDefault();
event.target.click();
};
var mapping = {
'click .trigger': function clickTrigger() {
this.model.toggleOpen();
},
'touchend .trigger': touchEndToClick,
'click .contextual-links a': function clickContextualLinksA() {
this.model.close().blur();
},
'touchend .contextual-links a': touchEndToClick
};
if (!Modernizr.touchevents) {
mapping.mouseenter = function () {
this.model.focus();
};
}
return mapping;
},
initialize: function initialize() {
this.listenTo(this.model, 'change', this.render);
},
render: function render() {
var isOpen = this.model.get('isOpen');
var isVisible = this.model.get('isLocked') || this.model.get('regionIsHovered') || isOpen;
this.$el.toggleClass('open', isOpen).find('.trigger').toggleClass('visually-hidden', !isVisible);
if ('isOpen' in this.model.changed) {
this.$el.closest('.contextual-region').find('.contextual .trigger:not(:first)').toggle(!isOpen);
}
return this;
}
});
})(Drupal, Backbone, Modernizr);;
/*!
* tabbable 5.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.tabbable,r=e.tabbable={};t(r),r.noConflict=function(){return e.tabbable=n,r}}())}(this,(function(e){"use strict";var t=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],n=t.join(","),r="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,o=function(e,t,o){var i=Array.prototype.slice.apply(e.querySelectorAll(n));return t&&r.call(e,n)&&i.unshift(e),i=i.filter(o)},i=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t},a=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},u=function(e){return"INPUT"===e.tagName},l=function(e){return function(e){return u(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||e.ownerDocument,r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},c=function(e,t){return!(t.disabled||function(e){return u(e)&&"hidden"===e.type}(t)||function(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;var n=r.call(e,"details>summary:first-of-type")?e.parentElement:e;if(r.call(n,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var o=e.getBoundingClientRect(),i=o.width,a=o.height;return 0===i&&0===a}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t))},d=function(e,t){return!(!c(e,t)||l(t)||i(t)<0)},f=t.concat("iframe").join(",");e.focusable=function(e,t){return o(e,(t=t||{}).includeContainer,c.bind(null,t))},e.isFocusable=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==r.call(e,f)&&c(t,e)},e.isTabbable=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==r.call(e,n)&&d(t,e)},e.tabbable=function(e,t){var n=[],r=[];return o(e,(t=t||{}).includeContainer,d.bind(null,t)).forEach((function(e,t){var o=i(e);0===o?n.push(e):r.push({documentOrder:t,tabIndex:o,node:e})})),r.sort(a).map((function(e){return e.node})).concat(n)},Object.defineProperty(e,"__esModule",{value:!0})}));
;
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function ($, Drupal) {
Drupal.theme.progressBar = function (id) {
return "<div id=\"".concat(id, "\" class=\"progress\" aria-live=\"polite\">") + '<div class="progress__label"> </div>' + '<div class="progress__track"><div class="progress__bar"></div></div>' + '<div class="progress__percentage"></div>' + '<div class="progress__description"> </div>' + '</div>';
};
Drupal.ProgressBar = function (id, updateCallback, method, errorCallback) {
this.id = id;
this.method = method || 'GET';
this.updateCallback = updateCallback;
this.errorCallback = errorCallback;
this.element = $(Drupal.theme('progressBar', id));
};
$.extend(Drupal.ProgressBar.prototype, {
setProgress: function setProgress(percentage, message, label) {
if (percentage >= 0 && percentage <= 100) {
$(this.element).find('div.progress__bar').css('width', "".concat(percentage, "%"));
$(this.element).find('div.progress__percentage').html("".concat(percentage, "%"));
}
$('div.progress__description', this.element).html(message);
$('div.progress__label', this.element).html(label);
if (this.updateCallback) {
this.updateCallback(percentage, message, this);
}
},
startMonitoring: function startMonitoring(uri, delay) {
this.delay = delay;
this.uri = uri;
this.sendPing();
},
stopMonitoring: function stopMonitoring() {
clearTimeout(this.timer);
this.uri = null;
},
sendPing: function sendPing() {
if (this.timer) {
clearTimeout(this.timer);
}
if (this.uri) {
var pb = this;
var uri = this.uri;
if (uri.indexOf('?') === -1) {
uri += '?';
} else {
uri += '&';
}
uri += '_format=json';
$.ajax({
type: this.method,
url: uri,
data: '',
dataType: 'json',
success: function success(progress) {
if (progress.status === 0) {
pb.displayError(progress.data);
return;
}
pb.setProgress(progress.percentage, progress.message, progress.label);
pb.timer = setTimeout(function () {
pb.sendPing();
}, pb.delay);
},
error: function error(xmlhttp) {
var e = new Drupal.AjaxError(xmlhttp, pb.uri);
pb.displayError("<pre>".concat(e.message, "</pre>"));
}
});
}
},
displayError: function displayError(string) {
var error = $('<div class="messages messages--error"></div>').html(string);
$(this.element).before(error).hide();
if (this.errorCallback) {
this.errorCallback(this);
}
}
});
})(jQuery, Drupal);;
/**
* @file
* Extends methods from core/misc/progress.js.
*/
(function ($, Drupal) {
'use strict';
/**
* Theme function for the progress bar.
*
* @param {string} id
*
* @return {string}
* The HTML for the progress bar.
*/
Drupal.theme.progressBar = function (id) {
return '<div class="progress-wrapper" aria-live="polite">' +
'<div class="message"></div>'+
'<div id ="' + id + '" class="progress progress-striped active">' +
'<div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0">' +
'<span class="percentage"></span>' +
'</div>' +
'</div>' +
'<div class="progress-label"></div>' +
'</div>';
};
$.extend(Drupal.ProgressBar.prototype, /** @lends Drupal.ProgressBar */{
/**
* Set the percentage and status message for the progressbar.
*
* @param {number} percentage
* @param {string} message
* @param {string} label
*/
setProgress: function (percentage, message, label) {
if (percentage >= 0 && percentage <= 100) {
$(this.element).find('.progress-bar').css('width', percentage + '%').attr('aria-valuenow', percentage);
$(this.element).find('.percentage').html(percentage + '%');
}
if (message) {
// Remove the unnecessary whitespace at the end of the message.
message = message.replace(/<br\/> |\s*$/, '');
$('.message', this.element).html(message);
}
if (label) {
$('.progress-label', this.element).html(label);
}
if (this.updateCallback) {
this.updateCallback(percentage, message, this);
}
},
/**
* Display errors on the page.
*
* @param {string} string
*/
displayError: function (string) {
var error = $('<div class="alert alert-block alert-error"><button class="close" data-dismiss="alert">×</button><h4>' + Drupal.t('Error message') + '</h4></div>').append(string);
$(this.element).before(error).hide();
if (this.errorCallback) {
this.errorCallback(this);
}
}
});
})(jQuery, Drupal);
;
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
(function ($, window, Drupal, drupalSettings, _ref) {
var isFocusable = _ref.isFocusable,
tabbable = _ref.tabbable;
Drupal.behaviors.AJAX = {
attach: function attach(context, settings) {
function loadAjaxBehavior(base) {
var elementSettings = settings.ajax[base];
if (typeof elementSettings.selector === 'undefined') {
elementSettings.selector = "#".concat(base);
}
$(elementSettings.selector).once('drupal-ajax').each(function () {
elementSettings.element = this;
elementSettings.base = base;
Drupal.ajax(elementSettings);
});
}
Object.keys(settings.ajax || {}).forEach(function (base) {
return loadAjaxBehavior(base);
});
Drupal.ajax.bindAjaxLinks(document.body);
$('.use-ajax-submit').once('ajax').each(function () {
var elementSettings = {};
elementSettings.url = $(this.form).attr('action');
elementSettings.setClick = true;
elementSettings.event = 'click';
elementSettings.progress = {
type: 'throbber'
};
elementSettings.base = $(this).attr('id');
elementSettings.element = this;
Drupal.ajax(elementSettings);
});
},
detach: function detach(context, settings, trigger) {
if (trigger === 'unload') {
Drupal.ajax.expired().forEach(function (instance) {
Drupal.ajax.instances[instance.instanceIndex] = null;
});
}
}
};
Drupal.AjaxError = function (xmlhttp, uri, customMessage) {
var statusCode;
var statusText;
var responseText;
if (xmlhttp.status) {
statusCode = "\n".concat(Drupal.t('An AJAX HTTP error occurred.'), "\n").concat(Drupal.t('HTTP Result Code: !status', {
'!status': xmlhttp.status
}));
} else {
statusCode = "\n".concat(Drupal.t('An AJAX HTTP request terminated abnormally.'));
}
statusCode += "\n".concat(Drupal.t('Debugging information follows.'));
var pathText = "\n".concat(Drupal.t('Path: !uri', {
'!uri': uri
}));
statusText = '';
try {
statusText = "\n".concat(Drupal.t('StatusText: !statusText', {
'!statusText': $.trim(xmlhttp.statusText)
}));
} catch (e) {}
responseText = '';
try {
responseText = "\n".concat(Drupal.t('ResponseText: !responseText', {
'!responseText': $.trim(xmlhttp.responseText)
}));
} catch (e) {}
responseText = responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi, '');
responseText = responseText.replace(/[\n]+\s+/g, '\n');
var readyStateText = xmlhttp.status === 0 ? "\n".concat(Drupal.t('ReadyState: !readyState', {
'!readyState': xmlhttp.readyState
})) : '';
customMessage = customMessage ? "\n".concat(Drupal.t('CustomMessage: !customMessage', {
'!customMessage': customMessage
})) : '';
this.message = statusCode + pathText + statusText + customMessage + responseText + readyStateText;
this.name = 'AjaxError';
};
Drupal.AjaxError.prototype = new Error();
Drupal.AjaxError.prototype.constructor = Drupal.AjaxError;
Drupal.ajax = function (settings) {
if (arguments.length !== 1) {
throw new Error('Drupal.ajax() function must be called with one configuration object only');
}
var base = settings.base || false;
var element = settings.element || false;
delete settings.base;
delete settings.element;
if (!settings.progress && !element) {
settings.progress = false;
}
var ajax = new Drupal.Ajax(base, element, settings);
ajax.instanceIndex = Drupal.ajax.instances.length;
Drupal.ajax.instances.push(ajax);
return ajax;
};
Drupal.ajax.instances = [];
Drupal.ajax.expired = function () {
return Drupal.ajax.instances.filter(function (instance) {
return instance && instance.element !== false && !document.body.contains(instance.element);
});
};
Drupal.ajax.bindAjaxLinks = function (element) {
$(element).find('.use-ajax').once('ajax').each(function (i, ajaxLink) {
var $linkElement = $(ajaxLink);
var elementSettings = {
progress: {
type: 'throbber'
},
dialogType: $linkElement.data('dialog-type'),
dialog: $linkElement.data('dialog-options'),
dialogRenderer: $linkElement.data('dialog-renderer'),
base: $linkElement.attr('id'),
element: ajaxLink
};
var href = $linkElement.attr('href');
if (href) {
elementSettings.url = href;
elementSettings.event = 'click';
}
Drupal.ajax(elementSettings);
});
};
Drupal.Ajax = function (base, element, elementSettings) {
var defaults = {
event: element ? 'mousedown' : null,
keypress: true,
selector: base ? "#".concat(base) : null,
effect: 'none',
speed: 'none',
method: 'replaceWith',
progress: {
type: 'throbber',
message: Drupal.t('Please wait...')
},
submit: {
js: true
}
};
$.extend(this, defaults, elementSettings);
this.commands = new Drupal.AjaxCommands();
this.instanceIndex = false;
if (this.wrapper) {
this.wrapper = "#".concat(this.wrapper);
}
this.element = element;
this.element_settings = elementSettings;
this.elementSettings = elementSettings;
if (this.element && this.element.form) {
this.$form = $(this.element.form);
}
if (!this.url) {
var $element = $(this.element);
if ($element.is('a')) {
this.url = $element.attr('href');
} else if (this.element && element.form) {
this.url = this.$form.attr('action');
}
}
var originalUrl = this.url;
this.url = this.url.replace(/\/nojs(\/|$|\?|#)/, '/ajax$1');
if (drupalSettings.ajaxTrustedUrl[originalUrl]) {
drupalSettings.ajaxTrustedUrl[this.url] = true;
}
var ajax = this;
ajax.options = {
url: ajax.url,
data: ajax.submit,
beforeSerialize: function beforeSerialize(elementSettings, options) {
return ajax.beforeSerialize(elementSettings, options);
},
beforeSubmit: function beforeSubmit(formValues, elementSettings, options) {
ajax.ajaxing = true;
return ajax.beforeSubmit(formValues, elementSettings, options);
},
beforeSend: function beforeSend(xmlhttprequest, options) {
ajax.ajaxing = true;
return ajax.beforeSend(xmlhttprequest, options);
},
success: function success(response, status, xmlhttprequest) {
if (typeof response === 'string') {
response = $.parseJSON(response);
}
if (response !== null && !drupalSettings.ajaxTrustedUrl[ajax.url]) {
if (xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token') !== '1') {
var customMessage = Drupal.t('The response failed verification so will not be processed.');
return ajax.error(xmlhttprequest, ajax.url, customMessage);
}
}
return ajax.success(response, status);
},
complete: function complete(xmlhttprequest, status) {
ajax.ajaxing = false;
if (status === 'error' || status === 'parsererror') {
return ajax.error(xmlhttprequest, ajax.url);
}
},
dataType: 'json',
jsonp: false,
type: 'POST'
};
if (elementSettings.dialog) {
ajax.options.data.dialogOptions = elementSettings.dialog;
}
if (ajax.options.url.indexOf('?') === -1) {
ajax.options.url += '?';
} else {
ajax.options.url += '&';
}
var wrapper = "drupal_".concat(elementSettings.dialogType || 'ajax');
if (elementSettings.dialogRenderer) {
wrapper += ".".concat(elementSettings.dialogRenderer);
}
ajax.options.url += "".concat(Drupal.ajax.WRAPPER_FORMAT, "=").concat(wrapper);
$(ajax.element).on(elementSettings.event, function (event) {
if (!drupalSettings.ajaxTrustedUrl[ajax.url] && !Drupal.url.isLocal(ajax.url)) {
throw new Error(Drupal.t('The callback URL is not local and not trusted: !url', {
'!url': ajax.url
}));
}
return ajax.eventResponse(this, event);
});
if (elementSettings.keypress) {
$(ajax.element).on('keypress', function (event) {
return ajax.keypressResponse(this, event);
});
}
if (elementSettings.prevent) {
$(ajax.element).on(elementSettings.prevent, false);
}
};
Drupal.ajax.WRAPPER_FORMAT = '_wrapper_format';
Drupal.Ajax.AJAX_REQUEST_PARAMETER = '_drupal_ajax';
Drupal.Ajax.prototype.execute = function () {
if (this.ajaxing) {
return;
}
try {
this.beforeSerialize(this.element, this.options);
return $.ajax(this.options);
} catch (e) {
this.ajaxing = false;
window.alert("An error occurred while attempting to process ".concat(this.options.url, ": ").concat(e.message));
return $.Deferred().reject();
}
};
Drupal.Ajax.prototype.keypressResponse = function (element, event) {
var ajax = this;
if (event.which === 13 || event.which === 32 && element.type !== 'text' && element.type !== 'textarea' && element.type !== 'tel' && element.type !== 'number') {
event.preventDefault();
event.stopPropagation();
$(element).trigger(ajax.elementSettings.event);
}
};
Drupal.Ajax.prototype.eventResponse = function (element, event) {
event.preventDefault();
event.stopPropagation();
var ajax = this;
if (ajax.ajaxing) {
return;
}
try {
if (ajax.$form) {
if (ajax.setClick) {
element.form.clk = element;
}
ajax.$form.ajaxSubmit(ajax.options);
} else {
ajax.beforeSerialize(ajax.element, ajax.options);
$.ajax(ajax.options);
}
} catch (e) {
ajax.ajaxing = false;
window.alert("An error occurred while attempting to process ".concat(ajax.options.url, ": ").concat(e.message));
}
};
Drupal.Ajax.prototype.beforeSerialize = function (element, options) {
if (this.$form && document.body.contains(this.$form.get(0))) {
var settings = this.settings || drupalSettings;
Drupal.detachBehaviors(this.$form.get(0), settings, 'serialize');
}
options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER] = 1;
var pageState = drupalSettings.ajaxPageState;
options.data['ajax_page_state[theme]'] = pageState.theme;
options.data['ajax_page_state[theme_token]'] = pageState.theme_token;
options.data['ajax_page_state[libraries]'] = pageState.libraries;
};
Drupal.Ajax.prototype.beforeSubmit = function (formValues, element, options) {};
Drupal.Ajax.prototype.beforeSend = function (xmlhttprequest, options) {
if (this.$form) {
options.extraData = options.extraData || {};
options.extraData.ajax_iframe_upload = '1';
var v = $.fieldValue(this.element);
if (v !== null) {
options.extraData[this.element.name] = v;
}
}
$(this.element).prop('disabled', true);
if (!this.progress || !this.progress.type) {
return;
}
var progressIndicatorMethod = "setProgressIndicator".concat(this.progress.type.slice(0, 1).toUpperCase()).concat(this.progress.type.slice(1).toLowerCase());
if (progressIndicatorMethod in this && typeof this[progressIndicatorMethod] === 'function') {
this[progressIndicatorMethod].call(this);
}
};
Drupal.theme.ajaxProgressThrobber = function (message) {
var messageMarkup = typeof message === 'string' ? Drupal.theme('ajaxProgressMessage', message) : '';
var throbber = '<div class="throbber"> </div>';
return "<div class=\"ajax-progress ajax-progress-throbber\">".concat(throbber).concat(messageMarkup, "</div>");
};
Drupal.theme.ajaxProgressIndicatorFullscreen = function () {
return '<div class="ajax-progress ajax-progress-fullscreen"> </div>';
};
Drupal.theme.ajaxProgressMessage = function (message) {
return "<div class=\"message\">".concat(message, "</div>");
};
Drupal.theme.ajaxProgressBar = function ($element) {
return $('<div class="ajax-progress ajax-progress-bar"></div>').append($element);
};
Drupal.Ajax.prototype.setProgressIndicatorBar = function () {
var progressBar = new Drupal.ProgressBar("ajax-progress-".concat(this.element.id), $.noop, this.progress.method, $.noop);
if (this.progress.message) {
progressBar.setProgress(-1, this.progress.message);
}
if (this.progress.url) {
progressBar.startMonitoring(this.progress.url, this.progress.interval || 1500);
}
this.progress.element = $(Drupal.theme('ajaxProgressBar', progressBar.element));
this.progress.object = progressBar;
$(this.element).after(this.progress.element);
};
Drupal.Ajax.prototype.setProgressIndicatorThrobber = function () {
this.progress.element = $(Drupal.theme('ajaxProgressThrobber', this.progress.message));
$(this.element).after(this.progress.element);
};
Drupal.Ajax.prototype.setProgressIndicatorFullscreen = function () {
this.progress.element = $(Drupal.theme('ajaxProgressIndicatorFullscreen'));
$('body').append(this.progress.element);
};
Drupal.Ajax.prototype.success = function (response, status) {
var _this = this;
if (this.progress.element) {
$(this.progress.element).remove();
}
if (this.progress.object) {
this.progress.object.stopMonitoring();
}
$(this.element).prop('disabled', false);
var elementParents = $(this.element).parents('[data-drupal-selector]').addBack().toArray();
var focusChanged = false;
Object.keys(response || {}).forEach(function (i) {
if (response[i].command && _this.commands[response[i].command]) {
_this.commands[response[i].command](_this, response[i], status);
if (response[i].command === 'invoke' && response[i].method === 'focus' || response[i].command === 'focusFirst') {
focusChanged = true;
}
}
});
if (!focusChanged && this.element && !$(this.element).data('disable-refocus')) {
var target = false;
for (var n = elementParents.length - 1; !target && n >= 0; n--) {
target = document.querySelector("[data-drupal-selector=\"".concat(elementParents[n].getAttribute('data-drupal-selector'), "\"]"));
}
if (target) {
$(target).trigger('focus');
}
}
if (this.$form && document.body.contains(this.$form.get(0))) {
var settings = this.settings || drupalSettings;
Drupal.attachBehaviors(this.$form.get(0), settings);
}
this.settings = null;
};
Drupal.Ajax.prototype.getEffect = function (response) {
var type = response.effect || this.effect;
var speed = response.speed || this.speed;
var effect = {};
if (type === 'none') {
effect.showEffect = 'show';
effect.hideEffect = 'hide';
effect.showSpeed = '';
} else if (type === 'fade') {
effect.showEffect = 'fadeIn';
effect.hideEffect = 'fadeOut';
effect.showSpeed = speed;
} else {
effect.showEffect = "".concat(type, "Toggle");
effect.hideEffect = "".concat(type, "Toggle");
effect.showSpeed = speed;
}
return effect;
};
Drupal.Ajax.prototype.error = function (xmlhttprequest, uri, customMessage) {
if (this.progress.element) {
$(this.progress.element).remove();
}
if (this.progress.object) {
this.progress.object.stopMonitoring();
}
$(this.wrapper).show();
$(this.element).prop('disabled', false);
if (this.$form && document.body.contains(this.$form.get(0))) {
var settings = this.settings || drupalSettings;
Drupal.attachBehaviors(this.$form.get(0), settings);
}
throw new Drupal.AjaxError(xmlhttprequest, uri, customMessage);
};
Drupal.theme.ajaxWrapperNewContent = function ($newContent, ajax, response) {
return (response.effect || ajax.effect) !== 'none' && $newContent.filter(function (i) {
return !($newContent[i].nodeName === '#comment' || $newContent[i].nodeName === '#text' && /^(\s|\n|\r)*$/.test($newContent[i].textContent));
}).length > 1 ? Drupal.theme('ajaxWrapperMultipleRootElements', $newContent) : $newContent;
};
Drupal.theme.ajaxWrapperMultipleRootElements = function ($elements) {
return $('<div></div>').append($elements);
};
Drupal.AjaxCommands = function () {};
Drupal.AjaxCommands.prototype = {
insert: function insert(ajax, response) {
var $wrapper = response.selector ? $(response.selector) : $(ajax.wrapper);
var method = response.method || ajax.method;
var effect = ajax.getEffect(response);
var settings = response.settings || ajax.settings || drupalSettings;
var $newContent = $($.parseHTML(response.data, document, true));
$newContent = Drupal.theme('ajaxWrapperNewContent', $newContent, ajax, response);
switch (method) {
case 'html':
case 'replaceWith':
case 'replaceAll':
case 'empty':
case 'remove':
Drupal.detachBehaviors($wrapper.get(0), settings);
break;
default:
break;
}
$wrapper[method]($newContent);
if (effect.showEffect !== 'show') {
$newContent.hide();
}
var $ajaxNewContent = $newContent.find('.ajax-new-content');
if ($ajaxNewContent.length) {
$ajaxNewContent.hide();
$newContent.show();
$ajaxNewContent[effect.showEffect](effect.showSpeed);
} else if (effect.showEffect !== 'show') {
$newContent[effect.showEffect](effect.showSpeed);
}
if ($newContent.parents('html').length) {
$newContent.each(function (index, element) {
if (element.nodeType === Node.ELEMENT_NODE) {
Drupal.attachBehaviors(element, settings);
}
});
}
},
remove: function remove(ajax, response, status) {
var settings = response.settings || ajax.settings || drupalSettings;
$(response.selector).each(function () {
Drupal.detachBehaviors(this, settings);
}).remove();
},
changed: function changed(ajax, response, status) {
var $element = $(response.selector);
if (!$element.hasClass('ajax-changed')) {
$element.addClass('ajax-changed');
if (response.asterisk) {
$element.find(response.asterisk).append(" <abbr class=\"ajax-changed\" title=\"".concat(Drupal.t('Changed'), "\">*</abbr> "));
}
}
},
alert: function alert(ajax, response, status) {
window.alert(response.text);
},
announce: function announce(ajax, response) {
if (response.priority) {
Drupal.announce(response.text, response.priority);
} else {
Drupal.announce(response.text);
}
},
redirect: function redirect(ajax, response, status) {
window.location = response.url;
},
css: function css(ajax, response, status) {
$(response.selector).css(response.argument);
},
settings: function settings(ajax, response, status) {
var ajaxSettings = drupalSettings.ajax;
if (ajaxSettings) {
Drupal.ajax.expired().forEach(function (instance) {
if (instance.selector) {
var selector = instance.selector.replace('#', '');
if (selector in ajaxSettings) {
delete ajaxSettings[selector];
}
}
});
}
if (response.merge) {
$.extend(true, drupalSettings, response.settings);
} else {
ajax.settings = response.settings;
}
},
data: function data(ajax, response, status) {
$(response.selector).data(response.name, response.value);
},
focusFirst: function focusFirst(ajax, response, status) {
var focusChanged = false;
var container = document.querySelector(response.selector);
if (container) {
var tabbableElements = tabbable(container);
if (tabbableElements.length) {
tabbableElements[0].focus();
focusChanged = true;
} else if (isFocusable(container)) {
container.focus();
focusChanged = true;
}
}
if (ajax.hasOwnProperty('element') && !focusChanged) {
ajax.element.focus();
}
},
invoke: function invoke(ajax, response, status) {
var $element = $(response.selector);
$element[response.method].apply($element, _toConsumableArray(response.args));
},
restripe: function restripe(ajax, response, status) {
$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');
},
update_build_id: function update_build_id(ajax, response, status) {
$("input[name=\"form_build_id\"][value=\"".concat(response.old, "\"]")).val(response.new);
},
add_css: function add_css(ajax, response, status) {
$('head').prepend(response.data);
},
message: function message(ajax, response) {
var messages = new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));
if (response.clearPrevious) {
messages.clear();
}
messages.add(response.message, response.messageOptions);
}
};
})(jQuery, window, Drupal, drupalSettings, window.tabbable);;
/**
* @file
* Extends methods from core/misc/ajax.js.
*/
(function ($, window, Drupal, drupalSettings) {
/**
* Attempts to find the closest glyphicon progress indicator.
*
* @param {jQuery|Element} element
* A DOM element.
*
* @returns {jQuery}
* A jQuery object.
*/
Drupal.Ajax.prototype.findGlyphicon = function (element) {
return $(element).closest('.form-item').find('.ajax-progress.glyphicon')
};
/**
* Starts the spinning of the glyphicon progress indicator.
*
* @param {jQuery|Element} element
* A DOM element.
* @param {string} [message]
* An optional message to display (tooltip) for the progress.
*
* @returns {jQuery}
* A jQuery object.
*/
Drupal.Ajax.prototype.glyphiconStart = function (element, message) {
var $glyphicon = this.findGlyphicon(element);
if ($glyphicon[0]) {
$glyphicon.addClass('glyphicon-spin');
// Add any message as a tooltip to the glyphicon.
if ($.fn.tooltip && drupalSettings.bootstrap.tooltip_enabled) {
$glyphicon
.removeAttr('data-toggle')
.removeAttr('data-original-title')
.removeAttr('title')
.tooltip('destroy')
;
if (message) {
$glyphicon.attr('data-toggle', 'tooltip').attr('title', message).tooltip();
}
}
// Append a message for screen readers.
if (message) {
$glyphicon.parent().append('<div class="sr-only message">' + message + '</div>');
}
}
return $glyphicon;
};
/**
* Stop the spinning of a glyphicon progress indicator.
*
* @param {jQuery|Element} element
* A DOM element.
*/
Drupal.Ajax.prototype.glyphiconStop = function (element) {
var $glyphicon = this.findGlyphicon(element);
if ($glyphicon[0]) {
$glyphicon.removeClass('glyphicon-spin');
if ($.fn.tooltip && drupalSettings.bootstrap.tooltip_enabled) {
$glyphicon
.removeAttr('data-toggle')
.removeAttr('data-original-title')
.removeAttr('title')
.tooltip('destroy')
;
}
}
};
/**
* Sets the throbber progress indicator.
*/
Drupal.Ajax.prototype.setProgressIndicatorThrobber = function () {
var $element = $(this.element);
// Find an existing glyphicon progress indicator.
var $glyphicon = this.glyphiconStart($element, this.progress.message);
if ($glyphicon[0]) {
this.progress.element = $glyphicon.parent();
this.progress.glyphicon = true;
return;
}
// Otherwise, add a glyphicon throbber after the element.
if (!this.progress.element) {
this.progress.element = $(Drupal.theme('ajaxThrobber'));
}
if (this.progress.message) {
this.progress.element.after('<div class="message">' + this.progress.message + '</div>');
}
// If element is an input DOM element type (not :input), append after.
if ($element.is('input')) {
$element.after(this.progress.element);
}
// Otherwise append the throbber inside the element.
else {
$element.append(this.progress.element);
}
};
/**
* Handler for the form redirection completion.
*
* @param {Array.<Drupal.AjaxCommands~commandDefinition>} response
* @param {number} status
*/
var success = Drupal.Ajax.prototype.success;
Drupal.Ajax.prototype.success = function (response, status) {
if (this.progress.element) {
// Stop a glyphicon throbber.
if (this.progress.glyphicon) {
this.glyphiconStop(this.progress.element);
}
// Remove the progress element.
else {
this.progress.element.remove();
}
// Remove any message set.
this.progress.element.parent().find('.message').remove();
}
// Invoke the original success handler.
return success.apply(this, [response, status]);
};
})(jQuery, this, Drupal, drupalSettings);
;
"use strict";
(function (Drupal, drupalSettings, navigator, window) {
'use strict';
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register(drupalSettings.pwa.installPath, {
scope: drupalSettings.path.baseUrl
}).then(function (registration) {
console.log("Service Worker registered! Scope: ".concat(registration.scope));
}).catch(function (err) {
console.log("Service Worker registration failed: ".concat(err));
});
});
}
})(Drupal, drupalSettings, navigator, window);
;
/*!
* jQuery Form Plugin
* version: 4.3.0
* Requires jQuery v1.7.2 or later
* Project repository: https://github.com/jquery-form/form
* Copyright 2017 Kevin Morris
* Copyright 2006 M. Alsup
* Dual licensed under the LGPL-2.1+ or MIT licenses
* https://github.com/jquery-form/form#license
* This library 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 2.1 of the License, or (at your option) any later version.
* This library 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.
*/
!function(r){"function"==typeof define&&define.amd?define(["jquery"],r):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),r(t),t}:r(jQuery)}(function(q){"use strict";var m=/\r?\n/g,S={};S.fileapi=void 0!==q('<input type="file">').get(0).files,S.formdata=void 0!==window.FormData;var _=!!q.fn.prop;function o(e){var t=e.data;e.isDefaultPrevented()||(e.preventDefault(),q(e.target).closest("form").ajaxSubmit(t))}function i(e){var t=e.target,r=q(t);if(!r.is("[type=submit],[type=image]")){var a=r.closest("[type=submit]");if(0===a.length)return;t=a[0]}var n,o=t.form;"image"===(o.clk=t).type&&(void 0!==e.offsetX?(o.clk_x=e.offsetX,o.clk_y=e.offsetY):"function"==typeof q.fn.offset?(n=r.offset(),o.clk_x=e.pageX-n.left,o.clk_y=e.pageY-n.top):(o.clk_x=e.pageX-t.offsetLeft,o.clk_y=e.pageY-t.offsetTop)),setTimeout(function(){o.clk=o.clk_x=o.clk_y=null},100)}function N(){var e;q.fn.ajaxSubmit.debug&&(e="[jquery.form] "+Array.prototype.join.call(arguments,""),window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e))}q.fn.attr2=function(){if(!_)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},q.fn.ajaxSubmit=function(M,e,t,r){if(!this.length)return N("ajaxSubmit: skipping submit process - no element selected"),this;var O,a,n,o,X=this;"function"==typeof M?M={success:M}:"string"==typeof M||!1===M&&0<arguments.length?(M={url:M,data:e,dataType:t},"function"==typeof r&&(M.success=r)):void 0===M&&(M={}),O=M.method||M.type||this.attr2("method"),n=(n=(n="string"==typeof(a=M.url||this.attr2("action"))?q.trim(a):"")||window.location.href||"")&&(n.match(/^([^#]+)/)||[])[1],o=/(MSIE|Trident)/.test(navigator.userAgent||"")&&/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",M=q.extend(!0,{url:n,success:q.ajaxSettings.success,type:O||q.ajaxSettings.type,iframeSrc:o},M);var i={};if(this.trigger("form-pre-serialize",[this,M,i]),i.veto)return N("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(M.beforeSerialize&&!1===M.beforeSerialize(this,M))return N("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var s=M.traditional;void 0===s&&(s=q.ajaxSettings.traditional);var u,c,C=[],l=this.formToArray(M.semantic,C,M.filtering);if(M.data&&(c=q.isFunction(M.data)?M.data(l):M.data,M.extraData=c,u=q.param(c,s)),M.beforeSubmit&&!1===M.beforeSubmit(l,this,M))return N("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[l,this,M,i]),i.veto)return N("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var f=q.param(l,s);u&&(f=f?f+"&"+u:u),"GET"===M.type.toUpperCase()?(M.url+=(0<=M.url.indexOf("?")?"&":"?")+f,M.data=null):M.data=f;var d,m,p,h=[];M.resetForm&&h.push(function(){X.resetForm()}),M.clearForm&&h.push(function(){X.clearForm(M.includeHidden)}),!M.dataType&&M.target?(d=M.success||function(){},h.push(function(e,t,r){var a=arguments,n=M.replaceTarget?"replaceWith":"html";q(M.target)[n](e).each(function(){d.apply(this,a)})})):M.success&&(q.isArray(M.success)?q.merge(h,M.success):h.push(M.success)),M.success=function(e,t,r){for(var a=M.context||this,n=0,o=h.length;n<o;n++)h[n].apply(a,[e,t,r||X,X])},M.error&&(m=M.error,M.error=function(e,t,r){var a=M.context||this;m.apply(a,[e,t,r,X])}),M.complete&&(p=M.complete,M.complete=function(e,t){var r=M.context||this;p.apply(r,[e,t,X])});var v=0<q("input[type=file]:enabled",this).filter(function(){return""!==q(this).val()}).length,g="multipart/form-data",x=X.attr("enctype")===g||X.attr("encoding")===g,y=S.fileapi&&S.formdata;N("fileAPI :"+y);var b,T=(v||x)&&!y;!1!==M.iframe&&(M.iframe||T)?M.closeKeepAlive?q.get(M.closeKeepAlive,function(){b=w(l)}):b=w(l):b=(v||x)&&y?function(e){for(var r=new FormData,t=0;t<e.length;t++)r.append(e[t].name,e[t].value);if(M.extraData){var a=function(e){var t,r,a=q.param(e,M.traditional).split("&"),n=a.length,o=[];for(t=0;t<n;t++)a[t]=a[t].replace(/\+/g," "),r=a[t].split("="),o.push([decodeURIComponent(r[0]),decodeURIComponent(r[1])]);return o}(M.extraData);for(t=0;t<a.length;t++)a[t]&&r.append(a[t][0],a[t][1])}M.data=null;var n=q.extend(!0,{},q.ajaxSettings,M,{contentType:!1,processData:!1,cache:!1,type:O||"POST"});M.uploadProgress&&(n.xhr=function(){var e=q.ajaxSettings.xhr();return e.upload&&e.upload.addEventListener("progress",function(e){var t=0,r=e.loaded||e.position,a=e.total;e.lengthComputable&&(t=Math.ceil(r/a*100)),M.uploadProgress(e,r,a,t)},!1),e});n.data=null;var o=n.beforeSend;return n.beforeSend=function(e,t){M.formData?t.data=M.formData:t.data=r,o&&o.call(this,e,t)},q.ajax(n)}(l):q.ajax(M),X.removeData("jqxhr").data("jqxhr",b);for(var j=0;j<C.length;j++)C[j]=null;return this.trigger("form-submit-notify",[this,M]),this;function w(e){var t,r,l,f,o,d,m,p,a,n,h,v,i=X[0],g=q.Deferred();if(g.abort=function(e){p.abort(e)},e)for(r=0;r<C.length;r++)t=q(C[r]),_?t.prop("disabled",!1):t.removeAttr("disabled");(l=q.extend(!0,{},q.ajaxSettings,M)).context=l.context||l,o="jqFormIO"+(new Date).getTime();var s=i.ownerDocument,u=X.closest("body");if(l.iframeTarget?(n=(d=q(l.iframeTarget,s)).attr2("name"))?o=n:d.attr2("name",o):(d=q('<iframe name="'+o+'" src="'+l.iframeSrc+'" />',s)).css({position:"absolute",top:"-1000px",left:"-1000px"}),m=d[0],p={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var t="timeout"===e?"timeout":"aborted";N("aborting upload... "+t),this.aborted=1;try{m.contentWindow.document.execCommand&&m.contentWindow.document.execCommand("Stop")}catch(e){}d.attr("src",l.iframeSrc),p.error=t,l.error&&l.error.call(l.context,p,t,e),f&&q.event.trigger("ajaxError",[p,l,t]),l.complete&&l.complete.call(l.context,p,t)}},(f=l.global)&&0==q.active++&&q.event.trigger("ajaxStart"),f&&q.event.trigger("ajaxSend",[p,l]),l.beforeSend&&!1===l.beforeSend.call(l.context,p,l))return l.global&&q.active--,g.reject(),g;if(p.aborted)return g.reject(),g;(a=i.clk)&&(n=a.name)&&!a.disabled&&(l.extraData=l.extraData||{},l.extraData[n]=a.value,"image"===a.type&&(l.extraData[n+".x"]=i.clk_x,l.extraData[n+".y"]=i.clk_y));var x=1,y=2;function b(t){var r=null;try{t.contentWindow&&(r=t.contentWindow.document)}catch(e){N("cannot get iframe.contentWindow document: "+e)}if(r)return r;try{r=t.contentDocument?t.contentDocument:t.document}catch(e){N("cannot get iframe.contentDocument: "+e),r=t.document}return r}var c=q("meta[name=csrf-token]").attr("content"),T=q("meta[name=csrf-param]").attr("content");function j(){var e=X.attr2("target"),t=X.attr2("action"),r=X.attr("enctype")||X.attr("encoding")||"multipart/form-data";i.setAttribute("target",o),O&&!/post/i.test(O)||i.setAttribute("method","POST"),t!==l.url&&i.setAttribute("action",l.url),l.skipEncodingOverride||O&&!/post/i.test(O)||X.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),l.timeout&&(v=setTimeout(function(){h=!0,A(x)},l.timeout));var a=[];try{if(l.extraData)for(var n in l.extraData)l.extraData.hasOwnProperty(n)&&(q.isPlainObject(l.extraData[n])&&l.extraData[n].hasOwnProperty("name")&&l.extraData[n].hasOwnProperty("value")?a.push(q('<input type="hidden" name="'+l.extraData[n].name+'">',s).val(l.extraData[n].value).appendTo(i)[0]):a.push(q('<input type="hidden" name="'+n+'">',s).val(l.extraData[n]).appendTo(i)[0]));l.iframeTarget||d.appendTo(u),m.attachEvent?m.attachEvent("onload",A):m.addEventListener("load",A,!1),setTimeout(function e(){try{var t=b(m).readyState;N("state = "+t),t&&"uninitialized"===t.toLowerCase()&&setTimeout(e,50)}catch(e){N("Server abort: ",e," (",e.name,")"),A(y),v&&clearTimeout(v),v=void 0}},15);try{i.submit()}catch(e){document.createElement("form").submit.apply(i)}}finally{i.setAttribute("action",t),i.setAttribute("enctype",r),e?i.setAttribute("target",e):X.removeAttr("target"),q(a).remove()}}T&&c&&(l.extraData=l.extraData||{},l.extraData[T]=c),l.forceSync?j():setTimeout(j,10);var w,S,k,D=50;function A(e){if(!p.aborted&&!k){if((S=b(m))||(N("cannot access response document"),e=y),e===x&&p)return p.abort("timeout"),void g.reject(p,"timeout");if(e===y&&p)return p.abort("server abort"),void g.reject(p,"error","server abort");if(S&&S.location.href!==l.iframeSrc||h){m.detachEvent?m.detachEvent("onload",A):m.removeEventListener("load",A,!1);var t,r="success";try{if(h)throw"timeout";var a="xml"===l.dataType||S.XMLDocument||q.isXMLDoc(S);if(N("isXml="+a),!a&&window.opera&&(null===S.body||!S.body.innerHTML)&&--D)return N("requeing onLoad callback, DOM not available"),void setTimeout(A,250);var n=S.body?S.body:S.documentElement;p.responseText=n?n.innerHTML:null,p.responseXML=S.XMLDocument?S.XMLDocument:S,a&&(l.dataType="xml"),p.getResponseHeader=function(e){return{"content-type":l.dataType}[e.toLowerCase()]},n&&(p.status=Number(n.getAttribute("status"))||p.status,p.statusText=n.getAttribute("statusText")||p.statusText);var o,i,s,u=(l.dataType||"").toLowerCase(),c=/(json|script|text)/.test(u);c||l.textarea?(o=S.getElementsByTagName("textarea")[0])?(p.responseText=o.value,p.status=Number(o.getAttribute("status"))||p.status,p.statusText=o.getAttribute("statusText")||p.statusText):c&&(i=S.getElementsByTagName("pre")[0],s=S.getElementsByTagName("body")[0],i?p.responseText=i.textContent?i.textContent:i.innerText:s&&(p.responseText=s.textContent?s.textContent:s.innerText)):"xml"===u&&!p.responseXML&&p.responseText&&(p.responseXML=F(p.responseText));try{w=E(p,u,l)}catch(e){r="parsererror",p.error=t=e||r}}catch(e){N("error caught: ",e),r="error",p.error=t=e||r}p.aborted&&(N("upload aborted"),r=null),p.status&&(r=200<=p.status&&p.status<300||304===p.status?"success":"error"),"success"===r?(l.success&&l.success.call(l.context,w,"success",p),g.resolve(p.responseText,"success",p),f&&q.event.trigger("ajaxSuccess",[p,l])):r&&(void 0===t&&(t=p.statusText),l.error&&l.error.call(l.context,p,r,t),g.reject(p,"error",t),f&&q.event.trigger("ajaxError",[p,l,t])),f&&q.event.trigger("ajaxComplete",[p,l]),f&&!--q.active&&q.event.trigger("ajaxStop"),l.complete&&l.complete.call(l.context,p,r),k=!0,l.timeout&&clearTimeout(v),setTimeout(function(){l.iframeTarget?d.attr("src",l.iframeSrc):d.remove(),p.responseXML=null},100)}}}var F=q.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!==t.documentElement.nodeName?t:null},L=q.parseJSON||function(e){return window.eval("("+e+")")},E=function(e,t,r){var a=e.getResponseHeader("content-type")||"",n=("xml"===t||!t)&&0<=a.indexOf("xml"),o=n?e.responseXML:e.responseText;return n&&"parsererror"===o.documentElement.nodeName&&q.error&&q.error("parsererror"),r&&r.dataFilter&&(o=r.dataFilter(o,t)),"string"==typeof o&&(("json"===t||!t)&&0<=a.indexOf("json")?o=L(o):("script"===t||!t)&&0<=a.indexOf("javascript")&&q.globalEval(o)),o};return g}},q.fn.ajaxForm=function(e,t,r,a){if(("string"==typeof e||!1===e&&0<arguments.length)&&(e={url:e,data:t,dataType:r},"function"==typeof a&&(e.success=a)),(e=e||{}).delegation=e.delegation&&q.isFunction(q.fn.on),e.delegation||0!==this.length)return e.delegation?(q(document).off("submit.form-plugin",this.selector,o).off("click.form-plugin",this.selector,i).on("submit.form-plugin",this.selector,e,o).on("click.form-plugin",this.selector,e,i),this):(e.beforeFormUnbind&&e.beforeFormUnbind(this,e),this.ajaxFormUnbind().on("submit.form-plugin",e,o).on("click.form-plugin",e,i));var n={s:this.selector,c:this.context};return!q.isReady&&n.s?(N("DOM not ready, queuing ajaxForm"),q(function(){q(n.s,n.c).ajaxForm(e)})):N("terminating; zero elements found by selector"+(q.isReady?"":" (DOM not ready)")),this},q.fn.ajaxFormUnbind=function(){return this.off("submit.form-plugin click.form-plugin")},q.fn.formToArray=function(e,t,r){var a=[];if(0===this.length)return a;var n,o,i,s,u,c,l,f,d,m,p=this[0],h=this.attr("id"),v=(v=e||void 0===p.elements?p.getElementsByTagName("*"):p.elements)&&q.makeArray(v);if(h&&(e||/(Edge|Trident)\//.test(navigator.userAgent))&&(n=q(':input[form="'+h+'"]').get()).length&&(v=(v||[]).concat(n)),!v||!v.length)return a;for(q.isFunction(r)&&(v=q.map(v,r)),o=0,c=v.length;o<c;o++)if((m=(u=v[o]).name)&&!u.disabled)if(e&&p.clk&&"image"===u.type)p.clk===u&&(a.push({name:m,value:q(u).val(),type:u.type}),a.push({name:m+".x",value:p.clk_x},{name:m+".y",value:p.clk_y}));else if((s=q.fieldValue(u,!0))&&s.constructor===Array)for(t&&t.push(u),i=0,l=s.length;i<l;i++)a.push({name:m,value:s[i]});else if(S.fileapi&&"file"===u.type){t&&t.push(u);var g=u.files;if(g.length)for(i=0;i<g.length;i++)a.push({name:m,value:g[i],type:u.type});else a.push({name:m,value:"",type:u.type})}else null!=s&&(t&&t.push(u),a.push({name:m,value:s,type:u.type,required:u.required}));return e||!p.clk||(m=(d=(f=q(p.clk))[0]).name)&&!d.disabled&&"image"===d.type&&(a.push({name:m,value:f.val()}),a.push({name:m+".x",value:p.clk_x},{name:m+".y",value:p.clk_y})),a},q.fn.formSerialize=function(e){return q.param(this.formToArray(e))},q.fn.fieldSerialize=function(n){var o=[];return this.each(function(){var e=this.name;if(e){var t=q.fieldValue(this,n);if(t&&t.constructor===Array)for(var r=0,a=t.length;r<a;r++)o.push({name:e,value:t[r]});else null!=t&&o.push({name:this.name,value:t})}}),q.param(o)},q.fn.fieldValue=function(e){for(var t=[],r=0,a=this.length;r<a;r++){var n=this[r],o=q.fieldValue(n,e);null==o||o.constructor===Array&&!o.length||(o.constructor===Array?q.merge(t,o):t.push(o))}return t},q.fieldValue=function(e,t){var r=e.name,a=e.type,n=e.tagName.toLowerCase();if(void 0===t&&(t=!0),t&&(!r||e.disabled||"reset"===a||"button"===a||("checkbox"===a||"radio"===a)&&!e.checked||("submit"===a||"image"===a)&&e.form&&e.form.clk!==e||"select"===n&&-1===e.selectedIndex))return null;if("select"!==n)return q(e).val().replace(m,"\r\n");var o=e.selectedIndex;if(o<0)return null;for(var i=[],s=e.options,u="select-one"===a,c=u?o+1:s.length,l=u?o:0;l<c;l++){var f=s[l];if(f.selected&&!f.disabled){var d=(d=f.value)||(f.attributes&&f.attributes.value&&!f.attributes.value.specified?f.text:f.value);if(u)return d;i.push(d)}}return i},q.fn.clearForm=function(e){return this.each(function(){q("input,select,textarea",this).clearFields(e)})},q.fn.clearFields=q.fn.clearInputs=function(r){var a=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var e=this.type,t=this.tagName.toLowerCase();a.test(e)||"textarea"===t?this.value="":"checkbox"===e||"radio"===e?this.checked=!1:"select"===t?this.selectedIndex=-1:"file"===e?/MSIE/.test(navigator.userAgent)?q(this).replaceWith(q(this).clone(!0)):q(this).val(""):r&&(!0===r&&/hidden/.test(e)||"string"==typeof r&&q(this).is(r))&&(this.value="")})},q.fn.resetForm=function(){return this.each(function(){var t=q(this),e=this.tagName.toLowerCase();switch(e){case"input":this.checked=this.defaultChecked;case"textarea":return this.value=this.defaultValue,!0;case"option":case"optgroup":var r=t.parents("select");return r.length&&r[0].multiple?"option"===e?this.selected=this.defaultSelected:t.find("option").resetForm():r.resetForm(),!0;case"select":return t.find("option").each(function(e){if(this.selected=this.defaultSelected,this.defaultSelected&&!t[0].multiple)return t[0].selectedIndex=e,!1}),!0;case"label":var a=q(t.attr("for")),n=t.find("input,select,textarea");return a[0]&&n.unshift(a[0]),n.resetForm(),!0;case"form":return"function"!=typeof this.reset&&("object"!=typeof this.reset||this.reset.nodeType)||this.reset(),!0;default:return t.find("form,input,label,select,textarea").resetForm(),!0}})},q.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},q.fn.selected=function(r){return void 0===r&&(r=!0),this.each(function(){var e,t=this.type;"checkbox"===t||"radio"===t?this.checked=r:"option"===this.tagName.toLowerCase()&&(e=q(this).parent("select"),r&&e[0]&&"select-one"===e[0].type&&e.find("option").selected(!1),this.selected=r)})},q.fn.ajaxSubmit.debug=!1});
;
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
Drupal.debounce = function (func, wait, immediate) {
var timeout;
var result;
return function () {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
var context = this;
var later = function later() {
timeout = null;
if (!immediate) {
result = func.apply(context, args);
}
};
var callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow) {
result = func.apply(context, args);
}
return result;
};
};;
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function ($, Drupal, debounce) {
var offsets = {
top: 0,
right: 0,
bottom: 0,
left: 0
};
function getRawOffset(el, edge) {
var $el = $(el);
var documentElement = document.documentElement;
var displacement = 0;
var horizontal = edge === 'left' || edge === 'right';
var placement = $el.offset()[horizontal ? 'left' : 'top'];
placement -= window["scroll".concat(horizontal ? 'X' : 'Y')] || document.documentElement["scroll".concat(horizontal ? 'Left' : 'Top')] || 0;
switch (edge) {
case 'top':
displacement = placement + $el.outerHeight();
break;
case 'left':
displacement = placement + $el.outerWidth();
break;
case 'bottom':
displacement = documentElement.clientHeight - placement;
break;
case 'right':
displacement = documentElement.clientWidth - placement;
break;
default:
displacement = 0;
}
return displacement;
}
function calculateOffset(edge) {
var edgeOffset = 0;
var displacingElements = document.querySelectorAll("[data-offset-".concat(edge, "]"));
var n = displacingElements.length;
for (var i = 0; i < n; i++) {
var el = displacingElements[i];
if (el.style.display === 'none') {
continue;
}
var displacement = parseInt(el.getAttribute("data-offset-".concat(edge)), 10);
if (isNaN(displacement)) {
displacement = getRawOffset(el, edge);
}
edgeOffset = Math.max(edgeOffset, displacement);
}
return edgeOffset;
}
function calculateOffsets() {
return {
top: calculateOffset('top'),
right: calculateOffset('right'),
bottom: calculateOffset('bottom'),
left: calculateOffset('left')
};
}
function displace(broadcast) {
offsets = calculateOffsets();
Drupal.displace.offsets = offsets;
if (typeof broadcast === 'undefined' || broadcast) {
$(document).trigger('drupalViewportOffsetChange', offsets);
}
return offsets;
}
Drupal.behaviors.drupalDisplace = {
attach: function attach() {
if (this.displaceProcessed) {
return;
}
this.displaceProcessed = true;
$(window).on('resize.drupalDisplace', debounce(displace, 200));
}
};
Drupal.displace = displace;
$.extend(Drupal.displace, {
offsets: offsets,
calculateOffset: calculateOffset
});
})(jQuery, Drupal, Drupal.debounce);;
|
/**
* The MIT License
* Copyright (c) 2016 Population Register Centre (VRK)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
import { normalize } from 'normalizr'
import { camelizeKeys } from 'humps'
import merge from 'lodash/merge'
import 'isomorphic-fetch'
import { getAppUrl } from '../Configuration/AppHelpers'
import { property } from 'lodash'
function buildApiRootUrl () {
var url = ''
if (typeof (getApiUrl) === 'function') {
url = getApiUrl()
}
return url !== '' ? url : (getAppUrl() + '/api/')
}
const API_ROOT = buildApiRootUrl()
export const API_WEB_ROOT = getAppUrl() + '/api/'
console.log('URL: ' + API_ROOT)
console.log('URL: ' + API_WEB_ROOT)
const customAssign = (languageCode) => (output, key, value, input, schema) => {
const language = languageCode || 'fi'
if (schema && schema.getMeta('localizable')) {
if (!output[language]) {
output[language] = {}
}
output[language][key] = value
if (key === 'publishingStatusId' || key === 'languagesAvailabilities') {
output[key] = value
}
} else {
output[key] = value
}
}
const reduceNormalizedDataArray = (prev, curr) => {
return {
entities: merge(prev.entities, curr.entities),
results: merge(prev.results, curr.results),
enums: merge(prev.enums, curr.enums)
}
}
export const normalizeData = (object, schema, langCode) => {
const normalized = normalize(object, schema, { assignEntity: customAssign(langCode) })
return normalized
}
const normalizeApiData = (object, schema, resultPropertyName, language) => {
const key = getSchemaKey(schema)
const property = object[key]
if (property) {
const normalized = normalizeData(property, schema, language)
object[key] = normalized.result
normalized.results = { [key]: normalized.result }
if (resultPropertyName) {
normalized[resultPropertyName] = normalized.results
}
return normalized
}
return object
}
const getSchemaKey = (schema) => {
return (schema._itemSchema && schema._itemSchema.key ? schema._itemSchema.key : schema.key) || 'unknown'
}
class ResponseError extends Error {
constructor (response) {
super(response.statusText)
this.code = response.status
}
}
export const normalizeResponse = ({ json, schemas }) => {
const camelizedJson = json.doNotCamelize && json || camelizeKeys(json)
// if (json.translatedData) {
// camelizedJson.data = { ...camelizedJson.data, localizationMessages: json.translatedData }
// }
let result = {}
let resultModel = camelizedJson.data
// normalize data by schema
if (schemas && camelizedJson.data) {
// normalize schema arrays
if (Array.isArray(schemas)) {
console.error('NORMALIZE: not supported operation - schemas array', camelizedJson.data, schemas)
} else {
// normalize schema for one model
// if (camelizedJson.data.id == null) {
// camelizedJson.data.id = clientId
// }
result = normalizeData(camelizedJson.data, schemas, json.language)
resultModel = { result: result.result }
}
}
result.result = resultModel
if (camelizedJson.messages) {
result = { ...result, messages: camelizedJson.messages }
}
return result
}
// Fetches an API response and normalizes the result JSON according to schema.
// This makes every API response have the same shape, regardless of how nested it was.
function callApi (endpoint, schemas, typeSchemas, options, clientId) {
// checkif endpoint already contains base asi url or base web url
const fullUrl = (endpoint.indexOf(API_ROOT) !== -1) || (endpoint.indexOf(API_WEB_ROOT) !== -1)
? endpoint
: API_ROOT + endpoint
return fetch(fullUrl, options)
.then(response => {
if (!response.ok) {
return Promise.reject(new ResponseError(response))
}
return response.json().then(json => ({ json, response }))
}).then(({ json, response }) => {
if (!response.ok) {
return Promise.reject(json)
}
// normalize static types
if (typeSchemas) {
if (Array.isArray(typeSchemas)) {
console.error('NORMALIZE: not supported operation - types schemas array', json, typeSchemas)
} else {
console.error('NORMALIZE: not supported operation - types schema', json, typeSchemas)
}
}
return normalizeResponse({ json, schemas })
}).catch(error => Promise.reject(error))
}
function getOptions (data, action) {
var token = getAccessToken() || null
// localStorage.getItem('access_token') || null;
if (!token) {
console.log('getOptions, bearer token is not set!')
}
let options = {
headers: {
'Authorization': 'Bearer ' + token,
'Accept': 'application/json',
'Content-Type': 'application/json',
'Access-Control-Allow-Origin' : '*'
}
}
if (data) {
options.method = 'post'
let dataToServer = { ...data }
if (action && action.clearRequest) {
action.clearRequest.map(key => delete dataToServer[key])
}
options.body = JSON.stringify(dataToServer)
}
return options
}
export function callApiDirect (endpoint, data) {
const options = getOptions(data)
return callApi(endpoint, null, null, options)
}
const getError = (error) => {
if (error instanceof Error) {
return {
...error,
stack: error.stack,
message: error.message,
name: error.name,
fileName: error.fileName,
lineNumber: error.lineNumber,
columnNumber: error.columnNumber
}
}
return {}
}
// Action key that carries API call info interpreted by this Redux middleware.
export const CALL_API = Symbol('Call API')
// A Redux middleware that interprets actions with CALL_API info specified.
// Performs the call and promises when such actions are dispatched.
export default store => next => action => {
const callAPI = action[CALL_API]
if (typeof callAPI === 'undefined') {
return next(action)
}
let { payload, payload: { data }, payload: { endpoint } } = callAPI
const {
schemas,
types,
typeSchemas,
clientId,
successNextAction,
onErrorAction,
onInfoAction
} = callAPI
if (typeof endpoint === 'function') {
endpoint = endpoint(store.getState())
}
if (typeof endpoint !== 'string') {
throw new Error('Specify a string endpoint URL.')
}
if (!Array.isArray(types) || types.length !== 3) {
throw new Error('Expected an array of three action types.')
}
if (!types.every(type => typeof type === 'string')) {
throw new Error('Expected action types to be strings.')
}
let options = getOptions(data, action)
function actionWith (data) {
const finalAction = Object.assign({}, action, data)
delete finalAction[CALL_API]
return finalAction
}
const handleMessages = (messageType, callback, response) => {
const messages = property(`response.messages.${messageType}`)(response)
if (messages && messages.length > 0) {
store.dispatch(callback(messages))
}
}
const [ requestType, successType, failureType ] = types
next(actionWith({ type: requestType, request: payload }))
return callApi(endpoint, schemas, typeSchemas, options, clientId)
.then(
response => next(actionWith({
response,
type: successType
})),
error => next(actionWith({
type: failureType,
errorObject: getError(error),
error: error.message || 'Something bad happened'
}))
).then(
response => {
if (successNextAction && typeof successNextAction === 'function') {
const errors = property(`response.messages.errors.length`)(response)
const customAction = errors === 0 && successNextAction(response)
if (customAction) {
if (typeof customAction === 'function') {
store.dispatch(customAction)
} else {
next(customAction)
}
}
}
handleMessages('errors', onErrorAction, response)
handleMessages('infos', onInfoAction, response)
})
}
|
import "phoenix_html"
import "./socket"
import "./../../css/admin/admin.scss"
|
// Copyright 2014 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
var a = new Object();
assert(a.valueOf() === a);
|
/**
* Load the App component.
* (All the fun stuff happens in "/src/index.js")
*/
import { AppRegistry } from 'react-native';
import AppContainer from './src/';
AppRegistry.registerComponent('roverz', () => AppContainer);
|
import React from "react";
import { Typography, Link } from "@material-ui/core/";
const Attribution = () => {
return (
<Typography variant="caption" display="block" gutterBottom align="center">
Icons made by{" "}
<Link
href="https://www.freepik.com"
color="inherit"
style={{ textDecoration: "underline" }}
>
Freepik
</Link>{" "}
and{" "}
<Link
href="https://www.flaticon.com/authors/smashicons"
color="inherit"
style={{ textDecoration: "underline" }}
>
Smashicons
</Link>{" "}
from{" "}
<Link
href="https://www.flaticon.com/"
color="inherit"
style={{ textDecoration: "underline" }}
>
Flaticon
</Link>
.
</Typography>
);
};
export default Attribution;
|
// vim: ts=2 sw=2
(function () {
d3.timeline = function() {
var DISPLAY_TYPES = ["circle", "rect"];
var hover = function () {},
mouseover = function () {},
mouseout = function () {},
click = function () {},
scroll = function () {},
labelFunction = function(label) { return label; },
navigateLeft = function () {},
navigateRight = function () {},
orient = "bottom",
width = null,
height = null,
rowSeparatorsColor = null,
backgroundColor = null,
tickFormat = { format: d3.time.format("%I %p"),
tickTime: d3.time.hours,
tickInterval: 1,
tickSize: 6,
tickValues: null
},
colorCycle = d3.scale.category20(),
colorPropertyName = null,
display = "rect",
beginning = 0,
labelMargin = 0,
ending = 0,
margin = {left: 30, right:30, top: 30, bottom:30},
stacked = false,
rotateTicks = false,
timeIsRelative = false,
fullLengthBackgrounds = false,
itemHeight = 20,
itemMargin = 5,
navMargin = 60,
showTimeAxis = true,
showAxisTop = false,
showTodayLine = false,
timeAxisTick = false,
timeAxisTickFormat = {stroke: "stroke-dasharray", spacing: "4 10"},
showTodayFormat = {marginTop: 25, marginBottom: 0, width: 1, color: colorCycle},
showBorderLine = false,
showBorderFormat = {marginTop: 25, marginBottom: 0, width: 1, color: colorCycle},
showAxisHeaderBackground = false,
showAxisNav = false,
showAxisCalendarYear = false,
axisBgColor = "white",
chartData = {}
;
var appendTimeAxis = function(g, xAxis, yPosition) {
if(showAxisHeaderBackground){ appendAxisHeaderBackground(g, 0, 0); }
if(showAxisNav){ appendTimeAxisNav(g) };
var axis = g.append("g")
.attr("class", "axis")
.attr("transform", "translate(" + 0 + "," + yPosition + ")")
.call(xAxis);
};
var appendTimeAxisCalendarYear = function (nav) {
var calendarLabel = beginning.getFullYear();
if (beginning.getFullYear() != ending.getFullYear()) {
calendarLabel = beginning.getFullYear() + "-" + ending.getFullYear()
}
nav.append("text")
.attr("transform", "translate(" + 20 + ", 0)")
.attr("x", 0)
.attr("y", 14)
.attr("class", "calendarYear")
.text(calendarLabel)
;
};
var appendTimeAxisNav = function (g) {
var timelineBlocks = 6;
var leftNavMargin = (margin.left - navMargin);
var incrementValue = (width - margin.left)/timelineBlocks;
var rightNavMargin = (width - margin.right - incrementValue + navMargin);
var nav = g.append('g')
.attr("class", "axis")
.attr("transform", "translate(0, 20)")
;
if(showAxisCalendarYear) { appendTimeAxisCalendarYear(nav) };
nav.append("text")
.attr("transform", "translate(" + leftNavMargin + ", 0)")
.attr("x", 0)
.attr("y", 14)
.attr("class", "chevron")
.text("<")
.on("click", function () {
return navigateLeft(beginning, chartData);
})
;
nav.append("text")
.attr("transform", "translate(" + rightNavMargin + ", 0)")
.attr("x", 0)
.attr("y", 14)
.attr("class", "chevron")
.text(">")
.on("click", function () {
return navigateRight(ending, chartData);
})
;
};
var appendAxisHeaderBackground = function (g, xAxis, yAxis) {
g.insert("rect")
.attr("class", "row-green-bar")
.attr("x", xAxis)
.attr("width", width)
.attr("y", yAxis)
.attr("height", itemHeight)
.attr("fill", axisBgColor);
};
var appendTimeAxisTick = function(g, xAxis, maxStack) {
g.append("g")
.attr("class", "axis")
.attr("transform", "translate(" + 0 + "," + (margin.top + (itemHeight + itemMargin) * maxStack) + ")")
.attr(timeAxisTickFormat.stroke, timeAxisTickFormat.spacing)
.call(xAxis.tickFormat("").tickSize(-(margin.top + (itemHeight + itemMargin) * (maxStack - 1) + 3), 0, 0));
};
var appendBackgroundBar = function (yAxisMapping, index, g, data, datum) {
var greenbarYAxis = ((itemHeight + itemMargin) * yAxisMapping[index]) + margin.top;
g.selectAll("svg").data(data).enter()
.insert("rect")
.attr("class", "row-green-bar")
.attr("x", fullLengthBackgrounds ? 0 : margin.left)
.attr("width", fullLengthBackgrounds ? width : (width - margin.right - margin.left))
.attr("y", greenbarYAxis)
.attr("height", itemHeight)
.attr("fill", backgroundColor instanceof Function ? backgroundColor(datum, index) : backgroundColor)
;
};
var appendLabel = function (gParent, yAxisMapping, index, hasLabel, datum) {
var fullItemHeight = itemHeight + itemMargin;
var rowsDown = margin.top + (fullItemHeight/2) + fullItemHeight * (yAxisMapping[index] || 1);
gParent.append("text")
.attr("class", "timeline-label")
.attr("transform", "translate(" + labelMargin + "," + rowsDown + ")")
.text(hasLabel ? labelFunction(datum.label) : datum.id)
.on("click", function (d, i) { click(d, index, datum); });
};
function timeline (gParent) {
var g = gParent.append("g");
var gParentSize = gParent[0][0].getBoundingClientRect();
var gParentItem = d3.select(gParent[0][0]);
var yAxisMapping = {},
maxStack = 1,
minTime = 0,
maxTime = 0;
setWidth();
// check if the user wants relative time
// if so, substract the first timestamp from each subsequent timestamps
if(timeIsRelative){
g.each(function (d, i) {
d.forEach(function (datum, index) {
datum.times.forEach(function (time, j) {
if(index === 0 && j === 0){
originTime = time.starting_time; //Store the timestamp that will serve as origin
time.starting_time = 0; //Set the origin
time.ending_time = time.ending_time - originTime; //Store the relative time (millis)
}else{
time.starting_time = time.starting_time - originTime;
time.ending_time = time.ending_time - originTime;
}
});
});
});
}
// check how many stacks we're gonna need
// do this here so that we can draw the axis before the graph
if (stacked || ending === 0 || beginning === 0) {
g.each(function (d, i) {
d.forEach(function (datum, index) {
// create y mapping for stacked graph
if (stacked && Object.keys(yAxisMapping).indexOf(index) == -1) {
yAxisMapping[index] = maxStack;
maxStack++;
}
// figure out beginning and ending times if they are unspecified
datum.times.forEach(function (time, i) {
if(beginning === 0)
if (time.starting_time < minTime || (minTime === 0 && timeIsRelative === false))
minTime = time.starting_time;
if(ending === 0)
if (time.ending_time > maxTime)
maxTime = time.ending_time;
});
});
});
if (ending === 0) {
ending = maxTime;
}
if (beginning === 0) {
beginning = minTime;
}
}
var scaleFactor = (1/(ending - beginning)) * (width - margin.left - margin.right);
// draw the axis
var xScale = d3.time.scale()
.domain([beginning, ending])
.range([margin.left, width - margin.right]);
var xAxis = d3.svg.axis()
.scale(xScale)
.orient(orient)
.tickFormat(tickFormat.format)
.tickSize(tickFormat.tickSize);
if (tickFormat.tickValues != null) {
xAxis.tickValues(tickFormat.tickValues);
} else {
xAxis.ticks(tickFormat.numTicks || tickFormat.tickTime, tickFormat.tickInterval);
}
// draw the chart
g.each(function(d, i) {
chartData = d;
d.forEach( function(datum, index){
var data = datum.times;
var hasLabel = (typeof(datum.label) != "undefined");
// issue warning about using id per data set. Ids should be individual to data elements
if (typeof(datum.id) != "undefined") {
console.warn("d3Timeline Warning: Ids per dataset is deprecated in favor of a 'class' key. Ids are now per data element.");
}
if (backgroundColor) { appendBackgroundBar(yAxisMapping, index, g, data, datum); }
g.selectAll("svg").data(data).enter()
.append(function(d, i) {
return document.createElementNS(d3.ns.prefix.svg, "display" in d? d.display:display);
})
.attr("x", getXPos)
.attr("y", getStackPosition)
.attr("width", function (d, i) {
return (d.ending_time - d.starting_time) * scaleFactor;
})
.attr("cy", function(d, i) {
return getStackPosition(d, i) + itemHeight/2;
})
.attr("cx", getXPos)
.attr("r", itemHeight / 2)
.attr("height", itemHeight)
.style("fill", function(d, i){
var dColorPropName;
if (d.color) return d.color;
if( colorPropertyName ){
dColorPropName = d[colorPropertyName];
if ( dColorPropName ) {
return colorCycle( dColorPropName );
} else {
return colorCycle( datum[colorPropertyName] );
}
}
return colorCycle(index);
})
.on("mousemove", function (d, i) {
hover(d, index, datum);
})
.on("mouseover", function (d, i) {
mouseover(d, i, datum);
})
.on("mouseout", function (d, i) {
mouseout(d, i, datum);
})
.on("click", function (d, i) {
click(d, index, datum);
})
.attr("class", function (d, i) {
return datum.class ? "timelineSeries_"+datum.class : "timelineSeries_"+index;
})
.attr("id", function(d, i) {
// use deprecated id field
if (datum.id && !d.id) {
return 'timelineItem_'+datum.id;
}
return d.id ? d.id : "timelineItem_"+index+"_"+i;
})
;
g.selectAll("svg").data(data).enter()
.append("text")
.attr("x", getXTextPos)
.attr("y", getStackTextPosition)
.text(function(d) {
return d.label;
})
;
if (rowSeparatorsColor) {
var lineYAxis = ( itemHeight + itemMargin / 2 + margin.top + (itemHeight + itemMargin) * yAxisMapping[index]);
gParent.append("svg:line")
.attr("class", "row-separator")
.attr("x1", 0 + margin.left)
.attr("x2", width - margin.right)
.attr("y1", lineYAxis)
.attr("y2", lineYAxis)
.attr("stroke-width", 1)
.attr("stroke", rowSeparatorsColor);
}
// add the label
if (hasLabel) { appendLabel(gParent, yAxisMapping, index, hasLabel, datum); }
if (typeof(datum.icon) !== "undefined") {
gParent.append("image")
.attr("class", "timeline-label")
.attr("transform", "translate("+ 0 +","+ (margin.top + (itemHeight + itemMargin) * yAxisMapping[index])+")")
.attr("xlink:href", datum.icon)
.attr("width", margin.left)
.attr("height", itemHeight);
}
function getStackPosition(d, i) {
if (stacked) {
return margin.top + (itemHeight + itemMargin) * yAxisMapping[index];
}
return margin.top;
}
function getStackTextPosition(d, i) {
if (stacked) {
return margin.top + (itemHeight + itemMargin) * yAxisMapping[index] + itemHeight * 0.75;
}
return margin.top + itemHeight * 0.75;
}
});
});
var belowLastItem = (margin.top + (itemHeight + itemMargin) * maxStack);
var aboveFirstItem = margin.top;
var timeAxisYPosition = showAxisTop ? aboveFirstItem : belowLastItem;
if (showTimeAxis) { appendTimeAxis(g, xAxis, timeAxisYPosition); }
if (timeAxisTick) { appendTimeAxisTick(g, xAxis, maxStack); }
if (width > gParentSize.width) {
var move = function() {
var x = Math.min(0, Math.max(gParentSize.width - width, d3.event.translate[0]));
zoom.translate([x, 0]);
g.attr("transform", "translate(" + x + ",0)");
scroll(x*scaleFactor, xScale);
};
var zoom = d3.behavior.zoom().x(xScale).on("zoom", move);
gParent
.attr("class", "scrollable")
.call(zoom);
}
if (rotateTicks) {
g.selectAll(".tick text")
.attr("transform", function(d) {
return "rotate(" + rotateTicks + ")translate("
+ (this.getBBox().width / 2 + 10) + "," // TODO: change this 10
+ this.getBBox().height / 2 + ")";
});
}
var gSize = g[0][0].getBoundingClientRect();
setHeight();
if (showBorderLine) {
g.each(function (d, i) {
d.forEach(function (datum) {
var times = datum.times;
times.forEach(function (time) {
appendLine(xScale(time.starting_time), showBorderFormat);
appendLine(xScale(time.ending_time), showBorderFormat);
});
});
});
}
if (showTodayLine) {
var todayLine = xScale(new Date());
appendLine(todayLine, showTodayFormat);
}
function getXPos(d, i) {
return margin.left + (d.starting_time - beginning) * scaleFactor;
}
function getXTextPos(d, i) {
return margin.left + (d.starting_time - beginning) * scaleFactor + 5;
}
function setHeight() {
if (!height && !gParentItem.attr("height")) {
if (itemHeight) {
// set height based off of item height
height = gSize.height + gSize.top - gParentSize.top;
// set bounding rectangle height
d3.select(gParent[0][0]).attr("height", height);
} else {
throw "height of the timeline is not set";
}
} else {
if (!height) {
height = gParentItem.attr("height");
} else {
gParentItem.attr("height", height);
}
}
}
function setWidth() {
if (!width && !gParentSize.width) {
try {
width = gParentItem.attr("width");
if (!width) {
throw "width of the timeline is not set. As of Firefox 27, timeline().with(x) needs to be explicitly set in order to render";
}
} catch (err) {
console.log( err );
}
} else if (!(width && gParentSize.width)) {
try {
width = gParentItem.attr("width");
} catch (err) {
console.log( err );
}
}
// if both are set, do nothing
}
function appendLine(lineScale, lineFormat) {
gParent.append("svg:line")
.attr("x1", lineScale)
.attr("y1", lineFormat.marginTop)
.attr("x2", lineScale)
.attr("y2", height - lineFormat.marginBottom)
.style("stroke", lineFormat.color)//"rgb(6,120,155)")
.style("stroke-width", lineFormat.width);
}
}
// SETTINGS
timeline.margin = function (p) {
if (!arguments.length) return margin;
margin = p;
return timeline;
};
timeline.orient = function (orientation) {
if (!arguments.length) return orient;
orient = orientation;
return timeline;
};
timeline.itemHeight = function (h) {
if (!arguments.length) return itemHeight;
itemHeight = h;
return timeline;
};
timeline.itemMargin = function (h) {
if (!arguments.length) return itemMargin;
itemMargin = h;
return timeline;
};
timeline.navMargin = function (h) {
if (!arguments.length) return navMargin;
navMargin = h;
return timeline;
};
timeline.height = function (h) {
if (!arguments.length) return height;
height = h;
return timeline;
};
timeline.width = function (w) {
if (!arguments.length) return width;
width = w;
return timeline;
};
timeline.display = function (displayType) {
if (!arguments.length || (DISPLAY_TYPES.indexOf(displayType) == -1)) return display;
display = displayType;
return timeline;
};
timeline.labelFormat = function(f) {
if (!arguments.length) return labelFunction;
labelFunction = f;
return timeline;
};
timeline.tickFormat = function (format) {
if (!arguments.length) return tickFormat;
tickFormat = format;
return timeline;
};
timeline.hover = function (hoverFunc) {
if (!arguments.length) return hover;
hover = hoverFunc;
return timeline;
};
timeline.mouseover = function (mouseoverFunc) {
if (!arguments.length) return mouseover;
mouseover = mouseoverFunc;
return timeline;
};
timeline.mouseout = function (mouseoutFunc) {
if (!arguments.length) return mouseout;
mouseout = mouseoutFunc;
return timeline;
};
timeline.click = function (clickFunc) {
if (!arguments.length) return click;
click = clickFunc;
return timeline;
};
timeline.scroll = function (scrollFunc) {
if (!arguments.length) return scroll;
scroll = scrollFunc;
return timeline;
};
timeline.colors = function (colorFormat) {
if (!arguments.length) return colorCycle;
colorCycle = colorFormat;
return timeline;
};
timeline.beginning = function (b) {
if (!arguments.length) return beginning;
beginning = b;
return timeline;
};
timeline.ending = function (e) {
if (!arguments.length) return ending;
ending = e;
return timeline;
};
timeline.labelMargin = function (m) {
if (!arguments.length) return labelMargin;
labelMargin = m;
return timeline;
};
timeline.rotateTicks = function (degrees) {
if (!arguments.length) return rotateTicks;
rotateTicks = degrees;
return timeline;
};
timeline.stack = function () {
stacked = !stacked;
return timeline;
};
timeline.relativeTime = function() {
timeIsRelative = !timeIsRelative;
return timeline;
};
timeline.showBorderLine = function () {
showBorderLine = !showBorderLine;
return timeline;
};
timeline.showBorderFormat = function(borderFormat) {
if (!arguments.length) return showBorderFormat;
showBorderFormat = borderFormat;
return timeline;
};
timeline.showToday = function () {
showTodayLine = !showTodayLine;
return timeline;
};
timeline.showTodayFormat = function(todayFormat) {
if (!arguments.length) return showTodayFormat;
showTodayFormat = todayFormat;
return timeline;
};
timeline.colorProperty = function(colorProp) {
if (!arguments.length) return colorPropertyName;
colorPropertyName = colorProp;
return timeline;
};
timeline.rowSeparators = function (color) {
if (!arguments.length) return rowSeparatorsColor;
rowSeparatorsColor = color;
return timeline;
};
timeline.background = function (color) {
if (!arguments.length) return backgroundColor;
backgroundColor = color;
return timeline;
};
timeline.showTimeAxis = function () {
showTimeAxis = !showTimeAxis;
return timeline;
};
timeline.showAxisTop = function () {
showAxisTop = !showAxisTop;
return timeline;
};
timeline.showAxisCalendarYear = function () {
showAxisCalendarYear = !showAxisCalendarYear;
return timeline;
};
timeline.showTimeAxisTick = function () {
timeAxisTick = !timeAxisTick;
return timeline;
};
timeline.fullLengthBackgrounds = function () {
fullLengthBackgrounds = !fullLengthBackgrounds;
return timeline;
};
timeline.showTimeAxisTickFormat = function(format) {
if (!arguments.length) return timeAxisTickFormat;
timeAxisTickFormat = format;
return timeline;
};
timeline.showAxisHeaderBackground = function(bgColor) {
showAxisHeaderBackground = !showAxisHeaderBackground;
if(bgColor) { (axisBgColor = bgColor) };
return timeline;
};
timeline.navigate = function (navigateBackwards, navigateForwards) {
if (!arguments.length) return [navigateLeft, navigateRight];
navigateLeft = navigateBackwards;
navigateRight = navigateForwards;
showAxisNav = !showAxisNav;
return timeline;
};
return timeline;
};
})();
|
/**
* @module TypeHeaderUtils
*/
/**
* @typedef TypeEntity
* @prop {String} type Type entry value
* @prop {Object} params Type params, like `q`, `charset`, etc.
*/
/**
* parseHeader - Parse complete type header value for Content-Type and Accept
* headers. Example:
* `text/html;q=1.0, image/png;q=0.1`.
*
* @param {string} header Request header.
* @return {TypeEntity[]} Array of type objects.
*/
function parseHeader(header) {
const entities = header.split(/\s*,\s*/)
return entities.map(parseEntity)
}
/**
* parseEntity - parse singe header type entry. Type entry is a string which
* contains key value pairs separated with semicolon. Example:
* `application/jsoncharset=utf8`.
*
* @param {String} entity Type entry.
* @return {TypeEntity} returns type entry object.
*/
function parseEntity(entity) {
const [type, ...tail] = entity.split(/;/)
const params = getParams(tail)
if (params.q) {
params.q = parseFloat(params.q)
}
return {type, params}
}
/**
* getParams - convert list of key-value strings into object with proper keys
* and values.
*
* @param {String[]} params Array of key value strings.
* @return {Object<String,String>} Object.
* @access private
*/
function getParams(params) {
return params.map(function (param) {
return param.split('=')
})
.reduce(function (result, [name, value]) {
return {
...result,
[name]: value,
}
}, {})
}
exports.parseHeader = parseHeader
exports.parseEntity = parseEntity
|
"use strict";
const NamedResourceManager = require("../NamedResourceManager");
class LocationAreaManager extends NamedResourceManager {
constructor(client) {
super(client, "location-area");
}
}
module.exports = LocationAreaManager;
|
module.exports = {
MONGO_URI: process.env.DB_CONNECTION
};
|
import {AsyncStorage} from '@react-native-community/async-storage';
class AsyncStorageUtil {
static async getAsyncStorage(key) {
return await AsyncStorage.getItem(key).then(response => {
return response;
});
}
static async setAsyncStorage(key, value) {
await AsyncStorage.setItem(key, value).catch(err => {});
}
static async removeAsyncstorage(key) {
return await AsyncStorage.removeItem(key).then(response => {
return response;
});
}
static async clearAllStorageElement() {
return await AsyncStorage.clear().then(response => {
return response;
});
}
}
export default AsyncStorageUtil;
|
import 'can-view-href';
|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.ButtonBaseRoot = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
var React = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _clsx = _interopRequireDefault(require("clsx"));
var _utils = require("@material-ui/utils");
var _unstyled = require("@material-ui/unstyled");
var _styled = _interopRequireDefault(require("../styles/styled"));
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
var _useEventCallback = _interopRequireDefault(require("../utils/useEventCallback"));
var _useIsFocusVisible = _interopRequireDefault(require("../utils/useIsFocusVisible"));
var _TouchRipple = _interopRequireDefault(require("./TouchRipple"));
var _buttonBaseClasses = _interopRequireWildcard(require("./buttonBaseClasses"));
var _jsxRuntime = require("react/jsx-runtime");
const _excluded = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "type"];
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
const useUtilityClasses = styleProps => {
const {
disabled,
focusVisible,
focusVisibleClassName,
classes
} = styleProps;
const slots = {
root: ['root', disabled && 'disabled', focusVisible && 'focusVisible']
};
const composedClasses = (0, _unstyled.unstable_composeClasses)(slots, _buttonBaseClasses.getButtonBaseUtilityClass, classes);
if (focusVisible && focusVisibleClassName) {
composedClasses.root += ` ${focusVisibleClassName}`;
}
return composedClasses;
};
const ButtonBaseRoot = (0, _styled.default)('button', {
name: 'MuiButtonBase',
slot: 'Root',
overridesResolver: (props, styles) => styles.root
})({
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
position: 'relative',
boxSizing: 'border-box',
WebkitTapHighlightColor: 'transparent',
backgroundColor: 'transparent',
// Reset default value
// We disable the focus ring for mouse, touch and keyboard users.
outline: 0,
border: 0,
margin: 0,
// Remove the margin in Safari
borderRadius: 0,
padding: 0,
// Remove the padding in Firefox
cursor: 'pointer',
userSelect: 'none',
verticalAlign: 'middle',
MozAppearance: 'none',
// Reset
WebkitAppearance: 'none',
// Reset
textDecoration: 'none',
// So we take precedent over the style of a native <a /> element.
color: 'inherit',
'&::-moz-focus-inner': {
borderStyle: 'none' // Remove Firefox dotted outline.
},
[`&.${_buttonBaseClasses.default.disabled}`]: {
pointerEvents: 'none',
// Disable link interactions
cursor: 'default'
},
'@media print': {
colorAdjust: 'exact'
}
});
/**
* `ButtonBase` contains as few styles as possible.
* It aims to be a simple building block for creating a button.
* It contains a load of style reset and some focus/ripple logic.
*/
exports.ButtonBaseRoot = ButtonBaseRoot;
const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, ref) {
const props = (0, _useThemeProps.default)({
props: inProps,
name: 'MuiButtonBase'
});
const {
action,
centerRipple = false,
children,
className,
component = 'button',
disabled = false,
disableRipple = false,
disableTouchRipple = false,
focusRipple = false,
LinkComponent = 'a',
onBlur,
onClick,
onContextMenu,
onDragLeave,
onFocus,
onFocusVisible,
onKeyDown,
onKeyUp,
onMouseDown,
onMouseLeave,
onMouseUp,
onTouchEnd,
onTouchMove,
onTouchStart,
tabIndex = 0,
TouchRippleProps,
type
} = props,
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
const buttonRef = React.useRef(null);
const rippleRef = React.useRef(null);
const {
isFocusVisibleRef,
onFocus: handleFocusVisible,
onBlur: handleBlurVisible,
ref: focusVisibleRef
} = (0, _useIsFocusVisible.default)();
const [focusVisible, setFocusVisible] = React.useState(false);
if (disabled && focusVisible) {
setFocusVisible(false);
}
React.useEffect(() => {
isFocusVisibleRef.current = focusVisible;
}, [focusVisible, isFocusVisibleRef]);
React.useImperativeHandle(action, () => ({
focusVisible: () => {
setFocusVisible(true);
buttonRef.current.focus();
}
}), []);
React.useEffect(() => {
if (focusVisible && focusRipple && !disableRipple) {
rippleRef.current.pulsate();
}
}, [disableRipple, focusRipple, focusVisible]);
function useRippleHandler(rippleAction, eventCallback, skipRippleAction = disableTouchRipple) {
return (0, _useEventCallback.default)(event => {
if (eventCallback) {
eventCallback(event);
}
const ignore = skipRippleAction;
if (!ignore && rippleRef.current) {
rippleRef.current[rippleAction](event);
}
return true;
});
}
const handleMouseDown = useRippleHandler('start', onMouseDown);
const handleContextMenu = useRippleHandler('stop', onContextMenu);
const handleDragLeave = useRippleHandler('stop', onDragLeave);
const handleMouseUp = useRippleHandler('stop', onMouseUp);
const handleMouseLeave = useRippleHandler('stop', event => {
if (focusVisible) {
event.preventDefault();
}
if (onMouseLeave) {
onMouseLeave(event);
}
});
const handleTouchStart = useRippleHandler('start', onTouchStart);
const handleTouchEnd = useRippleHandler('stop', onTouchEnd);
const handleTouchMove = useRippleHandler('stop', onTouchMove);
const handleBlur = useRippleHandler('stop', event => {
handleBlurVisible(event);
if (isFocusVisibleRef.current === false) {
setFocusVisible(false);
}
if (onBlur) {
onBlur(event);
}
}, false);
const handleFocus = (0, _useEventCallback.default)(event => {
// Fix for https://github.com/facebook/react/issues/7769
if (!buttonRef.current) {
buttonRef.current = event.currentTarget;
}
handleFocusVisible(event);
if (isFocusVisibleRef.current === true) {
setFocusVisible(true);
if (onFocusVisible) {
onFocusVisible(event);
}
}
if (onFocus) {
onFocus(event);
}
});
const isNonNativeButton = () => {
const button = buttonRef.current;
return component && component !== 'button' && !(button.tagName === 'A' && button.href);
};
/**
* IE11 shim for https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat
*/
const keydownRef = React.useRef(false);
const handleKeyDown = (0, _useEventCallback.default)(event => {
// Check if key is already down to avoid repeats being counted as multiple activations
if (focusRipple && !keydownRef.current && focusVisible && rippleRef.current && event.key === ' ') {
keydownRef.current = true;
rippleRef.current.stop(event, () => {
rippleRef.current.start(event);
});
}
if (event.target === event.currentTarget && isNonNativeButton() && event.key === ' ') {
event.preventDefault();
}
if (onKeyDown) {
onKeyDown(event);
} // Keyboard accessibility for non interactive elements
if (event.target === event.currentTarget && isNonNativeButton() && event.key === 'Enter' && !disabled) {
event.preventDefault();
if (onClick) {
onClick(event);
}
}
});
const handleKeyUp = (0, _useEventCallback.default)(event => {
// calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed
// https://codesandbox.io/s/button-keyup-preventdefault-dn7f0
if (focusRipple && event.key === ' ' && rippleRef.current && focusVisible && !event.defaultPrevented) {
keydownRef.current = false;
rippleRef.current.stop(event, () => {
rippleRef.current.pulsate(event);
});
}
if (onKeyUp) {
onKeyUp(event);
} // Keyboard accessibility for non interactive elements
if (onClick && event.target === event.currentTarget && isNonNativeButton() && event.key === ' ' && !event.defaultPrevented) {
onClick(event);
}
});
let ComponentProp = component;
if (ComponentProp === 'button' && (other.href || other.to)) {
ComponentProp = LinkComponent;
}
const buttonProps = {};
if (ComponentProp === 'button') {
buttonProps.type = type === undefined ? 'button' : type;
buttonProps.disabled = disabled;
} else {
if (!other.href && !other.to) {
buttonProps.role = 'button';
}
if (disabled) {
buttonProps['aria-disabled'] = disabled;
}
}
const handleOwnRef = (0, _useForkRef.default)(focusVisibleRef, buttonRef);
const handleRef = (0, _useForkRef.default)(ref, handleOwnRef);
const [mountedState, setMountedState] = React.useState(false);
React.useEffect(() => {
setMountedState(true);
}, []);
const enableTouchRipple = mountedState && !disableRipple && !disabled;
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line react-hooks/rules-of-hooks
React.useEffect(() => {
if (enableTouchRipple && !rippleRef.current) {
console.error(['Material-UI: The `component` prop provided to ButtonBase is invalid.', 'Please make sure the children prop is rendered in this custom component.'].join('\n'));
}
}, [enableTouchRipple]);
}
const styleProps = (0, _extends2.default)({}, props, {
centerRipple,
component,
disabled,
disableRipple,
disableTouchRipple,
focusRipple,
tabIndex,
focusVisible
});
const classes = useUtilityClasses(styleProps);
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(ButtonBaseRoot, (0, _extends2.default)({
as: ComponentProp,
className: (0, _clsx.default)(classes.root, className),
styleProps: styleProps,
onBlur: handleBlur,
onClick: onClick,
onContextMenu: handleContextMenu,
onFocus: handleFocus,
onKeyDown: handleKeyDown,
onKeyUp: handleKeyUp,
onMouseDown: handleMouseDown,
onMouseLeave: handleMouseLeave,
onMouseUp: handleMouseUp,
onDragLeave: handleDragLeave,
onTouchEnd: handleTouchEnd,
onTouchMove: handleTouchMove,
onTouchStart: handleTouchStart,
ref: handleRef,
tabIndex: disabled ? -1 : tabIndex,
type: type
}, buttonProps, other, {
children: [children, enableTouchRipple ?
/*#__PURE__*/
/* TouchRipple is only needed client-side, x2 boost on the server. */
(0, _jsxRuntime.jsx)(_TouchRipple.default, (0, _extends2.default)({
ref: rippleRef,
center: centerRipple
}, TouchRippleProps)) : null]
}));
});
process.env.NODE_ENV !== "production" ? ButtonBase.propTypes
/* remove-proptypes */
= {
// ----------------------------- Warning --------------------------------
// | These PropTypes are generated from the TypeScript type definitions |
// | To update them edit the d.ts file and run "yarn proptypes" |
// ----------------------------------------------------------------------
/**
* A ref for imperative actions.
* It currently only supports `focusVisible()` action.
*/
action: _utils.refType,
/**
* If `true`, the ripples are centered.
* They won't start at the cursor interaction position.
* @default false
*/
centerRipple: _propTypes.default.bool,
/**
* The content of the component.
*/
children: _propTypes.default.node,
/**
* Override or extend the styles applied to the component.
*/
classes: _propTypes.default.object,
/**
* @ignore
*/
className: _propTypes.default.string,
/**
* The component used for the root node.
* Either a string to use a HTML element or a component.
*/
component: _utils.elementTypeAcceptingRef,
/**
* If `true`, the component is disabled.
* @default false
*/
disabled: _propTypes.default.bool,
/**
* If `true`, the ripple effect is disabled.
*
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
* to highlight the element by applying separate styles with the `.Mui-focusedVisible` class.
* @default false
*/
disableRipple: _propTypes.default.bool,
/**
* If `true`, the touch ripple effect is disabled.
* @default false
*/
disableTouchRipple: _propTypes.default.bool,
/**
* If `true`, the base button will have a keyboard focus ripple.
* @default false
*/
focusRipple: _propTypes.default.bool,
/**
* This prop can help identify which element has keyboard focus.
* The class name will be applied when the element gains the focus through keyboard interaction.
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/master/explainer.md).
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
* if needed.
*/
focusVisibleClassName: _propTypes.default.string,
/**
* @ignore
*/
href: _propTypes.default
/* @typescript-to-proptypes-ignore */
.any,
/**
* The component used to render a link when the `href` prop is provided.
* @default 'a'
*/
LinkComponent: _propTypes.default.elementType,
/**
* @ignore
*/
onBlur: _propTypes.default.func,
/**
* @ignore
*/
onClick: _propTypes.default.func,
/**
* @ignore
*/
onContextMenu: _propTypes.default.func,
/**
* @ignore
*/
onDragLeave: _propTypes.default.func,
/**
* @ignore
*/
onFocus: _propTypes.default.func,
/**
* Callback fired when the component is focused with a keyboard.
* We trigger a `onFocus` callback too.
*/
onFocusVisible: _propTypes.default.func,
/**
* @ignore
*/
onKeyDown: _propTypes.default.func,
/**
* @ignore
*/
onKeyUp: _propTypes.default.func,
/**
* @ignore
*/
onMouseDown: _propTypes.default.func,
/**
* @ignore
*/
onMouseLeave: _propTypes.default.func,
/**
* @ignore
*/
onMouseUp: _propTypes.default.func,
/**
* @ignore
*/
onTouchEnd: _propTypes.default.func,
/**
* @ignore
*/
onTouchMove: _propTypes.default.func,
/**
* @ignore
*/
onTouchStart: _propTypes.default.func,
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx: _propTypes.default.object,
/**
* @default 0
*/
tabIndex: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
/**
* Props applied to the `TouchRipple` element.
*/
TouchRippleProps: _propTypes.default.object,
/**
* @ignore
*/
type: _propTypes.default.oneOfType([_propTypes.default.oneOf(['button', 'reset', 'submit']), _propTypes.default.string])
} : void 0;
var _default = ButtonBase;
exports.default = _default;
|
jQuery(document).ready(function($) {
if ($('select[name=_edd_product_type]').length > 0) {
if ($('select[name=_edd_product_type]').val() == '0') {
$('#edd-software-licensing-custom-expiration').hide();
}
$('select[name=_edd_product_type]').change(function() {
if ($('select[name=_edd_product_type]').val() == '0') {
$('#edd-software-licensing-custom-expiration').hide();
} else {
$('#edd-software-licensing-custom-expiration').show();
}
});
}
});
|
!function t(e,n,r){function o(s,c){if(!n[s]){if(!e[s]){var u="function"==typeof require&&require;if(!c&&u)return u(s,!0);if(i)return i(s,!0);var a=new Error("Cannot find module '"+s+"'");throw a.code="MODULE_NOT_FOUND",a}var f=n[s]={exports:{}};e[s][0].call(f.exports,function(t){var n=e[s][1][t];return o(n?n:t)},f,f.exports,t,e,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t){(function(e){"use strict";if(e._babelPolyfill)throw new Error("only one instance of babel/polyfill is allowed");e._babelPolyfill=!0,t("./es6-shim"),t("regenerator-babel/runtime")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./es6-shim":2,"regenerator-babel/runtime":60}],2:[function(t,e){t("core-js/es6"),e.exports=t("core-js/modules/$").core},{"core-js/es6":3,"core-js/modules/$":16}],3:[function(t,e){t("../modules/es6.symbol"),t("../modules/es6.object.assign"),t("../modules/es6.object.is"),t("../modules/es6.object.set-prototype-of"),t("../modules/es6.object.to-string"),t("../modules/es6.object.statics-accept-primitives"),t("../modules/es6.function.name"),t("../modules/es6.number.constructor"),t("../modules/es6.number.statics"),t("../modules/es6.math"),t("../modules/es6.string.from-code-point"),t("../modules/es6.string.raw"),t("../modules/es6.string.iterator"),t("../modules/es6.string.code-point-at"),t("../modules/es6.string.ends-with"),t("../modules/es6.string.includes"),t("../modules/es6.string.repeat"),t("../modules/es6.string.starts-with"),t("../modules/es6.array.from"),t("../modules/es6.array.of"),t("../modules/es6.array.species"),t("../modules/es6.array.iterator"),t("../modules/es6.array.copy-within"),t("../modules/es6.array.fill"),t("../modules/es6.array.find"),t("../modules/es6.array.find-index"),t("../modules/es6.regexp"),t("../modules/es6.promise"),t("../modules/es6.map"),t("../modules/es6.set"),t("../modules/es6.weak-map"),t("../modules/es6.weak-set"),t("../modules/es6.reflect"),e.exports=t("../modules/$").core},{"../modules/$":16,"../modules/es6.array.copy-within":27,"../modules/es6.array.fill":28,"../modules/es6.array.find":30,"../modules/es6.array.find-index":29,"../modules/es6.array.from":31,"../modules/es6.array.iterator":32,"../modules/es6.array.of":33,"../modules/es6.array.species":34,"../modules/es6.function.name":35,"../modules/es6.map":36,"../modules/es6.math":37,"../modules/es6.number.constructor":38,"../modules/es6.number.statics":39,"../modules/es6.object.assign":40,"../modules/es6.object.is":41,"../modules/es6.object.set-prototype-of":42,"../modules/es6.object.statics-accept-primitives":43,"../modules/es6.object.to-string":44,"../modules/es6.promise":45,"../modules/es6.reflect":46,"../modules/es6.regexp":47,"../modules/es6.set":48,"../modules/es6.string.code-point-at":49,"../modules/es6.string.ends-with":50,"../modules/es6.string.from-code-point":51,"../modules/es6.string.includes":52,"../modules/es6.string.iterator":53,"../modules/es6.string.raw":54,"../modules/es6.string.repeat":55,"../modules/es6.string.starts-with":56,"../modules/es6.symbol":57,"../modules/es6.weak-map":58,"../modules/es6.weak-set":59}],4:[function(t,e){"use strict";var n=t("./$"),r=t("./$.ctx");e.exports=function(t){var e=1==t,o=2==t,i=3==t,s=4==t,c=6==t,u=5==t||c;return function(a){for(var f,l,h=Object(n.assertDefined(this)),d=n.ES5Object(h),p=r(a,arguments[1],3),g=n.toLength(d.length),$=0,v=e?Array(g):o?[]:void 0;g>$;$++)if((u||$ in d)&&(f=d[$],l=p(f,$,h),t))if(e)v[$]=l;else if(l)switch(t){case 3:return!0;case 5:return f;case 6:return $;case 2:v.push(f)}else if(s)return!1;return c?-1:i||s?s:v}}},{"./$":16,"./$.ctx":11}],5:[function(t,e){function n(t,e,n){if(!t)throw TypeError(n?e+n:e)}var r=t("./$");n.def=r.assertDefined,n.fn=function(t){if(!r.isFunction(t))throw TypeError(t+" is not a function!");return t},n.obj=function(t){if(!r.isObject(t))throw TypeError(t+" is not an object!");return t},n.inst=function(t,e,n){if(!(t instanceof e))throw TypeError(n+": use the 'new' operator!");return t},e.exports=n},{"./$":16}],6:[function(t,e){var n=t("./$");e.exports=Object.assign||function(t){for(var e=Object(n.assertDefined(t)),r=arguments.length,o=1;r>o;)for(var i,s=n.ES5Object(arguments[o++]),c=n.getKeys(s),u=c.length,a=0;u>a;)e[i=c[a++]]=s[i];return e}},{"./$":16}],7:[function(t,e){function n(t){return i.call(t).slice(8,-1)}var r=t("./$"),o=t("./$.wks")("toStringTag"),i={}.toString;n.classof=function(t){var e,r;return void 0==t?void 0===t?"Undefined":"Null":"string"==typeof(r=(e=Object(t))[o])?r:n(e)},n.set=function(t,e,n){t&&!r.has(t=n?t:t.prototype,o)&&r.hide(t,o,e)},e.exports=n},{"./$":16,"./$.wks":26}],8:[function(t,e){"use strict";function n(t,e){if(!l(t))return("string"==typeof t?"S":"P")+t;if(p(t))return"F";if(!a(t,g)){if(!e)return"E";h(t,g,++w)}return"O"+t[g]}function r(t,e){var r,o=n(e);if("F"!=o)return t[$][o];for(r=t[y];r;r=r.n)if(r.k==e)return r}var o=t("./$"),i=t("./$.ctx"),s=t("./$.uid").safe,c=t("./$.assert"),u=t("./$.iter"),a=o.has,f=o.set,l=o.isObject,h=o.hide,d=u.step,p=Object.isFrozen||o.core.Object.isFrozen,g=s("id"),$=s("O1"),v=s("last"),y=s("first"),m=s("iter"),b=o.DESC?s("size"):"size",w=0;e.exports={getConstructor:function(t,e,n){function s(r){var i=c.inst(this,s,t);f(i,$,o.create(null)),f(i,b,0),f(i,v,void 0),f(i,y,void 0),void 0!=r&&u.forOf(r,e,i[n],i)}return o.mix(s.prototype,{clear:function(){for(var t=this,e=t[$],n=t[y];n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t[y]=t[v]=void 0,t[b]=0},"delete":function(t){var e=this,n=r(e,t);if(n){var o=n.n,i=n.p;delete e[$][n.i],n.r=!0,i&&(i.n=o),o&&(o.p=i),e[y]==n&&(e[y]=o),e[v]==n&&(e[v]=i),e[b]--}return!!n},forEach:function(t){for(var e,n=i(t,arguments[1],3);e=e?e.n:this[y];)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!r(this,t)}}),o.DESC&&o.setDesc(s.prototype,"size",{get:function(){return c.def(this[b])}}),s},def:function(t,e,o){var i,s,c=r(t,e);return c?c.v=o:(t[v]=c={i:s=n(e,!0),k:e,v:o,p:i=t[v],n:void 0,r:!1},t[y]||(t[y]=c),i&&(i.n=c),t[b]++,"F"!=s&&(t[$][s]=c)),t},getEntry:r,getIterConstructor:function(){return function(t,e){f(this,m,{o:t,k:e})}},next:function(){for(var t=this[m],e=t.k,n=t.l;n&&n.r;)n=n.p;return t.o&&(t.l=n=n?n.n:t.o[y])?"key"==e?d(0,n.k):"value"==e?d(0,n.v):d(0,[n.k,n.v]):(t.o=void 0,d(1))}}},{"./$":16,"./$.assert":5,"./$.ctx":11,"./$.iter":15,"./$.uid":24}],9:[function(t,e){"use strict";function n(t,e){return v.call(t.array,function(t){return t[0]===e})}function r(t){return t[g]||f(t,g,{array:[],get:function(t){var e=n(this,t);return e?e[1]:void 0},has:function(t){return!!n(this,t)},set:function(t,e){var r=n(this,t);r?r[1]=e:this.array.push([t,e])},"delete":function(t){var e=y.call(this.array,function(e){return e[0]===t});return~e&&this.array.splice(e,1),!!~e}})[g]}var o=t("./$"),i=t("./$.uid").safe,s=t("./$.assert"),c=t("./$.iter").forOf,u=o.has,a=o.isObject,f=o.hide,l=Object.isFrozen||o.core.Object.isFrozen,h=0,d=i("id"),p=i("weak"),g=i("leak"),$=t("./$.array-methods"),v=$(5),y=$(6);e.exports={getConstructor:function(t,e,n){function i(r){o.set(s.inst(this,i,t),d,h++),void 0!=r&&c(r,e,this[n],this)}return o.mix(i.prototype,{"delete":function(t){return a(t)?l(t)?r(this)["delete"](t):u(t,p)&&u(t[p],this[d])&&delete t[p][this[d]]:!1},has:function(t){return a(t)?l(t)?r(this).has(t):u(t,p)&&u(t[p],this[d]):!1}}),i},def:function(t,e,n){return l(s.obj(e))?r(t).set(e,n):(u(e,p)||f(e,p,{}),e[p][t[d]]=n),t},leakStore:r,WEAK:p,ID:d}},{"./$":16,"./$.array-methods":4,"./$.assert":5,"./$.iter":15,"./$.uid":24}],10:[function(t,e){"use strict";var n=t("./$"),r=t("./$.def"),o=t("./$.iter"),i=t("./$.assert").inst;e.exports=function(e,s,c,u,a){function f(t,e){var r=p[t];n.FW&&(p[t]=function(t,n){var o=r.call(this,0===t?0:t,n);return e?this:o})}var l=n.g[e],h=l,d=u?"set":"add",p=h&&h.prototype,g={};if(n.isFunction(h)&&(a||!o.BUGGY&&p.forEach&&p.entries)){var $,v=new h,y=v[d](a?{}:-0,1);(o.fail(function(t){new h(t)})||o.DANGER_CLOSING)&&(h=function(t){i(this,h,e);var n=new l;return void 0!=t&&o.forOf(t,u,n[d],n),n},h.prototype=p,n.FW&&(p.constructor=h)),a||v.forEach(function(t,e){$=1/e===-1/0}),$&&(f("delete"),f("has"),u&&f("get")),($||y!==v)&&f(d,!0)}else h=c.getConstructor(e,u,d),n.mix(h.prototype,s);return t("./$.cof").set(h,e),t("./$.species")(h),g[e]=h,r(r.G+r.W+r.F*(h!=l),g),a||o.std(h,e,c.getIterConstructor(),c.next,u?"key+value":"value",!u,!0),h}},{"./$":16,"./$.assert":5,"./$.cof":7,"./$.def":12,"./$.iter":15,"./$.species":21}],11:[function(t,e){var n=t("./$.assert").fn;e.exports=function(t,e,r){if(n(t),~r&&void 0===e)return t;switch(r){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},{"./$.assert":5}],12:[function(t,e){function n(t,e){return function(){return t.apply(e,arguments)}}function r(t,e,u){var a,f,l,h,d=t&r.G,p=d?i:t&r.S?i[e]:(i[e]||{}).prototype,g=d?s:s[e]||(s[e]={});d&&(u=e);for(a in u)f=!(t&r.F)&&p&&a in p,l=(f?p:u)[a],h=t&r.B&&f?n(l,i):t&r.P&&c(l)?n(Function.call,l):l,p&&!f&&(d?p[a]=l:delete p[a]&&o.hide(p,a,l)),g[a]!=l&&o.hide(g,a,h)}var o=t("./$"),i=o.g,s=o.core,c=o.isFunction;i.core=s,r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,e.exports=r},{"./$":16}],13:[function(t,e){e.exports=function(t){return t.FW=!0,t.path=t.g,t}},{}],14:[function(t,e){e.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3]);case 5:return r?t(e[0],e[1],e[2],e[3],e[4]):t.call(n,e[0],e[1],e[2],e[3],e[4])}return t.apply(n,e)}},{}],15:[function(t,e){"use strict";function n(t,e){c.hide(t,h,e),d in[]&&c.hide(t,d,e)}function r(t,e,r,o){var i=t.prototype,s=i[h]||i[d]||o&&i[o]||r;if(c.FW&&n(i,s),s!==r){var u=c.getProto(s.call(new t));a.set(u,e+" Iterator",!0),c.FW&&c.has(i,d)&&n(u,c.that)}return p[e]=s,p[e+" Iterator"]=c.that,s}function o(t){var e=c.g.Symbol,n=t[e&&e.iterator||d],r=n||t[h]||p[a.classof(t)];return l(r.call(t))}function i(t){var e=t["return"];void 0!==e&&l(e.call(t))}function s(t,e,n,r){try{return r?e(l(n)[0],n[1]):e(n)}catch(o){throw i(t),o}}var c=t("./$"),u=t("./$.ctx"),a=t("./$.cof"),f=t("./$.def"),l=t("./$.assert").obj,h=t("./$.wks")("iterator"),d="@@iterator",p={},g={},$="keys"in[]&&!("next"in[].keys());n(g,c.that);var v=!0;!function(){try{var t=[1].keys();t["return"]=function(){v=!1},Array.from(t,function(){throw 2})}catch(e){}}();var y=e.exports={BUGGY:$,DANGER_CLOSING:v,fail:function(t){var e=!0;try{var n=[[{},1]],r=n[h](),o=r.next;r.next=function(){return e=!1,o.call(this)},n[h]=function(){return r},t(n)}catch(i){}return e},Iterators:p,prototype:g,step:function(t,e){return{value:e,done:!!t}},stepCall:s,close:i,is:function(t){var e=Object(t),n=c.g.Symbol,r=n&&n.iterator||d;return r in e||h in e||c.has(p,a.classof(e))},get:o,set:n,create:function(t,e,n,r){t.prototype=c.create(r||y.prototype,{next:c.desc(1,n)}),a.set(t,e+" Iterator")},define:r,std:function(t,e,n,o,i,s,u){function a(t){return function(){return new n(this,t)}}y.create(n,e,o);var l,h,d=a("key+value"),p=a("value"),g=t.prototype;if("value"==i?p=r(t,e,p,"values"):d=r(t,e,d,"entries"),i&&(l={entries:d,keys:s?p:a("key"),values:p},f(f.P+f.F*$,e,l),u))for(h in l)h in g||c.hide(g,h,l[h])},forOf:function(t,e,n,r){for(var c,a=o(t),f=u(n,r,e?2:1);!(c=a.next()).done;)if(s(a,f,c.value,e)===!1)return i(a)}}},{"./$":16,"./$.assert":5,"./$.cof":7,"./$.ctx":11,"./$.def":12,"./$.wks":26}],16:[function(t,e){"use strict";function n(t){return isNaN(t=+t)?0:(t>0?p:d)(t)}function r(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function o(t,e,n){return t[e]=n,t}function i(t){return v?function(e,n,o){return m.setDesc(e,n,r(t,o))}:o}function s(t){return null!==t&&("object"==typeof t||"function"==typeof t)}function c(t){return"function"==typeof t}function u(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}var a="undefined"!=typeof self?self:Function("return this")(),f={},l=Object.defineProperty,h={}.hasOwnProperty,d=Math.ceil,p=Math.floor,g=Math.max,$=Math.min,v=!!function(){try{return 2==l({},"a",{get:function(){return 2}}).a}catch(t){}}(),y=i(1),m=e.exports=t("./$.fw")({g:a,core:f,html:a.document&&document.documentElement,isObject:s,isFunction:c,it:function(t){return t},that:function(){return this},toInteger:n,toLength:function(t){return t>0?$(n(t),9007199254740991):0},toIndex:function(t,e){return t=n(t),0>t?g(t+e,0):$(t,e)},has:function(t,e){return h.call(t,e)},create:Object.create,getProto:Object.getPrototypeOf,DESC:v,desc:r,getDesc:Object.getOwnPropertyDescriptor,setDesc:l,getKeys:Object.keys,getNames:Object.getOwnPropertyNames,getSymbols:Object.getOwnPropertySymbols,assertDefined:u,ES5Object:Object,toObject:function(t){return m.ES5Object(u(t))},hide:y,def:i(0),set:a.Symbol?o:y,mix:function(t,e){for(var n in e)y(t,n,e[n]);return t},each:[].forEach});"undefined"!=typeof __e&&(__e=f),"undefined"!=typeof __g&&(__g=a)},{"./$.fw":13}],17:[function(t,e){var n=t("./$");e.exports=function(t,e){for(var r,o=n.toObject(t),i=n.getKeys(o),s=i.length,c=0;s>c;)if(o[r=i[c++]]===e)return r}},{"./$":16}],18:[function(t,e){var n=t("./$"),r=t("./$.assert").obj;e.exports=function(t){return r(t),n.getSymbols?n.getNames(t).concat(n.getSymbols(t)):n.getNames(t)}},{"./$":16,"./$.assert":5}],19:[function(t,e){"use strict";e.exports=function(t,e,n){var r=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(n?e:this).replace(t,r)}}},{}],20:[function(t,e){var n=t("./$"),r=t("./$.assert");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(e,o){try{o=t("./$.ctx")(Function.call,n.getDesc(Object.prototype,"__proto__").set,2),o({},[])}catch(i){e=!0}return function(t,i){return r.obj(t),r(null===i||n.isObject(i),i,": can't set as prototype!"),e?t.__proto__=i:o(t,i),t}}():void 0)},{"./$":16,"./$.assert":5,"./$.ctx":11}],21:[function(t,e){var n=t("./$");e.exports=function(e){n.DESC&&n.FW&&n.setDesc(e,t("./$.wks")("species"),{configurable:!0,get:n.that})}},{"./$":16,"./$.wks":26}],22:[function(t,e){"use strict";var n=t("./$");e.exports=function(t){return function(e){var r,o,i=String(n.assertDefined(this)),s=n.toInteger(e),c=i.length;return 0>s||s>=c?t?"":void 0:(r=i.charCodeAt(s),55296>r||r>56319||s+1===c||(o=i.charCodeAt(s+1))<56320||o>57343?t?i.charAt(s):r:t?i.slice(s,s+2):(r-55296<<10)+(o-56320)+65536)}}},{"./$":16}],23:[function(t,e){"use strict";function n(){var t=+this;if(c.has(m,t)){var e=m[t];delete m[t],e()}}function r(t){n.call(t.data)}var o,i,s,c=t("./$"),u=t("./$.ctx"),a=t("./$.cof"),f=t("./$.invoke"),l=c.g,h=c.isFunction,d=l.setImmediate,p=l.clearImmediate,g=l.postMessage,$=l.addEventListener,v=l.MessageChannel,y=0,m={},b="onreadystatechange";h(d)&&h(p)||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++y]=function(){f(h(t)?t:Function(t),e)},o(y),y},p=function(t){delete m[t]},"process"==a(l.process)?o=function(t){l.process.nextTick(u(n,t,1))}:$&&h(g)&&!c.g.importScripts?(o=function(t){g(t,"*")},$("message",r,!1)):h(v)?(i=new v,s=i.port2,i.port1.onmessage=r,o=u(s.postMessage,s,1)):o=c.g.document&&b in document.createElement("script")?function(t){c.html.appendChild(document.createElement("script"))[b]=function(){c.html.removeChild(this),n.call(t)}}:function(t){setTimeout(u(n,t,1),0)}),e.exports={set:d,clear:p}},{"./$":16,"./$.cof":7,"./$.ctx":11,"./$.invoke":14}],24:[function(t,e){function n(t){return"Symbol("+t+")_"+(++r+Math.random()).toString(36)}var r=0;n.safe=t("./$").g.Symbol||n,e.exports=n},{"./$":16}],25:[function(t,e){var n=t("./$"),r=t("./$.wks")("unscopables");!n.FW||r in[]||n.hide(Array.prototype,r,{}),e.exports=function(t){n.FW&&([][r][t]=!0)}},{"./$":16,"./$.wks":26}],26:[function(t,e){var n=t("./$").g,r={};e.exports=function(e){return r[e]||(r[e]=n.Symbol&&n.Symbol[e]||t("./$.uid").safe("Symbol."+e))}},{"./$":16,"./$.uid":24}],27:[function(t){"use strict";var e=t("./$"),n=t("./$.def"),r=e.toIndex;n(n.P,"Array",{copyWithin:function(t,n){var o=Object(e.assertDefined(this)),i=e.toLength(o.length),s=r(t,i),c=r(n,i),u=arguments[2],a=void 0===u?i:r(u,i),f=Math.min(a-c,i-s),l=1;for(s>c&&c+f>s&&(l=-1,c=c+f-1,s=s+f-1);f-->0;)c in o?o[s]=o[c]:delete o[s],s+=l,c+=l;return o}}),t("./$.unscope")("copyWithin")},{"./$":16,"./$.def":12,"./$.unscope":25}],28:[function(t){"use strict";var e=t("./$"),n=t("./$.def"),r=e.toIndex;n(n.P,"Array",{fill:function(t){for(var n=Object(e.assertDefined(this)),o=e.toLength(n.length),i=r(arguments[1],o),s=arguments[2],c=void 0===s?o:r(s,o);c>i;)n[i++]=t;return n}}),t("./$.unscope")("fill")},{"./$":16,"./$.def":12,"./$.unscope":25}],29:[function(t){var e=t("./$.def");e(e.P,"Array",{findIndex:t("./$.array-methods")(6)}),t("./$.unscope")("findIndex")},{"./$.array-methods":4,"./$.def":12,"./$.unscope":25}],30:[function(t){var e=t("./$.def");e(e.P,"Array",{find:t("./$.array-methods")(5)}),t("./$.unscope")("find")},{"./$.array-methods":4,"./$.def":12,"./$.unscope":25}],31:[function(t){var e=t("./$"),n=t("./$.ctx"),r=t("./$.def"),o=t("./$.iter"),i=o.stepCall;r(r.S+r.F*o.DANGER_CLOSING,"Array",{from:function(t){var r,s,c,u,a=Object(e.assertDefined(t)),f=arguments[1],l=void 0!==f,h=l?n(f,arguments[2],2):void 0,d=0;if(o.is(a))for(u=o.get(a),s=new("function"==typeof this?this:Array);!(c=u.next()).done;d++)s[d]=l?i(u,h,[c.value,d],!0):c.value;else for(s=new("function"==typeof this?this:Array)(r=e.toLength(a.length));r>d;d++)s[d]=l?h(a[d],d):a[d];return s.length=d,s}})},{"./$":16,"./$.ctx":11,"./$.def":12,"./$.iter":15}],32:[function(t){var e=t("./$"),n=t("./$.unscope"),r=t("./$.uid").safe("iter"),o=t("./$.iter"),i=o.step,s=o.Iterators;o.std(Array,"Array",function(t,n){e.set(this,r,{o:e.toObject(t),i:0,k:n})},function(){var t=this[r],e=t.o,n=t.k,o=t.i++;return!e||o>=e.length?(t.o=void 0,i(1)):"key"==n?i(0,o):"value"==n?i(0,e[o]):i(0,[o,e[o]])},"value"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},{"./$":16,"./$.iter":15,"./$.uid":24,"./$.unscope":25}],33:[function(t){var e=t("./$.def");e(e.S,"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)n[t]=arguments[t++];return n.length=e,n}})},{"./$.def":12}],34:[function(t){t("./$.species")(Array)},{"./$.species":21}],35:[function(t){"use strict";var e=t("./$"),n="name",r=e.setDesc,o=Function.prototype;n in o||e.FW&&e.DESC&&r(o,n,{configurable:!0,get:function(){var t=String(this).match(/^\s*function ([^ (]*)/),o=t?t[1]:"";return e.has(this,n)||r(this,n,e.desc(5,o)),o},set:function(t){e.has(this,n)||r(this,n,e.desc(0,t))}})},{"./$":16}],36:[function(t){"use strict";var e=t("./$.collection-strong");t("./$.collection")("Map",{get:function(t){var n=e.getEntry(this,t);return n&&n.v},set:function(t,n){return e.def(this,0===t?0:t,n)}},e,!0)},{"./$.collection":10,"./$.collection-strong":8}],37:[function(t){function e(t){return isFinite(t=+t)&&0!=t?0>t?-e(-t):a(t+f(t*t+1)):t}function n(t){return 0==(t=+t)?t:t>-1e-6&&1e-6>t?t+t*t/2:u(t)-1}var r=1/0,o=t("./$.def"),i=Math.E,s=Math.pow,c=Math.abs,u=Math.exp,a=Math.log,f=Math.sqrt,l=Math.ceil,h=Math.floor,d=Math.sign||function(t){return 0==(t=+t)||t!=t?t:0>t?-1:1};o(o.S,"Math",{acosh:function(t){return(t=+t)<1?0/0:isFinite(t)?a(t/i+f(t+1)*f(t-1)/i)+1:t},asinh:e,atanh:function(t){return 0==(t=+t)?t:a((1+t)/(1-t))/2},cbrt:function(t){return d(t=+t)*s(c(t),1/3)},clz32:function(t){return(t>>>=0)?32-t.toString(2).length:32},cosh:function(t){return(u(t=+t)+u(-t))/2},expm1:n,fround:function(t){return new Float32Array([t])[0]},hypot:function(){for(var t,e=0,n=arguments.length,o=n,i=Array(n),c=-r;n--;){if(t=i[n]=+arguments[n],t==r||t==-r)return r;t>c&&(c=t)}for(c=t||1;o--;)e+=s(i[o]/c,2);return c*f(e)},imul:function(t,e){var n=65535,r=+t,o=+e,i=n&r,s=n&o;return 0|i*s+((n&r>>>16)*s+i*(n&o>>>16)<<16>>>0)},log1p:function(t){return(t=+t)>-1e-8&&1e-8>t?t-t*t/2:a(1+t)},log10:function(t){return a(t)/Math.LN10},log2:function(t){return a(t)/Math.LN2},sign:d,sinh:function(t){return c(t=+t)<1?(n(t)-n(-t))/2:(u(t-1)-u(-t-1))*(i/2)},tanh:function(t){var e=n(t=+t),o=n(-t);return e==r?1:o==r?-1:(e-o)/(u(t)+u(-t))},trunc:function(t){return(t>0?h:l)(t)}})},{"./$.def":12}],38:[function(t){"use strict";function e(t){var e,n;if(i(e=t.valueOf)&&!o(n=e.call(t)))return n;if(i(e=t.toString)&&!o(n=e.call(t)))return n;throw TypeError("Can't convert object to number")}function n(t){if(o(t)&&(t=e(t)),"string"==typeof t&&t.length>2&&48==t.charCodeAt(0)){var n=!1;switch(t.charCodeAt(1)){case 66:case 98:n=!0;case 79:case 111:return parseInt(t.slice(2),n?2:8)}}return+t}var r=t("./$"),o=r.isObject,i=r.isFunction,s="Number",c=r.g[s],u=c,a=c.prototype;!r.FW||c("0o1")&&c("0b1")||(c=function f(t){return this instanceof f?new u(n(t)):n(t)},r.each.call(r.DESC?r.getNames(u):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),function(t){r.has(u,t)&&!r.has(c,t)&&r.setDesc(c,t,r.getDesc(u,t))}),c.prototype=a,a.constructor=c,r.hide(r.g,s,c))},{"./$":16}],39:[function(t){function e(t){return!n.isObject(t)&&isFinite(t)&&i(t)===t}var n=t("./$"),r=t("./$.def"),o=Math.abs,i=Math.floor,s=9007199254740991;r(r.S,"Number",{EPSILON:Math.pow(2,-52),isFinite:function(t){return"number"==typeof t&&isFinite(t)},isInteger:e,isNaN:function(t){return t!=t},isSafeInteger:function(t){return e(t)&&o(t)<=s},MAX_SAFE_INTEGER:s,MIN_SAFE_INTEGER:-s,parseFloat:parseFloat,parseInt:parseInt})},{"./$":16,"./$.def":12}],40:[function(t){var e=t("./$.def");e(e.S,"Object",{assign:t("./$.assign")})},{"./$.assign":6,"./$.def":12}],41:[function(t){var e=t("./$.def");e(e.S,"Object",{is:function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}})},{"./$.def":12}],42:[function(t){var e=t("./$.def");e(e.S,"Object",{setPrototypeOf:t("./$.set-proto")})},{"./$.def":12,"./$.set-proto":20}],43:[function(t){function e(t,e){var s=(n.core.Object||{})[t]||Object[t],c=0,u={};u[t]=1==e?function(t){return o(t)?s(t):t}:2==e?function(t){return o(t)?s(t):!0}:3==e?function(t){return o(t)?s(t):!1}:4==e?function(t,e){return s(i(t),e)}:5==e?function(t){return s(Object(n.assertDefined(t)))}:function(t){return s(i(t))};try{s("z")}catch(a){c=1}r(r.S+r.F*c,"Object",u)}var n=t("./$"),r=t("./$.def"),o=n.isObject,i=n.toObject;e("freeze",1),e("seal",1),e("preventExtensions",1),e("isFrozen",2),e("isSealed",2),e("isExtensible",3),e("getOwnPropertyDescriptor",4),e("getPrototypeOf",5),e("keys"),e("getOwnPropertyNames")},{"./$":16,"./$.def":12}],44:[function(t){"use strict";var e=t("./$"),n=t("./$.cof"),r={};r[t("./$.wks")("toStringTag")]="z",e.FW&&"z"!=n(r)&&e.hide(Object.prototype,"toString",function(){return"[object "+n.classof(this)+"]"})},{"./$":16,"./$.cof":7,"./$.wks":26}],45:[function(t){"use strict";function e(t){var e=w(t)[a];return void 0!=e?e:t}var n,r=t("./$"),o=t("./$.ctx"),i=t("./$.cof"),s=t("./$.def"),c=t("./$.assert"),u=t("./$.iter"),a=t("./$.wks")("species"),f=t("./$.uid").safe("record"),l=u.forOf,h="Promise",d=r.g,p=d.process,g=p&&p.nextTick||t("./$.task").set,$=d[h],v=$,y=r.isFunction,m=r.isObject,b=c.fn,w=c.obj;y($)&&y($.resolve)&&$.resolve(n=new $(function(){}))==n||function(){function t(t){var e;return m(t)&&(e=t.then),y(e)?e:!1}function e(t){var n,r=t[f],o=r.c,i=0;if(r.h)return!0;for(;o.length>i;)if(n=o[i++],n.fail||e(n.P))return!0}function n(n,r){var o=n.c;(r||o.length)&&g(function(){var s=n.p,c=n.v,u=1==n.s,a=0;if(r&&!e(s))setTimeout(function(){e(s)||("process"==i(p)?p.emit("unhandledRejection",c,s):d.console&&y(console.error)&&console.error("Unhandled promise rejection",c))},1e3);else for(;o.length>a;)!function(e){var r,o,i=u?e.ok:e.fail;try{i?(u||(n.h=!0),r=i===!0?c:i(c),r===e.P?e.rej(TypeError(h+"-chain cycle")):(o=t(r))?o.call(r,e.res,e.rej):e.res(r)):e.rej(c)}catch(s){e.rej(s)}}(o[a++]);o.length=0})}function s(t){var e=this;e.d||(e.d=!0,e=e.r||e,e.v=t,e.s=2,n(e,!0))}function u(e){var r,i,c=this;if(!c.d){c.d=!0,c=c.r||c;try{(r=t(e))?(i={r:c,d:!1},r.call(e,o(u,i,1),o(s,i,1))):(c.v=e,c.s=1,n(c))}catch(a){s.call(i||{r:c,d:!1},a)}}}$=function(t){b(t);var e={p:c.inst(this,$,h),c:[],s:0,d:!1,v:void 0,h:!1};r.hide(this,f,e);try{t(o(u,e,1),o(s,e,1))}catch(n){s.call(e,n)}},r.mix($.prototype,{then:function(t,e){var r=w(w(this).constructor)[a],o={ok:y(t)?t:!0,fail:y(e)?e:!1},i=o.P=new(void 0!=r?r:$)(function(t,e){o.res=b(t),o.rej=b(e)}),s=this[f];return s.c.push(o),s.s&&n(s),i},"catch":function(t){return this.then(void 0,t)}})}(),s(s.G+s.W+s.F*($!=v),{Promise:$}),s(s.S,h,{reject:function(t){return new(e(this))(function(e,n){n(t)})},resolve:function(t){return m(t)&&f in t&&r.getProto(t)===this.prototype?t:new(e(this))(function(e){e(t)})}}),s(s.S+s.F*(u.fail(function(t){$.all(t)["catch"](function(){})})||u.DANGER_CLOSING),h,{all:function(t){var n=e(this),o=[];return new n(function(e,i){l(t,!1,o.push,o);var s=o.length,c=Array(s);s?r.each.call(o,function(t,r){n.resolve(t).then(function(t){c[r]=t,--s||e(c)},i)}):e(c)})},race:function(t){var n=e(this);return new n(function(e,r){l(t,!1,function(t){n.resolve(t).then(e,r)})})}}),i.set($,h),t("./$.species")($)},{"./$":16,"./$.assert":5,"./$.cof":7,"./$.ctx":11,"./$.def":12,"./$.iter":15,"./$.species":21,"./$.task":23,"./$.uid":24,"./$.wks":26}],46:[function(t){function e(t){var e,n=[];for(e in t)n.push(e);i.set(this,a,{o:t,a:n,i:0})}function n(t){return function(e){v(e);try{return t.apply(void 0,arguments),!0}catch(n){return!1}}}function r(t,e){var n,o=arguments.length<3?t:arguments[2],s=d(v(t),e);return s?i.has(s,"value")?s.value:void 0===s.get?void 0:s.get.call(o):h(n=g(t))?r(n,e,o):void 0}function o(t,e,n){var r,s,c=arguments.length<4?t:arguments[3],u=d(v(t),e);if(!u){if(h(s=g(t)))return o(s,e,n,c);u=i.desc(0)}return i.has(u,"value")?u.writable!==!1&&h(c)?(r=d(c,e)||i.desc(0),r.value=n,p(c,e,r),!0):!1:void 0===u.set?!1:(u.set.call(c,n),!0)}var i=t("./$"),s=t("./$.def"),c=t("./$.set-proto"),u=t("./$.iter"),a=t("./$.uid").safe("iter"),f=u.step,l=t("./$.assert"),h=i.isObject,d=i.getDesc,p=i.setDesc,g=i.getProto,$=Function.apply,v=l.obj,y=Object.isExtensible||i.it;u.create(e,"Object",function(){var t,e=this[a],n=e.a;do if(e.i>=n.length)return f(1);while(!((t=n[e.i++])in e.o));return f(0,t)});var m={apply:t("./$.ctx")(Function.call,$,3),construct:function(t,e){var n=l.fn(arguments.length<3?t:arguments[2]).prototype,r=i.create(h(n)?n:Object.prototype),o=$.call(t,r,e);return h(o)?o:r},defineProperty:n(p),deleteProperty:function(t,e){var n=d(v(t),e);return n&&!n.configurable?!1:delete t[e]},enumerate:function(t){return new e(v(t))},get:r,getOwnPropertyDescriptor:function(t,e){return d(v(t),e)},getPrototypeOf:function(t){return g(v(t))},has:function(t,e){return e in t},isExtensible:function(t){return!!y(v(t))},ownKeys:t("./$.own-keys"),preventExtensions:n(Object.preventExtensions||i.it),set:o};c&&(m.setPrototypeOf=function(t,e){return c(v(t),e),!0}),s(s.G,{Reflect:{}}),s(s.S,"Reflect",m)},{"./$":16,"./$.assert":5,"./$.ctx":11,"./$.def":12,"./$.iter":15,"./$.own-keys":18,"./$.set-proto":20,"./$.uid":24}],47:[function(t){var e=t("./$"),n=t("./$.cof"),r=e.g.RegExp,o=r,i=r.prototype;e.FW&&e.DESC&&(function(){try{return"/a/i"==r(/a/g,"i")}catch(t){}}()||(r=function(t,e){return new o("RegExp"==n(t)&&void 0!==e?t.source:t,e)},e.each.call(e.getNames(o),function(t){t in r||e.setDesc(r,t,{configurable:!0,get:function(){return o[t]},set:function(e){o[t]=e}})}),i.constructor=r,r.prototype=i,e.hide(e.g,"RegExp",r)),"g"!=/./g.flags&&e.setDesc(i,"flags",{configurable:!0,get:t("./$.replacer")(/^.*\/(\w*)$/,"$1")})),t("./$.species")(r)},{"./$":16,"./$.cof":7,"./$.replacer":19,"./$.species":21}],48:[function(t){"use strict";var e=t("./$.collection-strong");t("./$.collection")("Set",{add:function(t){return e.def(this,t=0===t?0:t,t)}},e)},{"./$.collection":10,"./$.collection-strong":8}],49:[function(t){var e=t("./$.def");e(e.P,"String",{codePointAt:t("./$.string-at")(!1)})},{"./$.def":12,"./$.string-at":22}],50:[function(t){"use strict";var e=t("./$"),n=t("./$.cof"),r=t("./$.def"),o=e.toLength;r(r.P,"String",{endsWith:function(t){if("RegExp"==n(t))throw TypeError();var r=String(e.assertDefined(this)),i=arguments[1],s=o(r.length),c=void 0===i?s:Math.min(o(i),s);return t+="",r.slice(c-t.length,c)===t}})},{"./$":16,"./$.cof":7,"./$.def":12}],51:[function(t){var e=t("./$.def"),n=t("./$").toIndex,r=String.fromCharCode;e(e.S,"String",{fromCodePoint:function(){for(var t,e=[],o=arguments.length,i=0;o>i;){if(t=+arguments[i++],n(t,1114111)!==t)throw RangeError(t+" is not a valid code point");e.push(65536>t?r(t):r(((t-=65536)>>10)+55296,t%1024+56320))}return e.join("")}})},{"./$":16,"./$.def":12}],52:[function(t){"use strict";var e=t("./$"),n=t("./$.cof"),r=t("./$.def");r(r.P,"String",{includes:function(t){if("RegExp"==n(t))throw TypeError();return!!~String(e.assertDefined(this)).indexOf(t,arguments[1])}})},{"./$":16,"./$.cof":7,"./$.def":12}],53:[function(t){var e=t("./$").set,n=t("./$.string-at")(!0),r=t("./$.uid").safe("iter"),o=t("./$.iter"),i=o.step;o.std(String,"String",function(t){e(this,r,{o:String(t),i:0})},function(){var t,e=this[r],o=e.o,s=e.i;return s>=o.length?i(1):(t=n.call(o,s),e.i+=t.length,i(0,t))})},{"./$":16,"./$.iter":15,"./$.string-at":22,"./$.uid":24}],54:[function(t){var e=t("./$"),n=t("./$.def");n(n.S,"String",{raw:function(t){for(var n=e.toObject(t.raw),r=e.toLength(n.length),o=arguments.length,i=[],s=0;r>s;)i.push(String(n[s++])),o>s&&i.push(String(arguments[s]));return i.join("")}})},{"./$":16,"./$.def":12}],55:[function(t){"use strict";var e=t("./$"),n=t("./$.def");n(n.P,"String",{repeat:function(t){var n=String(e.assertDefined(this)),r="",o=e.toInteger(t);if(0>o||1/0==o)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(r+=n);return r}})},{"./$":16,"./$.def":12}],56:[function(t){"use strict";var e=t("./$"),n=t("./$.cof"),r=t("./$.def");r(r.P,"String",{startsWith:function(t){if("RegExp"==n(t))throw TypeError();var r=String(e.assertDefined(this)),o=e.toLength(Math.min(arguments[1],r.length));return t+="",r.slice(o,o+t.length)===t}})},{"./$":16,"./$.cof":7,"./$.def":12}],57:[function(t){"use strict";function e(t){var e=$[t]=n.set(n.create(l.prototype),p,t);return n.DESC&&d&&n.setDesc(Object.prototype,t,{configurable:!0,set:function(e){u(this,t,e)}}),e}var n=t("./$"),r=t("./$.cof").set,o=t("./$.uid"),i=t("./$.def"),s=t("./$.keyof"),c=n.has,u=n.hide,a=n.getNames,f=n.toObject,l=n.g.Symbol,h=l,d=!1,p=o.safe("tag"),g={},$={};n.isFunction(l)||(l=function(t){if(this instanceof l)throw TypeError("Symbol is not a constructor");return e(o(t))},u(l.prototype,"toString",function(){return this[p]})),i(i.G+i.W,{Symbol:l});var v={"for":function(t){return c(g,t+="")?g[t]:g[t]=l(t)},keyFor:function(t){return s(g,t)},pure:o.safe,set:n.set,useSetter:function(){d=!0},useSimple:function(){d=!1}};n.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(n){var r=t("./$.wks")(n);v[n]=l===h?r:e(r)}),d=!0,i(i.S,"Symbol",v),i(i.S+i.F*(l!=h),"Object",{getOwnPropertyNames:function(t){for(var e,n=a(f(t)),r=[],o=0;n.length>o;)c($,e=n[o++])||r.push(e);return r},getOwnPropertySymbols:function(t){for(var e,n=a(f(t)),r=[],o=0;n.length>o;)c($,e=n[o++])&&r.push($[e]);return r}}),r(l,"Symbol"),r(Math,"Math",!0),r(n.g.JSON,"JSON",!0)},{"./$":16,"./$.cof":7,"./$.def":12,"./$.keyof":17,"./$.uid":24,"./$.wks":26}],58:[function(t){"use strict";var e=t("./$"),n=t("./$.collection-weak"),r=n.leakStore,o=n.ID,i=n.WEAK,s=e.has,c=e.isObject,u=Object.isFrozen||e.core.Object.isFrozen,a={},f=t("./$.collection")("WeakMap",{get:function(t){if(c(t)){if(u(t))return r(this).get(t);if(s(t,i))return t[i][this[o]]}},set:function(t,e){return n.def(this,t,e)}},n,!0,!0);e.FW&&7!=(new f).set((Object.freeze||Object)(a),7).get(a)&&e.each.call(["delete","has","get","set"],function(t){var e=f.prototype[t];
f.prototype[t]=function(n,o){if(c(n)&&u(n)){var i=r(this)[t](n,o);return"set"==t?this:i}return e.call(this,n,o)}})},{"./$":16,"./$.collection":10,"./$.collection-weak":9}],59:[function(t){"use strict";var e=t("./$.collection-weak");t("./$.collection")("WeakSet",{add:function(t){return e.def(this,t,!0)}},e,!1,!0)},{"./$.collection":10,"./$.collection-weak":9}],60:[function(t,e){(function(t){!function(t){"use strict";function n(t,e,n,r){return new s(t,e,n||null,r||[])}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function o(){}function i(){}function s(t,e,n,o){function i(e,o){if(u===m)throw new Error("Generator is already running");if(u===b)return l();for(;;){var i=c.delegate;if(i){var s=r(i.iterator[e],i.iterator,o);if("throw"===s.type){c.delegate=null,e="throw",o=s.arg;continue}e="next",o=h;var a=s.arg;if(!a.done)return u=y,a;c[i.resultName]=a.value,c.next=i.nextLoc,c.delegate=null}if("next"===e){if(u===v&&"undefined"!=typeof o)throw new TypeError("attempt to send "+JSON.stringify(o)+" to newborn generator");u===y?c.sent=o:delete c.sent}else if("throw"===e){if(u===v)throw u=b,o;c.dispatchException(o)&&(e="next",o=h)}else"return"===e&&c.abrupt("return",o);u=m;var s=r(t,n,c);if("normal"===s.type){u=c.done?b:y;var a={value:s.arg,done:c.done};if(s.arg!==w)return a;c.delegate&&"next"===e&&(o=h)}else"throw"===s.type&&(u=b,"next"===e?c.dispatchException(s.arg):o=s.arg)}}var s=e?Object.create(e.prototype):this,c=new a(o),u=v;return s.next=i.bind(s,"next"),s["throw"]=i.bind(s,"throw"),s["return"]=i.bind(s,"return"),s}function c(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function u(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function a(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(c,this),this.reset()}function f(t){if(t){var e=t[p];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function o(){for(;++n<t.length;)if(d.call(t,n))return o.value=t[n],o.done=!1,o;return o.value=h,o.done=!0,o};return r.next=r}}return{next:l}}function l(){return{value:h,done:!0}}var h,d=Object.prototype.hasOwnProperty,p="function"==typeof Symbol&&Symbol.iterator||"@@iterator",g="object"==typeof e,$=t.regeneratorRuntime;if($)return void(g&&(e.exports=$));$=t.regeneratorRuntime=g?e.exports:{},$.wrap=n;var v="suspendedStart",y="suspendedYield",m="executing",b="completed",w={},x=i.prototype=s.prototype;o.prototype=x.constructor=i,i.constructor=o,o.displayName="GeneratorFunction",$.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return e?e===o||"GeneratorFunction"===(e.displayName||e.name):!1},$.mark=function(t){return t.__proto__=i,t.prototype=Object.create(x),t},$.async=function(t,e,o,i){return new Promise(function(s,c){function u(t){var e=r(this,null,t);if("throw"===e.type)return void c(e.arg);var n=e.arg;n.done?s(n.value):Promise.resolve(n.value).then(f,l)}var a=n(t,e,o,i),f=u.bind(a.next),l=u.bind(a["throw"]);f()})},x[p]=function(){return this},x.toString=function(){return"[object Generator]"},$.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},$.values=f,a.prototype={constructor:a,reset:function(){this.prev=0,this.next=0,this.sent=h,this.done=!1,this.delegate=null,this.tryEntries.forEach(u);for(var t,e=0;d.call(this,t="t"+e)||20>e;++e)this[t]=null},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var s=d.call(o,"catchLoc"),c=d.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&d.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?this.next=o.finallyLoc:this.complete(i),w},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&e&&(this.next=e),w},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc)}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;u(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:f(t),resultName:e,nextLoc:n},w}}}("object"==typeof t?t:"object"==typeof window?window:this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
|
cordova.define("cordova-plugin-device-motion.Acceleration", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* 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 CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
var Acceleration = function(x, y, z, timestamp) {
this.x = x;
this.y = y;
this.z = z;
this.timestamp = timestamp || (new Date()).getTime();
};
module.exports = Acceleration;
});
|
import styled from "styled-components";
export const PieceWrapper = styled.div`
display: flex;
justify-content: center;
align-items: center;
width: 75%;
height: 75%;
/* border: 1px solid black; */
border-radius: 100px;
border: ${(props) => (props.pieceData.isKing ? "1px solid white" : "none")};
-webkit-box-shadow: ${(props) =>
props.pieceData.isKing ? "1px 0px 15px 0px #FFFFFF;" : "none"};
box-shadow: ${(props) =>
props.pieceData.isKing ? "1px 0px 15px 0px #FFFFFF;" : "none"};
`;
|
!function(e){function r(r){for(var n,l,a=r[0],i=r[1],c=r[2],p=0,s=[];p<a.length;p++)l=a[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,c||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var i=t[a];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var a=this["webpackJsonpretirement-calculator"]=this["webpackJsonpretirement-calculator"]||[],i=a.push.bind(a);a.push=r,a=a.slice();for(var c=0;c<a.length;c++)r(a[c]);var f=i;t()}([]);
//# sourceMappingURL=runtime-main.77c77ddc.js.map
|
import Vue from 'vue';
import eventHub from '~/filtered_search/event_hub';
import RecentSearchesDropdownContent from '~/filtered_search/components/recent_searches_dropdown_content';
import '~/filtered_search/filtered_search_token_keys';
const createComponent = (propsData) => {
const Component = Vue.extend(RecentSearchesDropdownContent);
return new Component({
el: document.createElement('div'),
propsData,
});
};
// Remove all the newlines and whitespace from the formatted markup
const trimMarkupWhitespace = text => text.replace(/(\n|\s)+/gm, ' ').trim();
describe('RecentSearchesDropdownContent', () => {
const propsDataWithoutItems = {
items: [],
allowedKeys: gl.FilteredSearchTokenKeys.getKeys(),
};
const propsDataWithItems = {
items: [
'foo',
'author:@root label:~foo bar',
],
allowedKeys: gl.FilteredSearchTokenKeys.getKeys(),
};
let vm;
afterEach(() => {
if (vm) {
vm.$destroy();
}
});
describe('with no items', () => {
let el;
beforeEach(() => {
vm = createComponent(propsDataWithoutItems);
el = vm.$el;
});
it('should render empty state', () => {
expect(el.querySelector('.dropdown-info-note')).toBeDefined();
const items = el.querySelectorAll('.filtered-search-history-dropdown-item');
expect(items.length).toEqual(propsDataWithoutItems.items.length);
});
});
describe('with items', () => {
let el;
beforeEach(() => {
vm = createComponent(propsDataWithItems);
el = vm.$el;
});
it('should render clear recent searches button', () => {
expect(el.querySelector('.filtered-search-history-clear-button')).toBeDefined();
});
it('should render recent search items', () => {
const items = el.querySelectorAll('.filtered-search-history-dropdown-item');
expect(items.length).toEqual(propsDataWithItems.items.length);
expect(trimMarkupWhitespace(items[0].querySelector('.filtered-search-history-dropdown-search-token').textContent)).toEqual('foo');
const item1Tokens = items[1].querySelectorAll('.filtered-search-history-dropdown-token');
expect(item1Tokens.length).toEqual(2);
expect(item1Tokens[0].querySelector('.name').textContent).toEqual('author:');
expect(item1Tokens[0].querySelector('.value').textContent).toEqual('@root');
expect(item1Tokens[1].querySelector('.name').textContent).toEqual('label:');
expect(item1Tokens[1].querySelector('.value').textContent).toEqual('~foo');
expect(trimMarkupWhitespace(items[1].querySelector('.filtered-search-history-dropdown-search-token').textContent)).toEqual('bar');
});
});
describe('if isLocalStorageAvailable is `false`', () => {
let el;
beforeEach(() => {
const props = Object.assign({ isLocalStorageAvailable: false }, propsDataWithItems);
vm = createComponent(props);
el = vm.$el;
});
it('should render an info note', () => {
const note = el.querySelector('.dropdown-info-note');
const items = el.querySelectorAll('.filtered-search-history-dropdown-item');
expect(note).toBeDefined();
expect(note.innerText.trim()).toBe('This feature requires local storage to be enabled');
expect(items.length).toEqual(propsDataWithoutItems.items.length);
});
});
describe('computed', () => {
describe('processedItems', () => {
it('with items', () => {
vm = createComponent(propsDataWithItems);
const processedItems = vm.processedItems;
expect(processedItems.length).toEqual(2);
expect(processedItems[0].text).toEqual(propsDataWithItems.items[0]);
expect(processedItems[0].tokens).toEqual([]);
expect(processedItems[0].searchToken).toEqual('foo');
expect(processedItems[1].text).toEqual(propsDataWithItems.items[1]);
expect(processedItems[1].tokens.length).toEqual(2);
expect(processedItems[1].tokens[0].prefix).toEqual('author:');
expect(processedItems[1].tokens[0].suffix).toEqual('@root');
expect(processedItems[1].tokens[1].prefix).toEqual('label:');
expect(processedItems[1].tokens[1].suffix).toEqual('~foo');
expect(processedItems[1].searchToken).toEqual('bar');
});
it('with no items', () => {
vm = createComponent(propsDataWithoutItems);
const processedItems = vm.processedItems;
expect(processedItems.length).toEqual(0);
});
});
describe('hasItems', () => {
it('with items', () => {
vm = createComponent(propsDataWithItems);
const hasItems = vm.hasItems;
expect(hasItems).toEqual(true);
});
it('with no items', () => {
vm = createComponent(propsDataWithoutItems);
const hasItems = vm.hasItems;
expect(hasItems).toEqual(false);
});
});
});
describe('methods', () => {
describe('onItemActivated', () => {
let onRecentSearchesItemSelectedSpy;
beforeEach(() => {
onRecentSearchesItemSelectedSpy = jasmine.createSpy('spy');
eventHub.$on('recentSearchesItemSelected', onRecentSearchesItemSelectedSpy);
vm = createComponent(propsDataWithItems);
});
afterEach(() => {
eventHub.$off('recentSearchesItemSelected', onRecentSearchesItemSelectedSpy);
});
it('emits event', () => {
expect(onRecentSearchesItemSelectedSpy).not.toHaveBeenCalled();
vm.onItemActivated('something');
expect(onRecentSearchesItemSelectedSpy).toHaveBeenCalledWith('something');
});
});
describe('onRequestClearRecentSearches', () => {
let onRequestClearRecentSearchesSpy;
beforeEach(() => {
onRequestClearRecentSearchesSpy = jasmine.createSpy('spy');
eventHub.$on('requestClearRecentSearches', onRequestClearRecentSearchesSpy);
vm = createComponent(propsDataWithItems);
});
afterEach(() => {
eventHub.$off('requestClearRecentSearches', onRequestClearRecentSearchesSpy);
});
it('emits event', () => {
expect(onRequestClearRecentSearchesSpy).not.toHaveBeenCalled();
vm.onRequestClearRecentSearches({ stopPropagation: () => {} });
expect(onRequestClearRecentSearchesSpy).toHaveBeenCalled();
});
});
});
});
|
(function(){var a=tinymce.dom.Event,c=tinymce.grep,d=tinymce.each,b=tinymce.inArray;function e(j,i,h){var g,k;g=j.createTreeWalker(i,NodeFilter.SHOW_ALL,null,false);while(k=g.nextNode()){if(h){if(!h(k)){return false}}if(k.nodeType==3&&k.nodeValue&&/[^\s\u00a0]+/.test(k.nodeValue)){return false}if(k.nodeType==1&&/^(HR|IMG|TABLE)$/.test(k.nodeName)){return false}}return true}tinymce.create("tinymce.plugins.Safari",{init:function(f){var g=this,h;if(!tinymce.isWebKit){return}g.editor=f;g.webKitFontSizes=["x-small","small","medium","large","x-large","xx-large","-webkit-xxx-large"];g.namedFontSizes=["xx-small","x-small","small","medium","large","x-large","xx-large"];f.addCommand("CreateLink",function(k,j){var m=f.selection.getNode(),l=f.dom,i;if(m&&(/^(left|right)$/i.test(l.getStyle(m,"float",1))||/^(left|right)$/i.test(l.getAttrib(m,"align")))){i=l.create("a",{href:j},m.cloneNode());m.parentNode.replaceChild(i,m);f.selection.select(i)}else{f.getDoc().execCommand("CreateLink",false,j)}});f.onKeyUp.add(function(j,o){var l,i,m,p,k;if(o.keyCode==46||o.keyCode==8){i=j.getBody();l=i.innerHTML;k=j.selection;if(i.childNodes.length==1&&!/<(img|hr)/.test(l)&&tinymce.trim(l.replace(/<[^>]+>/g,"")).length==0){j.setContent('<p><br mce_bogus="1" /></p>',{format:"raw"});p=i.firstChild;m=k.getRng();m.setStart(p,0);m.setEnd(p,0);k.setRng(m)}}});f.addCommand("FormatBlock",function(j,i){var l=f.dom,k=l.getParent(f.selection.getNode(),l.isBlock);if(k){l.replace(l.create(i),k,1)}else{f.getDoc().execCommand("FormatBlock",false,i)}});f.addCommand("mceInsertContent",function(j,i){f.getDoc().execCommand("InsertText",false,"mce_marker");f.getBody().innerHTML=f.getBody().innerHTML.replace(/mce_marker/g,f.dom.processHTML(i)+'<span id="_mce_tmp">XX</span>');f.selection.select(f.dom.get("_mce_tmp"));f.getDoc().execCommand("Delete",false," ")});f.onKeyPress.add(function(o,p){var q,v,r,l,j,k,i,u,m,t,s;if(p.keyCode==13){i=o.selection;q=i.getNode();if(p.shiftKey||o.settings.force_br_newlines&&q.nodeName!="LI"){g._insertBR(o);a.cancel(p)}if(v=h.getParent(q,"LI")){r=h.getParent(v,"OL,UL");u=o.getDoc();s=h.create("p");h.add(s,"br",{mce_bogus:"1"});if(e(u,v)){if(k=h.getParent(r.parentNode,"LI,OL,UL")){return}k=h.getParent(r,"p,h1,h2,h3,h4,h5,h6,div")||r;l=u.createRange();l.setStartBefore(k);l.setEndBefore(v);j=u.createRange();j.setStartAfter(v);j.setEndAfter(k);m=l.cloneContents();t=j.cloneContents();if(!e(u,t)){h.insertAfter(t,k)}h.insertAfter(s,k);if(!e(u,m)){h.insertAfter(m,k)}h.remove(k);k=s.firstChild;l=u.createRange();l.setStartBefore(k);l.setEndBefore(k);i.setRng(l);return a.cancel(p)}}}});f.onExecCommand.add(function(i,k){var j,m,n,l;if(k=="InsertUnorderedList"||k=="InsertOrderedList"){j=i.selection;m=i.dom;if(n=m.getParent(j.getNode(),function(o){return/^(H[1-6]|P|ADDRESS|PRE)$/.test(o.nodeName)})){l=j.getBookmark();m.remove(n,1);j.moveToBookmark(l)}}});f.onClick.add(function(i,j){j=j.target;if(j.nodeName=="IMG"){g.selElm=j;i.selection.select(j)}else{g.selElm=null}});f.onInit.add(function(){g._fixWebKitSpans()});f.onSetContent.add(function(){h=f.dom;d(["strong","b","em","u","strike","sub","sup","a"],function(i){d(c(h.select(i)).reverse(),function(l){var k=l.nodeName.toLowerCase(),j;if(k=="a"){if(l.name){h.replace(h.create("img",{mce_name:"a",name:l.name,"class":"mceItemAnchor"}),l)}return}switch(k){case"b":case"strong":if(k=="b"){k="strong"}j="font-weight: bold;";break;case"em":j="font-style: italic;";break;case"u":j="text-decoration: underline;";break;case"sub":j="vertical-align: sub;";break;case"sup":j="vertical-align: super;";break;case"strike":j="text-decoration: line-through;";break}h.replace(h.create("span",{mce_name:k,style:j,"class":"Apple-style-span"}),l,1)})})});f.onPreProcess.add(function(i,j){h=i.dom;d(c(j.node.getElementsByTagName("span")).reverse(),function(m){var k,l;if(j.get){if(h.hasClass(m,"Apple-style-span")){l=m.style.backgroundColor;switch(h.getAttrib(m,"mce_name")){case"font":if(!i.settings.convert_fonts_to_spans){h.setAttrib(m,"style","")}break;case"strong":case"em":case"sub":case"sup":h.setAttrib(m,"style","");break;case"strike":case"u":if(!i.settings.inline_styles){h.setAttrib(m,"style","")}else{h.setAttrib(m,"mce_name","")}break;default:if(!i.settings.inline_styles){h.setAttrib(m,"style","")}}if(l){m.style.backgroundColor=l}}}if(h.hasClass(m,"mceItemRemoved")){h.remove(m,1)}})});f.onPostProcess.add(function(i,j){j.content=j.content.replace(/<br \/><\/(h[1-6]|div|p|address|pre)>/g,"</$1>");j.content=j.content.replace(/ id=\"undefined\"/g,"")})},getInfo:function(){return{longname:"Safari compatibility",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/safari",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_fixWebKitSpans:function(){var g=this,f=g.editor;a.add(f.getDoc(),"DOMNodeInserted",function(h){h=h.target;if(h&&h.nodeType==1){g._fixAppleSpan(h)}})},_fixAppleSpan:function(l){var g=this.editor,m=g.dom,i=this.webKitFontSizes,f=this.namedFontSizes,j=g.settings,h,k;if(m.getAttrib(l,"mce_fixed")){return}if(l.nodeName=="SPAN"&&l.className=="Apple-style-span"){h=l.style;if(!j.convert_fonts_to_spans){if(h.fontSize){m.setAttrib(l,"mce_name","font");m.setAttrib(l,"size",b(i,h.fontSize)+1)}if(h.fontFamily){m.setAttrib(l,"mce_name","font");m.setAttrib(l,"face",h.fontFamily)}if(h.color){m.setAttrib(l,"mce_name","font");m.setAttrib(l,"color",m.toHex(h.color))}if(h.backgroundColor){m.setAttrib(l,"mce_name","font");m.setStyle(l,"background-color",h.backgroundColor)}}else{if(h.fontSize){m.setStyle(l,"fontSize",f[b(i,h.fontSize)])}}if(h.fontWeight=="bold"){m.setAttrib(l,"mce_name","strong")}if(h.fontStyle=="italic"){m.setAttrib(l,"mce_name","em")}if(h.textDecoration=="underline"){m.setAttrib(l,"mce_name","u")}if(h.textDecoration=="line-through"){m.setAttrib(l,"mce_name","strike")}if(h.verticalAlign=="super"){m.setAttrib(l,"mce_name","sup")}if(h.verticalAlign=="sub"){m.setAttrib(l,"mce_name","sub")}m.setAttrib(l,"mce_fixed","1")}},_insertBR:function(f){var j=f.dom,h=f.selection,i=h.getRng(),g;i.insertNode(g=j.create("br"));i.setStartAfter(g);i.setEndAfter(g);h.setRng(i);if(h.getSel().focusNode==g.previousSibling){h.select(j.insertAfter(j.doc.createTextNode("\u00a0"),g));h.collapse(1)}f.getWin().scrollTo(0,j.getPos(h.getRng().startContainer).y)}});tinymce.PluginManager.add("safari",tinymce.plugins.Safari)})();
|
export default from '@react-native-async-storage/async-storage/jest/async-storage-mock'
|
describe("Step", function() {
let Step;
beforeEach(module("BitriseWorkflowEditor"));
beforeEach(inject(function(_Step_) {
Step = _Step_;
}));
let step;
beforeEach(function() {
step = new Step();
});
const fields = [
{ name: "title", "config_name": "title" },
{ name: "summary", "config_name": "summary" },
{ name: "description", "config_name": "description" },
{ name: "assetUrls", "config_name": "asset_urls" },
{ name: "isDeprecated", "config_name": "is_deprecated", readOnly: true }
];
_.each(fields, field => {
describe(`Getter/Setters: ${field.name}`, () => {
const defaultStepConfig = {
[field.config_name]: `Default ${field.name}`
};
it(`should return overridden ${field.name}`, () => {
step.defaultStepConfig = defaultStepConfig;
step.userStepConfig = {
[field.config_name]: `New ${field.name}`
};
expect(step[field.name]()).toBe(`New ${field.name}`);
});
it(`should return default ${field.name} if not overridden`, () => {
step.defaultStepConfig = defaultStepConfig;
expect(step[field.name]()).toBe(`Default ${field.name}`);
step.userStepConfig = {
test: "New description"
};
expect(step[field.name]()).toBe(`Default ${field.name}`);
});
it(`should return undefined if nor default nor user defines ${field.name}`, () => {
step.defaultStepConfig = {
test: "Default description"
};
expect(step[field.name]()).toBeUndefined();
});
if (!field.readOnly) {
it(`should override ${field.name}`, () => {
step.defaultStepConfig = defaultStepConfig;
step.userStepConfig = {};
expect(step[field.name](`New ${field.name}`)).toBe(`New ${field.name}`);
expect(step.userStepConfig[field.config_name]).toBe(`New ${field.name}`);
});
it("should set user step config if not defined yet", () => {
step.defaultStepConfig = defaultStepConfig;
step[field.name](`New ${field.name}`);
expect(step.userStepConfig).not.toBeUndefined();
expect(step.userStepConfig[field.config_name]).toBe(`New ${field.name}`);
});
it("should remove title from user config if new is default", () => {
step.defaultStepConfig = defaultStepConfig;
expect(step[field.name](`New ${field.name}`)).toBe(`New ${field.name}`);
expect(step[field.name](`Default ${field.name}`)).toBe(`Default ${field.name}`);
expect(step.userStepConfig[field.config_name]).toBeUndefined();
expect(step.defaultStepConfig[field.config_name]).toBe(`Default ${field.name}`);
});
}
});
});
describe("displayName", function() {
it("should return title if title is defined and not empty", function() {
const stepTitle = "Test step";
step.defaultStepConfig = {
"title": stepTitle,
};
expect(step.displayName()).toBe(stepTitle);
});
it("should return id if title is not defined but id is defined", function() {
const stepId = "step-1";
step.id = stepId;
expect(step.displayName()).toBe(stepId);
});
it("should return the last cvs segment, no fragment", function() {
const testStepName = "test_step";
step.cvs = `path::${testStepName}`;
expect(step.displayName()).toBe(testStepName);
});
it("should return the last cvs fragment, single fragment", function() {
const testStepName = "test_step";
step.cvs = `path::./${testStepName}`;
expect(step.displayName()).toBe(testStepName);
});
it("should return last cvs fragment, multiple fragments", function() {
const testStepName = "test_step";
step.cvs = `path::./dir/sub/${testStepName}`;
expect(step.displayName()).toBe(testStepName);
});
});
describe("displayCvs", function() {
it("should return cvs itself when not starting with git:: or path::", function() {
step.cvs = "./test/step";
expect(step.displayCvs()).toBe(step.cvs);
})
it("should return cvs without git:: prefix", function() {
const githubUrl = "https://github.com/bitrise-steplib/step-scripts";
step.cvs = `git::${githubUrl}`;
expect(step.displayCvs()).toBe(githubUrl);
})
it("should return cvs without path:: prefix", function() {
const path = "./steps/test_step";
step.cvs = `path::${path}`;
expect(step.displayCvs()).toBe(path);
})
});
describe("displayTooltip", function() {
it("should return displayName and cvs concatenated", function () {
const stepTitle = "Step title";
const path = "./dir/sub/step";
step.defaultStepConfig = {
title: "Step title"
}
step.cvs = `path::${path}`;
expect(step.displayTooltip()).toBe(`${stepTitle}\n${path}`);
})
});
describe("isValidTitle", function() {
it("should return undefined if title is not defined", function() {
expect(Step.isValidTitle(undefined)).toBeUndefined();
});
it("should return false if title is empty", function() {
expect(Step.isValidTitle("")).toBeFalsy();
});
it("should return true", function() {
expect(Step.isValidTitle("ABCdef")).toBeTruthy();
expect(Step.isValidTitle("ABC1def")).toBeTruthy();
expect(Step.isValidTitle("ABC.DEF")).toBeTruthy();
expect(Step.isValidTitle("ABC DEF")).toBeTruthy();
expect(Step.isValidTitle("ABC?DEF")).toBeTruthy();
});
});
describe("iconURL", function() {
it("should return default svg if no user step config is defined", function() {
step.defaultStepConfig = {
"asset_urls": {
"icon.svg": "red-icon.svg"
}
};
expect(step.iconURL()).toBe("red-icon.svg");
});
it("should return default png if no svg and user step config is defined", function() {
step.defaultStepConfig = {
"asset_urls": {
"icon.png": "red-icon.png"
}
};
expect(step.iconURL()).toBe("red-icon.png");
});
it("should return default svg even if default png is also defined", function() {
step.defaultStepConfig = {
"asset_urls": {
"icon.svg": "red-icon.svg",
"icon.png": "blue-icon.png"
}
};
expect(step.iconURL()).toBe("red-icon.svg");
});
it("should return user defined svg if defined", function() {
step.defaultStepConfig = {
"asset_urls": {
"icon.svg": "red-icon.svg"
}
};
step.userStepConfig = {
"asset_urls": {
"icon.svg": "blue-icon.svg"
}
};
expect(step.iconURL()).toBe("blue-icon.svg");
});
it("should return user defined png if defined", function() {
step.defaultStepConfig = {
"asset_urls": {
"icon.svg": "red-icon.svg"
}
};
step.userStepConfig = {
"asset_urls": {
"icon.png": "blue-icon.png"
}
};
expect(step.iconURL()).toBe("blue-icon.png");
});
it("should set icon URL svg if no default nor user step config is defined", function() {
expect(step.iconURL("red-icon.svg")).toBe("red-icon.svg");
expect(step.defaultStepConfig).toBeUndefined();
expect(step.userStepConfig).not.toBeUndefined();
expect(step.userStepConfig.asset_urls).not.toBeUndefined();
expect(step.userStepConfig.asset_urls["icon.svg"]).toBe("red-icon.svg");
expect(step.userStepConfig.asset_urls["icon.png"]).toBeUndefined();
});
it("should change icon URL svg", function() {
step.userStepConfig = {
"asset_urls": {
"icon.svg": "red-icon.svg"
}
};
step.iconURL("blue-icon.svg");
expect(step.userStepConfig.asset_urls["icon.svg"]).toBe("blue-icon.svg");
});
it("should keep png, add svg", function() {
step.userStepConfig = {
"asset_urls": {
"icon.png": "red-icon.png"
}
};
step.iconURL("blue-icon.svg");
expect(step.userStepConfig.asset_urls["icon.svg"]).toBe("blue-icon.svg");
expect(step.userStepConfig.asset_urls["icon.png"]).toBe("red-icon.png");
});
it("should not change anything if icon type is not supported", function() {
step.userStepConfig = {
"asset_urls": {
"icon.svg": "red-icon.svg"
}
};
step.iconURL("blue-icon.bmp");
expect(step.userStepConfig.asset_urls["icon.svg"]).toBe("red-icon.svg");
expect(step.userStepConfig.asset_urls["icon.bmp"]).toBeUndefined();
});
it("should clear svg if is set to default", function() {
step.defaultStepConfig = {
"asset_urls": {
"icon.svg": "red-icon.svg"
}
};
step.userStepConfig = {
"asset_urls": {
"icon.svg": "blue-icon.svg",
"icon.png": "blue-icon.png"
}
};
step.iconURL("red-icon.svg");
expect(step.userStepConfig.asset_urls["icon.svg"]).toBeUndefined();
});
it("should clear asset URLs if all icon URLs are set to default", function() {
step.defaultStepConfig = {
"asset_urls": {
"icon.svg": "red-icon.svg"
}
};
step.userStepConfig = {
title: "red-title",
"asset_urls": {
"icon.svg": "blue-icon.svg"
}
};
step.iconURL("red-icon.svg");
expect(step.userStepConfig.asset_urls).toBeUndefined();
});
it("should clear user step config if all is set to default", function() {
step.defaultStepConfig = {
"asset_urls": {
"icon.svg": "red-icon.svg"
}
};
step.userStepConfig = {
"asset_urls": {
"icon.svg": "blue-icon.svg"
}
};
step.iconURL("red-icon.svg");
expect(step.userStepConfig).toEqual({});
});
});
describe("verified", function() {
it("should not be verified if there is no information exists", function() {
expect(step.isVerified()).toBeFalsy();
});
});
describe("requestedVersion", function() {
it("should return null if cvs requests version to always latest", function() {
const step = new Step("red-step");
expect(step.requestedVersion()).toBeNull();
step.version = "1.1";
expect(step.requestedVersion()).toBeNull();
});
it("should return cvs requested version of step", function() {
const step = new Step("red-step@1.0");
step.version = "1.0";
expect(step.requestedVersion()).toBe("1.0");
});
});
describe("cvsFromWrappedStepConfig", function() {
it("should return CVS", function() {
expect(
Step.cvsFromWrappedStepConfig({
"red-source::green-step@1.0": {
title: "Green step"
}
})
).toBe("red-source::green-step@1.0");
});
});
});
describe("normalizedStepIconURL", function() {
let $filter;
let Step;
beforeEach(module("BitriseWorkflowEditor"));
beforeEach(inject(function(_$filter_, _Step_) {
$filter = _$filter_;
Step = _Step_;
}));
it("should return undefined if step is not defined", function() {
expect($filter("normalizedStepIconURL")()).toBeUndefined();
});
it("should return default icon URL if step icon is not defined", function() {
const step = new Step();
expect($filter("normalizedStepIconURL")(step)).not.toBeUndefined();
});
it("should return set icon svg", function() {
const step = new Step();
step.iconURL("icon-url.svg");
expect($filter("normalizedStepIconURL")(step)).toBe("icon-url.svg");
});
it("should return set icon png", function() {
const step = new Step();
step.iconURL("icon-url.png");
expect($filter("normalizedStepIconURL")(step)).toBe("icon-url.png");
});
});
describe("stepSourceCSSClass", function() {
let $filter;
let Step;
beforeEach(module("BitriseWorkflowEditor"));
beforeEach(inject(function(_$filter_, _Step_) {
$filter = _$filter_;
Step = _Step_;
}));
it("should return undefined if step is not defined", function() {
expect($filter("stepSourceCSSClass")()).toBeUndefined();
});
it("should return a provider css class if source URL matches one", function() {
const step = new Step();
step.sourceURL("https://www.github.com/red-step");
expect($filter("stepSourceCSSClass")(step)).toBe("github");
step.sourceURL("https://bitbucket.com/red-step");
expect($filter("stepSourceCSSClass")(step)).toBe("bitbucket");
step.sourceURL("gitlab.com/red-step");
expect($filter("stepSourceCSSClass")(step)).toBe("gitlab");
});
it("should return unknown if source URL doesn't match any providers", function() {
const step = new Step();
step.sourceURL("https://www.red.com/red-step");
expect($filter("stepSourceCSSClass")(step)).toBe("unknown");
});
});
|
var async = require("async");
var ascoltatori = require("ascoltatori");
module.exports = function(moscaSettings, createConnection) {
var instance;
var secondInstance;
var settings;
beforeEach(function(done) {
settings = moscaSettings();
settings.publishNewClient = false;
instance = new mosca.Server(settings, done);
this.instance = instance;
this.settings = settings;
secondInstance = null;
});
afterEach(function(done) {
var instances = [this.instance];
if (secondInstance) {
instances.push(secondInstance);
}
async.each(instances, function(instance, cb) {
instance.close(cb);
}, function() {
setImmediate(done);
});
});
function buildClient(done, callback) {
var client = createConnection(settings.port, settings.host);
client.once('error', done);
client.stream.once('close', function() {
setImmediate(done);
});
client.on("connected", function() {
callback(client);
});
}
function buildAndConnect(done, opts, callback) {
if (typeof opts === "function") {
callback = opts;
opts = buildOpts();
}
buildClient(done, function(client) {
client.opts = opts;
client.connect(opts);
client.on('connack', function(packet) {
callback(client);
});
});
}
it("should publish connected client to '$SYS/{broker-id}/new/clients'", function(done) {
var connectedClient = null,
publishedClientId = null;
settings = moscaSettings();
settings.publishNewClient = true;
function verify() {
if (connectedClient && publishedClientId) {
expect(publishedClientId).to.be.equal(connectedClient.opts.clientId);
connectedClient.disconnect();
}
}
secondInstance = new mosca.Server(settings, function(err, server) {
server.on("published", function(packet, clientId) {
expect(packet.topic).to.be.equal("$SYS/" + secondInstance.id + "/new/clients");
publishedClientId = packet.payload.toString();
verify();
});
buildAndConnect(done, function(client) {
connectedClient = client;
verify();
});
});
});
it("should publish each subscribe to '$SYS/{broker-id}/new/subscribes'", function(done) {
var d = donner(2, done),
connectedClient = null,
publishedClientId = null;
function verify() {
if (connectedClient && publishedClientId) {
expect(publishedClientId).to.be.equal(connectedClient.opts.clientId);
d();
}
}
instance.on("published", function(packet) {
expect(packet.topic).to.be.equal("$SYS/" + instance.id + "/new/subscribes");
publishedClientId = packet.payload.toString();
verify();
});
buildAndConnect(d, function(client) {
var messageId = Math.floor(65535 * Math.random());
var subscriptions = [{
topic: "hello",
qos: 1
}
];
connectedClient = client;
client.on("suback", function(packet) {
client.disconnect();
});
client.subscribe({
subscriptions: subscriptions,
messageId: messageId
});
});
});
describe("multi mosca servers", function() {
var serverOne = null,
serverTwo = null,
clientOpts = buildOpts();
afterEach(function(done) {
var instances = [];
instances.push(serverOne);
instances.push(serverTwo);
async.each(instances, function(instance, cb) {
if (instance) {
instance.close(cb);
} else {
cb();
}
}, function() {
setImmediate(done);
});
});
it("should disconnect client connected to another broker", function(done) {
var settingsOne = moscaSettings(),
settingsTwo = moscaSettings();
if (!settings.backend || !settings.backend.type) {
// only need to validate cases with backend
return done();
}
clientOpts.clientId = '123456';
clientOpts.keepalive = 0;
settingsOne.publishNewClient = settingsTwo.publishNewClient = true;
settingsOne.backend = settingsTwo.backend = settings.backend;
async.series([
function(cb) {
serverOne = new mosca.Server(settingsOne, function(err, server) {
serverOne.on('clientDisconnected', function(serverClient) {
expect(serverClient).not.to.be.equal(undefined);
done();
});
cb();
});
},
function(cb) {
serverTwo = new mosca.Server(settingsTwo, function(err, server) {
cb();
});
},
function(cb) {
var clientOne = createConnection(settingsOne.port, settingsOne.host);
clientOne.connect(clientOpts);
clientOne.on("connected", function() {
cb();
});
},
function(cb) {
var clientTwo = createConnection(settingsTwo.port, settingsTwo.host);
clientTwo.connect(clientOpts);
clientTwo.on("connected", function() {
cb();
});
}
]);
});
});
it("should pass itself in the callback", function(done) {
secondInstance = new mosca.Server(moscaSettings(), function(err, server) {
expect(server === secondInstance).to.be.true;
done();
});
});
it("should allow to be called like a function", function(done) {
var func = mosca.Server;
secondInstance = func(moscaSettings(), function(err, server) {
expect(server === secondInstance).to.be.true;
done();
});
});
it("should support connecting and disconnecting", function(done) {
buildClient(done, function(client) {
client.connect(buildOpts());
client.on('connack', function(packet) {
client.disconnect();
});
});
});
it("should support connecting and disconnecting with a zero keepalive", function(done) {
var client = createConnection(settings.port, settings.host);
var disconnect = false;
client.once('error', done);
client.stream.once('close', function() {
expect(disconnect).to.be.true;
done();
});
client.on("connected", function() {
var opts = buildOpts();
opts.keepalive = 0;
client.connect(opts);
});
client.on("connack", function() {
setTimeout(function() {
disconnect = true;
client.disconnect();
}, 5);
});
});
it("should send a connack packet with returnCode 0", function(done) {
buildClient(done, function(client) {
client.connect(buildOpts());
client.on('connack', function(packet) {
client.disconnect();
expect(packet.returnCode).to.eql(0);
});
});
});
it("should send a connack packet with returnCode 0 if the clientId is 65535 chars", function(done) {
buildClient(done, function(client) {
var opts = buildOpts(), clientId = [];
for(var i=0; i < 65535; i++) {
clientId.push("i");
}
opts.clientId = clientId.join("");
client.connect(opts);
client.on('connack', function(packet) {
client.disconnect();
expect(packet.returnCode).to.eql(0);
});
});
});
it("should send a connack packet with returnCode 0 if the clientId is 1 char", function(done) {
buildClient(done, function(client) {
var opts = buildOpts();
opts.clientId = "i";
client.connect(opts);
client.on('connack', function(packet) {
client.disconnect();
expect(packet.returnCode).to.eql(0);
});
});
});
it("should close the first client if a second client with the same clientId connects", function(done) {
var d = donner(2, done);
var opts = buildOpts(), clientId = "123456789";
opts.clientId = clientId;
async.waterfall([
function(cb) {
buildAndConnect(d, opts, function(client1) {
cb(null, client1);
});
}, function(client1, cb) {
buildAndConnect(d, opts, function(client2) {
// no need to check if client1 is destroyed
// if not, this test will timeout
client2.disconnect();
});
}
]);
});
it("should send a pingresp when it receives a pingreq", function(done) {
buildAndConnect(done, function(client) {
client.on("pingresp", function() {
client.disconnect();
});
client.pingreq();
});
});
it("should support subscribing", function(done) {
buildAndConnect(done, function(client) {
var messageId = Math.floor(65535 * Math.random());
var subscriptions = [{
topic: "hello",
qos: 0
}
];
client.on("suback", function(packet) {
expect(packet).to.have.property("messageId", messageId);
client.disconnect();
});
client.subscribe({
subscriptions: subscriptions,
messageId: messageId
});
});
});
it("should emit an event for each subscribe", function(done) {
var d = donner(2, done);
buildAndConnect(d, function(client) {
var messageId = Math.floor(65535 * Math.random());
var subscriptions = [{
topic: "hello",
qos: 1
}
];
client.on("suback", function(packet) {
client.disconnect();
});
client.subscribe({
subscriptions: subscriptions,
messageId: messageId
});
});
instance.on("subscribed", function(topic, client) {
expect(topic).to.eql("hello");
expect(client).to.exist;
d();
});
});
it("should support subscribing to multiple topics", function(done) {
buildAndConnect(done, function(client) {
var messageId = Math.floor(65535 * Math.random());
var subscriptions = [{
topic: "hello",
qos: 1
}, {
topic: "hello2",
qos: 0
}
];
client.on("suback", function(packet) {
client.disconnect();
expect(packet.granted).to.be.deep.equal([1, 0]);
});
client.subscribe({
subscriptions: subscriptions,
messageId: messageId
});
});
});
it("should support subscribing and publishing", function(done) {
var d = donner(2, done);
buildAndConnect(d, function(client1) {
var messageId = Math.floor(65535 * Math.random());
var subscriptions = [{
topic: "hello",
qos: 0
}
];
client1.on("publish", function(packet) {
expect(packet.topic).to.be.equal("hello");
expect(packet.payload.toString()).to.be.equal("some data");
client1.disconnect();
});
client1.on("suback", function() {
buildAndConnect(d, function(client2) {
client2.publish({
topic: "hello",
payload: "some data",
messageId: messageId
});
client2.disconnect();
});
});
client1.subscribe({
subscriptions: subscriptions,
messageId: messageId
});
});
});
it("should support publishing big messages", function(done) {
var d = donner(2, done);
var bigPayload = new Buffer(5 * 1024);
bigPayload.fill("42");
buildAndConnect(d, function(client1) {
var messageId = Math.floor(65535 * Math.random());
var subscriptions = [{
topic: "hello",
qos: 0
}
];
client1.on("publish", function(packet) {
expect(packet.topic).to.be.equal("hello");
expect(packet.payload.toString().length).to.be.equal(bigPayload.length);
client1.disconnect();
});
client1.on("suback", function() {
buildAndConnect(d, function(client2) {
client2.publish({
topic: "hello",
payload: bigPayload,
messageId: messageId
});
client2.disconnect();
});
});
client1.subscribe({
subscriptions: subscriptions,
messageId: messageId
});
});
});
it("should support unsubscribing", function(done) {
buildAndConnect(done, function(client) {
var messageId = Math.floor(65535 * Math.random());
var subscriptions = [{
topic: "hello",
qos: 1
}
];
client.on("unsuback", function(packet) {
expect(packet).to.have.property("messageId", messageId);
client.disconnect();
});
client.on("suback", function(packet) {
client.unsubscribe({
unsubscriptions: ["hello"],
messageId: messageId
});
});
client.subscribe({
subscriptions: subscriptions,
messageId: messageId
});
});
});
it("should unsubscribe for real", function(done) {
buildAndConnect(done, function(client) {
client.on("publish", function(packet) {
client.disconnect();
throw new Error("a message could not have been published");
});
client.on("unsuback", function(packet) {
client.publish({
topic: "hello",
payload: "data"
});
client.disconnect();
});
client.on("suback", function(packet) {
client.unsubscribe({
unsubscriptions: ["hello"],
messageId: messageId
});
});
var messageId = Math.floor(65535 * Math.random());
var subscriptions = [{
topic: "hello",
qos: 1
}
];
client.subscribe({
subscriptions: subscriptions,
messageId: messageId
});
});
});
it("should unsubscribe from topics with multiple wildcards", function(done) {
buildAndConnect(done, function(client) {
client.on("publish", function(packet) {
client.disconnect();
throw new Error("a message could not have been published");
});
client.on("unsuback", function(packet) {
client.publish({
topic: "hello/foo/there/bar",
payload: "data"
});
client.disconnect();
});
client.on("suback", function(packet) {
client.unsubscribe({
unsubscriptions: ["hello/#/there/#"],
messageId: messageId
});
});
var messageId = Math.floor(65535 * Math.random());
var subscriptions = [{
topic: "hello/#/there/#",
qos: 1
}
];
client.subscribe({
subscriptions: subscriptions,
messageId: messageId
});
});
});
it("should emit an event for each unsubscribe", function(done) {
var d = donner(2, done);
buildAndConnect(d, function(client) {
var messageId = Math.floor(65535 * Math.random());
var subscriptions = [{
topic: "hello",
qos: 1
}
];
client.on("unsuback", function(packet) {
client.disconnect();
});
client.on("suback", function(packet) {
client.unsubscribe({
unsubscriptions: ["hello"],
messageId: messageId
});
});
client.subscribe({
subscriptions: subscriptions,
messageId: messageId
});
});
instance.on("unsubscribed", function(topic, client) {
expect(topic).to.eql("hello");
expect(client).to.exist;
d();
});
});
it("should emit an event for unsubscribe without subscribe", function(done) {
var d = donner(2, done);
buildAndConnect(d, function(client) {
var messageId = Math.floor(65535 * Math.random());
var subscriptions = [{
topic: "hello",
qos: 1
}
];
client.on("unsuback", function(packet) {
client.disconnect();
});
client.unsubscribe({
unsubscriptions: ["hello"],
messageId: messageId
});
});
instance.on("unsubscribed", function(topic, client) {
expect(topic).to.eql("hello");
expect(client).to.exist;
d();
});
});
it("should emit an event on every newly published packet", function(done) {
buildAndConnect(done, function(client) {
var clientId = client.opts.clientId;
instance.on("published", function(packet, serverClient) {
expect(packet.topic).to.be.equal("hello");
expect(packet.payload.toString().toString()).to.be.equal("some data");
expect(serverClient.id).to.be.equal(clientId);
client.disconnect();
});
client.publish({
topic: "hello",
payload: "some data"
});
});
});
it("should call onPublished on every newly published packet", function(done) {
var onPublishedCalled = false;
var clientId;
instance.published = function(packet, serverClient, callback) {
onPublishedCalled = true;
expect(packet.topic).to.be.equal("hello");
expect(packet.payload.toString().toString()).to.be.equal("some data");
expect(serverClient.id).to.be.equal(clientId);
callback();
};
buildAndConnect(done, function(client) {
clientId = client.opts.clientId;
client.publish({
messageId: 42,
topic: "hello",
payload: "some data",
qos: 1
});
client.on("puback", function() {
expect(onPublishedCalled).to.eql(true);
client.disconnect();
});
});
});
it("should emit an event when a new client is connected", function(done) {
buildClient(done, function(client) {
instance.on("clientConnected", function(serverClient) {
expect(serverClient).not.to.be.equal(undefined);
client.stream.end();
});
client.connect(buildOpts());
});
});
it("should emit an event when a client is disconnected", function(done) {
var client = createConnection(settings.port, settings.host);
instance.on('clientDisconnected', function(serverClient) {
expect(serverClient).not.to.be.equal(undefined);
done();
});
client.on('error', done);
client.on('connack', function() {
client.disconnect();
});
client.connect(buildOpts());
});
it("should emit only once clientDisconnected event per client", function(done) {
var client = createConnection(settings.port, settings.host);
instance.on('clientDisconnected', function(serverClient) {
done();
});
client.on('error', done);
client.on('connack', function() {
client.disconnect();
client.disconnect();
async.setImmediate(function() {
client.stream.end();
});
});
client.connect(buildOpts());
});
it("should emit an event when a client is disconnected without a disconnect", function(done) {
var client = createConnection(settings.port, settings.host);
instance.on('clientDisconnected', function(serverClient) {
expect(serverClient).not.to.be.equal(undefined);
done();
});
client.on('error', done);
client.on('connack', function() {
client.stream.end();
});
client.connect(buildOpts());
});
it("should emit a ready and closed events", function(done) {
var server = new mosca.Server(moscaSettings());
async.series([
function(cb) {
server.on("ready", cb);
},
function(cb) {
server.on("closed", cb);
server.close();
}
], done);
});
it("should support subscribing to # wildcard", function(done) {
var d = donner(2, done);
buildAndConnect(d, function(client1) {
client1.on("publish", function(packet) {
expect(packet.topic).to.be.equal("hello/world");
expect(packet.payload.toString()).to.be.equal("some data");
client1.disconnect();
});
client1.on("suback", function() {
buildAndConnect(d, function(client2) {
client2.publish({
topic: "hello/world",
payload: "some data"
});
client2.disconnect();
});
});
var subscriptions = [{
topic: "hello/#",
qos: 0
}
];
client1.subscribe({
subscriptions: subscriptions,
messageId: 42
});
});
});
it("should support subscribing to + wildcard", function(done) {
var d = donner(2, done);
buildAndConnect(d, function(client1) {
client1.on("publish", function(packet) {
expect(packet.topic).to.be.equal("hello/world");
expect(packet.payload.toString()).to.be.equal("some data");
client1.disconnect();
});
client1.on("suback", function() {
buildAndConnect(d, function(client2) {
client2.publish({
topic: "hello/world",
payload: "some data"
});
client2.disconnect();
});
});
var subscriptions = [{
topic: "hello/+",
qos: 0
}
];
client1.subscribe({
subscriptions: subscriptions,
messageId: 42
});
});
});
it("should support subscribing to topics with multiple wildcards", function(done) {
var d = donner(2, done);
buildAndConnect(d, function(client1) {
client1.on("publish", function(packet) {
expect(packet.topic).to.be.equal("hello/foo/world/bar");
expect(packet.payload.toString()).to.be.equal("some data");
client1.disconnect();
});
client1.on("suback", function() {
buildAndConnect(d, function(client2) {
client2.publish({
topic: "hello/foo/world/bar",
payload: "some data"
});
client2.disconnect();
});
});
var subscriptions = [{
topic: "hello/#/world/#",
qos: 0
}
];
client1.subscribe({
subscriptions: subscriptions,
messageId: 42
});
});
});
it("should support unsubscribing a single client", function(done) {
var d = donner(3, done);
async.waterfall([
function(cb) {
buildAndConnect(d, function(client1) {
cb(null, client1);
});
},
function(client1, cb) {
var called = false;
client1.on("publish", function(packet) {
// we are expecting this
client1.disconnect();
});
var subscriptions = [{
topic: "hello/#",
qos: 0
}
];
client1.subscribe({
subscriptions: subscriptions,
messageId: 42
});
client1.on("suback", function() {
cb(null, client1);
});
},
function(client1, cb) {
buildAndConnect(d, function(client3) {
cb(null, client1, client3);
});
},
function(client1, client3, cb) {
var subscriptions = [{
topic: "hello/#",
qos: 0
}
];
client3.subscribe({
subscriptions: subscriptions,
messageId: 42
});
client3.on("suback", function() {
client3.disconnect();
cb(null);
});
},
function(cb) {
buildAndConnect(d, function(client2) {
cb(null, client2);
});
},
function(client2, cb) {
client2.publish({
topic: "hello/world",
payload: "some data"
});
client2.disconnect();
}
]);
});
it("should support send a puback when publishing QoS 1 messages", function(done) {
buildAndConnect(done, function(client) {
var messageId = Math.floor(65535 * Math.random());
client.on("puback", function(packet) {
expect(packet).to.have.property("messageId", messageId);
client.disconnect();
});
client.publish({
topic: "hello",
qos: 1,
messageId: messageId
});
});
});
it("should support subscribing to QoS 1", function(done) {
buildAndConnect(done, function(client) {
var messageId = Math.floor(65535 * Math.random());
var subscriptions = [{
topic: "hello",
qos: 1
}
];
client.on("suback", function(packet) {
expect(packet.granted).to.be.deep.equal([1]);
client.disconnect();
});
client.subscribe({
subscriptions: subscriptions,
messageId: messageId
});
});
});
it("should receive all messages at QoS 0 if a subscription is done with QoS 0", function(done) {
buildAndConnect(done, function(client) {
client.once("publish", function(packet) {
expect(packet.qos).to.be.equal(0);
client.disconnect();
});
client.on("suback", function(packet) {
client.publish({
topic: "hello",
qos: 1,
messageId: 24
});
});
var subscriptions = [{
topic: "hello",
qos: 0
}
];
client.subscribe({
subscriptions: subscriptions,
messageId: 42
});
});
});
function maxInflightMessageTest(max, done) {
buildAndConnect(done, function (client) {
var counter = max + 1;
function doPublish() {
if (counter-- === 0) {
return;
}
client.publish({
topic: "hello/foo",
qos: 1,
messageId: counter
});
setImmediate(doPublish);
}
// we are not replaying with any pubacks
client.on("suback", function(packet) {
doPublish();
});
var subscriptions = [{
topic: "hello/#",
qos: 1
}];
client.subscribe({
subscriptions: subscriptions,
messageId: 42
});
});
}
it("should disconnect a client if it has more thant 1024 inflight messages", function (done) {
maxInflightMessageTest(1024, done);
});
it("should have the max inflight message limit configurable", function (done) {
var that = this;
instance.close(function() {
settings.maxInflightMessages = 512;
that.instance = new mosca.Server(settings, function() {
maxInflightMessageTest(512, done);
});
});
});
it("QoS 1 wildcard subscriptions should receive QoS 1 messages at QoS 1", function (done) {
buildAndConnect(done, function (client) {
client.on("publish", function(packet) {
expect(packet.qos).to.be.equal(1);
client.disconnect();
});
client.on("suback", function(packet) {
client.publish({
topic: "hello/foo",
qos: 1,
messageId: 24
});
});
var subscriptions = [{
topic: "hello/#",
qos: 1
}];
client.subscribe({
subscriptions: subscriptions,
messageId: 42
});
});
});
it("should support will message", function(done) {
async.waterfall([
function(cb) {
var client = createConnection(settings.port, settings.host);
client.on("connected", function() {
var opts = buildOpts();
opts.clientId = 'client1';
opts.will = {
topic: "hello/died",
payload: "client1 died",
qos: 1
};
client.connect(opts);
client.on('connack', function(packet) {
cb(null, client);
});
});
},
function(client1, cb) {
var subscriptions = [{
topic: "hello/died",
qos: 0
}
];
client1.subscribe({
subscriptions: subscriptions,
messageId: 42
});
client1.on("suback", function() {
cb(null, client1);
});
},
function(client1, cb) {
buildAndConnect(done, function(client3) {
cb(null, client1, client3);
});
},
function(client1, client3, cb) {
var subscriptions = [{
topic: "hello/died",
qos: 0
}
];
client3.subscribe({
subscriptions: subscriptions,
messageId: 42
});
client3.on("suback", function() {
client1.stream.end();
cb(null);
});
client3.on("publish", function(packet) {
expect(packet.topic).to.be.eql("hello/died");
expect(packet.payload.toString()).to.be.eql("client1 died");
client3.disconnect();
});
}
]);
});
it("should support authentication (success)", function(done) {
instance.authenticate = function(client, username, password, callback) {
expect(username.toString()).to.be.eql("matteo");
expect(password.toString()).to.be.eql("collina");
callback(null, true);
};
buildClient(done, function(client) {
var options = buildOpts();
options.username = "matteo";
options.password = "collina";
client.connect(options);
client.on('connack', function(packet) {
expect(packet.returnCode).to.eql(0);
client.disconnect();
});
});
});
it("should support authentication (failure)", function(done) {
instance.authenticate = function(client, username, password, callback) {
expect(username.toString()).to.be.eql("matteo");
expect(password.toString()).to.be.eql("collina");
callback(null, false);
};
buildClient(done, function(client) {
var options = buildOpts();
options.username = "matteo";
options.password = "collina";
client.connect(options);
client.on('connack', function(packet) {
expect(packet.returnCode).to.eql(5);
});
});
});
it("should support authentication (error)", function(done) {
instance.authenticate = function(client, username, password, callback) {
callback(new Error("auth error"));
};
buildClient(done, function(client) {
var options = buildOpts();
options.username = "matteo";
options.password = "collina";
client.connect(options);
client.on('connack', function(packet) {
expect(packet.returnCode).to.eql(4);
});
});
});
it("should support publish authorization (success)", function(done) {
instance.authorizePublish = function(client, topic, payload, callback) {
expect(topic).to.be.eql("hello");
expect(payload.toString()).to.be.eql("world");
callback(null, true);
};
buildAndConnect(done, function(client) {
var messageId = Math.floor(65535 * Math.random());
client.on("puback", function(packet) {
expect(packet).to.have.property("messageId", messageId);
client.disconnect();
});
client.publish({
topic: "hello",
qos: 1,
payload: "world",
messageId: messageId
});
});
});
it("should support publish authorization (failure)", function(done) {
instance.authorizePublish = function(client, topic, payload, callback) {
expect(topic).to.be.eql("hello");
expect(payload.toString()).to.be.eql("world");
callback(null, false);
};
buildAndConnect(done, function(client) {
// it exists no negation of auth, it just disconnect the client
client.publish({
topic: "hello",
payload: "world",
qos: 1,
messageId: 42
});
});
});
it("should support overriding the payload during authorization", function(done) {
instance.authorizePublish = function(client, topic, payload, callback) {
callback(null, new Buffer("rewritten"));
};
instance.on("published", function(packet) {
expect(packet.payload.toString().toString()).to.be.equal("rewritten");
});
buildAndConnect(done, function(client) {
var messageId = Math.floor(65535 * Math.random());
client.on("puback", function(packet) {
expect(packet).to.have.property("messageId", messageId);
client.disconnect();
});
client.publish({
topic: "hello",
qos: 1,
payload: "world",
messageId: messageId
});
});
});
it("should share the authenticated client during the publish authorization", function(done) {
instance.authenticate = function(client, username, password, callback) {
client.shared = 'message';
callback(null, true);
};
instance.authorizePublish = function(client, topic, payload, callback) {
expect(client).to.have.property("shared", "message");
callback(null, true);
};
buildAndConnect(done, function(client) {
var messageId = Math.floor(65535 * Math.random());
client.on("puback", function(packet) {
client.disconnect();
});
client.publish({
topic: "hello",
qos: 1,
payload: "world",
messageId: messageId
});
});
});
it("should support will authorization (success)", function(done) {
instance.authorizePublish = function(client, topic, payload, callback) {
expect(topic).to.be.eql("hello");
expect(payload.toString()).to.be.eql("world");
callback(null, true);
};
var opts = buildOpts();
opts.will = {
topic: "hello",
payload: "world"
};
buildAndConnect(function() {}, opts, function(client) {
client.stream.end();
});
instance.on('published', function(packet) {
expect(packet.topic).to.be.eql("hello");
expect(packet.payload.toString().toString()).to.be.eql("world");
done();
});
});
it("should support will authorization (failure)", function(done) {
instance.authorizePublish = function(client, topic, payload, callback) {
expect(topic).to.be.eql("hello");
expect(payload.toString()).to.be.eql("world");
callback(null, false);
done();
};
var opts = buildOpts();
opts.will = {
topic: "hello",
payload: "world"
};
buildAndConnect(function() {}, opts, function(client) {
client.stream.end();
});
});
it("should support subscribe authorization (success)", function(done) {
instance.authorizeSubscribe = function(client, topic, callback) {
expect(topic).to.be.eql("hello");
callback(null, true);
};
buildAndConnect(done, function(client) {
client.on("suback", function(packet) {
client.disconnect();
});
var subscriptions = [{
topic: "hello",
qos: 0
}
];
client.subscribe({
subscriptions: subscriptions,
messageId: 42
});
});
});
it("should support subscribe authorization (failure)", function(done) {
var d = donner(2, done);
instance.authorizeSubscribe = function(client, topic, callback) {
expect(topic).to.be.eql("hello");
callback(null, false);
};
buildAndConnect(d, function(client) {
var subscriptions = [{
topic: "hello",
qos: 0
}
];
client.on("suback", function(packet) {
expect(packet.granted).to.be.eql([0x80]);
client.disconnect();
d();
});
client.subscribe({
subscriptions: subscriptions,
messageId: 42
});
});
});
it("should share the authenticated client during the subscribe authorization", function(done) {
instance.authenticate = function(client, username, password, callback) {
client.shared = "message";
callback(null, true);
};
instance.authorizeSubscribe = function(client, topic, callback) {
expect(client).to.have.property("shared", "message");
callback(null, true);
};
buildAndConnect(done, function(client) {
client.on("suback", function(packet) {
client.disconnect();
});
var subscriptions = [{
topic: "hello",
qos: 0
}
];
client.subscribe({
subscriptions: subscriptions,
messageId: 42
});
});
});
it("should not forward packet if authorizeForward do not call the callback", function(done) {
var d = donner(2, done);
var that = this;
this.instance.authorizeForward = function(client, packet, callback) {
callback(null, packet.topic !== 'stop_forward');
};
buildAndConnect(d, buildOpts(), function(client1) {
var messageId = Math.floor(65535 * Math.random());
var subscriptions = [
{ topic : "stop_forward", qos : 1 },
{ topic : "go_forward", qos : 1 }
];
client1.on("publish", function(packet) {
expect(packet.topic).to.equal("go_forward");
});
client1.on("suback", function() {
buildAndConnect(d, buildOpts(), function(client2) {
client2.on("puback", function(packet) {
client1.disconnect();
client2.disconnect();
});
client2.publish({
topic: "stop_forward",
messageId: messageId,
qos: 1
});
client2.publish({
topic: "go_forward",
messageId: messageId,
qos: 1
});
});
});
client1.subscribe({
subscriptions: subscriptions,
messageId: messageId
});
});
});
it("should support retained messages", function(done) {
async.waterfall([
function(cb) {
var client = createConnection(settings.port, settings.host);
client.on("connected", function() {
var opts = buildOpts();
client.connect(opts);
client.on('connack', function(packet) {
client.publish({
topic: "hello",
qos: 1,
payload: new Buffer("world world"),
messageId: 42,
retain: true
});
});
client.on('puback', function() {
client.stream.end();
cb();
});
});
},
function(cb) {
var client = createConnection(settings.port, settings.host);
client.on("connected", function() {
var opts = buildOpts();
client.connect(opts);
client.on('connack', function(packet) {
var subscriptions = [{
topic: "hello",
qos: 0
}];
client.subscribe({
subscriptions: subscriptions,
messageId: 29
});
});
client.on("publish", function(packet) {
expect(packet.topic).to.be.eql("hello");
expect(packet.payload.toString().toString()).to.be.eql("world world");
client.stream.end();
});
client.stream.on('end', cb);
});
}
], function() {
setImmediate(done);
});
});
it("should return only a single retained message", function(done) {
async.waterfall([
function(cb) {
buildClient(cb, function(client) {
client.name = "Phase 1";
var defaultMessage = {
topic: "hello",
qos: 1,
payload: null,
messageId: null,
retain: true
};
var opts = buildOpts();
opts.clean = true;
var totalMessages = 3;
var publishCount = 0;
client.connect(opts);
client.on('puback', function(packet){
publishCount++;
if(publishCount == totalMessages) {
client.stream.end();
}
});
client.on('connack', function(packet) {
for(var c = 1; c <= totalMessages; c++) {
defaultMessage.payload = (c == totalMessages) ? new Buffer("Final Message") : new Buffer("Message " + c);
defaultMessage.messageId = 40 + c;
client.publish(defaultMessage);
}
});
});
},
function(cb) {
setTimeout(cb, 100);
},
function(cb) {
buildClient(cb, function(client) {
var retainedReceivedCount = 0;
var opts = buildOpts();
opts.clean = true;
client.connect(opts);
client.on("connack", function(packet) {
var subscriptions = [{
topic: "hello",
qos: 0
}];
client.subscribe({
subscriptions: subscriptions,
messageId: 20
});
});
var handleTimeout = function() {
expect(retainedReceivedCount).to.be.equal(1);
client.stream.end();
};
var timeout;
client.on("publish", function(packet) {
clearTimeout(timeout);
timeout = setTimeout(handleTimeout, 100);
retainedReceivedCount++;
});
});
}
], done);
});
it("should restore subscriptions for uncleaned clients", function(done) {
var opts = buildOpts();
opts.clientId = "mosca-unclean-clients-test";
opts.clean = false;
async.series([
function(cb) {
buildAndConnect(cb, opts, function(client) {
var subscriptions = [{
topic: "hello",
qos: 1
}];
client.subscribe({
subscriptions: subscriptions,
messageId: 42
});
client.on("suback", function() {
client.stream.end();
});
});
},
function(cb) {
buildAndConnect(cb, opts, function(client) {
client.publish({
topic: "hello",
qos: 1,
payload: "world",
messageId: 42
});
client.on("publish", function(packet) {
expect(packet.topic).to.be.eql("hello");
expect(packet.payload.toString()).to.be.eql("world");
expect(packet.qos).to.be.eql(1);
client.disconnect();
});
});
}
], done);
});
it("should restore subscriptions for uncleaned clients (bis)", function(done) {
var opts = buildOpts();
opts.clientId = "mosca-unclean-client-test";
opts.clean = false;
async.series([
function(cb) {
buildAndConnect(cb, opts, function(client) {
var subscriptions = [{
topic: "hello",
qos: 1
}];
client.subscribe({
subscriptions: subscriptions,
messageId: 42
});
client.on("suback", function() {
client.stream.end();
});
});
},
function(cb) {
buildAndConnect(cb, buildOpts(), function(client) {
client.publish({
topic: "hello",
qos: 1,
payload: "world",
messageId: 24
});
client.on("puback", function() {
client.disconnect();
});
});
},
function(cb) {
buildAndConnect(cb, opts, function(client) {
client.on("publish", function(packet) {
expect(packet.topic).to.be.eql("hello");
expect(packet.payload.toString()).to.be.eql("world");
client.disconnect();
});
});
}
], done);
});
it("should remove already pubacked messages from the offline store", function(done) {
var opts = buildOpts();
opts.clientId = "mosca-unclean-clients-test";
opts.clean = false;
opts.keepalive = 0;
function step1(cb) {
buildAndConnect(function() {}, opts, function(client) {
var subscriptions = [{
topic: "hello",
qos: 1
}];
client.subscribe({
subscriptions: subscriptions,
messageId: 42
});
client.on("suback", function() {
cb(null, client);
});
});
}
function step2(subscriber, cb) {
buildAndConnect(function() {}, buildOpts(), function(client) {
cb(null, subscriber, client);
});
}
function step3(subscriber, publisher, cb) {
publisher.publish({
topic: "hello",
qos: 1,
payload: "world",
messageId: 42
});
publisher.on("puback", function(packet) {
publisher.disconnect();
});
subscriber.on("publish", function(packet) {
subscriber.puback({ messageId: packet.messageId });
subscriber.disconnect();
cb();
});
}
async.waterfall([
step1, step2, step3,
// two times!
step1, step2, step3
], function(err) {
expect(err).to.be.falsy;
buildClient(done, function(client) {
client.connect(opts);
client.on("publish", function(packet) {
done(new Error("not expected"));
});
setTimeout(function() {
client.disconnect();
}, 100);
});
});
});
it("should support offline messaging", function(done) {
var opts = buildOpts();
opts.clientId = "mosca-unclean-clients-test2";
opts.clean = false;
opts.keepalive = 0;
async.series([
function(cb) {
buildAndConnect(cb, opts, function(client) {
var subscriptions = [{
topic: "hello",
qos: 1
}];
client.subscribe({
subscriptions: subscriptions,
messageId: 42
});
client.on("suback", function() {
client.disconnect();
});
});
},
function(cb) {
buildClient(cb, function(client) {
client.connect(buildOpts());
client.publish({
topic: "hello",
qos: 1,
payload: "world",
messageId: 42
});
client.on("puback", function(packet) {
client.disconnect();
});
});
},
function(cb) {
buildAndConnect(cb, opts, function(client) {
client.on("publish", function(packet) {
client.puback({ messageId: packet.messageId });
client.disconnect();
expect(packet.topic).to.eql("hello");
expect(packet.payload.toString()).to.eql("world");
expect(packet.qos).to.eql(1);
});
});
}
], done);
});
it("should not deliver all offline messages more than once", function(done) {
var opts = buildOpts();
opts.clientId = "mosca-unclean-clients-test3";
opts.clean = false;
opts.keepalive = 0;
async.series([
function(cb) {
buildAndConnect(cb, opts, function(client) {
var subscriptions = [{
topic: "hello",
qos: 1
}];
client.subscribe({
subscriptions: subscriptions,
messageId: 42
});
client.on("suback", function() {
client.disconnect();
});
});
},
function(cb) {
buildClient(cb, function(client) {
client.connect(buildOpts());
client.publish({
topic: "hello",
qos: 1,
payload: "world",
messageId: 42
});
client.on("puback", function(packet) {
client.disconnect();
});
});
},
function(cb) {
buildAndConnect(cb, opts, function(client) {
client.on("publish", function(packet) {
client.puback({ messageId: packet.messageId });
client.disconnect();
expect(packet.topic).to.eql("hello");
expect(packet.payload.toString()).to.eql("world");
expect(packet.qos).to.eql(1);
});
});
},
function(cb) {
setTimeout(cb, 100);
},
function(cb) {
buildAndConnect(cb, opts, function(client) {
client.on("publish", function(packet) {
cb(new Error("unexpected publish"));
});
setTimeout(function() {
client.disconnect();
}, 50);
});
}
], done);
});
describe("pattern matching", function() {
var buildTest = function(subscribed, published, expected) {
var not = "";
if (expected === undefined) {
expected = true;
}
if (!expected) {
not = "not ";
}
if (!(subscribed instanceof Array)) {
subscribed = [subscribed];
}
it("should " + not + "support forwarding to " + subscribed + " when publishing " + published, function(done) {
var d = donner(2, done);
buildAndConnect(d, function(client1) {
var messageId = Math.floor(65535 * Math.random());
var subscriptions = subscribed.map(function(topic) {
return {
topic: topic,
qos: 0
};
});
client1.on("publish", function(packet) {
client1.disconnect();
if (!expected) {
throw new Error("the message was not expected");
}
});
client1.on("suback", function() {
buildAndConnect(d, function(client2) {
client2.publish({
topic: published,
payload: "some data",
messageId: messageId
});
client2.disconnect();
});
});
client1.subscribe({
subscriptions: subscriptions,
messageId: messageId
});
if (!expected) {
setTimeout(function() {
client1.disconnect();
}, 50);
}
});
});
};
buildTest("#", "test/topic");
buildTest("#", "/test/topic");
buildTest("foo/#", "foo/bar/baz");
buildTest("foo/+/baz", "foo/bar/baz");
buildTest("foo/#", "foo");
buildTest("/#", "/foo");
buildTest("test/topic/", "test/topic", false);
buildTest("+/+/+/+/+/+/+/+/+/+/test", "one/two/three/four/five/six/seven/eight/nine/ten/test");
buildTest("/test/topic", "test/topic", false);
buildTest("/test//topic", "/test/topic", false);
buildTest("/test//topic", "/test//topic");
buildTest("/test/+/topic", "/test//topic", false);
buildTest("/test/#/topic", "/test//topic");
buildTest("#", "$SYS/hello", false);
buildTest("/#", "$SYS/hello", false);
buildTest("/+/hello", "$SYS/hello", false);
buildTest("$SYS/hello", "$SYS/hello");
buildTest("$SYS/hello", "$SYS/hello");
buildTest(["#", "$SYS/#"], "$SYS/hello");
});
it("should allow plugin authors to publish", function(done) {
buildAndConnect(done, function(client) {
var messageId = Math.floor(65535 * Math.random());
var subscriptions = [{
topic: "hello",
qos: 1
}
];
client.on("suback", function(packet) {
instance.publish({ topic: "hello", payload: "world", qos: 1 });
});
client.on("publish", function(packet) {
expect(packet).to.have.property("topic", "hello");
expect(packet.payload.toString()).to.equal("world");
expect(packet).to.have.property("qos", 1);
client.disconnect();
});
client.subscribe({
subscriptions: subscriptions,
messageId: messageId
});
});
});
it("should have an id", function() {
expect(instance.id).to.be.truthy;
});
it("should have a configurable id", function(done) {
var newSettings = moscaSettings();
newSettings.id = "4242";
secondInstance = new mosca.Server(newSettings, done);
expect(secondInstance.id).to.eql("4242");
});
};
|
import AppForm from '../app-components/Form/AppForm';
Vue.component('academic-training-form', {
mixins: [AppForm],
props: ['education', 'academic', 'resume'],
data: function () {
return {
form: {
resume_id: this.resume,
education_level_id: '',
academic_state_id: '',
name: '',
institution: '',
registered: false,
workload: '',
}
}
}
});
|
//购物车,改变购物的数量值
$(function(){
$('.list dl.top dd.sl a.sub').click(function() {
// 获得当前的商品数量值
var a=$(this).parent('dd.sl').parent('dl.top').parent('div.list').find("input[name='jian']").val();
// 获得当前商品的单价
var b=$(this).parent('dd.sl').parent('dl.top').parent('div.list').find('span.danjia').html();
// 修改商品数量
a--;
// 删除当前数据,
if(a<=0){
if(confirm('确定要移除吗?')){
$(this).parent('dd.sl').parent('dl.top').parent('div.list').remove();
}
a=1;
}
$(this).parent('dd.sl').parent('dl.top').parent('div.list').find("input[name='jian']").val(a);
a=parseInt(a);//商品数量
b=parseInt(b);//商品单价
t=a*b;
// 这里用ajax来处理这些数据
// 当前商品的总价
$(this).parent('dd.sl').parent('dl.top').parent('div.list').find('span.total').html(t+'.00');
});
$('.list dl.top dd.sl a.add').click(function() {
// 获得当前的商品数量值
var a=$(this).parent('dd.sl').parent('dl.top').parent('div.list').find("input[name='jian']").val();
// 获得当前商品的单价
var b=$(this).parent('dd.sl').parent('dl.top').parent('div.list').find('span.danjia').html();
// 修改商品数量
a++;
// // 删除当前数据,
// if(a<=0){
// $(this).parent('dd.sl').parent('dl.top').parent('div.list').remove();
// }
$(this).parent('dd.sl').parent('dl.top').parent('div.list').find("input[name='jian']").val(a);
a=parseInt(a);//商品数量
b=parseInt(b);//商品单价
t=a*b;
// 这里用ajax来处理这些数据
// 当前商品的总价
$(this).parent('dd.sl').parent('dl.top').parent('div.list').find('span.total').html(t+'.00');
});
})
// 修改效果
$(function(){
$(".list dl.top dd.cz a.update").click(function() {
});
})
|
const express = require('express');
const Proto = require('uberproto');
const errorHandler = require('@feathersjs/errors/handler');
const notFound = require('@feathersjs/errors/not-found');
const debug = require('debug')('@feathersjs/express');
const rest = require('./rest');
function feathersExpress (feathersApp) {
if (!feathersApp) {
return express();
}
if (typeof feathersApp.setup !== 'function') {
throw new Error('@feathersjs/express requires a valid Feathers application instance');
}
if (!feathersApp.version || feathersApp.version < '3.0.0') {
throw new Error(`@feathersjs/express requires an instance of a Feathers application version 3.x or later (got ${feathersApp.version || 'unknown'})`);
}
const expressApp = express();
// An Uberproto mixin that provides the extended functionality
const mixin = {
use (location) {
let service;
let middleware = Array.from(arguments)
.slice(1)
.reduce(function (middleware, arg) {
if (typeof arg === 'function') {
middleware[service ? 'after' : 'before'].push(arg);
} else if (!service) {
service = arg;
} else {
throw new Error('Invalid options passed to app.use');
}
return middleware;
}, {
before: [],
after: []
});
const hasMethod = methods => methods.some(name =>
(service && !Array.isArray(service) && typeof service[name] === 'function')
);
// Check for service (any object with at least one service method)
if (hasMethod(['handle', 'set']) || !hasMethod(this.methods.concat('setup'))) {
debug('Passing app.use call to Express app');
return this._super.apply(this, arguments);
}
debug('Registering service with middleware', middleware);
// Since this is a serivce, call Feathers `.use`
feathersApp.use.call(this, location, service, { middleware });
return this;
},
listen () {
const server = this._super.apply(this, arguments);
this.setup(server);
debug('Feathers application listening');
return server;
}
};
// Copy all non-existing properties (including non-enumerables)
// that don't already exist on the Express app
Object.getOwnPropertyNames(feathersApp).forEach(prop => {
const feathersProp = Object.getOwnPropertyDescriptor(feathersApp, prop);
const expressProp = Object.getOwnPropertyDescriptor(expressApp, prop);
if (expressProp === undefined && feathersProp !== undefined) {
Object.defineProperty(expressApp, prop, feathersProp);
}
});
return Proto.mixin(mixin, expressApp);
}
module.exports = feathersExpress;
Object.assign(module.exports, express, {
default: feathersExpress,
original: express,
rest,
notFound,
errorHandler
});
|
/**
* @date 2015-01-06
* @author jialin.hou@raidtalk.com
*/
;(function (window, document, undefined) {
var gg = {};
gg.$ = function (selector, element) {
if (!element) {
element = document;
}
try {
return element.querySelector(selector);
} catch (e) {
}
};
gg.$$ = function (selector, element) {
if (!element) {
element = document;
}
try {
return element.querySelectorAll(selector);
} catch (e) {
}
};
gg.id = function (selector, element) {
if (!element) {
element = document;
}
return element.getElementById(selector);
};
gg.getChildren = function (selector, element) {
var parent = this.$(selector, element);
return parent.childNodes;
};
/**
* DOM
*/
gg.dom = gg.dom || {};
gg.dom.mode = function () {
return document.compatMode;
};
gg.dom.activeElement = function () {
return document.activeElement;
};
gg.dom.global = function () {
return document.defaultView;
};
gg.dom.doc = function () {
return document.body.ownerElement;
};
gg.dom.isElement = function (element) {
return element && element.nodeType === Node.ELEMENT_NODE;
};
gg.dom.byClass = function (selector, element) {
if (!element) {
element = document;
}
return element.getElementsByClassName(selector);
}
gg.dom.children = function (element) {
var children = element.children,
result = [];
for (var i = 0, len = children.length; i < len; i++) {
if (isElement(children[i])) {
result.push(children[i]);
}
}
return result;
};
gg.dom.attributes = function (element) {
var attributes = [],
attrs = element.attributes;
for (var i = 0, len = attrs.length; i < len; i++) {
attributes.push(attrs[i]);
}
reutrn attributes;
};
/**
* check the attr is a customer attribute
* @param {string} attr attribute value
* @param {element} host html node element
* @return {Boolean}
*/
gg.dom.isAttribute = function (attr, host) {
host = host || document.createElement('div');
return host.getAttribute(attr) === null && host[attr] === undefined;
};
gg.dom.prop = function (element, attr, value) {
// get prop
if (undefined === value) {
return element.getAttribute(attr);
} else {
if (value == '') {
element.removeAttribute(attr);
} else {
element.setAttribute(attr, value);
}
}
};
/**
* DOM Style Computed
* @param {object} element "selected element Node"
* @param {string} value "class name"
*/
gg.dom.getClass = function (element) {
if (element.classList) {
return element.classList;
} else {
return element.className.replace(/\s+/, " ").split(" ");
}
};
gg.dom.hasClass = function (element, value) {
if ('classList' in element) {
return element.classList.contains(value);
} else {
return -1 !== (" " + element.className + " ").indexOf(" " + value + " ");
}
};
gg.dom.addClass = function (element, value) {
if (typeof value == "string") {
if (element.nodeType == Node.ELEMENT_NODE) {
if ('classList' in element) {
element.classList.add(value);
} else {
if (!element.className) {
element.className = value;
} else {
var className = (element.className + " " + value).match(/\S/g);
className.sort();
for (var i = 0, len = className.length; i < len; i++) {
if (className[i] == className[i+1]) {
className.splice(i, 1);
}
}
element.className = className.join(" ");
}
}
}
}
};
gg.dom.removeClass = function (element, value) {
if (value === undefined) {
return;
}
if (!this.hasClass(element, value)) {
return;
}
if ('classList' in element) {
element.classList.remove(value);
} else {
var reg = new RegExp('(\\s|^)' + value + '(\\s|$)');
element.className = element.className.replace(reg, " ");
}
};
gg.dom.clearClass = function (element) {
element.className = "";
}
gg.dom.toggleClass = function (element, value) {
element.classList.toggle(value);
};
gg.dom.replaceClass = function (element, old, neo) {
this.removeClass(element, old);
this.addClass(element, neo);
};
/**
* 通过class获取Element
* 支持Xpath
*/
gg.dom.getElementsByClassName = function (className, tag, elm){
if (document.getElementsByClassName) {
getElementsByClassName = function (className, tag, elm) {
elm = elm || document;
var elements = elm.getElementsByClassName(className),
nodeName = (tag)? new RegExp("\\b" + tag + "\\b", "i") : null,
returnElements = [],
current;
for(var i=0, il=elements.length; i<il; i+=1){
current = elements[i];
if(!nodeName || nodeName.test(current.nodeName)) {
returnElements.push(current);
}
}
return returnElements;
};
} else if (document.evaluate) {
getElementsByClassName = function (className, tag, elm) {
tag = tag || "*";
elm = elm || document;
var classes = className.split(" "),
classesToCheck = "",
xhtmlNamespace = "http://www.w3.org/1999/xhtml",
namespaceResolver = (document.documentElement.namespaceURI === xhtmlNamespace)? xhtmlNamespace : null,
returnElements = [],
elements,
node;
for(var j=0, jl=classes.length; j<jl; j+=1){
classesToCheck += "[contains(concat(' ', @class, ' '), ' " + classes[j] + " ')]";
}
try {
elements = document.evaluate(".//" + tag + classesToCheck, elm, namespaceResolver, 0, null);
}
catch (e) {
elements = document.evaluate(".//" + tag + classesToCheck, elm, null, 0, null);
}
while ((node = elements.iterateNext())) {
returnElements.push(node);
}
return returnElements;
};
} else {
getElementsByClassName = function (className, tag, elm) {
tag = tag || "*";
elm = elm || document;
var classes = className.split(" "),
classesToCheck = [],
elements = (tag === "*" && elm.all)? elm.all : elm.getElementsByTagName(tag),
current,
returnElements = [],
match;
for(var k=0, kl=classes.length; k<kl; k+=1){
classesToCheck.push(new RegExp("(^|\\s)" + classes[k] + "(\\s|$)"));
}
for(var l=0, ll=elements.length; l<ll; l+=1){
current = elements[l];
match = false;
for(var m=0, ml=classesToCheck.length; m<ml; m+=1){
match = classesToCheck[m].test(current.className);
if (!match) {
break;
}
}
if (match) {
returnElements.push(current);
}
}
return returnElements;
};
}
return getElementsByClassName(className, tag, elm);
};
/**
* data attr
*/
gg.dom.data = function (element, attr, value) {
if (undefined === value) {
return element.dataset.attr;
}
element.dataset.attr = value;
};
gg.dom.firstChild = function (element) {
return isElement(element) ? element.firstChild : null;
};
gg.dom.isEqual = function (elemA, elemB) {
return elemA.isEqualNode(elemB);
};
/**
* tools (include extend grammer)
* @type {[type]}
*/
gg.util = gg.util || {};
gg.util.isArray = function (obj) {
return Object.protype.toString.call(obj) === '[Object Array]';
};
gg.util.type = function (obj) {
if (obj === null) {
return true;
}
if (obj === undefined) {
return true;
}
if (typeof obj === "string") {
return true;
}
if (typeof obj === "number") {
return true;
}
};
gg.util.makeArray = function (obj) {
return Array.prototype.slice.call(obj);
}
gg.util.trim = function (string) {
return string.replace(/^\s|\s$/g, '');
};
gg.util.extend = function (objA, objB) {
for (var i in objB) {
objA[i] = objB[i];
}
return objA;
};
/**
* support features
*/
/**
* check browser diff the origin attr vs custmer attr
*/
gg.support.setGetAttribute = function () {
var el = document.createElement('div');
el.setAttribute("className", "t");
return el.className !== "t";
}
gg.util.checkEmail = function (email) {
var reg = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;
if (!reg.test(email.trim())) {
return false;
} else {
return true;
}
}
};
window.gg = gg;
})(window, document);
|
/**
* @module random
*/
|
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { fetchPosts } from '../actions';
import PostList from '../components/postList';
class PostsIndex extends Component {
componentWillMount() {
this.props.fetchPosts();
}
render() {
return (
<div>
<div className="text-xs-right">
<Link to="/posts/new" className="btn btn-primary">
Add a Post
</Link>
</div>
<PostList posts={this.props.posts} />
</div>
);
}
}
const mapStateToProps = state => (
{
posts: state.posts,
}
);
export default connect(mapStateToProps, { fetchPosts })(PostsIndex);
|
;(function(){var instance;var initialized=false;var util={isObject:function(o){return Object.prototype.toString.call(o)==='[object Object]'}};function initWebViewJavascriptBridge(callback){if(initialized){console.log("init has been called.")}else{window.WebViewJavascriptBridge.init(function(message,responseCallback){})}initialized=true;typeof callback==='function'&&callback()};function YYEsnBridge(){this.version='1.0.2'};YYEsnBridge.prototype.ready=function(callback){if(window.WebViewJavascriptBridge){initWebViewJavascriptBridge(callback)}else{document.addEventListener('WebViewJavascriptBridgeReady',function(){initWebViewJavascriptBridge(callback)},false)}};YYEsnBridge.prototype.config=function(parameters){if(!util.isObject(parameters)){throw new Error('参数格式不正确')}if(!parameters.signature||!parameters.agentId||!parameters.timeStamp){throw new Error('必要参数不存在')}this.do('config',parameters)};YYEsnBridge.prototype.registerLifeCycle=function(parameters){if(!util.isObject(parameters)){throw new Error('参数格式不正确')}if(!parameters.onShow||!parameters.onHide||typeof parameters.onShow!=='function'||typeof parameters.onHide!=='function'){throw new Error('必要参数不存在或类型错误')}this.registerHandler({'lifeCycle$onShow':parameters.onShow});this.registerHandler({'lifeCycle$onHide':parameters.onHide});parsedParameters={'onShow':'lifeCycle$onShow','onHide':'lifeCycle$onHide'};this.do('registerLifeCycle',parsedParameters)};YYEsnBridge.prototype.registerHandler=function(parameters){if(!util.isObject(parameters)){throw new Error('参数格式不正确')}for(var key in parameters){if(Object.prototype.hasOwnProperty.call(parameters,key)){window.WebViewJavascriptBridge.registerHandler(key,parameters[key])}}};YYEsnBridge.prototype.do=function(action,parameters){if(action===''||typeof action!=='string'){throw new Error('参数格式不正确')}if(!util.isObject(parameters)){parameters={}}try{window.WebViewJavascriptBridge.callHandler(action,parameters,function(res){var resultData={};try{if(!util.isObject(res)){res=JSON.parse(res)}if(res.error_code==='0'){resultData=res.data;try{typeof parameters.success==='function'&¶meters.success(resultData)}catch(e){console.log('error in success function')}}else{resultData.errCode=res.error_code;resultData.data=res.data;resultData.errDescription=res.error_description;typeof parameters.fail==='function'&¶meters.fail(resultData)}}catch(e){resultData.errCode='1002';resultData.errDescription='data parse error';typeof parameters.fail==='function'&¶meters.fail(resultData)}typeof parameters.complete==='function'&¶meters.complete()})}catch(e){throw new Error('参数格式不正确')}};if(!instance){instance=new YYEsnBridge()}if(typeof define==='function'&&typeof define.amd==='object'&&define.amd){define(function(){return instance})}else if(typeof module!=='undefined'&&module.exports){module.exports.YYEsnBridge=instance}else{window.YYEsnBridge=instance}})();
|
import React, { PureComponent } from 'react';
import { Input, Icon } from 'antd';
import styles from './index.less';
export default class EditableItem extends PureComponent {
constructor(props) {
super(props);
this.state = {
value: props.value,
editable: false,
};
}
handleChange = e => {
const { value } = e.target;
this.setState({ value });
};
check = () => {
this.setState({ editable: false });
const { value } = this.state;
const { onChange } = this.props;
if (onChange) {
onChange(value);
}
};
edit = () => {
this.setState({ editable: true });
};
render() {
const { value, editable } = this.state;
return (
<div className={styles.editableItem}>
{editable ? (
<div className={styles.wrapper}>
<Input value={value} onChange={this.handleChange} onPressEnter={this.check} />
<Icon type="check" className={styles.icon} onClick={this.check} />
</div>
) : (
<div className={styles.wrapper}>
<span>{value || ' '}</span>
<Icon type="edit" className={styles.icon} onClick={this.edit} />
</div>
)}
</div>
);
}
}
|
import "../wpt-env.js";
/* Delete created databases
*
* Go through each finished test, see if it has an associated database. Close
* that and delete the database. */
add_completion_callback(function (tests) {
for (var i in tests) {
if (tests[i].db) {
tests[i].db.close();
self.indexedDB.deleteDatabase(tests[i].db.name);
}
}
});
function fail(test, desc) {
return test.step_func(function (e) {
if (e && e.message && e.target.error)
assert_unreached(
desc + " (" + e.target.error.name + ": " + e.message + ")",
);
else if (e && e.message)
assert_unreached(desc + " (" + e.message + ")");
else if (e && e.target.readyState === "done" && e.target.error)
assert_unreached(desc + " (" + e.target.error.name + ")");
else assert_unreached(desc);
});
}
function createdb(test, dbname, version) {
var rq_open = createdb_for_multiple_tests(dbname, version);
return rq_open.setTest(test);
}
function createdb_for_multiple_tests(dbname, version) {
var rq_open,
fake_open = {},
test = null,
dbname = dbname
? dbname
: "testdb-" + new Date().getTime() + Math.random();
if (version) rq_open = self.indexedDB.open(dbname, version);
else rq_open = self.indexedDB.open(dbname);
function auto_fail(evt, current_test) {
/* Fail handlers, if we haven't set on/whatever/, don't
* expect to get event whatever. */
rq_open.manually_handled = {};
rq_open.addEventListener(evt, function (e) {
if (current_test !== test) {
return;
}
test.step(function () {
if (!rq_open.manually_handled[evt]) {
assert_unreached("unexpected open." + evt + " event");
}
if (
e.target.result + "" == "[object IDBDatabase]" &&
!this.db
) {
this.db = e.target.result;
this.db.onerror = fail(test, "unexpected db.error");
this.db.onabort = fail(test, "unexpected db.abort");
this.db.onversionchange = fail(
test,
"unexpected db.versionchange",
);
}
});
});
rq_open.__defineSetter__("on" + evt, function (h) {
rq_open.manually_handled[evt] = true;
if (!h) rq_open.addEventListener(evt, function () {});
else rq_open.addEventListener(evt, test.step_func(h));
});
}
// add a .setTest method to the IDBOpenDBRequest object
Object.defineProperty(rq_open, "setTest", {
enumerable: false,
value: function (t) {
test = t;
auto_fail("upgradeneeded", test);
auto_fail("success", test);
auto_fail("blocked", test);
auto_fail("error", test);
return this;
},
});
return rq_open;
}
function assert_key_equals(actual, expected, description) {
assert_equals(indexedDB.cmp(actual, expected), 0, description);
}
function indexeddb_test(upgrade_func, open_func, description, options) {
async_test(function (t) {
options = Object.assign({ upgrade_will_abort: false }, options);
var dbname = location + "-" + t.name;
var del = indexedDB.deleteDatabase(dbname);
del.onerror = t.unreached_func("deleteDatabase should succeed");
var open = indexedDB.open(dbname, 1);
open.onupgradeneeded = t.step_func(function () {
var db = open.result;
t.add_cleanup(function () {
// If open didn't succeed already, ignore the error.
open.onerror = function (e) {
e.preventDefault();
};
db.close();
indexedDB.deleteDatabase(db.name);
});
var tx = open.transaction;
upgrade_func(t, db, tx, open);
});
if (options.upgrade_will_abort) {
open.onsuccess = t.unreached_func("open should not succeed");
} else {
open.onerror = t.unreached_func("open should succeed");
open.onsuccess = t.step_func(function () {
var db = open.result;
if (open_func) open_func(t, db, open);
});
}
}, description);
}
// Call with a Test and an array of expected results in order. Returns
// a function; call the function when a result arrives and when the
// expected number appear the order will be asserted and test
// completed.
function expect(t, expected) {
var results = [];
return (result) => {
results.push(result);
if (results.length === expected.length) {
assert_array_equals(results, expected);
t.done();
}
};
}
// Checks to see if the passed transaction is active (by making
// requests against the named store).
function is_transaction_active(tx, store_name) {
try {
const request = tx.objectStore(store_name).get(0);
request.onerror = (e) => {
e.preventDefault();
e.stopPropagation();
};
return true;
} catch (ex) {
assert_equals(
ex.name,
"TransactionInactiveError",
"Active check should either not throw anything, or throw " +
"TransactionInactiveError",
);
return false;
}
}
// Keeps the passed transaction alive indefinitely (by making requests
// against the named store). Returns a function that asserts that the
// transaction has not already completed and then ends the request loop so that
// the transaction may autocommit and complete.
function keep_alive(tx, store_name) {
let completed = false;
tx.addEventListener("complete", () => {
completed = true;
});
let keepSpinning = true;
function spin() {
if (!keepSpinning) return;
tx.objectStore(store_name).get(0).onsuccess = spin;
}
spin();
return () => {
assert_false(completed, "Transaction completed while kept alive");
keepSpinning = false;
};
}
var db,
t = async_test(),
record = { key: 1, property: "data" };
var open_rq = createdb(t);
open_rq.onupgradeneeded = function (e) {
db = e.target.result;
var objStore = db.createObjectStore("store", { keyPath: "key" });
objStore.add(record);
};
open_rq.onsuccess = function (e) {
var rq = db.transaction("store").objectStore("store").get(record.key);
rq.onsuccess = t.step_func(function (e) {
assert_equals(e.target.result.property, record.property);
assert_equals(e.target.result.key, record.key);
t.done();
});
};
|
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
siteMetadata: {
title: `Tsukie - Lifestyle, technologies, travel... and more`,
author: `minhnh`,
description: `Tsukie - Blog from Tsukie studio. Written articles about lifestyles, technologies (mostly software programming related), travel (contents mostly Japan related), entertainment (anime, game, etc).`,
siteUrl: process.env.WEBSITE,
social: {
twitter: `minhnh94`,
},
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/blog`,
name: `blog`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/assets`,
name: `assets`,
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1200,
markdownCaptions: true,
showCaptions: true,
backgroundColor: "none",
},
},
{
resolve: `gatsby-remark-figure-caption`,
options: { figureClassName: "md-figure" },
},
{
resolve: `gatsby-remark-responsive-iframe`,
options: {
wrapperStyle: `margin-bottom: 1.0725rem`,
},
},
{
resolve: `gatsby-remark-prismjs`,
options: {
classPrefix: "language-",
showLineNumbers: true,
},
},
`gatsby-remark-copy-linked-files`,
`gatsby-remark-smartypants`,
],
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: process.env.GA_TRACKING_UID,
},
},
`gatsby-plugin-feed`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Gatsby Starter Blog`,
short_name: `GatsbyJS`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `content/assets/favicon.png`,
},
},
`gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography`,
},
},
`gatsby-plugin-sass`,
`gatsby-plugin-styled-components`,
`gatsby-plugin-typescript`,
`gatsby-plugin-sitemap`,
],
}
|
export default {
addBtn: {
backgroundColor: '#128fdc',
width: 30,
height: 30,
flex: [0, 0, '30px'],
color: '#fff',
alignSelf: 'flex-end',
boxShadow: '0 0 4px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24)',
},
container: {
display: 'flex',
},
list: {
flex: [1, 1, '90%'],
paddingRight: 15,
'& > li:not(:first-child)': {
marginTop: 15,
},
},
fieldWrapper: {
marginBottom: 15,
},
label: {
fontSize: 14,
marginBottom: 3,
color: '#333',
display: 'inline-block',
},
field: {
width: '100%',
height: 30,
background: '#fff',
borderRadius: 5,
border: '1px solid #e5e9f2',
padding: [0, 8],
},
item: {
borderBottom: '1px solid #c0c0c0',
paddingBottom: 12,
'& > *:not(:first-child)': {
marginTop: 12,
},
},
};
|
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){if(ord)return"other";return"other"}},messages:{"% of parent":"\uBD80\uBAA8\uC758 %","% of total":"\uC804\uCCB4\uC758 %","(Events)":"(\uC774\uBCA4\uD2B8)","(Extension)":"\uD655\uC7A5","(already installed)":"(\uC774\uBBF8 \uC124\uCE58\uB428)","(auto)":"(\uC790\uB3D9)","(on the desktop app only)":"\uC624\uC9C1 \uB370\uC2A4\uD06C\uD0D1 \uC571(\uC124\uCE58\uD615) \uC5D0\uC11C\uB9CC","(or paste actions)":"(\uB610\uB294 \uBD99\uC5EC\uB123\uAE30 \uC791\uC5C5)","(or paste conditions)":"(\uB610\uB294 \uBD99\uC5EC\uB123\uAE30 \uC0C1\uD0DC)","* (multiply by)":"* (\uACF1\uD558\uAE30)","+ (add)":"+ (\uB354\uD558\uAE30)","- (subtract)":"- (\uBE7C\uAE30)","/ (divide by)":"/ (\uB098\uB204\uAE30)","1st secondary editor":"1st secondary editor","2nd secondary editor":"2nd secondary editor","3rd secondary editor":"3rd secondary editor","8-bit Space Shooter":"8-\uBE44\uD2B8 \uC6B0\uC8FC \uC288\uD305 \uAC8C\uC784","< (less than)":"< (\uC774\uD558)","< Enter the name of external events >":"< \uC678\uBD80 \uC774\uBCA4\uD2B8\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694 >","<Create a New Extension>":"<\uC0C8 \uD655\uC7A5 \uB9CC\uB4E4\uAE30>","<Enter comment>":"\uBA54\uBAA8 \uC785\uB825","<Enter group name>":"<\uADF8\uB8F9 \uC774\uB984 \uC785\uB825>","= (equal to)":"= (\uAC19\uC74C)","= (set to)":"= (\uC124\uC815)","> (greater than)":"> (\uBCF4\uB2E4 \uD07C)","A beautiful, retro side-scrolling shooter where you must defeat incoming enemies with your mecha transforming spaceship. Huge boss included!":"\uC544\uB984\uB2E4\uC6B4 \uB808\uD2B8\uB85C\uC2A4\uD0C0\uC77C \uD6A1\uC2A4\uD06C\uB864 \uC288\uD305\uAC8C\uC784, \uB2F9\uC2E0\uC758 \uBCC0\uC2E0\uC6B0\uC8FC\uC120\uC73C\uB85C \uBAB0\uB824\uC624\uB294 \uC801\uB4E4\uC744 \uBB3C\uB9AC\uCE58\uC138\uC694. \uAC70\uB300 \uBCF4\uC2A4 \uD3EC\uD568!","A condition that can be used in other events sheet. You can define the conditions parameters: objects, texts, numbers, layers, etc...":"\uD574\uB2F9 \uC870\uAC74(condition) \uB2E4\uB978 \uC774\uBCA4\uD2B8 \uC2DC\uD2B8\uC5D0\uC11C\uB3C4 \uC0AC\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4. \uC870\uAC74(condition) \uB9E4\uAC1C\uBCC0\uC218(parameter) \uB97C \uC815\uC758\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4: \uC624\uBE0C\uC81D\uD2B8, \uD14D\uC2A4\uD2B8, \uB118\uBC84, \uB808\uC774\uC5B4 \uB4F1...","A hyper casual endless game where you have to collect shapes and avoid bombs, with a progressively increasing difficulty.":"\uC810\uC810 \uB09C\uC774\uB3C4\uAC00 \uC62C\uB77C\uAC00\uB294 \uAC00\uC6B4\uB370 \uD3ED\uD0C4\uC744 \uD53C\uD558\uBA70 \uC170\uC774\uD504\uB97C \uBAA8\uC73C\uB294 \uB9E4\uC6B0 \uCE90\uC8FC\uC5BC\uD55C \uB05D\uC5C6\uB294 \uAC8C\uC784.","A new physics engine (Physics Engine 2.0) is now available. You should prefer using it for new game. For existing games, note that the two behaviors are not compatible, so you should only use one of them with your objects.":"\uC0C8\uB85C\uC6B4 \uBB3C\uB9AC\uC5D4\uC9C4(Physics Engine 2.0) \uC744 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC0C8\uB85C\uC6B4 \uAC8C\uC784\uC5D0 \uC0AC\uC6A9\uD558\uB294\uAC83\uC774 \uC88B\uC2B5\uB2C8\uB2E4. \uAE30\uC874 \uAC8C\uC784\uC758 \uACBD\uC6B0 \uB450 \uAC00\uC9C0 \uB3D9\uC791\uC774 \uD638\uD658\uB418\uC9C0 \uC54A\uC73C\uBBC0\uB85C \uAC1C\uCCB4\uC911 \uD558\uB098\uB9CC \uC0AC\uC6A9\uD574\uC57C\uD569\uB2C8\uB2E4.","A simple platform game, with coins to collect, moving platforms and enemies.":"\uB3D9\uC804\uACFC \uD568\uAED8 \uD50C\uB7AB\uD3FC\uACFC \uC801\uC744 \uBAA8\uC73C\uB294 \uAC04\uB2E8\uD55C \uD50C\uB7AB\uD3FC \uAC8C\uC784","A temporary image to help you visualize the shape/polygon":"\uBAA8\uC591\uC774\uB098 \uC785\uCCB4\uBB3C\uC744 \uBCFC \uC218 \uC788\uB3C4\uB85D \uD558\uAE30 \uC704\uD55C \uC784\uC2DC \uC774\uBBF8\uC9C0","About GDevelop":"Gdevelop\uC5D0 \uB300\uD574","Action":"\uB3D9\uC791","Actions":"\uB3D9\uC791\uB4E4","Activate Fullscreen":"Full screen \uD65C\uC131\uD654","AdMob":"AdMob","AdMob application ID (for iOS and Android)":"AdMob \uC560\uD50C\uB9AC\uCF00\uC774\uC158 ID (iOS \uC640 Android)","Add":"\uCD94\uAC00\uD558\uAE30","Add a Long Description":"\uC124\uBA85 \uCD94\uAC00","Add a behavior to the object":"\uC624\uBE0C\uC81D\uD2B8\uC5D0 \uD589\uB3D9 \uCD94\uAC00","Add a comment":"Comment \uB2EC\uAE30","Add a layer":"\uB808\uC774\uC5B4 \uCD94\uAC00","Add a new behavior":"\uC0C8 \uD589\uB3D9 \uCD94\uAC00","Add a new behavior to the object":"\uC0C8 \uD589\uB3D9\uC744 \uAC1C\uCCB4(\uC624\uBE0C\uC81D\uD2B8) \uC5D0 \uCD94\uAC00","Add a new empty event":"\uBE48 \uC774\uBCA4\uD2B8\uCE78 \uC0DD\uC131","Add a new function":"\uC0C8 \uD568\uC218 \uCD94\uAC00","Add a new object":"\uC0C8 \uC624\uBE0C\uC81D\uD2B8 \uCD94\uAC00","Add a parameter":"\uB9E4\uAC1C \uBCC0\uC218\uB97C \uCD94\uAC00","Add a property":"\uC18D\uC131 \uCD94\uAC00","Add a sub-condition":"\uD558\uC704 \uC870\uAC74 \uCD94\uAC00","Add a sub-event to the selected event":"\uD574\uB2F9 \uC774\uBCA4\uD2B8\uC5D0 \uC11C\uBE0C \uC774\uBCA4\uD2B8 \uC0DD\uC131","Add action":"\uB3D9\uC791 \uCD94\uAC00","Add an animation":"\uC560\uB2C8\uBA54\uC774\uC158 \uCD94\uAC00\uD558\uAE30","Add an effect":"\uC774\uD399\uD2B8 \uCD94\uAC00\uD558\uAE30","Add child variable":"\uC790\uC2DD \uBCC0\uC218 \uCD94\uAC00","Add condition":"\uC870\uAC74 \uCD94\uAC00","Add effect":"\uC774\uD399\uD2B8 \uCD94\uAC00\uD558\uAE30","Add your first event using the first buttons of the toolbar.":"\uD234\uBC14\uC758 \uCCAB \uBC88\uC9F8 \uBC84\uD2BC\uC740 \uC0AC\uC6A9\uD558\uC5EC \uCCAB \uBC88\uC9F8 \uC774\uBCA4\uD2B8\uB97C \uCD94\uAC00","Add/update {0} tag(s)":function(a){return[a("0")," \uD0DC\uADF8 \uCD94\uAC00/\uC5C5\uB370\uC774\uD2B8\uB428"]},"Additive rendering":"\uCD94\uAC00 \uB80C\uB354\uB9C1","Advanced":"\uACE0\uAE09 \uC124\uC815","Advanced preview options (debugger, network preview...)":"\uACE0\uAE09 \uBBF8\uB9AC\uBCF4\uAE30 \uC635\uC158(\uB514\uBC84\uAC70, \uB124\uD2B8\uC6CC\uD06C \uBBF8\uB9AC\uBCF4\uAE30...)","All behaviors being directly referenced in the events:":"\uC774\uBCA4\uD2B8\uC5D0\uC11C \uC9C1\uC811 \uCC38\uC870\uD558\uB294 \uBAA8\uB4E0 \uBE44\uD5E4\uBE44\uC5B4\uB4E4","All objects potentially used in events: {0}":function(a){return["\uC774\uBCA4\uD2B8\uC5D0\uC11C \uC0AC\uC6A9\uAC00\uB2A5\uD55C \uBAA8\uB4E0 \uC624\uBE0C\uC81D\uD2B8\uB4E4: ",a("0")]},"All your builds":"\uB2F9\uC2E0\uC774 \uD55C \uBAA8\uB4E0 \uBE4C\uB4DC\uB4E4","Already have an account?":"\uC774\uBBF8 \uACC4\uC815\uC774 \uC788\uC73C\uC2ED\uB2C8\uAE4C?","An account allows you to access GDevelop services online.":"GDevelop \uC11C\uBE44\uC2A4\uC5D0 \uC811\uADFC\uC744 \uD5C8\uB77D\uD55C \uACC4\uC815","An action that can be used in other events sheet. You can define the action parameters: objects, texts, numbers, layers, etc...":"\uD574\uB2F9 \uC561\uC158\uC744 \uB2E4\uB978 \uC774\uBCA4\uD2B8 \uC2DC\uD2B8\uC5D0\uC11C\uB3C4 \uC0AC\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4. \uC561\uC158(action) \uB9E4\uAC1C\uBCC0\uC218(parameter) \uB97C \uC815\uC758\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4: \uC624\uBE0C\uC81D\uD2B8, \uD14D\uC2A4\uD2B8, \uB118\uBC84, \uB808\uC774\uC5B4 \uB4F1...","An action, condition or expression that can be used on objects that have the behavior attached to them. Use it from the events sheet as any other action/condition/expression.":"\uBE44\uD5E4\uBE44\uC5B4\uAC00 \uC788\uB294 \uC624\uBE0C\uC81D\uD2B8\uC5D0\uB294 \uB3D9\uC791\uC774\uB098 \uC0C1\uD0DC\uB098 \uD45C\uD604\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \n\uB2E4\uB978 \uB3D9\uC791/\uC0C1\uD0DC/\uD45C\uD604 \uCC98\uB7FC \uC774\uBCA4\uD2B8 \uC2DC\uD2B8\uC5D0\uC11C \uC0AC\uC6A9\uD558\uC138\uC694.","An autosave file (backup made automatically by GDevelop) that is newer than the project file exists. Would you like to load it instead?":"\uD504\uB85C\uC81D\uD2B8 \uD30C\uC77C\uBCF4\uB2E4 \uC0C8\uB85C\uC6B4 \uC790\uB3D9\uC800\uC7A5 \uD30C\uC77C(GDevelop\uC774 \uC790\uB3D9\uC73C\uB85C \uB9CC\uB4E0 \uBC31\uC5C5\uD30C\uC77C) \uC774 \uC788\uC2B5\uB2C8\uB2E4. \uC5F4\uC5B4\uBCFC\uAE4C\uC694?","An error happened while loading this extension. Please check that it is a proper extension file and compatible with this version of GDevelop":"\uC774 \uD655\uC7A5\uD504\uB85C\uADF8\uB7A8\uC744 \uC5EC\uB294\uB370, \uC5D0\uB7EC\uAC00 \uC788\uC2B5\uB2C8\uB2E4. GDevelop \uBC84\uC804\uC5D0 \uB9DE\uB294 \uC62C\uBC14\uB978 \uD655\uC7A5\uD504\uB85C\uADF8\uB7A8\uC778\uC9C0 \uD655\uC778\uD574\uC8FC\uC138\uC694.","An error has occured during functions generation. If GDevelop is installed, verify that nothing is preventing GDevelop from writing on disk. If you're running GDevelop online, verify your internet connection and refresh functions from the Project Manager.":"\uAE30\uB2A5\uB4E4\uC744 \uC0DD\uC131 \uB3C4\uC911\uC5D0 \uC5D0\uB7EC\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4. GDeveloop\uC774 \uC124\uCE58\uB418\uC5B4 \uC788\uB2E4\uBA74, \uB514\uC2A4\uD06C \uC4F0\uAE30\uAC00 \uAE08\uC9C0\uB41C \uAC74 \uC5C6\uB294\uC9C0 \uD655\uC778\uD574\uC8FC\uC138\uC694. GDevelop\uC774 \uC2E4\uD589\uC911\uC774\uBA74, \uC778\uD130\uB137 \uC5F0\uACB0\uC744 \uD655\uC778\uD558\uACE0 \uD504\uB85C\uC81D\uD2B8 \uB9E4\uB2C8\uC800\uC5D0\uC11C \uAE30\uB2A5\uB4E4\uC744 \uB9AC\uD504\uB808\uC2DC\uD558\uC138\uC694.","An example of a 2D physics based game, where players have to reach the end as fast as possible.":"2D \uBB3C\uB9AC\uAE30\uBC18 \uC6B4\uC804\uAC8C\uC784 \uC608\uC2DC, \uAC8C\uC784\uC5D0\uC11C \uD50C\uB808\uC774\uC5B4\uB294 \uAC00\uB2A5\uD55C \uBE60\uB974\uAC8C \uBAA9\uC801\uC9C0\uC5D0 \uB3C4\uCC29\uD574\uC57C \uD569\uB2C8\uB2E4.","An example of an isometric game where you can explore a map with your character.":"\uCE90\uB9AD\uD130\uB85C \uB9F5\uC744 \uB3CC\uC544\uB2E4\uB2C8\uB294 isometric(\uBE44\uC2A4\uB4EC\uD558\uAC8C \uB0B4\uB824\uB2E4\uBCF4\uB294) \uAC8C\uC784 \uC608\uC2DC","An expression that can be used in formulas. Can either return a number or a string, and take some parameters.":"An expression that can be used in formulas. Can either return a number or a string, and take some parameters.","An extension with this name already exists in the project. Importing this extension will replace it: are you sure you want to continue?":"\uC774 \uC774\uB984\uC744 \uAC00\uC9C4 \uD655\uC7A5\uAE30\uB2A5\uC774 \uD504\uB85C\uC81D\uD2B8\uC5D0 \uC774\uBBF8 \uC788\uC2B5\uB2C8\uB2E4. \uC774 \uD655\uC7A5\uAE30\uB2A5\uC744 \uBD88\uB7EC\uC624\uBA74 \uADF8\uAC78 \uB36E\uC5B4\uC501\uB2C8\uB2E4. \uC9C4\uD589\uD560\uAE4C\uC694?","Android (& iOS coming soon)":"Android (iOS\uB294 \uACE7 \uCD9C\uC2DC\uD569\uB2C8\uB2E4)","Android Build":"Android Build","Android icons:":"\uC548\uB4DC\uB85C\uC774\uB4DC \uC544\uC774\uCF58\uB4E4:","Angle":"\uAC01\uB3C4","Animation":"\uC560\uB2C8\uBA54\uC774\uC158","Animation #{i} {0}":function(a){return["\uC560\uB2C8\uBA54\uC774\uC158 #",a("i")," ",a("0")]},"Another extension with this name already exists.":"\uC774 \uC774\uB984\uC744 \uAC00\uC9C4 \uB2E4\uB978 \uD655\uC7A5\uAE30\uB2A5\uC774 \uC774\uBBF8 \uC788\uC2B5\uB2C8\uB2E4.","Another external layout with this name already exists.":"\uC774 \uC774\uB984\uC744 \uAC00\uC9C4 \uB2E4\uB978 \uC678\uBD80 \uB808\uC774\uC544\uC6C3\uC774 \uC774\uBBF8 \uC788\uC2B5\uB2C8\uB2E4.","Another scene with this name already exists.":"\uC774 \uC774\uB984\uC744 \uAC00\uC9C4 \uB2E4\uB978 \uC52C\uC774 \uC774\uBBF8 \uC788\uC2B5\uB2C8\uB2E4.","Any additional properties will appear here if you add behaviors to objects, like Physics behavior.":"\uBB3C\uB9AC \uB3D9\uC791\uAC19\uC740 \uB3D9\uC791\uC744 \uC624\uBE0C\uC81D\uD2B8\uC5D0 \uCD94\uAC00\uD558\uBA74, \uC5EC\uAE30\uC5D0 \uCD94\uAC00 \uC18D\uC131\uB4E4\uC774 \uBCF4\uC785\uB2C8\uB2E4.","Any object":"\uC624\uBE0C\uC81D\uD2B8","Any unsaved changes in the project will be lost.":"Any unsaved changes in the project will be lost.","Appearance":"\uC678\uAD00","Apply":"\uC801\uC6A9\uD558\uAE30","Are you sure you want to cancel your subscription?":"\uC815\uB9D0 \uAD6C\uB3C5\uC744 \uCDE8\uC18C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?","Are you sure you want to quit GDevelop?":"Are you sure you want to quit GDevelop?","Are you sure you want to remove these external events? This can't be undone.":"\uC774 \uC678\uBD80 \uC774\uBCA4\uD2B8\uB4E4\uC744 \uC9C0\uC6B8\uAE4C\uC694? \uC9C4\uD589\uD558\uBA74 \uB418\uB3CC\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","Are you sure you want to remove this extension? This can't be undone.":"\uC774 \uD655\uC7A5\uAE30\uB2A5\uC744 \uC9C0\uC6B8\uAE4C\uC694? \uC9C4\uD589\uD558\uBA74 \uB418\uB3CC\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","Are you sure you want to remove this external layout? This can't be undone.":"\uC774 \uC678\uBD80 \uB808\uC774\uC544\uC6C3\uC744 \uC9C0\uC6B8\uAE4C\uC694? \uC9C4\uD589\uD558\uBA74 \uB418\uB3CC\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","Are you sure you want to remove this scene? This can't be undone.":"\uC774 \uC52C\uC744 \uC9C0\uC6B8\uAE4C\uC694? \uC9C4\uD589\uD558\uBA74 \uB418\uB3CC\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","Are you sure you want to subscribe to this new plan?":"\uC774 \uD50C\uB79C\uC744 \uAD6C\uB3C5\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?","Audio files":"\uC624\uB514\uC624 \uD30C\uC77C","Audio resource":"Audio resource","Author (Name, email or GitHub handle)":"\uB9CC\uB4E0\uC0AC\uB78C (\uC774\uB984, \uC774\uBA54\uC77C \uD639\uC740 github)","Author name":"\uB9CC\uB4E0 \uC0AC\uB78C \uC774\uB984","Auto download and install updates (recommended)":"\uC790\uB3D9 \uB2E4\uC6B4\uB85C\uB4DC \uBC0F \uC5C5\uB370\uC774\uD2B8 \uC124\uCE58(\uCD94\uCC9C)","Auto-save project on Preview":"\uBBF8\uB9AC\uBCF4\uAE30 \uD560 \uB54C \uD504\uB85C\uC81D\uD2B8 \uC790\uB3D9 \uC800\uC7A5\uD558\uAE30","Back":"\uB4A4\uB85C\uAC00\uAE30","Background color":"\uBC30\uACBD \uC0C9\uC0C1","Background color:":"\uBC30\uACBD\uC0C9","Behavior":"\uB3D9\uC791","Behavior (for the previous object)":"\uB3D9\uC791(\uC55E\uC5D0 \uC624\uBE0C\uC81D\uD2B8\uC6A9)","Behavior functions":"\uB3D9\uC791 \uAE30\uB2A5","Behavior name":"\uB3D9\uC791 \uC774\uB984","Behavior type":"\uB3D9\uC791 \uC885\uB958","Behaviors":"\uB3D9\uC791\uB4E4","Behaviors of {objectOrGroupName}: {0} ;":function(a){return[a("objectOrGroupName")," \uC758 \uB3D9\uC791\uB4E4: ",a("0")," ;"]},"Bold":"\uAD75\uAE30","Boolean (checkbox)":"\uBD88\uB9AC\uC5B8(\uCCB4\uD06C\uBC15\uC2A4)","Bottom margin":"\uD558\uB2E8 \uC5EC\uBC31","Box":"\uC0C1\uC790","Breakout Tutorial":"\uBE0C\uB808\uC774\uD06C\uC544\uC6C3 \uC2E4\uC2B5","Build and download":"\uC81C\uC791 \uBC0F \uB2E4\uC6B4\uB85C\uB4DC","Build could not start or errored. Please check your internet connection or try again later.":"\uBE4C\uB4DC\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uAC70\uB098 \uC5D0\uB7EC\uC785\uB2C8\uB2E4. \uC778\uD130\uB137 \uC5F0\uACB0\uC744 \uD655\uC778\uD558\uAC70\uB098, \uC880 \uC788\uB2E4 \uB2E4\uC2DC \uD55C \uBC88 \uD574\uBCF4\uC138\uC694.","Build is starting...":"\uBE4C\uB4DC\uB97C \uC2DC\uC791\uD569\uB2C8\uB2E4.","Build the game locally and export it manually to Windows, macOS or Linux with third-party developer tools.":"\uB85C\uCEEC\uC5D0\uC11C \uAC8C\uC784\uC744 \uAD6C\uCD95\uD558\uACE0 \uC11C\uB4DC\uD30C\uD2F0 \uAC1C\uBC1C \uB3C4\uAD6C\uB97C \uC0AC\uC6A9\uD558\uC5EC Windows, MacOS \uB610\uB294 Linux\uB85C \uC218\uB3D9\uC73C\uB85C \uB0B4\uBCF4\uB0B4\uC2ED\uC2DC\uC624.","Build the game locally as a Cordova project, and export it manually then to iOS or Android with Cordova developers tools.":"Cordova \uD504\uB85C\uC81D\uD2B8\uB85C \uB85C\uCEEC\uC5D0\uC11C \uAC8C\uC784\uC744 \uAD6C\uCD95\uD558\uACE0, Cordova \uAC1C\uBC1C \uB3C4\uAD6C\uB97C \uC0AC\uC6A9\uD558\uC5EC iOS \uB610\uB294 Android\uB85C \uC218\uB3D9\uC73C\uB85C \uB0B4\uBCF4\uB0B4\uC2ED\uC2DC\uC624.","Build the game locally as a Cordova project, and export it manually to iOS or Android with Cordova developers tools.":"\uAC8C\uC784\uC744 Cordova \uD504\uB85C\uC81D\uD2B8\uB85C \uB85C\uCEEC\uB85C \uAD6C\uCD95\uD558\uACE0, Cordova \uAC1C\uBC1C\uC790 \uD234\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC218\uB3D9\uC73C\uB85C iOS \uB610\uB294 Android\uC6A9\uC73C\uB85C \uCD9C\uB825\uD569\uB2C8\uB2E4.","Build the game locally as a HTML5 game. You can then publish it on website like Kongregate, Game Jolt, itch.io, Poki...":"HTML5 \uAC8C\uC784\uC744 \uB85C\uCEEC\uB85C \uAD6C\uCD95\uD558\uC2ED\uC2DC\uC624. \uADF8\uB9AC\uACE0 \uB098\uBA74 \uB2F9\uC2E0\uC740 Kongregat, Game Jolt, itch.io, Poki\uC640 \uAC19\uC740 \uC6F9\uC0AC\uC774\uD2B8\uC5D0 \uAC8C\uC2DC\uD560 \uC218 \uC788\uB2E4.","By creating an account and using GDevelop, you agree to the Terms and Conditions. Having an account allows to export your game on Android, as a desktop app and unlock other services for your project!":"GDevelop \uACC4\uC815\uC744 \uC0DD\uC131\uD558\uC5EC \uC774\uC6A9\uC57D\uAD00\uC5D0 \uB3D9\uC758\uD558\uC2ED\uC2DC\uC624. \uACC4\uC815\uC774 \uC788\uC73C\uBA74 \uB2F9\uC2E0\uC758 \uAC8C\uC784\uC744 \uC548\uB4DC\uB85C\uC774\uB4DC\uB098 \uB370\uC2A4\uD06C\uD1B1\uC6A9 \uC5B4\uD50C\uB9AC\uCF00\uC774\uC158\uC73C\uB85C \uCD9C\uB825\uD558\uAC70\uB098 \uB2F9\uC2E0\uC758 \uD504\uB85C\uC81D\uD2B8\uC5D0\uC11C \uAE30\uD0C0 \uC11C\uBE44\uC2A4\uB97C \uC774\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4!","Can't load the extension registry. Verify your internet connection or try again later.":"\uD655\uC7A5\uAE30\uB2A5 \uB808\uC9C0\uC2A4\uD2B8\uB9AC\uB97C \uC5F4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC778\uD130\uB137 \uC5F0\uACB0\uC744 \uC810\uAC80\uD558\uAC70\uB098 \uC870\uAE08 \uC788\uB2E4\uAC00 \uB2E4\uC2DC \uD55C \uBC88 \uD574\uBCF4\uC138\uC694.","Can't properly export the game.":"\uAC8C\uC784\uC744 \uC62C\uBC14\uB974\uAC8C \uB0B4\uBCF4\uB0BC \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","Can't upload your game to the build service.":"\uAC8C\uC784\uC744 \uBE4C\uB4DC \uC11C\uBE44\uC2A4\uC5D0 \uC5C5\uB85C\uB4DC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","Cancel":"\uCDE8\uC18C","Cancel and close":"\uCDE8\uC18C \uD6C4 \uB2EB\uAE30","Cancel your subscription":"\uAD6C\uB3C5 \uCDE8\uC18C","Case insensitive":"\uB300\uC18C\uBB38\uC790 \uAD6C\uBD84","Cell height (in pixels)":"\uCE78 \uB192\uC774(\uD53D\uC140\uB2E8\uC704)","Cell width (in pixels)":"\uCE78 \uD3ED(\uD53D\uC140\uB2E8\uC704)","Center":"\uC911\uC559","Change editor zoom":"\uD3B8\uC9D1\uAE30 zoom\uC744 \uBCC0\uACBD\uD569\uB2C8\uB2E4.","Change height to fit the screen or window size":"\uD654\uBA74 \uB610\uB294 \uCC3D \uD06C\uAE30\uC5D0 \uB9DE\uAC8C \uB192\uC774\uB97C \uBCC0\uACBD","Change the content of {propertyLabel}":function(a){return[a("propertyLabel")," \uC758 \uB0B4\uC6A9 \uBCC0\uACBD"]},"Change the value of {propertyLabel}":function(a){return[a("propertyLabel")," \uC758 \uAC12 \uBCC0\uACBD"]},"Change width to fit the screen or window size":"\uD654\uBA74 \uB610\uB294 \uCC3D \uD06C\uAE30\uC5D0 \uB9DE\uAC8C \uB108\uBE44 \uBCC0\uACBD","Check that the file exists, that this file is a proper game created with GDevelop and that you have the authorizations to open it.":"\uD30C\uC77C\uC774 \uC874\uC7AC\uD558\uB294\uC9C0, \uD30C\uC77C\uC774 GDevelop\uC73C\uB85C \uB9CC\uB4E4\uC5B4\uC84C\uB294\uC9C0, \uB2F9\uC2E0\uC5D0\uAC8C \uC5F4\uB78C\uD560 \uAD8C\uD55C\uC774 \uC788\uB294\uC9C0 \uD655\uC778\uD569\uB2C8\uB2E4.","Check that the path/URL is correct, that you selected a file that is a game file created with GDevelop and that is was not removed.":"Path/URL\uC774 \uB9DE\uB294\uC9C0, GDevelop\uC73C\uB85C \uB9CC\uB4E4\uC5B4\uC9C4 \uAC8C\uC784 \uD30C\uC77C\uC744 \uACE8\uB790\uB294\uC9C0, \uADF8\uB9AC\uACE0 \uADF8\uAC83\uC774 \uC0AD\uC81C\uB418\uC9C0 \uC54A\uC558\uB294\uC9C0 \uD655\uC778\uD569\uB2C8\uB2E4.","Check that you don't have any blocked popup (if so, allow them and retry) and that you have the authorizations for reading the file you're trying to access.":"\uD31D\uC5C5 \uCC28\uB2E8\uC774 \uC5C6\uB294\uC9C0 \uD655\uC778\uD558\uACE0 (\uADF8\uB807\uB2E4\uBA74 \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD558\uACE0 \uC7AC\uC2DC\uB3C4\uD558\uC2ED\uC2DC\uC624) \uC561\uC138\uC2A4\uD558\uB824\uB294 \uD30C\uC77C\uC744 \uC77D\uC744 \uC218 \uC788\uB294 \uAD8C\uD55C\uC774 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC2ED\uC2DC\uC624.","Check the logs to see if there is an explanation about what went wrong, or try again later.":"\uBB38\uC81C\uC810 \uC124\uBA85\uC774 \uC788\uB294\uC9C0 \uBCF4\uB824\uBA74 \uB85C\uADF8\uB97C \uD655\uC778\uD558\uC138\uC694. \uC544\uB2C8\uBA74 \uC880 \uC788\uB2E4 \uB2E4\uC2DC \uD55C \uBC88 \uD574\uBCF4\uC138\uC694.","Check the value of {propertyLabel}":function(a){return[a("propertyLabel")," \uAC12\uC744 \uD655\uC778\uD558\uAE30"]},"Choose":"\uACE0\uB974\uC138\uC694.","Choose GDevelop language":"GDevelop \uC5B8\uC5B4 \uACE0\uB974\uAE30","Choose a Json File from the library":"Json\uD30C\uC77C\uC744 \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0\uC11C \uC120\uD0DD\uD558\uAE30","Choose a file":"\uD30C\uC77C \uC120\uD0DD","Choose a file or folder":"\uD30C\uC77C\uC774\uB098 \uD3F4\uB354\uB97C \uC120\uD0DD","Choose a folder for the new game":"\uC0C8 \uAC8C\uC784\uC744 \uC704\uD55C \uD3F4\uB354 \uC120\uD0DD\uD558\uAE30","Choose a font":"\uAE00\uAF34 \uC120\uD0DD\uD558\uAE30","Choose a font file":"\uAE00\uAF34 \uC120\uD0DD\uD558\uAE30","Choose a font from the library":"\uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0\uC11C \uAE00\uAF34 \uC120\uD0DD\uD558\uAE30","Choose a function, or a function of a behavior, to edit its events.":"\uC774\uBCA4\uD2B8 \uC218\uC815\uC5D0 \uC0AC\uC6A9\uD560 \uD568\uC218\uB098 \uB3D9\uC791\uAE30\uB2A5\uB97C \uC120\uD0DD\uD558\uAE30","Choose a function, or a function of a behavior, to set the parameters that it accepts.":"\uB9E4\uAC1C\uBCC0\uC218 \uC124\uC815\uC5D0 \uC0AC\uC6A9\uD560 \uD568\uC218\uB098 \uB3D9\uC791\uAE30\uB2A5\uB97C \uC120\uD0DD\uD558\uAE30","Choose a game to use as a starter:":"\uC2DC\uC791\uC5D0 \uC0AC\uC6A9\uD560 \uAC8C\uC784 \uC120\uD0DD\uD558\uAE30","Choose a json file":"Json \uD30C\uC77C \uC120\uD0DD\uD558\uAE30","Choose a key":"\uD0A4 \uC120\uD0DD\uD558\uAE30","Choose a mouse button":"\uB9C8\uC6B0\uC2A4 \uBC84\uD2BC \uC120\uD0DD\uD558\uAE30","Choose a new behavior function (\"method\")":"\uC0C8\uB85C\uC6B4 \uB3D9\uC791\uAE30\uB2A5(\"method\") \uC120\uD0DD\uD558\uAE30","Choose a new extension function":"Choose a new extension function","Choose a subscription":"\uAC00\uC785\uAD6C\uB3C5 \uC120\uD0DD\uD558\uAE30","Choose a video file":"\uBE44\uB514\uC624 \uD30C\uC77C \uC120\uD0DD\uD558\uAE30","Choose a video from the library":"\uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0\uC11C \uBE44\uB514\uC624 \uC120\uD0DD\uD558\uAE30","Choose an animation and frame to edit the collision masks":"\uCDA9\uB3CC \uB9C8\uC2A4\uD06C \uC218\uC815\uC5D0 \uC0AC\uC6A9\uD560 \uC560\uB2C8\uBA54\uC774\uC158\uACFC \uD504\uB808\uC784 \uC120\uD0DD\uD558\uAE30","Choose an animation and frame to edit the points":"\uD3EC\uC778\uD2B8 \uC218\uC815\uC5D0 \uC0AC\uC6A9\uD560 \uC560\uB2C8\uBA54\uC774\uC158\uACFC \uD504\uB808\uC784 \uC120\uD0DD\uD558\uAE30","Choose an audio file":"\uC624\uB514\uC624 \uD30C\uC77C \uC120\uD0DD\uD558\uAE30","Choose an audio file from the library":"\uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0\uC11C \uC624\uB514\uC624 \uD30C\uC77C \uC120\uD0DD\uD558\uAE30","Choose an element to inspect in the list":"\uBAA9\uB85D\uC5D0\uC11C \uAC80\uC0AC\uD560 \uC694\uC18C \uC120\uD0DD","Choose an export folder":"\uB0B4\uBCF4\uB0B4\uAE30 \uD3F4\uB354 \uC120\uD0DD\uD558\uAE30","Choose an image":"\uC774\uBBF8\uC9C0 \uC120\uD0DD\uD558\uAE30","Choose an image from the library":"\uB77C\uC774\uBE0C\uB7EC\uB9AC\uC5D0\uC11C \uC774\uBBF8\uC9C0 \uC120\uD0DD\uD558\uAE30","Choose an object":"\uC624\uBE0C\uC81D\uD2B8 \uC120\uD0DD\uD558\uAE30","Choose an object to add to the group":"\uADF8\uB8F9\uC5D0 \uCD94\uAC00\uD560 \uC624\uBE0C\uC81D\uD2B8 \uC120\uD0DD\uD558\uAE30","Choose an operator":"\uC5F0\uC0B0\uC790 \uC120\uD0DD","Choose an option":"\uC635\uC158 \uC120\uD0DD","Choose and add an event":"\uC774\uBCA4\uD2B8\uB97C \uC120\uD0DD \uBC0F \uCD94\uAC00","Choose folder":"\uD3F4\uB354 \uC120\uD0DD\uD558\uAE30","Choose or search for an example to open:":"\uBD88\uB7EC\uC62C \uC608\uC81C\uB97C \uC120\uD0DD\uD558\uAC70\uB098 \uAC80\uC0C9\uD558\uAE30","Choose the associated scene":"\uAD00\uB828 \uC52C \uC120\uD0DD\uD558\uAE30","Choose the audio file to use":"\uC0AC\uC6A9\uD560 \uC624\uB514\uC624\uD30C\uC77C \uC120\uD0DD\uD558\uAE30","Choose the effect to apply":"\uC801\uC6A9 \uC774\uD399\uD2B8 \uC9C0\uC815","Choose the json file to use":"\uC0AC\uC6A9\uD560 json \uD30C\uC77C \uC120\uD0DD\uD558\uAE30","Choose the scene":"\uC52C \uC120\uD0DD\uD558\uAE30","Choose the video file to use":"\uC0AC\uC6A9\uD560 \uBE44\uB514\uC624 \uD30C\uC77C \uC120\uD0DD\uD558\uAE30","Choose this plan":"\uC774 \uD50C\uB79C \uC120\uD0DD\uD558\uAE30","Choose where to create the game":"\uAC8C\uC784\uC744 \uC0DD\uC131\uD560 \uACF3 \uC120\uD0DD\uD558\uAE30","Choose where to export the game":"\uAC8C\uC784\uC744 \uB0B4\uBCF4\uB0BC \uACF3 \uC120\uD0DD\uD558\uAE30","Choose where to load the project from":"\uD504\uB85C\uC81D\uD2B8\uB97C \uC5EC\uAE30\uC11C \uBD88\uB7EC\uC635\uB2C8\uB2E4:","Choose where to save the project to":"\uD504\uB85C\uC81D\uD2B8\uB97C \uC5EC\uAE30\uC5D0 \uC800\uC7A5\uD569\uB2C8\uB2E4:","Choose...":"\uC120\uD0DD \uC911...","Circle":"\uC6D0","Click on an instance in the scene to display its properties":"\uC52C\uC5D0 \uC18D\uC131\uC744 \uD45C\uC2DC\uD558\uB824\uBA74 \uC778\uC2A4\uD134\uC2A4\uB97C \uD074\uB9AD\uD558\uC138\uC694.","Click to add a group":"\uADF8\uB8F9\uC5D0 \uCD94\uAC00\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC138\uC694.","Click to add a scene":"\uC52C\uC744 \uCD94\uAC00\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC138\uC694.","Click to add an external layout":"\uC678\uBD80 \uB808\uC774\uC544\uC6C3\uC744 \uCD94\uAC00\uD558\uB824\uBA74 \uC120\uD0DD\uD558\uC138\uC694.","Click to add external events":"\uC678\uBD80 \uC774\uBCA4\uD2B8\uB97C \uCD94\uAC00\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC138\uC694.","Click to add functions and behaviors":"\uAE30\uB2A5\uC774\uB098 \uB3D9\uC791\uC744 \uCD94\uAC00\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC138\uC694.","Click to choose":"\uC120\uD0DD\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC138\uC694.","Close":"\uB2EB\uAE30","Close Project":"\uD504\uB85C\uC81D\uD2B8 \uB2EB\uAE30","Close project":"\uD504\uB85C\uC81D\uD2B8 \uB2EB\uAE30","Close the project? Any changes that have not been saved will be lost.":"\uD504\uB85C\uC81D\uD2B8\uB97C \uB2EB\uC744\uAE4C\uC694? \uC800\uC7A5\uD558\uC9C0 \uC54A\uC740 \uBCC0\uACBD\uC0AC\uD56D\uC740 \uB0A0\uC544\uAC11\uB2C8\uB2E4.","Cocos2d-JS":"Cocos2d-JS","Code editor Theme":"\uCF54\uB4DC \uC5D0\uB514\uD130 \uD14C\uB9C8","Collisions handling with the Physics engine":"\uBB3C\uB9AC \uC5D4\uC9C4\uC744 \uC774\uC6A9\uD55C \uCDA9\uB3CC \uCC98\uB9AC","Color":"\uC0C9","Color (text)":"\uC0C9\uC0C1(\uD14D\uC2A4\uD2B8)","Color:":"\uC0C9\uC0C1:","Community Discord Chat":"\uCEE4\uBBA4\uB2C8\uD2F0 \uB514\uC2A4\uCF54\uB4DC \uCC44\uD305\uBC29","Community Forums":"\uCEE4\uBBA4\uB2C8\uD2F0 \uD3EC\uB7FC","Community Tutorials":"\uCEE4\uBBA4\uB2C8\uD2F0 \uC2E4\uC2B5","Community forum":"\uCEE4\uBBA4\uB2C8\uD2F0 \uD3EC\uB7FC","Compare the content of {propertyLabel}":function(a){return[a("propertyLabel")," \uB0B4\uC6A9 \uBE44\uAD50\uD558\uAE30"]},"Compare the value of {propertyLabel}":function(a){return[a("propertyLabel")," \uAC12 \uBE44\uAD50\uD558\uAE30"]},"Compressing before upload...":"\uC5C5\uB85C\uB4DC\uC804 \uC555\uCD95\uD558\uB294 \uC911...","Condition":"\uC870\uAC74","Conditions":"\uC870\uAC74\uB4E4","Configuration":"\uC124\uC815","Confirm the opening":"\uC5F4\uB9BC\uC744 \uD655\uC778\uD558\uAE30","Congratulations, your new subscription is now active! nYou can now use the services unlocked with this plan.":"\uCD95\uD558\uD569\uB2C8\uB2E4, \uC0C8\uB85C\uC6B4 \uAD6C\uB3C5\uC774 \uD65C\uC131\uD654\uB418\uC5C8\uC2B5\uB2C8\uB2E4, n\uC774\uC81C \uC774 \uACC4\uD68D\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C\uB41C \uC11C\uBE44\uC2A4\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC788\uB2E4.","Continue anyway":"\uADF8\uB0E5 \uC9C4\uD589\uD558\uAE30","Contribute to GDevelop":"GDevelop\uC5D0 \uAE30\uC5EC\uD558\uAE30","Contributors":"\uB3C4\uC640\uC900 \uC0AC\uB78C\uB4E4","Contributors, in no particular order:":"\uB3C4\uC6C0\uC744 \uC900 \uC0AC\uB78C\uB4E4, \uD2B9\uC815\uD55C \uC21C\uC11C \uC5C6\uC774:","Could not launch the preview":"\uBBF8\uB9AC \uBCF4\uAE30\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","Create":"\uB9CC\uB4E4\uAE30","Create Extensions for GDevelop":"GDevelop \uD655\uC7A5\uAE30\uB2A5 \uB9CC\uB4E4\uAE30","Create a GDevelop account to continue. It's free and you'll be able to access to online services like one-click build for Android:":"GDevelop \uACC4\uC815 \uB9CC\uB4E4\uAE30. \uC548\uB4DC\uB85C\uC774\uB4DC\uC6A9 \uC6D0\uD130\uCE58 \uBE4C\uB4DC \uAC19\uC740 \uC11C\uBE44\uC2A4\uB97C \uC774\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uACF5\uC9DC\uC5D0\uC694.","Create a New Project...":"\uC0C8 \uD504\uB85C\uC81D\uD2B8 \uB9CC\uB4E4\uAE30...","Create a new GDevelop account":"\uC0C8\uB85C\uC6B4 GDevelop \uACC4\uC815 \uB9CC\uB4E4\uAE30","Create a new game":"\uC0C8 \uAC8C\uC784 \uB9CC\uB4E4\uAE30","Create a new instance on the scene (will be at position 0;0):":"\uC52C\uC5D0 \uC0C8 \uC778\uC2A4\uD134\uC2A4 \uB9CC\uB4E4\uAE30(\uC704\uCE58\uB294 0,0 \uC67C\uCABD\uC704): ","Create a new project":"\uC0C8 \uD504\uB85C\uC81D\uD2B8 \uB9CC\uB4E4\uAE30","Create a simple breakout game where you must destroy all the bricks on the screen.":"\uAC04\uB2E8\uD55C \uB54C\uB824\uBD80\uC218\uAE30 \uAC8C\uC784 \uB9CC\uB4E4\uAE30. \uD50C\uB808\uC774\uC5B4\uB294 \uD654\uBA74\uC5D0 \uBAA8\uB4E0 \uBE14\uB9AD\uC744 \uC5C6\uC560\uC57C \uD569\uB2C8\uB2E4.","Create a simple game where you must dodge the cars on the road.":"\uAC04\uB2E8\uD55C \uAC8C\uC784 \uB9CC\uB4E4\uAE30. \uD50C\uB808\uC774\uC5B4\uB294 \uB3C4\uB85C\uC5D0\uC11C \uC790\uB3D9\uCC28\uB4E4\uC744 \uD53C\uD574\uC57C \uD569\uB2C8\uB2E4.","Create my account":"\uB0B4 \uACC4\uC815 \uB9CC\uB4E4\uAE30","Create your own behavior":"\uB098\uB9CC\uC758 \uB3D9\uC791\uB9CC\uB4E4\uAE30","Custom":"\uC0AC\uC6A9\uC790 \uC815\uC758","Custom (action, condition or expression)":"\uC0AC\uC6A9\uC790 \uC815\uC758(\uB3D9\uC791, \uC0C1\uD0DC, \uD45C\uD604)","Debug mode (show FPS counter and stats in the bottom left)":"\uB514\uBC84\uADF8 \uBAA8\uB4DC(\uC67C\uCABD\uC544\uB798 FPS \uCE74\uC6B4\uD130\uC640 \uC218\uCE58\uB4E4\uC774 \uBCF4\uC784)","Debugger":"\uB514\uBC84\uAC70","Debugger is starting...":"\uB514\uBC84\uAC70\uAC00 \uC2DC\uC791\uC911\uC785\uB2C8\uB2E4...","Default height (in pixels)":"\uAE30\uBCF8 \uB192\uC774(\uD53D\uC140)","Default value":"\uAE30\uBCF8\uAC12","Default width (in pixels)":"\uAE30\uBCF8 \uD3ED(\uD53D\uC140)","Delete":"\uC9C0\uC6B0\uAE30","Delete the selected event(s)":"\uC120\uD0DD\uB41C \uC774\uBCA4\uD2B8(\uB4E4)\uB97C \uC81C\uAC70","Delete the selected instances from the scene":"\uC120\uD0DD\uB41C \uAC1D\uCCB4\uB97C scene\uC5D0\uC11C \uC81C\uAC70","Delete the selected resource":"\uC120\uD0DD\uB41C \uB9AC\uC18C\uC2A4\uB97C \uC0AD\uC81C","Delete when out of particles":"\uD30C\uD2F0\uD074\uC774 \uB098\uAC00\uBA74 \uC9C0\uC6B0\uAE30","Description":"\uC124\uBA85","Description (markdown supported)":"\uC124\uBA85(\uB9C8\uD06C\uB2E4\uC6B4 \uC9C0\uC6D0)","Description, displayed in editor":"\uC124\uBA85, \uC5D0\uB514\uD130\uC5D0 \uD45C\uC2DC","Desktop (Windows, macOS and Linux) icon:":"\uB370\uC2A4\uD06C\uD0D1 \uC544\uC774\uCF58(\uC708\uB3C4\uC6B0\uC988, \uB9E5OS, \uB9AC\uB205\uC2A4):","Device orientation (for iOS and Android)":"\uAE30\uAE30 \uBC29\uD5A5(iOS\uC640 \uC548\uB4DC\uB85C\uC774\uB4DC\uC6A9)","Direction":"\uBC29\uD5A5","Direction #{i}":function(a){return["\uBC29\uD5A5 #",a("i")]},"Disable GDevelop splash at startup":"\uC2DC\uC791\uD560 \uB54C GDevelop \uC2A4\uD50C\uB798\uC2DC \uD654\uBA74 \uB744\uC6B0\uC9C0 \uC54A\uC74C","Display GDevelop splash at startup (in exported game)":"\uC2DC\uC791\uD560 \uB54C GDevelop \uC2A4\uD50C\uB798\uC2DC \uD654\uBA74 \uB744\uC6B0\uAE30 (\uB0B4\uBCF4\uB0B8 \uAC8C\uC784\uC5D0\uC11C)","Display What's New when a new version is launched (recommended)":"\uC0C8 \uBC84\uC804\uC774 \uB728\uBA74, \uBC14\uB010 \uC810 \uD45C\uC2DC\uD558\uAE30(\uCD94\uCC9C)","Display assignment operators in Events Sheets":"\uC774\uBCA4\uD2B8 \uC2DC\uD2B8\uC5D0 \uD560\uB2F9 \uC5F0\uC0B0\uC790 \uD45C\uC2DC","Display object thumbnails in Events Sheets":"\uC774\uBCA4\uD2B8 \uC2DC\uD2B8\uC5D0 \uC624\uBE0C\uC81D\uD2B8 \uC378\uB124\uC77C \uD45C\uC2DC\uD558\uAE30","Don't have an account yet?":"\uC544\uC9C1 \uACC4\uC815\uC774 \uC5C6\uC2B5\uB2C8\uAE4C?","Done":"\uC644\uB8CC","Done!":"\uC644\uB8CC!","Double click on a condition or action to edit it.":"'\uC870\uAC74'\uC774\uB098 '\uC561\uC158'\uC744 \uB354\uBE14\uD074\uB9AD\uD558\uACE0 \uD3B8\uC9D1\uD558\uC138\uC694.","Double tap a condition or action to edit it. Long press to show more options.":"\uC870\uAC74\uC744 \uB354\uBE14\uD074\uB9AD\uD574\uC11C \uD3B8\uC9D1\uD558\uC138\uC694. \uB354 \uB9CE\uC740 \uC124\uC815\uC744 \uBCF4\uACE0 \uC2F6\uC73C\uBA74 \uAE38\uAC8C \uB204\uB974\uC138\uC694.","Download":"\uB2E4\uC6B4\uB85C\uB4DC","Download GDevelop desktop app":"\uB370\uC2A4\uD06C\uD0D1\uC6A9 GDevelop \uC571 \uB2E4\uC6B4\uB85C\uB4DC","Download GDevelop desktop version":"GDevelop \uB370\uC2A4\uD06C\uD0D1 \uBC84\uC804 \uB2E4\uC6B4\uB85C\uB4DC","Download GDevelop desktop version to generate the Android and iOS icons of your game.":"\uC548\uB4DC\uB85C\uC774\uB4DC\uC640 iOS\uC6A9 \uAC8C\uC784 \uC544\uC774\uCF58\uC744 \uB9CC\uB4E4\uB824\uBA74, GDevelop \uB370\uC2A4\uD06C\uD0D1 \uBC84\uC804\uC744 \uB2E4\uC6B4\uB85C\uB4DC \uD558\uC138\uC694.","Download a copy":"\uBCF5\uC0AC\uBCF8 \uB2E4\uC6B4\uB85C\uB4DC","Download game file":"\uAC8C\uC784 \uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC\uD558\uAE30","Download the Instant Game archive":"Instant Game archive \uB2E4\uC6B4\uB85C\uB4DC","Download the exported game":"\uB0B4\uBCF4\uB0B8 \uAC8C\uC784 \uB2E4\uC6B4\uB85C\uB4DC","Download the full version of GDevelop on your desktop computer to create your own game without limits!":"GDevelop \uD480\uBC84\uC804\uC744 \uCEF4\uD4E8\uD130\uC5D0 \uB2E4\uC6B4\uB85C\uB4DC\uD558\uACE0 \uC81C\uD55C\uC5C6\uC774 \uB2F9\uC2E0\uB9CC\uC758 \uAC8C\uC784\uC744 \uB9CC\uB4E4\uC5B4\uBCF4\uC138\uC694!","Downloading game resources...":"\uAC8C\uC784 \uB9AC\uC18C\uC2A4\uB97C \uB2E4\uC6B4\uB85C\uB4DC\uD558\uB294 \uC911...","Drag and Drop the object icon to the scene or long press to show options to edit the object.":"Scene\uC73C\uB85C\uBD80\uD130 \uC624\uBE0C\uC81D\uD2B8 \uC544\uC774\uCF58\uC744 \uB4DC\uB798\uADF8\uD558\uAC70\uB098 \uC635\uC158 \uBCF4\uAE30\uB97C \uAE38\uAC8C \uB20C\uB7EC \uC624\uBE0C\uC81D\uD2B8\uB97C \uD3B8\uC9D1\uD574\uBCF4\uC138\uC694.","Drag and Drop the object to the scene or use the right click menu to add an instance of it.":"\uC624\uBE0C\uC81D\uD2B8\uB97C \uC52C\uC5D0\uB2E4 \uB04C\uC5B4\uB2E4 \uB193\uC73C\uC138\uC694. \uC544\uB2C8\uBA74, \uC624\uB978\uCABD \uBC84\uD2BC\uC744 \uB20C\uB7EC \uB098\uC624\uB294 \uBA54\uB274\uC5D0\uC11C \uC624\uBE0C\uC81D\uD2B8 \uC778\uC2A4\uD134\uC2A4\uB97C \uCD94\uAC00\uD558\uC138\uC694.","Draw the shapes relative to the object position on the scene":"\uC52C\uC5D0 \uC788\uB294 \uC624\uBE0C\uC81D\uD2B8 \uC704\uCE58\uC5D0 \uC0C1\uB300\uC801\uC778 \uC250\uC774\uD504\uB4E4\uC744 \uADF8\uB9BD\uB2C8\uB2E4.","Dropbox (coming soon)":"Dropbox(\uC5C5\uB370\uC774\uD2B8 \uC608\uC815)","Dynamic":"\uB3D9\uC801","Edge":"\uAC00\uC7A5\uC790\uB9AC","Edit":"\uC218\uC815","Edit Extension Options":"\uD655\uC7A5\uAE30\uB2A5 \uC635\uC158 \uC218\uC815","Edit Object Variables":"\uC624\uBE0C\uC81D\uD2B8 \uBCC0\uC218 \uC218\uC815","Edit behavior properties":"\uB3D9\uC791\uAE30\uB2A5 \uC18D\uC131 \uC218\uC815","Edit behaviors ({eventsBasedBehaviorsCount})":function(a){return["\uD589\uB3D9 \uD3B8\uC9D1\uD558\uAE30 (",a("eventsBasedBehaviorsCount"),")"]},"Edit extension options":"\uD655\uC7A5\uAE30\uB2A5 \uC635\uC158 \uC218\uC815","Edit functions (not attached to behaviors) ({eventsFunctionsCount})":function(a){return["\uD568\uC218 \uD3B8\uC9D1\uD558\uAE30(\uD589\uB3D9\uACFC\uB294 \uBCC4\uAC1C) (",a("eventsFunctionsCount"),")"]},"Edit hitboxes":"\uD788\uD2B8\uBC15\uC2A4 \uC218\uC815","Edit points":"\uD3EC\uC778\uD2B8 \uC218\uC815","Edit scene variables":"\uC52C \uBCC0\uC218 \uC218\uC815","Edit the behavior":"\uB3D9\uC791\uAE30\uB2A5 \uC218\uC815","Edit the event text":"\uC774\uBCA4\uD2B8 \uD14D\uC2A4\uD2B8 \uD3B8\uC9D1","Editor without transitions":"Editor without transitions","Effect name:":"\uC774\uD399\uD2B8 \uC774\uB984:","Effects":"\uC774\uD399\uD2B8","Effects can change how the layer is rendered on screen. After adding an effect, set up its parameters. Launch a preview to see the result. Using the events and the name of the effect, you can change the parameters during the game.":"\uC774\uD399\uD2B8\uB294 \uC2A4\uD06C\uB9B0\uC5D0 \uC5B4\uB5BB\uAC8C \uB80C\uB354\uB9C1\uD560\uC9C0\uB97C \uBC14\uAFC0 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC774\uD399\uD2B8\uB97C \uB123\uACE0, \uD30C\uB77C\uBBF8\uD130\uB97C \uC870\uC815\uD574 \uBBF8\uB9AC\uBCF4\uAE30\uB85C \uACB0\uACFC\uB97C \uD655\uC778\uD558\uC138\uC694.\n\uC774\uBCA4\uD2B8\uC640 \uC774\uD399\uD2B8\uC758 \uC774\uB984\uC744 \uC0AC\uC6A9\uD558\uBA74, \uD50C\uB808\uC774 \uC911\uC5D0\uB3C4 \uD30C\uB77C\uBBF8\uD130\uB97C \uBC14\uAFC0 \uC218 \uC788\uC2B5\uB2C8\uB2E4","Email":"\uC774\uBA54\uC77C","Empty game":"\uBE48 \uAC8C\uC784","End opacity (0-255)":"\uBD88\uD22C\uBA85\uB3C4 \uC885\uB8CC\uAC12(0-255)","Endless Car Game Tutorial":"\uB05D\uC5C6\uB294 \uC790\uB3D9\uCC28 \uAC8C\uC784 \uC2E4\uC2B5","Endless Runner Tutorial":"\uB05D\uC5C6\uB294 \uB2EC\uB9AC\uAE30 \uAC8C\uC784 \uD29C\uD1A0\uB9AC\uC5BC","Enter the effect name":"\uC774\uD399\uD2B8 \uC774\uB984\uC744 \uC785\uB825\uD558\uAE30","Enter the expression parameters":"Enter the expression parameters","Enter the name of an object.":"\uC624\uBE0C\uC81D\uD2B8 \uC774\uB984\uC744 \uB123\uC5B4\uC8FC\uC138\uC694.","Enter the name of the object":"\uC624\uBE0C\uC81D\uD2B8 \uC774\uB984\uC744 \uB123\uC5B4\uC8FC\uC138\uC694.","Enter the parameter name (mandatory)":"\uB9E4\uAC1C \uBCC0\uC218 \uC774\uB984 \uC785\uB825(\uD544\uC218)","Enter the property name":"\uC18D\uC131 \uC774\uB984\uC744 \uB123\uC5B4\uC8FC\uC138\uC694.","Enter the sentence that will be displayed in the events sheet":"\uC774\uBCA4\uD2B8 \uC2DC\uD2B8\uC5D0 \uD45C\uC2DC\uB420 \uBB38\uC7A5\uC744 \uB123\uC5B4\uC8FC\uC138\uC694.","Enter the text to be displayed":"\uD45C\uC2DC\uD560 \uD14D\uC2A4\uD2B8 \uC785\uB825","Enter the text to be displayed by the object":"\uC624\uBE0C\uC81D\uD2B8\uB85C \uD45C\uC2DC\uB420 \uD14D\uC2A4\uD2B8\uB97C \uB123\uC5B4\uC8FC\uC138\uC694.","Enter what you want to build.":"\uBE4C\uB4DC \uD558\uAE38 \uC6D0\uD558\uB294 \uAC83\uC744 \uB123\uC5B4\uC8FC\uC138\uC694.","Events Sheet":"\uC774\uBCA4\uD2B8 \uC2DC\uD2B8","Events that will be run at every frame (roughly 60 times per second), after the events from the events sheet of the scene.":"Events that will be run at every frame (roughly 60 times per second), after the events from the events sheet of the scene.","Events that will be run at every frame (roughly 60 times per second), before the events from the events sheet of the scene.":"Events that will be run at every frame (roughly 60 times per second), before the events from the events sheet of the scene.","Events that will be run at every frame (roughly 60 times per second), for every object that has the behavior attached, after the events from the events sheet.":"\uD504\uB808\uC784 \uB9C8\uB2E4(\uB300\uB7B5 \uCD08\uB2F9 60\uD68C) \uC2E4\uD589\uB418\uB294 \uC774\uBCA4\uD2B8\uB4E4, \uB3D9\uC791\uAE30\uB2A5\uC774 \uBD99\uC740 \uBAA8\uB4E0 \uC624\uBE0C\uC81D\uD2B8\uC5D0 \uD574\uB2F9\uD558\uACE0, \uC774\uBCA4\uD2B8 \uC2DC\uD2B8\uC5D0 \uC788\uB294 \uC774\uBCA4\uD2B8 \uB2E4\uC74C\uC5D0 \uC2E4\uD589\uD569\uB2C8\uB2E4.","Events that will be run at every frame (roughly 60 times per second), for every object that has the behavior attached, before the events from the events sheet are launched.":"\uD504\uB808\uC784 \uB9C8\uB2E4(\uB300\uB7B5 \uCD08\uB2F9 60\uD68C) \uC2E4\uD589\uB418\uB294 \uC774\uBCA4\uD2B8\uB4E4, \uB3D9\uC791\uAE30\uB2A5\uC774 \uBD99\uC740 \uBAA8\uB4E0 \uC624\uBE0C\uC81D\uD2B8\uC5D0 \uD574\uB2F9\uD558\uACE0, \uC774\uBCA4\uD2B8 \uC2DC\uD2B8\uC5D0 \uC788\uB294 \uC774\uBCA4\uD2B8\uC804\uC5D0 \uC2E4\uD589\uB429\uB2C8\uB2E4.","Events that will be run once when a scene is about to be unloaded from memory. The previous scene that was paused will be resumed after this.":"Events that will be run once when a scene is about to be unloaded from memory. The previous scene that was paused will be resumed after this.","Events that will be run once when a scene is paused (another scene is run on top of it).":"Events that will be run once when a scene is paused (another scene is run on top of it).","Events that will be run once when a scene is resumed (after it was previously paused).":"Events that will be run once when a scene is resumed (after it was previously paused).","Events that will be run once when a scene of the game is loaded, before the scene events.":"Events that will be run once when a scene of the game is loaded, before the scene events.","Events that will be run once when the behavior is deactivated on an object (step events won't be run until the behavior is activated again).":"Events that will be run once when the behavior is deactivated on an object (step events won't be run until the behavior is activated again).","Events that will be run once when the behavior is re-activated on an object (after it was previously deactivated).":"Events that will be run once when the behavior is re-activated on an object (after it was previously deactivated).","Events that will be run once when the first scene of the game is loaded, before any other events.":"Events that will be run once when the first scene of the game is loaded, before any other events.","Events that will be run once, after the object is removed from the scene and before it is entirely removed from memory.":"\uC624\uBE0C\uC81D\uD2B8\uAC00 \uC7A5\uBA74\uC5D0\uC11C \uC81C\uAC70 \uB41C \uD6C4 \uBA54\uBAA8\uB9AC\uC5D0\uC11C \uC644\uC804\uD788 \uC81C\uAC70\uB418\uAE30 \uC804\uC5D0 \uC774\uBCA4\uD2B8\uAC00 \uD55C \uBC88 \uC2E4\uD589\uB429\uB2C8\uB2E4.","Events that will be run once, when an object is created with this behavior being attached to it.":"\uC774 \uB3D9\uC791\uC744 \uD558\uB294 \uC624\uBE0C\uC81D\uD2B8\uAC00 \uC0DD\uC131\uB420 \uB54C \uC774\uBCA4\uD2B8\uAC00 \uD55C \uBC88 \uC2E4\uD589\uB429\uB2C8\uB2E4.","Example: Check if the object is flashing.":"\uC608: \uBB3C\uCCB4\uAC00 \uAE5C\uBC15\uC774\uB294\uC9C0 \uD655\uC778\uD558\uC2ED\uC2DC\uC624.","Example: Equipped shield name":"\uC608: \uC7A5\uCC29\uB41C \uC2E4\uB4DC \uC774\uB984","Example: Flash the object":"\uC608: \uD50C\uB798\uC2DC \uC624\uBE0C\uC81D\uD2B8","Example: Is flashing?":"\uC608: \uBC88\uCA4D\uC785\uB2C8\uAE4C?","Example: Life remaining":"\uC608: \uB0A8\uC740 \uC218\uBA85","Example: Life remaining for the player.":"\uC608: \uD50C\uB808\uC774\uC5B4\uC758 \uB0A8\uC740 \uC218\uBA85.","Example: Make the object flash for 5 seconds.":"\uC608: 5\uCD08\uAC04 \uBB3C\uCCB4\uB97C \uAE5C\uBC15\uC774\uAC8C \uD558\uC2ED\uC2DC\uC624.","Example: Name of the shield equipped by the player.":"\uC608: \uD50C\uB808\uC774\uC5B4\uAC00 \uC7A5\uCC29\uD55C \uC2E4\uB4DC\uC758 \uC774\uB984.","Examples":"\uC608\uC2DC","Examples:":"\uC608\uC2DC:","Exit GDevelop":"Exit GDevelop","Export":"\uB0B4\uBCF4\uB0B4\uAE30","Export (web, iOS, Android)...":"\uB0B4\uBCF4\uB0B4\uAE30 (web, iOS, Android)...","Export as a HTML5 game":"HTML5 \uAC8C\uC784\uC73C\uB85C \uB0B4\uBCF4\uB0B4\uAE30","Export extension":"\uD655\uC7A5 \uC0DD\uC131","Export game":"\uAC8C\uC784 \uB0B4\uBCF4\uB0B4\uAE30","Export in progress...":"\uB0B4\uBCF4\uB0B4\uB294 \uC911...","Export project to a standalone game":"\uB2E8\uC77C \uAC8C\uC784\uC73C\uB85C \uD504\uB85C\uC81D\uD2B8 \uB0B4\uBCF4\uB0B4\uAE30.","Export the game (Web, Android, iOS...)":"\uAC8C\uC784 \uB0B4\uBCF4\uB0B4\uAE30(\uC6F9, \uC548\uB4DC\uB85C\uC774\uB4DC, iOS...)","Export to a file":"\uD30C\uC77C\uB85C \uB0B4\uBCF4\uB0B4\uAE30","Export your game using Cocos2d-JS game engine. The game can be compiled for Android or iOS if you install Cocos2d-JS developer tools.":"Cocos2d-JS \uAC8C\uC784 \uC5D4\uC9C4\uC744 \uC0AC\uC6A9\uD558\uC5EC \uAC8C\uC784\uC744 \uB0B4\uBCF4\uB0B4\uC2ED\uC2DC\uC624. \uAC8C\uC784\uC740 Cocos2d-JS \uAC1C\uBC1C \uB3C4\uAD6C\uB97C \uC124\uCE58\uD558\uBA74 Android \uB610\uB294 iOS\uC6A9\uC73C\uB85C \uCEF4\uD30C\uC77C\uD560 \uC218 \uC788\uB2E4.","Expression":"\uD45C\uD604\uC2DD","Extension (storing the function)":"\uD655\uC7A5\uD504\uB85C\uADF8\uB7A8 (\uAE30\uB2A5 \uC800\uC7A5\uD558\uAE30)","Extensions can provide functions (which can be actions, conditions or expressions) or new behaviors.":"\uD655\uC7A5\uC740 \uB354 \uB9CE\uC740 \uAE30\uB2A5(\uC561\uC158, \uC870\uAC74 \uD639\uC740 \uD45C\uD604 \uB4F1) \uC774\uB098 \uC0C8 \uD589\uB3D9\uC744 \uC81C\uACF5\uD569\uB2C8\uB2E4.","External events":"\uC678\uBD80 \uC774\uBCA4\uD2B8","External layouts":"\uC678\uBD80 \uB808\uC774\uC544\uC6C3","Extract the events in a function":"\uAE30\uB2A5\uC5D0\uC11C \uC774\uBCA4\uD2B8 \uCD94\uCD9C\uD558\uAE30","FPS:":"\uCD08\uB2F9 \uD504\uB808\uC784:","Facebook Instant Games":"Facebook Instant Games","False":"\uAC70\uC9D3","False (not checked)":"\uAC70\uC9D3 (\uCCB4\uD06C \uC548\uD568)","File":"\uD30C\uC77C","Fill color":"\uC0C9 \uCC44\uC6B0\uAE30","Fill opacity (0-255)":"\uBD88\uD22C\uBA85\uB3C4 \uCC44\uC6B0\uAE30(0-255)","Find all matching pairs of cards in this relaxing game. Use tweens to create smooth, natural animations with a few events.":"\uC774 \uB290\uAE0B\uD55C \uAC8C\uC784\uC5D0\uC11C\uB294 \uC9DD\uC774 \uB9DE\uB294 \uBAA8\uB4E0 \uCE74\uB4DC\uB97C \uCC3E\uC73C\uC138\uC694. \uBA87 \uAC00\uC9C0 \uC774\uBCA4\uD2B8\uB97C \uC368\uC11C \uBD80\uB4DC\uB7FD\uACE0 \uC790\uC5F0\uC2A4\uB7EC\uC6B4 \uC560\uB2C8\uBA54\uC774\uC158\uC744 \uB9CC\uB4DC\uB294 \uD2B8\uC704\uB2DD\uC744 \uC0AC\uC6A9\uD558\uC138\uC694.","First editor":"First editor","Flow of particles (particles/seconds)":"\uD30C\uD2F0\uD074 \uB0A0\uB9AC\uAE30(\uD30C\uD2F0\uD074/\uCD08)","Font files":"\uD3F0\uD2B8 \uD30C\uC77C","Font:":"\uAE00\uAF34","For a given video resource, only one video will be played in memory and displayed. If you put this object multiple times on the scene, all the instances will be displaying the exact same video (with the same timing and paused/played/stopped state).":"\uC8FC\uC5B4\uC9C4 \uBE44\uB514\uC624 \uC9C0\uC6D0\uC73C\uB85C\uB294, \uB2E8 \uD55C \uAC1C \uBE44\uB514\uC624\uB9CC \uC7AC\uC0DD\uD558\uACE0 \uD45C\uC2DC\uD569\uB2C8\uB2E4. \uC52C\uC5D0\uC11C \uC5EC\uB7EC\uBC88 \uC774 \uC624\uBE0C\uC81D\uD2B8\uB97C \uB193\uC73C\uB824\uBA74, \uBAA8\uB4E0 \uC778\uC2A4\uD134\uC2A4\uB4E4\uC740 \uC815\uD655\uD788 \uAC19\uC740 \uBE44\uB514\uC624\uB97C \uD45C\uC2DC\uD574\uC57C \uD569\uB2C8\uB2E4. (\uAC19\uC740 \uD0C0\uC774\uBC0D\uACFC \uC77C\uC2DC\uC815\uC9C0, \uD50C\uB808\uC774, \uC815\uC9C0\uC640 \uAC19\uC740 \uC0C1\uD0DC\uAE4C\uC9C0\uB3C4)","For example, you can have a variable called Life representing the health of the object.":"\uC608\uB97C \uB4E4\uC5B4, Life\uB77C\uB294 \uBCC0\uC218\uB97C \uB9CC\uB4E4\uC5B4 \uC624\uBE0C\uC81D\uD2B8\uC758 \uCCB4\uB825\uC744 \uD45C\uD604\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","For example, you can have a variable called Score representing the current score of the player.":"\uC608\uB97C \uB4E4\uC5B4, Score\uB77C\uB294 \uBCC0\uC218\uB97C \uB9CC\uB4E4\uC5B4 \uD50C\uB808\uC774\uC5B4\uC758 \uC810\uC218\uB97C \uD45C\uD604\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","For example, you can have a variable called UnlockedLevelsCount representing the number of levels unlocked by the player.":"\uC608\uB97C \uB4E4\uC5B4, UnlockedLevelsCount\uB77C\uB294 \uBCC0\uC218\uB97C \uB9CC\uB4E4\uC5B4 \uC544\uC9C1 \uD50C\uB808\uC774\uC5B4\uAC00 \uC5F4\uC9C0 \uBABB\uD55C \uB808\uBCA8\uC758 \uC218\uB97C \uD45C\uD604\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","For example: player, spaceship, inventory...":"\uC608\uB97C \uB4E4\uBA74: \uD50C\uB808\uC774\uC5B4, \uC6B0\uC8FC\uC120, \uC778\uBCA4\uD1A0\uB9AC...","For the lifecycle functions to be executed, you need the extension to be used in the game, either by having at least one action, condition or expression used, or a behavior of the extension added to an object. Otherwise, the extension won't be included in the game.":"For the lifecycle functions to be executed, you need the extension to be used in the game, either by having at least one action, condition or expression used, or a behavior of the extension added to an object. Otherwise, the extension won't be included in the game.","Frame":"\uD504\uB808\uC784","Frame #{i}":function(a){return["\uD504\uB808\uC784 #",a("i")]},"Free":"\uBB34\uB8CC","Friction on particles":"\uD30C\uD2F0\uD074 \uB9C8\uCC30","Full name displayed in editor":"\uC5D0\uB514\uD130 \uBCF4\uC774\uB294 \uC804\uCCB4\uC774\uB984","Function Configuration":"\uAE30\uB2A5 \uC124\uC815","Function name":"\uAE30\uB2A5 \uC774\uB984","Function type":"\uD568\uC218\uD615","Functions":"\uAE30\uB2A5","Functions/Behaviors":"\uAE30\uB2A5/\uB3D9\uC791","GDevelop 5":"GDevelop 5","GDevelop Forums":"GDevelop \uD3EC\uB7FC","GDevelop Preferences":"GDevelop \uAE30\uBCF8 \uC124\uC815","GDevelop Website":"GDevelop \uC6F9\uC0AC\uC774\uD2B8","GDevelop is an easy-to-use game creator with no programming language to learn.":"GDevelop\uC740 \uD504\uB85C\uADF8\uB798\uBC0D \uC5B8\uC5B4\uB97C \uBC30\uC6B8 \uD544\uC694 \uC5C6\uB294 \uC190\uC26C\uC6B4 \uAC8C\uC784\uC81C\uC791 \uB3C4\uAD6C\uC785\uB2C8\uB2E4.","GDevelop was created by Florian \"4ian\" Rival.":"GDevelop\uC740 Florian \"4ian\" Rival\uC774 \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.","GDevelop was upgraded to a new version! Check out the changes.":"GDevelop\uC774 \uC0C8 \uBC84\uC804\uC73C\uB85C \uC5C5\uADF8\uB808\uC774\uB4DC \uB418\uC5C8\uC2B5\uB2C8\uB2E4! \uBC14\uB010 \uC810\uC744 \uD655\uC778\uD574 \uBCF4\uC138\uC694.","GDevelop website":"GDevelop \uC6F9\uC0AC\uC774\uD2B8","GDevelop {0} based on GDevelop.js {1}":function(a){return["GDevelop ",a("0"),"\uB294 GDevelop.js ",a("1"),"\uC744 \uAE30\uBC18\uC73C\uB85C \uD569\uB2C8\uB2E4."]},"Game export":"\uAC8C\uC784 \uC678\uBD80 \uC800\uC7A5","Game name":"\uAC8C\uC784 \uC774\uB984","Game preview #{id}":function(a){return["\uAC8C\uC784 \uBBF8\uB9AC\uBCF4\uAE30 #",a("id")]},"Game resolution height":"\uAC8C\uC784 \uD574\uC0C1\uB3C4 \uB192\uC774","Game resolution resize mode (fullscreen or window)":"\uAC8C\uC784 \uD574\uC0C1\uB3C4 \uD06C\uAE30 \uC870\uC815 \uBAA8\uB4DC(\uC804\uCCB4 \uD654\uBA74 \uB610\uB294 \uCC3D)","Game resolution width":"\uAC8C\uC784 \uD574\uC0C1\uB3C4 \uB108\uBE44","Game settings":"\uAC8C\uC784 \uC124\uC815","General:":"\uC77C\uBC18:","Generate icons from a file":"\uD30C\uC77C\uB85C\uBD80\uD130 \uC544\uC774\uCF58\uC744 \uC0DD\uC131\uD558\uAE30","Geometry Monster":"\uC9C0\uC624\uBA54\uD2B8\uB9AC \uBAAC\uC2A4\uD130","Geometry Monster Tutorial":"\uC9C0\uC624\uBA54\uD2B8\uB9AC \uBAAC\uC2A4\uD130 \uD29C\uD1A0\uB9AC\uC5BC","Get a subscription":"\uAD6C\uB3C5\uD558\uAE30","Get a subscription or login":"\uAD6C\uB3C5 \uD639\uC740 \uB85C\uADF8\uC778 \uD558\uAE30","Get a subscription to package your games for Android, Windows, macOS and Linux, use live preview over wifi and more. With a subscription, you're also supporting the development of GDevelop, which is an open-source software.":"Android, Windows, MacOS \uBC0F Linux\uC6A9 \uAC8C\uC784\uC744 \uD328\uD0A4\uC9D5\uD558\uACE0 WiFi\uB97C \uD1B5\uD574 \uB77C\uC774\uBE0C \uBBF8\uB9AC \uBCF4\uAE30\uB97C \uC0AC\uC6A9\uD558\uC2ED\uC2DC\uC624. \uAD6C\uB3C5\uC744 \uD1B5\uD574 \uC624\uD508\uC18C\uC2A4 \uC18C\uD504\uD2B8\uC6E8\uC5B4\uC778 GDevelop\uC758 \uAC1C\uBC1C\uC744 \uC9C0\uC6D0\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","Global variable":"Global variable","Global variables":"\uC804\uC5ED \uBCC0\uC218","Global variables are variables that are persisted across the scenes during the game.":"\uC804\uC5ED \uBCC0\uC218\uB294 \uAC8C\uC784\uC774 \uC9C4\uD589\uB418\uB294 \uB3D9\uC548 \uBAA8\uB4E0 Scene\uC5D0\uC11C \uC720\uC9C0\uB418\uB294 \uBCC0\uC218\uC785\uB2C8\uB2E4.","Global variables are variables that are shared amongst all the scenes of the game.":"\uC804\uC5ED \uBCC0\uC218\uB294 \uAC8C\uC784\uC758 \uBAA8\uB4E0 Scene\uC5D0\uC11C \uACF5\uC720\uB418\uB294 \uBCC0\uC218\uC785\uB2C8\uB2E4.","Google Drive":"\uAD6C\uAE00 \uB4DC\uB77C\uC774\uBE0C","Google Drive could not be loaded. Check that your are not offline and have a proper internet connection, then try again.":"Google Drive\uB97C \uB85C\uB4DC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC624\uD504\uB77C\uC778 \uC0C1\uD0DC\uC640 \uC778\uD130\uB137 \uC5F0\uACB0\uC774 \uC62C\uBC14\uB978\uC9C0 \uD655\uC778\uD55C \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC2ED\uC2DC\uC624.","Google Drive folder or existing file to overwrite":"\uAD6C\uAE00 \uB4DC\uB77C\uC774\uBC84 \uD3F4\uB354\uB098 \uC874\uC7AC\uD558\uB294 \uD30C\uC77C\uC744 \uB36E\uC5B4\uC501\uB2C8\uB2E4.","Got it":"\uC54C\uACA0\uC2B5\uB2C8\uB2E4","Gravity on particles on X axis":"\uD30C\uD2F0\uD074\uC758 X\uCD95\uC5D0 \uB300\uD55C \uC911\uB825\uAC12","Gravity on particles on Y axis":"\uD30C\uD2F0\uD074\uC758 Y\uCD95\uC5D0 \uB300\uD55C \uC911\uB825\uAC12","HTML5 game (zip)":"HTML5 \uAC8C\uC784 (zip)","Having a subscription allows you to use the one-click export for Android, Windows, macOS and Linux, launch live previews over wifi, disable the GDevelop splashscreen during loading and more!":"\uAD6C\uB3C5\uC744 \uD558\uBA74 Android, Windows, MacOS \uBC0F Linux\uC6A9 \uC6D0-\uD074\uB9AD \uB0B4\uBCF4\uB0B4\uAE30, wifi\uB97C \uD1B5\uD574 \uB77C\uC774\uBE0C \uBBF8\uB9AC \uBCF4\uAE30 \uC2E4\uD589, \uB85C\uB4DC \uC911 GDevelop \uC2A4\uD50C\uB798\uC2DC \uBE44\uD65C\uC131\uD654\uB4F1\uC744 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4!","Help":"\uB3C4\uC6C0\uB9D0","Help and tutorials":"\uB3C4\uC6C0\uB9D0\uACFC \uD29C\uD1A0\uB9AC\uC5BC","Help for this action":"\uC774 \uC561\uC158\uC5D0 \uB300\uD55C \uB3C4\uC6C0\uB9D0","Help for this condition":"\uC774 \uC870\uAC74\uC5D0 \uB300\uD55C \uB3C4\uC6C0\uB9D0","Help to Translate GDevelop":"GDevelop \uBC88\uC5ED\uC5D0 \uB300\uD55C \uB3C4\uC6C0\uB9D0","Help to translate GD in your language":"GDevelop\uC744 \uB2F9\uC2E0\uC758 \uC5B8\uC5B4\uB85C \uBC88\uC5ED\uD574\uC8FC\uC138\uC694.","Help!":"\uB3C4\uC640\uC8FC\uC138\uC694!","Hidden":"\uC228\uAE40","Hide":"\uC228\uAE40","Hide experimental exports":"Hide experimental exports","Hide experimental objects":"\uD45C\uD604\uB41C \uC624\uBE0C\uC81D\uD2B8 \uC228\uAE30\uAE30","Hide lifecycle functions (advanced)":"Hide lifecycle functions (advanced)","Hints & explanations":"\uD78C\uD2B8 & \uC124\uBA85","How to edit instructions":"\uC9C0\uC2DC\uC0AC\uD56D \uD3B8\uC9D1 \uBC29\uBC95","I forgot my password":"\uBE44\uBC00\uBC88\uD638\uB97C \uC78A\uC5B4\uBC84\uB838\uC2B5\uB2C8\uB2E4.","Icons":"\uC544\uC774\uCF58","Ideal for advanced game makers":"\uACE0\uB3C4\uC758 \uAC8C\uC784 \uAC1C\uBC1C\uC790\uC5D0\uAC8C \uC774\uC0C1\uC801","Ideal for beginners":"\uCD08\uC2EC\uC790 \uAC1C\uBC1C\uC790\uC5D0\uAC8C \uC774\uC0C1\uC801","If you close this window while the build is being done, you can see its progress and download the game later by clicking on See All My Builds below.":"\uB2F9\uC2E0\uC774 \uBE4C\uB4DC \uB3C4\uC911 window\uB97C \uB044\uBA74, \uC544\uB798\uC758 '\uBAA8\uB4E0 \uBE4C\uB4DC'\uB97C \uD074\uB9AD\uD574 \uC9C4\uD589\uC0C1\uD669\uC744 \uBCF4\uAC70\uB098 \uB098\uC911\uC5D0 \uAC8C\uC784\uC744 \uB2E4\uC6B4\uB85C\uB4DC \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","If you don't have a subscription, consider getting one now. Accounts allow you to access all of the online services. With just one click, you can build your game for Android, Windows, macOS and Linux!":"\uC544\uC9C1 \uAD6C\uB3C5\uC744 \uD558\uC9C0 \uC54A\uC558\uB2E4\uBA74, \uB2F9\uC7A5 \uAD6C\uB3C5\uD558\uAE38 \uAD8C\uC7A5\uD569\uB2C8\uB2E4. \uAD6C\uB3C5\uC744 \uD1B5\uD55C \uACC4\uC815\uC740 \uB2F9\uC2E0\uC744 \uC628\uB77C\uC778 \uC11C\uBE44\uC2A4\uC5D0 \uC5F0\uACB0\uC2DC\uCF1C \uC90D\uB2C8\uB2E4. \uD55C\uBC88\uC758 \uD074\uB9AD\uC73C\uB85C \uB2F9\uC2E0\uC758 \uAC8C\uC784\uC744 Android, Windows, macOS \uADF8\uB9AC\uACE0 Linux\uC5D0 \uC0DD\uC131\uD574\uBCF4\uC138\uC694!","If you have a popup blocker interrupting the opening, allow the popups and try a second time to open the project.":"\uC624\uD504\uB2DD\uC744 \uBC29\uD574\uD558\uB294 \uD31D\uC5C5 \uCC28\uB2E8\uAE30\uAC00 \uC788\uB294 \uACBD\uC6B0 \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD558\uACE0 \uD504\uB85C\uC81D\uD2B8\uB97C \uB2E4\uC2DC \uC5EC\uC2ED\uC2DC\uC624.","Image files":"\uC774\uBBF8\uC9C0 \uD30C\uC77C","Immerse your players by removing GDevelop logo when the game loads":"\uAC8C\uC784 \uB85C\uB4DC \uC2DC GDevelop \uB85C\uACE0\uB97C \uC9C0\uC6B0\uACE0 \uD50C\uB808\uC774\uC5B4\uB97C \uBAB0\uC785\uC2DC\uD0A8\uB2E4","Immerse your players by removing GDevelop logo when the game loads.":"\uAC8C\uC784 \uB85C\uB4DC \uC2DC GDevelop \uB85C\uACE0\uB97C \uC9C0\uC6B0\uACE0 \uD50C\uB808\uC774\uC5B4\uB97C \uBAB0\uC785\uC2DC\uD0A8\uB2E4","Import extension":"\uD655\uC7A5 \uBD88\uB7EC\uC624\uAE30","Include events from":"\uB2E4\uC74C\uC5D0\uC11C \uC774\uBCA4\uD2B8\uB97C \uBC1B\uC544\uC635\uB2C8\uB2E4:","Initial text to display":"\uD45C\uC2DC\uD560 \uCD08\uAE30 \uD14D\uC2A4\uD2B8","Inspectors":"\uAC80\uC0AC\uAE30","Install in project":"\uD504\uB85C\uC81D\uD2B8\uC5D0 \uC124\uCE58","Installed Behaviors":"\uC124\uCE58\uB41C \uD589\uB3D9","Instance Variables":"\uAC1D\uCCB4 \uBCC0\uC218","Instance variables will override the default values of the variables of the object.":"\uAC1D\uCCB4 \uBCC0\uC218\uB294 \uC624\uBE0C\uC81D\uD2B8\uC758 \uACE0\uC815\uB41C \uAC12\uC744 \uB36E\uC5B4\uC50C\uC6B8\uC218 \uC788\uC2B5\uB2C8\uB2E4.","Instance variables:":"\uAC1D\uCCB4 \uBCC0\uC218:","Instances":"\uAC1D\uCCB4","Instant or permanent force":"Instant or permanent force","Internal Name":"\uB0B4\uBD80 \uC774\uB984","Internal files":"\uB0B4\uBD80 \uD30C\uC77C","Invert condition":"\uC870\uAC74 \uBC18\uC804","Isometric game":"Isometric \uAC8C\uC784","Italic":"\uC774\uD154\uB9AD\uCCB4","JSON file":"JSON \uD30C\uC77C","JSON resource":"JSON resource","Keyboard Key (text)":"\uD0A4\uBCF4\uB4DC \uD0A4 (\uD14D\uC2A4\uD2B8)","Keyboard key":"Keyboard key","Kinematic":"Kinematic","Label":"\uB77C\uBCA8","Label, shown in the editor":"\uD3B8\uC9D1\uAE30\uB97C \uBCF4\uC5EC\uC8FC\uB294 \uB77C\uBCA8","Landscape":"\uD48D\uACBD","Language":"\uC5B8\uC5B4","Last run collected on {0} frames.":function(a){return["\uB9C8\uC9C0\uB9C9 \uC2E4\uD589\uC740 ",a("0")," \uD504\uB808\uC784\uC5D0\uC11C \uC9C4\uD589\uB418\uC5C8\uB2E4."]},"Last updated on":"Last updated on","Launch a preview of the scene":"\uD574\uB2F9 Scene \uBBF8\uB9AC\uBCF4\uAE30","Launch a preview of the scene, right click for more":"Launch a preview of the scene, right click for more","Launch the preview":"Scene \uBBF8\uB9AC\uBCF4\uAE30","Layer":"\uB808\uC774\uC5B4","Layer (text)":"\uB808\uC774\uC5B4 (\uD14D\uC2A4\uD2B8)","Layers":"\uB808\uC774\uC5B4","Layers:":"\uB808\uC774\uC5B4:","Learn more":"\uB354 \uC54C\uC544\uBCF4\uAE30","Learn more about Instant Games publication":"\uC778\uC2A4\uD134\uC2A4 \uAC8C\uC784 \uBC1C\uD589\uBB3C\uC5D0 \uB300\uD574 \uBC30\uC6B0\uAE30","Learn more about publishing":"\uD37C\uBE14\uB9AC\uC2F1\uC5D0 \uB300\uD574 \uB354 \uBC30\uC6CC\uBCF4\uAE30","Left (primary)":"\uC67C\uCABD(1\uBC88\uC9F8)","Left margin":"\uC67C\uCABD \uC5EC\uBC31","Lifecycle functions (advanced)":"Lifecycle functions (advanced)","Lifecycle functions only included when extension used":"Lifecycle functions only included when extension used","Line":"\uC120","Linear (antialiased rendering, good for most games)":"\uC120\uD615(\uC704\uC2E0\uD638\uAC00 \uC81C\uAC70\uB41C \uB80C\uB354\uB9C1\uC740 \uB300\uBD80\uBD84 \uD6A8\uC728\uC801\uC785\uB2C8\uB2E4.)","Lines length":"\uC120 \uAE38\uC774","Lines thickness":"\uC120 \uB450\uAED8","Linux (AppImage)":"\uB9AC\uB205\uC2A4 (AppImage)","Loading...":"\uBD88\uB7EC\uC624\uB294 \uC911\u2026","Local file system":"\uB0B4\uBD80 \uD30C\uC77C \uC2DC\uC2A4\uD15C","Local folder":"\uB85C\uCEEC \uD3F4\uB354","Login":"\uB85C\uADF8\uC778","Login to your GDevelop account":"GDevelop \uACC4\uC815\uC5D0 \uB85C\uADF8\uC778","Logout":"\uB85C\uADF8\uC544\uC6C3","Long description":"\uC0C1\uC138\uC124\uBA85","Loop":"\uBC18\uBCF5","Main lifecycle methods":"\uC8FC\uC694 \uB77C\uC774\uD504\uC0AC\uC774\uD074 \uBA54\uC11C\uB4DC","Make a hyper-casual mobile game where the player must grab shapes and avoid bombs.":"\uD50C\uB808\uC774\uC5B4\uAC00 \uC7A5\uC560\uBB3C\uC744 \uC7A1\uACE0 \uD3ED\uD0C4\uC744 \uD53C\uD558\uB294 \uCE90\uC8FC\uC5BC\uD55C \uBAA8\uBC14\uC77C \uAC8C\uC784\uC744 \uB9CC\uB4ED\uB2C8\uB2E4.","Make a platform game from scratch.":"Scratch\uC5D0\uC11C \uC628 \uD50C\uB7AB\uD3EC\uBA38 \uAC8C\uC784 \uB9CC\uB4E4\uAE30","Make a simple game where the player must jump on platforms for as long as possible.":"\uAC00\uB2A5\uD55C \uBA40\uB9AC \uC810\uD504\uD558\uB294 \uAC04\uB2E8\uD55C \uD50C\uB7AB\uD3EC\uBA38 \uAC8C\uC784\uC744 \uB9CC\uB4E4\uC5B4\uBCF4\uC8E0.","Make a simple tank shooter game from scratch.":"Scratch\uC5D0\uC11C \uC628 \uAC04\uB2E8\uD55C \uD0F1\uD06C \uAC8C\uC784 \uB9CC\uB4E4\uAE30","Make sure you're online, have a proper internet connection and try again. If you download and use GDevelop desktop application, you can also run previews without any internet connection.":"\uC628\uB77C\uC778 \uC0C1\uD0DC\uC778\uC9C0 \uD655\uC778\uD558\uACE0 \uC778\uD130\uB137 \uC5F0\uACB0\uC774 \uC81C\uB300\uB85C \uB418\uC5B4 \uC788\uB294\uC9C0 \uD655\uC778\uD55C \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC2ED\uC2DC\uC624. GDevelop \uB370\uC2A4\uD06C\uD1B1 \uC560\uD50C\uB9AC\uCF00\uC774\uC158\uC744 \uB2E4\uC6B4\uB85C\uB4DC\uD558\uC5EC \uC0AC\uC6A9\uD560 \uACBD\uC6B0 \uC778\uD130\uB137 \uC5F0\uACB0 \uC5C6\uC774 \uBBF8\uB9AC \uBCF4\uAE30\uB97C \uC2E4\uD589\uD560 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4.","Maximum FPS (0 to disable)":"\uCD5C\uB300 \uD504\uB808\uC784 (0\uC740 \uBE44\uD65C\uC131\uD654)","Maximum Fps is too low":"\uCD5C\uB300 Fps\uAC00 \uB108\uBB34 \uB0AE\uC2B5\uB2C8\uB2E4","Maximum emitter force applied on particles":"\uD30C\uD2F0\uD074\uC5D0 \uAC00\uD574\uC9C0\uB294 \uCD5C\uB300 \uBC29\uCD9C\uB825","Maximum number of particles displayed":"\uD30C\uD2F0\uD074\uC758 \uCD5C\uB300 \uD45C\uC2DC \uC218","Middle (Auxiliary button, usually the wheel button)":"\uC911\uAC04(\uBCF4\uC870 \uBC84\uD2BC, \uBCF4\uD1B5 \uD720 \uBC84\uD2BC)","Minimum FPS":"\uCD5C\uC18C FPS","Minimum Fps is too low":"\uCD5C\uC18C Fps\uAC00 \uB108\uBB34 \uB0AE\uC2B5\uB2C8\uB2E4","Minimum emitter force applied on particles":"\uD30C\uD2F0\uD074\uC5D0 \uAC00\uD574\uC9C0\uB294 \uCD5C\uC18C \uBC29\uCD9C\uB825","Most browsers will require the user to have interacted with your game before allowing any video to play. Make sure that the player click/touch the screen at the beginning of the game before starting any video.":"\uB300\uBD80\uBD84\uC758 \uBE0C\uB77C\uC6B0\uC800\uB294 \uC0AC\uC6A9\uC790\uAC00 \uBE44\uB514\uC624\uB97C \uC7AC\uC0DD\uD558\uAE30 \uC804\uC5D0 \uAC8C\uC784\uACFC \uC0C1\uD638\uC791\uC6A9\uC744 \uD558\uB3C4\uB85D \uC694\uAD6C\uD569\uB2C8\uB2E4. \uBE44\uB514\uC624 \uAC8C\uC784\uC744 \uC2DC\uC791\uD558\uAE30 \uC804\uC5D0 \uAC8C\uC784 \uC2DC\uC791 \uC2DC \uD654\uBA74\uC744 \uD074\uB9AD/\uD130\uCE58\uD558\uC2ED\uC2DC\uC624.","Most monitors have a refresh rate of 60 FPS. Setting a maximum number of FPS under 60 will force the game to skip frames, and the real number of FPS will be way below 60, making the game laggy and impacting the gameplay negatively. Consider putting 60 or more for the maximum number or FPS, or disable it by setting 0.":"\uB300\uBD80\uBD84\uC758 \uBAA8\uB2C8\uD130\uB294 \uAC31\uC2E0 \uBE48\uB3C4\uAC00 60 FPS \uB0B4\uC678 \uC785\uB2C8\uB2E4. FPS\uB97C \uCD5C\uB300 60 \uC774\uD558\uB85C \uC124\uC815\uD560 \uACBD\uC6B0 \uAC8C\uC784\uC740 \uD504\uB808\uC784\uC744 \uAC74\uB108\uB744\uAC8C \uB418\uBA70, \uC2E4\uC81C FPS \uC218\uB294 60\uC744 \uD6E8\uC52C \uBC11\uB3CC\uAC8C \uB418\uC5B4 \uAC8C\uC784\uC774 \uB290\uB824\uC9C0\uACE0 \uAC8C\uC784 \uD50C\uB808\uC774\uC5D0 \uBD80\uC815\uC801\uC778 \uC601\uD5A5\uC744 \uC8FC\uAC8C \uB429\uB2C8\uB2E4. \uCD5C\uB300 \uC218 \uB610\uB294 FPS\uC5D0 \uB300\uD574 60 \uC774\uC0C1\uC744 \uB123\uAC70\uB098 0\uC744 \uC124\uC815\uD558\uC5EC \uBE44\uD65C\uC131\uD654\uD558\uB294 \uAC83\uC744 \uACE0\uB824\uD558\uC2ED\uC2DC\uC624.","Mouse button":"Mouse button","Mouse button (text)":"\uB9C8\uC6B0\uC2A4 \uBC84\uD2BC (\uD14D\uC2A4\uD2B8)","Move down":"\uC544\uB798\uB85C \uC774\uB3D9","Move objects":"\uC624\uBE0C\uC81D\uD2B8 \uC774\uB3D9","Move objects on layer {0} to:":function(a){return["\uC774 \uC624\uBE0C\uC81D\uD2B8\uB294 layer ",a("0")," \uC5D0\uC11C \uB2E4\uC74C\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4:"]},"Move up":"\uC704\uB85C \uC774\uB3D9","Multiple files, saved in folder next to the main file":"Main file \uC606\uC758 folder\uC5D0 \uC800\uC7A5\uB41C \uB2E4\uC218\uC758 \uD30C\uC77C","Musics will only be played if the user has interacted with the game before (by clicking/touching it or pressing a key on the keyboard). This is due to browser limitations. Make sure to have the user interact with the game before using this action.":"\uC74C\uC545\uC740 \uC0AC\uC6A9\uC790\uAC00 \uC774\uC804\uC5D0 \uAC8C\uC784\uACFC \uC0C1\uD638 \uC791\uC6A9\uD55C \uACBD\uC6B0\uC5D0\uB9CC \uC7AC\uC0DD\uB429\uB2C8\uB2E4(\uD074\uB9AD/\uD130\uCE58 \uB610\uB294 \uD0A4\uBCF4\uB4DC \uD0A4 \uC785\uB825\uC2DC). \uC774\uB294 \uBE0C\uB77C\uC6B0\uC800 \uC81C\uD55C \uB54C\uBB38\uC774\uBA70 \uC774 \uB3D9\uC791\uC744 \uC0AC\uC6A9\uD558\uAE30 \uC804\uC5D0 \uC0AC\uC6A9\uC790\uAC00 \uAC8C\uC784\uACFC \uC0C1\uD638 \uC791\uC6A9\uD558\uB3C4\uB85D \uD558\uC2ED\uC2DC\uC624.","My Profile":"\uB0B4 \uD504\uB85C\uD544","My profile":"\uB0B4 \uD504\uB85C\uD544","Name":"\uC774\uB984","Name displayed in editor":"\uD3B8\uC9D1\uAE30 \uB0B4 \uBCF4\uC774\uB294 \uC774\uB984","Nearest (no antialiasing, good for pixel perfect games)":"Nearest(\uC548\uD2F0\uC5BC\uB77C\uC774\uC9D5 \uC5C6\uC774, \uC644\uC804 \uD53D\uC140 \uAC8C\uC784\uC5D0 \uC801\uD569\uD55C \uC124\uC815)","Need more power? You can upgrade to a new plan to increase the limit!":"\uD30C\uC6CC\uAC00 \uB354 \uD544\uC694\uD558\uC2ED\uB2C8\uAE4C? \uC0C8\uB85C\uC6B4 \uD50C\uB79C\uC744 \uAC15\uD654\uD558\uACE0 \uD55C\uACC4\uCE58\uB97C \uC62C\uB824\uBCF4\uC138\uC694!","New extension name":"\uC0C8\uB85C\uC6B4 \uD655\uC7A5\uBA85","New file name":"\uC0C8 \uD30C\uC77C \uC774\uB984","New value to set":"\uC0C8\uB86D\uAC8C \uC124\uC815 \uD560 \uAC12","No":"\uC544\uB2C8\uC624","No behavior found for your search. Try another search, or search for new behaviors to install.":"\uAC80\uC0C9\uB41C \uD589\uB3D9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uAC83\uC744 \uAC80\uC0C9\uD558\uAC70\uB098 \uC124\uCE58\uD560 \uC0C8 \uD589\uB3D9\uC744 \uAC80\uC0C9\uD574 \uBCF4\uC138\uC694.","No changes to the game size":"\uAC8C\uC784 \uC0AC\uC774\uC988\uAC00 \uBCC0\uACBD\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.","No effects applied.":"\uC774\uD399\uD2B8\uAC00 \uC801\uC6A9\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.","No inspector, choose another element in the list or toggle the raw data view.":"\uC778\uC2A4\uD399\uD130 \uC5C6\uC74C, \uBAA9\uB85D \uB0B4\uC5D0 \uB2E4\uB978 \uC694\uC18C\uB97C \uC120\uD0DD\uD558\uAC70\uB098 Raw Data View\uB85C \uC804\uD658\uD558\uC2ED\uC2DC\uC624.","No parameters for this function.":"\uC774 \uD568\uC218\uC5D0 \uD30C\uB77C\uBBF8\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.","No preview running. Run a preview and you will be able to inspect it with the debugger":"\uBBF8\uB9AC\uBCF4\uAE30\uAC00 \uC2E4\uD589\uB418\uACE0 \uC788\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBBF8\uB9AC\uBCF4\uAE30\uB97C \uC2E4\uD589\uD558\uBA74 \uB514\uBC84\uAC70\uB85C \uBBF8\uB9AC\uBCF4\uAE30\uB97C \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4","No properties for this behavior. Add one to store data inside this behavior (for example: health, ammo, speed, etc...)":"\uD589\uB3D9\uC744 \uC704\uD55C \uC18D\uC131\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uC774 \uD589\uB3D9\uC5D0 \uC800\uC7A5\uD560 \uB370\uC774\uD130\uB97C \uCD94\uAC00\uD558\uC138\uC694.(\uCCB4\uB825, \uC2A4\uD53C\uB4DC \uB4F1..)","No tags - add a tag to an object first":"\uD0DC\uADF8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4-\uC624\uBE0C\uC81D\uD2B8\uC5D0 \uD0DC\uADF8\uB97C \uCD94\uAC00\uD558\uC2ED\uC2DC\uC624","Non-objects and other actions":"\uBE44 \uAC1D\uCCB4 \uAE30\uD0C0 \uC561\uC158","Non-objects and other conditions":"\uBE44 \uAC1D\uCCB4 \uAE30\uD0C0 \uC870\uAC74","Not compatible":"Not compatible","Not now, thanks":"\uC9C0\uAE08 \uC548\uD560\uAEBC\uC5D0\uC694, \uACE0\uB9C8\uC6CC\uC694","Not now, thanks!":"\uC9C0\uAE08\uC740 \uC548\uD560\uAEBC\uC5D0\uC694, \uACE0\uB9C8\uC6CC\uC694!","Note: write _PARAMx_ for parameters, e.g: Flash _PARAM1_ for 5 seconds":"Note: write _PARAMx_ for parameters, e.g: Flash _PARAM1_ for 5 seconds","Nothing corresponding to your search. Choose an object first or browse the list of actions/conditions.":"\uB2F9\uC2E0\uC758 \uAC80\uC0C9\uC5D0 \uC544\uBB34\uAC83\uB3C4 \uB098\uC624\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uC624\uBE0C\uC81D\uD2B8\uB97C \uC6B0\uC120 \uACE0\uB974\uAC70\uB098 \uC561\uC158/\uC870\uAC74 \uBAA9\uB85D\uC744 \uAC80\uC0C9\uD558\uC138\uC694.","Nothing corresponding to your search. Try browsing the list instead.":"\uB2F9\uC2E0\uC758 \uAC80\uC0C9\uC5D0 \uC544\uBB34\uAC83\uB3C4 \uB098\uC624\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB300\uC2E0 \uBAA9\uB85D\uC744 \uAC80\uC0C9\uD574\uBCF4\uC138\uC694.","Number":"\uC22B\uC790","Number of particles in tank (-1 for infinite)":"Tank\uB0B4\uC758 \uD30C\uD2F0\uD074 \uC218(\uBB34\uD55C\uC758 \uACBD\uC6B0-1)","OK":"\uD655\uC778","Object":"\uC624\uBE0C\uC81D\uD2B8","Object Groups":"\uC624\uBE0C\uC81D\uD2B8 \uADF8\uB8F9","Object Name":"\uC624\uBE0C\uC81D\uD2B8 \uC774\uB984","Object Variables":"\uC624\uBE0C\uC81D\uD2B8 \uBCC0\uC218","Object groups":"\uC624\uBE0C\uC81D\uD2B8 \uADF8\uB8F9","Object name":"\uC624\uBE0C\uC81D\uD2B8 \uC774\uB984","Object name:":"\uC624\uBE0C\uC81D\uD2B8 \uC774\uB984:","Object on which this behavior can be used":"\uC774 \uD589\uB3D9\uC5D0 \uC788\uB294 \uC624\uBE0C\uC81D\uD2B8\uB294 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","Object type":"\uC624\uBE0C\uC81D\uD2B8 \uC720\uD615","Object variable":"Object variable","Objects":"\uC624\uBE0C\uC81D\uD2B8","Objects on {0}":function(a){return[a("0")," \uB0B4 \uC624\uBE0C\uC81D\uD2B8"]},"Objects or groups being directly referenced in the events: {0}":function(a){return["\uC624\uBE0C\uC81D\uD2B8 \uD639\uC740 \uADF8\uB8F9\uC740 \uD574\uB2F9 \uC774\uBCA4\uD2B8\uB4E4\uC5D0 \uCC38\uC870\uB418\uC5B4 \uC788\uB2E4: ",a("0")]},"Objects panel is already opened: use it to add and edit objects.":"\uC624\uBE0C\uC81D\uD2B8 \uD328\uB110\uC774 \uC774\uBBF8 \uC5F4\uB824\uC788\uC2B5\uB2C8\uB2E4: \uC774\uAC78 \uC0AC\uC6A9\uD574 \uC624\uBE0C\uC81D\uD2B8\uB97C \uCD94\uAC00\uD558\uAC70\uB098 \uD3B8\uC9D1\uD558\uC138\uC694.","Ok":"\uD655\uC778","Once you're done, close this dialog and start adding some functions to the behavior. Then, test the behavior by adding it to an object in a scene.":"\uC644\uB8CC\uB418\uBA74 \uC774 \uB300\uD654 \uC0C1\uC790\uB97C \uB2EB\uACE0 \uD589\uB3D9\uC5EC\uBD80\uC5D0 \uBA87 \uAC00\uC9C0 \uAE30\uB2A5\uC744 \uCD94\uAC00\uD558\uAE30 \uC2DC\uC791\uD569\uB2C8\uB2E4. \uADF8 \uB2E4\uC74C\uC5D0, Scene\uB0B4\uC758 \uC624\uBE0C\uC81D\uD2B8\uB97C \uCD94\uAC00\uD574 \uB3D9\uC791\uBC95\uC744 \uD14C\uC2A4\uD2B8\uD569\uB2C8\uB2E4.","Once you're done, come back to GDevelop and your account will be upgraded automatically, unlocking the extra exports and online services.":"\uC791\uC5C5\uC744 \uB9C8\uCE58\uBA74 GDevelop\uC73C\uB85C \uB3CC\uC544\uAC00 \uACC4\uC815\uC774 \uC790\uB3D9\uC73C\uB85C \uC5C5\uADF8\uB808\uC774\uB4DC \uB418\uC5B4 \uCD94\uAC00 \uCD9C\uB825\uACFC \uC628\uB77C\uC778 \uC11C\uBE44\uC2A4\uB97C \uD574\uC81C\uD558\uC2ED\uC2DC\uC624.","One-click packaging for Windows, macOS and Linux up to 10 times a day.":"Windows\uC6A9, macOS\uC6A9 \uBC0F Linux\uC6A9 One-click packaging\uC740 \uD558\uB8E8\uC5D0 10\uD68C\uAE4C\uC9C0 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","One-click packaging for Windows, macOS and Linux up to 70 times a day.":"Windows\uC6A9, macOS\uC6A9 \uBC0F Linux\uC6A9 One-click packaging\uC740 \uD558\uB8E8\uC5D0 70\uD68C\uAE4C\uC9C0 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","OneDrive (coming soon)":"OneDrive (\uC5C5\uB370\uC774\uD2B8 \uC608\uC815)","Online services usage":"\uC628\uB77C\uC778 \uC11C\uBE44\uC2A4 \uC0AC\uC6A9","Only use this object if you can contribute back to the source code or are able to remove/replace it from your game in a future version.":"\uC774 \uC624\uBE0C\uC81D\uD2B8\uB294 \uC18C\uC2A4 \uCF54\uB4DC\uC5D0 \uAE30\uC5EC\uD560 \uC218 \uC788\uB294 \uACBD\uC6B0 \uB610\uB294 \uCC28\uD6C4 \uBC84\uC804\uC5D0\uC11C \uAC8C\uC784\uC744 \uC0AD\uC81C/\uAD50\uD658\uD560 \uC218 \uC788\uB294 \uACBD\uC6B0\uC5D0\uB9CC \uC0AC\uC6A9\uD558\uC2ED\uC2DC\uC624.","Open":"\uC5F4\uAE30","Open Debugger":"\uB514\uBC84\uAC70 \uC5F4\uAE30","Open Project Manager":"\uD504\uB85C\uC81D\uD2B8 \uAD00\uB9AC\uC790","Open a project":"\uD504\uB85C\uC81D\uD2B8 \uC5F4\uAE30","Open advanced settings":"\uACE0\uAE09 \uC124\uC815 \uC5F4\uAE30","Open folder":"\uD3F4\uB354 \uC5F4\uAE30","Open settings":"\uC124\uC815 \uC5F4\uAE30","Open the exported game folder":"\uB0B4\uBCF4\uB0B8 \uAC8C\uC784 \uD3F4\uB354 \uC5F4\uAE30","Open the layers editor":"\uB808\uC774\uC5B4 \uD3B8\uC9D1\uAE30 \uC5F4\uAE30","Open the list of instances":"\uAC1D\uCCB4 \uBAA9\uB85D \uC5F4\uAE30","Open the objects editor":"\uC624\uBE0C\uC81D\uD2B8 \uD3B8\uC9D1\uAE30 \uC5F4\uAE30","Open the objects groups editor":"\uC624\uBE0C\uC81D\uD2B8 \uADF8\uB8F9 \uC5F4\uAE30","Open the performance profiler":"Performance Progiler \uC5F4\uAE30","Open the project":"\uD504\uB85C\uC81D\uD2B8 \uC5F4\uAE30","Open the project folder":"\uD504\uB85C\uC81D\uD2B8 \uD3F4\uB354 \uC5F4\uAE30","Open the properties panel":"\uC18D\uC131 \uD328\uB110 \uC5F4\uAE30","Open...":"\uC5F4\uAE30...","Operator":"Operator","Optional animation name":"\uC120\uD0DD\uC801 \uC560\uB2C8\uBA54\uC774\uC158 \uC774\uB984","Origin":"\uCD9C\uCC98","Other actions":"\uB2E4\uB978 \uC561\uC158","Other conditions":"\uB2E4\uB978 \uC870\uAC74\uB4E4","Other external events with this name already exist.":"\uC774 \uC774\uB984\uC744 \uAC00\uC9C4 \uB2E4\uB978 \uC678\uBD80 \uC774\uBCA4\uD2B8\uAC00 \uC774\uBBF8 \uC874\uC7AC\uD569\uB2C8\uB2E4","Other lifecycle methods":"\uAE30\uD0C0 \uB77C\uC774\uD504 \uC0AC\uC774\uD074 \uBA54\uC11C\uB4DC","Outline color":"\uC678\uACFD\uC120 \uC0C9\uC0C1","Outline opacity (0-255)":"\uBD88\uD22C\uBA85\uB3C4 \uAC12 (0-255)","Outline size (in pixels)":"\uC724\uACFD\uC120 \uAD75\uAE30(\uD53D\uC140)","Package":"\uD328\uD0A4\uC9C0","Package name (for iOS and Android)":"\uD328\uD0A4\uC9C0 \uC774\uB984(iOS\uC640 Android)","Package your game as a Facebook Instant Games that can be played on Facebook Messenger.":"\uB2F9\uC2E0\uC758 \uAC8C\uC784\uC744 Facebook \uBA54\uC2E0\uC800\uC5D0\uC11C\uB3C4 \uD50C\uB808\uC774 \uD560 \uC218 \uC788\uB3C4\uB85D Facebook Instant Games\uC73C\uB85C \uD328\uD0A4\uC9D5\uD569\uB2C8\uB2E4.","Package your game as an app for Windows, macOS or Linux directly from GDevelop.":"\uAC8C\uC784\uC744 GDevelop\uC5D0\uC11C \uC9C1\uC811 Windows, MacOS \uB610\uB294 Linux\uC6A9 \uC571\uC73C\uB85C \uD328\uD0A4\uC9D5\uD558\uC2ED\uC2DC\uC624.","Package your game for Android directly from GDevelop. iOS support is coming soon!":"GDevelop\uC5D0\uC11C \uC9C1\uC811 Android\uC6A9 \uAC8C\uC784\uC744 \uD328\uD0A4\uC9D5\uD558\uC2ED\uC2DC\uC624. iOS \uC9C0\uC6D0\uC774 \uACE7 \uC81C\uACF5 \uB420 \uC608\uC815\uC785\uB2C8\uB2E4!","Package your game for Android up to 10 times a day.":"Android\uC6A9 \uAC8C\uC784 \uD328\uD0A4\uC9C0\uB294 \uD558\uB8E8\uC5D0 10\uD68C\uAE4C\uC9C0\uC785\uB2C8\uB2E4.","Package your game for Android up to 70 times a day.":"Android\uC6A9 \uAC8C\uC784 \uD328\uD0A4\uC9C0\uB294 \uD558\uB8E8\uC5D0 70\uD68C\uAE4C\uC9C0\uC785\uB2C8\uB2E4.","Packaging for Android":"Android\uC6A9 \uD328\uD0A4\uC9D5\uD558\uB294 \uC911","Packaging your game for Android will create an APK file that can be installed on Android phones or published to the Play Store.":"Android\uC6A9 \uAC8C\uC784\uC744 \uD328\uD0A4\uC9D5\uC744 \uD560 \uACBD\uC6B0, Android \uC2A4\uB9C8\uD2B8\uD3F0\uC5D0 \uC124\uCE58\uD558\uAC70\uB098 Play Store\uC5D0 \uAC8C\uC2DC\uD560 \uC218 \uC788\uB294 APK \uD30C\uC77C\uC774 \uC0DD\uC131\uB429\uB2C8\uB2E4.","Parameter #{0}:":function(a){return["\uD30C\uB77C\uBBF8\uD130 #",a("0"),":"]},"Parameter name in events: `{parameterName}`":function(a){return["\uC774\uBCA4\uD2B8\uC758 \uB9E4\uAC1C \uBCC0\uC218 \uC774\uB984: `",a("parameterName"),"`"]},"Parameters":"\uB9E4\uAC1C\uBCC0\uC218","Particle end size (in percents)":"\uD30C\uD2F0\uD074 \uCD5C\uC885 \uD06C\uAE30(\uD37C\uC13C\uD2B8 \uB2E8\uC704\uB85C)","Particle maximum lifetime (in seconds)":"\uD30C\uD2F0\uD074 \uCD5C\uB300 \uC720\uC9C0 \uC2DC\uAC04(\uCD08 \uB2E8\uC704\uB85C)","Particle maximum rotation speed (degrees/second)":"\uD30C\uD2F0\uD074 \uCD5C\uB300 \uD68C\uC804 \uC18D\uB3C4(\uCD08\uB2F9 \uD69F\uC218)","Particle minimum lifetime (in seconds)":"\uD30C\uD2F0\uD074 \uCD5C\uC18C \uC720\uC9C0\uC2DC\uAC04(\uCD08)","Particle minimum rotation speed (degrees/second)":"\uD30C\uD2F0\uD074 \uCD5C\uC18C \uD68C\uC804 \uC18D\uB825(\uCD08\uB2F9 \uD69F\uC218)","Particle start size (in percents)":"\uD30C\uD2F0\uD074 \uC2DC\uC791 \uD06C\uAE30(\uD37C\uC13C\uD2B8 \uB2E8\uC704\uB85C)","Particles end color":"\uD30C\uD2F0\uD074 \uC885\uB8CC \uC0C9\uC0C1","Particles kind":"\uC785\uC790 \uC885\uB958","Particles start color":"\uD30C\uD2F0\uD074 \uCD08\uAE30 \uC0C9\uC0C1","Particles start height":"\uCD08\uAE30 \uD30C\uD2F0\uD074 \uC138\uB85C \uAE38\uC774","Particles start width":"\uCD08\uAE30 \uD30C\uD2F0\uD074 \uAC00\uB85C \uAE38\uC774","Password":"\uBE44\uBC00\uBC88\uD638","Pause the game":"\uAC8C\uC784 \uC77C\uC2DC\uC815\uC9C0","Pause the game (from the toolbar) or hit refresh (on the left) to inspect the game":"\uAC8C\uC784\uC744 \uC77C\uC2DC \uC911\uC9C0\uD558\uAC70\uB098(\uB3C4\uAD6C \uBAA8\uC74C\uC5D0\uC11C) \uC0C8\uB85C \uACE0\uCE68(\uC67C\uCABD) \uC744 \uB20C\uB7EC \uAC8C\uC784\uC744 \uAC80\uC0AC\uD558\uC2ED\uC2DC\uC624.","Permanent":"\uC601\uAD6C\uC131","Platform default":"\uAE30\uBCF8 \uD50C\uB7AB\uD3FC","Platformer":"\uD50C\uB7AB\uD3FC \uAC8C\uC784","Platformer Tutorial":"\uD50C\uB7AB\uD3FC \uAC8C\uC784 \uC81C\uC791 \uD29C\uD1A0\uB9AC\uC5BC","Play the game":"\uAC8C\uC784 \uD50C\uB808\uC774","Please check your internet connection or try again later.":"Please check your internet connection or try again later.","Please double check online the changes to make sure that you are aware of anything new in this version that would require you to adapt your project.":"Please double check online the changes to make sure that you are aware of anything new in this version that would require you to adapt your project.","Please note that your device should be connected on the same network as this computer.":"\uB2F9\uC2E0\uC758 \uC7A5\uCE58\uB97C \uC774 \uCEF4\uD4E8\uD130\uC640 \uB3D9\uC77C\uD55C \uB124\uD2B8\uC6CC\uD06C\uC5D0 \uC5F0\uACB0\uD574 \uC8FC\uC138\uC694.","Point":"\uD3EC\uC778\uD2B8","Polygon":"\uB2E4\uAC01\uD615","Portrait":"\uC138\uB85C \uBCF4\uAE30","Preferences":"Preferences","Prepare your game for Facebook Instant Games so that it can be play on Facebook Messenger. GDevelop will create a compressed file that you can upload on your Facebook Developer account.":"\uD398\uC774\uC2A4\uBD81 Messenger \uC0C1\uC5D0\uC11C \uD50C\uB808\uC774\uD560 \uC218 \uC788\uB3C4\uB85D \uAC8C\uC784\uC744 \uD398\uC774\uC2A4\uBD81 Instant Games\uC73C\uB85C \uC900\uBE44\uD569\uB2C8\uB2E4. GDevelop\uC740 \uD398\uC774\uC2A4\uBD81 Developer \uACC4\uC815\uC5D0 \uC5C5\uB85C\uB4DC \uD560 \uC218 \uC788\uB294 \uC555\uCD95 \uD30C\uC77C\uC744 \uC0DD\uC131\uD569\uB2C8\uB2E4.","Preview":"\uBBF8\uB9AC\uBCF4\uAE30","Preview is overridden, right click for more":"Preview is overridden, right click for more","Preview over wifi":"Wifi\uB85C \uBBF8\uB9AC\uBCF4\uAE30","Profiler":"\uD504\uB85C\uD30C\uC77C\uB7EC","Project file type":"\uD504\uB85C\uC81D\uD2B8 \uD30C\uC77C \uD0C0\uC785","Project files":"\uD504\uB85C\uC81D\uD2B8 \uD30C\uC77C","Project icons":"\uD504\uB85C\uC81D\uD2B8 \uC544\uC774\uCF58","Project manager":"\uD504\uB85C\uC81D\uD2B8 \uAD00\uB9AC\uC790","Project properly saved":"\uD504\uB85C\uC81D\uD2B8\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4.","Project properties":"\uD504\uB85C\uC81D\uD2B8 \uC18D\uC131","Properties":"\uC18D\uC131","Properties panel is already opened. After selecting a resource, inspect and change its properties from this panel.":"\uC18D\uC131 \uD328\uB110\uC774 \uC774\uBBF8 \uC5F4\uB824\uC788\uC2B5\uB2C8\uB2E4. \uB9AC\uC18C\uC2A4\uB97C \uC120\uD0DD\uD558\uACE0, \uD328\uB110\uB85C\uBD80\uD130 \uADF8\uAC83\uC758 \uC18D\uC131\uC744 \uAC80\uC0AC\uD558\uACE0 \uBC14\uAFD4\uBCF4\uC138\uC694.","Properties panel is already opened. After selecting an instance on the scene, inspect and change its properties from this panel.":"\uC18D\uC131 \uD328\uB110\uC774 \uC774\uBBF8 \uC5F4\uB824\uC788\uC2B5\uB2C8\uB2E4. Scene\uB0B4\uC758 \uB9AC\uC18C\uC2A4\uB97C \uC120\uD0DD\uD558\uACE0, \uD328\uB110\uB85C\uBD80\uD130 \uADF8\uAC83\uC758 \uC18D\uC131\uC744 \uAC80\uC0AC\uD558\uACE0 \uBC14\uAFD4\uBCF4\uC138\uC694.","Property {propertyName} of _PARAM0_ is true":function(a){return["_PARAM0_\uC758 \uC18D\uC131 ",a("propertyName")," \uC740 \uCC38\uC774\uB2E4."]},"Publish online":"\uC628\uB77C\uC778 \uAC8C\uC2DC","Publish your game on Game Jolt":"Game Jolt\uC5D0 \uAC8C\uC784 \uD37C\uBE14\uB9AC\uC2F1\uD558\uAE30","Publish your game on Itch.io":"Itch.io\uC5D0 \uAC8C\uC784 \uD37C\uBE14\uB9AC\uC2F1\uD558\uAE30","Publish your game on Kongregate":"Kongregate\uC5D0 \uAC8C\uC784 \uD37C\uBE14\uB9AC\uC2F1\uD558\uAE30","Publish your game on Poki.com":"Poki.com\uC5D0 \uAC8C\uC784 \uAC8C\uC2DC","Radius of the emitter":"\uC6D0\uC758 \uBC18\uC9C0\uB984","Re-install/update":"\uC7AC\uC124\uCE58/\uC5C5\uB370\uC774\uD2B8","Redo the last changes":"\uB9C8\uC9C0\uB9C9 \uC218\uC815\uC744 \uC7AC\uC2DC\uB3C4\uD558\uAE30","Refresh":"\uC0C8\uB85C \uACE0\uCE68","Register to see the usage that you've made of the online services":"\uAC00\uC785\uD55C \uD6C4, \uC628\uB77C\uC778 \uC11C\uBE44\uC2A4 \uC774\uC6A9 \uD604\uD669\uC744 \uD655\uC778\uD569\uB2C8\uB2E4.","Relational operator":"Relational operator","Remove all tags":"\uBAA8\uB4E0 \uD0DC\uADF8\uB97C \uC81C\uAC70","Remove objects":"\uC624\uBE0C\uC81D\uD2B8 \uC81C\uAC70","Remove the Long Description":"\uC0C1\uC138 \uC124\uBA85 \uC81C\uAC70","Repeat borders and center textures (instead of stretching them)":"\uACBD\uACC4\uC120\uACFC \uC911\uC559\uC758 \uD14D\uC2A4\uCC98\uB97C \uBC18\uBCF5\uD569\uB2C8\uB2E4. (\uC2A4\uD2B8\uB808\uCE6D \uB300\uC2E0)","Replace":"\uBC14\uAFB8\uAE30","Replay":"\uB9AC\uD50C\uB808\uC774","Report a wrong translation":"\uC798\uBABB\uB41C \uBC88\uC5ED \uBCF4\uACE0\uD558\uAE30","Report the issue on GitHub":"\uD574\uB2F9 \uC774\uC288\uB97C Github\uC5D0 \uBCF4\uACE0\uD558\uAE30","Reset":"\uB9AC\uC14B","Reset your password":"\uBE44\uBC00\uBC88\uD638 \uCD08\uAE30\uD654","Resolution and rendering":"\uD574\uC0C1\uB3C4 \uBC0F \uB80C\uB354\uB9C1","Resources":"\uB9AC\uC18C\uC2A4","Resources are automatically added to your project whenever you add an image, a font or a video to an object or when you choose an audio file in events. Choose a resource to display its properties.":"\uAC1D\uCCB4\uC5D0 \uC774\uBBF8\uC9C0, \uAE00\uAF34 \uB610\uB294 \uBE44\uB514\uC624\uB97C \uCD94\uAC00\uD558\uAC70\uB098 \uC774\uBCA4\uD2B8\uC5D0\uC11C \uC624\uB514\uC624 \uD30C\uC77C\uC744 \uC120\uD0DD\uD560 \uB54C\uB9C8\uB2E4 \uD504\uB85C\uC81D\uD2B8\uC5D0 \uB9AC\uC18C\uC2A4\uAC00 \uC790\uB3D9\uC73C\uB85C \uCD94\uAC00\uB429\uB2C8\uB2E4. \uC18D\uC131\uC744 \uD45C\uC2DC\uD560 \uB9AC\uC18C\uC2A4\uB97C \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624.","Restart":"\uC7AC\uC2DC\uC791","Restore original size":"\uC6D0\uBCF8 \uC0AC\uC774\uC988 \uBCF5\uAD6C","Restore the default collision mask":"\uB514\uD3F4\uD2B8 \uCDA9\uB3CC \uB9C8\uC2A4\uD06C\uB97C \uBCF5\uC6D0\uD569\uB2C8\uB2E4","Retry":"\uC7AC\uC2DC\uB3C4","Right (secondary)":"\uC624\uB978\uCABD(2\uBC88\uC9F8)","Right margin":"\uC624\uB978\uCABD \uC5EC\uBC31","Run a preview and you will be able to inspect it with the debugger.":"\uBBF8\uB9AC\uBCF4\uAE30\uAC00 \uC2E4\uD589\uD558\uACE0 \uB514\uBC84\uAC70\uB85C \uC774\uB97C \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4","Run on this computer":"\uC774 \uCEF4\uD4E8\uD130\uC5D0\uC11C \uC2E4\uD589\uD569\uB2C8\uB2E4.","Save":"\uC800\uC7A5\uD558\uAE30","Save as...":"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5\uD558\uAE30","Save on Google Drive":"\uAD6C\uAE00 \uB4DC\uB77C\uC774\uBE0C\uC5D0 \uC800\uC7A5","Saving...":"\uC800\uC7A5 \uC911...","Scale mode (also called \"Sampling\")":"\uC2A4\uCF00\uC77C \uBAA8\uB4DC(Sampling)","Scene Variables":"Scene \uBCC0\uC218","Scene background color":"Scene \uBC30\uACBD \uC0C9\uC0C1","Scene name":"Scene name","Scene name (text)":"Scene \uC774\uB984(Text)","Scene properties":"Scene \uC18D\uC131","Scene variable":"Scene variable","Scene variables can be used to store any value or text during the game.":"Scene \uBCC0\uC218\uB294 \uC5EC\uB7EC \uB370\uC774\uD130\uB97C \uAC8C\uC784\uB3C4\uC911\uC5D0 \uC800\uC7A5\uD558\uB294 \uB370 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","Scenes":"Scenes","Search":"\uAC80\uC0C9","Search New Behaviors":"\uC0C8 \uD589\uB3D9 \uD0D0\uC0C9","Search for New Extensions":"\uC0C8 \uD655\uC7A5 \uAC80\uC0C9\uD558\uAE30","Search for new extensions":"\uC0C8 \uD655\uC7A5 \uAC80\uC0C9\uD558\uAE30","Search in events":"\uC774\uBCA4\uD2B8 \uAC80\uC0C9","Search in:":"Search in:","Search the documentation":"\uAE30\uB85D\uBB38\uC11C \uAC80\uC0C9\uD558\uAE30","Search {searchPlaceholderObjectName} actions":function(a){return[a("searchPlaceholderObjectName")," \uC561\uC158 \uAC80\uC0C9"]},"Search {searchPlaceholderObjectName} conditions":function(a){return[a("searchPlaceholderObjectName")," \uC870\uAC74 \uAC80\uC0C9"]},"Section name":"\uC139\uC158 \uC774\uB984","See all my builds":"\uC804\uCCB4 \uBE4C\uB4DC \uC0C1\uD669 \uBCF4\uAE30","See all the releases notes":"\uBAA8\uB4E0 \uB9B4\uB9AC\uC988 \uC815\uBCF4 \uBCF4\uAE30","See examples":"\uC608\uC2DC \uD655\uC778","See logs":"\uB85C\uADF8 \uBCF4\uAE30","See the releases notes online":"\uC628\uB77C\uC778 \uB9B4\uB9AC\uC2A4 \uC815\uBCF4 \uBCF4\uAE30","Select a behavior to display the functions inside this behavior.":"\uD589\uB3D9\uC744 \uC120\uD0DD\uD574 \uC120\uD0DD\uB41C \uD589\uB3D9\uB0B4 \uAE30\uB2A5\uB4E4\uC744 \uD655\uC778\uD558\uC138\uC694.","Select an image":"\uC774\uBBF8\uC9C0 \uC120\uD0DD","Sentence in Events Sheet":"\uC774\uBCA4\uD2B8 \uC2DC\uD2B8\uC758 \uBB38\uC7A5","Set property {propertyName} of _PARAM0_ to _PARAM2_":function(a){return["_PARAM0_\uC758 \uC18D\uC131 ",a("propertyName")," \uC744_PARAM2_\uB85C \uC124\uC815\uD569\uB2C8\uB2E4"]},"Setting the minimum number of FPS below 20 will increase a lot the time that is allowed between the simulation of two frames of the game. If case of a sudden slowdown, or on slow computers, this can create buggy behaviors like objects passing beyond a wall. Consider setting 20 as the minimum FPS.":"FPS\uC758 \uCD5C\uC18C \uC218\uB97C 20\uBBF8\uB9CC\uC73C\uB85C \uC124\uC815\uD558\uBA74, \uAC8C\uC784 \uC18D 2\uAC1C\uC758 \uD504\uB808\uC784\uC774 \uC2DC\uBBAC\uB808\uC774\uC158 \uC0AC\uC774\uC5D0 \uD5C8\uC6A9\uD558\uB294 \uC2DC\uAC04\uC774 \uD06C\uAC8C \uAE38\uC5B4\uC9D1\uB2C8\uB2E4. \uAC11\uC791\uC2A4\uB7F0 \uB454\uD654 \uB610\uB294 \uCEF4\uD4E8\uD130\uC758 \uC131\uB2A5\uC774 \uB290\uB9B4 \uACBD\uC6B0 \uBCBD \uB108\uBA38 \uC9C0\uB098\uB2E4\uB2C8\uB294 \uC624\uBE0C\uC81D\uD2B8\uB4E4\uC774 \uD1B5\uACFC\uD558\uB294 \uBC84\uADF8\uAC00 \uBC1C\uC0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uCD5C\uC18C FPS\uC744 20\uC744 \uC124\uC815\uD558\uB3C4\uB85D \uAC80\uD1A0\uD558\uC138\uC694","Share same collision masks for all animations":"\uBAA8\uB4E0 \uC560\uB2C8\uBA54\uC774\uC158\uC5D0 \uB300\uD574 \uB3D9\uC77C\uD55C \uCDA9\uB3CC \uB9C8\uC2A4\uD06C \uACF5\uC720","Share same collision masks for all sprites of this animation":"\uC774 \uC560\uB2C8\uBA54\uC774\uC158\uC758 \uBAA8\uB4E0 \uC2A4\uD504\uB77C\uC774\uD2B8\uC5D0 \uB300\uD574 \uB3D9\uC77C\uD55C \uCDA9\uB3CC \uB9C8\uC2A4\uD06C \uACF5\uC720","Share same points for all animations":"\uC560\uB2C8\uBA54\uC774\uC158\uB4E4\uC5D0\uC11C \uAC19\uC740 \uD3EC\uC778\uD2B8 \uACF5\uC720","Share same points for all sprites of this animation":"\uC774 \uC560\uB2C8\uBA54\uC774\uC158\uC758 \uBAA8\uB4E0 \uC2A4\uD504\uB77C\uC774\uD2B8\uC5D0\uC11C \uAC19\uC740 \uD3EC\uC778\uD2B8 \uACF5\uC720","Short description":"\uAC04\uB2E8\uD55C \uC124\uBA85","Should finish soon.":"\uACE7 \uC885\uB8CC\uB420 \uAC81\uB2C8\uB2E4.","Show Project Manager":"\uD504\uB85C\uC81D\uD2B8 \uAD00\uB9AC\uC790 \uBCF4\uAE30","Show Start Page":"\uC2DC\uC791 \uD654\uBA74 \uBCF4\uAE30","Show deprecated (old) behaviors":"Show deprecated (old) behaviors","Show experimental exports":"Show experimental exports","Show experimental objects":"Show experimental objects","Show lifecycle functions (advanced)":"Show lifecycle functions (advanced)","Single file (default)":"Single file (default)","Size":"\uD06C\uAE30","Size:":"\uD06C\uAE30:","Something wrong happened :(":"\uBB34\uC5B8\uAC00 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4 :(","Speech":"\uC74C\uC131","Spray cone angle (in degrees)":"Spray cone angle (in degrees)","Start Page":"\uC2DC\uC791 \uD654\uBA74","Start a new game from scratch.":"Scratch\uC5D0\uC11C \uC0C8\uB85C\uC6B4 \uAC8C\uC784\uC744 \uC2DC\uC791\uD558\uC138\uC694.","Start opacity (0-255)":"\uBD88\uD22C\uBA85\uB3C4 \uAC12 (0-255)","Start profiling":"\uD504\uB85C\uD30C\uC77C\uB9C1 \uC815\uC9C0","Start profiling and then stop it after a few seconds to see the results.":"\uD504\uB85C\uD30C\uC77C\uB9C1\uC744 \uBA48\uCD94\uACE0 \uACB0\uACFC\uB97C \uBCF4\uAE30\uC704\uD574 \uC774\uAC83\uC744 \uBA87 \uCD08 \uBA48\uCDA5\uB2C8\uB2E4.","Start using GDevelop":"GDevelop \uC2DC\uC791\uD558\uAE30","Starters":"\uC2A4\uD0C0\uD130","Static":"\uC815\uC801","Stop musics and sounds on startup":"\uD2C0\uC5B4\uC9C4 \uC74C\uC545\uACFC \uC18C\uB9AC \uC815\uC9C0","Stop profiling":"\uD504\uB85C\uD30C\uC77C\uB9C1 \uBA48\uCD94\uAE30","String":"\uBB38\uC790\uC5F4","String (text)":"\uBB38\uC790\uC5F4 (\uD14D\uC2A4\uD2B8)","String Expression":"\uBB38\uC790\uC5F4 \uD45C\uD604","Submit extension to the community":"\uCEE4\uBBA4\uB2C8\uD2F0\uC5D0 \uD655\uC7A5\uC744 \uC81C\uCD9C\uD569\uB2C8\uB2E4.","Submit your example":"\uB2F9\uC2E0\uC758 \uC608\uC81C\uB97C \uC81C\uCD9C\uD569\uB2C8\uB2E4.","Subscriptions can be stopped at any time. GDevelop uses Stripe.com for secure payment. No credit card data is stored by GDevelop: everything is managed by Stripe secure infrastructure.":"Subscriptions can be stopped at any time. GDevelop uses Stripe.com for secure payment. No credit card data is stored by GDevelop: everything is managed by Stripe secure infrastructure.","Support for translations is still new and in beta. GDevelop needs your help to be translated in your language!":"\uBC88\uC5ED\uC5D0 \uB300\uD55C \uB3C4\uC6C0\uC740 \uBCA0\uD0C0\uC0C1\uD0DC\uC778 \uC9C0\uAE08 \uC5B8\uC81C\uB098 \uD544\uC694\uD569\uB2C8\uB2E4. GDevelop\uC740 \uB2F9\uC2E0\uC758 \uC5B8\uC5B4\uB85C \uBC88\uC5ED\uD574\uC904 \uC5EC\uB7EC\uBD84\uC758 \uB3C4\uC6C0\uC774 \uD544\uC694\uD569\uB2C8\uB2E4!","Tags (comma separated)":"\uD0DC\uADF8 (\uC27C\uD45C\uB85C \uAD6C\uBD84)","Tank Shooter Tutorial":"\uD0F1\uD06C \uC288\uD305 \uD29C\uD1A0\uB9AC\uC5BC","Text color:":"Text color:","Text to replace in parameters":"Text to replace in parameters","Text to search in parameters":"Text to search in parameters","Texts":"Texts","Textured":"\uD14D\uC2A4\uCCD0","Thanks for getting a subscription and supporting GDevelop!":"\uB2F9\uC2E0\uC758 \uAD6C\uB3C5\uACFC GDevelop\uC744 \uB3C4\uC640\uC8FC\uC2E0 \uAC83\uC5D0 \uAC10\uC0AC\uB4DC\uB9BD\uB2C8\uB2E4!","Thanks to all users of GDevelop! There must be missing tons of people, please send your name if you've contributed and you're not listed.":"GDevelop\uC758 \uBAA8\uB4E0 \uC720\uC800\uC5D0\uAC8C \uAC10\uC0AC\uB4DC\uB9BD\uB2C8\uB2E4! \uB9CC\uC57D \uC218\uB9CE\uC740 \uC0AC\uB78C\uB4E4 \uC911 \uB2F9\uC2E0\uC774 GDevelop\uC5D0 \uAE30\uC5EC\uD588\uACE0, \uC544\uC9C1 \uB9AC\uC2A4\uD2B8\uC5D0 \uC62C\uB77C\uC624\uC9C0 \uC54A\uC558\uB2E4\uBA74 \uB2F9\uC2E0\uC758 \uC774\uB984\uC744 \uBCF4\uB0B4\uC8FC\uC138\uC694.","Thanks!":"\uAC10\uC0AC\uD569\uB2C8\uB2E4!","The behavior is not attached to this object. Please select another object or add this behavior.":"\uC774 \uD589\uB3D9\uC740 \uC624\uBE0C\uC81D\uD2B8\uC758 \uC601\uD5A5\uC744 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uC624\uBE0C\uC81D\uD2B8\uB97C \uC120\uD0DD\uD558\uAC70\uB098 \uC774 \uD589\uB3D9\uC744 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.","The description of the behavior should explain what the behavior is doing to the object, and, briefly, how to use it.":"The description of the behavior should explain what the behavior is doing to the object, and, briefly, how to use it.","The force will only push the object during the time of one frame. Typically used in an event with no conditions or with conditions that stay valid for a certain amount of time.":"The force will only push the object during the time of one frame. Typically used in an event with no conditions or with conditions that stay valid for a certain amount of time.","The force will push the object forever, unless you use the action \"Stop the object\". Typically used in an event with conditions that are only true once, or with a \"Trigger Once\" condition.":"The force will push the object forever, unless you use the action \"Stop the object\". Typically used in an event with conditions that are only true once, or with a \"Trigger Once\" condition.","The game was properly exported. You can now use Electron Builder (you need Node.js installed and to use the command-line on your computer to run it) to create an executable.":"The game was properly exported. You can now use Electron Builder (you need Node.js installed and to use the command-line on your computer to run it) to create an executable.","The name of a parameter can not be empty. Enter a name for the parameter or you won't be able to use it.":"The name of a parameter can not be empty. Enter a name for the parameter or you won't be able to use it.","The name of a property cannot be \"name\" or \"type\", as they are used by GDevelop internally.":"\uC18D\uC131\uC758 \uC774\uB984\uC73C\uB85C GDevelop\uC5D0\uC11C \uB0B4\uBD80\uC801\uC73C\uB85C \uC0AC\uC6A9\uB418\uB294 \"\uC774\uB984\"\uC774\uB098 \"\uD0C0\uC785\"\uC740 \uC0AC\uC6A9\uB420 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","The name of a property cannot be empty.":"\uC18D\uC131\uC758 \uC774\uB984\uC740 \uBE44\uC5B4\uC788\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","The object does not exist or can't be used here.":"\uC624\uBE0C\uC81D\uD2B8\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uAC70\uB098 \uC5EC\uAE30 \uC0AC\uC6A9\uB420 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","The package name is containing invalid characters or not following the convention \"xxx.yyy.zzz\" (numbers allowed after a letter only).":"The package name is containing invalid characters or not following the convention \"xxx.yyy.zzz\" (numbers allowed after a letter only).","The preview could not be launched because an error happened: {0}.":function(a){return["The preview could not be launched because an error happened: ",a("0"),"."]},"The preview could not be launched because you're offline.":"The preview could not be launched because you're offline.","The project file appears to be malformed, but an autosave file exists (backup made automatically by GDevelop). Would you like to try to load it instead?":"The project file appears to be malformed, but an autosave file exists (backup made automatically by GDevelop). Would you like to try to load it instead?","The sentence is probably missing this/these parameter(s):":"\uBB38\uC7A5\uC5D0\uC11C \uC774 \uD30C\uB77C\uBBF8\uD130(\uB4E4) \uC744 \uB204\uB77D\uB418\uC5C8\uC2B5\uB2C8\uB2E4.:","The shape used in the Physics behavior is independent from the collision mask of the object. Be sure to use the \"Collision\" condition provided by the Physics behavior in the events. The usual \"Collision\" condition won't take into account the shape that you've set up here.":"The shape used in the Physics behavior is independent from the collision mask of the object. Be sure to use the \"Collision\" condition provided by the Physics behavior in the events. The usual \"Collision\" condition won't take into account the shape that you've set up here.","The specified external events do not exist in the game. Be sure that the name is correctly spelled or create them using the project manager.":"The specified external events do not exist in the game. Be sure that the name is correctly spelled or create them using the project manager.","The usage of a number or expression is deprecated. Please now use only \"Permanent\" or \"Instant\" for configuring forces.":"The usage of a number or expression is deprecated. Please now use only \"Permanent\" or \"Instant\" for configuring forces.","There are no events here. Events are composed of conditions and actions.":"\uC774\uBCA4\uD2B8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. \uC774\uBCA4\uD2B8\uB294 \uC870\uAC74\uACFC \uC561\uC158\uC73C\uB85C \uC774\uB8E8\uC5B4 \uC9D1\uB2C8\uB2E4.","There are no objects. Objects will appear if you add some as parameters.":"There are no objects. Objects will appear if you add some as parameters.","There are other results not displayed. Enter more precise search criteria to find other extensions.":"\uD45C\uD604\uB418\uC9C0 \uC54A\uC740 \uB2E4\uB978 \uACB0\uACFC\uB4E4\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uB354 \uC815\uD655\uD55C \uAC80\uC0C9 \uAE30\uC900\uC744 \uC785\uB825\uD558\uC5EC \uB2E4\uB978 \uD655\uC7A5\uC744 \uCC3E\uC73C\uC2ED\uC2DC\uC624.","There is no object in your game or in this scene. Start by adding an new object in the scene editor, using the objects list.":"\uAC8C\uC784\uC774\uB098 Scene\uC5D0 \uC624\uBE0C\uC81D\uD2B8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4. \uC624\uBE0C\uC81D\uD2B8 \uBAA9\uB85D\uC744 \uC0AC\uC6A9\uD558\uC5EC Scene \uD3B8\uC9D1\uAE30\uC5D0\uC11C \uC0C8 \uC624\uBE0C\uC81D\uD2B8\uB97C \uCD94\uAC00\uD558\uC2ED\uC2DC\uC624.","There is nothing to configure for this behavior. You can still use events to interact with the object and this behavior.":"\uC774 \uD589\uB3D9\uC744 \uAD6C\uC131\uD558\uB294 \uAC83\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2F9\uC2E0\uC740 \uC774\uBCA4\uD2B8\uB97C \uC774\uC6A9\uD574 \uC624\uBE0C\uC81D\uD2B8, \uD589\uB3D9\uACFC \uC0C1\uD638\uC791\uC6A9\uD558\uB294 \uAC83\uC774 \uAC00\uB2A5\uD569\uB2C8\uB2E4.","There is nothing to configure for this object. You can still use events to interact with the object.":"\uC774 \uC624\uBE0C\uC81D\uD2B8\uB97C \uAD6C\uC131\uD558\uB294 \uAC83\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2F9\uC2E0\uC740 \uC774\uBCA4\uD2B8\uB97C \uC774\uC6A9\uD574 \uC624\uBE0C\uC81D\uD2B8\uC640 \uC0C1\uD638\uC791\uC6A9\uD558\uB294 \uAC83\uC774 \uAC00\uB2A5\uD569\uB2C8\uB2E4.","There is nothing to configure.":"\uAD6C\uC131\uD560 \uAC83\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.","Third editor":"Third editor","This action is deprecated and should not be used anymore. Instead, use for all your objects the behavior called \"Physics2\" and the associated actions (in this case, all objects must be set up to use Physics2, you can't mix the behaviors).":"This action is deprecated and should not be used anymore. Instead, use for all your objects the behavior called \"Physics2\" and the associated actions (in this case, all objects must be set up to use Physics2, you can't mix the behaviors).","This action will create a new texture and re-render the text each time it is called, which is expensive and can reduce performances. Prefer to avoid changing a lot the character size of a text.":"This action will create a new texture and re-render the text each time it is called, which is expensive and can reduce performances. Prefer to avoid changing a lot the character size of a text.","This behavior is being used by multiple types of objects. Thus, you can't restrict its usage to any particular object type. All the object types using this behavior are listed here: {0}":function(a){return["This behavior is being used by multiple types of objects. Thus, you can't restrict its usage to any particular object type. All the object types using this behavior are listed here: ",a("0")]},"This behavior is unknown. It might be a behavior that was defined in an extension and that was later removed. You should delete it.":"This behavior is unknown. It might be a behavior that was defined in an extension and that was later removed. You should delete it.","This build is old and the generated games can't be downloaded anymore.":"\uBE4C\uB4DC\uB294 \uC624\uB798\uB418\uC5B4 \uB354\uC774\uC0C1 \uC0DD\uC131\uB41C \uAC8C\uC784\uC744 \uB2E4\uC6B4\uBC1B\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","This export is experimental and not all features are supported by Cocos2D-JS. It's recommended that you thoroughly test your game and be ready to contribute to the game engine if you need to implement missing features.":"This export is experimental and not all features are supported by Cocos2D-JS. It's recommended that you thoroughly test your game and be ready to contribute to the game engine if you need to implement missing features.","This file is an extension file for GDevelop 5. You should instead import it, using the window to add a new extension to your project.":"\uC774 \uD30C\uC77C\uC740 GDevelop\uC758 \uD655\uC7A5 \uD30C\uC77C\uC785\uB2C8\uB2E4. \uB2F9\uC2E0\uC740 \uC708\uB3C4\uC6B0\uB97C \uC0AC\uC6A9\uD558\uC5EC \uD504\uB85C\uC81D\uD2B8\uC5D0 \uC0C8 \uD655\uC7A5\uBA85\uC744 \uCD94\uAC00\uD558\uC5EC \uAC00\uC838\uC640\uC57C\uD569\uB2C8\uB2E4.","This file is not recognized as a GDevelop 5 project. Be sure to open a file that was saved using GDevelop.":"\uC774 \uD30C\uC77C\uC740 G Develop 5 \uD504\uB85C\uC81D\uD2B8\uAC00 \uC778\uC2DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uD30C\uC77C\uC744 \uC5F4\uC5B4 GDevelop\uC774 \uC0AC\uC6A9\uD560 \uC218 \uC788\uB294 \uD30C\uC77C\uB85C \uC800\uC7A5\uD574\uC8FC\uC138\uC694.","This function will have a lot of parameters. Consider creating groups or functions for a smaller set of objects so that the function is easier to reuse.":"\uC774 \uD568\uC218\uB294 \uD30C\uB77C\uBBF8\uD130\uB97C \uB108\uBB34 \uB9CE\uC774 \uAC00\uC9C0\uACE0 \uC788\uC2B5\uB2C8\uB2E4. \uB354 \uC801\uC740 \uC624\uBE0C\uC81D\uD2B8\uB4E4\uC5D0 \uB300\uD55C \uADF8\uB8F9\uC774\uB098 \uD568\uC218\uB97C \uB9CC\uB4E4\uC5B4 \uC774 \uD568\uC218\uC758 \uC7AC\uC0AC\uC6A9\uC744 \uC27D\uAC8C \uD558\uC138\uC694.","This is a \"lifecycle function\". It will be called automatically by the game engine. It has no parameters. Only global objects can be used as the events will be run for all scenes in your game.":"This is a \"lifecycle function\". It will be called automatically by the game engine. It has no parameters. Only global objects can be used as the events will be run for all scenes in your game.","This is a \"lifecycle method\". It will be called automatically by the game engine and has two parameters: \"Object\" (the object the behavior is acting on) and \"Behavior\" (the behavior itself).":"This is a \"lifecycle method\". It will be called automatically by the game engine and has two parameters: \"Object\" (the object the behavior is acting on) and \"Behavior\" (the behavior itself).","This is a \"lifecycle method\". It will be called automatically by the game engine for each instance living on the scene having the behavior.":"This is a \"lifecycle method\". It will be called automatically by the game engine for each instance living on the scene having the behavior.","This is a UI component dev environment for GDevelop.":"\uC774\uAC83\uC740 GDevelop\uB97C \uC704\uD55C UI \uCEF4\uD3EC\uB10C\uD2B8 \uAC1C\uBC1C \uD658\uACBD\uC785\uB2C8\uB2E4.","This is a version of GDevelop 5 that you can try online.":"\uC628\uB77C\uC778\uC73C\uB85C \uC0AC\uC6A9\uAC00\uB2A5\uD55C GDevelop 5 \uBC84\uC83C\uC785\uB2C8\uB2E4.","This is the list of builds that you've done. Note that you can download games generated during the last 7 days, after which they are removed.":"This is the list of builds that you've done. Note that you can download games generated during the last 7 days, after which they are removed.","This is your current plan":"\uC774\uAC83\uC740 \uB2F9\uC2E0\uC758 \uD604\uC7AC \uACC4\uD68D\uC785\uB2C8\uB2E4.","This name cannot be empty, please enter a new name.":"\uC774 \uC774\uB984\uC740 \uBE44\uBA74 \uC548\uB429\uB2C8\uB2E4. \uC0C8 \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694.","This name is already taken":"\uC774 \uC774\uB984\uC740 \uC774\uBBF8 \uC0AC\uC6A9\uC911\uC785\uB2C8\uB2E4.","This name is already taken by another extension.":"\uC774 \uC774\uB984\uC740 \uC774\uBBF8 \uB2E4\uB978 '\uD655\uC7A5'\uC5D0\uC11C \uC0AC\uC6A9\uC911\uC785\uB2C8\uB2E4.","This name is already taken by another function. Choose another name.":"\uC774 \uC774\uB984\uC740 \uC774\uBBF8 \uC0AC\uC6A9\uC911\uC785\uB2C8\uB2E4. \uB2E4\uB978 \uC774\uB984\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694.","This name is already used by another property. Choose a unique name for each property.":"\uC774 \uC774\uB984\uC740 \uC774\uBBF8 \uB2E4\uB978 \uC18D\uC131\uC5D0\uC11C \uC0AC\uC6A9\uC911\uC785\uB2C8\uB2E4. \uAC01 \uC18D\uC131\uB9C8\uB2E4 \uB2E4\uB978 \uC774\uB984\uC744 \uC9C0\uC5B4\uC8FC\uC138\uC694.","This name is invalid. Only use alphanumeric characters (0-9, a-z) and underscores. Digits are not allowed as the first character.":"This name is invalid. Only use alphanumeric characters (0-9, a-z) and underscores. Digits are not allowed as the first character.","This name is not valid. Only use alphanumeric characters (0-9, a-z) and underscores.":"\uC774 \uC774\uB984\uC740 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC624\uC9C1 \uC54C\uD30C\uBCB3\uACFC \uC22B\uC790(0-9, a-z) \uADF8\uB9AC\uACE0 \uC5B8\uB354\uC2A4\uCF54\uC5B4\uB9CC \uC0AC\uC6A9\uD574\uC8FC\uC138\uC694.","This name is reserved for a lifecycle function of the extension. Choose another name for your function.":"This name is reserved for a lifecycle function of the extension. Choose another name for your function.","This name is reserved for a lifecycle method of the behavior. Choose another name for your custom function.":"This name is reserved for a lifecycle method of the behavior. Choose another name for your custom function.","This object does not have any specific configuration. Add it on the scene and use events to interact with it.":"This object does not have any specific configuration. Add it on the scene and use events to interact with it.","This object has no animations containing images. Start by adding an animation.":"\uC774 \uC624\uBE0C\uC81D\uD2B8\uB294 \uC774\uBBF8\uC9C0\uB97C \uAC00\uC9C4 \uC560\uB2C8\uBA54\uC774\uC158\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uC560\uB2C8\uBA54\uC774\uC158\uC744 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.","This object has no behaviors: please add this behavior to the object first.":"\uC774 \uC624\uBE0C\uC81D\uD2B8\uB294 \uD589\uB3D9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uC6B0\uC120 \uC624\uBE0C\uC81D\uD2B8\uC5D0 \uD589\uB3D9\uC744 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.","This object is experimental and not actively maintained. It might have bugs or incomplete support in GDevelop. A maintainer is searched to improve the object implementation and solve any issue. Your help is welcome!":"This object is experimental and not actively maintained. It might have bugs or incomplete support in GDevelop. A maintainer is searched to improve the object implementation and solve any issue. Your help is welcome!","This should make the purpose of the property easy to understand":"This should make the purpose of the property easy to understand","This sprite uses the default collision mask, a rectangle that is as large as the sprite.":"\uC774 \uC2A4\uD504\uB77C\uC774\uD2B8\uB294 \uC2A4\uD504\uB77C\uC774\uD2B8\uC758 \uC0AC\uAC01\uD615 \uD06C\uAE30\uB9CC\uD07C \uCDA9\uB3CC \uBC94\uC704 \uC9C0\uC815\uC5D0 \uC0AC\uC6A9\uB429\uB2C8\uB2E4.","This will export your game and upload it on GDevelop games hosting. The game will be freely accessible from the link, available for a few days and playable from any computer browser or mobile phone (iOS, Android 5+).":"This will export your game and upload it on GDevelop games hosting. The game will be freely accessible from the link, available for a few days and playable from any computer browser or mobile phone (iOS, Android 5+).","This will export your game as a Cordova project. Cordova is a technology that enables HTML5 games to be packaged for iOS and Android.":"This will export your game as a Cordova project. Cordova is a technology that enables HTML5 games to be packaged for iOS and Android.","This will export your game so that you can package it for Windows, macOS or Linux. You will need to install third-party tools (Node.js, Electron Builder) to package your game.":"This will export your game so that you can package it for Windows, macOS or Linux. You will need to install third-party tools (Node.js, Electron Builder) to package your game.","This will export your game to a folder.":"This will export your game to a folder.","This will export your game using Cocos2d-JS game engine. The game can be compiled for Android or iOS if you install Cocos2d-JS developer tools.":"This will export your game using Cocos2d-JS game engine. The game can be compiled for Android or iOS if you install Cocos2d-JS developer tools.","This/these file(s) are outside the project folder. Would you like to make a copy of them in your project folder first (recommended)?":"This/these file(s) are outside the project folder. Would you like to make a copy of them in your project folder first (recommended)?","Time (ms)":"\uC2DC\uAC04 (\uBC00\uB9AC\uCD08)","To begin, open or create a new project.":"\uC2DC\uC791\uD558\uAE30 \uC704\uD574, \uC0C8 \uD504\uB85C\uC81D\uD2B8\uB97C \uC5F4\uAC70\uB098 \uB9CC\uB4DC\uC2ED\uC2DC\uC624.","To edit the external events, choose the scene in which it will be included:":"To edit the external events, choose the scene in which it will be included:","To edit the external layout, choose the scene in which it will be included:":"To edit the external layout, choose the scene in which it will be included:","To obtain the best pixel-perfect effect possible, go in the resources editor and disable the Smoothing for all images of your game. It will be done automatically for new images added from now.":"To obtain the best pixel-perfect effect possible, go in the resources editor and disable the Smoothing for all images of your game. It will be done automatically for new images added from now.","To preview the shape that the Physics engine will use for this object, choose first a temporary image to use for the preview.":"To preview the shape that the Physics engine will use for this object, choose first a temporary image to use for the preview.","To skip this dialog and <0>directly open the preview next time</0>, please allow popups to be opened for this website in your browser.":"To skip this dialog and <0>directly open the preview next time</0>, please allow popups to be opened for this website in your browser.","To use this feature, we ask you to get a subscription to GDevelop.":"\uC774 \uAE30\uB2A5\uC744 \uC0AC\uC6A9\uD558\uB824\uBA74 GDevelop\uC5D0 \uAC00\uC785\uD558\uC2ED\uC2DC\uC624.","Toggle/edit grid":"\uD1A0\uAE00/\uACA9\uC790 \uD3B8\uC9D1","Top margin":"\uC0C1\uB2E8 \uC5EC\uBC31","Top-Left":"\uC88C\uCE21 \uC0C1\uB2E8","True":"\uCC38","True (checked)":"\uCC38 (\uD655\uC778 \uB428)","True or False":"\uCC38 \uB610\uB294 \uAC70\uC9D3","Turn on Fullscreen":"\uC804\uCCB4 \uD654\uBA74\uC73C\uB85C \uC804\uD658","Tutorials":"\uD29C\uD1A0\uB9AC\uC5BC","Tutorials are available on GDevelop wiki. Choose a tutorial to read:":"\uD29C\uD1A0\uB9AC\uC5BC\uC740 GDevelop \uC704\uD0A4\uC5D0\uC11C \uC77D\uC73C\uC2E4 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC77D\uC73C\uC2E4 \uD29C\uD1A0\uB9AC\uC5BC\uC744 \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624:","Type":"\uD615\uC2DD","Type:":"Type:","UI Theme":"UI \uD14C\uB9C8","Unable to create the game in the specified folder. Check that you have permissions to write in this folder: {outputPath} or choose another folder.":function(a){return["\uBD84\uB958\uB41C \uD3F4\uB354\uC5D0\uC120 \uAC8C\uC784\uC744 \uC0DD\uC131\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC774 \uD3F4\uB354\uC5D0 \uC77D\uAE30 \uAD8C\uD55C\uC774 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC2ED\uC2DC\uC624:",a("outputPath")," \uD639\uC740 \uB2E4\uB978 \uD3F4\uB354\uB97C \uACE8\uB77C\uC8FC\uC138\uC694."]},"Unable to download and install the extension. Verify that your internet connection is working or try again later.":"\uD655\uC7A5\uC744 \uC124\uCE58 \uBC0F \uB2E4\uC6B4\uB85C\uB4DC \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC778\uD130\uB137 \uC5F0\uACB0\uC744 \uD655\uC778\uD558\uAC70\uB098 \uC7A0\uC2DC\uD6C4 \uB2E4\uC2DC \uC2E4\uD589\uD574\uC8FC\uC138\uC694.","Unable to load the code editor":"\uCF54\uB4DC \uC5D0\uB514\uD130\uB97C \uBD88\uB7EC\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","Unable to load the image":"\uC774\uBBF8\uC9C0\uB97C \uB85C\uB4DC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","Unable to load the information about the latest GDevelop releases. Verify your internet connection or retry later.":"GDevelop\uC5D0\uC11C \uB9C8\uC9C0\uB9C9\uC73C\uB85C \uB0B4\uBCF4\uB0B8 \uC815\uBCF4\uB97C \uBD88\uB7EC\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2F9\uC2E0\uC758 \uC778\uD130\uB137 \uC5F0\uACB0\uC744 \uD655\uC778\uD558\uAC70\uB098 \uC7A0\uC2DC\uB9CC \uAE30\uB2E4\uB824\uC8FC\uC2ED\uC2DC\uC624.","Unable to open the preview! Be sure that popup are allowed for this website.":"\uBBF8\uB9AC\uBCF4\uAE30\uB97C \uC5F4\uC218\uC5C6\uC2B5\uB2C8\uB2E4! \uC774 \uC6F9\uC0AC\uC774\uD2B8\uC5D0 \uD31D\uC5C5 \uD5C8\uC6A9\uC774 \uB418\uC5C8\uB294\uC9C0 \uD655\uC778\uD558\uC2ED\uC2DC\uC624.","Unable to open the project.":"\uD504\uB85C\uC81D\uD2B8\uB97C \uC5F4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","Unable to open this file.":"\uD30C\uC77C\uC744 \uC5F4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","Unable to save as the project! Please try again by choosing another location.":"\uD504\uB85C\uC81D\uD2B8\uB85C \uC800\uC7A5\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4! \uB2E4\uB978 \uAC83\uC744 \uC120\uD0DD\uD558\uACE0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.","Unable to save the project! Please try again by choosing another location.":"\uD504\uB85C\uC81D\uD2B8\uB97C \uC800\uC7A5\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4! \uB2E4\uB978 \uAC83\uC744 \uC120\uD0DD\uD558\uACE0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.","Unable to search in the documentation. Are you sure you are online and have a proper internet connection?":"Unable to search in the documentation. Are you sure you are online and have a proper internet connection?","Unable to start the debugger server! Make sure that you are authorized to run servers on this computer.":"\uB514\uBC84\uADF8 \uC11C\uBC84\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4! \uC774 \uCEF4\uD4E8\uD130\uC5D0\uC11C \uC2E4\uD589\uD560 \uAD8C\uD55C\uC774 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC2ED\uC2DC\uC624.","Unable to start the server for the preview! Make sure that you are authorized to run servers on this computer. Otherwise, use classic preview to test your game.":"\uBBF8\uB9AC\uBCF4\uAE30 \uC11C\uBC84\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4! \uC774 \uCEF4\uD4E8\uD130\uC5D0\uC11C \uC2E4\uD589\uD560 \uAD8C\uD55C\uC774 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC2ED\uC2DC\uC624. \uC544\uB2C8\uBA74 \uD074\uB798\uC2DD \uBBF8\uB9AC\uBCF4\uAE30\uB97C \uC0AC\uC6A9\uD574 \uAC8C\uC784\uC744 \uD14C\uC2A4\uD2B8 \uD574\uBCF4\uC138\uC694.","Undo the last changes":"\uB9C8\uC9C0\uB9C9 \uC218\uC815\uC744 \uCDE8\uC18C\uD558\uAE30","Unfortunately, this extension requires a newer version of GDevelop to work. Upgrade GDevelop to be able to use this extension in your project.":"Unfortunately, this extension requires a newer version of GDevelop to work. Upgrade GDevelop to be able to use this extension in your project.","Unknown behavior":"\uBBF8\uD655\uC778 \uD589\uB3D9","Unknown status":"\uBBF8\uD655\uC778 \uC0C1\uD0DC","Update":"\uC5C5\uB370\uC774\uD2B8","Update resolution during the game to fit the screen or window size":"Update resolution during the game to fit the screen or window size","Update the value of {propertyLabel}":function(a){return[a("propertyLable"),"\uC758 \uAC12 \uC5C5\uB370\uC774\uD2B8"]},"Updates":"Updates","Upgrade my account":"\uB0B4 \uACC4\uC815 \uC5C5\uADF8\uB808\uC774\uB4DC","Upgrade/change":"\uC5C5\uB370\uC774\uD2B8/\uBC14\uB010\uC810","Upload to build service":"\uC0DD\uC131 \uC11C\uBE44\uC2A4\uB97C \uC5C5\uB85C\uB4DC\uD569\uB2C8\uB2E4.","Upload your game online directly from GDevelop and share the link to players. Play to your game using your browser on computers and mobile phones.":"Upload your game online directly from GDevelop and share the link to players. Play to your game using your browser on computers and mobile phones.","Use Live Preview over Wifi to quickly test your game on mobiles and tablets.":"Use Live Preview over Wifi to quickly test your game on mobiles and tablets.","Use a custom collision mask":"\uC0AC\uC6A9\uC790 \uC9C0\uC815 \uCDA9\uB3CC mask \uC0AC\uC6A9","Use the Debugger to find and solve issues in your games.":"Use the Debugger to find and solve issues in your games.","Use the new action/condition editor":"\uC0C8\uB85C\uC6B4 \uC561\uC158/\uC870\uAC74 \uD3B8\uC9D1\uAE30 \uC0AC\uC6A9","Using Nearest Scale Mode":"Using Nearest Scale Mode","Using a lot of effects can have a severe negative impact on the rendering performance, especially on low-end or mobile devices. Consider using less effects if possible. You can also disable and re-enable effects as needed using events.":"Using a lot of effects can have a severe negative impact on the rendering performance, especially on low-end or mobile devices. Consider using less effects if possible. You can also disable and re-enable effects as needed using events.","Using effects":"Using effects","Using empty events based behavior":"Using empty events based behavior","Using events based behavior":"Using events based behavior","Using function extractor":"Using function extractor","Using instance drag'n'drop":"Using instance drag'n'drop","Using non smoothed textures":"Using non smoothed textures","Using the instance properties panel":"Using the instance properties panel","Using the objects panel":"Using the objects panel","Using the resource properties panel":"Using the resource properties panel","Using too much effects":"Using too much effects","Validate these parameters":"\uC704 \uD30C\uB77C\uBBF8\uD130\uB4E4 \uD655\uC778\uD558\uAE30","Verify that you have the authorizations for reading the file you're trying to access.":"\uB2F9\uC2E0\uC774 \uC2E4\uD589\uD558\uACE0\uC790 \uD588\uB358 \uD30C\uC77C\uC744 \uC77D\uC744 \uAD8C\uD55C\uC774 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC2ED\uC2DC\uC624.","Version":"\uBC84\uC804","Version number (X.Y.Z)":"\uBC84\uC804 \uC815\uBCF4 (X.Y.Z)","Video files":"\uBE44\uB514\uC624 \uD30C\uC77C","Video format supported can vary according to devices and browsers. For maximum compatibility, use H.264/mp4 file format (and AAC for audio).":"Video format supported can vary according to devices and browsers. For maximum compatibility, use H.264/mp4 file format (and AAC for audio).","Video resource":"Video resource","View":"View","Visible in editor":"\uD3B8\uC9D1\uAE30\uC5D0 \uB098\uD0C0\uB0B4\uAE30","Want to contribute to the examples?":"\uC608\uC2DC\uB4E4\uC5D0 \uAE30\uC5EC\uD558\uACE0 \uC2F6\uC2B5\uB2C8\uAE4C?","Warn/show explanation about:":"Warn/show explanation about:","Watch changes in game engine (GDJS) sources and auto import them (dev only)":"Watch changes in game engine (GDJS) sources and auto import them (dev only)","Web (upload online)":"Web (upload online)","Web (upload online) Build":"Web (upload online) Build","Welcome to GDevelop":"GDevelop\uC758 \uC138\uACC4\uC5D0 \uC624\uC2E0\uAC78 \uD658\uC601\uD569\uB2C8\uB2E4!","What's new in GDevelop?":"GDevelop\uC5D0 \uB300\uD55C \uC0C8 \uC18C\uC2DD\uC774 \uC788\uB098\uC694?","What's new?":"\uC0C8\uB85C\uC6B4 \uC18C\uC2DD\uC774 \uC788\uB098\uC694?","When you add variables to an object, any instance of the object put on the scene or created during the game will have these variables attached to it.":"\uC624\uBE0C\uC81D\uD2B8\uC5D0 \uBCC0\uC218\uB97C \uCD94\uAC00\uD560\uB54C, \uAC8C\uC784 \uB3C4\uC911\uC774\uB098 scene \uB0B4\uC758 \uC624\uBE0C\uC81D\uD2B8\uC5D0\uB3C4 \uC601\uD5A5\uC774 \uAC11\uB2C8\uB2E4.","Wiki":"\uC704\uD0A4","Window title":"\uC708\uB3C4\uC6B0 \uC81C\uBAA9","Windows (auto-installer file)":"\uC708\uB3C4\uC6B0 (\uC790\uB3D9 \uC124\uCE58\uAE30 \uD30C\uC77C)","Windows (exe)":"Windows (exe)","Windows (zip file)":"\uC708\uB3C4\uC6B0 (zip \uD30C\uC77C)","Windows (zip)":"Windows (zip)","Windows/macOS/Linux":"Windows/macOS/Linux","Windows/macOS/Linux (manual)":"Windows/macOS/Linux (manual)","Windows/macOS/Linux Build":"Windows/macOS/Linux Build","X":"X","X offset (in pixels)":"X \uC624\uD504\uC14B (\uD53D\uC140)","Y":"Y","Y offset (in pixels)":"Y \uC624\uD504\uC14B (\uD53D\uC140)","Yes":"\uB124","Yes or No":"Yes or No","You are in raw mode. You can edit the fields, but be aware that this can lead to unexpected results or even crash the debugged game!":"\uD604\uC7AC\uB294 \uBBF8\uCC98\uB9AC \uBAA8\uB4DC\uC785\uB2C8\uB2E4. \uB2F9\uC2E0\uC740 \uD544\uB4DC\uB97C \uC218\uC815\uD560 \uC218 \uC788\uC9C0\uB9CC \uC774\uAC83\uC740 \uC608\uC0C1\uCE58 \uBABB\uD55C \uACB0\uACFC\uB098 \uB514\uBC84\uAE45\uC5D0 \uCDA9\uB3CC\uC744 \uBC1C\uC0DD\uC2DC\uD0AC \uC218 \uC788\uC2B5\uB2C8\uB2E4.","You are not connected. Create an account to access to GDevelop online services and build your game for Android, Windows, macOS and Linux in one click!":"You are not connected. Create an account to access to GDevelop online services and build your game for Android, Windows, macOS and Linux in one click!","You are subscribed to {0}. Congratulations! You have access to more online services, including building your game for Android, Windows, macOS and Linux in one click!":function(a){return["\uB2F9\uC2E0\uC740 ",a("0")," \uC5D0 \uAC00\uC785\uD558\uC168\uC2B5\uB2C8\uB2E4. \uCD95\uD558\uD569\uB2C8\uB2E4! \uC774\uC81C\uB294 \uD55C \uBC88\uC758 \uD074\uB9AD\uB9CC\uC73C\uB85C Android, Windows, macOS \uBC0F Linux \uC6A9 \uAC8C\uC784 \uBE4C\uB4DC\uB97C \uD3EC\uD568\uD55C \uB354 \uB9CE\uC740 \uC628\uB77C\uC778 \uC11C\uBE44\uC2A4\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4!"]},"You can choose a resource from the library below. Adding resources from Dropbox, Google Drive... is coming soon! Download GDevelop for desktop to use your own assets.":"You can choose a resource from the library below. Adding resources from Dropbox, Google Drive... is coming soon! Download GDevelop for desktop to use your own assets.","You can contribute and create your own themes:":"You can contribute and create your own themes:","You can download the file of your game to continue working on it using the full GDevelop version:":"\uC644\uC804\uD55C GDevelop\uBC84\uC83C\uC73C\uB85C \uACC4\uC18D \uC791\uC5C5\uD558\uAE30 \uC704\uD574 \uB2F9\uC2E0\uC758 \uAC8C\uC784\uC744 \uD30C\uC77C\uB85C\uBD80\uD130 \uB2E4\uC6B4\uB85C\uB4DC \uBC1B\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","You can export the extension to a file to easily import it in another project. If your extension is providing useful and reusable functions or behaviors, consider sharing it with the GDevelop community!":"You can export the extension to a file to easily import it in another project. If your extension is providing useful and reusable functions or behaviors, consider sharing it with the GDevelop community!","You can now compile the game by yourself using Cordova command-line tool to iOS (XCode is required) or Android (Android SDK is required).":"You can now compile the game by yourself using Cordova command-line tool to iOS (XCode is required) or Android (Android SDK is required).","You can now create a game on Facebook Instant Games, if not already done, and upload the generated archive.":"You can now create a game on Facebook Instant Games, if not already done, and upload the generated archive.","You can now upload the game to a web hosting or use Cocos2d-JS command line tools to export it to other platforms like iOS (XCode is required) or Android (Android SDK is required).":"You can now upload the game to a web hosting or use Cocos2d-JS command line tools to export it to other platforms like iOS (XCode is required) or Android (Android SDK is required).","You can now upload the game to a web hosting to play to the game.":"\uC774\uC81C \uC6F9 \uD638\uC2A4\uD305\uC73C\uB85C \uD50C\uB808\uC774 \uAC00\uB2A5\uD55C \uAC8C\uC784\uC744 \uC5C5\uB85C\uB4DC \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","You can then upload it on a website/game hosting service and share it on marketplaces and gaming portals like Kongregate, Game Jolt, itch.io, Poki...":"You can then upload it on a website/game hosting service and share it on marketplaces and gaming portals like Kongregate, Game Jolt, itch.io, Poki...","You can try this feature, but if you're using it regularly, we ask you to get a subscription to GDevelop.":"You can try this feature, but if you're using it regularly, we ask you to get a subscription to GDevelop.","You can use GDevelop for free! Online packaging for Android, Windows, macOS and Linux is limited to twice a day to avoid overloading the services.":"You can use GDevelop for free! Online packaging for Android, Windows, macOS and Linux is limited to twice a day to avoid overloading the services.","You don't have a subscription. Get one to increase the limits!":"\uB2F9\uC2E0\uC740 \uC544\uC9C1 \uAC00\uC785\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uAC00\uC785\uD574\uC11C \uD55C\uACC4\uB97C \uB113\uD600\uBCF4\uC138\uC694!","You don't have any builds on the online services for now.":"You don't have any builds on the online services for now.","You don't have any usage of the online services for now":"\uB2F9\uC2E0\uC740 \uC9C0\uAE08 \uC5B4\uB5A4 \uC628\uB77C\uC778 \uC11C\uBE44\uC2A4\uB3C4 \uC0AC\uC6A9\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.","You have {0} remaining builds for today (out of {1}).":function(a){return["You have ",a("0")," remaining builds for today (out of ",a("1"),")."]},"You must be online and have a proper internet connection to export your game.":"You must be online and have a proper internet connection to export your game.","You must select a button":"\uBC84\uD2BC\uC744 \uC120\uD0DD\uD574\uC57C \uD569\uB2C8\uB2E4.","You must select a key.":"Key\uB97C \uC120\uD0DD\uD558\uC154\uC57C\uD569\uB2C8\uB2E4.","You must select a valid key. \"{value}\" is not valid.":function(a){return["\uC720\uC694\uD55C \uD0A4\uB97C \uACE8\uB77C\uC8FC\uC2ED\uC2DC\uC624. \"",a("value"),"\"\uB294 \uC720\uD6A8\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."]},"You need to login first to see your builds.":"You need to login first to see your builds.","You should have received an email containing instructions to reset and set a new password. Once it's done, you can use your new password in GDevelop.":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC218\uC815\uC744 \uC704\uD55C \uC9C0\uCE68\uC774 \uC774\uBA54\uC77C\uB85C \uAC14\uC2B5\uB2C8\uB2E4. \uC791\uC5C5\uC774 \uC644\uB8CC\uB418\uBA74, \uB2F9\uC2E0\uC740 \uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C GDevelop \uC0C1\uC5D0\uC11C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC744 \uAC83\uC785\uB2C8\uB2E4.","You'll also have access to online packaging for iOS or other services when they are released.":"You'll also have access to online packaging for iOS or other services when they are released.","You're about to open a project. Click on \"Open the Project\" to continue.":"\uB2F9\uC2E0\uC740 \uD504\uB85C\uC81D\uD2B8\uB97C \uC5F4\uB824\uACE0 \uD588\uC2B5\uB2C8\uB2E4. \uACC4\uC18D\uD558\uB824\uBA74 \"\uD504\uB85C\uC81D\uD2B8 \uC5F4\uAE30\"\uB97C \uD074\uB9AD\uD574\uC8FC\uC138\uC694.","You're also supporting the development of GDevelop, an open-source software! In the future, more online services will be available for users with a subscription.":"\uB2F9\uC2E0\uB3C4 open-sourse \uC18C\uD504\uD2B8\uC6E8\uC5B4\uB85C GDevelop \uB3C4\uC6C0\uC744 \uC8FC\uACE0 \uC788\uC2B5\uB2C8\uB2E4. \uC774\uD6C4, \uAC00\uC785\uD55C \uBAA8\uB4E0 \uC720\uC800\uAC00 \uB354 \uB9CE\uC740 \uC628\uB77C\uC778 \uC11C\uBE44\uC2A4\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC744 \uAC83\uC785\uB2C8\uB2E4.","You're working on a small screen. It's recommended to activate Fullscreen Mode for using GDevelop.":"\uC791\uC740 \uD654\uBA74\uC5D0\uC11C \uC791\uC5C5\uC911\uC785\uB2C8\uB2E4. GDevelop\uC758 \uC804\uCCB4\uD654\uBA74 \uBAA8\uB4DC\uB97C \uD65C\uC131\uD654\uC2DC\uD0A4\uB294 \uAC78 \uAD8C\uC7A5\uD569\uB2C8\uB2E4.","You've made some changes here. Are you sure you want to discard them and open the function?":"\uBA87\uAC00\uC9C0 \uC218\uC815\uC774 \uC9C4\uD589\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC774\uAC83\uB4E4\uC744 \uC0AD\uC81C\uD558\uACE0 \uD568\uC218\uB97C \uC5EC\uC2DC\uACA0\uC2B5\uB2C8\uB2E4?","Your account is upgraded, with the extra exports and online services. If you wish to change later, come back to your profile and choose another plan.":"Your account is upgraded, with the extra exports and online services. If you wish to change later, come back to your profile and choose another plan.","Your browser will now open to enter your payment details (handled securely by Stripe.com).":"Your browser will now open to enter your payment details (handled securely by Stripe.com).","Your game will be exported and packaged online as a stand-alone game for Windows, Linux and/or macOS.":"Your game will be exported and packaged online as a stand-alone game for Windows, Linux and/or macOS.","Your game won't work if you open index.html on your computer. You must upload it to a web hosting (Kongregate, Itch.io, etc...) or a web server to run it.":"Your game won't work if you open index.html on your computer. You must upload it to a web hosting (Kongregate, Itch.io, etc...) or a web server to run it.","Your name":"\uB2F9\uC2E0\uC758 \uC774\uB984","Your new plan is now activated":"\uB2F9\uC2E0\uC758 \uD50C\uB79C\uC774 \uD65C\uC131\uD654\uB418\uC5C8\uC2B5\uB2C8\uB2E4","Your preview is ready! Click on the button to launch the preview.":"\uB2F9\uC2E0\uC758 \uBBF8\uB9AC\uBCF4\uAE30\uAC00 \uC900\uBE44\uB418\uC5C8\uC2B5\uB2C8\uB2E4! \uBC84\uD2BC\uC744 \uB20C\uB7EC \uBBF8\uB9AC\uBCF4\uAE30\uB97C \uD655\uC778\uD558\uC138\uC694.","Your preview is ready! On your mobile or tablet, open your browser and enter in the address bar:":"\uBBF8\uB9AC\uBCF4\uAE30\uAC00 \uC900\uBE44\uB418\uC5C8\uC2B5\uB2C8\uB2E4! \uB2F9\uC2E0\uC758 \uD578\uB4DC\uD3F0, \uD0C0\uBE14\uB81B \uD639\uC740 \uBE0C\uB77C\uC6B0\uC800\uB97C \uD0A4\uACE0 \uC8FC\uC18C\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694:","Your subscription could not be updated. Please try again later!":"Your subscription could not be updated. Please try again later!","Your subscription was properly cancelled. Sorry to see you go!":"Your subscription was properly cancelled. Sorry to see you go!","YourGame.json":"\uB2F9\uC2E0\uC758\uAC8C\uC784.json","Z Order":"Z Order","Zoom in (you can also use Ctrl + Mouse wheel)":"\uC90C \uC778 (\uCEE8\uD2B8\uB864 + \uB9C8\uC6B0\uC2A4 \uD720\uC744 \uD1B5\uD574 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4)","Zoom out (you can also use Ctrl + Mouse wheel)":"\uC90C \uC544\uC6C3 (\uCEE8\uD2B8\uB864 + \uB9C8\uC6B0\uC2A4 \uD720\uC744 \uD1B5\uD574 \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4)","add":"add","divide by":"divide by","false":"\uAC70\uC9D3","iOS & Android (manual)":"iOS & Android (manual)","iOS (iPhone and iPad) icons:":"iOS (\uC544\uC774\uD3F0 \uB610\uB294 \uC544\uC774\uD328\uB4DC) \uC544\uC774\uCF58:","macOS (zip file)":"\uB9E5OS (zip \uD30C\uC77C)","macOS (zip)":"macOS (zip)","multiply by":"multiply by","no":"\uC544\uB2C8\uC624","or":"\uB610\uB294","set to":"set to","subtract":"subtract","the property {propertyName}":function(a){return["the property ",a("propertyName")]},"true":"\uCC38","yes":"\uB124","{0}\u20AC/month":function(a){return[a("0"),"\u20AC/month"]},"{effectsCount} effect(s)":function(a){return[a("effectsCount")," \uC774\uD399\uD2B8"]},"{propertyName} property":function(a){return[a("propertyName")," \uC18D\uC131"]},"~{0} minutes.":function(a){return["~",a("0")," \uBD84"]},"\u2260 (not equal to)":"\u2260 (not equal to)","\u2264 (less or equal to)":"\u2264 (less or equal to)","\u2265 (greater or equal to)":"\u2265 (greater or equal to)","Error during exporting! Unable to export source files:\n":"\uB0B4\uBCF4\uB0B4\uB294 \uB3D9\uC548 \uC624\uB958\uAC00 \uBC1C\uC0DD \uD588\uC2B5\uB2C8\uB2E4! \uC18C\uC2A4 \uD30C\uC77C: \n\uC744 \uB0B4\uBCF4\uB0BC \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","Unable to write ":"\uAE30\uB85D\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. ","Could not copy external file":"\uC678\uBD80 \uD30C\uC77C\uC744 \uBCF5\uC0AC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","Error during exporting! Unable to export events:\n":"\uACC4\uC18D\uD574\uC11C \uC2E4\uD328\uD588\uB2E4! \uC774\uBCA4\uD2B8: n \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","Error during export:\n":"\uC218\uCD9C: n \uC911\uAE09 \uC624\uB958 \uBC1C\uC0DD","Storage":"\uC800\uC7A5","Consider objects touching each other, but not overlapping, as in collision (default: no)":"\uC624\uBE0C\uC81D\uD2B8\uB4E4\uC774 \uCDA9\uB3CC\uD560 \uB54C\uC5D0 \uACB9\uCE58\uC9C0 \uC54A\uACE0 \uC811\uD558\uACE0 \uC788\uB294\uC9C0 \uACE0\uB824 \uD558\uC2ED\uC2DC\uC624. (\uAE30\uBCF8\uAC12: \uC544\uB2C8\uC624)","Javascript code":"\uC790\uBC14 \uC2A4\uD06C\uB9BD\uD2B8 \uCF54\uB4DC","Insert some Javascript code into events":"\uC774\uBCA4\uD2B8\uC5D0 \uC5B4\uB5A4 \uC790\uBC14 \uC2A4\uD06C\uB9BD\uD2B8 \uCF54\uB4DC\uB97C \uC0BD\uC785","HTML5 (Web and Android games)":"HTML5 (\uC6F9\uACFC \uC548\uB4DC\uB85C\uC774\uB4DC \uAC8C\uC784)","HTML5 and javascript based games for web browsers.":"\uC6F9 \uBE0C\uB77C\uC6B0\uC800\uB4E4\uC744 \uC704\uD55C HTML5 \uC640 javascript \uAE30\uBC18 \uAC8C\uC784\uB4E4.","Enables the creation of 2D games that can be played in web browsers. These can also be exported to Android with third-party tools.":"\uC6F9 \uBE0C\uB77C\uC6B0\uC800\uC5D0\uC11C \uC2E4\uD589 \uD560 \uC218 \uC788\uB294 2D\uAC8C\uC784\uB4E4\uC744 \uCC3D\uC870 \uD558\uC2ED\uC2DC\uC624. \uC774\uAC83\uB4E4\uC740 \uC11C\uB4DC\uD30C\uD2F0 \uD234\uC744 \uD1B5\uD574 \uC548\uB4DC\uB85C\uC774\uB4DC\uC5D0 \uC774\uC2DD\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","Linked objects":"\uC5F0\uACB0\uB41C \uC624\uBE0C\uC81D\uD2B8","This Extension can virtually link two objects.":"\uC774 \uD655\uC7A5 \uD504\uB85C\uADF8\uB7A8\uC740 \uB450 \uC624\uBE0C\uC81D\uD2B8\uB97C \uAC00\uC0C1 \uC5F0\uACB0 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","Link two objects":"\uB450 \uC624\uBE0C\uC81D\uD2B8\uB97C \uC5F0\uACB0","Link two objects together, so as to be able to get one from the other.":"meow","Link _PARAM1_ and _PARAM2_":"_PARAM1_ \uC640 _PARAM2_ \uC5F0\uACB0","Object 1":"\uC624\uBE0C\uC81D\uD2B8 1","Object 2":"\uC624\uBE0C\uC81D\uD2B8 2","Unlink two objects":"\uB450 \uC624\uBE0C\uC81D\uD2B8 \uC5F0\uACB0 \uD574\uC81C","Unlink two objects.":"\uB450 \uC624\uBE0C\uC81D\uD2B8 \uC5F0\uACB0 \uD574\uC81C.","Unlink _PARAM1_ and _PARAM2_":"_PARAM1_ \uC640 _PARAM2_ \uC5F0\uACB0 \uD574\uC81C","Unlink all objects from an object":"\uD55C \uC624\uBE0C\uC81D\uD2B8\uB85C \uBD80\uD130 \uBAA8\uB4E0 \uC624\uBE0C\uC81D\uD2B8 \uC5F0\uACB0 \uD574\uC81C","Unlink all objects from an object.":"\uD55C \uC624\uBE0C\uC81D\uD2B8\uB85C \uBD80\uD130 \uBAA8\uB4E0 \uC624\uBE0C\uC81D\uD2B8 \uC5F0\uACB0 \uD574\uC81C.","Unlink all objects from _PARAM1_":"_PARAM1_\uB85C \uBD80\uD130 \uBAA8\uB4E0 \uC624\uBE0C\uC81D\uD2B8 \uC5F0\uACB0 \uD574\uC81C","Take into account linked objects":"\uC5F0\uACB0\uB41C \uC624\uBE0C\uC81D\uD2B8\uB4E4\uC744 \uACE0\uB824\uD558\uC2ED\uC2DC\uC624","Take some objects linked to the object into account for next conditions and actions.\nThe condition will return false if no object was taken into account.":"\uB2E4\uC74C \uC870\uAC74 \uBC0F \uC791\uC5C5\uC5D0 \uB300\uD574 \uC624\uBE0C\uC81D\uD2B8\uC5D0 \uC5F0\uACB0\uB41C \uC624\uBE0C\uC81D\uD2B8\uB4E4\uC744 \uACE0\uB824\uD558\uC2ED\uC2DC\uC624.\n \uC544\uBB34\uB7F0 \uC624\uBE0C\uC81D\uD2B8\uAC00 \uACE0\uB824 \uB418\uC9C0 \uC54A\uC744 \uACBD\uC6B0\uC5D0 false\uB97C \uB9AC\uD134 \uD560 \uAC83\uC785\uB2C8\uB2E4.","Take into account all \"_PARAM1_\" linked to _PARAM2_":"_PARAM2_ \uC5D0 \uC5F0\uACB0\uB41C \"_PARAM1_\" \uACE0\uB824","Pick these objects...":"\uC774\uB7EC\uD55C \uC624\uBE0C\uC81D\uD2B8 \uC120\uD0DD...","...if they are linked to this object":"...\uB9CC\uC57D\uC5D0 \uC774 \uC624\uBE0C\uC81D\uD2B8\uC640 \uC5F0\uACB0\uB41C \uACBD\uC6B0","Take objects linked to the object into account for next actions.":"\uC624\uBE0C\uC81D\uD2B8\uC5D0 \uC5F0\uACB0\uB41C \uC624\uBE0C\uC81D\uD2B8\uB4E4\uC744 \uB2E4\uC74C \uC5D1\uC158\uC5D0 \uB300\uD574 \uACE0\uB824\uD558\uC2ED\uC2DC\uC624.","Text object":"\uD14D\uC2A4\uD2B8 \uC624\uBE0C\uC81D\uD2B8","This Extension enables the use of an object that displays text.":"\uC774 \uD655\uC7A5 \uD504\uB85C\uADF8\uB7A8\uC740 \uD14D\uC2A4\uD2B8 \uD45C\uC2DC \uC624\uBE0C\uC81D\uD2B8 \uC0AC\uC6A9\uC744 \uD65C\uC131\uD654 \uD569\uB2C8\uB2E4.","Text":"\uB9E4\uC2DC\uC9C0","Displays a text":"\uD14D\uC2A4\uD2B8 \uD45C\uC2DC","Modify the text":"\uD14D\uC2A4\uD2B8 \uC218\uC815","Modify the text of a Text object.":"\uD14D\uC2A4\uD2B8 \uC624\uBE0C\uC81D\uD2B8\uC758 \uD14D\uC2A4\uD2B8 \uC218\uC815","the text":"\uD14D\uC2A4\uD2B8","Compare the text":"\uD14D\uC2A4\uD2B8 \uBE44\uAD50","Compare the text of a Text object.":"\uD14D\uC2A4\uD2B8 \uC624\uBE0C\uC81D\uD2B8\uC758 \uD14D\uC2A4\uD2B8 \uBE44\uAD50","Font":"\uAE00\uC528\uCCB4-\uD3F0\uD2B8","Change the font of the text.":"\uD14D\uC2A4\uD2B8\uC758 \uAE00\uAF34\uC744 \uBCC0\uACBD\uD569\uB2C8\uB2E4.","Change font of _PARAM0_ to _PARAM1_":"_PARAM0_\uC758 \uAE00\uAF34\uC744 _PARAM1_\uB85C \uBCC0\uACBD\uD55C\uB2E4.","Change the size of the text.":"\uD0DD\uC2A4\uD2B8\uC758 \uD06C\uAE30\uB97C \uBCC0\uACBD \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","the size of the text":"\uD14D\uC2A4\uD2B8\uC758 \uD06C\uAE30","Compare the size of the text":"\uD14D\uC2A4\uD2B8 \uD06C\uAE30 \uBE44\uAD50","Scale on X axis":"X\uCD95 \uAE38\uC774","Compare the scale of the text on the X axis":"X\uCD95\uC758 \uD14D\uC2A4\uD2B8 \uC2A4\uCF00\uC77C \uBE44\uAD50","the scale on the X axis":"x\uCD95\uC758 \uC2A4\uCF00\uC77C","Modify the scale of the text on the X axis (default scale is 1)":"X\uCD95 \uD14D\uC2A4\uD2B8\uC758 \uC2A4\uCF00\uC77C\uC744 \uBCC0\uACBD\uD569\uB2C8\uB2E4(\uAE30\uBCF8 \uAC12\uC758 \uC2A4\uCF00\uC77C\uC740 1\uC785\uB2C8\uB2E4)","Scale":"\uC2A4\uCF00\uC77C","Scale on Y axis":"Y\uCD95 \uC2A4\uCF00\uC77C","Compare the scale of the text on the Y axis":"Y\uCD95\uC758 \uD14D\uC2A4\uD2B8 \uC2A4\uCF00\uC77C \uBE44\uAD50","the scale on the Y axis":"y\uCD95\uC758 \uC2A4\uCF00\uC77C(\uBC94\uC704)","Modify the scale of the text on the Y axis (default scale is 1)":"Y\uCD95\uC758 \uD14D\uC2A4\uD2B8 \uC2A4\uCF00\uC77C(\uBC94\uC704) \uB97C \uBCC0\uACBD\uD55C\uB2E4(\uAE30\uBCF8 \uAC12\uC758 \uC2A4\uCF00\uC77C\uC740 1).","Modify the scale of the specified object (default scale is 1)":"Y\uCD95\uC758 \uD14D\uC2A4\uD2B8 \uC2A4\uCF00\uC77C(\uBC94\uC704) \uB97C \uBCC0\uACBD\uD55C\uB2E4(\uAE30\uBCF8 \uAC12\uC758 \uC2A4\uCF00\uC77C\uC740 1).","the scale":"\uC2A4\uCF00\uC77C(\uBC94\uC704)","Change the color of the text. The color is white by default.":"\uD0DD\uC2A4\uD2B8\uC758 \uC0C9\uC744 \uBCC0\uACBD \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uAE30\uBCF8 \uC0C9\uC740 \uD770 \uC0C9 \uC785\uB2C8\uB2E4.","Change color of _PARAM0_ to _PARAM1_":"_PARAM1_ _PARAM0_\uC758 \uC0C9\uC0C1 \uBCC0\uACBD","Gradient":"Gradient","Change the gradient of the text.":"Change the gradient of the text.","Change gradient of _PARAM0_ to colors _PARAM1_ _PARAM2_ _PARAM3_ _PARAM4_ type _PARAM5_":"Change gradient of _PARAM0_ to colors _PARAM1_ _PARAM2_ _PARAM3_ _PARAM4_ type _PARAM5_","Gradient type":"Gradient type","First Color":"1\uBC88 \uC0C9","Second Color":"2\uBC88 \uC0C9","Third Color":"3\uBC88 \uC0C9","Fourth Color":"4\uBC88 \uC0C9","Outline":"\uC678\uACFD\uC120","Change the outline of the text. A thickness of 0 disables the outline.":"Change the outline of the text. A thickness of 0 disables the outline.","Change outline of _PARAM0_ to color _PARAM1_ with thickness _PARAM2_":"Change outline of _PARAM0_ to color _PARAM1_ with thickness _PARAM2_","Thickness":"\uB450\uAED8","Change Shadow":"\uADF8\uB9BC\uC790 \uBCC0\uACBD","Change the shadow of the text.":"\uD14D\uC2A4\uD2B8\uC758 \uADF8\uB9BC\uC790 \uBCC0\uACBD","Change the shadow of _PARAM0_ to color _PARAM1_ distance _PARAM2_ blur _PARAM3_ angle _PARAM4_":"Change the shadow of _PARAM0_ to color _PARAM1_ distance _PARAM2_ blur _PARAM3_ angle _PARAM4_","Effects/Shadow":"\uD6A8\uACFC/\uADF8\uB9BC\uC790","Distance":"\uAC70\uB9AC(\uAC04\uACA9)","Blur":"\uD750\uB9BF\uD558\uAC8C","Show Shadow":"\uADF8\uB9BC\uC790 \uD45C\uC2DC","Show the shadow of the text.":"\uAE00\uC790\uC5D0 \uADF8\uB9BC\uC790 \uCD94\uAC00\uD558\uAE30.","Show the shadow of _PARAM0_: _PARAM1_":"Show the shadow of _PARAM0_: _PARAM1_","Show the shadow":"Show the shadow","Change text opacity":"\uD0DD\uC2A4\uD2B8\uC758 \uBD88\uD22C\uBA85\uB3C4\uB97C \uBCC0\uACBD \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.","Change the opacity of a Text. 0 is fully transparent, 255 is opaque (default).":"\uD0DD\uC2A4\uD2B8\uC758 \uBD88\uD22C\uBA85\uB3C4\uB97C \uBCC0\uACBD \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.\n0\uC740 \uC81C\uC77C \uD22C\uBA85\uD558\uACE0 255\uB294 \uC81C\uC77C \uD22C\uBA85\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.(\uAE30\uBCF8\uAC12)","the opacity":"\uBD88\uD22C\uBA85","Opacity":"\uBD88\uD22C\uBA85\uB3C4","Compare the opacity of a Text object, between 0 (fully transparent) to 255 (opaque).":"Compare the opacity of a Text object, between 0 (fully transparent) to 255 (opaque).","Smoothing":"\uBD80\uB4DC\uB7EC\uC6B4 \uC815\uB3C4","Activate or deactivate text smoothing.":"\uD0DD\uC2A4\uD2B8\uC758 \uBD80\uB4DC\uB7FD\uAE30\uB97C \uD65C\uC131\uD654/\uBE44\uD65C\uC131\uD654 \uD569\uB2C8\uB2E4.","Smooth _PARAM0_: _PARAM1_":"Smooth _PARAM0_: _PARAM1_","Style":"\uC2A4\uD0C0\uC77C","Smooth the text":"\uD0DD\uC2A4\uD2B8\uB97C \uBD80\uB4DC\uB7FD\uAC8C \uD569\uB2C8\uB2E4.","Check if an object is smoothed":"\uAC1C\uCCB4\uAC00 \uBD80\uB4DC\uB7EC\uC6B4\uC9C0 \uD655\uC778 \uD569\uB2C8\uB2E4.","_PARAM0_ is smoothed":"_PARAM0_ is smoothed","De/activate bold":"\uAD75\uAE30 \uD65C\uC131\uD654/\uBE44\uD65C\uC131\uD654","Set bold style of _PARAM0_ : _PARAM1_":"Set bold style of _PARAM0_ : _PARAM1_","Set bold style":"Set bold style","Check if the bold style is activated":"Check if the bold style is activated","_PARAM0_ bold style is set":"_PARAM0_ bold style is set","De/activate italic.":"De/activate italic.","Set italic style for _PARAM0_ : _PARAM1_":"Set italic style for _PARAM0_ : _PARAM1_","Set italic":"Set italic","Check if the italic style is activated":"Check if the italic style is activated","_PARAM0_ italic style is set":"_PARAM0_ italic style is set","Underlined":"Underlined","De/activate underlined style.":"De/activate underlined style.","Set underlined style of _PARAM0_: _PARAM1_":"Set underlined style of _PARAM0_: _PARAM1_","Underline":"Underline","Check if the underlined style of an object is set.":"Check if the underlined style of an object is set.","_PARAM0_ underlined style is activated":"_PARAM0_ underlined style is activated","Modify the angle of a Text object.":"Modify the angle of a Text object.","the angle":"the angle","Rotation":"Rotation","Compare the value of the angle of a Text object.":"Compare the value of the angle of a Text object.","Padding":"Padding","Compare the number of pixels around a text object. If the shadow or the outline around the text are getting cropped, raise this value.":"Compare the number of pixels around a text object. If the shadow or the outline around the text are getting cropped, raise this value.","the padding":"the padding","Set the number of pixels around a text object. If the shadow or the outline around the text are getting cropped, raise this value.":"\uD14D\uC2A4\uD2B8 \uC624\uBE0C\uC81D\uD2B8 \uAC89\uBD80\uBD84\uC758 \uD53D\uC140 \uC218\uB97C \uC815\uD574\uC90D\uB2C8\uB2E4 \uD14D\uC2A4\uD2B8 \uBC14\uAE65\uCABD \uADF8\uB9BC\uC790\uB098 \uC678\uACFD\uC120\uC774 \uC798\uB9B0\uB2E4\uBA74, \uAC12\uC744 \uC62C\uB9AC\uC138\uC694","Alignment":"Alignment","Set the text alignment of a multiline text object (does not work with single line texts).":"Set the text alignment of a multiline text object (does not work with single line texts).","Align _PARAM0_: _PARAM1_":"Align _PARAM0_: _PARAM1_","Compare the text alignment of a multiline text object.":"Compare the text alignment of a multiline text object.","the alignment":"the alignment","Wrapping":"Wrapping","De/activate word wrapping. Note that word wrapping is a graphical option,\nyou can't get the number of lines displayed":"De/activate word wrapping. Note that word wrapping is a graphical option,\nyou can't get the number of lines displayed","Set word wrapping style of _PARAM0_: _PARAM1_":"Set word wrapping style of _PARAM0_: _PARAM1_","Test if the word wrapping style of an object is set.":"Test if the word wrapping style of an object is set.","_PARAM0_ word wrapping style is activated":"_PARAM0_ word wrapping style is activated","Wrapping width":"Wrapping width","Modify the word wrapping width of a Text object.":"Modify the word wrapping width of a Text object.","the wrapping width":"the wrapping width","Test the word wrapping width of a Text object.":"Test the word wrapping width of a Text object.","X Scale of a Text object":"X Scale of a Text object","Y Scale of a Text object":"Y Scale of a Text object","Opacity of a Text object":"Opacity of a Text object","Font Size":"Font Size","Physics Engine (deprecated)":"Physics Engine (deprecated)","This extension enables the movement of objects as if they are subject to the laws of physics.":"This extension enables the movement of objects as if they are subject to the laws of physics.","Physics Engine":"Physics Engine","Physics":"Physics","Make objects move as if they are subject to the laws of physics. If you're creating a new game, prefer Physics Engine 2.0":"Make objects move as if they are subject to the laws of physics. If you're creating a new game, prefer Physics Engine 2.0","Make the object static":"Make the object static","Make the object immovable.":"Make the object immovable.","Make _PARAM0_ static":"Make _PARAM0_ static","Movement":"\uC6C0\uC9C1\uC784","Make the object dynamic":"Make the object dynamic","Make the object dynamic ( affected by forces and other objects ).":"Make the object dynamic ( affected by forces and other objects ).","Make _PARAM0_ dynamic":"Make _PARAM0_ dynamic","The object is dynamic":"The object is dynamic","Test if an object is dynamic ( affected by forces and other objects ).":"Test if an object is dynamic ( affected by forces and other objects ).","_PARAM0_ is dynamic":"_PARAM0_ is dynamic","Fix rotation":"Fix rotation","Prevent the object from rotating":"Prevent the object from rotating","Fix rotation of _PARAM0_":"Fix rotation of _PARAM0_","Add a hinge":"Add a hinge","Add a hinge that the object will rotate around.\nThe distance between the hinge and the object will remain identical.":"Add a hinge that the object will rotate around.\nThe distance between the hinge and the object will remain identical.","Add a hinge to _PARAM0_ at _PARAM2_;_PARAM3_":"Add a hinge to _PARAM0_ at _PARAM2_;_PARAM3_","Joints":"Joints","Hinge X position":"Hinge X position","Hinge Y position":"Hinge Y position","Add a hinge between two objects":"Add a hinge between two objects","Add a hinge that the object will rotate around.":"Add a hinge that the object will rotate around.","Add a hinge between _PARAM0_ and _PARAM2_":"Add a hinge between _PARAM0_ and _PARAM2_","X position of the hinge, from the first object mass center":"X position of the hinge, from the first object mass center","Y position of the hinge, from the first object mass center":"Y position of the hinge, from the first object mass center","Add a gear between two objects":"Add a gear between two objects","Add a virtual gear between two objects.":"Add a virtual gear between two objects.","Add a gear between _PARAM0_ and _PARAM2_":"Add a gear between _PARAM0_ and _PARAM2_","Ratio":"Ratio","Make object's rotation free":"Make object's rotation free","Allows the object to rotate.":"Allows the object to rotate.","Allow _PARAM0_ to rotate":"Allow _PARAM0_ to rotate","Fixed rotation":"\uC704\uCE58 \uC218\uC815","Test if the object's rotation is fixed.":"Test if the object's rotation is fixed.","The rotation of _PARAM0_ is fixed.":"The rotation of _PARAM0_ is fixed.","Treat object like a bullet.":"Treat object like a bullet.","Treat the object like a bullet, so it will have better collision handling.":"Treat the object like a bullet, so it will have better collision handling.","Consider _PARAM0_ as a bullet":"Consider _PARAM0_ as a bullet","Other":"\uAE30\uD0C0","Do not treat object like a bullet":"Do not treat object like a bullet","Do not treat the object like a bullet, so it will use standard collision handling.":"Do not treat the object like a bullet, so it will use standard collision handling.","Do not consider _PARAM0_ as a bullet.":"Do not consider _PARAM0_ as a bullet.","Object is treated like a bullet":"Object is treated like a bullet","Test if the object is treated like a bullet":"Test if the object is treated like a bullet","_PARAM0_ is considered as a bullet":"_PARAM0_ is considered as a bullet","Apply an impulse":"Apply an impulse","Apply an impulse to the object.":"Apply an impulse to the object.","Apply to _PARAM0_ impulse _PARAM2_;_PARAM3_":"Apply to _PARAM0_ impulse _PARAM2_;_PARAM3_","Displacement":"Displacement","X component ( Newtons/Seconds )":"X component ( Newtons/Seconds )","Y component ( Newtons/Seconds )":"Y component ( Newtons/Seconds )","Apply an impulse (angle)":"Apply an impulse (angle)","Apply an impulse to an object, using an angle and a length as coordinates.":"Apply an impulse to an object, using an angle and a length as coordinates.","Apply to _PARAM0_ impulse _PARAM3_ with angle: _PARAM2_\xB0":"Apply to _PARAM0_ impulse _PARAM3_ with angle: _PARAM2_\xB0","Impulse value ( Newton/seconds )":"Impulse value ( Newton/seconds )","Apply an impulse toward a position":"Apply an impulse toward a position","Apply an impulse, directed toward a position, to the object.":"Apply an impulse, directed toward a position, to the object.","Apply to _PARAM0_ impulse _PARAM4_ toward position _PARAM2_;_PARAM3_":"Apply to _PARAM0_ impulse _PARAM4_ toward position _PARAM2_;_PARAM3_","X position":"X \uC704\uCE58","Y position":"Y-\uC88C\uD45C","Add a force":"Add a force","Add a force to the object":"Add a force to the object","Apply to _PARAM0_ force _PARAM2_;_PARAM3_":"Apply to _PARAM0_ force _PARAM2_;_PARAM3_","X component ( Newtons )":"X component ( Newtons )","Y component ( Newtons )":"Y component ( Newtons )","Apply a force ( angle )":"Apply a force ( angle )","Apply a force to an object, using an angle and a length as coordinates.":"Apply a force to an object, using an angle and a length as coordinates.","Apply to _PARAM0_ force _PARAM3_ at angle _PARAM2_":"Apply to _PARAM0_ force _PARAM3_ at angle _PARAM2_","Length of the force ( Newtons )":"Length of the force ( Newtons )","Apply a force toward a position":"Apply a force toward a position","Apply a force, directed toward a position, to the object.":"Apply a force, directed toward a position, to the object.","Add to _PARAM0_ force _PARAM4_ toward position _PARAM2_;_PARAM3_":"Add to _PARAM0_ force _PARAM4_ toward position _PARAM2_;_PARAM3_","Add a torque (a rotation)":"Add a torque (a rotation)","Add a torque (a rotation) to the object.":"Add a torque (a rotation) to the object.","Add to _PARAM0_ torque _PARAM2_":"Add to _PARAM0_ torque _PARAM2_","Torque value":"Torque value","Linear velocity":"Linear velocity","Modify the velocity of an object.":"Modify the velocity of an object.","Set linear velocity of _PARAM0_ to _PARAM2_;_PARAM3_":"Set linear velocity of _PARAM0_ to _PARAM2_;_PARAM3_","X Coordinate":"X Coordinate","Y Coordinate":"Y Coordinate","X component":"X component","Compare the linear velocity on the X axis of the object.":"Compare the linear velocity on the X axis of the object.","the linear velocity on X axis":"the linear velocity on X axis","Y component":"Y component","Compare the linear velocity on the Y axis of the object.":"Compare the linear velocity on the Y axis of the object.","the linear velocity on Y axis":"the linear velocity on Y axis","Linear speed":"Linear speed","Compare the linear velocity of the object.":"Compare the linear velocity of the object.","the linear velocity":"the linear velocity","Angular speed":"Angular speed","Modify the angular velocity of the object.":"Modify the angular velocity of the object.","Set angular speed of _PARAM0_ to _PARAM2_":"Set angular speed of _PARAM0_ to _PARAM2_","New value":"New value","Compare the angular speed of the object.":"Compare the angular speed of the object.","the angular speed":"the angular speed","Linear damping":"Linear damping","Compare the linear damping of the object.":"Compare the linear damping of the object.","the linear damping":"the linear damping","Collision":"Collision","Test if two objects are colliding.\nAttention! Only objects specified in the first parameter will be taken into account by the next actions and conditions, if they are colliding with the other objects.":"Test if two objects are colliding.\nAttention! Only objects specified in the first parameter will be taken into account by the next actions and conditions, if they are colliding with the other objects.","_PARAM0_ is in collision with a _PARAM2_":"_PARAM0_ is in collision with a _PARAM2_","Modify the linear damping of the object.":"Modify the linear damping of the object.","Set linear damping of _PARAM0_ to _PARAM2_":"Set linear damping of _PARAM0_ to _PARAM2_","Value":"\uAC12","Angular damping":"Angular damping","Test the object's angular damping":"Test the object's angular damping","the angular damping":"the angular damping","Modify the angular damping of the object.":"Modify the angular damping of the object.","Set angular damping of _PARAM0_ to _PARAM2_":"Set angular damping of _PARAM0_ to _PARAM2_","Gravity":"\uC911\uB825","Modify the gravity":"\uC911\uB825 \uC218\uC815\uD558\uAE30","Set gravity force to _PARAM2_;_PARAM3_":"Set gravity force to _PARAM2_;_PARAM3_","Global options":"Global options","Change the X scale of a collision polygon":"Change the X scale of a collision polygon","Change the X scale of the polygon. Use a value greater than 1 to enlarge the polygon, less than 1 to reduce it.":"Change the X scale of the polygon. Use a value greater than 1 to enlarge the polygon, less than 1 to reduce it.","Change the X scale of the collision polygon of _PARAM0_ to _PARAM2_":"Change the X scale of the collision polygon of _PARAM0_ to _PARAM2_","Collision polygon":"Collision polygon","Change the Y scale of a collision polygon":"Change the Y scale of a collision polygon","Change the Y scale of the polygon. Use a value greater than 1 to enlarge the polygon, less than 1 to reduce it.":"Change the Y scale of the polygon. Use a value greater than 1 to enlarge the polygon, less than 1 to reduce it.","Change the Y scale of the collision polygon of _PARAM0_ Y to _PARAM2_":"Change the Y scale of the collision polygon of _PARAM0_ Y to _PARAM2_","Collision polygon X scale":"Collision polygon X scale","Test the value of the X scale of the collision polygon.":"Test the value of the X scale of the collision polygon.","the X scale of the collision polygon":"the X scale of the collision polygon","Collision polygon Y scale":"Collision polygon Y scale","Test the value of the Y scale of the collision polygon.":"Test the value of the Y scale of the collision polygon.","the Y scale of the collision polygon":"the Y scale of the collision polygon","Box (rectangle)":"Box (rectangle)","Custom polygon":"Custom polygon","Shape":"\uBAA8\uC591","Dynamic object":"Dynamic object","Consider as bullet (better collision handling)":"Consider as bullet (better collision handling)","Mass density":"Mass density","Friction":"\uB9C8\uCC30","Restitution (elasticity)":"Restitution (elasticity)","Linear Damping":"Linear Damping","Angular Damping":"Angular Damping","Gravity on X axis (in m/s\xB2)":"X\uCD95 \uC911\uB825 (in m/s\xB2)","Gravity on Y axis (in m/s\xB2)":"Y\uCD95 \uC911\uB825 (m/s\xB2)","X Scale: number of pixels for 1 meter":"X Scale: number of pixels for 1 meter","Y Scale: number of pixels for 1 meter":"Y Scale: number of pixels for 1 meter","X scale: number of pixels for 1 meter":"X scale: number of pixels for 1 meter","Y scale: number of pixels for 1 meter":"Y scale: number of pixels for 1 meter","Panel Sprite (9-patch) Object":"Panel Sprite (9-patch) Object","This Extension enables the use of Panel Sprite (\"9-patch\") Objects.":"This Extension enables the use of Panel Sprite (\"9-patch\") Objects.","Panel Sprite (\"9-patch\")":"Panel Sprite (\"9-patch\")","An image with edges and corners that are stretched separately from the full image.":"An image with edges and corners that are stretched separately from the full image.","Compare the opacity of a Panel Sprite, between 0 (fully transparent) to 255 (opaque).":"Compare the opacity of a Panel Sprite, between 0 (fully transparent) to 255 (opaque).","Visibility":"\uC2DC\uACC4","Change Panel Sprite opacity":"Change Panel Sprite opacity","Change the opacity of a Panel Sprite. 0 is fully transparent, 255 is opaque (default).":"Change the opacity of a Panel Sprite. 0 is fully transparent, 255 is opaque (default).","Panel Sprite":"Panel Sprite","Global color":"\uC804\uCCB4 \uC0C9\uC0C1","Change the global color of a Panel Sprite. The default color is white.":"Change the global color of a Panel Sprite. The default color is white.","Width":"\uD3ED","Modify the width of a Panel Sprite.":"Modify the width of a Panel Sprite.","the width":"the width","Size and angle":"Size and angle","Check the width of a Panel Sprite.":"Check the width of a Panel Sprite.","Height":"\uAE38\uC774","Modify the height of a Panel Sprite.":"Modify the height of a Panel Sprite.","the height":"the height","Check the height of a Panel Sprite.":"Check the height of a Panel Sprite.","Modify the angle of a Panel Sprite.":"Modify the angle of a Panel Sprite.","Check the angle of a Panel Sprite.":"Check the angle of a Panel Sprite.","Image name":"Image name","Change the image of a Panel Sprite.":"Change the image of a Panel Sprite.","Set image _PARAM1_ on _PARAM0_":"Set image _PARAM1_ on _PARAM0_","Image":"\uC601\uC0C1","Left Margin":"Left Margin","Top Margin":"Top Margin","Right Margin":"Right Margin","Bottom Margin":"Bottom Margin","Destroy Outside Screen Behavior":"Destroy Outside Screen Behavior","This Extension can be used to destroy objects when they go outside of the borders of the game's window.":"This Extension can be used to destroy objects when they go outside of the borders of the game's window.","Destroy when outside of the screen":"Destroy when outside of the screen","DestroyOutside":"DestroyOutside","Automatically destroy the object when it goes outside of the screen's borders.":"Automatically destroy the object when it goes outside of the screen's borders.","Additional border":"Additional border","Compare the additional border that the object must cross before being deleted.":"Compare the additional border that the object must cross before being deleted.","the additional border":"the additional border","Change the additional border that the object must cross before being deleted.":"Change the additional border that the object must cross before being deleted.","Margin before deleting the object, in pixels":"Margin before deleting the object, in pixels","Draggable Behavior":"Draggable Behavior","This Extension enables the movement of objects with a mouse.":"This Extension enables the movement of objects with a mouse.","Draggable object":"Draggable object","Draggable":"Draggable","Allows objects to be moved using the mouse (or touch).":"Allows objects to be moved using the mouse (or touch).","Being dragged":"Being dragged","Check if the object is being dragged":"Check if the object is being dragged","_PARAM0_ is being dragged":"_PARAM0_ is being dragged","Shopify":"Shopify","Interact with products and generate URLs for checkouts with your Shopify shop.":"Interact with products and generate URLs for checkouts with your Shopify shop.","Initialize a shop":"Initialize a shop","Initialize a shop with your credentials. Call this action first, and then use the shop name in the other actions to interact with products.":"Initialize a shop with your credentials. Call this action first, and then use the shop name in the other actions to interact with products.","Initialize shop _PARAM1_ (domain: _PARAM2_, appId: _PARAM3_)":"Initialize shop _PARAM1_ (domain: _PARAM2_, appId: _PARAM3_)","Shop name":"Shop name","Domain (xxx.myshopify.com)":"Domain (xxx.myshopify.com)","App Id":"App Id","Access Token":"Access Token","Get the URL for buying a product":"Get the URL for buying a product","Get the URL for buying a product from a shop. The URL will be stored in the scene variable that you specify. You can then use the action to open an URL to redirect the player to the checkout.":"Get the URL for buying a product from a shop. The URL will be stored in the scene variable that you specify. You can then use the action to open an URL to redirect the player to the checkout.","Get the URL for product #_PARAM2_ (quantity: _PARAM3_, variant: _PARAM4_) from shop _PARAM1_, and store it in _PARAM5_ (or _PARAM6_ in case of error)":"Get the URL for product #_PARAM2_ (quantity: _PARAM3_, variant: _PARAM4_) from shop _PARAM1_, and store it in _PARAM5_ (or _PARAM6_ in case of error)","Shop name (initialized with \"Initialize a shop\" action)":"Shop name (initialized with \"Initialize a shop\" action)","Product id":"Product id","Quantity":"Quantity","Variant (0 by default)":"Variant (0 by default)","Scene variable where the URL for checkout must be stored":"Scene variable where the URL for checkout must be stored","Scene variable containing the error (if any)":"Scene variable containing the error (if any)","Particle system":"Particle system","This Extension can display a large number of small particles.":"This Extension can display a large number of small particles.","Particles emitter":"Particles emitter","Displays a large number of small particles to create visual effects.":"Displays a large number of small particles to create visual effects.","Emission minimal force":"Emission minimal force","Modify minimal emission force of particles.":"Modify minimal emission force of particles.","the minimal emission force":"the minimal emission force","Common":"Common","Emission maximal force":"Emission maximal force","Modify maximal emission force of particles.":"Modify maximal emission force of particles.","the maximal emission force":"the maximal emission force","Emission X direction":"Emission X direction","Modify emission X direction.":"Modify emission X direction.","the emission X direction":"the emission X direction","Test emission X direction.":"Test emission X direction.","Emission Y direction":"Emission Y direction","Modify emission Y direction.":"Modify emission Y direction.","the emission Y direction":"the emission Y direction","Test emission Y direction.":"\uBC29\uCD9C Y \uBC29\uD5A5\uC73C\uB85C \uD14C\uC2A4\uD2B8 \uD569\uB2C8\uB2E4.","Emission Z direction":"\uBC29\uCD9C Z \uBC29\uD5A5","Modify emission Z direction.":"\uBC29\uCD9C Z \uBC29\uD5A5\uC73C\uB85C \uC218\uC815 \uD569\uB2C8\uB2E4.","the emission Z direction":"the emission Z direction","Test emission Z direction.":"\uBC29\uCD9C Y \uBC29\uD5A5\uC73C\uB85C \uD14C\uC2A4\uD2B8 \uD569\uB2C8\uB2E4.","Emission angle":"\uBC29\uCD9C \uAC01\uB3C4","Modify emission angle.":"\uBC29\uCD9C \uAC01\uB3C4 \uC218\uC815 \uD569\uB2C8\uB2E4.","the emission angle":"the emission angle","Test the value of emission angle of the emitter.":"\uBBF8\uD130\uC758 \uBC29\uCD9C \uAC01\uB3C4\uC758 \uAC12\uC744 \uD14C\uC2A4\uD2B8 \uD569\uB2C8\uB2E4.","Emission angle 1":"\uBC29\uCD9C \uAC01\uB3C4 1","Change emission angle #1":"\uBCC0\uACBD \uBC30\uCD9C \uAC01\uB3C4 # 1","the 1st emission angle":"the 1st emission angle","Test the value of emission 1st angle of the emitter":"\uBBF8\uD130\uC758 \uBC29\uCD9C 1 \uAC01\uB3C4\uC758 \uAC12\uC744 \uD14C\uC2A4\uD2B8","Emission angle 2":"\uBC29\uCD9C \uAC01\uB3C4 1","Change emission angle #2":"\uBCC0\uACBD \uBC29\uCD9C \uAC01\uB3C4 #2","the 2nd emission angle":"the 2nd emission angle","Test the emission angle #2 of the emitter.":"\uBBF8\uD130\uC758 \uBC29\uCD9C \uAC01\uB3C4 # 2\uB97C \uD14C\uC2A4\uD2B8\uD558\uC2ED\uC2DC\uC624.","Angle of the spray cone":"\uC2A4\uD504\uB808\uC774 \uCF58\uC758 \uAC01\uB3C4","Modify the angle of the spray cone.":"\uC2A4\uD504\uB808\uC774 \uCF58\uC758 \uAC01\uB3C4 \uC218\uC815 \uD569\uB2C8\uB2E4.","the angle of the spray cone":"the angle of the spray cone","Test the angle of the spray cone of the emitter":"\uBBF8\uD130\uC758 \uC2A4\uD504\uB808\uC774 \uC6D0\uBFD4 \uAC01\uB3C4 \uD14C\uC2A4\uD2B8","Modify friction applied to particles.":"\uB9C8\uCC30 \uC785\uC790\uC5D0 \uC801\uC6A9\uC744 \uC218\uC815 \uD569\uB2C8\uB2E4.","the friction of particles":"the friction of particles","Test friction applied to particles.":"\uD14C\uC2A4\uD2B8 \uB9C8\uCC30 \uC785\uC790\uC5D0 \uC801\uC6A9 \uD569\uB2C8\uB2E4.","Creation radius":"\uCC3D\uC870 \uBC18\uC9C0\uB984","Modify creation radius of particles.\nParticles have to be recreated in order to take changes in account.":"\uC218\uC815 \uC0DD\uC131 \uC785\uC790. \nParticles\uC758 radius \uACC4\uC815\uC5D0 \uBCC0\uACBD \uD558\uAE30 \uC704\uD574 \uB9CC\uB4E4\uC5B4\uC57C \uD558\uB294.","the creation radius":"the creation radius","Test creation radius of particles.":"\uC2DC\uD5D8 \uC785\uC790\uC758 \uC0DD\uC131 \uBC18\uC9C0\uB984\uC785\uB2C8\uB2E4.","Minimum lifetime":"\uCD5C\uC18C \uC218\uBA85","Modify particles minimum lifetime.Particles have to be recreated in order to take changes in account.":"\uC785\uC790 \uCD5C\uC18C \uC218\uBA85\uC744 \uC218\uC815 \uD569\uB2C8\uB2E4. \uC785\uC790 \uACC4\uC815\uC5D0 \uBCC0\uACBD \uD558\uAE30 \uC704\uD574 \uB2E4\uC2DC \uD574\uC57C \uD569\uB2C8\uB2E4.","the minimum lifetime of particles":"the minimum lifetime of particles","Test minimum lifetime of particles.":"\uC2DC\uD5D8 \uC785\uC790\uC758 \uCD5C\uC18C \uC218\uBA85\uC785\uB2C8\uB2E4.","Maximum lifetime":"\uCD5C\uB300 \uC218\uBA85","Modify particles maximum lifetime.\nParticles have to be recreated in order to take changes in account.":"\uC785\uC790 \uCD5C\uC18C \uC218\uBA85\uC744 \uC218\uC815 \uD569\uB2C8\uB2E4. \uC785\uC790 \uACC4\uC815\uC5D0 \uBCC0\uACBD \uD558\uAE30 \uC704\uD574 \uB2E4\uC2DC \uD574\uC57C \uD569\uB2C8\uB2E4.","the maximum lifetime of particles":"the maximum lifetime of particles","Test maximum lifetime of particles.":"\uC2DC\uD5D8 \uC785\uC790\uC758 \uCD5C\uB300 \uC218\uBA85\uC785\uB2C8\uB2E4.","Gravity value on X axis":"Gravity value on X axis","Change value of the gravity on X axis.":"X \uCD95\uC5D0 \uC911\uB825\uC758 \uAC12\uC744 \uBCC0\uACBD \uD569\uB2C8\uB2E4.","the gravity on X axis":"the gravity on X axis","Compare value of the gravity on X axis.":"Compare value of the gravity on X axis.","Gravity value on Y axis":"Gravity value on Y axis","Change value of the gravity on Y axis.":"Change value of the gravity on Y axis.","the gravity on Y axis":"the gravity on Y axis","Compare value of the gravity on Y axis.":"Compare value of the gravity on Y axis.","Z Gravity":"Z\uCD95 \uC911\uB825","Change value of the gravity on Z axis.":"Change value of the gravity on Z axis.","the gravity direction on Z axis of_PARAM0_":"the gravity direction on Z axis of_PARAM0_","Direction of gravity on Z axis":"Direction of gravity on Z axis","Test the direction of gravity on Z axis":"Test the direction of gravity on Z axis","the gravity direction on Z axis":"the gravity direction on Z axis","Gravity angle":"Gravity angle","Change gravity angle":"Change gravity angle","the gravity angle":"the gravity angle","Test the gravity angle of the emitter":"Test the gravity angle of the emitter","Change the gravity of the emitter.":"Change the gravity of the emitter.","the gravity":"the gravity","Test the gravity of the emitter.":"Test the gravity of the emitter.","Initial color":"\uCD08\uAE30 \uC0C9\uC0C1","Modify initial color of particles.":"Modify initial color of particles.","Put initial color of particles of _PARAM0_ to _PARAM1_":"Put initial color of particles of _PARAM0_ to _PARAM1_","Final color":"\uCD5C\uC885 \uC0C9\uC0C1","Modify final color of particles.":"Modify final color of particles.","Put final color of particles of _PARAM0_ to _PARAM1_":"Put final color of particles of _PARAM0_ to _PARAM1_","Red color, parameter 1":"Red color, parameter 1","Modify parameter 1 of the red color.":"Modify parameter 1 of the red color.","the parameter 1 of red color":"the parameter 1 of red color","Test parameter 1 of the red color":"Test parameter 1 of the red color","Red color, parameter 2":"Red color, parameter 2","Modify parameter 2 of the red color":"Modify parameter 2 of the red color","the parameter 2 of red color":"the parameter 2 of red color","Test parameter 2 of the red color":"Test parameter 2 of the red color","Blue color, parameter 1":"Blue color, parameter 1","Modify parameter 1 of blue color":"Modify parameter 1 of blue color","the parameter 1 of blue color":"the parameter 1 of blue color","Test parameter 1 of blue color":"Test parameter 1 of blue color","Blue color, parameter 2":"Blue color, parameter 2","Modify parameter 2 of blue color":"Modify parameter 2 of blue color","the parameter 2 of blue color":"the parameter 2 of blue color","Test parameter 2 of blue color":"Ro 's parameter2 test","Green color, parameter 1":"\uADF8\uB9B0 \uC0C9\uC0C1, \uB9E4\uAC1C \uBCC0\uC218 1","Modify parameter 1 of green color":"\uB9E4\uAC1C \uBCC0\uC218 1 \uB179\uC0C9 \uC0C9\uC0C1\uC758 \uC218\uC815","the parameter 1 of green color":"the parameter 1 of green color","Test parameter 1 of green color":"\uB9E4\uAC1C \uBCC0\uC218 1 \uB179\uC0C9 \uC0C9\uC0C1\uC758 \uD14C\uC2A4\uD2B8","Green color, parameter 2":"\uADF8\uB9B0 \uC0C9\uC0C1, \uB9E4\uAC1C \uBCC0\uC218 2","Modify the parameter 2 of the green color":"\uB179\uC0C9 \uC0C9\uC0C1\uC758 2 \uB9E4\uAC1C \uBCC0\uC218 \uC218\uC815","the parameter 2 of green color":"the parameter 2 of green color","Test the parameter 2 of the green color":"\uB179\uC0C9 \uC0C9\uC0C1\uC758 2 \uB9E4\uAC1C \uBCC0\uC218 \uD14C\uC2A4\uD2B8","SIze, parameter 1":"\uD06C\uAE30, \uB9E4\uAC1C \uBCC0\uC218 1","Modify parameter 1 of the size of particles":"\uB9E4\uAC1C \uBCC0\uC218 1\uC758 \uC785\uC790\uC758 \uD06C\uAE30 \uC218\uC815","the parameter 1 of size":"the parameter 1 of size","Size, parameter 1":"Size, parameter 1","Test parameter 1 of the size of particles":"\uC785\uC790 \uD06C\uAE30\uC758 \uC2DC\uD5D8 \uB9E4\uAC1C \uBCC0\uC218 1","the parameter 1 of the size":"the parameter 1 of the size","Size, parameter 2":"\uD06C\uAE30, \uB9E4\uAC1C \uBCC0\uC218 2","Modify parameter 2 of the size of particles":"\uB9E4\uAC1C \uBCC0\uC218 2 \uC785\uC790\uC758 \uD06C\uAE30\uC758 \uC218\uC815","the parameter 2 of size":"the parameter 2 of size","Test parameter 2 of the size of particles":"\uB9E4\uAC1C \uBCC0\uC218 2 \uC785\uC790\uC758 \uD06C\uAE30\uC758 \uD14C\uC2A4\uD2B8","the parameter 2 of the size":"the parameter 2 of the size","Angle, parameter 1":"\uAC01\uB3C4, \uB9E4\uAC1C \uBCC0\uC218 1","Modify parameter 1 of the angle of particles":"\uB9E4\uAC1C \uBCC0\uC218 1 \uC785\uC790\uC758 \uAC01\uB3C4\uC758 \uC218\uC815","the parameter 1 of angle":"the parameter 1 of angle","Test parameter 1 of the angle of particles":"\uB9E4\uAC1C \uBCC0\uC218 1 \uC785\uC790\uC758 \uAC01\uB3C4\uC758 \uD14C\uC2A4\uD2B8","Angle, parameter 2":"\uAC01\uB3C4, \uB9E4\uAC1C \uBCC0\uC218 2","Modify parameter 2 of the angle of particles":"\uB9E4\uAC1C \uBCC0\uC218 2 \uC785\uC790\uC758 \uAC01\uB3C4\uC758 \uC218\uC815","the parameter 2 of angle":"the parameter 2 of angle","Test parameter 2 of the angle of particles":"\uB9E4\uAC1C \uBCC0\uC218 2 \uC785\uC790\uC758 \uAC01\uB3C4\uC758 \uD14C\uC2A4\uD2B8","Transparency, parameter 1":"\uD22C\uBA85\uB3C4, \uB9E4\uAC1C \uBCC0\uC218 1","Modify parameter 1 of the transparency of particles":"\uB9E4\uAC1C \uBCC0\uC218 1\uC758 \uC785\uC790\uC758 \uD22C\uBA85\uB3C4 \uC218\uC815","the parameter 1 of the transparency":"the parameter 1 of the transparency","Test parameter 1 of the transparency of particles":"\uB9E4\uAC1C \uBCC0\uC218 1 \uC785\uC790\uC758 \uD22C\uBA85\uC131\uC758 \uD14C\uC2A4\uD2B8","Transparency, parameter 2":"\uD22C\uBA85\uB3C4, \uB9E4\uAC1C \uBCC0\uC218 2","Modify parameter 2 of the transparency of particles":"\uB9E4\uAC1C \uBCC0\uC218 2 \uC785\uC790\uC758 \uD22C\uBA85\uC131\uC758 \uC218\uC815","the parameter 2 of the transparency":"the parameter 2 of the transparency","Test parameter 2 of the transparency of particles":"\uB9E4\uAC1C \uBCC0\uC218 2 \uC785\uC790\uC758 \uD22C\uBA85\uC131\uC758 \uD14C\uC2A4\uD2B8","No more particles":"\uC544\uB2C8 \uB354 \uB9CE\uC740 \uC785\uC790","Return true if the object does not emit particles anylonger, so as to destroy it for example.":"\uC608\uB97C \uB4E4\uC5B4 \uD30C\uAD34 \uB418\uBBC0\uB85C \uC785\uC790 anylonger\uB97C \uBC29\uCD9C \uD558\uC9C0 \uC54A\uB294 \uACBD\uC6B0 true\uB97C \uBC18\uD658 \uD569\uB2C8\uB2E4.","_PARAM0_ does not emit anylonger.":"_PARAM0_ anylonger\uB97C \uBC29\uCD9C \uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","Particles number":"Particles number","Recreate particles":"\uC785\uC790\uB97C \uB2E4\uC2DC","Destroy and recreate particles, so as to take changes made to setup of the emitter in account.":"\uD30C\uAD34 \uD558 \uACE0 \uACC4\uC815\uC5D0 \uBBF8\uD130\uC758 \uC124\uC815 \uBCC0\uACBD\uC744 \uC704\uD558\uC5EC \uC785\uC790\uB97C \uB2E4\uC2DC \uB9CC\uB4ED\uB2C8\uB2E4.","Recreate particles of _PARAM0_":"_PARAM0_\uC758 \uC785\uC790\uB97C \uB2E4\uC2DC","Setup":"\uC124\uC815","Rendering first parameter":"Rendering first parameter","Modify first parameter of rendering ( Size/Length ).\nParticles have to be recreated in order to take changes in account.":"Modify first parameter of rendering ( Size/Length ).\nParticles have to be recreated in order to take changes in account.","the rendering 1st parameter":"the rendering 1st parameter","Test the first parameter of rendering ( Size/Length ).":"Test the first parameter of rendering ( Size/Length ).","the 1st rendering parameter":"the 1st rendering parameter","Rendering second parameter":"Rendering second parameter","Modify the second parameter of rendering ( Size/Length ).\nParticles have to be recreated in order to take changes in account.":"Modify the second parameter of rendering ( Size/Length ).\nParticles have to be recreated in order to take changes in account.","the rendering 2nd parameter":"the rendering 2nd parameter","Test the second parameter of rendering ( Size/Length ).":"Test the second parameter of rendering ( Size/Length ).","the 2nd rendering parameter":"the 2nd rendering parameter","Capacity":"Capacity","Change the capacity of the emitter.":"Change the capacity of the emitter.","the capacity":"the capacity","Test the capacity of the emitter.":"Test the capacity of the emitter.","Flow":"Flow","Change the flow of the emitter.":"Change the flow of the emitter.","the flow":"the flow","Test the flow of the emitter.":"Test the flow of the emitter.","Change the image of particles ( if displayed ).":"Change the image of particles ( if displayed ).","Change the image of particles of _PARAM0_ to _PARAM1_":"Change the image of particles of _PARAM0_ to _PARAM1_","New image":"\uC0C8\uB85C\uC6B4 \uC774\uBBF8\uC9C0","Test the name of the image displayed by particles.":"Test the name of the image displayed by particles.","the image displayed by particles":"the image displayed by particles","Particles image":"Particles image","Name of the image displayed by particles":"Name of the image displayed by particles","Particles":"Particles","Emission angle A":"Emission angle A","Emission angle B":"Emission angle B","Radius of the emission zone":"Radius of the emission zone","X Gravity of particles":"X Gravity of particles","Y Gravity of particles":"Y Gravity of particles","Z Gravity of particles":"Z Gravity of particles","Gravity value":"Gravity value","Particles friction":"Particles friction","Minimum lifetime of particles":"Minimum lifetime of particles","Maximum lifetime of particles":"Maximum lifetime of particles","Parameter 1 of red color":"Parameter 1 of red color","Parameter 2 of red color":"Parameter 2 of red color","Parameter 1 of blue color":"Parameter 1 of blue color","Parameter 2 of blue color":"Parameter 2 of blue color","Parameter 1 of green color":"Parameter 1 of green color","Parameter 2 of green color":"Parameter 2 of green color","Parameter 1 of transparency":"Parameter 1 of transparency","Parameter 2 of transparency":"Parameter 2 of transparency","Parameter 1 of size":"Parameter 1 of size","Parameter 2 of size":"Parameter 2 of size","Parameter 1 of angle":"Parameter 1 of angle","Parameter 2 of angle":"Parameter 2 of angle","Skeleton":"Skeleton","Enables the use of animated skeleton objects made with DragonBones.":"Enables the use of animated skeleton objects made with DragonBones.","Object displayed using skeletal animation, powered by DragonBones. This object is experimental and searching for a maintainer.":"Object displayed using skeletal animation, powered by DragonBones. This object is experimental and searching for a maintainer.","Scale X":"Scale X","Check the object scale X.":"Check the object scale X.","the current scale X":"the current scale X","Change the object scale X.":"Change the object scale X.","Set _PARAM0_ scale X _PARAM1__PARAM2_":"Set _PARAM0_ scale X _PARAM1__PARAM2_","Object scale X":"Object scale X","Scale Y":"Scale Y","Check the object scale Y.":"Check the object scale Y.","the current scale Y":"the current scale Y","Change the object scale Y.":"Change the object scale Y.","Set _PARAM0_ scale Y _PARAM1__PARAM2_":"Set _PARAM0_ scale Y _PARAM1__PARAM2_","Object scale Y":"Object scale Y","Check the object width.":"Check the object width.","the current width":"the current width","Change the object width.":"Change the object width.","Set _PARAM0_ width _PARAM1__PARAM2_":"Set _PARAM0_ width _PARAM1__PARAM2_","Object width":"Object width","Check the object height.":"Check the object height.","the current height":"the current height","Change the object height.":"Change the object height.","Set _PARAM0_ height _PARAM1__PARAM2_":"Set _PARAM0_ height _PARAM1__PARAM2_","Object height":"Object height","Default hitbox":"Default hitbox","Change the object default hitbox to be used by other conditions and behaviors.":"Change the object default hitbox to be used by other conditions and behaviors.","Set _PARAM0_ default hitbox to _PARAM1_":"Set _PARAM0_ default hitbox to _PARAM1_","Slot path":"Slot path","Paused":"Paused","Test if the animation for the skeleton is paused":"Test if the animation for the skeleton is paused","Animation of _PARAM0_ is paused":"Animation of _PARAM0_ is paused","Pause":"\uC77C\uC2DC\uC815\uC9C0","Pauses animation for the skeleton":"Pauses animation for the skeleton","Pause animation for _PARAM0_":"Pause animation for _PARAM0_","Unpause":"Unpause","Unpauses animation for the skeleton":"Unpauses animation for the skeleton","Unpause animation for _PARAM0_":"Unpause animation for _PARAM0_","Finished":"Finished","Test if the animation has finished on this frame":"Test if the animation has finished on this frame","Animation of _PARAM0_ has finished":"Animation of _PARAM0_ has finished","Current time":"Current time","Check the current animation elapsed time.":"Check the current animation elapsed time.","the current animation time":"the current animation time","Change the current animation elapsed time.":"Change the current animation elapsed time.","Set _PARAM0_ current animation time _PARAM1__PARAM2_":"Set _PARAM0_ current animation time _PARAM1__PARAM2_","Current animation elapsed time":"Current animation elapsed time","Animation time length":"Animation time length","Current animation time length":"Current animation time length","Current frame":"Current frame","Check the current animation frame.\nIf the animation is set as smooth, a float can be (and probably will be) returned.":"Check the current animation frame.\nIf the animation is set as smooth, a float can be (and probably will be) returned.","the current animation frame":"the current animation frame","Change the current animation frame":"Change the current animation frame","Set _PARAM0_ current animation frame _PARAM1__PARAM2_":"Set _PARAM0_ current animation frame _PARAM1__PARAM2_","Current animation frame":"Current animation frame","Animation frame length":"Animation frame length","Current animation frame length":"Current animation frame length","Animation index":"Animation index","Check the current animation index.\nIf not sure about the index, you can use the \"by name\" action":"Check the current animation index.\nIf not sure about the index, you can use the \"by name\" action","the current animation":"the current animation","Change the current animation from the animation index.\nIf not sure about the index, you can use the \"by name\" action":"Change the current animation from the animation index.\nIf not sure about the index, you can use the \"by name\" action","Set _PARAM0_ animation _PARAM1__PARAM2_":"Set _PARAM0_ animation _PARAM1__PARAM2_","Blend time (0 for automatic blending)":"Blend time (0 for automatic blending)","Loops (0 for infinite loops)":"Loops (0 for infinite loops)","Current animation index":"Current animation index","Animation name":"Animation name","Check the current animation name.":"Check the current animation name.","Change the current animation from the animation name.":"Change the current animation from the animation name.","Set _PARAM0_ animation to _PARAM1_":"Set _PARAM0_ animation to _PARAM1_","Current animation name":"Current animation name","Smooth":"Smooth","Check if the object animation interpolator is smooth.":"Check if the object animation interpolator is smooth.","Animation mode of _PARAM0_ is smooth":"Animation mode of _PARAM0_ is smooth","Change the object animation interpolator.":"Change the object animation interpolator.","Set animation mode of _PARAM0_ as smooth: _PARAM1_":"Set animation mode of _PARAM0_ as smooth: _PARAM1_","Time scale":"Time scale","Check the animation time scale.":"Check the animation time scale.","the animation time scale":"the animation time scale","Change the animation time scale":"Change the animation time scale","Set _PARAM0_ animation time scale _PARAM1__PARAM2_":"Set _PARAM0_ animation time scale _PARAM1__PARAM2_","Animation time scale":"Animation time scale","Reset current animation":"Reset current animation","Reset _PARAM0_ current animation":"Reset _PARAM0_ current animation","Position X":"Position X","Check the bone position X.":"Check the bone position X.","the current position X :_PARAM1_":"the current position X :_PARAM1_","Bone":"\uBF08\uB300","Bone path":"Bone path","Change the bone position X.":"Change the bone position X.","Set _PARAM0_:_PARAM1_ position X _PARAM2__PARAM3_":"Set _PARAM0_:_PARAM1_ position X _PARAM2__PARAM3_","Bone position X":"Bone position X","Position Y":"Y \uC88C\uD45C","Check the bone position Y.":"Check the bone position Y.","the current position Y :_PARAM1_":"the current position Y :_PARAM1_","Change the bone position Y.":"Change the bone position Y.","Set _PARAM0_:_PARAM1_ position Y _PARAM2__PARAM3_":"Set _PARAM0_:_PARAM1_ position Y _PARAM2__PARAM3_","Bone position Y":"Bone position Y","Position":"\uC704\uCE58","Change the bone position.":"Change the bone position.","Set _PARAM0_:_PARAM1_ position X _PARAM2__PARAM3_; Y _PARAM4__PARAM5_":"Set _PARAM0_:_PARAM1_ position X _PARAM2__PARAM3_; Y _PARAM4__PARAM5_","Modification's sign":"\uC218\uC815","Check the bone angle (in degrees).":"Check the bone angle (in degrees).","the current angle :_PARAM1_":"the current angle :_PARAM1_","Sign of the test":"\uD14C\uC2A4\uD2B8\uC758 \uD45C\uC2DC","Change the bone angle (in degrees).":"Change the bone angle (in degrees).","Set _PARAM0_:_PARAM1_ angle _PARAM2__PARAM3_":"Set _PARAM0_:_PARAM1_ angle _PARAM2__PARAM3_","Slot angle (in degrees)":"Slot angle (in degrees)","Check the bone scale X.":"Check the bone scale X.","the current scale X :_PARAM1_":"the current scale X :_PARAM1_","Change the bone scale X.":"Change the bone scale X.","Set _PARAM0_:_PARAM1_ scale X _PARAM2__PARAM3_":"Set _PARAM0_:_PARAM1_ scale X _PARAM2__PARAM3_","Slot scale X":"Slot scale X","Check the bone scale Y.":"Check the bone scale Y.","the current scale Y :_PARAM1_":"the current scale Y :_PARAM1_","Change the bone scale Y.":"Change the bone scale Y.","Set _PARAM0_:_PARAM1_ scale Y _PARAM2__PARAM3_":"Set _PARAM0_:_PARAM1_ scale Y _PARAM2__PARAM3_","Slot scale Y":"Slot scale Y","Change the bone scale.":"Change the bone scale.","Set _PARAM0_:_PARAM1_ scale X _PARAM2__PARAM3_; Y _PARAM4__PARAM5_":"Set _PARAM0_:_PARAM1_ scale X _PARAM2__PARAM3_; Y _PARAM4__PARAM5_","Reset the bone transformation.":"Reset the bone transformation.","Reset _PARAM0_:_PARAM1_ transformation":"Reset _PARAM0_:_PARAM1_ transformation","Change the slot color.":"Change the slot color.","Set _PARAM0_:_PARAM1_ color to _PARAM2_":"Set _PARAM0_:_PARAM1_ color to _PARAM2_","Slot":"Slot","Sloth path":"Sloth path","Visible":"Visible","Check the slot visibility.":"Check the slot visibility.","_PARAM0_:_PARAM1_ is visible":"_PARAM0_:_PARAM1_ is visible","Show":"Show","Show the slot, making it visible.":"Show the slot, making it visible.","Show _PARAM0_:_PARAM1_":"Show _PARAM0_:_PARAM1_","Hide the slot, making it invisible.":"Hide the slot, making it invisible.","Hide _PARAM0_:_PARAM1_":"Hide _PARAM0_:_PARAM1_","Z-order":"Z-order","Check the slot Z-order.":"Check the slot Z-order.","the z-order :_PARAM1_":"the z-order :_PARAM1_","Change the slot Z-order.":"Change the slot Z-order.","Set _PARAM0_:_PARAM1_ Z-order _PARAM2__PARAM3_":"Set _PARAM0_:_PARAM1_ Z-order _PARAM2__PARAM3_","Slot Z-order":"Slot Z-order","Point inside slot":"Point inside slot","Check if the point is inside the slot":"Check if the point is inside the slot","The point _PARAM2_;_PARAM3_ is inside _PARAM0_:_PARAM1_":"The point _PARAM2_;_PARAM3_ is inside _PARAM0_:_PARAM1_","Point X":"Point X","Point Y":"Point Y","Slot collides with object":"Slot collides with object","Check if the slot collides with an object":"Check if the slot collides with an object","_PARAM0_:_PARAM1_ collides with _PARAM2_":"_PARAM0_:_PARAM1_ collides with _PARAM2_","Slot collides with slot":"Slot collides with slot","Check if the slot collides with another skeleton slot":"Check if the slot collides with another skeleton slot","_PARAM0_:_PARAM1_ collides with _PARAM2_:_PARAM3_":"_PARAM0_:_PARAM1_ collides with _PARAM2_:_PARAM3_","Other skeleton":"Other skeleton","Raycast slot":"Raycast slot","Same as Raycast, but intersects specific slots instead.":"Same as Raycast, but intersects specific slots instead.","Raycast _PARAM0_:_PARAM1_ from _PARAM2_;_PARAM3_":"Raycast _PARAM0_:_PARAM1_ from _PARAM2_;_PARAM3_","Skeleton to test against the ray":"Skeleton to test against the ray","Ray source X position":"Ray source X position","Ray source Y position":"Ray source Y position","Ray angle (in degrees)":"Ray angle (in degrees)","Ray maximum distance (in pixels)":"Ray maximum distance (in pixels)","Scene variable where to store the X position of the intersection":"Scene variable where to store the X position of the intersection","Scene variable where to store the Y position of the intersection":"Scene variable where to store the Y position of the intersection","Skeletal data filename":"Skeletal data filename","Main armature name":"Main armature name","Texture data filename":"Texture data filename","Texture":"Texture","API":"API","Debug Polygons":"Debug Polygons","Text entry object":"Text entry object","This Extension enables the use of an object that captures text entered with a keyboard by a player.":"This Extension enables the use of an object that captures text entered with a keyboard by a player.","Text entry":"Text entry","Invisible object used to get the text entered with the keyboard":"Invisible object used to get the text entered with the keyboard","Text in memory":"Text in memory","Modify text in memory of the object":"Modify text in memory of the object","the text in memory":"the text in memory","Test the text of a Text Entry object.":"Test the text of a Text Entry object.","De/activate capturing text input":"De/activate capturing text input","Activate or deactivate the capture of text entered with keyboard.":"Activate or deactivate the capture of text entered with keyboard.","Activate capture by _PARAM0_ of the text entered with keyboard: _PARAM1_":"Activate capture by _PARAM0_ of the text entered with keyboard: _PARAM1_","Activate":"Activate","Text input":"Text input","Test if the object captured text entered with keyboard.":"Test if the object captured text entered with keyboard.","_PARAM0_ capture the text entered with keyboard":"_PARAM0_ capture the text entered with keyboard","Text entered with keyboard":"Text entered with keyboard","Activated ?":"Activated ?","Anchor":"Anchor","Anchor objects to the window's bounds.":"Anchor objects to the window's bounds.","Behavior that anchors objects to the window's bounds.":"Behavior that anchors objects to the window's bounds.","Window left":"Window left","Window right":"Window right","Proportional":"Proportional","No anchor":"No anchor","Window top":"Window top","Window bottom":"Window bottom","relativeToOriginalWindowSize":"relativeToOriginalWindowSize","Anchor relatively to original window size":"Anchor relatively to original window size","otherwise, objects are anchored according to the window size when the object is created.":"otherwise, objects are anchored according to the window size when the object is created.","Left edge anchor":"Left edge anchor","Use this to anchor the object on X axis.":"Use this to anchor the object on X axis.","Right edge anchor":"Right edge anchor","Top edge anchor":"Top edge anchor","Use this to anchor the object on Y axis.":"Use this to anchor the object on Y axis.","Bottom edge anchor":"Bottom edge anchor","Inventory":"Inventory","Provides actions and conditions to add an inventory to your game, with items in memory.":"Provides actions and conditions to add an inventory to your game, with items in memory.","Add an item":"Add an item","Add an item in an inventory.":"Add an item in an inventory.","Add a _PARAM2_ to inventory _PARAM1_":"Add a _PARAM2_ to inventory _PARAM1_","Inventories":"Inventories","Inventory name":"Inventory name","Item name":"Item name","Remove an item":"Remove an item","Remove an item from an inventory.":"Remove an item from an inventory.","Remove a _PARAM2_ from inventory _PARAM1_":"Remove a _PARAM2_ from inventory _PARAM1_","Item count":"Item count","Compare the number of an item in an inventory.":"Compare the number of an item in an inventory.","the count of _PARAM2_ in _PARAM1_":"the count of _PARAM2_ in _PARAM1_","Has an item":"Has an item","Check if at least one of the specified items is in the inventory.":"Check if at least one of the specified items is in the inventory.","Inventory _PARAM1_ contains a _PARAM2_":"Inventory _PARAM1_ contains a _PARAM2_","Set a maximum count for an item":"Set a maximum count for an item","Set the maximum number of the specified item that can be added in the inventory. By default, the number allowed for each item is unlimited.":"Set the maximum number of the specified item that can be added in the inventory. By default, the number allowed for each item is unlimited.","Set the maximum count for _PARAM2_ in inventory _PARAM1_ to _PARAM3_":"Set the maximum count for _PARAM2_ in inventory _PARAM1_ to _PARAM3_","Maximum count":"Maximum count","Set unlimited count for an item":"Set unlimited count for an item","Allow an unlimited amount of an object to be in an inventory. This is the case by default for each item.":"Allow an unlimited amount of an object to be in an inventory. This is the case by default for each item.","Allow an unlimited count of _PARAM2_ in inventory _PARAM1_: _PARAM3_":"Allow an unlimited count of _PARAM2_ in inventory _PARAM1_: _PARAM3_","Allow an unlimited amount?":"Allow an unlimited amount?","Item full":"Item full","Check if an item has reached its maximum number allowed in the inventory.":"Check if an item has reached its maximum number allowed in the inventory.","Inventory _PARAM1_ is full of _PARAM2_":"Inventory _PARAM1_ is full of _PARAM2_","Equip an item":"Equip an item","Mark an item as being equipped. If the item count is 0, it won't be marked as equipped.":"Mark an item as being equipped. If the item count is 0, it won't be marked as equipped.","Set _PARAM2_ as equipped in inventory _PARAM1_: _PARAM3_":"Set _PARAM2_ as equipped in inventory _PARAM1_: _PARAM3_","Equip?":"Equip?","Item equipped":"Item equipped","Check if an item is equipped.":"Check if an item is equipped.","_PARAM2_ is equipped in inventory _PARAM1_":"_PARAM2_ is equipped in inventory _PARAM1_","Save an inventory in a scene variable":"Save an inventory in a scene variable","Save all the items of the inventory in a scene variable, so that it can be restored later.":"Save all the items of the inventory in a scene variable, so that it can be restored later.","Save inventory _PARAM1_ in variable _PARAM2_":"Save inventory _PARAM1_ in variable _PARAM2_","Inventories/Variables":"Inventories/Variables","Load an inventory from a scene variable":"Load an inventory from a scene variable","Load the content of the inventory from a scene variable.":"Load the content of the inventory from a scene variable.","Load inventory _PARAM1_ from variable _PARAM2_":"Load inventory _PARAM1_ from variable _PARAM2_","Get the number of an item in the inventory":"Get the number of an item in the inventory","System information":"System information","Provides information about the system running the game":"Provides information about the system running the game","Is a mobile device":"Is a mobile device","Check if the device running the game is a mobile device":"Check if the device running the game is a mobile device","The device is a mobile device":"The device is a mobile device","Is WebGL supported":"Is WebGL supported","Check if GPU accelerated WebGL is supported on the target device.":"Check if GPU accelerated WebGL is supported on the target device.","WebGL is available":"WebGL is available","Tiled Sprite Object":"Tiled Sprite Object","This Extension enables the use of Tiled Sprite Objects.":"This Extension enables the use of Tiled Sprite Objects.","Tiled Sprite":"Tiled Sprite","Displays an image repeated over an area":"Displays an image repeated over an area","Compare the opacity of a Tiled Sprite, between 0 (fully transparent) to 255 (opaque).":"Compare the opacity of a Tiled Sprite, between 0 (fully transparent) to 255 (opaque).","Change Tiled Sprite opacity":"Change Tiled Sprite opacity","Change the opacity of a Tiled Sprite. 0 is fully transparent, 255 is opaque (default).":"Change the opacity of a Tiled Sprite. 0 is fully transparent, 255 is opaque (default).","Change the global color of a Tiled Sprite. The default color is white.":"Change the global color of a Tiled Sprite. The default color is white.","Modify the width of a Tiled Sprite.":"Modify the width of a Tiled Sprite.","Test the width of a Tiled Sprite.":"Test the width of a Tiled Sprite.","Modify the height of a Tiled Sprite.":"Modify the height of a Tiled Sprite.","Test the height of a Tiled Sprite.":"Test the height of a Tiled Sprite.","Modify the angle of a Tiled Sprite.":"Modify the angle of a Tiled Sprite.","Test the angle of a Tiled Sprite.":"Test the angle of a Tiled Sprite.","Image X Offset":"Image X Offset","Modify the offset used on the X axis when displaying the image.":"Modify the offset used on the X axis when displaying the image.","the X offset":"the X offset","Image offset":"Image offset","Test the offset used on the X axis when displaying the image.":"Test the offset used on the X axis when displaying the image.","Image Y Offset":"Image Y Offset","Modify the offset used on the Y axis when displaying the image.":"Modify the offset used on the Y axis when displaying the image.","the Y offset":"the Y offset","Test the offset used on the Y axis when displaying the image.":"Test the offset used on the Y axis when displaying the image.","Top-down movement":"Top-down movement","Move objects in either 4 or 8 directions":"Move objects in either 4 or 8 directions","Top-down movement (4 or 8 directions)":"Top-down movement (4 or 8 directions)","The object can be moved left, up, right, and down (and, optionally, diagonally).":"The object can be moved left, up, right, and down (and, optionally, diagonally).","Simulate left key press":"Simulate left key press","Simulate a press of left key.":"Simulate a press of left key.","Simulate pressing Left for _PARAM0_":"Simulate pressing Left for _PARAM0_","Controls":"\uC870\uC791","Simulate right key press":"Simulate right key press","Simulate a press of right key.":"Simulate a press of right key.","Simulate pressing Right for _PARAM0_":"Simulate pressing Right for _PARAM0_","Simulate up key press":"Simulate up key press","Simulate a press of up key.":"Simulate a press of up key.","Simulate pressing Up for _PARAM0_":"Simulate pressing Up for _PARAM0_","Simulate down key press":"Simulate down key press","Simulate a press of down key.":"Simulate a press of down key.","Simulate pressing Down for _PARAM0_":"Simulate pressing Down for _PARAM0_","Simulate control":"Simulate control","Simulate a press of a key.\nValid keys are Left, Right, Up, Down.":"Simulate a press of a key.\nValid keys are Left, Right, Up, Down.","Simulate pressing _PARAM2_ key for _PARAM0_":"Simulate pressing _PARAM2_ key for _PARAM0_","Key":"Key","Ignore default controls":"Ignore default controls","De/activate the use of default controls.\nIf deactivated, use the simulated actions to move the object.":"De/activate the use of default controls.\nIf deactivated, use the simulated actions to move the object.","Ignore default controls for _PARAM0_: _PARAM2_":"Ignore default controls for _PARAM0_: _PARAM2_","Ignore controls":"Ignore controls","Is moving":"Is moving","Check if the object is moving.":"Check if the object is moving.","_PARAM0_ is moving":"_PARAM0_ is moving","Acceleration":"Acceleration","Change the acceleration of the object":"Change the acceleration of the object","the acceleration":"the acceleration","Compare the acceleration of the object":"Compare the acceleration of the object","Deceleration":"Deceleration","Change the deceleration of the object":"Change the deceleration of the object","the deceleration":"the deceleration","Compare the deceleration of the object":"Compare the deceleration of the object","Maximum speed":"Maximum speed","Change the maximum speed of the object":"Change the maximum speed of the object","the max. speed":"the max. speed","Compare the maximum speed of the object":"Compare the maximum speed of the object","Speed":"\uC2E0\uC18D","Compare the speed of the object":"Compare the speed of the object","the speed":"the speed","Angular maximum speed":"Angular maximum speed","Change the maximum angular speed of the object":"Change the maximum angular speed of the object","the max. angular speed":"the max. angular speed","Compare the maximum angular speed of the object":"Compare the maximum angular speed of the object","Rotation offset":"Rotation offset","Change the rotation offset applied when moving the object":"Change the rotation offset applied when moving the object","the rotation offset":"the rotation offset","Compare the rotation offset applied when moving the object":"Compare the rotation offset applied when moving the object","Angle of movement":"Angle of movement","Compare the angle of the top-down movemement of the object.":"Compare the angle of the top-down movemement of the object.","the angle of movemement":"the angle of movemement","Speed on X axis":"Speed on X axis","Compare the velocity of the top-down movemement of the object on the X axis.":"Compare the velocity of the top-down movemement of the object on the X axis.","the speed of movemement on X axis":"the speed of movemement on X axis","Speed on Y axis":"Speed on Y axis","Compare the velocity of the top-down movemement of the object on the Y axis.":"Compare the velocity of the top-down movemement of the object on the Y axis.","the speed of movemement on Y axis":"the speed of movemement on Y axis","Diagonal movement":"Diagonal movement","Allow or restrict diagonal movemment":"Allow or restrict diagonal movemment","Allow diagonal moves for _PARAM0_: _PARAM2_":"Allow diagonal moves for _PARAM0_: _PARAM2_","Allow?":"Allow?","Return true if the object is allowed to move diagonally":"Return true if the object is allowed to move diagonally","Allow diagonal moves for _PARAM0_":"Allow diagonal moves for _PARAM0_","Rotate the object":"Rotate the object","Enable or disable rotation of the object":"Enable or disable rotation of the object","Enable rotation of _PARAM0_: _PARAM2_":"Enable rotation of _PARAM0_: _PARAM2_","Rotate object?":"Rotate object?","Object rotated":"Object rotated","Return true if the object is rotated while traveling on its path.":"Return true if the object is rotated while traveling on its path.","_PARAM0_ is rotated when moving":"_PARAM0_ is rotated when moving","Acceleration of the object":"Acceleration of the object","Deceleration of the object":"Deceleration of the object","Maximum speed of the object":"Maximum speed of the object","Speed of the object":"Speed of the object","Angular maximum speed of the object":"Angular maximum speed of the object","Rotation offset applied to the object":"Rotation offset applied to the object","Angle of the movement":"Angle of the movement","Angle, in degrees, of the movement":"Angle, in degrees, of the movement","Speed on the X axis":"Speed on the X axis","Speed on the X axis of the movement":"Speed on the X axis of the movement","Speed on the Y axis":"Speed on the Y axis","Speed on the Y axis of the movement":"Speed on the Y axis of the movement","Allows diagonals":"Allows diagonals","Max. speed":"Max. speed","Rotate speed":"Rotate speed","Rotate object":"Rotate object","Angle offset":"Angle offset","Default controls":"Default controls","Pathfinding behavior":"Pathfinding behavior","Compute paths for objects avoiding obstacles.":"Compute paths for objects avoiding obstacles.","Pathfinding":"Pathfinding","With this, characters will move while avoiding all objects that are flagged as obstacles.":"With this, characters will move while avoiding all objects that are flagged as obstacles.","Move to a position":"Move to a position","Move the object to a position":"Move the object to a position","Move _PARAM0_ to _PARAM3_;_PARAM4_":"Move _PARAM0_ to _PARAM3_;_PARAM4_","Destination X position":"Destination X position","Destination Y position":"Destination Y position","Path found":"Path found","Return true if a path has been found.":"Return true if a path has been found.","A path has been found for _PARAM0_":"A path has been found for _PARAM0_","Destination reached":"Destination reached","Return true if the destination was reached.":"Return true if the destination was reached.","_PARAM0_ reached its destination":"_PARAM0_ reached its destination","Width of the cells":"Width of the cells","Change the width of the cells of the virtual grid.":"Change the width of the cells of the virtual grid.","the width of the virtual cells":"the width of the virtual cells","Virtual grid":"Virtual grid","Width of the virtual grid":"Width of the virtual grid","Compare the width of the cells of the virtual grid.":"Compare the width of the cells of the virtual grid.","Height of the cells":"Height of the cells","Change the height of the cells of the virtual grid.":"Change the height of the cells of the virtual grid.","the height of the virtual cells":"the height of the virtual cells","Height of the virtual grid":"Height of the virtual grid","Compare the height of the cells of the virtual grid.":"Compare the height of the cells of the virtual grid.","Change the acceleration when moving the object":"Change the acceleration when moving the object","the acceleration on the path":"the acceleration on the path","Path":"Path","Compare the acceleration when moving the object":"Compare the acceleration when moving the object","Change the maximum speed when moving the object":"Change the maximum speed when moving the object","the max. speed on the path":"the max. speed on the path","Compare the maximum speed when moving the object":"Compare the maximum speed when moving the object","Change the speed of the object on the path":"Change the speed of the object on the path","the speed on the path":"the speed on the path","Compare the speed of the object on the path":"Compare the speed of the object on the path","Change the maximum angular speed when moving the object":"Change the maximum angular speed when moving the object","the max. angular speed on the path":"the max. angular speed on the path","Compare the maximum angular speed when moving the object":"Compare the maximum angular speed when moving the object","the rotation offset on the path":"the rotation offset on the path","Compare the rotation offset when moving the object":"Compare the rotation offset when moving the object","Extra border":"Extra border","Change the size of the extra border applied to the object when planning a path":"Change the size of the extra border applied to the object when planning a path","the size of the extra border on the path":"the size of the extra border on the path","Compare the size of the extra border applied to the object when planning a path":"Compare the size of the extra border applied to the object when planning a path","Allow or restrict diagonal movement on the path":"Allow or restrict diagonal movement on the path","Allow diagonal movement for _PARAM0_ on the path: _PARAM2_":"Allow diagonal movement for _PARAM0_ on the path: _PARAM2_","Return true if the object is allowed to move diagonally on the path":"Return true if the object is allowed to move diagonally on the path","Diagonal moves allowed for _PARAM0_":"Diagonal moves allowed for _PARAM0_","Enable or disable rotation of the object on the path":"Enable or disable rotation of the object on the path","Enable rotation of _PARAM0_ on the path: _PARAM2_":"Enable rotation of _PARAM0_ on the path: _PARAM2_","Return true if the object is rotated when traveling on its path.":"Return true if the object is rotated when traveling on its path.","_PARAM0_ is rotated when traveling on its path":"_PARAM0_ is rotated when traveling on its path","Get a waypoint X position":"Get a waypoint X position","Get next waypoint X position":"Get next waypoint X position","Node index (start at 0!)":"Node index (start at 0!)","Get a waypoint Y position":"Get a waypoint Y position","Get next waypoint Y position":"Get next waypoint Y position","Index of the next waypoint":"Index of the next waypoint","Get the index of the next waypoint to reach":"Get the index of the next waypoint to reach","Waypoint count":"Waypoint count","Get the number of waypoints on the path":"Get the number of waypoints on the path","Last waypoint X position":"Last waypoint X position","Last waypoint Y position":"Last waypoint Y position","Acceleration of the object on the path":"Acceleration of the object on the path","Maximum speed of the object on the path":"Maximum speed of the object on the path","Speed of the object on the path":"Speed of the object on the path","Angular maximum speed of the object on the path":"Angular maximum speed of the object on the path","Rotation offset applied the object on the path":"Rotation offset applied the object on the path","Extra border size":"Extra border size","Extra border applied the object on the path":"Extra border applied the object on the path","Width of a cell":"Width of a cell","Height of a cell":"Height of a cell","Obstacle for pathfinding":"Obstacle for pathfinding","Flag the object as being an obstacle for pathfinding.":"Flag the object as being an obstacle for pathfinding.","Cost":"Cost","Change the cost of going through the object.":"Change the cost of going through the object.","the cost":"the cost","Obstacles":"Obstacles","Compare the cost of going through the object":"Compare the cost of going through the object","Should object be impassable?":"Should object be impassable?","Decide if the object is an impassable obstacle":"Decide if the object is an impassable obstacle","Set _PARAM0_ as an impassable obstacle: _PARAM2_":"Set _PARAM0_ as an impassable obstacle: _PARAM2_","Impassable?":"Impassable?","Is object impassable?":"Is object impassable?","Return true if the obstacle is impassable":"Return true if the obstacle is impassable","_PARAM0_ is impassable":"_PARAM0_ is impassable","Obstacle cost":"Obstacle cost","Virtual cell width":"Virtual cell width","Virtual cell height":"Virtual cell height","Impassable obstacle":"Impassable obstacle","Cost (if not impassable)":"Cost (if not impassable)","Platform Behavior":"Platform Behavior","This Extension enables the use of controllable objects that can run and jump on platforms.":"This Extension enables the use of controllable objects that can run and jump on platforms.","Platformer character":"Platformer character","Controllable character that can jump and run on platforms.":"Controllable character that can jump and run on platforms.","Check if the object is moving (whether it is on the floor or in the air).":"Check if the object is moving (whether it is on the floor or in the air).","Is on floor":"Is on floor","Check if the object is on a platform.":"Check if the object is on a platform.","_PARAM0_ is on floor":"_PARAM0_ is on floor","Is on ladder":"Is on ladder","Check if the object is on a ladder.":"Check if the object is on a ladder.","_PARAM0_ is on ladder":"_PARAM0_ is on ladder","Is jumping":"Is jumping","Check if the object is jumping.":"Check if the object is jumping.","_PARAM0_ is jumping":"_PARAM0_ is jumping","Is falling":"Is falling","Check if the object is falling.\nNote that the object can be flagged as jumping and falling at the same time: at the end of a jump, the fall speed becomes higher than the jump speed.":"Check if the object is falling.\nNote that the object can be flagged as jumping and falling at the same time: at the end of a jump, the fall speed becomes higher than the jump speed.","_PARAM0_ is falling":"_PARAM0_ is falling","Is grabbing platform ledge":"Is grabbing platform ledge","Check if the object is grabbing a platform ledge.":"Check if the object is grabbing a platform ledge.","_PARAM0_ is grabbing a platform ledge":"_PARAM0_ is grabbing a platform ledge","Compare the gravity applied on the object (in pixels per second per second).":"Compare the gravity applied on the object (in pixels per second per second).","Options":"\uC124\uC815","Change the gravity applied on an object (in pixels per second per second).":"Change the gravity applied on an object (in pixels per second per second).","Maximum falling speed":"Maximum falling speed","Compare the maximum falling speed of the object (in pixels per second).":"Compare the maximum falling speed of the object (in pixels per second).","the maximum falling speed":"the maximum falling speed","Change the maximum falling speed of an object (in pixels per second).":"Change the maximum falling speed of an object (in pixels per second).","Compare the acceleration of the object (in pixels per second per second).":"Compare the acceleration of the object (in pixels per second per second).","Change the acceleration of an object (in pixels per second per second).":"Change the acceleration of an object (in pixels per second per second).","Compare the deceleration of the object (in pixels per second per second).":"Compare the deceleration of the object (in pixels per second per second).","Change the deceleration of an object (in pixels per second per second).":"Change the deceleration of an object (in pixels per second per second).","Compare the maximum speed of the object (in pixels per second).":"Compare the maximum speed of the object (in pixels per second).","the maximum speed":"the maximum speed","Change the maximum speed of an object (in pixels per second).":"Change the maximum speed of an object (in pixels per second).","Jump speed":"Jump speed","Compare the jump speed of the object (in pixels per second).":"Compare the jump speed of the object (in pixels per second).","the jump speed":"the jump speed","Change the jump speed of an object (in pixels per second).":"Change the jump speed of an object (in pixels per second).","Allow again jumping":"Allow again jumping","When this action is executed, the object is able to jump again, even if it is in the air: this can be useful to allow a double jump for example. This is not a permanent effect: you must call again this action everytime you want to allow the object to jump (apart if it's on the floor).":"When this action is executed, the object is able to jump again, even if it is in the air: this can be useful to allow a double jump for example. This is not a permanent effect: you must call again this action everytime you want to allow the object to jump (apart if it's on the floor).","Allow _PARAM0_ to jump again":"Allow _PARAM0_ to jump again","Simulate a press of the left key.":"Simulate a press of the left key.","Simulate a press of the right key.":"Simulate a press of the right key.","Simulate a press of the up key (used when on a ladder).":"Simulate a press of the up key (used when on a ladder).","Simulate a press of the down key (used when on a ladder).":"Simulate a press of the down key (used when on a ladder).","Simulate ladder key press":"Simulate ladder key press","Simulate a press of the ladder key (used to grab a ladder).":"Simulate a press of the ladder key (used to grab a ladder).","Simulate pressing Ladder key for _PARAM0_":"Simulate pressing Ladder key for _PARAM0_","Simulate jump key press":"Simulate jump key press","Simulate a press of the jump key.":"Simulate a press of the jump key.","Simulate pressing Jump key for _PARAM0_":"Simulate pressing Jump key for _PARAM0_","Simulate release key press":"Simulate release key press","Simulate a press of the release key (used when grabbing a platform ledge).":"Simulate a press of the release key (used when grabbing a platform ledge).","Simulate pressing Release key for _PARAM0_":"Simulate pressing Release key for _PARAM0_","Simulate a press of a key.\nValid keys are Left, Right, Jump, Ladder, Up, Down.":"Simulate a press of a key.\nValid keys are Left, Right, Jump, Ladder, Up, Down.","Get the gravity applied on the object":"Get the gravity applied on the object","Get the maximum falling speed":"Get the maximum falling speed","Platform":"\uD50C\uB7AB\uD3FC","Platform that Platformer characters can run on.":"Platform that Platformer characters can run on.","Change platform type":"Change platform type","Change the platform type of the object: Platform, Jump-Through, or Ladder.":"Change the platform type of the object: Platform, Jump-Through, or Ladder.","Set platform type of _PARAM0_ to _PARAM2_":"Set platform type of _PARAM0_ to _PARAM2_","Platforms":"Platforms","Platform type (\"Platform\", \"Jumpthru\" or \"Ladder\")":"Platform type (\"Platform\", \"Jumpthru\" or \"Ladder\")","Ladder":"Ladder","Jumpthru platform":"Jumpthru platform","Ledges can be grabbed":"Ledges can be grabbed","Grab offset on Y axis":"Grab offset on Y axis","Max. falling speed":"Max. falling speed","Slope max. angle":"Slope max. angle","Can grab platform ledges":"Can grab platform ledges","Grab tolerance on X axis":"Grab tolerance on X axis","Round coordinates":"Round coordinates","Primitive drawing":"Primitive drawing","This Extension allows you to draw shapes and manipulate images.":"This Extension allows you to draw shapes and manipulate images.","Shape painter":"Shape painter","Allows you to draw simple shapes on the screen":"Allows you to draw simple shapes on the screen","Rectangle":"Rectangle","Draw a rectangle on screen":"Draw a rectangle on screen","Draw from _PARAM1_;_PARAM2_ to _PARAM3_;_PARAM4_ a rectangle with _PARAM0_":"Draw from _PARAM1_;_PARAM2_ to _PARAM3_;_PARAM4_ a rectangle with _PARAM0_","Drawing":"Drawing","Shape Painter object":"Shape Painter object","Top left side: X position":"Top left side: X position","Top left side: Y position":"Top left side: Y position","Bottom right side: X position":"Bottom right side: X position","Bottom right side: Y position":"Bottom right side: Y position","Draw a circle on screen":"Draw a circle on screen","Draw at _PARAM1_;_PARAM2_ a circle of radius _PARAM3_ with _PARAM0_":"Draw at _PARAM1_;_PARAM2_ a circle of radius _PARAM3_ with _PARAM0_","X position of center":"X position of center","Y position of center":"Y position of center","Radius (in pixels)":"Radius (in pixels)","Draw a line on screen":"Draw a line on screen","Draw from _PARAM1_;_PARAM2_ to _PARAM3_;_PARAM4_ a line (thickness: _PARAM5_) with _PARAM0_":"Draw from _PARAM1_;_PARAM2_ to _PARAM3_;_PARAM4_ a line (thickness: _PARAM5_) with _PARAM0_","X position of start point":"X position of start point","Y position of start point":"Y position of start point","X position of end point":"X position of end point","Y position of end point":"Y position of end point","Thickness (in pixels)":"Thickness (in pixels)","Ellipse":"Ellipse","Draw an ellipse on screen":"Draw an ellipse on screen","Draw at _PARAM1_;_PARAM2_ an ellipse of width _PARAM3_ and height _PARAM4_ with _PARAM0_":"Draw at _PARAM1_;_PARAM2_ an ellipse of width _PARAM3_ and height _PARAM4_ with _PARAM0_","The width of the ellipse":"The width of the ellipse","The height of the ellipse":"The height of the ellipse","Rounded rectangle":"Rounded rectangle","Draw a rounded rectangle on screen":"Draw a rounded rectangle on screen","Draw from _PARAM1_;_PARAM2_ to _PARAM3_;_PARAM4_ a rounded rectangle (radius: _PARAM5_) with _PARAM0_":"Draw from _PARAM1_;_PARAM2_ to _PARAM3_;_PARAM4_ a rounded rectangle (radius: _PARAM5_) with _PARAM0_","Star":"Star","Draw a star on screen":"Draw a star on screen","Draw at _PARAM1_;_PARAM2_ a star with _PARAM3_ points and radius: _PARAM4_ (inner radius: _PARAM5_, rotation: _PARAM6_) with _PARAM0_":"Draw at _PARAM1_;_PARAM2_ a star with _PARAM3_ points and radius: _PARAM4_ (inner radius: _PARAM5_, rotation: _PARAM6_) with _PARAM0_","Number of points of the star (minimum: 2)":"Number of points of the star (minimum: 2)","Inner radius (in pixels, half radius by default)":"Inner radius (in pixels, half radius by default)","Rotation (in degrees)":"Rotation (in degrees)","Arc":"Arc","Draw an arc on screen. If \"Close path\" is set to yes, a line will be drawn between the start and end point of the arc, closing the shape.":"Draw an arc on screen. If \"Close path\" is set to yes, a line will be drawn between the start and end point of the arc, closing the shape.","Draw at _PARAM1_;_PARAM2_ an arc with radius: _PARAM3_, start angle: _PARAM4_, end angle: _PARAM5_ (anticlockwise: _PARAM6_, close path: _PARAM7_) with _PARAM0_":"Draw at _PARAM1_;_PARAM2_ an arc with radius: _PARAM3_, start angle: _PARAM4_, end angle: _PARAM5_ (anticlockwise: _PARAM6_, close path: _PARAM7_) with _PARAM0_","Start angle of the arc (in degrees)":"Start angle of the arc (in degrees)","End angle of the arc (in degrees)":"End angle of the arc (in degrees)","Anticlockwise":"Anticlockwise","Close path":"Close path","Bezier curve":"Bezier curve","Draw a bezier curve on screen":"Draw a bezier curve on screen","Draw from _PARAM1_;_PARAM2_ to _PARAM7_;_PARAM8_ a bezier curve (first control point: _PARAM3_;_PARAM4_, second control point: _PARAM5_;_PARAM6_) with _PARAM0_":"Draw from _PARAM1_;_PARAM2_ to _PARAM7_;_PARAM8_ a bezier curve (first control point: _PARAM3_;_PARAM4_, second control point: _PARAM5_;_PARAM6_) with _PARAM0_","First control point x":"First control point x","First control point y":"First control point y","Second Control point x":"Second Control point x","Second Control point y":"Second Control point y","Destination point x":"Destination point x","Destination point y":"Destination point y","Quadratic curve":"Quadratic curve","Draw a quadratic curve on screen":"Draw a quadratic curve on screen","Draw from _PARAM1_;_PARAM2_ to _PARAM5_;_PARAM6_ a quadratic curve (control point: _PARAM3_;_PARAM4_) with _PARAM0_":"Draw from _PARAM1_;_PARAM2_ to _PARAM5_;_PARAM6_ a quadratic curve (control point: _PARAM3_;_PARAM4_) with _PARAM0_","Control point x":"Control point x","Control point y":"Control point y","Begin fill path":"Begin fill path","Begin to draw a simple one-color fill. Subsequent actions, such as \"Path line\" (in the Advanced category) can be used to draw. Be sure to use \"End fill path\" action when you're done drawing the shape.":"Begin to draw a simple one-color fill. Subsequent actions, such as \"Path line\" (in the Advanced category) can be used to draw. Be sure to use \"End fill path\" action when you're done drawing the shape.","Begins drawing filling of an advanced path with _PARAM0_":"Begins drawing filling of an advanced path with _PARAM0_","Start drawing x":"Start drawing x","Start drawing y":"Start drawing y","End fill path":"End fill path","Finish the filling drawing in an advanced path":"Finish the filling drawing in an advanced path","Finish the filling drawing in an advanced path with _PARAM0_":"Finish the filling drawing in an advanced path with _PARAM0_","Move path drawing position":"Move path drawing position","Move the drawing position for the current path":"Move the drawing position for the current path","Move the drawing position of the path to _PARAM1_;_PARAM2_ with _PARAM0_":"Move the drawing position of the path to _PARAM1_;_PARAM2_ with _PARAM0_","Path line":"Path line","Add to a path a line to a position. The origin comes from the previous action or from \"Begin fill path\" or \"Move path drawing position\". By default, the start position will be the object's position.":"Add to a path a line to a position. The origin comes from the previous action or from \"Begin fill path\" or \"Move path drawing position\". By default, the start position will be the object's position.","Add to a path a line to the position _PARAM1_;_PARAM2_ with _PARAM0_":"Add to a path a line to the position _PARAM1_;_PARAM2_ with _PARAM0_","Path bezier curve":"Path bezier curve","Add to a path a bezier curve to a position. The origin comes from the previous action or from \"Begin fill path\" or \"Move path drawing position\". By default, the start position will be the object's position.":"Add to a path a bezier curve to a position. The origin comes from the previous action or from \"Begin fill path\" or \"Move path drawing position\". By default, the start position will be the object's position.","Add to a path a bezier curve to the position _PARAM5_;_PARAM6_ (first control point: _PARAM1_;_PARAM2_, second control point: _PARAM3_;_PARAM4_) with _PARAM0_":"Add to a path a bezier curve to the position _PARAM5_;_PARAM6_ (first control point: _PARAM1_;_PARAM2_, second control point: _PARAM3_;_PARAM4_) with _PARAM0_","Path arc":"Path arc","Add to a path an arc to a position. The origin comes from the previous action or from \"Begin fill path\" or \"Move path drawing position\". By default, the start position will be the object's position.":"Add to a path an arc to a position. The origin comes from the previous action or from \"Begin fill path\" or \"Move path drawing position\". By default, the start position will be the object's position.","Add to a path an arc at the position _PARAM1_;_PARAM2_ (radius: _PARAM3_, start angle: _PARAM4_, end angle: _PARAM5_, anticlockwise: _PARAM6_) with _PARAM0_":"Add to a path an arc at the position _PARAM1_;_PARAM2_ (radius: _PARAM3_, start angle: _PARAM4_, end angle: _PARAM5_, anticlockwise: _PARAM6_) with _PARAM0_","Center x of circle":"Center x of circle","Center y of circle":"Center y of circle","Start angle":"Start angle","End angle":"End angle","Path quadratic curve":"Path quadratic curve","Add to a path a quadratic curve to a position. The origin comes from the previous action or from \"Begin fill path\" or \"Move path drawing position\". By default, the start position will be the object's position.":"Add to a path a quadratic curve to a position. The origin comes from the previous action or from \"Begin fill path\" or \"Move path drawing position\". By default, the start position will be the object's position.","Add to a path a quadratic curve to the position _PARAM3_;_PARAM4_ (control point: _PARAM1_;_PARAM2_) with _PARAM0_":"Add to a path a quadratic curve to the position _PARAM3_;_PARAM4_ (control point: _PARAM1_;_PARAM2_) with _PARAM0_","Close Path":"Close Path","Close the path of the advanced shape. This closes the outline between the last and the first point.":"Close the path of the advanced shape. This closes the outline between the last and the first point.","Close the path with _PARAM0_":"Close the path with _PARAM0_","Change the color used when filling":"Change the color used when filling","Change fill color of _PARAM0_ to _PARAM1_":"Change fill color of _PARAM0_ to _PARAM1_","Modify the color of the outline of future drawings.":"Modify the color of the outline of future drawings.","Change outline color of _PARAM0_ to _PARAM1_":"Change outline color of _PARAM0_ to _PARAM1_","Outline size":"Outline size","Modify the size of the outline of future drawings.":"Modify the size of the outline of future drawings.","the size of the outline":"the size of the outline","Test the size of the outline.":"Test the size of the outline.","Fill opacity":"Fill opacity","Modify the opacity level used when filling future drawings.":"Modify the opacity level used when filling future drawings.","the opacity of filling":"the opacity of filling","Test the value of the opacity level used when filling.":"Test the value of the opacity level used when filling.","Outline opacity":"Outline opacity","Modify the opacity of the outline of future drawings.":"Modify the opacity of the outline of future drawings.","the opacity of the outline":"the opacity of the outline","Test the opacity of the outline.":"Test the opacity of the outline.","Copy an image on another":"Copy an image on another","Copy an image on another.\nNote that the source image must be preferably kept loaded in memory.":"Copy an image on another.\nNote that the source image must be preferably kept loaded in memory.","Copy the image _PARAM1_ on _PARAM0_ at _PARAM2_;_PARAM3_":"Copy the image _PARAM1_ on _PARAM0_ at _PARAM2_;_PARAM3_","Images":"\uC0AC\uC9C4","Name of the image to modify":"Name of the image to modify","Name of the source image":"Name of the source image","Should the copy take in account the source transparency?":"Should the copy take in account the source transparency?","Capture the screen":"Capture the screen","Capture the screen and save it into the specified folder and/or\nin the specified image.":"Capture the screen and save it into the specified folder and/or\nin the specified image.","Capture the screen ( Save it in file _PARAM1_ and/or in image _PARAM2_ )":"Capture the screen ( Save it in file _PARAM1_ and/or in image _PARAM2_ )","File where save capture":"File where save capture","Name of the image where capture must be saved":"Name of the image where capture must be saved","Create an image in memory":"Create an image in memory","Create an image in memory.":"Create an image in memory.","Create image _PARAM1_ in memory ( Width: _PARAM2_, Height: _PARAM3_, Color: _PARAM4_ )":"Create image _PARAM1_ in memory ( Width: _PARAM2_, Height: _PARAM3_, Color: _PARAM4_ )","Name of the image":"Name of the image","Open an image from a file":"Open an image from a file","Load in memory an image from a file.":"Load in memory an image from a file.","Load in memory file _PARAM1_ inside image _PARAM2_":"Load in memory file _PARAM1_ inside image _PARAM2_","Save an image to a file":"Save an image to a file","Save image _PARAM2_ to file _PARAM1_":"Save image _PARAM2_ to file _PARAM1_","Display a video on the scene.":"Display a video on the scene.","Video opacity (0-255)":"Video opacity (0-255)","Loop the video":"Loop the video","Video volume (0-100)":"Video volume (0-100)","Video":"Video","Displays a video.":"Displays a video.","Play a video":"Play a video","Play a video (recommended file format is MPEG4, with H264 video codec and AAC audio codec).":"Play a video (recommended file format is MPEG4, with H264 video codec and AAC audio codec).","Play the video of _PARAM0_":"Play the video of _PARAM0_","Video object":"Video object","Pause a video":"Pause a video","Pause the specified video.":"Pause the specified video.","Pause video _PARAM0_":"Pause video _PARAM0_","Loop a video":"Loop a video","Loop the specified video.":"Loop the specified video.","Loop video of _PARAM0_: _PARAM1_":"Loop video of _PARAM0_: _PARAM1_","Activate loop":"Activate loop","Mute a video":"Mute a video","Mute, or unmute, the specified video.":"Mute, or unmute, the specified video.","Mute video of _PARAM0_: _PARAM1_":"Mute video of _PARAM0_: _PARAM1_","Activate mute":"Activate mute","Set time":"Set time","Set the time of the video object in seconds":"Set the time of the video object in seconds","the time":"the time","Set volume":"Set volume","Set the volume of the video object, between 0 (muted) and 100 (maximum).":"Set the volume of the video object, between 0 (muted) and 100 (maximum).","the volume":"the volume","Get the volume":"Get the volume","Get the volume of a video object, between 0 (muted) and 100 (maximum).":"Get the volume of a video object, between 0 (muted) and 100 (maximum).","Is played":"Is played","Check if a video is played.":"Check if a video is played.","_PARAM0_ is played":"_PARAM0_ is played","Is paused":"Is paused","Check if the video is paused.":"Check if the video is paused.","_PARAM0_ is paused":"_PARAM0_ is paused","Is looped":"Is looped","Check if the video is looped.":"Check if the video is looped.","_PARAM0_ is looped":"_PARAM0_ is looped","Volume":"Volume","Compare the current volume of a video object.":"Compare the current volume of a video object.","Is muted":"Is muted","Check if a video is muted.":"Check if a video is muted.","_PARAM0_ is muted":"_PARAM0_ is muted","Get current time":"Get current time","Return the current time of a video object (in seconds).":"Return the current time of a video object (in seconds).","Get the duration":"Get the duration","Return the duration of a video object (in seconds).":"Return the duration of a video object (in seconds).","Duration":"Duration","Compare the duration of a video object":"Compare the duration of a video object","the duration (in seconds)":"the duration (in seconds)","Compare the current time of a video object":"Compare the current time of a video object","the current time (in seconds)":"the current time (in seconds)","Is ended":"Is ended","Check if a video is ended":"Check if a video is ended","_PARAM0_ is ended":"_PARAM0_ is ended","Set opacity":"Set opacity","Set opacity of the specified video object, between 0 (fully transparent) and 255 (opaque).":"Set opacity of the specified video object, between 0 (fully transparent) and 255 (opaque).","Compare the opacity of a video object":"Compare the opacity of a video object","Get current opacity":"Get current opacity","Return the opacity of a video object":"Return the opacity of a video object","Set playback speed":"Set playback speed","Set playback speed of the specified video object, (1 = the default speed, >1 = faster and <1 = slower).":"Set playback speed of the specified video object, (1 = the default speed, >1 = faster and <1 = slower).","the playback speed":"the playback speed","Playback speed ":"Playback speed ","Compare the playback speed of a video object":"Compare the playback speed of a video object","Get current playback speed":"Get current playback speed","Return the playback speed of a video object":"Return the playback speed of a video object","Screenshot":"Screenshot","Save screenshots of a running game.":"Save screenshots of a running game.","Take screenshot":"Take screenshot","Take a screenshot of the game, and save it to a png file (supported only when running on Windows/Linux/macOS).":"Take a screenshot of the game, and save it to a png file (supported only when running on Windows/Linux/macOS).","Take a screenshot and save at _PARAM1_":"Take a screenshot and save at _PARAM1_","Save path":"Save path","Device vibration":"Device vibration","Use the vibration of mobile devices.":"Use the vibration of mobile devices.","Vibrate":"Vibrate","Vibrate (Duration in ms).":"Vibrate (Duration in ms).","Start vibration for _PARAM0_ ms":"Start vibration for _PARAM0_ ms","Vibration":"Vibration","Vibrate by pattern":"Vibrate by pattern","Vibrate (Duration in ms). You can add multiple comma-separated values where every second value determines the period of silence between two vibrations. This is a string value so use quotes.":"Vibrate (Duration in ms). You can add multiple comma-separated values where every second value determines the period of silence between two vibrations. This is a string value so use quotes.","Intervals (for example \"500,100,200\"":"Intervals (for example \"500,100,200\"","Stop vibration":"Stop vibration","Stop the vibration":"Stop the vibration","Allow your game to send scores and interact with Facebook Instant Games":"Allow your game to send scores and interact with Facebook Instant Games","Save player data":"Save player data","Save the content of the given scene variable in the player data, stored on Facebook Instant Games servers":"Save the content of the given scene variable in the player data, stored on Facebook Instant Games servers","Save the content of _PARAM1_ in key _PARAM0_ of player data (store success message in _PARAM2_ or error in _PARAM3_)":"Save the content of _PARAM1_ in key _PARAM0_ of player data (store success message in _PARAM2_ or error in _PARAM3_)","Facebook Instant Games/Player data":"Facebook Instant Games/Player data","Variable where to store the success message (optional)":"Variable where to store the success message (optional)","Variable where to store the error message (optional, if an error occurs)":"Variable where to store the error message (optional, if an error occurs)","Load player data":"Load player data","Load the player data with the given key in a variable":"Load the player data with the given key in a variable","Load player data with key _PARAM0_ in _PARAM1_ (or error in _PARAM2_)":"Load player data with key _PARAM0_ in _PARAM1_ (or error in _PARAM2_)","Data key name (e.g: \"Lives\")":"Data key name (e.g: \"Lives\")","Variable where to store loaded data":"Variable where to store loaded data","Save player score":"Save player score","Save the score, and optionally the content of the given variable in the player score, for the given metadata.":"Save the score, and optionally the content of the given variable in the player score, for the given metadata.","In leaderboard _PARAM0_, save score _PARAM1_ for the player and extra data from _PARAM2_ (store success message in _PARAM3_ or error in _PARAM4_)":"In leaderboard _PARAM0_, save score _PARAM1_ for the player and extra data from _PARAM2_ (store success message in _PARAM3_ or error in _PARAM4_)","Facebook Instant Games/Leaderboards":"Facebook Instant Games/Leaderboards","Optional variable with metadata to save":"Optional variable with metadata to save","Load player entry":"Load player entry","Load the player entry in the given leaderboard":"Load the player entry in the given leaderboard","Load player entry from leaderboard _PARAM0_. Set rank in _PARAM1_, score in _PARAM2_ (extra data if any in _PARAM3_ and error in _PARAM4_)":"Load player entry from leaderboard _PARAM0_. Set rank in _PARAM1_, score in _PARAM2_ (extra data if any in _PARAM3_ and error in _PARAM4_)","Leaderboard name (e.g: \"PlayersBestTimes\")":"Leaderboard name (e.g: \"PlayersBestTimes\")","Variable where to store the player rank (of -1 if not ranked)":"Variable where to store the player rank (of -1 if not ranked)","Variable where to store the player score (of -1 if no score)":"Variable where to store the player score (of -1 if no score)","Variable where to store extra data (if any)":"Variable where to store extra data (if any)","Check if ads are supported":"Check if ads are supported","Check if showing ads is supported on this device (only mobile phones can show ads)":"Check if showing ads is supported on this device (only mobile phones can show ads)","Ads can be shown on this device":"Ads can be shown on this device","Facebook Instant Games/Ads":"Facebook Instant Games/Ads","Is the interstitial ad ready":"Is the interstitial ad ready","Check if the interstitial ad requested from Facebook is loaded and ready to be shown.":"Check if the interstitial ad requested from Facebook is loaded and ready to be shown.","The interstitial ad is loaded and ready to be shown":"The interstitial ad is loaded and ready to be shown","Load and prepare an interstitial ad":"Load and prepare an interstitial ad","Request and load an interstitial ad from Facebook, so that it is ready to be shown.":"Request and load an interstitial ad from Facebook, so that it is ready to be shown.","Request and load an interstitial ad from Facebook (ad placement id: _PARAM0_, error in _PARAM1_)":"Request and load an interstitial ad from Facebook (ad placement id: _PARAM0_, error in _PARAM1_)","The Ad Placement id (can be found while setting up the ad on Facebook)":"The Ad Placement id (can be found while setting up the ad on Facebook)","Show the loaded interstitial ad":"Show the loaded interstitial ad","Show the interstitial ad previously loaded in memory. This won't work if you did not load the interstitial before.":"Show the interstitial ad previously loaded in memory. This won't work if you did not load the interstitial before.","Show the interstitial ad previously loaded in memory (if any error, store it in _PARAM0_)":"Show the interstitial ad previously loaded in memory (if any error, store it in _PARAM0_)","Is the rewarded video ready":"Is the rewarded video ready","Check if the rewarded video requested from Facebook is loaded and ready to be shown.":"Check if the rewarded video requested from Facebook is loaded and ready to be shown.","The rewarded video is loaded and ready to be shown":"The rewarded video is loaded and ready to be shown","Load and prepare a rewarded video":"Load and prepare a rewarded video","Request and load a rewarded video from Facebook, so that it is ready to be shown.":"Request and load a rewarded video from Facebook, so that it is ready to be shown.","Request and load a rewarded video from Facebook (ad placement id: _PARAM0_, error in _PARAM1_)":"Request and load a rewarded video from Facebook (ad placement id: _PARAM0_, error in _PARAM1_)","Show the loaded rewarded video":"Show the loaded rewarded video","Show the rewarded video previously loaded in memory. This won't work if you did not load the video before.":"Show the rewarded video previously loaded in memory. This won't work if you did not load the video before.","Show the rewarded video previously loaded in memory (if any error, store it in _PARAM0_)":"Show the rewarded video previously loaded in memory (if any error, store it in _PARAM0_)","Player identifier":"Player identifier","Get the player unique identifier":"Get the player unique identifier","Player name":"Player name","Get the player name":"Get the player name","Tween animation":"Tween animation","Animate object properties via tweening.":"Animate object properties via tweening.","Tween":"Tween","Smoothly animate position, angle, scale and other properties of the object":"Smoothly animate position, angle, scale and other properties of the object","Add object variable tween":"Add object variable tween","Add a tween animation for an object variable.":"Add a tween animation for an object variable.","Tween the variable _PARAM3_ of _PARAM0_ from _PARAM4_ to _PARAM5_ with easing _PARAM6_ over _PARAM7_ms as _PARAM2_":"Tween the variable _PARAM3_ of _PARAM0_ from _PARAM4_ to _PARAM5_ with easing _PARAM6_ over _PARAM7_ms as _PARAM2_","Variables":"Variables","Tween Identifier":"Tween Identifier","From value":"From value","To value":"To value","Easing":"Easing","Destroy this object when tween finishes":"Destroy this object when tween finishes","Add object position tween":"Add object position tween","Add a tween animation for the object position.":"Add a tween animation for the object position.","Tween the position of _PARAM0_ to x: _PARAM3_, y: _PARAM4_ with easing _PARAM5_ over _PARAM6_ms as _PARAM2_":"Tween the position of _PARAM0_ to x: _PARAM3_, y: _PARAM4_ with easing _PARAM5_ over _PARAM6_ms as _PARAM2_","To X":"To X","To Y":"To Y","Add object position X tween":"Add object position X tween","Add a tween animation for the object X position.":"Add a tween animation for the object X position.","Tween the X position of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_":"Tween the X position of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_","Add object position Y tween":"Add object position Y tween","Add a tween animation for the object Y position.":"Add a tween animation for the object Y position.","Tween the Y position of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_":"Tween the Y position of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_","Add object angle tween":"Add object angle tween","Add a tween animation for the object angle.":"Add a tween animation for the object angle.","Tween the angle of _PARAM0_ to _PARAM3_\xB0 with easing _PARAM4_ over _PARAM5_ms as _PARAM2_":"Tween the angle of _PARAM0_ to _PARAM3_\xB0 with easing _PARAM4_ over _PARAM5_ms as _PARAM2_","To angle (in degrees)":"To angle (in degrees)","Add object scale tween":"Add object scale tween","Add a tween animation for the object scale (Note: the scale can never be less than 0).":"Add a tween animation for the object scale (Note: the scale can never be less than 0).","Tween the scale of _PARAM0_ to X-scale: _PARAM3_, Y-scale: _PARAM4_ with easing _PARAM5_ over _PARAM6_ms as _PARAM2_":"Tween the scale of _PARAM0_ to X-scale: _PARAM3_, Y-scale: _PARAM4_ with easing _PARAM5_ over _PARAM6_ms as _PARAM2_","To scale X":"To scale X","To scale Y":"To scale Y","Add object X-scale tween":"Add object X-scale tween","Add a tween animation for the object X-scale (Note: the scale can never be less than 0).":"Add a tween animation for the object X-scale (Note: the scale can never be less than 0).","Tween the X-scale of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_":"Tween the X-scale of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_","Add object Y-scale tween":"Add object Y-scale tween","Add a tween animation for the object Y-scale (Note: the scale can never be less than 0).":"Add a tween animation for the object Y-scale (Note: the scale can never be less than 0).","Tween the Y-scale of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_":"Tween the Y-scale of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_","Add text size tween":"Add text size tween","Add a tween animation for the text object character size (Note: the size can never be less than 1).":"Add a tween animation for the text object character size (Note: the size can never be less than 1).","Tween the character size of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_":"Tween the character size of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_","To character size":"To character size","Add object opacity tween":"Add object opacity tween","Add a tween animation for the object opacity (Value between 0 and 255).":"Add a tween animation for the object opacity (Value between 0 and 255).","Tween the opacity of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_":"Tween the opacity of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_","To opacity":"To opacity","Add object color tween":"Add object color tween","Add a tween animation for the object color. Format: \"128;200;255\" with values between 0 and 255 for red, green and blue":"Add a tween animation for the object color. Format: \"128;200;255\" with values between 0 and 255 for red, green and blue","Tween the color of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_":"Tween the color of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_","To color":"To color","Tween exists":"Tween exists","Check if the tween animation exists.":"Check if the tween animation exists.","Tween _PARAM2_ on _PARAM0_ exists":"Tween _PARAM2_ on _PARAM0_ exists","Tween is playing":"Tween is playing","Check if the tween animation is currently playing.":"Check if the tween animation is currently playing.","Tween _PARAM2_ on _PARAM0_ is playing":"Tween _PARAM2_ on _PARAM0_ is playing","Tween finished playing":"Tween finished playing","Check if the tween animation has finished playing.":"Check if the tween animation has finished playing.","Tween _PARAM2_ on _PARAM0_ has finished playing":"Tween _PARAM2_ on _PARAM0_ has finished playing","Pause a tween":"Pause a tween","Pause the running tween animation.":"Pause the running tween animation.","Pause the tween _PARAM2_ on _PARAM0_":"Pause the tween _PARAM2_ on _PARAM0_","Stop a tween":"Stop a tween","Stop the running tween animation.":"Stop the running tween animation.","Stop the tween _PARAM2_ on _PARAM0_":"Stop the tween _PARAM2_ on _PARAM0_","Jump to end":"Jump to end","Resume a tween":"Resume a tween","Resume the tween animation.":"Resume the tween animation.","Resume the tween _PARAM2_ on _PARAM0_":"Resume the tween _PARAM2_ on _PARAM0_","Remove a tween":"Remove a tween","Remove the tween animation from the object.":"Remove the tween animation from the object.","Remove the tween _PARAM2_ from _PARAM0_":"Remove the tween _PARAM2_ from _PARAM0_","Progress of a tween":"Progress of a tween","Progress of a tween (between 0.0 and 1.0)":"Progress of a tween (between 0.0 and 1.0)","BBCode Text Object":"BBCode Text Object","Displays a rich text label using BBCode markup (allowing to set parts of the text as bold, italic, use different colors and shadows).":"Displays a rich text label using BBCode markup (allowing to set parts of the text as bold, italic, use different colors and shadows).","BBCode text":"BBCode text","Base color":"Base color","Opacity (0-255)":"Opacity (0-255)","Base size":"Base size","Base alignment":"Base alignment","Base font family":"Base font family","Word wrapping":"Word wrapping","Visible on start":"Visible on start","BBText":"BBText","Compare the value of the BBCode text.":"Compare the value of the BBCode text.","the BBCode text":"the BBCode text","Set BBCode text":"Set BBCode text","Get BBCode text":"Get BBCode text","Set base color":"Set base color","Set base color of _PARAM0_ to _PARAM1_":"Set base color of _PARAM0_ to _PARAM1_","Compare the value of the base opacity of the text.":"Compare the value of the base opacity of the text.","the base opacity":"the base opacity","Set base opacity":"Set base opacity","Get the base opacity":"Get the base opacity","Font size":"Font size","Compare the base font size of the text.":"Compare the base font size of the text.","the base font size":"the base font size","Set base font size":"Set base font size","Get the base font size":"Get the base font size","Font family":"Font family","Compare the value of font family":"Compare the value of font family","the base font family":"the base font family","Set font family":"Set font family","Get the base font family":"Get the base font family","Check the current text alignment":"Check the current text alignment","The text alignment of _PARAM0_ is _PARAM1_":"The text alignment of _PARAM0_ is _PARAM1_","Change the alignment of the text.":"Change the alignment of the text.","Set text alignment of _PARAM0_ to _PARAM1_":"Set text alignment of _PARAM0_ to _PARAM1_","Get the text alignment":"Get the text alignment","Word wrap":"Word wrap","Check if word wrap is enabled":"Check if word wrap is enabled","Word wrap is enabled":"Word wrap is enabled","Set word wrap":"Set word wrap","Activate word wrap for _PARAM0_: _PARAM1_":"Activate word wrap for _PARAM0_: _PARAM1_","Compare the width, in pixels, after which the text is wrapped on next line.":"Compare the width, in pixels, after which the text is wrapped on next line.","Change the width, in pixels, after which the text is wrapped on next line.":"Change the width, in pixels, after which the text is wrapped on next line.","Get the wrapping width":"Get the wrapping width","Allow the game to display AdMob banner, interstitial and reward video ads":"Allow the game to display AdMob banner, interstitial and reward video ads","Banner loading":"Banner loading","Check if a banner is currently loading.":"Check if a banner is currently loading.","Banner is loading":"Banner is loading","Banner ready":"Banner ready","Check if a banner is ready to be displayed.":"Check if a banner is ready to be displayed.","Banner is ready":"Banner is ready","Banner showing":"Banner showing","Check if there is a banner being displayed.":"Check if there is a banner being displayed.","Banner is showing":"Banner is showing","Banner exists":"Banner exists","Check if there is a banner in memory (visible or hidden).":"Check if there is a banner in memory (visible or hidden).","Load banner":"Load banner","Start loading a banner, you can display it automatically when finish loading.\nIf test mode is set to true a test banner will be displayed.":"Start loading a banner, you can display it automatically when finish loading.\nIf test mode is set to true a test banner will be displayed.","Load banner (at top: _PARAM2_, overlap: _PARAM3_, show on load: _PARAM4_, test mode: _PARAM5_)":"Load banner (at top: _PARAM2_, overlap: _PARAM3_, show on load: _PARAM4_, test mode: _PARAM5_)","Android banner ID":"Android banner ID","iOS banner ID":"iOS banner ID","Display at top? (bottom otherwise)":"Display at top? (bottom otherwise)","Overlap webview?":"Overlap webview?","Display on load complete?":"Display on load complete?","Test mode?":"Test mode?","Show banner":"Show banner","Show the banner, will work only when the banner is fully loaded.":"Show the banner, will work only when the banner is fully loaded.","Hide banner":"Hide banner","Hide the banner. You can show it again with the corresponding action.":"Hide the banner. You can show it again with the corresponding action.","Remove banner":"Remove banner","Remove the banner. You have to load another banner to show it again.":"Remove the banner. You have to load another banner to show it again.","Interstitial loading":"Interstitial loading","Check if an interstitial is currently loading.":"Check if an interstitial is currently loading.","Interstitial is loading":"Interstitial is loading","Interstitial ready":"Interstitial ready","Check if an interstitial is ready to be displayed.":"Check if an interstitial is ready to be displayed.","Interstitial is ready":"Interstitial is ready","Interstitial showing":"Interstitial showing","Check if there is an interstitial being displayed.":"Check if there is an interstitial being displayed.","Interstitial is showing":"Interstitial is showing","Load interstitial":"Load interstitial","Start loading an interstitial, you can display it automatically when finish loading.\nIf test mode is set to true a test interstitial will be displayed.":"Start loading an interstitial, you can display it automatically when finish loading.\nIf test mode is set to true a test interstitial will be displayed.","Load interstitial (show on load: _PARAM2_, test mode: _PARAM3_)":"Load interstitial (show on load: _PARAM2_, test mode: _PARAM3_)","Android interstitial ID":"Android interstitial ID","iOS interstitial ID":"iOS interstitial ID","Show interstitial":"Show interstitial","Show the interstitial, will work only when the interstitial is fully loaded.":"Show the interstitial, will work only when the interstitial is fully loaded.","Video loading":"Video loading","Check if a reward video is currently loading.":"Check if a reward video is currently loading.","Reward video is loading":"Reward video is loading","Video ready":"Video ready","Check if a reward video is ready to be displayed.":"Check if a reward video is ready to be displayed.","Reward video is ready":"Reward video is ready","Video showing":"Video showing","Check if there is a reward video being displayed.":"Check if there is a reward video being displayed.","Reward video is showing":"Reward video is showing","Video reward":"Video reward","Check if there is a video reward.\nYou can mark it as non-claimed yet, so you can check this reward in other events.":"Check if there is a video reward.\nYou can mark it as non-claimed yet, so you can check this reward in other events.","Video reward given":"Video reward given","Mark as claimed":"Mark as claimed","Load video":"Load video","Start loading a reward video, you can display it automatically when finish loading.\nIf test mode is set to true a test video will be displayed.":"Start loading a reward video, you can display it automatically when finish loading.\nIf test mode is set to true a test video will be displayed.","Load reward video (show on load: _PARAM2_, test mode: _PARAM3_)":"Load reward video (show on load: _PARAM2_, test mode: _PARAM3_)","Android reward video ID":"Android reward video ID","iOS reward video ID":"iOS reward video ID","Show video":"Show video","Show the reward video, will work only when the video is fully loaded.":"Show the reward video, will work only when the video is fully loaded.","Show reward video":"Show reward video","Claim reward":"Claim reward","Mark the video reward as claimed.":"Mark the video reward as claimed.","Claim video reward":"Claim video reward","Filesystem":"Filesystem","Access the filesystem of the operating system.":"Access the filesystem of the operating system.","File or directory exists":"File or directory exists","Check if the file or directory exists.":"Check if the file or directory exists.","The path _PARAM0_ exists":"The path _PARAM0_ exists","Filesystem/Windows, Linux, MacOS":"Filesystem/Windows, Linux, MacOS","Path to file or directory":"Path to file or directory","Create a directory":"Create a directory","Create a new directory at the specified path.":"Create a new directory at the specified path.","Create directory _PARAM0_":"Create directory _PARAM0_","Directory":"Directory","(Optional) Variable to store the result. 'ok': task was successful, 'error': an error occured.":"(Optional) Variable to store the result. 'ok': task was successful, 'error': an error occured.","Save a text into a file":"Save a text into a file","Save a text into a file. Only use this on small files to avoid any lag or freeze during the the game execution.":"Save a text into a file. Only use this on small files to avoid any lag or freeze during the the game execution.","Save _PARAM0_ into file _PARAM1_":"Save _PARAM0_ into file _PARAM1_","Save a text into a file (Async)":"Save a text into a file (Async)","Save a text into a file asynchronously. Use this for large files to avoid any lag or freeze during game execution. The 'result' variable gets updated when the operation has finished.":"Save a text into a file asynchronously. Use this for large files to avoid any lag or freeze during game execution. The 'result' variable gets updated when the operation has finished.","Filesystem/Windows, Linux, MacOS/Asynchronous":"Filesystem/Windows, Linux, MacOS/Asynchronous","Save a scene variable into a JSON file":"Save a scene variable into a JSON file","Save a scene variable (including, for structure, all the children) into a file in JSON format. Only use this on small files to avoid any lag or freeze during the the game execution.":"Save a scene variable (including, for structure, all the children) into a file in JSON format. Only use this on small files to avoid any lag or freeze during the the game execution.","Save scene variable _PARAM0_ into file _PARAM1_ as JSON":"Save scene variable _PARAM0_ into file _PARAM1_ as JSON","Save a scene variable into a JSON file (Async)":"Save a scene variable into a JSON file (Async)","Save the scene variable (including, for structures, all the children) into a file in JSON format, asynchronously. Use this for large files to avoid any lag or freeze during game execution. The 'result' variable gets updated when the operation has finished.":"Save the scene variable (including, for structures, all the children) into a file in JSON format, asynchronously. Use this for large files to avoid any lag or freeze during game execution. The 'result' variable gets updated when the operation has finished.","Load a text from a file (Async)":"Load a text from a file (Async)","Load a text from a file, asynchronously. Use this for large files to avoid any lag or freeze during game execution. The content of the file will be available in the scene variable after a small delay (usually a few milliseconds). The 'result' variable gets updated when the operation has finished.":"Load a text from a file, asynchronously. Use this for large files to avoid any lag or freeze during game execution. The content of the file will be available in the scene variable after a small delay (usually a few milliseconds). The 'result' variable gets updated when the operation has finished.","Load text from _PARAM1_ into scene variable _PARAM0_ (Async)":"Load text from _PARAM1_ into scene variable _PARAM0_ (Async)","Load path":"Load path","Load a text from a file":"Load a text from a file","Load a text from a file. Only use this on small files to avoid any lag or freeze during the the game execution.":"Load a text from a file. Only use this on small files to avoid any lag or freeze during the the game execution.","Load text from _PARAM1_ into scene variable _PARAM0_":"Load text from _PARAM1_ into scene variable _PARAM0_","Load a scene variable from a JSON file":"Load a scene variable from a JSON file","Load a JSON formatted text from a file and convert it to a scene variable (potentially a structure variable with children). Only use this on small files to avoid any lag or freeze during the the game execution.":"Load a JSON formatted text from a file and convert it to a scene variable (potentially a structure variable with children). Only use this on small files to avoid any lag or freeze during the the game execution.","Load JSON from _PARAM1_ into scene variable _PARAM0_":"Load JSON from _PARAM1_ into scene variable _PARAM0_","Load a scene variable from a JSON file (Async)":"Load a scene variable from a JSON file (Async)","Load a JSON formatted text from a file and convert it to a scene variable (potentially a structure variable with children), asynchronously. Use this for large files to avoid any lag or freeze during game execution. The content of the file will be available as a scene variable after a small delay (usually a few milliseconds). The 'result' variable gets updated when the operation has finished.":"Load a JSON formatted text from a file and convert it to a scene variable (potentially a structure variable with children), asynchronously. Use this for large files to avoid any lag or freeze during game execution. The content of the file will be available as a scene variable after a small delay (usually a few milliseconds). The 'result' variable gets updated when the operation has finished.","Delete a file":"Delete a file","Delete a file from the filesystem.":"Delete a file from the filesystem.","Delete the file _PARAM0_":"Delete the file _PARAM0_","File path":"File path","Delete a file (Async)":"Delete a file (Async)","Delete a file from the filesystem asynchronously. The option result variable will be updated once the file is deleted.":"Delete a file from the filesystem asynchronously. The option result variable will be updated once the file is deleted.","Desktop folder":"Desktop folder","Get the path to the desktop folder.":"Get the path to the desktop folder.","Documents folder":"Documents folder","Get the path to the documents folder.":"Get the path to the documents folder.","Pictures folder":"Pictures folder","Get the path to the pictures folder.":"Get the path to the pictures folder.","This games executable folder":"This games executable folder","Get the path to this games executable folder.":"Get the path to this games executable folder.","Userdata folder (For application settings)":"Userdata folder (For application settings)","Get the path to userdata folder. (For application settings)":"Get the path to userdata folder. (For application settings)","Temp folder":"Temp folder","Get the path to temp folder.":"Get the path to temp folder.","Path delimiter":"Path delimiter","Get the operating system agnostic path delimiter.":"Get the operating system agnostic path delimiter.","Physics Engine 2.0":"Physics Engine 2.0","Simulate realistic object physics, with gravity, forces, joints, etc.":"Simulate realistic object physics, with gravity, forces, joints, etc.","Gravity X":"Gravity X","Test the world gravity on X.":"Test the world gravity on X.","the gravity on X":"the gravity on X","Global":"Global","Gravity Y":"Gravity Y","Test the world gravity on Y.":"Test the world gravity on Y.","the gravity on Y":"the gravity on Y","Modify the world gravity.":"Modify the world gravity.","Set the gravity to _PARAM2_;_PARAM3_":"Set the gravity to _PARAM2_;_PARAM3_","Test the world time scale.":"Test the world time scale.","the time scale":"the time scale","Modify the world time scale.":"Modify the world time scale.","Set the world time scale to _PARAM2_":"Set the world time scale to _PARAM2_","Is dynamic":"Is dynamic","Test if an object is dynamic.":"Test if an object is dynamic.","Dynamics":"Dynamics","Set as dynamic":"Set as dynamic","Set an object as dynamic. Is affected by gravity, forces and velocities.":"Set an object as dynamic. Is affected by gravity, forces and velocities.","Set _PARAM0_ as dynamic":"Set _PARAM0_ as dynamic","Is static":"Is static","Test if an object is static.":"Test if an object is static.","_PARAM0_ is static":"_PARAM0_ is static","Set as static":"Set as static","Set an object as static. Is not affected by gravity, and can't be moved by forces or velocities at all.":"Set an object as static. Is not affected by gravity, and can't be moved by forces or velocities at all.","Set _PARAM0_ as static":"Set _PARAM0_ as static","Is kinematic":"Is kinematic","Test if an object is kinematic.":"Test if an object is kinematic.","_PARAM0_ is kinematic":"_PARAM0_ is kinematic","Set as kinematic":"Set as kinematic","Set an object as kinematic. Is like a static body but can be moved through its velocity.":"Set an object as kinematic. Is like a static body but can be moved through its velocity.","Set _PARAM0_ as kinematic":"Set _PARAM0_ as kinematic","Is treat as bullet":"Is treat as bullet","Test if an object is being treat as a bullet.":"Test if an object is being treat as a bullet.","_PARAM0_ is bullet":"_PARAM0_ is bullet","Treat as bullet":"Treat as bullet","Treat the object as a bullet. Better collision handling on high speeds at cost of some performance.":"Treat the object as a bullet. Better collision handling on high speeds at cost of some performance.","Treat _PARAM0_ as bullet: _PARAM2_":"Treat _PARAM0_ as bullet: _PARAM2_","Treat as bullet?":"Treat as bullet?","Has fixed rotation":"Has fixed rotation","Test if an object has fixed rotation.":"Test if an object has fixed rotation.","_PARAM0_ has fixed rotation":"_PARAM0_ has fixed rotation","Enable or disable an object fixed rotation. If enabled the object won't be able to rotate.":"Enable or disable an object fixed rotation. If enabled the object won't be able to rotate.","Set _PARAM0_ fixed rotation: _PARAM2_":"Set _PARAM0_ fixed rotation: _PARAM2_","Fixed rotation?":"Fixed rotation?","Is sleeping allowed":"Is sleeping allowed","Test if an object can sleep.":"Test if an object can sleep.","_PARAM0_ can sleep":"_PARAM0_ can sleep","Sleeping allowed":"Sleeping allowed","Allow or not an object to sleep. If enabled the object will be able to sleep, improving performance for non-currently-moving objects.":"Allow or not an object to sleep. If enabled the object will be able to sleep, improving performance for non-currently-moving objects.","Allow _PARAM0_ to sleep: _PARAM2_":"Allow _PARAM0_ to sleep: _PARAM2_","Can sleep?":"Can sleep?","Is sleeping":"Is sleeping","Test if an object is sleeping.":"Test if an object is sleeping.","_PARAM0_ is sleeping":"_PARAM0_ is sleeping","Shape scale":"Shape scale","Modify an object shape scale. It affects custom shape dimensions and shape offset, if custom dimensions are not set the body will be scaled automatically to the object size.":"Modify an object shape scale. It affects custom shape dimensions and shape offset, if custom dimensions are not set the body will be scaled automatically to the object size.","the shape scale":"the shape scale","Body settings":"Body settings","Density":"Density","Test an object density.":"Test an object density.","the _PARAM0_ density":"the _PARAM0_ density","Modify an object density. The body's density and volume determine its mass.":"Modify an object density. The body's density and volume determine its mass.","the density":"the density","Density of the object":"Density of the object","Get the density of an object.":"Get the density of an object.","Test an object friction.":"Test an object friction.","the _PARAM0_ friction":"the _PARAM0_ friction","Modify an object friction. How much energy is lost from the movement of one object over another. The combined friction from two bodies is calculated as 'sqrt(bodyA.friction * bodyB.friction)'.":"Modify an object friction. How much energy is lost from the movement of one object over another. The combined friction from two bodies is calculated as 'sqrt(bodyA.friction * bodyB.friction)'.","the friction":"the friction","Friction of the object":"Friction of the object","Get the friction of an object.":"Get the friction of an object.","Restitution":"Restitution","Test an object restitution.":"Test an object restitution.","the _PARAM0_ restitution":"the _PARAM0_ restitution","Modify an object restitution. Energy conservation on collision. The combined restitution from two bodies is calculated as 'max(bodyA.restitution, bodyB.restitution)'.":"Modify an object restitution. Energy conservation on collision. The combined restitution from two bodies is calculated as 'max(bodyA.restitution, bodyB.restitution)'.","the restitution":"the restitution","Restitution of the object":"Restitution of the object","Get the restitution of an object.":"Get the restitution of an object.","Test an object linear damping.":"Test an object linear damping.","the _PARAM0_ linear damping":"the _PARAM0_ linear damping","Modify an object linear damping. How much movement speed is lost across the time.":"Modify an object linear damping. How much movement speed is lost across the time.","Linear damping of the object":"Linear damping of the object","Get the linear damping of an object.":"Get the linear damping of an object.","Test an object angular damping.":"Test an object angular damping.","the _PARAM0_ angular damping":"the _PARAM0_ angular damping","Modify an object angular damping. How much angular speed is lost across the time.":"Modify an object angular damping. How much angular speed is lost across the time.","Angular damping of the object":"Angular damping of the object","Get the angular damping of an object.":"Get the angular damping of an object.","Gravity scale":"Gravity scale","Test an object gravity scale.":"Test an object gravity scale.","the _PARAM0_ gravity scale":"the _PARAM0_ gravity scale","Modify an object gravity scale. The gravity applied to an object is the world gravity multiplied by the object gravity scale.":"Modify an object gravity scale. The gravity applied to an object is the world gravity multiplied by the object gravity scale.","the gravity scale":"the gravity scale","Gravity scale of the object":"Gravity scale of the object","Get the gravity scale of an object.":"Get the gravity scale of an object.","Layer enabled":"Layer enabled","Test if an object has a specific layer enabled.":"Test if an object has a specific layer enabled.","_PARAM0_ has layer _PARAM2_ enabled":"_PARAM0_ has layer _PARAM2_ enabled","Filtering":"Filtering","Layer (1 - 16)":"Layer (1 - 16)","Enable layer":"Enable layer","Enable or disable a layer for an object. Two objects collide if any layer of the first object matches any mask of the second one and vice versa.":"Enable or disable a layer for an object. Two objects collide if any layer of the first object matches any mask of the second one and vice versa.","Enable layer _PARAM2_ for _PARAM0_: _PARAM3_":"Enable layer _PARAM2_ for _PARAM0_: _PARAM3_","Enable?":"Enable?","Mask enabled":"Mask enabled","Test if an object has a specific mask enabled.":"Test if an object has a specific mask enabled.","_PARAM0_ has mask _PARAM2_ enabled":"_PARAM0_ has mask _PARAM2_ enabled","Mask (1 - 16)":"Mask (1 - 16)","Enable mask":"Enable mask","Enable or disable a mask for an object. Two objects collide if any layer of the first object matches any mask of the second one and vice versa.":"Enable or disable a mask for an object. Two objects collide if any layer of the first object matches any mask of the second one and vice versa.","Enable mask _PARAM2_ for _PARAM0_: _PARAM3_":"Enable mask _PARAM2_ for _PARAM0_: _PARAM3_","Linear velocity X":"Linear velocity X","Test an object linear velocity on X.":"Test an object linear velocity on X.","the linear velocity on X":"the linear velocity on X","Velocity":"Velocity","Modify an object linear velocity on X.":"Modify an object linear velocity on X.","Linear velocity on X axis":"Linear velocity on X axis","Get the linear velocity of an object on X axis.":"Get the linear velocity of an object on X axis.","Linear velocity Y":"Linear velocity Y","Test an object linear velocity on Y.":"Test an object linear velocity on Y.","the linear velocity on Y":"the linear velocity on Y","Modify an object linear velocity on Y.":"Modify an object linear velocity on Y.","Linear velocity on Y axis":"Linear velocity on Y axis","Get the linear velocity of an object on Y axis.":"Get the linear velocity of an object on Y axis.","Test an object linear velocity length.":"Test an object linear velocity length.","the linear velocity length":"the linear velocity length","Get the linear velocity of an object.":"Get the linear velocity of an object.","Angular velocity":"Angular velocity","Test an object angular velocity.":"Test an object angular velocity.","the angular velocity":"the angular velocity","Modify an object angular velocity.":"Modify an object angular velocity.","Get the angular velocity of an object.":"Get the angular velocity of an object.","Apply force":"Apply force","Apply a force to the object. You've to specify the applying point (you can get the body mass center through expressions).":"Apply a force to the object. You've to specify the applying point (you can get the body mass center through expressions).","Apply to _PARAM0_ a force of _PARAM2_;_PARAM3_":"Apply to _PARAM0_ a force of _PARAM2_;_PARAM3_","Forces & impulses":"Forces & impulses","X component (N)":"X component (N)","Y component (N)":"Y component (N)","Applying X position":"Applying X position","Applying Y position":"Applying Y position","Apply polar force":"Apply polar force","Apply a force to the object using polar coordinates. You've to specify the applying point (you can get the body mass center through expressions).":"Apply a force to the object using polar coordinates. You've to specify the applying point (you can get the body mass center through expressions).","Apply to _PARAM0_ a force of angle _PARAM2_ and length _PARAM3_":"Apply to _PARAM0_ a force of angle _PARAM2_ and length _PARAM3_","Length (N)":"Length (N)","Apply force toward position":"Apply force toward position","Apply a force to the object to move it toward a position. You've to specify the applying point (you can get the body mass center through expressions).":"Apply a force to the object to move it toward a position. You've to specify the applying point (you can get the body mass center through expressions).","Apply to _PARAM0_ a force of length _PARAM2_ towards _PARAM3_;_PARAM4_":"Apply to _PARAM0_ a force of length _PARAM2_ towards _PARAM3_;_PARAM4_","Apply impulse":"Apply impulse","Apply an impulse to the object. You've to specify the applying point (you can get the body mass center through expressions).":"Apply an impulse to the object. You've to specify the applying point (you can get the body mass center through expressions).","Apply to _PARAM0_ an impulse of _PARAM2_;_PARAM3_":"Apply to _PARAM0_ an impulse of _PARAM2_;_PARAM3_","X component (N.m)":"X component (N.m)","Y component (N.m)":"Y component (N.m)","Apply polar impulse":"Apply polar impulse","Apply an impulse to the object using polar coordinates. You've to specify the applying point (you can get the body mass center through expressions).":"Apply an impulse to the object using polar coordinates. You've to specify the applying point (you can get the body mass center through expressions).","Apply to _PARAM0_ an impulse of angle _PARAM2_ and length _PARAM3_ (applied at _PARAM4_;_PARAM5_)":"Apply to _PARAM0_ an impulse of angle _PARAM2_ and length _PARAM3_ (applied at _PARAM4_;_PARAM5_)","Length (N.m)":"Length (N.m)","Apply impulse toward position":"Apply impulse toward position","Apply an impulse to the object to move it toward a position. You've to specify the applying point (you can get the body mass center through expressions).":"Apply an impulse to the object to move it toward a position. You've to specify the applying point (you can get the body mass center through expressions).","Apply to _PARAM0_ an impulse of length _PARAM2_ towards _PARAM3_;_PARAM4_ (applied at _PARAM5_;_PARAM6_)":"Apply to _PARAM0_ an impulse of length _PARAM2_ towards _PARAM3_;_PARAM4_ (applied at _PARAM5_;_PARAM6_)","Apply torque":"Apply torque","Apply a torque to the object.":"Apply a torque to the object.","Apply to _PARAM0_ a torque of _PARAM2_":"Apply to _PARAM0_ a torque of _PARAM2_","Torque (N.m)":"Torque (N.m)","Apply angular impulse":"Apply angular impulse","Apply an angular impulse to the object.":"Apply an angular impulse to the object.","Apply to _PARAM0_ an angular impulse of _PARAM2_":"Apply to _PARAM0_ an angular impulse of _PARAM2_","Angular impulse (N.m.s":"Angular impulse (N.m.s","Mass center X":"Mass center X","Mass center Y":"Mass center Y","Joint first object":"Joint first object","Test if an object is the first object on a joint.":"Test if an object is the first object on a joint.","_PARAM0_ is the first object for joint _PARAM2_":"_PARAM0_ is the first object for joint _PARAM2_","Joint ID":"Joint ID","Joint second object":"Joint second object","Test if an object is the second object on a joint.":"Test if an object is the second object on a joint.","_PARAM0_ is the second object for joint _PARAM2_":"_PARAM0_ is the second object for joint _PARAM2_","Joint first anchor X":"Joint first anchor X","Joint first anchor Y":"Joint first anchor Y","Joint second anchor X":"Joint second anchor X","Joint second anchor Y":"Joint second anchor Y","Joint reaction force":"Joint reaction force","Test a joint reaction force.":"Test a joint reaction force.","the joint _PARAM2_ reaction force":"the joint _PARAM2_ reaction force","Joint reaction torque":"Joint reaction torque","Test a joint reaction torque.":"Test a joint reaction torque.","the joint _PARAM2_ reaction torque":"the joint _PARAM2_ reaction torque","Remove joint":"Remove joint","Remove a joint from the scene.":"Remove a joint from the scene.","Remove joint _PARAM2_":"Remove joint _PARAM2_","Add distance joint":"Add distance joint","Add a distance joint between two objects. The length is converted to meters using the world scale on X. The frequency and damping ratio are related to the joint speed of oscillation and how fast it stops.":"Add a distance joint between two objects. The length is converted to meters using the world scale on X. The frequency and damping ratio are related to the joint speed of oscillation and how fast it stops.","Add a distance joint between _PARAM0_ and _PARAM4_":"Add a distance joint between _PARAM0_ and _PARAM4_","Joints/Distance":"Joints/Distance","First object":"First object","Anchor X on first body":"Anchor X on first body","Anchor Y on first body":"Anchor Y on first body","Second object":"Second object","Anchor X on second body":"Anchor X on second body","Anchor Y on second body":"Anchor Y on second body","Length (-1 to use current objects distance) (default: -1)":"Length (-1 to use current objects distance) (default: -1)","Frequency (Hz) (non-negative) (default: 0)":"Frequency (Hz) (non-negative) (default: 0)","Damping ratio (non-negative) (default: 1)":"Damping ratio (non-negative) (default: 1)","Allow collision between connected bodies? (default: no)":"Allow collision between connected bodies? (default: no)","Variable where to store the joint ID (default: none)":"Variable where to store the joint ID (default: none)","Distance joint length":"Distance joint length","Modify a distance joint length.":"Modify a distance joint length.","the length for distance joint _PARAM2_":"the length for distance joint _PARAM2_","Distance joint frequency":"Distance joint frequency","Modify a distance joint frequency.":"Modify a distance joint frequency.","the frequency for distance joint _PARAM2_":"the frequency for distance joint _PARAM2_","Distance joint damping ratio":"Distance joint damping ratio","Modify a distance joint damping ratio.":"Modify a distance joint damping ratio.","the damping ratio for distance joint _PARAM2_":"the damping ratio for distance joint _PARAM2_","Add revolute joint":"Add revolute joint","Add a revolute joint to an object at a fixed point. The object is attached as the second object in the joint, so you can use this for gear joints.":"Add a revolute joint to an object at a fixed point. The object is attached as the second object in the joint, so you can use this for gear joints.","Add a revolute joint to _PARAM0_ at _PARAM2_;_PARAM3_":"Add a revolute joint to _PARAM0_ at _PARAM2_;_PARAM3_","Joints/Revolute":"Joints/Revolute","X anchor":"X anchor","Y anchor":"Y anchor","Enable angle limits? (default: no)":"Enable angle limits? (default: no)","Reference angle (default: 0)":"Reference angle (default: 0)","Minimum angle (default: 0)":"Minimum angle (default: 0)","Maximum angle (default: 0)":"Maximum angle (default: 0)","Enable motor? (default: no)":"Enable motor? (default: no)","Motor speed (default: 0)":"Motor speed (default: 0)","Motor maximum torque (default: 0)":"Motor maximum torque (default: 0)","Add revolute joint between two bodies":"Add revolute joint between two bodies","Add a revolute joint between two objects. The reference angle determines what is considered as the base angle at the initial state.":"Add a revolute joint between two objects. The reference angle determines what is considered as the base angle at the initial state.","Add a revolute joint between _PARAM0_ and _PARAM4_":"Add a revolute joint between _PARAM0_ and _PARAM4_","Revolute joint reference angle":"Revolute joint reference angle","Revolute joint current angle":"Revolute joint current angle","Revolute joint angular speed":"Revolute joint angular speed","Revolute joint limits enabled":"Revolute joint limits enabled","Test if a revolute joint limits are enabled.":"Test if a revolute joint limits are enabled.","Limits for revolute joint _PARAM2_ are enabled":"Limits for revolute joint _PARAM2_ are enabled","Enable revolute joint limits":"Enable revolute joint limits","Enable or disable a revolute joint angle limits.":"Enable or disable a revolute joint angle limits.","Enable limits for revolute joint _PARAM2_: _PARAM3_":"Enable limits for revolute joint _PARAM2_: _PARAM3_","Revolute joint limits":"Revolute joint limits","Modify a revolute joint angle limits.":"Modify a revolute joint angle limits.","Set the limits to _PARAM3_;_PARAM4_ for revolute joint _PARAM2_":"Set the limits to _PARAM3_;_PARAM4_ for revolute joint _PARAM2_","Minimum angle":"Minimum angle","Maximum angle":"Maximum angle","Revolute joint minimum angle":"Revolute joint minimum angle","Revolute joint maximum angle":"Revolute joint maximum angle","Revolute joint motor enabled":"Revolute joint motor enabled","Test if a revolute joint motor is enabled.":"Test if a revolute joint motor is enabled.","Motor of revolute joint _PARAM2_ is enabled":"Motor of revolute joint _PARAM2_ is enabled","Enable revolute joint motor":"Enable revolute joint motor","Enable or disable a revolute joint motor.":"Enable or disable a revolute joint motor.","Enable motor for revolute joint _PARAM2_: _PARAM3_":"Enable motor for revolute joint _PARAM2_: _PARAM3_","Revolute joint motor speed":"Revolute joint motor speed","Modify a revolute joint motor speed.":"Modify a revolute joint motor speed.","the motor speed for revolute joint _PARAM2_":"the motor speed for revolute joint _PARAM2_","Revolute joint max motor torque":"Revolute joint max motor torque","Modify a revolute joint maximum motor torque.":"Modify a revolute joint maximum motor torque.","the maximum motor torque for revolute joint _PARAM2_":"the maximum motor torque for revolute joint _PARAM2_","Revolute joint maximum motor torque":"Revolute joint maximum motor torque","Revolute joint motor torque":"Revolute joint motor torque","Add prismatic joint":"Add prismatic joint","Add a prismatic joint between two objects. The translation limits are converted to meters using the world scale on X.":"Add a prismatic joint between two objects. The translation limits are converted to meters using the world scale on X.","Add a prismatic joint between _PARAM0_ and _PARAM4_":"Add a prismatic joint between _PARAM0_ and _PARAM4_","Joints/Prismatic":"Joints/Prismatic","Axis angle":"Axis angle","Enable limits? (default: no)":"Enable limits? (default: no)","Minimum translation (default: 0)":"Minimum translation (default: 0)","Maximum translation (default: 0)":"Maximum translation (default: 0)","Motor maximum force (default: 0)":"Motor maximum force (default: 0)","Prismatic joint axis angle":"Prismatic joint axis angle","Prismatic joint reference angle":"Prismatic joint reference angle","Prismatic joint current translation":"Prismatic joint current translation","Prismatic joint current speed":"Prismatic joint current speed","Prismatic joint speed":"Prismatic joint speed","Prismatic joint limits enabled":"Prismatic joint limits enabled","Test if a prismatic joint limits are enabled.":"Test if a prismatic joint limits are enabled.","Limits for prismatic joint _PARAM2_ are enabled":"Limits for prismatic joint _PARAM2_ are enabled","Enable prismatic joint limits":"Enable prismatic joint limits","Enable or disable a prismatic joint limits.":"Enable or disable a prismatic joint limits.","Enable limits for prismatic joint _PARAM2_: _PARAM3_":"Enable limits for prismatic joint _PARAM2_: _PARAM3_","Prismatic joint limits":"Prismatic joint limits","Modify a prismatic joint limits.":"Modify a prismatic joint limits.","Set the limits to _PARAM3_;_PARAM4_ for prismatic joint _PARAM2_":"Set the limits to _PARAM3_;_PARAM4_ for prismatic joint _PARAM2_","Minimum translation":"Minimum translation","Maximum translation":"Maximum translation","Prismatic joint minimum translation":"Prismatic joint minimum translation","Prismatic joint maximum translation":"Prismatic joint maximum translation","Prismatic joint motor enabled":"Prismatic joint motor enabled","Test if a prismatic joint motor is enabled.":"Test if a prismatic joint motor is enabled.","Motor for prismatic joint _PARAM2_ is enabled":"Motor for prismatic joint _PARAM2_ is enabled","Enable prismatic joint motor":"Enable prismatic joint motor","Enable or disable a prismatic joint motor.":"Enable or disable a prismatic joint motor.","Enable motor for prismatic joint _PARAM2_: _PARAM3_":"Enable motor for prismatic joint _PARAM2_: _PARAM3_","Prismatic joint motor speed":"Prismatic joint motor speed","Modify a prismatic joint motor speed.":"Modify a prismatic joint motor speed.","the motor force for prismatic joint _PARAM2_":"the motor force for prismatic joint _PARAM2_","Prismatic joint max motor force":"Prismatic joint max motor force","Modify a prismatic joint maximum motor force.":"Modify a prismatic joint maximum motor force.","the maximum motor force for prismatic joint _PARAM2_":"the maximum motor force for prismatic joint _PARAM2_","Prismatic joint maximum motor force":"Prismatic joint maximum motor force","Prismatic joint motor force":"Prismatic joint motor force","Add pulley joint":"Add pulley joint","Add a pulley joint between two objects. Lengths are converted to meters using the world scale on X.":"Add a pulley joint between two objects. Lengths are converted to meters using the world scale on X.","Add a pulley joint between _PARAM0_ and _PARAM4_":"Add a pulley joint between _PARAM0_ and _PARAM4_","Joints/Pulley":"Joints/Pulley","Ground anchor X for first object":"Ground anchor X for first object","Ground anchor Y for first object":"Ground anchor Y for first object","Ground anchor X for second object":"Ground anchor X for second object","Ground anchor Y for second object":"Ground anchor Y for second object","Length for first object (-1 to use anchor positions) (default: -1)":"Length for first object (-1 to use anchor positions) (default: -1)","Length for second object (-1 to use anchor positions) (default: -1)":"Length for second object (-1 to use anchor positions) (default: -1)","Ratio (non-negative) (default: 1":"Ratio (non-negative) (default: 1","Pulley joint first ground anchor X":"Pulley joint first ground anchor X","Pulley joint first ground anchor Y":"Pulley joint first ground anchor Y","Pulley joint second ground anchor X":"Pulley joint second ground anchor X","Pulley joint second ground anchor Y":"Pulley joint second ground anchor Y","Pulley joint first length":"Pulley joint first length","Pulley joint second length":"Pulley joint second length","Pulley joint ratio":"Pulley joint ratio","Add gear joint":"Add gear joint","Add a gear joint between two joints. Attention: Gear joints require the joints to be revolute or prismatic, and both of them to be attached to a static body as first object.":"Add a gear joint between two joints. Attention: Gear joints require the joints to be revolute or prismatic, and both of them to be attached to a static body as first object.","Add a gear joint between joints _PARAM2_ and _PARAM3_":"Add a gear joint between joints _PARAM2_ and _PARAM3_","Joints/Gear":"Joints/Gear","First joint ID":"First joint ID","Second joint ID":"Second joint ID","Ratio (non-zero) (default: 1)":"Ratio (non-zero) (default: 1)","Gear joint first joint":"Gear joint first joint","Gear joint second joint":"Gear joint second joint","Gear joint ratio":"Gear joint ratio","Modify a Gear joint ratio.":"Modify a Gear joint ratio.","the ratio for gear joint _PARAM2_":"the ratio for gear joint _PARAM2_","Add mouse joint":"Add mouse joint","Add a mouse joint between two joints.":"Add a mouse joint between two joints.","Add a mouse joint to _PARAM0_":"Add a mouse joint to _PARAM0_","Joints/Mouse":"Joints/Mouse","Target X":"Target X","Target Y":"Target Y","Maximum force (N) (non-negative) (default: 500)":"Maximum force (N) (non-negative) (default: 500)","Frequency (Hz) (positive) (default: 10)":"Frequency (Hz) (positive) (default: 10)","Mouse joint target":"Mouse joint target","Set a mouse joint target.":"Set a mouse joint target.","Set the target position of mouse joint _PARAM2_ of _PARAM0_ to _PARAM3_;_PARAM4_":"Set the target position of mouse joint _PARAM2_ of _PARAM0_ to _PARAM3_;_PARAM4_","Mouse joint target X":"Mouse joint target X","Mouse joint target Y":"Mouse joint target Y","Mouse joint max force":"Mouse joint max force","Set a mouse joint maximum force.":"Set a mouse joint maximum force.","the maximum force for mouse joint _PARAM2_":"the maximum force for mouse joint _PARAM2_","Mouse joint maximum force":"Mouse joint maximum force","Mouse joint frequency":"Mouse joint frequency","Set a mouse joint frequency.":"Set a mouse joint frequency.","the frequency for mouse joint _PARAM2_":"the frequency for mouse joint _PARAM2_","Mouse joint damping ratio":"Mouse joint damping ratio","Set a mouse joint damping ratio.":"Set a mouse joint damping ratio.","the damping ratio for mouse joint _PARAM2_":"the damping ratio for mouse joint _PARAM2_","Add wheel joint":"Add wheel joint","Add a wheel joint between two objects. Higher frequencies means higher suspensions. Damping determines oscillations, critical damping of 1 means no oscillations.":"Add a wheel joint between two objects. Higher frequencies means higher suspensions. Damping determines oscillations, critical damping of 1 means no oscillations.","Add a wheel joint between _PARAM0_ and _PARAM4_":"Add a wheel joint between _PARAM0_ and _PARAM4_","Joints/Wheel":"Joints/Wheel","Frequency (Hz) (non-negative) (default: 10)":"Frequency (Hz) (non-negative) (default: 10)","Wheel joint axis angle":"Wheel joint axis angle","Wheel joint current translation":"Wheel joint current translation","Wheel joint current speed":"Wheel joint current speed","Wheel joint speed":"Wheel joint speed","Wheel joint motor enabled":"Wheel joint motor enabled","Test if a wheel joint motor is enabled.":"Test if a wheel joint motor is enabled.","Motor for wheel joint _PARAM2_ is enabled":"Motor for wheel joint _PARAM2_ is enabled","Enable wheel joint motor":"Enable wheel joint motor","Enable or disable a wheel joint motor.":"Enable or disable a wheel joint motor.","Enable motor for wheel joint _PARAM2_: _PARAM3_":"Enable motor for wheel joint _PARAM2_: _PARAM3_","Wheel joint motor speed":"Wheel joint motor speed","Modify a wheel joint motor speed.":"Modify a wheel joint motor speed.","the motor speed for wheel joint _PARAM2_":"the motor speed for wheel joint _PARAM2_","Wheel joint max motor torque":"Wheel joint max motor torque","Modify a wheel joint maximum motor torque.":"Modify a wheel joint maximum motor torque.","the maximum motor torque for wheel joint _PARAM2_":"the maximum motor torque for wheel joint _PARAM2_","Wheel joint maximum motor torque":"Wheel joint maximum motor torque","Wheel joint motor torque":"Wheel joint motor torque","Wheel joint frequency":"Wheel joint frequency","Modify a wheel joint frequency.":"Modify a wheel joint frequency.","the frequency for wheel joint _PARAM2_":"the frequency for wheel joint _PARAM2_","Wheel joint damping ratio":"Wheel joint damping ratio","Modify a wheel joint damping ratio.":"Modify a wheel joint damping ratio.","the damping ratio for wheel joint _PARAM2_":"the damping ratio for wheel joint _PARAM2_","Add weld joint":"Add weld joint","Add a weld joint between two objects.":"Add a weld joint between two objects.","Add a weld joint between _PARAM0_ and _PARAM4_":"Add a weld joint between _PARAM0_ and _PARAM4_","Joints/Weld":"Joints/Weld","Weld joint reference angle":"Weld joint reference angle","Weld joint frequency":"Weld joint frequency","Modify a weld joint frequency.":"Modify a weld joint frequency.","the frequency for weld joint _PARAM2_":"the frequency for weld joint _PARAM2_","Weld joint damping ratio":"Weld joint damping ratio","Modify a weld joint damping ratio.":"Modify a weld joint damping ratio.","the damping ratio for weld joint _PARAM2_":"the damping ratio for weld joint _PARAM2_","Add rope joint":"Add rope joint","Add a rope joint between two objects. The maximum length is converted to meters using the world scale on X.":"Add a rope joint between two objects. The maximum length is converted to meters using the world scale on X.","Add a rope joint between _PARAM0_ and _PARAM4_":"Add a rope joint between _PARAM0_ and _PARAM4_","Joints/Rope":"Joints/Rope","Maximum length (-1 to use current objects distance) (default: -1)":"Maximum length (-1 to use current objects distance) (default: -1)","Rope joint max length":"Rope joint max length","Modify a rope joint maximum length.":"Modify a rope joint maximum length.","the maximum length for rope joint _PARAM2_":"the maximum length for rope joint _PARAM2_","Rope joint maximum length":"Rope joint maximum length","Add friction joint":"Add friction joint","Add a friction joint between two objects.":"Add a friction joint between two objects.","Add a friction joint between _PARAM0_ and _PARAM4_":"Add a friction joint between _PARAM0_ and _PARAM4_","Joints/Friction":"Joints/Friction","Maximum force (non-negative)":"Maximum force (non-negative)","Maximum torque (non-negative)":"Maximum torque (non-negative)","Friction joint max force":"Friction joint max force","Modify a friction joint maximum force.":"Modify a friction joint maximum force.","the maximum force for friction joint _PARAM2_":"the maximum force for friction joint _PARAM2_","Friction joint maximum force":"Friction joint maximum force","Friction joint max torque":"Friction joint max torque","Modify a friction joint maximum torque.":"Modify a friction joint maximum torque.","the maximum torque for friction joint _PARAM2_":"the maximum torque for friction joint _PARAM2_","Friction joint maximum torque":"Friction joint maximum torque","Add motor joint":"Add motor joint","Add a motor joint between two objects. The position and angle offsets are relative to the first object.":"Add a motor joint between two objects. The position and angle offsets are relative to the first object.","Add a motor joint between _PARAM0_ and _PARAM2_":"Add a motor joint between _PARAM0_ and _PARAM2_","Joints/Motor":"Joints/Motor","Offset X position":"Offset X position","Offset Y position":"Offset Y position","Offset Angle":"Offset Angle","Correction factor (default: 1)":"Correction factor (default: 1)","Motor joint offset":"Motor joint offset","Modify a motor joint offset.":"Modify a motor joint offset.","Set offset to _PARAM3_;_PARAM4_ for motor joint _PARAM2_":"Set offset to _PARAM3_;_PARAM4_ for motor joint _PARAM2_","Offset X":"Offset X","Offset Y":"Offset Y","Motor joint offset X":"Motor joint offset X","Motor joint offset Y":"Motor joint offset Y","Motor joint angular offset":"Motor joint angular offset","Modify a motor joint angular offset.":"Modify a motor joint angular offset.","the angular offset for motor joint _PARAM2_":"the angular offset for motor joint _PARAM2_","Motor joint max force":"Motor joint max force","Modify a motor joint maximum force.":"Modify a motor joint maximum force.","the maximum force for motor joint _PARAM2_":"the maximum force for motor joint _PARAM2_","Motor joint maximum force":"Motor joint maximum force","Motor joint max torque":"Motor joint max torque","Modify a motor joint maximum torque.":"Modify a motor joint maximum torque.","the maximum torque for motor joint _PARAM2_":"the maximum torque for motor joint _PARAM2_","Motor joint maximum torque":"Motor joint maximum torque","Motor joint correction factor":"Motor joint correction factor","Modify a motor joint correction factor.":"Modify a motor joint correction factor.","the correction factor for motor joint _PARAM2_":"the correction factor for motor joint _PARAM2_","Test if two objects collide.":"Test if two objects collide.","_PARAM0_ is colliding with _PARAM2_":"_PARAM0_ is colliding with _PARAM2_","Adjustment":"Adjustment","Adjust gamma, contrast, saturation, brightness, alpha or color-channel shift.":"Adjust gamma, contrast, saturation, brightness, alpha or color-channel shift.","Gamma (between 0 and 5)":"Gamma (between 0 and 5)","Saturation (between 0 and 5)":"Saturation (between 0 and 5)","Contrast (between 0 and 5)":"Contrast (between 0 and 5)","Brightness (between 0 and 5)":"Brightness (between 0 and 5)","Red (between 0 and 5)":"Red (between 0 and 5)","Green (between 0 and 5)":"Green (between 0 and 5)","Blue (between 0 and 5)":"Blue (between 0 and 5)","Alpha (between 0 and 1, 0 is transparent)":"Alpha (between 0 and 1, 0 is transparent)","Advanced bloom":"Advanced bloom","Applies a bloom effect.":"Applies a bloom effect.","Threshold (between 0 and 1)":"Threshold (between 0 and 1)","Bloom Scale (between 0 and 2)":"Bloom Scale (between 0 and 2)","Brightness (between 0 and 2)":"Brightness (between 0 and 2)","Blur (between 0 and 20)":"Blur (between 0 and 20)","Quality (between 0 and 20)":"Quality (between 0 and 20)","ASCII":"ASCII","Render the image with ASCII characters only.":"Render the image with ASCII characters only.","Size (between 2 and 20)":"Size (between 2 and 20)","Beveled edges":"Beveled edges","Add beveled edges around the rendered image.":"Add beveled edges around the rendered image.","Rotation (between 0 and 360)":"Rotation (between 0 and 360)","Outer strength (between 0 and 5)":"Outer strength (between 0 and 5)","Distance (between 10 and 20)":"Distance (between 10 and 20)","Light alpha (between 0 and 1)":"Light alpha (between 0 and 1)","Light color (color of the outline)":"Light color (color of the outline)","Shadow color (color of the outline)":"Shadow color (color of the outline)","Shadow alpha (between 0 and 1)":"Shadow alpha (between 0 and 1)","Black and White":"Black and White","Alter the colors to make the image black and white":"Alter the colors to make the image black and white","Opacity (between 0 and 1)":"Opacity (between 0 and 1)","Blending mode":"Blending mode","Alter the rendered image with the specified blend mode.":"Alter the rendered image with the specified blend mode.","Mode (0: Normal, 1: Add, 2: Multiply, 3: Screen)":"Mode (0: Normal, 1: Add, 2: Multiply, 3: Screen)","Blur the rendered image.":"Blur the rendered image.","Blur intensity":"Blur intensity","Number of render passes. An high value will cause lags/poor performance.":"Number of render passes. An high value will cause lags/poor performance.","Resolution":"Resolution","Kernel size (one of these values: 5, 7, 9, 11, 13, 15)":"Kernel size (one of these values: 5, 7, 9, 11, 13, 15)","Brightness":"Brightness","Make the image brighter.":"Make the image brighter.","Brightness (between 0 and 1)":"Brightness (between 0 and 1)","Bulge Pinch":"Bulge Pinch","Bulges or pinches the image in a circle.":"Bulges or pinches the image in a circle.","Center X (between 0 and 1, 0.5 is image middle)":"Center X (between 0 and 1, 0.5 is image middle)","Center Y (between 0 and 1, 0.5 is image middle)":"Center Y (between 0 and 1, 0.5 is image middle)","Radius":"Radius","strength (between -1 and 1)":"strength (between -1 and 1)","-1 is strong pinch, 0 is no effect, 1 is strong bulge":"-1 is strong pinch, 0 is no effect, 1 is strong bulge","Color Map":"Color Map","Change the color rendered on screen.":"Change the color rendered on screen.","Color map texture for the effect":"Color map texture for the effect","You can change colors of pixels by modifing a reference color image, containing each colors, called the *Color Map Texture*. To get started, **download** [a default color map texture here](http://wiki.compilgames.net/doku.php/gdevelop5/interface/scene-editor/layer-effects).":"You can change colors of pixels by modifing a reference color image, containing each colors, called the *Color Map Texture*. To get started, **download** [a default color map texture here](http://wiki.compilgames.net/doku.php/gdevelop5/interface/scene-editor/layer-effects).","Disable anti-aliasing (\"nearest\" pixel rounding)":"Disable anti-aliasing (\"nearest\" pixel rounding)","Mix":"Mix","Mix value of the effect on the layer (in percent)":"Mix value of the effect on the layer (in percent)","Color Replace":"Color Replace","Effect replacing a color (or similar) by another.":"Effect replacing a color (or similar) by another.","Original Color":"Original Color","New Color":"New Color","Epsilon (between 0 and 1)":"Epsilon (between 0 and 1)","Tolerance/sensitivity of the floating-point comparison between colors (lower = more exact, higher = more inclusive)":"Tolerance/sensitivity of the floating-point comparison between colors (lower = more exact, higher = more inclusive)","CRT":"CRT","Apply an effect resembling old CRT monitors.":"Apply an effect resembling old CRT monitors.","Line width (between 0 and 5)":"Line width (between 0 and 5)","Line contrast (between 0 and 1)":"Line contrast (between 0 and 1)","Noise (between 0 and 1)":"Noise (between 0 and 1)","Curvature (between 0 and 10)":"Curvature (between 0 and 10)","Show vertical lines":"Show vertical lines","Noise size (between 0 and 10)":"Noise size (between 0 and 10)","Vignetting (between 0 and 1)":"Vignetting (between 0 and 1)","Vignetting alpha (between 0 and 1)":"Vignetting alpha (between 0 and 1)","Vignetting blur (between 0 and 1)":"Vignetting blur (between 0 and 1)","Interlaced Lines Speed":"Interlaced Lines Speed","0: Pause, 0.5: Half speed, 1: Normal speed, 2: Double speed, etc...":"0: Pause, 0.5: Half speed, 1: Normal speed, 2: Double speed, etc...","Noise Frequency":"Noise Frequency","Uses the pixel values from the specified texture (called the displacement map) to perform a displacement of an object.":"Uses the pixel values from the specified texture (called the displacement map) to perform a displacement of an object.","Displacement map texture":"Displacement map texture","Displacement map texture for the effect. To get started, **download** [a default displacement map texture here](http://wiki.compilgames.net/doku.php/gdevelop5/interface/scene-editor/layer-effects).":"Displacement map texture for the effect. To get started, **download** [a default displacement map texture here](http://wiki.compilgames.net/doku.php/gdevelop5/interface/scene-editor/layer-effects).","Dot":"Dot","Applies a dotscreen effect making objects appear to be made out of black and white halftone dots like an old printer.":"Applies a dotscreen effect making objects appear to be made out of black and white halftone dots like an old printer.","Scale (between 0.3 and 1)":"Scale (between 0.3 and 1)","Angle (between 0 and 5)":"Angle (between 0 and 5)","Drop shadow":"Drop shadow","Add a shadow around the rendered image.":"Add a shadow around the rendered image.","Quality (between 1 and 20)":"Quality (between 1 and 20)","Alpha (between 0 and 1)":"Alpha (between 0 and 1)","Distance (between 0 and 50)":"Distance (between 0 and 50)","Color of the shadow":"Color of the shadow","Shadow only (shows only the shadow when enabled)":"Shadow only (shows only the shadow when enabled)","Glitch":"Glitch","Applies a glitch effect to an object.":"Applies a glitch effect to an object.","Slices (between 2 and infinite)":"Slices (between 2 and infinite)","Offset (between -400 and 400)":"Offset (between -400 and 400)","Direction (between -180 and 180)":"Direction (between -180 and 180)","Fill Mode (between 0 and 4)":"Fill Mode (between 0 and 4)","The fill mode of the space after the offset.(0: TRANSPARENT, 1: ORIGINAL, 2: LOOP, 3: CLAMP, 4: MIRROR)":"The fill mode of the space after the offset.(0: TRANSPARENT, 1: ORIGINAL, 2: LOOP, 3: CLAMP, 4: MIRROR)","Average":"Average","Min Size":"Min Size","Sample Size":"Sample Size","Animation Frequency":"Animation Frequency","Red X offset (between -50 and 50)":"Red X offset (between -50 and 50)","Red Y offset (between -50 and 50)":"Red Y offset (between -50 and 50)","Green X offset (between -50 and 50)":"Green X offset (between -50 and 50)","Green Y offset (between -50 and 50)":"Green Y offset (between -50 and 50)","Blue X offset (between -50 and 50)":"Blue X offset (between -50 and 50)","Blue Y offset (between -50 and 50)":"Blue Y offset (between -50 and 50)","Glow":"Glow","Add a glow effect around the rendered image.":"Add a glow effect around the rendered image.","Inner strength (between 0 and 20)":"Inner strength (between 0 and 20)","Outer strength (between 0 and 20)":"Outer strength (between 0 and 20)","Color of the outline)":"Color of the outline)","Godray":"Godray","Apply and animate atmospheric light rays.":"Apply and animate atmospheric light rays.","Parallel (parallel rays)":"Parallel (parallel rays)","Animation Speed":"Animation Speed","Lacunarity (between 0 and 5)":"Lacunarity (between 0 and 5)","Angle (between -60 and 60)":"Angle (between -60 and 60)","Gain (between 0 and 1)":"Gain (between 0 and 1)","Light (between 0 and 60)":"Light (between 0 and 60)","Center X (between 100 and 1000)":"Center X (between 100 and 1000)","Center Y (between -1000 and 100)":"Center Y (between -1000 and 100)","Kawase blur":"Kawase blur","A much faster blur than Gaussian blur, but more complicated to use.":"A much faster blur than Gaussian blur, but more complicated to use.","Pixelize X (between 0 and 10)":"Pixelize X (between 0 and 10)","Pixelize Y (between 0 and 10)":"Pixelize Y (between 0 and 10)","Light Night":"Light Night","Alter the colors to simulate night.":"Alter the colors to simulate night.","Dark Night":"Dark Night","Alter the colors to simulate a dark night.":"Alter the colors to simulate a dark night.","Intensity (between 0 and 1)":"Intensity (between 0 and 1)","Noise":"Noise","Add some noise on the rendered image.":"Add some noise on the rendered image.","Noise intensity (between 0 and 1)":"Noise intensity (between 0 and 1)","Old Film":"Old Film","Add a Old film effect around the rendered image.":"Add a Old film effect around the rendered image.","Sepia (between 0 and 1)":"Sepia (between 0 and 1)","The amount of saturation of sepia effect, a value of 1 is more saturation and closer to 0 is less, and a value of 0 produces no sepia effect":"The amount of saturation of sepia effect, a value of 1 is more saturation and closer to 0 is less, and a value of 0 produces no sepia effect","Noise Size (between 0 and 10)":"Noise Size (between 0 and 10)","Scratch (between -1 and 1)":"Scratch (between -1 and 1)","Scratch Density (between 0 and 1)":"Scratch Density (between 0 and 1)","Scratch Width (between 1 and 20)":"Scratch Width (between 1 and 20)","Vignetting Alpha (between 0 and 1)":"Vignetting Alpha (between 0 and 1)","Vignetting Blur (between 0 and 1)":"Vignetting Blur (between 0 and 1)","Draws an outline around the rendered image.":"Draws an outline around the rendered image.","Thickness (between 0 and 20)":"Thickness (between 0 and 20)","Color of the outline":"Color of the outline","Pixelate":"Pixelate","Applies a pixelate effect, making display objects appear 'blocky'.":"Applies a pixelate effect, making display objects appear 'blocky'.","Size of the pixels (10 pixels by default)":"Size of the pixels (10 pixels by default)","Radial Blur":"Radial Blur","Applies a Motion blur to an object.":"Applies a Motion blur to an object.","The maximum size of the blur radius, -1 is infinite":"The maximum size of the blur radius, -1 is infinite","Angle (between -180 and 180)":"Angle (between -180 and 180)","The angle in degree of the motion for blur effect":"The angle in degree of the motion for blur effect","Kernel Size (between 3 and 25)":"Kernel Size (between 3 and 25)","The kernel size of the blur filter (Odd number)":"The kernel size of the blur filter (Odd number)","Reflection":"Reflection","Applies a reflection effect to simulate the reflection on water with waves.":"Applies a reflection effect to simulate the reflection on water with waves.","Reflect the image on the waves":"Reflect the image on the waves","Vertical position of the reflection point":"Vertical position of the reflection point","Default is 50% (middle). Smaller numbers produce a larger reflection, larger numbers produce a smaller reflection.":"Default is 50% (middle). Smaller numbers produce a larger reflection, larger numbers produce a smaller reflection.","Amplitude start":"Amplitude start","Starting amplitude of waves (0 by default)":"Starting amplitude of waves (0 by default)","Amplitude ending":"Amplitude ending","Ending amplitude of waves (20 by default)":"Ending amplitude of waves (20 by default)","Wave length start":"Wave length start","Starting wave length (30 by default)":"Starting wave length (30 by default)","Wave length ending":"Wave length ending","Ending wave length (100 by default)":"Ending wave length (100 by default)","Alpha start":"Alpha start","Starting alpha (1 by default)":"Starting alpha (1 by default)","Alpha ending":"Alpha ending","Ending alpha (1 by default)":"Ending alpha (1 by default)","RGB split (chromatic aberration)":"RGB split (chromatic aberration)","Applies a RGB split effect also known as chromatic aberration.":"Applies a RGB split effect also known as chromatic aberration.","Red X offset (between -20 and 20)":"Red X offset (between -20 and 20)","Red Y offset (between -20 and 20)":"Red Y offset (between -20 and 20)","Green X offset (between -20 and 20)":"Green X offset (between -20 and 20)","Green Y offset (between -20 and 20)":"Green Y offset (between -20 and 20)","Blue X offset (between -20 and 20)":"Blue X offset (between -20 and 20)","Blue Y offset (between -20 and 20)":"Blue Y offset (between -20 and 20)","Sepia":"Sepia","Alter the colors to sepia.":"Alter the colors to sepia.","Tilt shift":"Tilt shift","Render a tilt-shift-like camera effect.":"Render a tilt-shift-like camera effect.","Blur (between 0 and 200)":"Blur (between 0 and 200)","Gradient blur (between 0 and 2000)":"Gradient blur (between 0 and 2000)","Twist":"Twist","Applies a twist effect making objects appear twisted in the given direction.":"Applies a twist effect making objects appear twisted in the given direction.","The radius of the twist":"The radius of the twist","Angle (between -10 and 10)":"Angle (between -10 and 10)","The angle in degree of the twist":"The angle in degree of the twist","Padding for filter area":"Padding for filter area","Offset X (between 0 and 1, 0.5 is image middle)":"Offset X (between 0 and 1, 0.5 is image middle)","Offset Y (between 0 and 1, 0.5 is image middle)":"Offset Y (between 0 and 1, 0.5 is image middle)","Zoom blur":"Zoom blur","Applies a Zoom blur.":"Applies a Zoom blur.","Inner radius":"Inner radius","strength (between 0 and 5)":"strength (between 0 and 5)","My Dummy Extension":"My Dummy Extension","An example of a declaration of an extension":"An example of a declaration of an extension","Dummy effect example":"Dummy effect example","This is an example of an effect (\"shader\") with an [external link to the wiki](http://wiki.compilgames.net/doku.php/gdevelop5/) and **bold letters**.":"This is an example of an effect (\"shader\") with an [external link to the wiki](http://wiki.compilgames.net/doku.php/gdevelop5/) and **bold letters**.","Opacity of the effect (between 0 and 1)":"Opacity of the effect (between 0 and 1)","This is an optional description.":"This is an optional description.","Image resource (won't be used, just for demonstration purpose)":"Image resource (won't be used, just for demonstration purpose)","Color (won't be used, just for demonstration purpose)":"Color (won't be used, just for demonstration purpose)","Another optional description.":"Another optional description.","Some setting to enable or not for the effect":"Some setting to enable or not for the effect","And some *optional* description.":"And some *optional* description.","Dummy condition example":"Dummy condition example","This is an example of a condition displayed in the events sheet. Will return true if the number is less than 10 and the length of the text is less than 5.":"This is an example of a condition displayed in the events sheet. Will return true if the number is less than 10 and the length of the text is less than 5.","Call the example condition with _PARAM0_ and _PARAM1_":"Call the example condition with _PARAM0_ and _PARAM1_","Dummy Extension":"Dummy Extension","Number 1":"Number 1","Text 1":"Text 1","Dummy expression example":"Dummy expression example","This is an example of an expression":"This is an example of an expression","Maximum":"Maximum","Dummy string expression example":"Dummy string expression example","This is an example of an expression returning a string":"This is an example of an expression returning a string","Dummy behavior for testing":"Dummy behavior for testing","This dummy behavior does nothing":"This dummy behavior does nothing","Dummy behavior with shared data for testing":"Dummy behavior with shared data for testing","This dummy behavior uses shared data and does nothing":"This dummy behavior uses shared data and does nothing","Image resource (won't be shown, just for demonstration purpose)":"Image resource (won't be shown, just for demonstration purpose)","Dummy object for testing":"Dummy object for testing","This dummy object does nothing":"This dummy object does nothing","Display a dummy text in Developer console":"Display a dummy text in Developer console","Display a dummy text in Developer console. Open it with CTRL-SHIFT-J (Cmd-Alt-J on macOS).":"Display a dummy text in Developer console. Open it with CTRL-SHIFT-J (Cmd-Alt-J on macOS).","Display a dummy text for _PARAM0_, with params: _PARAM1_, _PARAM2_":"Display a dummy text for _PARAM0_, with params: _PARAM1_, _PARAM2_","Device sensors":"Device sensors","Allow the game to access the sensors of a mobile device.":"Allow the game to access the sensors of a mobile device.","Sensor active":"Sensor active","The condition is true if the device orientation sensor is currently active":"The condition is true if the device orientation sensor is currently active","Orientation sensor is active":"Orientation sensor is active","Sensors/Orientation":"Sensors/Orientation","Compare the value of orientation alpha":"Compare the value of orientation alpha","Compare the value of orientation alpha. (Range: 0 to 360\xB0)":"Compare the value of orientation alpha. (Range: 0 to 360\xB0)","the orientation alpha":"the orientation alpha","Compare the value of orientation beta":"Compare the value of orientation beta","Compare the value of orientation beta. (Range: -180 to 180\xB0)":"Compare the value of orientation beta. (Range: -180 to 180\xB0)","the orientation beta":"the orientation beta","Compare the value of orientation gamma":"Compare the value of orientation gamma","Compare the value of orientation gamma. (Range: -90 to 90\xB0)":"Compare the value of orientation gamma. (Range: -90 to 90\xB0)","the orientation gamma":"the orientation gamma","Activate orientation sensor":"Activate orientation sensor","Activate the orientation sensor. (remember to turn it off again)":"Activate the orientation sensor. (remember to turn it off again)","Activate the orientation sensor.":"Activate the orientation sensor.","Deactivate orientation sensor":"Deactivate orientation sensor","Deactivate the orientation sensor.":"Deactivate the orientation sensor.","Is Absolute":"Is Absolute","Get if the devices orientation is absolute and not relative":"Get if the devices orientation is absolute and not relative","Alpha value":"Alpha value","Get the devices orientation Alpha (compass)":"Get the devices orientation Alpha (compass)","Beta value":"Beta value","Get the devices orientation Beta":"Get the devices orientation Beta","Gamma value":"Gamma value","Get the devices orientation Gamma value":"Get the devices orientation Gamma value","The condition is true if the device motion sensor is currently active":"The condition is true if the device motion sensor is currently active","Motion sensor is active":"Motion sensor is active","Sensors/Motion":"Sensors/Motion","Compare the value of rotation alpha":"Compare the value of rotation alpha","Compare the value of rotation alpha. (Note: few devices support this sensor)":"Compare the value of rotation alpha. (Note: few devices support this sensor)","the rotation alpha":"the rotation alpha","Value (m/s\xB2)":"Value (m/s\xB2)","Compare the value of rotation beta":"Compare the value of rotation beta","Compare the value of rotation beta. (Note: few devices support this sensor)":"Compare the value of rotation beta. (Note: few devices support this sensor)","the rotation beta":"the rotation beta","Compare the value of rotation gamma":"Compare the value of rotation gamma","Compare the value of rotation gamma. (Note: few devices support this sensor)":"Compare the value of rotation gamma. (Note: few devices support this sensor)","the rotation gamma":"the rotation gamma","Compare the value of acceleration on X-axis":"Compare the value of acceleration on X-axis","Compare the value of acceleration on the X-axis (m/s\xB2).":"Compare the value of acceleration on the X-axis (m/s\xB2).","the acceleration X":"the acceleration X","Compare the value of acceleration on Y-axis":"Compare the value of acceleration on Y-axis","Compare the value of acceleration on the Y-axis (m/s\xB2).":"Compare the value of acceleration on the Y-axis (m/s\xB2).","the acceleration Y":"the acceleration Y","Compare the value of acceleration on Z-axis":"Compare the value of acceleration on Z-axis","Compare the value of acceleration on the Z-axis (m/s\xB2).":"Compare the value of acceleration on the Z-axis (m/s\xB2).","the acceleration Z":"the acceleration Z","Activate motion sensor":"Activate motion sensor","Activate the motion sensor. (remember to turn it off again)":"Activate the motion sensor. (remember to turn it off again)","Activate the motion sensor.":"Activate the motion sensor.","Deactivate motion sensor":"Deactivate motion sensor","Deactivate the motion sensor.":"Deactivate the motion sensor.","Get the devices rotation Alpha":"Get the devices rotation Alpha","Get the devices rotation Beta":"Get the devices rotation Beta","Get the devices rotation Gamma":"Get the devices rotation Gamma","Acceleration X value":"Acceleration X value","Get the devices acceleration on the X-axis (m/s\xB2)":"Get the devices acceleration on the X-axis (m/s\xB2)","Acceleration Y value":"Acceleration Y value","Get the devices acceleration on the Y-axis (m/s\xB2)":"Get the devices acceleration on the Y-axis (m/s\xB2)","Acceleration Z value":"Acceleration Z value","Get the devices acceleration on the Z-axis (m/s\xB2)":"Get the devices acceleration on the Z-axis (m/s\xB2)","Dialogue Tree (Experimental)":"Dialogue Tree (Experimental)","Start dialogue trees, made using Yarn, powered by Bondage.js. Experimental extension that can change in the future.":"Start dialogue trees, made using Yarn, powered by Bondage.js. Experimental extension that can change in the future.","Load dialogue Tree from a scene variable":"Load dialogue Tree from a scene variable","Load a dialogue data object - Yarn json format, stored in a scene variable. Use this command to load all the Dialogue data at the beginning of the game.":"Load a dialogue data object - Yarn json format, stored in a scene variable. Use this command to load all the Dialogue data at the beginning of the game.","Load dialogue data from Scene variable _PARAM1_":"Load dialogue data from Scene variable _PARAM1_","Dialogue Tree (experimental)":"Dialogue Tree (experimental)","Scene variable that holds the Yarn Json data":"Scene variable that holds the Yarn Json data","Load dialogue Tree from a Json File":"Load dialogue Tree from a Json File","Load a dialogue data object - Yarn json format, stored in a Json file. Use this command to load all the Dialogue data at the beginning of the game.":"Load a dialogue data object - Yarn json format, stored in a Json file. Use this command to load all the Dialogue data at the beginning of the game.","Load dialogue data from json file _PARAM1_":"Load dialogue data from json file _PARAM1_","Json file that holds the Yarn Json data":"Json file that holds the Yarn Json data","Start dialogue from branch":"Start dialogue from branch","Start dialogue from branch. Use this to initiate the dialogue from a specified branch.":"Start dialogue from branch. Use this to initiate the dialogue from a specified branch.","Start dialogue from branch _PARAM0_":"Start dialogue from branch _PARAM0_","Dialogue branch":"Dialogue branch","Stop running dialogue":"Stop running dialogue","Stop the running dialogue. Use this to interrupt dialogue parsing.":"Stop the running dialogue. Use this to interrupt dialogue parsing.","Go to the next dialogue line":"Go to the next dialogue line","Go to the next dialogue line. Use this to advance to the next dialogue line when the player presses a button.":"Go to the next dialogue line. Use this to advance to the next dialogue line when the player presses a button.","Confirm selected Option":"Confirm selected Option","Set the selected option as confirmed, which will validate it and go forward to the next node. Use other actions to select options (see \"select next option\" and \"Select previous option\").":"Set the selected option as confirmed, which will validate it and go forward to the next node. Use other actions to select options (see \"select next option\" and \"Select previous option\").","Select next Option":"Select next Option","Select next Option (add 1 to selected option number). Use this when the dialogue line is of type \"options\" and the player has pressed a button to change selected option.":"Select next Option (add 1 to selected option number). Use this when the dialogue line is of type \"options\" and the player has pressed a button to change selected option.","Select previous Option":"Select previous Option","Select previous Option (subtract 1 from selected option number). Use this when the dialogue line is of type \"options\" and the player has pressed a button to change selected option.":"Select previous Option (subtract 1 from selected option number). Use this when the dialogue line is of type \"options\" and the player has pressed a button to change selected option.","Select option by number":"Select option by number","Select option by number. Use this when the dialogue line is of type \"options\" and the player has pressed a button to change selected option.":"Select option by number. Use this when the dialogue line is of type \"options\" and the player has pressed a button to change selected option.","Option index number":"Option index number","Scroll clipped text":"Scroll clipped text","Scroll clipped text. Use this with a timer and \"get clipped text\" when you want to create a typewriter effect. Every time the action runs, a new character appears from the text.":"Scroll clipped text. Use this with a timer and \"get clipped text\" when you want to create a typewriter effect. Every time the action runs, a new character appears from the text.","Complete clipped text scrolling":"Complete clipped text scrolling","Complete the clipped text scrolling. Use this action whenever you want to skip scrolling.":"Complete the clipped text scrolling. Use this action whenever you want to skip scrolling.","Set dialogue state variable":"Set dialogue state variable","Set dialogue state variable. Use this to set a variable that the dialogue data is using.":"Set dialogue state variable. Use this to set a variable that the dialogue data is using.","Set dialogue state variable _PARAM0_ to _PARAM1_":"Set dialogue state variable _PARAM0_ to _PARAM1_","State Variable Name":"State Variable Name","Variable Value":"Variable Value","Save dialogue state":"Save dialogue state","Save dialogue state. Use this to store the dialogue state into a variable, which can later be used for saving the game. That way player choices can become part of the game save.":"Save dialogue state. Use this to store the dialogue state into a variable, which can later be used for saving the game. That way player choices can become part of the game save.","Save dialogue state to _PARAM0_":"Save dialogue state to _PARAM0_","Global Variable":"Global Variable","Load dialogue state":"Load dialogue state","Load dialogue state. Use this to restore dialogue state, if you have stored in a variable before with the \"Save state\" action.":"Load dialogue state. Use this to restore dialogue state, if you have stored in a variable before with the \"Save state\" action.","Load dialogue state from _PARAM0_":"Load dialogue state from _PARAM0_","Get the current dialogue line text":"Get the current dialogue line text","Returns the current dialogue line text":"Returns the current dialogue line text","Get the number of options in an options line type":"Get the number of options in an options line type","Get the text of an option from an Options line type":"Get the text of an option from an Options line type","Get the text of an option from an Options line type, using the option's Number. The numbers start from 0.":"Get the text of an option from an Options line type, using the option's Number. The numbers start from 0.","Option Index Number":"Option Index Number","Get a Horizontal list of options from the Options line type":"Get a Horizontal list of options from the Options line type","Get the text of all available options from an Options line type as a horizontal list. You can also pass the selected option's cursor string, which by default is ->":"Get the text of all available options from an Options line type as a horizontal list. You can also pass the selected option's cursor string, which by default is ->","Options Selection Cursor":"Options Selection Cursor","Get a Vertical list of options from the Options line type":"Get a Vertical list of options from the Options line type","Get the text of all available options from an Options line type as a vertical list. You can also pass the selected option's cursor string, which by default is ->":"Get the text of all available options from an Options line type as a vertical list. You can also pass the selected option's cursor string, which by default is ->","Get the number of the currently selected option":"Get the number of the currently selected option","Get the number of the currently selected option. Use this to help you render the option selection marker at the right place.":"Get the number of the currently selected option. Use this to help you render the option selection marker at the right place.","Get dialogue line text clipped":"Get dialogue line text clipped","Get dialogue line text clipped by the typewriter effect. Use the \"Scroll clipped text\" action to control the typewriter effect.":"Get dialogue line text clipped by the typewriter effect. Use the \"Scroll clipped text\" action to control the typewriter effect.","Get the title of the current branch of the running dialogue":"Get the title of the current branch of the running dialogue","Get the tags of the current branch of the running dialogue":"Get the tags of the current branch of the running dialogue","Get a tag of the current branch of the running dialogue via its index":"Get a tag of the current branch of the running dialogue via its index","Tag Index Number":"Tag Index Number","Get the parameters of a command call":"Get the parameters of a command call","Get the parameters of a command call - <<command withParameter anotherParameter>>":"Get the parameters of a command call - <<command withParameter anotherParameter>>","parameter Index Number":"parameter Index Number","Get the number of parameters in the currently passed command":"Get the number of parameters in the currently passed command","Get parameter from a Tag found by the branch contains tag condition":"Get parameter from a Tag found by the branch contains tag condition","Get a list of all visited branches":"Get a list of all visited branches","Get the full raw text of the current branch":"Get the full raw text of the current branch","Get dialogue state value":"Get dialogue state value","Variable Name":"Variable Name","Command is called":"Command is called","Check if a specific Command is called. If it is a <<command withParameter>>, you can even get the parameter with the CommandParameter expression.":"Check if a specific Command is called. If it is a <<command withParameter>>, you can even get the parameter with the CommandParameter expression.","Command <<_PARAM0_>> is called":"Command <<_PARAM0_>> is called","Command String":"Command String","Dialogue line type":"Dialogue line type","Check if the the current dialogue line line is one of the three existing types. Use this to set what logic is executed for each type.\nThe three types are as follows:\n- text: when displaying dialogue text.\n- options: when displaying [[branching/options]] for dialogue choices.\n-command: when <<commands>> are triggered by the dialogue data.":"Check if the the current dialogue line line is one of the three existing types. Use this to set what logic is executed for each type.\nThe three types are as follows:\n- text: when displaying dialogue text.\n- options: when displaying [[branching/options]] for dialogue choices.\n-command: when <<commands>> are triggered by the dialogue data.","The dialogue line is _PARAM0_":"The dialogue line is _PARAM0_","type":"type","Dialogue is running":"Dialogue is running","Check if the dialogue is running. Use this to for things like locking the player movement while speaking with a non player character.":"Check if the dialogue is running. Use this to for things like locking the player movement while speaking with a non player character.","Dialogue has branch":"Dialogue has branch","Check if the dialogue has a branch with specified name. Use this to check if a dialogue branch exists in the loaded dialogue data.":"Check if the dialogue has a branch with specified name. Use this to check if a dialogue branch exists in the loaded dialogue data.","Dialogue has a branch named _PARAM0_":"Dialogue has a branch named _PARAM0_","Branch name":"Branch name","Has selected option changed":"Has selected option changed","Check if a selected option has changed when the current dialogue line type is options. Use this to detect when the player has selected another option, so you can re-draw where the selection arrow is.":"Check if a selected option has changed when the current dialogue line type is options. Use this to detect when the player has selected another option, so you can re-draw where the selection arrow is.","Selected option has changed":"Selected option has changed","Current dialogue branch title":"Current dialogue branch title","Check if the current dialogue branch title is equal to a string. Use this to trigger game events when the player has visited a specific dialogue branch.":"Check if the current dialogue branch title is equal to a string. Use this to trigger game events when the player has visited a specific dialogue branch.","The current dialogue branch title is _PARAM0_":"The current dialogue branch title is _PARAM0_","title name":"title name","Current dialogue branch contains a tag":"Current dialogue branch contains a tag","Check if the current dialogue branch contains a specific tag. Tags are an alternative useful way to <<commands>> to drive game logic with the dialogue data.":"Check if the current dialogue branch contains a specific tag. Tags are an alternative useful way to <<commands>> to drive game logic with the dialogue data.","The current dialogue branch contains a _PARAM0_ tag":"The current dialogue branch contains a _PARAM0_ tag","tag name":"tag name","Branch title has been visited before":"Branch title has been visited before","Check if the current branch has been visited before":"Check if the current branch has been visited before","Branch title _PARAM0_ has been visited before":"Branch title _PARAM0_ has been visited before","branch title":"branch title","Compare dialogue state variable":"Compare dialogue state variable","Compare dialogue state variable. Use this to trigger game events via dialogue variables.":"Compare dialogue state variable. Use this to trigger game events via dialogue variables.","Dialogue state variable _PARAM0_ is equal to _PARAM1_":"Dialogue state variable _PARAM0_ is equal to _PARAM1_","State variable":"State variable","Equal to":"Equal to","Clipped text has completed scrolling":"Clipped text has completed scrolling","Check if the clipped text scrolling has completed. Use this to prevent the player from going to the next dialogue line before the typing effect has revealed the entire text.":"Check if the clipped text scrolling has completed. Use this to prevent the player from going to the next dialogue line before the typing effect has revealed the entire text.","Unable to copy \"":"Unable to copy \"","\" to \"":"\" to \"","\".":"\".","Yes or no":"\uC608 / \uC544\uB2C8\uC624","Music":"Music","Sound":"Sound","Joystick axis":"Joystick axis","Variable of the object":"Variable of the object","Unknown":"Unknown","Change <subject> of _PARAM0_: <operator> <value>":"Change <subject> of _PARAM0_: <operator> <value>","Change <subject>: <operator> <value>":"Change <subject>: <operator> <value>","Value to compare":"Value to compare","<subject> of _PARAM0_ <operator> <value>":"<subject> of _PARAM0_ <operator> <value>","<subject> <operator> <value>":"<subject> <operator> <value>","Window features":"\uCC3D \uAE30\uB2A5","Built-in extension allowing to manipulate the game window and canvas":"Built-in extension allowing to manipulate the game window and canvas","De/activate fullscreen":"De/activate fullscreen","This action activates or deactivates fullscreen.":"This action activates or deactivates fullscreen.","Activate fullscreen: _PARAM1_ (keep aspect ratio: _PARAM2_)":"Activate fullscreen: _PARAM1_ (keep aspect ratio: _PARAM2_)","Game's window and resolution":"Game's window and resolution","Activate fullscreen":"Activate fullscreen","Keep aspect ratio (HTML5 games only, yes by default)":"Keep aspect ratio (HTML5 games only, yes by default)","Change the window's margins":"Change the window's margins","This action changes the margins, in pixels, between the game frame and the window borders.":"This action changes the margins, in pixels, between the game frame and the window borders.","Set margins of game window to _PARAM1_;_PARAM2_;_PARAM3_;_PARAM4_":"Set margins of game window to _PARAM1_;_PARAM2_;_PARAM3_;_PARAM4_","Top":"\uC0C1\uB2E8","Right":"Right","Bottom":"\uD558\uB2E8","Left":"Left","Change the resolution of the game":"Change the resolution of the game","Changes the resolution of the game, effectively changing the game area size. This won't change the size of the window in which the game is running.":"Changes the resolution of the game, effectively changing the game area size. This won't change the size of the window in which the game is running.","Set game resolution to _PARAM1_x_PARAM2_":"Set game resolution to _PARAM1_x_PARAM2_","Change the size of the game window":"Change the size of the game window","This action changes the size of the game window. Note that this will only work on platform supporting this operation: games running in browsers or on mobile phones can not update their window size. Game resolution can still be updated.":"This action changes the size of the game window. Note that this will only work on platform supporting this operation: games running in browsers or on mobile phones can not update their window size. Game resolution can still be updated.","Set game window size to _PARAM1_x_PARAM2_ (also update game resolution: _PARAM3_)":"Set game window size to _PARAM1_x_PARAM2_ (also update game resolution: _PARAM3_)","Also update the game resolution? If not, the game will be stretched or reduced to fit in the window.":"Also update the game resolution? If not, the game will be stretched or reduced to fit in the window.","Center the game window on the screen":"Center the game window on the screen","This action centers the game window on the screen. This only works on Windows, macOS and Linux (not when the game is executed in a web-browser or on iOS/Android).":"This action centers the game window on the screen. This only works on Windows, macOS and Linux (not when the game is executed in a web-browser or on iOS/Android).","Center the game window":"Center the game window","Change the game resolution resize mode":"Change the game resolution resize mode","Set if the width or the height of the game resolution should be changed to fit the game window - or if the game resolution should not be updated automatically.":"Set if the width or the height of the game resolution should be changed to fit the game window - or if the game resolution should not be updated automatically.","Set game resolution resize mode to _PARAM1_":"Set game resolution resize mode to _PARAM1_","Resize mode":"Resize mode","Empty to disable resizing. \"adaptWidth\" will update the game width to fit in the window or screen. \"adaptHeight\" will do the same but with the game height.":"Empty to disable resizing. \"adaptWidth\" will update the game width to fit in the window or screen. \"adaptHeight\" will do the same but with the game height.","Automatically adapt the game resolution":"Automatically adapt the game resolution","Set if the game resolution should be automatically adapted when the game window or screen size change. This will only be the case if the game resolution resize mode is configured to adapt the width or the height of the game.":"Set if the game resolution should be automatically adapted when the game window or screen size change. This will only be the case if the game resolution resize mode is configured to adapt the width or the height of the game.","Automatically adapt the game resolution: _PARAM1_":"Automatically adapt the game resolution: _PARAM1_","Update resolution during the game to fit the screen or window size?":"Update resolution during the game to fit the screen or window size?","Change the window's icon":"Change the window's icon","This action changes the icon of the game's window.":"This action changes the icon of the game's window.","Use _PARAM1_ as the icon for the game's window.":"Use _PARAM1_ as the icon for the game's window.","Name of the image to be used as the icon":"Name of the image to be used as the icon","Change the window's title":"Change the window's title","This action changes the title of the game's window.":"This action changes the title of the game's window.","Change window title to _PARAM1_":"Change window title to _PARAM1_","New title":"New title","Width of the scene window":"Width of the scene window","Width of the scene window (or scene canvas for HTML5 games)":"Width of the scene window (or scene canvas for HTML5 games)","Screen":"Screen","Height of the scene window":"Height of the scene window","Height of the scene window (or scene canvas for HTML5 games)":"Height of the scene window (or scene canvas for HTML5 games)","Width of the screen/page":"Width of the screen/page","Width of the screen (or the page for HTML5 games in browser)":"Width of the screen (or the page for HTML5 games in browser)","Height of the screen/page":"Height of the screen/page","Height of the screen (or the page for HTML5 games in browser)":"Height of the screen (or the page for HTML5 games in browser)","Color depth":"Color depth","Window's title":"Window's title","Variable features":"\uAC00\uBCC0 \uAE30\uB2A5","Built-in extension allowing to manipulate variables":"\uAE30\uBCF8 \uC81C\uACF5 \uD655\uC7A5 \uBCC0\uC218\uB97C \uC870\uC791\uD560 \uC218 \uC788\uB3C4\uB85D","Value of a scene variable":"Value of a scene variable","Compare the value of a scene variable.":"Compare the value of a scene variable.","the scene variable _PARAM0_":"the scene variable _PARAM0_","Variable":"Variable","Text of a scene variable":"Text of a scene variable","Compare the text of a scene variable.":"Compare the text of a scene variable.","the text of scene variable _PARAM0_":"the text of scene variable _PARAM0_","Child existence":"Child existence","Return true if the specified child of the scene variable exists.":"Return true if the specified child of the scene variable exists.","Child _PARAM1_ of scene variable _PARAM0_ exists":"Child _PARAM1_ of scene variable _PARAM0_ exists","Variables/Structures":"Variables/Structures","Name of the child":"Name of the child","Return true if the specified child of the global variable exists.":"Return true if the specified child of the global variable exists.","Child _PARAM1_ of global variable _PARAM0_ exists":"Child _PARAM1_ of global variable _PARAM0_ exists","Variables/Global variables/Structures":"Variables/Global variables/Structures","Test if a scene variable is defined":"Test if a scene variable is defined","Test if the scene variable exists.":"Test if the scene variable exists.","Scene variable _PARAM0_ is defined":"Scene variable _PARAM0_ is defined","Value of a global variable":"Value of a global variable","Compare the value of a global variable.":"Compare the value of a global variable.","the global variable _PARAM0_":"the global variable _PARAM0_","Variables/Global variables":"Variables/Global variables","Text of a global variable":"Text of a global variable","Compare the text of a global variable.":"Compare the text of a global variable.","the text of the global variable _PARAM0_":"the text of the global variable _PARAM0_","Test if a global variable is defined":"Test if a global variable is defined","Test if a global variable exists":"Test if a global variable exists","Global variable _PARAM0_ is defined":"Global variable _PARAM0_ is defined","Modify the value of a scene variable.":"Modify the value of a scene variable.","String of a scene variable":"String of a scene variable","Modify the text of a scene variable.":"Modify the text of a scene variable.","Modify the value of a global variable":"Modify the value of a global variable","String of a global variable":"String of a global variable","Modify the text of a global variable.":"Modify the text of a global variable.","the text of global variable _PARAM0_":"the text of global variable _PARAM0_","Remove a child":"Remove a child","Remove a child from a scene variable.":"Remove a child from a scene variable.","Remove child _PARAM1_ from scene variable _PARAM0_":"Remove child _PARAM1_ from scene variable _PARAM0_","Variables/Structure":"Variables/Structure","Child's name":"Child's name","Remove a child from a global variable.":"Remove a child from a global variable.","Remove child _PARAM1_ from global variable _PARAM0_":"Remove child _PARAM1_ from global variable _PARAM0_","Variables/Global variables/Structure":"Variables/Global variables/Structure","Clear scene variable":"Clear scene variable","Remove all the children from the scene variable.":"Remove all the children from the scene variable.","Clear children from scene variable _PARAM0_":"Clear children from scene variable _PARAM0_","Clear global variable":"Clear global variable","Remove all the children from the global variable.":"Remove all the children from the global variable.","Clear children from global variable _PARAM0_":"Clear children from global variable _PARAM0_","Number of children of a global variable":"Number of children of a global variable","Get the number of children of a global variable":"Get the number of children of a global variable","Number of children of a scene variable":"Number of children of a scene variable","Get the number of children of a scene variable":"Get the number of children of a scene variable","Name of the global variable":"Name of the global variable","Advanced control features":"\uACE0\uAE09 \uC81C\uC5B4 \uAE30\uB2A5","Built-in extension providing advanced control features.":"\uACE0\uAE09 \uC81C\uC5B4 \uAE30\uB2A5\uC744 \uC81C\uACF5\uD558\uB294 \uAE30\uBCF8 \uC81C\uACF5 \uD655\uC7A5 \uC774\uB984\uC785\uB2C8\uB2E4.","Always":"Always","This condition always returns true (or always false, if the condition is inverted).":"This condition always returns true (or always false, if the condition is inverted).","Set number return value":"Set number return value","Set the return value of the events function to the specified number (to be used with \"Expression\" functions).":"Set the return value of the events function to the specified number (to be used with \"Expression\" functions).","Set return value to number _PARAM0_":"Set return value to number _PARAM0_","Set text return value":"Set text return value","Set the return value of the events function to the specified text (to be used with \"String Expression\" functions).":"Set the return value of the events function to the specified text (to be used with \"String Expression\" functions).","Set return value to text _PARAM0_":"Set return value to text _PARAM0_","Set condition return value":"Set condition return value","Set the return value of the Condition events function to either true (condition will pass) or false.":"Set the return value of the Condition events function to either true (condition will pass) or false.","Set return value of the condition to _PARAM0_":"Set return value of the condition to _PARAM0_","Get function parameter value":"Get function parameter value","Get function parameter (also called \"argument\") value":"Get function parameter (also called \"argument\") value","Get function parameter text":"Get function parameter text","Get function parameter (also called \"argument\") text ":"Get function parameter (also called \"argument\") text ","Joysticks features":"\uC870\uC774\uC2A4\uD2F1 \uAE30\uB2A5","Built-in extension that enables the use of joysticks":"Built-in extension that enables the use of joysticks","A button on a joystick is pressed":"A button on a joystick is pressed","Test if a button on a joystick is pressed.":"Test if a button on a joystick is pressed.","The button _PARAM2_ of joystick _PARAM1_ is pressed":"The button _PARAM2_ of joystick _PARAM1_ is pressed","Joystick":"Joystick","Joystick number (first joystick: 0)":"Joystick number (first joystick: 0)","Button":"Button","Value of an axis of a joystick":"Value of an axis of a joystick","Test the value of an axis of a joystick.":"Test the value of an axis of a joystick.","the value of the axis _PARAM2_ of joystick _PARAM1_":"the value of the axis _PARAM2_ of joystick _PARAM1_","Axis":"\uCD95","Get the value of the axis of a joystick":"Get the value of the axis of a joystick","Save the value of the axis of the joystick (from -100 to 100).":"Save the value of the axis of the joystick (from -100 to 100).","Save in _PARAM3_ the value of axis _PARAM2_ of joystick _PARAM1_":"Save in _PARAM3_ the value of axis _PARAM2_ of joystick _PARAM1_","Save the result to the scene variable":"Save the result to the scene variable","Scene management features":"\uD604\uC7A5 \uAD00\uB9AC \uAE30\uB2A5","Built-in extension allowing to manipulate scenes and providing common features":"Built-in extension allowing to manipulate scenes and providing common features","Random integer":"Random integer","Random":"Random","Maximum value":"Maximum value","Random integer in range":"Random integer in range","Minimum value":"Minimum value","Random float":"Random float","Random float in range":"Random float in range","Random value in steps":"Random value in steps","Step":"Step","Current scene name":"Current scene name","Name of the current scene":"Name of the current scene","Scene":"\uC7A5\uBA74","At the beginning of the scene":"At the beginning of the scene","Is true only when scene just begins.":"Is true only when scene just begins.","Scene just resumed":"Scene just resumed","The scene has just resumed after being paused.":"The scene has just resumed after being paused.","Change the scene":"Change the scene","Stop this scene and start the specified one instead.":"Stop this scene and start the specified one instead.","Change to scene _PARAM1_":"Change to scene _PARAM1_","Name of the new scene":"Name of the new scene","Stop any other paused scenes?":"Stop any other paused scenes?","Pause and start a new scene":"Pause and start a new scene","Pause this scene and start the specified one.\nLater, you can use the \"Stop and go back to previous scene\" action to go back to this scene.":"Pause this scene and start the specified one.\nLater, you can use the \"Stop and go back to previous scene\" action to go back to this scene.","Pause the scene and start _PARAM1_":"Pause the scene and start _PARAM1_","Stop and go back to previous scene":"Stop and go back to previous scene","Stop this scene and go back to the previous paused one.\nTo pause a scene, use the \"Pause and start a new scene\" action.":"Stop this scene and go back to the previous paused one.\nTo pause a scene, use the \"Pause and start a new scene\" action.","Stop the scene and go back to the previous paused one":"Stop the scene and go back to the previous paused one","Quit the game":"Quit the game","Change background color":"Change background color","Change the background color of the scene.":"Change the background color of the scene.","Set background color to _PARAM1_":"Set background color to _PARAM1_","Disable input when focus is lost":"Disable input when focus is lost","mouse buttons must be taken into account even\nif the window is not active.":"mouse buttons must be taken into account even\nif the window is not active.","Disable input when focus is lost: _PARAM1_":"Disable input when focus is lost: _PARAM1_","Deactivate input when focus is lost":"\uC785\uB825 \uD3EC\uCEE4\uC2A4\uAC00 \uC190\uC2E4 \uB41C \uACBD\uC6B0 \uBE44\uD65C\uC131\uD654","Compare two numbers":"Compare two numbers","Compare the two numbers.":"Compare the two numbers.","_PARAM0_ _PARAM1_ _PARAM2_":"_PARAM0_ _PARAM1_ _PARAM2_","First expression":"First expression","Second expression":"Second expression","Compare two strings":"Compare two strings","Compare the two strings.":"Compare the two strings.","First string expression":"First string expression","Second string expression":"Second string expression","Keyboard features":"Keyboard features","Built-in extension that enables the use of a keyboard":"Built-in extension that enables the use of a keyboard","Key pressed":"Key pressed","Test if a key is pressed":"Test if a key is pressed","_PARAM1_ key is pressed":"_PARAM1_ key is pressed","Keyboard":"Keyboard","Key released":"Key released","Test if a key was just released":"Test if a key was just released","_PARAM1_ key is released":"_PARAM1_ key is released","Key pressed (text expression)":"Key pressed (text expression)","Test if a key, retrieved from the result of the expression, is pressed":"Test if a key, retrieved from the result of the expression, is pressed","Expression generating the key to test":"Expression generating the key to test","Key released (text expression)":"Key released (text expression)","Test if a key, retrieved from the result of the expression, was just released":"Test if a key, retrieved from the result of the expression, was just released","Any key pressed":"Any key pressed","Test if any key is pressed":"Test if any key is pressed","Any key is pressed":"Any key is pressed","Last pressed key":"Last pressed key","Get the name of the latest key pressed on the keyboard":"Get the name of the latest key pressed on the keyboard","Mathematical tools":"\uC218\uD559\uC801 \uB3C4\uAD6C","Built-in extension providing mathematical tools":"\uAE30\uBCF8 \uC81C\uACF5 \uD655\uC7A5 \uC218\uD559\uC801 \uB3C4\uAD6C\uB97C \uC81C\uACF5 \uD558","Clamp (restrict a value to a given range)":"Clamp (restrict a value to a given range)","Restrict a value to a given range":"Restrict a value to a given range","Min":"Min","Max":"Max","Difference between two angles":"Difference between two angles","First angle":"First angle","Second angle":"Second angle","Modulo":"Modulo","x mod y":"x mod y","x (as in x mod y)":"x (as in x mod y)","y (as in x mod y)":"y (as in x mod y)","Minimum of two numbers":"Minimum of two numbers","Maximum of two numbers":"Maximum of two numbers","Absolute value":"Absolute value","Arccosine":"Arccosine","Hyperbolic arccosine":"Hyperbolic arccosine","Arcsine":"Arcsine","Arctangent":"Arctangent","2 argument arctangent":"2 argument arctangent","2 argument arctangent (atan2)":"2 argument arctangent (atan2)","Hyperbolic arctangent":"Hyperbolic arctangent","Cube root":"Cube root","Ceil (round up)":"Ceil (round up)","Round number up to an integer":"Round number up to an integer","Floor (round down)":"Floor (round down)","Round number down to an integer":"Round number down to an integer","Cosine":"Cosine","Cosine of a number":"Cosine of a number","Hyperbolic cosine":"Hyperbolic cosine","Cotangent":"Cotangent","Cotangent of a number":"Cotangent of a number","Cosecant":"Cosecant","Cosecant of a number":"Cosecant of a number","Round":"Round","Round a number":"Round a number","Exponential":"Exponential","Exponential of a number":"Exponential of a number","Logarithm":"Logarithm","Base-2 logarithm":"Base-2 logarithm","Base 2 Logarithm":"Base 2 Logarithm","Base-10 logarithm":"Base-10 logarithm","Nth root":"Nth root","Nth root of a number":"Nth root of a number","N":"N","Power":"Power","Raise a number to power n":"Raise a number to power n","The exponent (n in x^n)":"The exponent (n in x^n)","Secant":"Secant","Sign of a number":"Sign of a number","Return the sign of a number (1,-1 or 0)":"Return the sign of a number (1,-1 or 0)","Sine":"Sine","Sine of a number":"Sine of a number","Hyperbolic sine":"Hyperbolic sine","Square root":"Square root","Square root of a number":"Square root of a number","Tangent":"Tangent","Tangent of a number":"Tangent of a number","Hyperbolic tangent":"Hyperbolic tangent","Truncation":"Truncation","Truncate a number":"Truncate a number","Lerp (Linear interpolation)":"Lerp (Linear interpolation)","Linearly interpolate a to b by x":"Linearly interpolate a to b by x","a (in a+(b-a)*x)":"a (in a+(b-a)*x)","b (in a+(b-a)*x)":"b (in a+(b-a)*x)","x (in a+(b-a)*x)":"x (in a+(b-a)*x)","Built-in extension providing functions to store data.":"Built-in extension providing functions to store data.","Existence of a group":"Existence of a group","Check if an element (example : PlayerState/CurrentLevel) exists in the stored data.\nSpaces are forbidden in element names.":"Check if an element (example : PlayerState/CurrentLevel) exists in the stored data.\nSpaces are forbidden in element names.","_PARAM1_ exists in storage _PARAM0_":"_PARAM1_ exists in storage _PARAM0_","Storage name":"Storage name","Group":"\uADF8\uB8F9","Load a storage in memory":"Load a storage in memory","This action loads the specified storage in memory, so you can write and read it.\nYou can open and write without using this action, but it will be slower.\nIf you use this action, do not forget to unload the storage from memory.":"This action loads the specified storage in memory, so you can write and read it.\nYou can open and write without using this action, but it will be slower.\nIf you use this action, do not forget to unload the storage from memory.","Load storage _PARAM0_ in memory":"Load storage _PARAM0_ in memory","Close a storage":"Close a storage","This action closes the structured data previously loaded in memory, saving all changes made.":"This action closes the structured data previously loaded in memory, saving all changes made.","Close structured data _PARAM0_":"Close structured data _PARAM0_","Write a value":"Write a value","Write the result of the expression in the stored data, in the specified element.\nSpecify the structure leading to the element using / (example : Root/Level/Current)\nSpaces are forbidden in element names.":"Write the result of the expression in the stored data, in the specified element.\nSpecify the structure leading to the element using / (example : Root/Level/Current)\nSpaces are forbidden in element names.","Write _PARAM2_ in _PARAM1_ of storage _PARAM0_":"Write _PARAM2_ in _PARAM1_ of storage _PARAM0_","Write a text":"Write a text","Write the text in the specified storage, in the specified element.\nSpecify the structure leading to the element using / (example : Root/Level/Current)\nSpaces are forbidden in element names.":"Write the text in the specified storage, in the specified element.\nSpecify the structure leading to the element using / (example : Root/Level/Current)\nSpaces are forbidden in element names.","Read a value":"Read a value","Read the value saved in the specified element and store it in a scenevariable.\nSpecify the structure leading to the element using / (example : Root/Level/Current)\nSpaces are forbidden in element names.":"Read the value saved in the specified element and store it in a scenevariable.\nSpecify the structure leading to the element using / (example : Root/Level/Current)\nSpaces are forbidden in element names.","Read _PARAM1_ from storage _PARAM0_ and store value in _PARAM3_":"Read _PARAM1_ from storage _PARAM0_ and store value in _PARAM3_","Scene variables":"Scene variables","Read a text":"Read a text","Read the text saved in the specified element and store it in a scene variable.\nSpecify the structure leading to the element using / (example : Root/Level/Current)\nSpaces are forbidden in element names.":"Read the text saved in the specified element and store it in a scene variable.\nSpecify the structure leading to the element using / (example : Root/Level/Current)\nSpaces are forbidden in element names.","Read _PARAM1_ from storage _PARAM0_ and store as text in _PARAM3_":"Read _PARAM1_ from storage _PARAM0_ and store as text in _PARAM3_","Delete an element":"Delete an element","This action deletes the specified element from the specified storage.\nSpecify the structure leading to the element using / (example : Root/Level/Current)\nSpaces are forbidden in element names.":"This action deletes the specified element from the specified storage.\nSpecify the structure leading to the element using / (example : Root/Level/Current)\nSpaces are forbidden in element names.","Delete _PARAM1_ from storage _PARAM0_":"Delete _PARAM1_ from storage _PARAM0_","Clear a storage":"Clear a storage","Clear the specified storage, removing all data saved in it.":"Clear the specified storage, removing all data saved in it.","Delete storage _PARAM0_":"Delete storage _PARAM0_","A storage exists":"A storage exists","Test if the specified storage exists.":"Test if the specified storage exists.","Storage _PARAM0_ exists":"Storage _PARAM0_ exists","Open a URL or a file":"Open a URL or a file","This action launches the specified file or URL, in a browser (or in a new tab if the game is using the Web platform and is launched inside a browser).":"This action launches the specified file or URL, in a browser (or in a new tab if the game is using the Web platform and is launched inside a browser).","Open URL (or file) _PARAM0_":"Open URL (or file) _PARAM0_","Files":"\uD30C\uC77C","URL (or filename)":"URL (or filename)","Execute a command":"Execute a command","This action executes the specified command.":"This action executes the specified command.","Execute _PARAM0_":"Execute _PARAM0_","Command":"Command","Basic internet features":"\uAE30\uBCF8 \uC778\uD130\uB137 \uAE30\uB2A5","Built-in extension providing network features.":"\uB124\uD2B8\uC6CC\uD06C \uAE30\uB2A5\uC744 \uC81C\uACF5 \uD558\uB294 \uAE30\uBCF8 \uC81C\uACF5 \uD655\uC7A5\uBA85\uC785\uB2C8\uB2E4.","Send a request to a web page":"Send a request to a web page","Send a request to the specified web page.\n\nPlease note that for the web games, the game must be hosted on the same host as specified below, except if the server is configured to answer to all requests (cross-domain requests).":"Send a request to the specified web page.\n\nPlease note that for the web games, the game must be hosted on the same host as specified below, except if the server is configured to answer to all requests (cross-domain requests).","Send _PARAM3_ request to _PARAM0__PARAM1_ with body: _PARAM2_":"Send _PARAM3_ request to _PARAM0__PARAM1_ with body: _PARAM2_","Network":"\uB124\uD2B8\uC6CC\uD06C","Host, with protocol":"Host, with protocol","Example: \"http://example.com/\".":"Example: \"http://example.com/\".","Example: \"/user/123\" or \"/some-page.php\".":"Example: \"/user/123\" or \"/some-page.php\".","Request body content":"Request body content","Method: \"POST\" or \"GET\"":"Method: \"POST\" or \"GET\"","If empty, \"GET\" will be used.":"If empty, \"GET\" will be used.","Content type":"Content type","If empty, \"application/x-www-form-urlencoded\" will be used.":"If empty, \"application/x-www-form-urlencoded\" will be used.","Reponse scene variable":"Reponse scene variable","The response of the server will be stored, as a string, in this variable. If the server returns *JSON*, you may want to use the action \"Convert JSON to a scene variable\" afterwards, to explore the results with a *structure variable*.":"The response of the server will be stored, as a string, in this variable. If the server returns *JSON*, you may want to use the action \"Convert JSON to a scene variable\" afterwards, to explore the results with a *structure variable*.","Download a file":"Download a file","Download a file from a web site":"Download a file from a web site","Download file _PARAM1_ from _PARAM0_ under the name of _PARAM2_":"Download file _PARAM1_ from _PARAM0_ under the name of _PARAM2_","Host (for example : http://www.website.com)":"Host (for example : http://www.website.com)","Path to file (for example : /folder/file.txt)":"Path to file (for example : /folder/file.txt)","Save as":"Save as","Convert JSON to a scene variable":"Convert JSON to a scene variable","Parse a JSON object and store it into a scene variable":"Parse a JSON object and store it into a scene variable","Parse JSON string _PARAM0_ and store it into variable _PARAM1_":"Parse JSON string _PARAM0_ and store it into variable _PARAM1_","JSON string":"JSON string","Variable where store the JSON object":"Variable where store the JSON object","Convert JSON to global variable":"Convert JSON to global variable","Parse a JSON object and store it into a global variable":"Parse a JSON object and store it into a global variable","Parse JSON string _PARAM0_ and store it into global variable _PARAM1_":"Parse JSON string _PARAM0_ and store it into global variable _PARAM1_","Global variable where store the JSON object":"Global variable where store the JSON object","Convert JSON to object variable":"Convert JSON to object variable","Parse a JSON object and store it into an object variable":"Parse a JSON object and store it into an object variable","Parse JSON string _PARAM0_ and store it into variable _PARAM2_ of _PARAM1_":"Parse JSON string _PARAM0_ and store it into variable _PARAM2_ of _PARAM1_","Object variable where store the JSON object":"Object variable where store the JSON object","Convert scene variable to JSON":"Convert scene variable to JSON","Convert a scene variable to JSON":"Convert a scene variable to JSON","Conversion":"\uBCC0\uD658","Scene variable to be stringified":"Scene variable to be stringified","Convert global variable to JSON":"Convert global variable to JSON","Convert a global variable to JSON":"Convert a global variable to JSON","The global variable to be stringified":"The global variable to be stringified","Convert object variable to JSON":"Convert object variable to JSON","Convert an object variable to JSON":"Convert an object variable to JSON","The object with the variable":"The object with the variable","The object variable to be stringified":"The object variable to be stringified","Audio":"\uC624\uB514\uC624 \uC5D4\uC9C4","Builtin audio extension":"\uB0B4\uC7A5 \uC624\uB514\uC624 \uD655\uC7A5","Play a sound on a channel":"Play a sound on a channel","Play a sound (small audio file) on a specific channel,\nso you'll be able to manipulate it.":"Play a sound (small audio file) on a specific channel,\nso you'll be able to manipulate it.","Play the sound _PARAM1_ on the channel _PARAM2_, vol.: _PARAM4_, loop: _PARAM3_":"Play the sound _PARAM1_ on the channel _PARAM2_, vol.: _PARAM4_, loop: _PARAM3_","Audio/Sounds on channels":"Audio/Sounds on channels","Audio file (or audio resource name)":"Audio file (or audio resource name)","Channel identifier":"Channel identifier","Repeat the sound":"Repeat the sound","From 0 to 100, 100 by default.":"From 0 to 100, 100 by default.","Pitch (speed)":"Pitch (speed)","1 by default.":"1 by default.","Stop the sound of a channel":"Stop the sound of a channel","Stop the sound on the specified channel.":"Stop the sound on the specified channel.","Stop the sound of channel _PARAM1_":"Stop the sound of channel _PARAM1_","Pause the sound of a channel":"Pause the sound of a channel","Pause the sound played on the specified channel.":"Pause the sound played on the specified channel.","Pause the sound of channel _PARAM1_":"Pause the sound of channel _PARAM1_","Play the sound of a channel":"Play the sound of a channel","Play the sound of the channel.":"Play the sound of the channel.","Play the sound of channel _PARAM1_":"Play the sound of channel _PARAM1_","Play a music file on a channel":"Play a music file on a channel","Play a music file on a specific channel,\nso you'll be able to interact with it later.":"Play a music file on a specific channel,\nso you'll be able to interact with it later.","Play the music _PARAM1_ on channel _PARAM2_, vol.: _PARAM4_, loop: _PARAM3_":"Play the music _PARAM1_ on channel _PARAM2_, vol.: _PARAM4_, loop: _PARAM3_","Audio/Music on channels":"Audio/Music on channels","Stop the music on a channel":"Stop the music on a channel","Stop the music on the specified channel":"Stop the music on the specified channel","Stop the music of channel _PARAM1_":"Stop the music of channel _PARAM1_","Pause the music of a channel":"Pause the music of a channel","Pause the music on the specified channel.":"Pause the music on the specified channel.","Pause the music of channel _PARAM1_":"Pause the music of channel _PARAM1_","Play the music of a channel":"Play the music of a channel","Play the music of the channel.":"Play the music of the channel.","Play the music of channel _PARAM1_":"Play the music of channel _PARAM1_","Volume of the sound on a channel":"Volume of the sound on a channel","This action modifies the volume of the sound on the specified channel. The volume is between 0 and 100.":"This action modifies the volume of the sound on the specified channel. The volume is between 0 and 100.","the volume of the sound on channel _PARAM1_":"the volume of the sound on channel _PARAM1_","Volume of the music on a channel":"Volume of the music on a channel","This action modifies the volume of the music on the specified channel. The volume is between 0 and 100.":"This action modifies the volume of the music on the specified channel. The volume is between 0 and 100.","the volume of the music on channel _PARAM1_":"the volume of the music on channel _PARAM1_","Game global volume":"Game global volume","This action modifies the global volume of the game. The volume is between 0 and 100.":"This action modifies the global volume of the game. The volume is between 0 and 100.","the global sound level":"the global sound level","Pitch of the sound of a channel":"Pitch of the sound of a channel","This action modifies the pitch (speed) of the sound on a channel.\n1 is the default pitch.":"This action modifies the pitch (speed) of the sound on a channel.\n1 is the default pitch.","the pitch of the sound on channel _PARAM1_":"the pitch of the sound on channel _PARAM1_","Pitch of the music on a channel":"Pitch of the music on a channel","This action modifies the pitch of the music on the specified channel. 1 is the default pitch":"This action modifies the pitch of the music on the specified channel. 1 is the default pitch","the pitch of the music on channel _PARAM1_":"the pitch of the music on channel _PARAM1_","Playing offset of the sound on a channel":"Playing offset of the sound on a channel","This action modifies the playing offset of the sound on a channel":"This action modifies the playing offset of the sound on a channel","the playing offset of the sound on channel _PARAM1_":"the playing offset of the sound on channel _PARAM1_","Playing offset of the music on a channel":"Playing offset of the music on a channel","This action modifies the playing offset of the music on the specified channel":"This action modifies the playing offset of the music on the specified channel","the playing offset of the music on channel _PARAM1_":"the playing offset of the music on channel _PARAM1_","Play a sound":"Play a sound","Play a sound.":"Play a sound.","Play the sound _PARAM1_, vol.: _PARAM3_, loop: _PARAM2_":"Play the sound _PARAM1_, vol.: _PARAM3_, loop: _PARAM2_","Play a music file":"Play a music file","Play a music file.":"Play a music file.","Play the music _PARAM1_, vol.: _PARAM3_, loop: _PARAM2_":"Play the music _PARAM1_, vol.: _PARAM3_, loop: _PARAM2_","A music file is being played":"A music file is being played","Test if the music on a channel is being played":"Test if the music on a channel is being played","Music on channel _PARAM1_ is being played":"Music on channel _PARAM1_ is being played","Channel":"Channel","A music file is paused":"A music file is paused","Test if the music on the specified channel is paused.":"Test if the music on the specified channel is paused.","Music on channel _PARAM1_ is paused":"Music on channel _PARAM1_ is paused","A music file is stopped":"A music file is stopped","Test if the music on the specified channel is stopped.":"Test if the music on the specified channel is stopped.","Music on channel _PARAM1_ is stopped":"Music on channel _PARAM1_ is stopped","A sound is being played":"A sound is being played","Test if the sound on a channel is being played.":"Test if the sound on a channel is being played.","Sound on channel _PARAM1_ is being played":"Sound on channel _PARAM1_ is being played","A sound is paused":"A sound is paused","Test if the sound on the specified channel is paused.":"Test if the sound on the specified channel is paused.","Sound on channel _PARAM1_ is paused":"Sound on channel _PARAM1_ is paused","A sound is stopped":"A sound is stopped","Test if the sound on the specified channel is stopped.":"Test if the sound on the specified channel is stopped.","Sound on channel _PARAM1_ is stopped":"Sound on channel _PARAM1_ is stopped","Test the volume of the sound on the specified channel. The volume is between 0 and 100.":"Test the volume of the sound on the specified channel. The volume is between 0 and 100.","Test the volume of the music on a specified channel. The volume is between 0 and 100.":"Test the volume of the music on a specified channel. The volume is between 0 and 100.","Global volume":"Global volume","Test the global sound level. The volume is between 0 and 100.":"Test the global sound level. The volume is between 0 and 100.","the global game volume":"the global game volume","Test the pitch of the sound on the specified channel. 1 is the default pitch.":"Test the pitch of the sound on the specified channel. 1 is the default pitch.","Test the pitch (speed) of the music on a specified channel. 1 is the default pitch.":"Test the pitch (speed) of the music on a specified channel. 1 is the default pitch.","Test the playing offset of the sound on the specified channel.":"Test the playing offset of the sound on the specified channel.","Test the playing offset of the music on the specified channel.":"Test the playing offset of the music on the specified channel.","Sound playing offset":"Sound playing offset","Sounds":"Sounds","Music playing offset":"Music playing offset","Sound volume":"Sound volume","Music volume":"Music volume","Sound's pitch":"Sound's pitch","Music's pitch":"Music's pitch","Global volume value":"Global volume value","Sound level":"Sound level","Text manipulation":"\uD14D\uC2A4\uD2B8 \uC870\uC791","Built-in extension providing expressions for manipulating text objects.":"Built-in extension providing expressions for manipulating text objects.","Insert a new line":"Insert a new line","Manipulation of text":"Manipulation of text","Get character from code point":"Get character from code point","Code point":"Code point","Uppercase a text":"Uppercase a text","Lowercase a text":"Lowercase a text","Get a portion of a text":"Get a portion of a text","Start position of the portion (the first letter is at position 0)":"Start position of the portion (the first letter is at position 0)","Length of the portion":"Length of the portion","Get a character from a text":"Get a character from a text","Position of the character (the first letter is at position 0)":"Position of the character (the first letter is at position 0)","Repeat a text":"Repeat a text","Text to repeat":"Text to repeat","Repetition count":"Repetition count","Length of a text":"Length of a text","Search in a text":"Search in a text","Search in a text (return the position of the result or -1 if not found)":"Search in a text (return the position of the result or -1 if not found)","Text to search for":"Text to search for","Search in a text from the end":"Search in a text from the end","Search in a text from the end (return the position of the result or -1 if not found)":"Search in a text from the end (return the position of the result or -1 if not found)","Search in a text, starting from a position":"Search in a text, starting from a position","Search in a text, starting from a position (return the position of the result or -1 if not found)":"Search in a text, starting from a position (return the position of the result or -1 if not found)","Position of the first character in the string to be considered in the search":"Position of the first character in the string to be considered in the search","Search in a text from the end, starting from a position":"Search in a text from the end, starting from a position","Search in a text from the end, starting from a position (return the position of the result or -1 if not found)":"Search in a text from the end, starting from a position (return the position of the result or -1 if not found)","Position of the last character in the string to be considered in the search":"Position of the last character in the string to be considered in the search","Standard Conversions":"\uD45C\uC900 \uBCC0\uD658","Built-in extension providing standard conversions expressions.":"\uAE30\uBCF8 \uC81C\uACF5 \uD655\uC7A5 \uC81C\uACF5 \uD45C\uC900 \uBCC0\uD658\uC785\uB2C8\uB2E4.","Text > Number":"Text > Number","Convert the text to a number":"Convert the text to a number","Text to convert to a number":"Text to convert to a number","Number > Text":"Number > Text","Convert the result of the expression to text":"Convert the result of the expression to text","Expression to be converted to text":"Expression to be converted to text","Number > Text ( without scientific notation )":"Number > Text ( without scientific notation )","Convert the result of the expression to text, without using the scientific notation":"Convert the result of the expression to text, without using the scientific notation","Degrees > Radians":"Degrees > Radians","Converts the angle, expressed in degrees, into radians":"Converts the angle, expressed in degrees, into radians","Angle, in degrees":"Angle, in degrees","Radians > Degrees":"Radians > Degrees","Converts the angle, expressed in radians, into degrees":"Converts the angle, expressed in radians, into degrees","Angle, in radians":"Angle, in radians","Time":"\uC2DC\uAC01","Built-in extension providing actions and conditions related to time.":"Built-in extension providing actions and conditions related to time.","Value of a scene timer":"Value of a scene timer","Test the elapsed time of a scene timer.":"Test the elapsed time of a scene timer.","The timer _PARAM2_ is greater than _PARAM1_ seconds":"The timer _PARAM2_ is greater than _PARAM1_ seconds","Timers and time":"Timers and time","Time in seconds":"Time in seconds","Timer's name":"Timer's name","Test the time scale.":"Test the time scale.","Scene timer paused":"Scene timer paused","Test if the specified scene timer is paused.":"Test if the specified scene timer is paused.","The timer _PARAM1_ is paused":"The timer _PARAM1_ is paused","Start (or reset) a scene timer":"Start (or reset) a scene timer","Reset the specified scene timer, if the timer doesn't exist it's created and started.":"Reset the specified scene timer, if the timer doesn't exist it's created and started.","Reset the timer _PARAM1_":"Reset the timer _PARAM1_","Pause a scene timer":"Pause a scene timer","Pause a scene timer.":"Pause a scene timer.","Pause timer _PARAM1_":"Pause timer _PARAM1_","Unpause a scene timer":"Unpause a scene timer","Unpause a scene timer.":"Unpause a scene timer.","Unpause timer _PARAM1_":"Unpause timer _PARAM1_","Delete a scene timer":"Delete a scene timer","Delete a scene timer from memory.":"Delete a scene timer from memory.","Delete timer _PARAM1_ from memory":"Delete timer _PARAM1_ from memory","Change time scale":"Change time scale","Change the time scale of the game.":"Change the time scale of the game.","Set time scale to _PARAM1_":"Set time scale to _PARAM1_","Scale (1: Default, 2: 2x faster, 0.5: 2x slower...)":"Scale (1: Default, 2: 2x faster, 0.5: 2x slower...)","Time elapsed since the last frame":"Time elapsed since the last frame","Time elapsed since the last frame rendered on screen":"Time elapsed since the last frame rendered on screen","Scene timer value":"Scene timer value","Time elapsed since the beginning of the scene":"Time elapsed since the beginning of the scene","Hour: hour - Minutes: min - Seconds: sec - Day of month: mday - Months since January: mon - Year since 1900: year - Days since Sunday: wday - Days since Jan 1st: yday - Timestamp (ms): timestamp\"":"Hour: hour - Minutes: min - Seconds: sec - Day of month: mday - Months since January: mon - Year since 1900: year - Days since Sunday: wday - Days since Jan 1st: yday - Timestamp (ms): timestamp\"","Animate even if hidden or far from the screen":"Animate even if hidden or far from the screen","Sprite":"\uC2A4\uD504\uB77C\uC774\uD2B8","Sprite are animated object which can be used for most elements of a game.":"Sprite are animated object which can be used for most elements of a game.","Animated object which can be used for most elements of a game":"Animated object which can be used for most elements of a game","Change sprite opacity":"Change sprite opacity","Change the opacity of a Sprite. 0 is fully transparent, 255 is opaque (default).":"Change the opacity of a Sprite. 0 is fully transparent, 255 is opaque (default).","Change the animation":"Change the animation","Change the animation of the object, using the animation number in the animations list.":"Change the animation of the object, using the animation number in the animations list.","the number of the animation":"the number of the animation","Animations and images":"Animations and images","Change the animation (by name)":"Change the animation (by name)","Change the animation of the object, using the name of the animation.":"Change the animation of the object, using the name of the animation.","Set animation of _PARAM0_ to _PARAM1_":"Set animation of _PARAM0_ to _PARAM1_","Change the direction":"Change the direction","Change the direction of the object.\nIf the object is set to automatically rotate, the direction is its angle.\nIf the object is in 8 directions mode, the valid directions are 0..7":"Change the direction of the object.\nIf the object is set to automatically rotate, the direction is its angle.\nIf the object is in 8 directions mode, the valid directions are 0..7","the direction":"the direction","Modify the current frame of the object":"Modify the current frame of the object","the animation frame":"the animation frame","Pause the animation":"Pause the animation","Pause the animation of the object":"Pause the animation of the object","Pause the animation of _PARAM0_":"Pause the animation of _PARAM0_","Play the animation":"Play the animation","Play the animation of the object":"Play the animation of the object","Play the animation of _PARAM0_":"Play the animation of _PARAM0_","Animation speed scale":"Animation speed scale","Modify the animation speed scale (1 = the default speed, >1 = faster and <1 = slower).":"Modify the animation speed scale (1 = the default speed, >1 = faster and <1 = slower).","the animation speed scale":"the animation speed scale","Rotate an object toward a position":"Rotate an object toward a position","Rotate an object towards a position.":"Rotate an object towards a position.","Rotate _PARAM0_ towards _PARAM1_;_PARAM2_":"Rotate _PARAM0_ towards _PARAM1_;_PARAM2_","Object to be rotated":"Object to be rotated","Angular speed (degrees per second)":"Angular speed (degrees per second)","Modify the scale of the specified object.":"Modify the scale of the specified object.","Modify the scale of the width of an object.":"Modify the scale of the width of an object.","the width's scale":"the width's scale","Modify the scale of the height of an object.":"Modify the scale of the height of an object.","the height's scale":"the height's scale","Change the width of a Sprite object.":"Change the width of a Sprite object.","Change the height of a Sprite object.":"Change the height of a Sprite object.","Current animation":"Current animation","Compare the number of the animation played by the object.":"Compare the number of the animation played by the object.","Check the animation by played by the object.":"Check the animation by played by the object.","The animation of _PARAM0_ is _PARAM1_":"The animation of _PARAM0_ is _PARAM1_","Current direction":"Current direction","Compare the direction of the object. If 8 direction mode is activated for the sprite, the value taken for direction will be from 0 to 7. Otherwise, the direction is in degrees.":"Compare the direction of the object. If 8 direction mode is activated for the sprite, the value taken for direction will be from 0 to 7. Otherwise, the direction is in degrees.","Compare the index of the current frame in the animation displayed by the specified object. The first frame in an animation starts at index 0.":"Compare the index of the current frame in the animation displayed by the specified object. The first frame in an animation starts at index 0.","Animation paused":"Animation paused","Check if the animation of an object is paused.":"Check if the animation of an object is paused.","The animation of _PARAM0_ is paused":"The animation of _PARAM0_ is paused","Animation finished":"Animation finished","Check if the animation being played by the Sprite object is finished.":"Check if the animation being played by the Sprite object is finished.","The animation of _PARAM0_ is finished":"The animation of _PARAM0_ is finished","Compare the scale of the width of an object.":"Compare the scale of the width of an object.","Compare the scale of the height of an object.":"Compare the scale of the height of an object.","Compare the opacity of a Sprite, between 0 (fully transparent) to 255 (opaque).":"Compare the opacity of a Sprite, between 0 (fully transparent) to 255 (opaque).","Blend mode":"\uD63C\uD569 \uBAA8\uB4DC","Compare the number of the blend mode currently used by an object":"Compare the number of the blend mode currently used by an object","the number of the current blend mode":"the number of the current blend mode","Copy an image on the current one of an object":"Copy an image on the current one of an object","Copy an image on the current image of an object.\nNote that the source image must be preferably kept loaded in memory.":"Copy an image on the current image of an object.\nNote that the source image must be preferably kept loaded in memory.","Copy image _PARAM2_ on the current of _PARAM0_ at _PARAM3_;_PARAM4_":"Copy image _PARAM2_ on the current of _PARAM0_ at _PARAM3_;_PARAM4_","Make a color of the image of an object transparent":"Make a color of the image of an object transparent","Make a color of the image of an object transparent.":"Make a color of the image of an object transparent.","Make color _PARAM1_ of the current image of _PARAM0_ transparent":"Make color _PARAM1_ of the current image of _PARAM0_ transparent","Color to make transparent":"Color to make transparent","Change the global color of an object. The default color is white.":"Change the global color of an object. The default color is white.","Change the number of the blend mode of an object.\nThe default blend mode is 0 (Normal).":"Change the number of the blend mode of an object.\nThe default blend mode is 0 (Normal).","Change Blend mode of _PARAM0_ to _PARAM1_":"Change Blend mode of _PARAM0_ to _PARAM1_","Flip the object horizontally":"Flip the object horizontally","Flip horizontally _PARAM0_ : _PARAM1_":"Flip horizontally _PARAM0_ : _PARAM1_","Activate flipping":"Activate flipping","Flip the object vertically":"Flip the object vertically","Flip vertically _PARAM0_ : _PARAM1_":"Flip vertically _PARAM0_ : _PARAM1_","Horizontally flipped":"Horizontally flipped","Return true if the object is horizontally flipped":"Return true if the object is horizontally flipped","_PARAM0_ is horizontally flipped":"_PARAM0_ is horizontally flipped","Vertically flipped":"Vertically flipped","Return true if the object is vertically flipped":"Return true if the object is vertically flipped","_PARAM0_ is vertically flipped":"_PARAM0_ is vertically flipped","Rotate an object toward another":"Rotate an object toward another","Rotate an object towards another.":"Rotate an object towards another.","Rotate _PARAM0_ towards _PARAM1_":"Rotate _PARAM0_ towards _PARAM1_","Rotate toward this object":"Rotate toward this object","X position of a point":"X position of a point","Name of the point":"Name of the point","Y position of a point":"Y position of a point","Direction of the object":"Direction of the object","Animation of the object":"Animation of the object","Name of the animation of the object":"Name of the animation of the object","Animation frame of the object":"Animation frame of the object","Scale of the width of an object":"Scale of the width of an object","Scale of the height of an object":"Scale of the height of an object","Collision (Pixel perfect)":"Collision (Pixel perfect)","The condition is true if there is a collision between the two objects.\nThe test is pixel-perfect.":"The condition is true if there is a collision between the two objects.\nThe test is pixel-perfect.","_PARAM0_ is in collision with _PARAM1_ (pixel perfect)":"_PARAM0_ is in collision with _PARAM1_ (pixel perfect)","Standard events":"\uD45C\uC900 \uC774\uBCA4\uD2B8","Built-in extension providing standard events.":"\uAE30\uBCF8 \uC81C\uACF5 \uD655\uC7A5 \uD45C\uC900 \uC774\uBCA4\uD2B8 \uC81C\uACF5\uC785\uB2C8\uB2E4.","Or":"Or","Return true if one of the sub conditions is true":"Return true if one of the sub conditions is true","If one of these conditions is true:":"If one of these conditions is true:","And":"And","Return true if all sub conditions are true":"Return true if all sub conditions are true","If all of these conditions are true:":"If all of these conditions are true:","Not":"Not","Return the contrary of the result of the sub conditions":"Return the contrary of the result of the sub conditions","Invert the logical result of these conditions:":"Invert the logical result of these conditions:","Trigger once while true":"Trigger once while true","Run actions only once, for each time the conditions have been met.":"Run actions only once, for each time the conditions have been met.","Trigger once":"Trigger once","Standard event":"Standard event","Standard event: Actions are run if conditions are fulfilled.":"Standard event: Actions are run if conditions are fulfilled.","Link":"Link","Link to some external events":"Link to some external events","Comment":"Comment","Event displaying a text in the events editor":"Event displaying a text in the events editor","While":"While","The event is repeated while the conditions are true":"The event is repeated while the conditions are true","Repeat":"Repeat","Event repeated a number of times":"Event repeated a number of times","For each object":"For each object","Repeat the event for each specified object.":"Repeat the event for each specified object.","Group containing events":"Group containing events","Features for all objects":"Features for all objects","Common features that can be used for all objects in GDevelop.":"Common features that can be used for all objects in GDevelop.","Base object":"\uAE30\uBCF8 \uAC1C\uCCB4","Compare X position of an object":"Compare X position of an object","Compare the X position of the object.":"Compare the X position of the object.","the X position":"the X position","X position of an object":"X position of an object","Change the X position of an object.":"Change the X position of an object.","Compare Y position of an object":"Compare Y position of an object","Compare the Y position of an object.":"Compare the Y position of an object.","the Y position":"the Y position","Y position of an object":"Y position of an object","Change the Y position of an object.":"Change the Y position of an object.","Position of an object":"Position of an object","Change the position of an object.":"Change the position of an object.","Change the position of _PARAM0_: _PARAM1_ _PARAM2_ (x axis), _PARAM3_ _PARAM4_ (y axis)":"Change the position of _PARAM0_: _PARAM1_ _PARAM2_ (x axis), _PARAM3_ _PARAM4_ (y axis)","Put an object around a position":"Put an object around a position","Position the center of the given object around a position, using the specified angle and distance.":"Position the center of the given object around a position, using the specified angle and distance.","Put _PARAM0_ around _PARAM1_;_PARAM2_, with an angle of _PARAM4_ degrees and _PARAM3_ pixels distance.":"Put _PARAM0_ around _PARAM1_;_PARAM2_, with an angle of _PARAM4_ degrees and _PARAM3_ pixels distance.","Change the angle of rotation of an object.":"Change the angle of rotation of an object.","Rotate":"Rotate","Rotate an object, clockwise if the speed is positive, counterclockwise otherwise.":"Rotate an object, clockwise if the speed is positive, counterclockwise otherwise.","Rotate _PARAM0_ at speed _PARAM1_deg/second":"Rotate _PARAM0_ at speed _PARAM1_deg/second","Angular speed (in degrees per second)":"Angular speed (in degrees per second)","Rotate toward angle":"Rotate toward angle","Rotate an object towards an angle with the specified speed.":"Rotate an object towards an angle with the specified speed.","Rotate _PARAM0_ towards _PARAM1_ at speed _PARAM2_deg/second":"Rotate _PARAM0_ towards _PARAM1_ at speed _PARAM2_deg/second","Angle to rotate towards (in degrees)":"Angle to rotate towards (in degrees)","Enter 0 for an immediate rotation.":"Enter 0 for an immediate rotation.","Rotate toward position":"Rotate toward position","Rotate an object towards a position, with the specified speed.":"Rotate an object towards a position, with the specified speed.","Rotate _PARAM0_ towards _PARAM1_;_PARAM2_ at speed _PARAM3_deg/second":"Rotate _PARAM0_ towards _PARAM1_;_PARAM2_ at speed _PARAM3_deg/second","Add a force to an object. The object will move according to all of the forces it has.":"Add a force to an object. The object will move according to all of the forces it has.","Add to _PARAM0_ _PARAM3_ force of _PARAM1_ p/s on X axis and _PARAM2_ p/s on Y axis":"Add to _PARAM0_ _PARAM3_ force of _PARAM1_ p/s on X axis and _PARAM2_ p/s on Y axis","Speed on X axis (in pixels per second)":"Speed on X axis (in pixels per second)","Speed on Y axis (in pixels per second)":"Speed on Y axis (in pixels per second)","Force multiplier":"Force multiplier","Add a force (angle)":"Add a force (angle)","Add a force to an object. The object will move according to all of the forces it has. This action creates the force using the specified angle and length.":"Add a force to an object. The object will move according to all of the forces it has. This action creates the force using the specified angle and length.","Add to _PARAM0_ _PARAM3_ force, angle: _PARAM1_ degrees and length: _PARAM2_ pixels":"Add to _PARAM0_ _PARAM3_ force, angle: _PARAM1_ degrees and length: _PARAM2_ pixels","Speed (in pixels per second)":"Speed (in pixels per second)","Add a force to move toward a position":"Add a force to move toward a position","Add a force to an object to make it move toward a position.":"Add a force to an object to make it move toward a position.","Move _PARAM0_ to _PARAM1_;_PARAM2_ with _PARAM4_ force of _PARAM3_ pixels":"Move _PARAM0_ to _PARAM1_;_PARAM2_ with _PARAM4_ force of _PARAM3_ pixels","Add a force to move around a position":"Add a force to move around a position","Add a force to an object to make it rotate around a position.\nNote that the movement is not precise, especially if the speed is high.\nTo position an object around a position more precisely, use the actions in the category \"Position\".":"Add a force to an object to make it rotate around a position.\nNote that the movement is not precise, especially if the speed is high.\nTo position an object around a position more precisely, use the actions in the category \"Position\".","Rotate _PARAM0_ around _PARAM1_;_PARAM2_ at _PARAM3_ deg/sec and _PARAM4_ pixels away":"Rotate _PARAM0_ around _PARAM1_;_PARAM2_ at _PARAM3_ deg/sec and _PARAM4_ pixels away","X position of the center":"X position of the center","Y position of the center":"Y position of the center","Speed (in Degrees per seconds)":"Speed (in Degrees per seconds)","Distance (in pixels)":"Distance (in pixels)","Stop the object":"Stop the object","Stop the object by deleting all of its forces.":"Stop the object by deleting all of its forces.","Stop _PARAM0_ (remove all forces)":"Stop _PARAM0_ (remove all forces)","Delete an object":"Delete an object","Delete the specified object.":"Delete the specified object.","Delete _PARAM0_":"Delete _PARAM0_","Z order":"Z \uC21C\uC11C","Modify the Z-order of an object":"Modify the Z-order of an object","the z-order":"the z-order","Move the object to a different layer.":"Move the object to a different layer.","Put _PARAM0_ on the layer _PARAM1_":"Put _PARAM0_ on the layer _PARAM1_","Layers and cameras":"Layers and cameras","Move it to this layer (base layer if empty)":"Move it to this layer (base layer if empty)","Modify a variable of an object":"Modify a variable of an object","Modify the value of a variable of an object":"Modify the value of a variable of an object","the variable _PARAM1_":"the variable _PARAM1_","Modify the text of a variable of an object":"Modify the text of a variable of an object","the text of variable _PARAM1_":"the text of variable _PARAM1_","Return true if the specified child of the variable exists.":"Return true if the specified child of the variable exists.","Child _PARAM2_ of variable _PARAM1_ of _PARAM0_ exists":"Child _PARAM2_ of variable _PARAM1_ of _PARAM0_ exists","Remove a child from a variable of an object.":"Remove a child from a variable of an object.","Remove child _PARAM2_ from variable _PARAM1_ of _PARAM0_":"Remove child _PARAM2_ from variable _PARAM1_ of _PARAM0_","Clear variable":"Clear variable","Remove all the children from the object variable.":"Remove all the children from the object variable.","Clear children from variable _PARAM1_ of _PARAM0_":"Clear children from variable _PARAM1_ of _PARAM0_","Hide the specified object.":"Hide the specified object.","Hide _PARAM0_":"Hide _PARAM0_","Show the specified object":"Show the specified object","Show _PARAM0_":"Show _PARAM0_","Compare the angle of the specified object.":"Compare the angle of the specified object.","the angle (in degrees)":"the angle (in degrees)","Compare Z order":"Compare Z order","Compare the Z-order of the specified object.":"Compare the Z-order of the specified object.","the z Order":"the z Order","Compare layer":"Compare layer","Check if the object is on the specified layer.":"Check if the object is on the specified layer.","_PARAM0_ is on layer _PARAM1_":"_PARAM0_ is on layer _PARAM1_","Visibility of an object":"Visibility of an object","Check if an object is visible.":"Check if an object is visible.","_PARAM0_ is visible (not marked as hidden)":"_PARAM0_ is visible (not marked as hidden)","Invisibility of an object":"Invisibility of an object","Check if an object is hidden.":"Check if an object is hidden.","_PARAM0_ is hidden":"_PARAM0_ is hidden","Object is stopped":"Object is stopped","Check if an object is not moving":"Check if an object is not moving","_PARAM0_ is stopped":"_PARAM0_ is stopped","Compare the overall speed of an object":"Compare the overall speed of an object","the overall speed":"the overall speed","Compare the angle of displacement of an object":"Compare the angle of displacement of an object","Angle of displacement of _PARAM0_ is _PARAM1_ (tolerance : _PARAM2_ degrees)":"Angle of displacement of _PARAM0_ is _PARAM1_ (tolerance : _PARAM2_ degrees)","Tolerance":"Tolerance","Value of an object's variable":"Value of an object's variable","Compare the value of a variable of an object.":"Compare the value of a variable of an object.","Text of an object's variable":"Text of an object's variable","Compare the text of a variable of an object.":"Compare the text of a variable of an object.","Variable defined":"Variable defined","Check if the variable is defined.":"Check if the variable is defined.","Variable _PARAM1 of _PARAM0_ is defined":"Variable _PARAM1 of _PARAM0_ is defined","Behavior activated":"Behavior activated","Return true if the behavior is activated for the object.":"Return true if the behavior is activated for the object.","Behavior _PARAM1_ of _PARAM0_ is activated":"Behavior _PARAM1_ of _PARAM0_ is activated","De/activate a behavior":"De/activate a behavior","De/activate the behavior for the object.":"De/activate the behavior for the object.","Activate behavior _PARAM1_ of _PARAM0_: _PARAM2_":"Activate behavior _PARAM1_ of _PARAM0_: _PARAM2_","Activate?":"Activate?","Add a force to move toward an object":"Add a force to move toward an object","Add a force to an object to make it move toward another.":"Add a force to an object to make it move toward another.","Move _PARAM0_ to _PARAM1_ with _PARAM3_ force of _PARAM2_ pixels":"Move _PARAM0_ to _PARAM1_ with _PARAM3_ force of _PARAM2_ pixels","Target Object":"Target Object","Add a force to move around an object":"Add a force to move around an object","Add a force to an object to make it rotate around another.\nNote that the movement is not precise, especially if the speed is high.\nTo position an object around a position more precisely, use the actions in category \"Position\".":"Add a force to an object to make it rotate around another.\nNote that the movement is not precise, especially if the speed is high.\nTo position an object around a position more precisely, use the actions in category \"Position\".","Rotate _PARAM0_ around _PARAM1_ at _PARAM2_ deg/sec and _PARAM3_ pixels away":"Rotate _PARAM0_ around _PARAM1_ at _PARAM2_ deg/sec and _PARAM3_ pixels away","Rotate around this object":"Rotate around this object","Speed (in degrees per second)":"Speed (in degrees per second)","Put an object around another":"Put an object around another","Position an object around another, with the specified angle and distance. The center of the objects are used for positioning them.":"Position an object around another, with the specified angle and distance. The center of the objects are used for positioning them.","Put _PARAM0_ around _PARAM1_, with an angle of _PARAM3_ degrees and _PARAM2_ pixels distance.":"Put _PARAM0_ around _PARAM1_, with an angle of _PARAM3_ degrees and _PARAM2_ pixels distance.","\"Center\" Object":"\"Center\" Object","Move an object away from another":"Move an object away from another","Move an object away from another, using forces.":"Move an object away from another, using forces.","Move _PARAM0_ away from _PARAM1_ (only _PARAM0_ will move)":"Move _PARAM0_ away from _PARAM1_ (only _PARAM0_ will move)","Object 2 (won't move)":"Object 2 (won't move)","Move an object away from another without using forces.":"Move an object away from another without using forces.","Move _PARAM0_ away from _PARAM2_ (only _PARAM0_ will move)":"Move _PARAM0_ away from _PARAM2_ (only _PARAM0_ will move)","Separate two objects":"Separate two objects","Move an object away from another using their collision masks.\nBe sure to call this action on a reasonable number of objects\nto avoid slowing down the game.":"Move an object away from another using their collision masks.\nBe sure to call this action on a reasonable number of objects\nto avoid slowing down the game.","Objects (won't move)":"Objects (won't move)","Ignore objects that are touching each other on their edges, but are not overlapping (default: no)":"Ignore objects that are touching each other on their edges, but are not overlapping (default: no)","Point inside object":"Point inside object","Test if a point is inside the object collision masks.":"Test if a point is inside the object collision masks.","_PARAM1_;_PARAM2_ is inside _PARAM0_":"_PARAM1_;_PARAM2_ is inside _PARAM0_","X position of the point":"X position of the point","Y position of the point":"Y position of the point","The cursor/touch is on an object":"The cursor/touch is on an object","Test if the cursor is over an object, or if the object is being touched.":"Test if the cursor is over an object, or if the object is being touched.","The cursor/touch is on _PARAM0_":"The cursor/touch is on _PARAM0_","Mouse and touch":"Mouse and touch","Accurate test (yes by default)":"Accurate test (yes by default)","Value of a timer":"Value of a timer","Test the elapsed time of a timer.":"Test the elapsed time of a timer.","The timer _PARAM1_ of _PARAM0_ is greater than _PARAM2_ seconds":"The timer _PARAM1_ of _PARAM0_ is greater than _PARAM2_ seconds","Timers":"Timers","Timer paused":"Timer paused","Test if specified timer is paused.":"Test if specified timer is paused.","The timer _PARAM1_ of _PARAM0_ is paused":"The timer _PARAM1_ of _PARAM0_ is paused","Start (or reset) a timer":"Start (or reset) a timer","Reset the specified timer, if the timer doesn't exist it's created and started.":"Reset the specified timer, if the timer doesn't exist it's created and started.","Reset the timer _PARAM1_ of _PARAM0_":"Reset the timer _PARAM1_ of _PARAM0_","Pause a timer":"Pause a timer","Pause a timer.":"Pause a timer.","Pause timer _PARAM1_ of _PARAM0_":"Pause timer _PARAM1_ of _PARAM0_","Unpause a timer":"Unpause a timer","Unpause a timer.":"Unpause a timer.","Unpause timer _PARAM1_ of _PARAM0_":"Unpause timer _PARAM1_ of _PARAM0_","Delete a timer":"Delete a timer","Delete a timer from memory.":"Delete a timer from memory.","Delete timer _PARAM1_ of _PARAM0_ from memory":"Delete timer _PARAM1_ of _PARAM0_ from memory","X position of the object":"X position of the object","Y position of the object":"Y position of the object","Current angle, in degrees, of the object":"Current angle, in degrees, of the object","Average X coordinates of forces":"Average X coordinates of forces","Average Y coordinates of forces":"Average Y coordinates of forces","Average angle of the forces":"Average angle of the forces","Average length of the forces":"Average length of the forces","Width of the object":"Width of the object","Height of the object":"Height of the object","Z order of an object":"Z order of an object","Distance between two objects":"Distance between two objects","Square distance between two objects":"Square distance between two objects","Object's variable":"Object's variable","Object's variable number of children":"Object's variable number of children","Get the number of children from an object":"Get the number of children from an object","Text of variable of an object":"Text of variable of an object","Timer value":"Timer value","Create an object":"Create an object","Create an object at specified position":"Create an object at specified position","Create object _PARAM1_ at position _PARAM2_;_PARAM3_":"Create object _PARAM1_ at position _PARAM2_;_PARAM3_","Object to create":"Object to create","Layer (base layer if empty)":"Layer (base layer if empty)","Create an object from its name":"Create an object from its name","Among the objects of the specified group, this action will create the object with the specified name.":"Among the objects of the specified group, this action will create the object with the specified name.","Among objects _PARAM1_, create object named _PARAM2_ at position _PARAM3_;_PARAM4_":"Among objects _PARAM1_, create object named _PARAM2_ at position _PARAM3_;_PARAM4_","Group of potential objects":"Group of potential objects","Group containing objects that can be created by the action.":"Group containing objects that can be created by the action.","Name of the object to create":"Name of the object to create","Text representing the name of the object to create. If no objects with this name are found in the group, no object will be created.":"Text representing the name of the object to create. If no objects with this name are found in the group, no object will be created.","Pick all instances":"Pick all instances","Pick all instances of the specified object(s). When you pick all instances, the next conditions and actions of this event work on all of them.":"Pick all instances of the specified object(s). When you pick all instances, the next conditions and actions of this event work on all of them.","Pick all instances of _PARAM1_":"Pick all instances of _PARAM1_","Pick a random object":"Pick a random object","Pick one object from all the specified objects. When an object is picked, the next conditions and actions of this event work only on that object.":"Pick one object from all the specified objects. When an object is picked, the next conditions and actions of this event work only on that object.","Pick a random _PARAM1_":"Pick a random _PARAM1_","Apply movement to all objects":"Apply movement to all objects","Moves all objects according to the forces they have. GDevelop calls this action at the end of the events by default.":"Moves all objects according to the forces they have. GDevelop calls this action at the end of the events by default.","An object is moving toward another":"An object is moving toward another","Check if an object moves toward another.\nThe first object must move.":"Check if an object moves toward another.\nThe first object must move.","_PARAM0_ is moving toward _PARAM1_":"_PARAM0_ is moving toward _PARAM1_","Angle of tolerance":"Angle of tolerance","Compare the distance between two objects.\nIf condition is inverted, only objects that have a distance greater than specified to any other object will be picked.":"Compare the distance between two objects.\nIf condition is inverted, only objects that have a distance greater than specified to any other object will be picked.","_PARAM0_ distance to _PARAM1_ is below _PARAM2_ pixels":"_PARAM0_ distance to _PARAM1_ is below _PARAM2_ pixels","Pick all objects":"Pick all objects","Pick all the specified objects. When you pick all objects, the next conditions and actions of this event work on all of them.":"Pick all the specified objects. When you pick all objects, the next conditions and actions of this event work on all of them.","Pick all _PARAM1_ objects":"Pick all _PARAM1_ objects","Pick nearest object":"Pick nearest object","Pick the object of this type that is nearest to the specified position. If the condition is inverted, the object farthest from the specified position is picked instead.":"Pick the object of this type that is nearest to the specified position. If the condition is inverted, the object farthest from the specified position is picked instead.","Pick the _PARAM0_ that is nearest to _PARAM1_;_PARAM2_":"Pick the _PARAM0_ that is nearest to _PARAM1_;_PARAM2_","Number of objects":"Number of objects","Count how many of the specified objects are currently picked, and compare that number to a value. If previous conditions on the objects have not been used, this condition counts how many of these objects exist in the current scene.":"Count how many of the specified objects are currently picked, and compare that number to a value. If previous conditions on the objects have not been used, this condition counts how many of these objects exist in the current scene.","the number of _PARAM0_ objects":"the number of _PARAM0_ objects","Test the collision between two objects using their collision masks.\nNote that some objects may not have collision masks.\nSome others, like Sprite objects, also provide more precise collision conditions.":"Test the collision between two objects using their collision masks.\nNote that some objects may not have collision masks.\nSome others, like Sprite objects, also provide more precise collision conditions.","_PARAM0_ is in collision with _PARAM1_":"_PARAM0_ is in collision with _PARAM1_","An object is turned toward another":"An object is turned toward another","Check if an object is turned toward another":"Check if an object is turned toward another","_PARAM0_ is rotated towards _PARAM1_":"_PARAM0_ is rotated towards _PARAM1_","Name of the object":"Name of the object","Name of the second object":"Name of the second object","Angle of tolerance, in degrees (0: minimum tolerance)":"Angle of tolerance, in degrees (0: minimum tolerance)","Raycast":"Raycast","Sends a ray from the given source position and angle, intersecting the closest object.\nThe instersected object will become the only one taken into account.\nIf the condition is inverted, the object to be intersected will be the farthest one within the ray radius.":"Sends a ray from the given source position and angle, intersecting the closest object.\nThe instersected object will become the only one taken into account.\nIf the condition is inverted, the object to be intersected will be the farthest one within the ray radius.","Raycast _PARAM0_ from _PARAM1_;_PARAM2_, and save the result in _PARAM5_, _PARAM6_":"Raycast _PARAM0_ from _PARAM1_;_PARAM2_, and save the result in _PARAM5_, _PARAM6_","Objects to test against the ray":"Objects to test against the ray","Result X position scene variable":"Result X position scene variable","Scene variable where to store the X position of the intersection. If no intersection is found, the variable won't be changed.":"Scene variable where to store the X position of the intersection. If no intersection is found, the variable won't be changed.","Result Y position scene variable":"Result Y position scene variable","Scene variable where to store the Y position of the intersection. If no intersection is found, the variable won't be changed.":"Scene variable where to store the Y position of the intersection. If no intersection is found, the variable won't be changed.","Raycast to position":"Raycast to position","Sends a ray from the given source position to the final point, intersecting the closest object.\nThe instersected object will become the only one taken into account.\nIf the condition is inverted, the object to be intersected will be the farthest one within the ray radius.":"Sends a ray from the given source position to the final point, intersecting the closest object.\nThe instersected object will become the only one taken into account.\nIf the condition is inverted, the object to be intersected will be the farthest one within the ray radius.","Ray target X position":"Ray target X position","Ray target Y position":"Ray target Y position","Count the number of the specified objects being currently picked in the event":"Count the number of the specified objects being currently picked in the event","Return the name of the object":"Return the name of the object","Object layer":"Object layer","Return the name of the layer the object is on":"Return the name of the layer the object is on","Mouse features":"\uB9C8\uC6B0\uC2A4 \uAE30\uB2A5","Built-in extension that enables the use of a mouse":"Built-in extension that enables the use of a mouse","The mouse wheel is scrolling up":"The mouse wheel is scrolling up","Check if the mouse wheel is scrolling up. Use MouseWheelDelta expression if you want to know the amount that was scrolled.":"Check if the mouse wheel is scrolling up. Use MouseWheelDelta expression if you want to know the amount that was scrolled.","The mouse wheel is scrolling down":"The mouse wheel is scrolling down","Check if the mouse wheel is scrolling down. Use MouseWheelDelta expression if you want to know the amount that was scrolled.":"Check if the mouse wheel is scrolling down. Use MouseWheelDelta expression if you want to know the amount that was scrolled.","De/activate moving the mouse cursor with touches":"De/activate moving the mouse cursor with touches","When activated, any touch made on a touchscreen will also move the mouse cursor. When deactivated, mouse and touch positions will be completely independent.\nBy default, this is activated so that you can simply use the mouse conditions to also support touchscreens. If you want to have multitouch and differentiate mouse movement and touches, just deactivate it with this action.":"When activated, any touch made on a touchscreen will also move the mouse cursor. When deactivated, mouse and touch positions will be completely independent.\nBy default, this is activated so that you can simply use the mouse conditions to also support touchscreens. If you want to have multitouch and differentiate mouse movement and touches, just deactivate it with this action.","Move mouse cursor when touching screen: _PARAM1_":"Move mouse cursor when touching screen: _PARAM1_","Activate (yes by default when game is launched)":"Activate (yes by default when game is launched)","Center cursor horizontally":"Center cursor horizontally","Put the cursor in the middle of the screen horizontally.":"Put the cursor in the middle of the screen horizontally.","Center cursor vertically":"Center cursor vertically","Put the cursor in the middle of the screen vertically.":"Put the cursor in the middle of the screen vertically.","Hide the cursor":"Hide the cursor","Hide the cursor.":"Hide the cursor.","Show the cursor":"Show the cursor","Show the cursor.":"Show the cursor.","Position the cursor of the mouse":"Position the cursor of the mouse","Position the cursor at the given coordinates.":"Position the cursor at the given coordinates.","Position cursor at _PARAM1_;_PARAM2_":"Position cursor at _PARAM1_;_PARAM2_","Center the cursor":"Center the cursor","Center the cursor on the screen.":"Center the cursor on the screen.","Cursor X position":"Cursor X position","Compare the X position of the cursor or of a touch.":"Compare the X position of the cursor or of a touch.","the cursor X position":"the cursor X position","Camera number (default : 0)":"Camera number (default : 0)","Cursor Y position":"Cursor Y position","Compare the Y position of the cursor or of a touch.":"Compare the Y position of the cursor or of a touch.","the cursor Y position":"the cursor Y position","Mouse button pressed or touch held":"Mouse button pressed or touch held","Return true if the specified mouse button is pressed or if a touch is in contact with the screen.":"Return true if the specified mouse button is pressed or if a touch is in contact with the screen.","Touch or _PARAM1_ mouse button is down":"Touch or _PARAM1_ mouse button is down","Button to test":"Button to test","Mouse button released":"Mouse button released","Return true if the specified mouse button was released.":"Return true if the specified mouse button was released.","_PARAM1_ mouse button was released":"_PARAM1_ mouse button was released","Touch X position":"Touch X position","Compare the X position of a specific touch.":"Compare the X position of a specific touch.","the touch #_PARAM1_ X position":"the touch #_PARAM1_ X position","Mouse and touch/Multitouch":"Mouse and touch/Multitouch","Touch identifier":"Touch identifier","Touch Y position":"Touch Y position","Compare the Y position of a specific touch.":"Compare the Y position of a specific touch.","the touch #_PARAM1_ Y position":"the touch #_PARAM1_ Y position","A new touch has started":"A new touch has started","Return true if a touch has started. The touch identifier can be accessed using LastTouchId().\nAs more than one touch can be started, this condition is only true once for each touch: the next time you use it, it will be for a new touch, or it will return false if no more touches have just started.":"Return true if a touch has started. The touch identifier can be accessed using LastTouchId().\nAs more than one touch can be started, this condition is only true once for each touch: the next time you use it, it will be for a new touch, or it will return false if no more touches have just started.","A touch has ended":"A touch has ended","Return true if a touch has ended. The touch identifier can be accessed using LastEndedTouchId().\nAs more than one touch can be ended, this condition is only true once for each touch: the next time you use it, it will be for a new touch, or it will return false if no more touches have just ended.":"Return true if a touch has ended. The touch identifier can be accessed using LastEndedTouchId().\nAs more than one touch can be ended, this condition is only true once for each touch: the next time you use it, it will be for a new touch, or it will return false if no more touches have just ended.","Mouse cursor":"Mouse cursor","Camera":"Camera","Mouse wheel: Displacement":"Mouse wheel: Displacement","Mouse wheel displacement":"Mouse wheel displacement","Multitouch":"Multitouch","Identifier of the last touch":"Identifier of the last touch","Identifier of the last ended touch":"Identifier of the last ended touch","Cameras and layers features":"\uCE74\uBA54\uB77C \uBC0F \uB808\uC774\uC5B4 \uAE30\uB2A5","Built-in camera extension":"Built-in camera extension","Camera center X position":"Camera center X position","Compare the X position of the center of a camera.":"Compare the X position of the center of a camera.","the X position of camera _PARAM4_ (layer: _PARAM3_)":"the X position of camera _PARAM4_ (layer: _PARAM3_)","Camera center Y position":"Camera center Y position","Compare the Y position of the center of a camera.":"Compare the Y position of the center of a camera.","the Y position of camera _PARAM4_ (layer: _PARAM3_)":"the Y position of camera _PARAM4_ (layer: _PARAM3_)","Change the X position of the center of the specified camera.":"Change the X position of the center of the specified camera.","Change the Y position of the center of the specified camera.":"Change the Y position of the center of the specified camera.","Width of a camera":"Width of a camera","Test the width of a camera of a layer":"Test the width of a camera of a layer","the width of camera _PARAM2_ of layer _PARAM1_":"the width of camera _PARAM2_ of layer _PARAM1_","Camera number":"Camera number","Height of a camera":"Height of a camera","Test the height of a camera of a layer":"Test the height of a camera of a layer","the height of camera _PARAM2_ of layer _PARAM1_":"the height of camera _PARAM2_ of layer _PARAM1_","Angle of a camera of a layer":"Angle of a camera of a layer","Test a camera angle.":"Test a camera angle.","the angle of camera (layer: _PARAM3_, camera: _PARAM4_)":"the angle of camera (layer: _PARAM3_, camera: _PARAM4_)","Change camera angle":"Change camera angle","This action modifies the angle of a camera in the specified layer.":"This action modifies the angle of a camera in the specified layer.","Add a camera to a layer":"Add a camera to a layer","This action adds a camera to a layer":"This action adds a camera to a layer","Add a camera to layer _PARAM1_":"Add a camera to layer _PARAM1_","Render zone: Top left side: X Position (between 0 and 1)":"Render zone: Top left side: X Position (between 0 and 1)","Render zone: Top left side: Y Position (between 0 and 1)":"Render zone: Top left side: Y Position (between 0 and 1)","Render zone: Bottom right side: X Position (between 0 and 1)":"Render zone: Bottom right side: X Position (between 0 and 1)","Render zone: Bottom right side: Y Position (between 0 and 1)":"Render zone: Bottom right side: Y Position (between 0 and 1)","Delete a camera of a layer":"Delete a camera of a layer","Remove the specified camera from a layer":"Remove the specified camera from a layer","Delete camera _PARAM2_ from layer _PARAM1_":"Delete camera _PARAM2_ from layer _PARAM1_","Modify the size of a camera":"Modify the size of a camera","This action modifies the size of a camera of the specified layer. The zoom will be reset.":"This action modifies the size of a camera of the specified layer. The zoom will be reset.","Change the size of camera _PARAM2_ of _PARAM1_ to _PARAM3_*_PARAM4_":"Change the size of camera _PARAM2_ of _PARAM1_ to _PARAM3_*_PARAM4_","Modify the render zone of a camera":"Modify the render zone of a camera","This action modifies the render zone of a camera of the specified layer.":"This action modifies the render zone of a camera of the specified layer.","Set the render zone of camera _PARAM2_ from layer _PARAM1_ to _PARAM3_;_PARAM4_ _PARAM5_;_PARAM6_":"Set the render zone of camera _PARAM2_ from layer _PARAM1_ to _PARAM3_;_PARAM4_ _PARAM5_;_PARAM6_","Change camera zoom.":"Change camera zoom.","Change camera zoom to _PARAM1_ (layer : _PARAM2_, camera : _PARAM3_)":"Change camera zoom to _PARAM1_ (layer : _PARAM2_, camera : _PARAM3_)","Value (1:Initial zoom, 2:Zoom x2, 0.5:Unzoom x2...)":"Value (1:Initial zoom, 2:Zoom x2, 0.5:Unzoom x2...)","Center the camera on an object within limits":"Center the camera on an object within limits","Center the camera on the specified object, without leaving the specified limits.":"Center the camera on the specified object, without leaving the specified limits.","Center the camera on _PARAM1_ (limit : from _PARAM2_;_PARAM3_ to _PARAM4_;_PARAM5_) (layer: _PARAM7_, camera: _PARAM8_)":"Center the camera on _PARAM1_ (limit : from _PARAM2_;_PARAM3_ to _PARAM4_;_PARAM5_) (layer: _PARAM7_, camera: _PARAM8_)","Top left side of the boundary: X Position":"Top left side of the boundary: X Position","Top left side of the boundary: Y Position":"Top left side of the boundary: Y Position","Bottom right side of the boundary: X Position":"Bottom right side of the boundary: X Position","Bottom right side of the boundary: Y Position":"Bottom right side of the boundary: Y Position","Anticipate the movement of the object (yes by default)":"Anticipate the movement of the object (yes by default)","Center the camera on an object":"Center the camera on an object","Center the camera on the specified object.":"Center the camera on the specified object.","Center camera on _PARAM1_ (layer: _PARAM3_, camera: _PARAM4_)":"Center camera on _PARAM1_ (layer: _PARAM3_, camera: _PARAM4_)","Show a layer":"Show a layer","Show a layer.":"Show a layer.","Show layer _PARAM1_":"Show layer _PARAM1_","Hide a layer":"Hide a layer","Hide a layer.":"Hide a layer.","Hide layer _PARAM1_":"Hide layer _PARAM1_","Visibility of a layer":"Visibility of a layer","Test if a layer is set as visible.":"Test if a layer is set as visible.","Layer _PARAM1_ is visible":"Layer _PARAM1_ is visible","Effect parameter (number)":"Effect parameter (number)","Change the value of a parameter of an effect.":"Change the value of a parameter of an effect.","You can find the parameter names (and change the effect names) in the effects window.":"You can find the parameter names (and change the effect names) in the effects window.","Set _PARAM3_ to _PARAM4_ for effect _PARAM2_ of layer _PARAM1_":"Set _PARAM3_ to _PARAM4_ for effect _PARAM2_ of layer _PARAM1_","Layers and cameras/Effects":"Layers and cameras/Effects","Effect":"Effect","Parameter name":"Parameter name","Effect parameter (string)":"Effect parameter (string)","Change the value (string) of a parameter of an effect.":"Change the value (string) of a parameter of an effect.","Effect parameter (enable or disable)":"Effect parameter (enable or disable)","Enable or disable a parameter of an effect.":"Enable or disable a parameter of an effect.","Enable _PARAM3_ for effect _PARAM2_ of layer _PARAM1_: _PARAM4_":"Enable _PARAM3_ for effect _PARAM2_ of layer _PARAM1_: _PARAM4_","Enable this parameter":"Enable this parameter","Layer effect is enabled":"Layer effect is enabled","The effect on a layer is enabled":"The effect on a layer is enabled","Effect _PARAM2_ on layer _PARAM1_ is enabled":"Effect _PARAM2_ on layer _PARAM1_ is enabled","Enable layer effect":"Enable layer effect","Enable an effect on a layer":"Enable an effect on a layer","Enable effect _PARAM2_ on layer _PARAM1_: _PARAM3_":"Enable effect _PARAM2_ on layer _PARAM1_: _PARAM3_","Enable":"Enable","Layer time scale":"Layer time scale","Compare the time scale applied to the objects of the layer.":"Compare the time scale applied to the objects of the layer.","the time scale of layer _PARAM1_":"the time scale of layer _PARAM1_","Layers and cameras/Time":"Layers and cameras/Time","Change layer time scale":"Change layer time scale","Change the time scale applied to the objects of the layer.":"Change the time scale applied to the objects of the layer.","Set time scale of layer _PARAM1_ to _PARAM2_":"Set time scale of layer _PARAM1_ to _PARAM2_","Width of a camera of a layer":"Width of a camera of a layer","Height of a camera of a layer":"Height of a camera of a layer","X position of the top left side point of a render zone":"X position of the top left side point of a render zone","Y position of the top left side point of a render zone":"Y position of the top left side point of a render zone","X position of the bottom right side point of a render zone":"X position of the bottom right side point of a render zone","Y position of the bottom right side point of a render zone":"Y position of the bottom right side point of a render zone","Camera X position":"Camera X position","Camera Y position":"Camera Y position","Built-in extension providing actions and conditions related to external layouts":"\uAE30\uBCF8 \uC81C\uACF5 \uD655\uC7A5 \uC791\uC5C5 \uBC0F \uC678\uBD80 \uB808\uC774\uC544\uC6C3\uC5D0 \uAD00\uB828 \uB41C \uC870\uAC74 \uC81C\uACF5","Create objects from an external layout":"Create objects from an external layout","Create objects from an external layout.":"Create objects from an external layout.","Create objects from the external layout named _PARAM1_":"Create objects from the external layout named _PARAM1_","Name of the external layout":"Name of the external layout","X position of the origin":"X position of the origin","Y position of the origin":"Y position of the origin","Smooth the image":"\uC774\uBBF8\uC9C0\uB97C \uBD80\uB4DC\uB7FD\uAC8C","Always loaded in memory":"\uD56D\uC0C1 \uBA54\uBAA8\uB9AC\uC5D0 \uB85C\uB4DC","Disable preloading at game startup":"Disable preloading at game startup","Project":"Project","The version of GDevelop used to create this game seems to be a new version.\nGDevelop may fail to open the game, or data may be missing.\nYou should check if a new version of GDevelop is available.":"The version of GDevelop used to create this game seems to be a new version.\nGDevelop may fail to open the game, or data may be missing.\nYou should check if a new version of GDevelop is available.","The version of GDevelop used to create this game seems to be greater.\nGDevelop may fail to open the game, or data may be missing.\nYou should check if a new version of GDevelop is available.":"The version of GDevelop used to create this game seems to be greater.\nGDevelop may fail to open the game, or data may be missing.\nYou should check if a new version of GDevelop is available.","The game was saved with version of GDevelop which is too old. Please open and save the game with one of the first version of GDevelop 2. You will then be able to open your game with this GDevelop version.":"The game was saved with version of GDevelop which is too old. Please open and save the game with one of the first version of GDevelop 2. You will then be able to open your game with this GDevelop version.","Sprite scaling has changed since GD 2: The resizing is made so that the origin point of the object won't move whatever the scale of the object.\n":"Sprite scaling has changed since GD 2: The resizing is made so that the origin point of the object won't move whatever the scale of the object.\n","You may have to slightly change the position of some objects if you have changed their size.\n\n":"You may have to slightly change the position of some objects if you have changed their size.\n\n","Thank you for your understanding.\n":"Thank you for your understanding.\n","The project is using the pathfinding behavior. This behavior has been replaced by a new one:\n":"The project is using the pathfinding behavior. This behavior has been replaced by a new one:\n","You must add the new 'Pathfinding' behavior to the objects that need to be moved, and add the 'Pathfinding Obstacle' to the objects that must act as obstacles.":"You must add the new 'Pathfinding' behavior to the objects that need to be moved, and add the 'Pathfinding Obstacle' to the objects that must act as obstacles.","Cannot find an expression with this name: ":"Cannot find an expression with this name: ","Double check that you've not made any typo in the name.":"Double check that you've not made any typo in the name.","The number of parameters must be exactly ":"The number of parameters must be exactly ","The number of parameters must be: ":"The number of parameters must be: ","A text must start with a double quote (\").":"A text must start with a double quote (\").","A text must end with a double quote (\"). Add a double quote to terminate the text.":"A text must end with a double quote (\"). Add a double quote to terminate the text.","A number was expected. You must enter a number here.":"A number was expected. You must enter a number here.","The expression has extra character at the end that should be removed (or completed if your expression is not finished).":"The expression has extra character at the end that should be removed (or completed if your expression is not finished).","You entered a text, but a number was expected.":"You entered a text, but a number was expected.","You entered a text, but this type was expected:":"You entered a text, but this type was expected:","You entered a number, but a text was expected (in quotes).":"You entered a number, but a text was expected (in quotes).","You entered a number, but this type was expected:":"You entered a number, but this type was expected:","Missing a closing parenthesis. Add a closing parenthesis for each opening parenthesis.":"Missing a closing parenthesis. Add a closing parenthesis for each opening parenthesis.","You must wrap your text inside double quotes (example: \"Hello world\").":"You must wrap your text inside double quotes (example: \"Hello world\").","You must enter a number.":"You must enter a number.","You've entered a name, but this type was expected:":"You've entered a name, but this type was expected:","Missing a closing bracket. Add a closing bracket for each opening bracket.":"Missing a closing bracket. Add a closing bracket for each opening bracket.","An opening parenthesis (for an object expression), or double colon (::) was expected (for a behavior expression).":"An opening parenthesis (for an object expression), or double colon (::) was expected (for a behavior expression).","An opening parenthesis was expected here to call a function.":"An opening parenthesis was expected here to call a function.","This function is improperly set up. Reach out to the extension developer or a GDevelop maintainer to fix this issue":"This function is improperly set up. Reach out to the extension developer or a GDevelop maintainer to fix this issue","This parameter was not expected by this expression. Remove it or verify that you've entered the proper expression name.":"This parameter was not expected by this expression. Remove it or verify that you've entered the proper expression name.","The list of parameters is not terminated. Add a closing parenthesis to end the parameters.":"The list of parameters is not terminated. Add a closing parenthesis to end the parameters.","You've used an operator that is not supported. Operator should be either +, -, / or *.":"You've used an operator that is not supported. Operator should be either +, -, / or *.","You've used an operator that is not supported. Only + can be used to concatenate texts.":"You've used an operator that is not supported. Only + can be used to concatenate texts.","Operators (+, -, /, *) can't be used with an object name. Remove the operator.":"Operators (+, -, /, *) can't be used with an object name. Remove the operator.","Operators (+, -, /, *) can't be used in variable names. Remove the operator from the variable name.":"Operators (+, -, /, *) can't be used in variable names. Remove the operator from the variable name.","You've used an \"unary\" operator that is not supported. Operator should be either + or -.":"You've used an \"unary\" operator that is not supported. Operator should be either + or -.","You've used an operator that is not supported. Only + can be used to concatenate texts, and must be placed between two texts (or expressions).":"You've used an operator that is not supported. Only + can be used to concatenate texts, and must be placed between two texts (or expressions).","Operators (+, -) can't be used with an object name. Remove the operator.":"Operators (+, -) can't be used with an object name. Remove the operator.","Operators (+, -) can't be used in variable names. Remove the operator from the variable name.":"Operators (+, -) can't be used in variable names. Remove the operator from the variable name.","You must enter a number or a valid expression call.":"You must enter a number or a valid expression call.","You must enter a text (between quotes) or a valid expression call.":"You must enter a text (between quotes) or a valid expression call.","You must enter a variable name.":"You must enter a variable name.","You must enter a valid object name.":"You must enter a valid object name.","You must enter a valid expression.":"You must enter a valid expression."}};
|
const router = require('express').Router();
const Model = require('../../database/models/model.js')
const user = require('../controller/userController.js');
const stock = require('../controller/stockController.js');
const portfolio = require('../controller/portfolioController.js');
const portfolioStock = require('../controller/portfolioStockController.js');
const transactionController = require('../controller/transactionController.jsx');
const leaderboard = require('../controller/leaderboardController.js');
const auth = require('../controller/authenticateController.js');
const axios = require('axios');
const xmlParser = require('xml2json');
//////// AUTH
router.get('/getToken', auth.getToken);
/////////
router.get('/coinQuery', portfolioStock.coinQuery);
router.get('/login', user.login);
router.post('/signup', user.signup);
router.get('/isOwnerOfPortfolio', auth.authenticate, portfolio.isOwnerOfPortfolio);
router.get('/getUserData', auth.authenticate, portfolioStock.getUserData);
router.get('/getSpecificPortfolio', portfolio.getSpecificPortfolio);
router.delete('/deletePortfolio', auth.authenticate, portfolio.deletePortfolio);
router.post('/buy', auth.authenticate, portfolioStock.buy);
router.put('/sell', auth.authenticate, portfolioStock.sell);
router.delete('/sellAll', auth.authenticate, portfolioStock.sellAll);
router.post('/createPortfolio', auth.authenticate, portfolio.createPortfolio);
router.get('/getPortfolioHistory', portfolio.getPortfolioHistory);
router.get('/portfolioTransactionHistory', transactionController.portfolioHistory);
router.get('/fetchSpecificLeaderboard', leaderboard.fetchLeaderboard);
router.get('/getNewsFeed', function(req, res) {
let urls = {
btc: 'https://www.google.com/alerts/feeds/09786470827379239761/3670693558918612812',
bch: 'https://www.google.com/alerts/feeds/09786470827379239761/3670693558918612812',
eth: 'https://www.google.com/alerts/feeds/09786470827379239761/15529768159353373328',
ltc: 'https://www.google.com/alerts/feeds/09786470827379239761/5927708691400587615',
xmr: 'https://www.google.com/alerts/feeds/09786470827379239761/1581829545819236887',
xrp: 'https://www.google.com/alerts/feeds/09786470827379239761/9116263399951559675',
zec: 'https://www.google.com/alerts/feeds/09786470827379239761/14531541400846783339'
}
let chosenCurrency = urls[req.query[0]]
axios.get(chosenCurrency)
.then(data => {
let JSONdata = xmlParser.toJson(data.data.toString())
res.send(JSONdata)
})
.catch(err => {
console.log('ERROR parsing xml data from Google ::: ', err)
})
})
router.get('/getHistoricalCurrencyData', stock.getHistoricalData);
router.get('/getPrediction', auth.authenticate, stock.getPredictionData)
module.exports = router;
|
var sessionId;
sessionId();
function getData() {
var id = document.getElementById("estado").value;
var idCliente = document.getElementById("9028873-ui").value;
var webMethod = "https://www.impeltechnology.com/rest/api/selectQuery?query=select Num_Servicio,R8476682,Orden_de_Servicio,Cliente_Destino,Fecha_y_hora_de_cargue_real,Direccion_Origen,Direccion_Destino from Servicio where status ="+id+" and R6311987 = "+idCliente+"&sessionId="+ sessionId +"&output=json&maxRows=3000";
var array_serviciosHistorial = [];
array_serviciosHistorial.length = 0;
$.ajax({
type: 'POST',
url: webMethod,
async: false,
dataType: 'json',
success: function(msg){
array_serviciosHistorial = msg;
},
error: function(e){
}
});
$(document).ready(function() {
$('#example').DataTable( {
"filter": false,
"destroy": true,
data: array_serviciosHistorial,
columns: [
{ title: "#Servicio" },
{ title: "#Despacho" },
{ title: "Orden de servicio" },
{ title: "Cliente" },
{ title: "Fecha" },
{ title: "Origen" },
{ title: "Destino" }
]
} );
} );
}
function sessionId(){
var that = this;
var user = "ekokarga.movil";
var pass = "qwerty123";
var validateUser;
var webMethod = "https://www.impeltechnology.com/rest/api/login?loginName="+ user +"&password="+ pass +"&output=json";
$.ajax({
type: 'POST',
url: webMethod,
async: false,
dataType: 'json',
success: function(msg){
sessionId = msg.sessionId;
},
error: function(e){
alert("Usuario o contraseña Incorrecta");
}
});
}
|
function updateViewportDimensions(){var w=window,d=document,e=d.documentElement,g=d.getElementsByTagName('body')[0],x=w.innerWidth||e.clientWidth||g.clientWidth,y=w.innerHeight||e.clientHeight||g.clientHeight;return{width:x,height:y};}var viewport=updateViewportDimensions();var waitForFinalEvent=(function(){var timers={};return function(callback,ms,uniqueId){if(!uniqueId){uniqueId="Don't call this twice without a uniqueId";}if(timers[uniqueId]){clearTimeout(timers[uniqueId]);}timers[uniqueId]=setTimeout(callback,ms);};})();var timeToWaitForLast=100;function loadGravatars(){viewport=updateViewportDimensions();if(viewport.width>=768){jQuery('.comment img[data-gravatar]').each(function(){jQuery(this).attr('src',jQuery(this).attr('data-gravatar'));});}}jQuery(document).ready(function($){loadGravatars();});
|
+function($) {
/**
* Animates sortable table column
*/
var tableSortable = function() {
$('table th.sortable').click(function() {
if ($(this).hasClass('asc')) {
$(this)
.removeClass('asc')
.addClass('desc');
}
else {
$('th.sortable')
.removeClass('asc')
.removeClass('desc');
$(this).addClass('asc');
}
});
};
$(document).ready(function() {
tableSortable();
})
}(jQuery);
|
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import injectSheets from 'react-jss';
import MQ from 'react-responsive';
// @todo refactor: inject theme
import { query } from 'src/common/theme/breakpoints.js';
import canUseDOM from 'src/common/utils/canUseDOM.js';
import IS_MS from 'src/common/utils/isMS.js';
import cx from 'classnames';
class Video extends Component {
static propTypes = {
poster: PropTypes.string.isRequired,
src: PropTypes.string.isRequired,
srcMobile: PropTypes.string.isRequired,
srcSet: PropTypes.string,
firstFrame: PropTypes.string.isRequired,
firstFrameMobile: PropTypes.string.isRequired,
noMSIE: PropTypes.bool,
};
static defaultProps = {
noMSIE: true,
};
state = {
canPlaysInline: true,
};
componentWillMount() {
if (canUseDOM) {
this.setState({
canPlaysInline: 'playsInline' in document.createElement('video'),
});
}
}
componentDidMount() {
if (!this.state.canPlaysInline) {
this.setState({
canPlaysInline: 'playsInline' in document.createElement('video'),
});
}
}
render() {
const {
children,
poster,
className,
srcSet,
noMSIE,
firstFrame,
firstFrameMobile,
src,
srcMobile,
classes,
sheet,
theme,
...rest
} = this.props;
const { canPlaysInline } = this.state;
if (!canUseDOM) {
return firstFrame
? [
<img
key="ffMob"
src={firstFrameMobile}
alt=""
className={cx(className, classes.ssrImgMob)}
/>,
<img
key="ffDesktop"
src={firstFrame}
alt=""
className={cx(className, classes.ssrImgDesk)}
/>,
]
: null;
}
return (
<MQ query={query.tablet}>
{matches =>
(matches || canPlaysInline) && !(noMSIE && IS_MS) ? (
<video
{...rest}
src={matches ? src : srcMobile}
poster={matches ? firstFrame : firstFrameMobile}
className={className}
autoPlay
playsInline
muted
>
{children}
</video>
) : (
<img src={poster} srcSet={srcSet} alt="" className={className} />
)
}
</MQ>
);
}
}
const styles = theme => ({
ssrImgMob: {
display: 'block',
[theme.mixins.atMedia('sm')]: {
display: 'none',
},
},
ssrImgDesk: {
display: 'none',
[theme.mixins.atMedia('sm')]: {
display: 'block',
},
},
});
export default injectSheets(styles)(Video);
|
// ==UserScript==
// @name Printer friendly AcWing
// @namespace work.pythoner
// @match *://*.acwing.com/*
// @grant GM_registerMenuCommand
// @version 1.3
// @author Hanson Hu
// @description 3/28/2022, 2:18:11 PM
// @homepage https://blog.pythoner.work
// @icon https://blog.pythoner.work/favicon.ico
// @license MIT
// ==/UserScript==
GM_registerMenuCommand('Amend the page', onClick);
function getToday() {
// local tz
let ret = new Date().toLocaleString('sv').slice(0, 10);
return ret;
}
function onClick() {
$('.navbar').remove();
$('.nav').remove();
$('.base_body').css('padding-top', '0');
$('.panel').css('border', '0');
$(".file-explorer-main-field-item").remove();
$('.fs-gui-taskbar').remove();
$('#code_tool_bar').remove();
$('#code_editor').remove();
$('#submit_code_btn').remove();
$('#run_code_btn').remove();
$('#acwing_footer').remove();
$('br').remove();
$('hr').remove();
$('#1024-activity').remove();
let elem = $('<div style="position: absolute; top: 2px; right: 2px; font-family: Bahnschrift, Trebuchet MS, sans-serif; font-weight: lighter; font-stretch: condensed; font-size: 24px;">' + getToday() + '</div>');
$("body").append(elem);
}
|
import React from 'react'
import classNames from 'classnames'
import './styles.css'
const Button = ({ text, styleClass }) => (
<button className={styleClass}>{text}</button>
)
Button.defaultProps = {
text: 'click me',
}
export default Button
|
const utils = require('../utils');
// const config = require('@/config').value;
const { getUser, getUserMedia } = require('./twitter-api');
module.exports = async (ctx) => {
const id = ctx.params.id;
const { count } = utils.parseRouteParams(ctx.params.routeParams);
const params = count ? { count } : {};
const userInfo = await getUser(ctx.cache, id);
const data = await getUserMedia(ctx.cache, id, params);
const profileImageUrl = userInfo.profile_image_url || userInfo.profile_image_url_https;
ctx.state.data = {
title: `Twitter @${userInfo.name}`,
link: `https://twitter.com/${id}/media`,
image: profileImageUrl.replace(/_normal.jpg$/, '.jpg'),
description: userInfo.description,
item: utils.ProcessFeed(ctx, {
data,
}),
};
};
|
/*
* Copyright (c) BrownBear, 2018 - Present. All Rights Reserved.
*
* This file is a part of Tuleap.
*
* Tuleap is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Tuleap is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
*/
export {
setFromTracker,
getTrackerId,
getTrackerName,
getTrackerColor,
getArtifactId,
getProjectId,
isListPickerEnabled,
};
let tracker_id, tracker_name, tracker_color, artifact_id, project_id, is_list_picker_enabled;
function setFromTracker(
id_tracker,
name_tracker,
color_tracker,
id_artifact,
id_project,
list_picker_is_enabled
) {
tracker_id = id_tracker;
tracker_name = name_tracker;
tracker_color = color_tracker;
artifact_id = id_artifact;
project_id = id_project;
is_list_picker_enabled = list_picker_is_enabled;
}
function getTrackerId() {
return tracker_id;
}
function getProjectId() {
return project_id;
}
function getTrackerName() {
return tracker_name;
}
function getTrackerColor() {
return tracker_color;
}
function getArtifactId() {
return artifact_id;
}
function isListPickerEnabled() {
return is_list_picker_enabled;
}
|
import React from "react";
import PropTypes from "prop-types";
import styles from "./styles.scss";
import PhotoActions from "components/PhotoActions";
import PhotoComments from "components/PhotoComments";
import TimeStamp from "components/TimeStamp";
import CommentBox from "components/CommentBox";
import UserList from "components/UserList";
import { Link } from "react-router-dom";
const FeedPhoto = (props, context) => {
return <div className={styles.feedPhoto}>
<Link
to={{ pathname: `/${props.creator.username}` }}
target='_self'
style={{ textDecoration: 'none', color:'black' }}
>
<header className={styles.header}>
<img src={props.creator.profile_image || require("images/noPhoto.jpg")} alt={props.creator.username} className={styles.image} />
<div className={styles.headerColumn}>
<span className={styles.creator}>{props.creator.username}</span>
<span className={styles.location}>{props.location}</span>
</div>
</header>
</Link>
<img src={props.file} alt={props.caption} />
<div className={styles.meta}>
<PhotoActions number={props.like_count} isLiked={props.is_liked} photoId={props.id} openLikes={props.openLikes} />
<PhotoComments caption={props.caption} creator={props.creator.username} comments={props.comments} />
<TimeStamp time={props.natural_time} />
<CommentBox photoId={props.id} />
</div>
{props.seeingLikes && <UserList title={context.t("Likes")} closeLikes={props.closeLikes} userList={props.likes} />}
</div>;
};
FeedPhoto.contextTypes = {
t: PropTypes.func.isRequired
};
FeedPhoto.propTypes = {
id: PropTypes.number.isRequired,
creator: PropTypes.shape({
profile_image: PropTypes.string,
username: PropTypes.string.isRequired,
name: PropTypes.string
}).isRequired,
location: PropTypes.string.isRequired,
file: PropTypes.string.isRequired,
like_count: PropTypes.number.isRequired,
caption: PropTypes.string.isRequired,
comments: PropTypes.arrayOf(
PropTypes.shape({
id: PropTypes.number.isRequired,
message: PropTypes.string.isRequired,
creator: PropTypes.shape({
profile_image: PropTypes.string,
username: PropTypes.string.isRequired
}).isRequired
})
).isRequired,
natural_time: PropTypes.string.isRequired,
is_liked: PropTypes.bool.isRequired,
seeingLikes: PropTypes.bool.isRequired,
openLikes: PropTypes.func.isRequired,
closeLikes: PropTypes.func.isRequired,
likes: PropTypes.arrayOf(
PropTypes.shape({
profile_image: PropTypes.string,
username: PropTypes.string.isRequired
}).isRequired
)
};
export default FeedPhoto;
|
const config = {
siteMetadata: {
title: `They Work For Us`,
description: `ใครเป็นใคร เคยทำอะไรมาบ้าง ตอนนี้อยู่ตำแหน่งไหน และยกมือสนับสนุนอะไรในสภา`,
author: `@electinth`,
},
pathPrefix: process.env.BASE_PATH || "/",
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src`,
},
},
`gatsby-transformer-remark`,
`gatsby-transformer-yaml`,
`gatsby-plugin-emotion`,
{
resolve: `gatsby-plugin-postcss`,
options: {
postCssPlugins: [
require("postcss-preset-env")({
stage: 0,
features: {
"nesting-rules": true,
},
}),
],
},
},
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography`,
},
},
`gatsby-plugin-react-helmet`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `They Work For Us`,
short_name: `They Work For Us`,
start_url: `/`,
background_color: `#fcbbdd`,
theme_color: `#fcbbdd`,
display: `minimal-ui`,
icon: `src/images/hero/biography.png`,
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
`gatsby-plugin-offline`,
],
}
// Track analytics on production
if (process.env.GATSBY_ENV === "production") {
const googleGtagConfig = {
resolve: "gatsby-plugin-gtag",
options: {
trackingId: "UA-43653558-21",
},
}
config.plugins.push(googleGtagConfig)
}
module.exports = config
|
const paths = require('./paths')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const publicPath = paths.servedPath
const shouldUseRelativeAssetPaths = publicPath === './'
const isDev = process.env.NODE_ENV === 'development'
const getStyleLoaders = (cssOptions, preProcessor) => {
const loaders = [
{
loader: MiniCssExtractPlugin.loader,
options: Object.assign(
{},
shouldUseRelativeAssetPaths ? { publicPath: '../../' } : undefined
)
},
{
loader: require.resolve('css-loader'),
options: cssOptions
},
{
loader: require.resolve('postcss-loader'),
options: {
ident: 'postcss',
plugins: () => [
require('postcss-flexbugs-fixes'),
require('postcss-preset-env')({
autoprefixer: {
flexbox: 'no-2009'
},
stage: 3
})
]
}
}
]
if (isDev) {
loaders.unshift(require.resolve('css-hot-loader'))
}
if (preProcessor) {
// 添加额外的loader
loaders.push(require.resolve(preProcessor))
}
return loaders
}
module.exports = {
getStyleLoaders
}
|
import { merge, sum } from "d3-array";
import { keys } from "d3-collection";
import unique from "./unique";
/**
@function merge
@desc Combines an Array of Objects together and returns a new Object.
@param {Array} objects The Array of objects to be merged together.
@param {Object} aggs An object containing specific aggregation methods (functions) for each key type. By default, numbers are summed and strings are returned as an array of unique values.
@example <caption>this</caption>
merge([
{id: "foo", group: "A", value: 10, links: [1, 2]},
{id: "bar", group: "A", value: 20, links: [1, 3]}
]);
@example <caption>returns this</caption>
{id: ["bar", "foo"], group: "A", value: 30, links: [1, 2, 3]}
*/
function objectMerge(objects) {
var aggs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var availableKeys = unique(merge(objects.map(function (o) {
return keys(o);
}))),
newObject = {};
availableKeys.forEach(function (k) {
var values = objects.map(function (o) {
return o[k];
});
var value;
if (aggs[k]) value = aggs[k](values);else {
var types = values.map(function (v) {
return v || v === false ? v.constructor : v;
}).filter(function (v) {
return v !== void 0;
});
if (!types.length) value = undefined;else if (types.indexOf(Array) >= 0) {
value = merge(values.map(function (v) {
return v instanceof Array ? v : [v];
}));
value = unique(value);
if (value.length === 1) value = value[0];
} else if (types.indexOf(String) >= 0) {
value = unique(values);
if (value.length === 1) value = value[0];
} else if (types.indexOf(Number) >= 0) value = sum(values);else if (types.indexOf(Object) >= 0) {
value = unique(values.filter(function (v) {
return v;
}));
if (value.length === 1) value = value[0];else value = objectMerge(value);
} else {
value = unique(values.filter(function (v) {
return v !== void 0;
}));
if (value.length === 1) value = value[0];
}
}
newObject[k] = value;
});
return newObject;
}
export default objectMerge;
|
import React from 'react';
import PropTypes from 'prop-types';
import { QA_URL } from 'constants/index';
import PinboardButtonContainer from 'containers/landing-page/header-links/pinboard-button-container';
import styles from './header-links.sass';
export default function HeaderLinks() {
return (
<div className={ styles.headerLinks }>
<a href={ QA_URL } className='header-link'>Q&A</a>
<PinboardButtonContainer />
</div>
);
}
HeaderLinks.propTypes = {
position: PropTypes.string,
};
HeaderLinks.defaultProps = {
position: 'top',
};
|
import request from '@/utils/request';
export async function fakeSubmitForm(params) {
return request('/api/forms', {
method: 'POST',
data: params,
});
}
export async function getCourseByMiniProgram(params) {
return request(
'http://api.test.hongbeibang.com/backstage/education/getCourseByMiniProgram',
{
params,
},
);
}
|
define( [
"jquery",
"./helper",
"ui/widgets/datepicker",
"ui/i18n/datepicker-fr",
"ui/i18n/datepicker-he",
"ui/i18n/datepicker-zh-CN",
"ui/ie"
], function( $, testHelper ) {
module( "datepicker: options" );
test( "setDefaults", function() {
expect( 3 );
testHelper.init( "#inp" );
equal( $.datepicker._defaults.showOn, "focus", "Initial showOn" );
$.datepicker.setDefaults( { showOn: "button" } );
equal( $.datepicker._defaults.showOn, "button", "Change default showOn" );
$.datepicker.setDefaults( { showOn: "focus" } );
equal( $.datepicker._defaults.showOn, "focus", "Restore showOn" );
} );
test( "option", function() {
expect( 17 );
var inp = testHelper.init( "#inp" ),
inst = $.data( inp[ 0 ], testHelper.PROP_NAME );
// Set option
equal( inst.settings.showOn, null, "Initial setting showOn" );
equal( $.datepicker._get( inst, "showOn" ), "focus", "Initial instance showOn" );
equal( $.datepicker._defaults.showOn, "focus", "Initial default showOn" );
inp.datepicker( "option", "showOn", "button" );
equal( inst.settings.showOn, "button", "Change setting showOn" );
equal( $.datepicker._get( inst, "showOn" ), "button", "Change instance showOn" );
equal( $.datepicker._defaults.showOn, "focus", "Retain default showOn" );
inp.datepicker( "option", { showOn: "both" } );
equal( inst.settings.showOn, "both", "Change setting showOn" );
equal( $.datepicker._get( inst, "showOn" ), "both", "Change instance showOn" );
equal( $.datepicker._defaults.showOn, "focus", "Retain default showOn" );
inp.datepicker( "option", "showOn", undefined );
equal( inst.settings.showOn, null, "Clear setting showOn" );
equal( $.datepicker._get( inst, "showOn" ), "focus", "Restore instance showOn" );
equal( $.datepicker._defaults.showOn, "focus", "Retain default showOn" );
// Get option
inp = testHelper.init( "#inp" );
equal( inp.datepicker( "option", "showOn" ), "focus", "Initial setting showOn" );
inp.datepicker( "option", "showOn", "button" );
equal( inp.datepicker( "option", "showOn" ), "button", "Change instance showOn" );
inp.datepicker( "option", "showOn", undefined );
equal( inp.datepicker( "option", "showOn" ), "focus", "Reset instance showOn" );
deepEqual( inp.datepicker( "option", "all" ), { showAnim: "" }, "Get instance settings" );
deepEqual( inp.datepicker( "option", "defaults" ), $.datepicker._defaults,
"Get default settings" );
} );
test( "disabled", function() {
expect( 8 );
var inp = testHelper.init( "#inp" );
ok( !inp.datepicker( "isDisabled" ), "Initially marked as enabled" );
ok( !inp[ 0 ].disabled, "Field initially enabled" );
inp.datepicker( "option", "disabled", true );
ok( inp.datepicker( "isDisabled" ), "Marked as disabled" );
ok( inp[ 0 ].disabled, "Field now disabled" );
inp.datepicker( "option", "disabled", false );
ok( !inp.datepicker( "isDisabled" ), "Marked as enabled" );
ok( !inp[ 0 ].disabled, "Field now enabled" );
inp.datepicker( "destroy" );
inp = testHelper.init( "#inp", { disabled: true } );
ok( inp.datepicker( "isDisabled" ), "Initially marked as disabled" );
ok( inp[ 0 ].disabled, "Field initially disabled" );
} );
test( "change", function() {
expect( 12 );
var inp = testHelper.init( "#inp" ),
inst = $.data( inp[ 0 ], testHelper.PROP_NAME );
equal( inst.settings.showOn, null, "Initial setting showOn" );
equal( $.datepicker._get( inst, "showOn" ), "focus", "Initial instance showOn" );
equal( $.datepicker._defaults.showOn, "focus", "Initial default showOn" );
inp.datepicker( "change", "showOn", "button" );
equal( inst.settings.showOn, "button", "Change setting showOn" );
equal( $.datepicker._get( inst, "showOn" ), "button", "Change instance showOn" );
equal( $.datepicker._defaults.showOn, "focus", "Retain default showOn" );
inp.datepicker( "change", { showOn: "both" } );
equal( inst.settings.showOn, "both", "Change setting showOn" );
equal( $.datepicker._get( inst, "showOn" ), "both", "Change instance showOn" );
equal( $.datepicker._defaults.showOn, "focus", "Retain default showOn" );
inp.datepicker( "change", "showOn", undefined );
equal( inst.settings.showOn, null, "Clear setting showOn" );
equal( $.datepicker._get( inst, "showOn" ), "focus", "Restore instance showOn" );
equal( $.datepicker._defaults.showOn, "focus", "Retain default showOn" );
} );
( function() {
var url = window.location.search;
url = decodeURIComponent( url.slice( url.indexOf( "swarmURL=" ) + 9 ) );
// TODO: This test occassionally fails in IE in TestSwarm
if ( $.ui.ie && url && url.indexOf( "http" ) === 0 ) {
return;
}
asyncTest( "invocation", function() {
var button, image,
isOldIE = $.ui.ie && ( !document.documentMode || document.documentMode < 9 ),
body = $( "body" );
expect( isOldIE ? 25 : 29 );
function step0() {
var inp = testHelper.initNewInput(),
dp = $( "#ui-datepicker-div" );
button = inp.siblings( "button" );
ok( button.length === 0, "Focus - button absent" );
image = inp.siblings( "img" );
ok( image.length === 0, "Focus - image absent" );
testHelper.onFocus( inp, function() {
ok( dp.is( ":visible" ), "Focus - rendered on focus" );
inp.simulate( "keydown", { keyCode: $.ui.keyCode.ESCAPE } );
ok( !dp.is( ":visible" ), "Focus - hidden on exit" );
step1();
} );
}
function step1() {
var inp = testHelper.initNewInput(),
dp = $( "#ui-datepicker-div" );
testHelper.onFocus( inp, function() {
ok( dp.is( ":visible" ), "Focus - rendered on focus" );
body.simulate( "mousedown", {} );
ok( !dp.is( ":visible" ), "Focus - hidden on external click" );
inp.datepicker( "hide" ).datepicker( "destroy" );
step2();
} );
}
function step2() {
var inp = testHelper.initNewInput( {
showOn: "button",
buttonText: "Popup"
} ),
dp = $( "#ui-datepicker-div" );
ok( !dp.is( ":visible" ), "Button - initially hidden" );
button = inp.siblings( "button" );
image = inp.siblings( "img" );
ok( button.length === 1, "Button - button present" );
ok( image.length === 0, "Button - image absent" );
equal( button.text(), "Popup", "Button - button text" );
testHelper.onFocus( inp, function() {
ok( !dp.is( ":visible" ), "Button - not rendered on focus" );
button.trigger( "click" );
ok( dp.is( ":visible" ), "Button - rendered on button click" );
button.trigger( "click" );
ok( !dp.is( ":visible" ), "Button - hidden on second button click" );
inp.datepicker( "hide" ).datepicker( "destroy" );
step3();
} );
}
function step3() {
var inp = testHelper.initNewInput( {
showOn: "button",
buttonImageOnly: true,
buttonImage: "images/calendar.gif",
buttonText: "Cal"
} ),
dp = $( "#ui-datepicker-div" );
ok( !dp.is( ":visible" ), "Image button - initially hidden" );
button = inp.siblings( "button" );
ok( button.length === 0, "Image button - button absent" );
image = inp.siblings( "img" );
ok( image.length === 1, "Image button - image present" );
ok( /images\/calendar\.gif$/.test( image.attr( "src" ) ), "Image button - image source" );
equal( image.attr( "title" ), "Cal", "Image button - image text" );
testHelper.onFocus( inp, function() {
ok( !dp.is( ":visible" ), "Image button - not rendered on focus" );
image.trigger( "click" );
ok( dp.is( ":visible" ), "Image button - rendered on image click" );
image.trigger( "click" );
ok( !dp.is( ":visible" ), "Image button - hidden on second image click" );
inp.datepicker( "hide" ).datepicker( "destroy" );
step4();
} );
}
function step4() {
var inp = testHelper.initNewInput( {
showOn: "both",
buttonImage: "images/calendar.gif"
} ),
dp = $( "#ui-datepicker-div" );
ok( !dp.is( ":visible" ), "Both - initially hidden" );
button = inp.siblings( "button" );
ok( button.length === 1, "Both - button present" );
image = inp.siblings( "img" );
ok( image.length === 0, "Both - image absent" );
image = button.children( "img" );
ok( image.length === 1, "Both - button image present" );
// TODO: This test occasionally fails to focus in IE8 in BrowserStack
if ( !isOldIE ) {
testHelper.onFocus( inp, function() {
ok( dp.is( ":visible" ), "Both - rendered on focus" );
body.simulate( "mousedown", {} );
ok( !dp.is( ":visible" ), "Both - hidden on external click" );
button.trigger( "click" );
ok( dp.is( ":visible" ), "Both - rendered on button click" );
button.trigger( "click" );
ok( !dp.is( ":visible" ), "Both - hidden on second button click" );
inp.datepicker( "hide" ).datepicker( "destroy" );
start();
} );
} else {
start();
}
}
step0();
} );
} )();
test( "otherMonths", function() {
expect( 8 );
var inp = testHelper.init( "#inp" ),
pop = $( "#ui-datepicker-div" );
inp.val( "06/01/2009" ).datepicker( "show" );
equal( pop.find( "tbody" ).text(),
// support: IE <9, jQuery <1.8
// In IE7/8 with jQuery <1.8, encoded spaces behave in strange ways
$( "<span>\u00a0123456789101112131415161718192021222324252627282930\u00a0\u00a0\u00a0\u00a0</span>" ).text(),
"Other months - none" );
ok( pop.find( "td:last *" ).length === 0, "Other months - no content" );
inp.datepicker( "hide" ).datepicker( "option", "showOtherMonths", true ).datepicker( "show" );
equal( pop.find( "tbody" ).text(), "311234567891011121314151617181920212223242526272829301234",
"Other months - show" );
ok( pop.find( "td:last span" ).length === 1, "Other months - span content" );
inp.datepicker( "hide" ).datepicker( "option", "selectOtherMonths", true ).datepicker( "show" );
equal( pop.find( "tbody" ).text(), "311234567891011121314151617181920212223242526272829301234",
"Other months - select" );
ok( pop.find( "td:last a" ).length === 1, "Other months - link content" );
inp.datepicker( "hide" ).datepicker( "option", "showOtherMonths", false ).datepicker( "show" );
equal( pop.find( "tbody" ).text(),
// support: IE <9, jQuery <1.8
// In IE7/8 with jQuery <1.8, encoded spaces behave in strange ways
$( "<span>\u00a0123456789101112131415161718192021222324252627282930\u00a0\u00a0\u00a0\u00a0</span>" ).text(),
"Other months - none" );
ok( pop.find( "td:last *" ).length === 0, "Other months - no content" );
} );
test( "defaultDate", function() {
expect( 16 );
var inp = testHelper.init( "#inp" ),
date = new Date();
inp.val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date null" );
// Numeric values
inp.datepicker( "option", { defaultDate: -2 } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
date.setDate( date.getDate() - 2 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date -2" );
date = new Date();
inp.datepicker( "option", { defaultDate: 3 } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
date.setDate( date.getDate() + 3 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date 3" );
date = new Date();
inp.datepicker( "option", { defaultDate: 1 / "a" } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date NaN" );
// String offset values
inp.datepicker( "option", { defaultDate: "-1d" } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
date.setDate( date.getDate() - 1 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date -1d" );
inp.datepicker( "option", { defaultDate: "+3D" } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
date.setDate( date.getDate() + 4 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date +3D" );
inp.datepicker( "option", { defaultDate: " -2 w " } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
date = new Date();
date.setDate( date.getDate() - 14 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date -2 w" );
inp.datepicker( "option", { defaultDate: "+1 W" } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
date.setDate( date.getDate() + 21 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date +1 W" );
inp.datepicker( "option", { defaultDate: " -1 m " } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
date = testHelper.addMonths( new Date(), -1 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date -1 m" );
inp.datepicker( "option", { defaultDate: "+2M" } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
date = testHelper.addMonths( new Date(), 2 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date +2M" );
inp.datepicker( "option", { defaultDate: "-2y" } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
date = new Date();
date.setFullYear( date.getFullYear() - 2 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date -2y" );
inp.datepicker( "option", { defaultDate: "+1 Y " } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
date.setFullYear( date.getFullYear() + 3 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date +1 Y" );
inp.datepicker( "option", { defaultDate: "+1M +10d" } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
date = testHelper.addMonths( new Date(), 1 );
date.setDate( date.getDate() + 10 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date +1M +10d" );
// String date values
inp.datepicker( "option", { defaultDate: "07/04/2007" } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
date = new Date( 2007, 7 - 1, 4 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date 07/04/2007" );
inp.datepicker( "option", { dateFormat: "yy-mm-dd", defaultDate: "2007-04-02" } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
date = new Date( 2007, 4 - 1, 2 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date 2007-04-02" );
// Date value
date = new Date( 2007, 1 - 1, 26 );
inp.datepicker( "option", { dateFormat: "mm/dd/yy", defaultDate: date } ).
datepicker( "hide" ).val( "" ).datepicker( "show" ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
testHelper.equalsDate( inp.datepicker( "getDate" ), date, "Default date 01/26/2007" );
} );
test( "miscellaneous", function() {
expect( 19 );
var curYear, longNames, shortNames, date,
dp = $( "#ui-datepicker-div" ),
inp = testHelper.init( "#inp" );
// Year range
function genRange( start, offset ) {
var i = start,
range = "";
for ( ; i < start + offset; i++ ) {
range += i;
}
return range;
}
curYear = new Date().getFullYear();
inp.val( "02/04/2008" ).datepicker( "show" );
equal( dp.find( ".ui-datepicker-year" ).text(), "2008", "Year range - read-only default" );
inp.datepicker( "hide" ).datepicker( "option", { changeYear: true } ).datepicker( "show" );
equal( dp.find( ".ui-datepicker-year" ).text(), genRange( 2008 - 10, 21 ), "Year range - changeable default" );
inp.datepicker( "hide" ).datepicker( "option", { yearRange: "c-6:c+2", changeYear: true } ).datepicker( "show" );
equal( dp.find( ".ui-datepicker-year" ).text(), genRange( 2008 - 6, 9 ), "Year range - c-6:c+2" );
inp.datepicker( "hide" ).datepicker( "option", { yearRange: "2000:2010", changeYear: true } ).datepicker( "show" );
equal( dp.find( ".ui-datepicker-year" ).text(), genRange( 2000, 11 ), "Year range - 2000:2010" );
inp.datepicker( "hide" ).datepicker( "option", { yearRange: "-5:+3", changeYear: true } ).datepicker( "show" );
equal( dp.find( ".ui-datepicker-year" ).text(), genRange( curYear - 5, 9 ), "Year range - -5:+3" );
inp.datepicker( "hide" ).datepicker( "option", { yearRange: "2000:-5", changeYear: true } ).datepicker( "show" );
equal( dp.find( ".ui-datepicker-year" ).text(), genRange( 2000, curYear - 2004 ), "Year range - 2000:-5" );
inp.datepicker( "hide" ).datepicker( "option", { yearRange: "", changeYear: true } ).datepicker( "show" );
equal( dp.find( ".ui-datepicker-year" ).text(), genRange( curYear, 1 ), "Year range - -6:+2" );
// Navigation as date format
inp.datepicker( "option", { showButtonPanel: true } );
equal( dp.find( ".ui-datepicker-prev" ).text(), "Prev", "Navigation prev - default" );
equal( dp.find( ".ui-datepicker-current" ).text(), "Today", "Navigation current - default" );
equal( dp.find( ".ui-datepicker-next" ).text(), "Next", "Navigation next - default" );
inp.datepicker( "hide" ).datepicker( "option", { navigationAsDateFormat: true, prevText: "< M", currentText: "MM", nextText: "M >" } ).
val( "02/04/2008" ).datepicker( "show" );
longNames = $.datepicker.regional[ "" ].monthNames;
shortNames = $.datepicker.regional[ "" ].monthNamesShort;
date = new Date();
equal( dp.find( ".ui-datepicker-prev" ).text(), "< " + shortNames[ 0 ], "Navigation prev - as date format" );
equal( dp.find( ".ui-datepicker-current" ).text(),
longNames[ date.getMonth() ], "Navigation current - as date format" );
equal( dp.find( ".ui-datepicker-next" ).text(),
shortNames[ 2 ] + " >", "Navigation next - as date format" );
inp.simulate( "keydown", { keyCode: $.ui.keyCode.PAGE_DOWN } );
equal( dp.find( ".ui-datepicker-prev" ).text(),
"< " + shortNames[ 1 ], "Navigation prev - as date format + pgdn" );
equal( dp.find( ".ui-datepicker-current" ).text(),
longNames[ date.getMonth() ], "Navigation current - as date format + pgdn" );
equal( dp.find( ".ui-datepicker-next" ).text(),
shortNames[ 3 ] + " >", "Navigation next - as date format + pgdn" );
inp.datepicker( "hide" ).datepicker( "option", { gotoCurrent: true } ).
val( "02/04/2008" ).datepicker( "show" );
equal( dp.find( ".ui-datepicker-prev" ).text(),
"< " + shortNames[ 0 ], "Navigation prev - as date format + goto current" );
equal( dp.find( ".ui-datepicker-current" ).text(),
longNames[ 1 ], "Navigation current - as date format + goto current" );
equal( dp.find( ".ui-datepicker-next" ).text(),
shortNames[ 2 ] + " >", "Navigation next - as date format + goto current" );
} );
test( "minMax", function() {
expect( 23 );
var date,
inp = testHelper.init( "#inp" ),
dp = $( "#ui-datepicker-div" ),
lastYear = new Date( 2007, 6 - 1, 4 ),
nextYear = new Date( 2009, 6 - 1, 4 ),
minDate = new Date( 2008, 2 - 1, 29 ),
maxDate = new Date( 2008, 12 - 1, 7 );
inp.val( "06/04/2008" ).datepicker( "show" );
inp.simulate( "keydown", { ctrlKey: true, keyCode: $.ui.keyCode.PAGE_UP } ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
testHelper.equalsDate( inp.datepicker( "getDate" ), lastYear,
"Min/max - null, null - ctrl+pgup" );
inp.val( "06/04/2008" ).datepicker( "show" );
inp.simulate( "keydown", { ctrlKey: true, keyCode: $.ui.keyCode.PAGE_DOWN } ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
testHelper.equalsDate( inp.datepicker( "getDate" ), nextYear,
"Min/max - null, null - ctrl+pgdn" );
inp.datepicker( "option", { minDate: minDate } ).
datepicker( "hide" ).val( "06/04/2008" ).datepicker( "show" );
inp.simulate( "keydown", { ctrlKey: true, keyCode: $.ui.keyCode.PAGE_UP } ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
testHelper.equalsDate( inp.datepicker( "getDate" ), minDate,
"Min/max - 02/29/2008, null - ctrl+pgup" );
inp.val( "06/04/2008" ).datepicker( "show" );
inp.simulate( "keydown", { ctrlKey: true, keyCode: $.ui.keyCode.PAGE_DOWN } ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
testHelper.equalsDate( inp.datepicker( "getDate" ), nextYear,
"Min/max - 02/29/2008, null - ctrl+pgdn" );
inp.datepicker( "option", { maxDate: maxDate } ).
datepicker( "hide" ).val( "06/04/2008" ).datepicker( "show" );
inp.simulate( "keydown", { ctrlKey: true, keyCode: $.ui.keyCode.PAGE_UP } ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
testHelper.equalsDate( inp.datepicker( "getDate" ), minDate,
"Min/max - 02/29/2008, 12/07/2008 - ctrl+pgup" );
inp.val( "06/04/2008" ).datepicker( "show" );
inp.simulate( "keydown", { ctrlKey: true, keyCode: $.ui.keyCode.PAGE_DOWN } ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
testHelper.equalsDate( inp.datepicker( "getDate" ), maxDate,
"Min/max - 02/29/2008, 12/07/2008 - ctrl+pgdn" );
inp.datepicker( "option", { minDate: null } ).
datepicker( "hide" ).val( "06/04/2008" ).datepicker( "show" );
inp.simulate( "keydown", { ctrlKey: true, keyCode: $.ui.keyCode.PAGE_UP } ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
testHelper.equalsDate( inp.datepicker( "getDate" ), lastYear,
"Min/max - null, 12/07/2008 - ctrl+pgup" );
inp.val( "06/04/2008" ).datepicker( "show" );
inp.simulate( "keydown", { ctrlKey: true, keyCode: $.ui.keyCode.PAGE_DOWN } ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
testHelper.equalsDate( inp.datepicker( "getDate" ), maxDate,
"Min/max - null, 12/07/2008 - ctrl+pgdn" );
// Relative dates
date = new Date();
date.setDate( date.getDate() - 7 );
inp.datepicker( "option", { minDate: "-1w", maxDate: "+1 M +10 D " } ).
datepicker( "hide" ).val( "" ).datepicker( "show" );
inp.simulate( "keydown", { ctrlKey: true, keyCode: $.ui.keyCode.PAGE_UP } ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
testHelper.equalsDate( inp.datepicker( "getDate" ), date,
"Min/max - -1w, +1 M +10 D - ctrl+pgup" );
date = testHelper.addMonths( new Date(), 1 );
date.setDate( date.getDate() + 10 );
inp.val( "" ).datepicker( "show" );
inp.simulate( "keydown", { ctrlKey: true, keyCode: $.ui.keyCode.PAGE_DOWN } ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
testHelper.equalsDate( inp.datepicker( "getDate" ), date,
"Min/max - -1w, +1 M +10 D - ctrl+pgdn" );
// With existing date
inp = testHelper.init( "#inp" );
inp.val( "06/04/2008" ).datepicker( "option", { minDate: minDate } );
testHelper.equalsDate( inp.datepicker( "getDate" ), new Date( 2008, 6 - 1, 4 ), "Min/max - setDate > min" );
inp.datepicker( "option", { minDate: null } ).val( "01/04/2008" ).datepicker( "option", { minDate: minDate } );
testHelper.equalsDate( inp.datepicker( "getDate" ), minDate, "Min/max - setDate < min" );
inp.datepicker( "option", { minDate: null } ).val( "06/04/2008" ).datepicker( "option", { maxDate: maxDate } );
testHelper.equalsDate( inp.datepicker( "getDate" ), new Date( 2008, 6 - 1, 4 ), "Min/max - setDate < max" );
inp.datepicker( "option", { maxDate: null } ).val( "01/04/2009" ).datepicker( "option", { maxDate: maxDate } );
testHelper.equalsDate( inp.datepicker( "getDate" ), maxDate, "Min/max - setDate > max" );
inp.datepicker( "option", { maxDate: null } ).val( "01/04/2008" ).datepicker( "option", { minDate: minDate, maxDate: maxDate } );
testHelper.equalsDate( inp.datepicker( "getDate" ), minDate, "Min/max - setDate < min" );
inp.datepicker( "option", { maxDate: null } ).val( "06/04/2008" ).datepicker( "option", { minDate: minDate, maxDate: maxDate } );
testHelper.equalsDate( inp.datepicker( "getDate" ), new Date( 2008, 6 - 1, 4 ), "Min/max - setDate > min, < max" );
inp.datepicker( "option", { maxDate: null } ).val( "01/04/2009" ).datepicker( "option", { minDate: minDate, maxDate: maxDate } );
testHelper.equalsDate( inp.datepicker( "getDate" ), maxDate, "Min/max - setDate > max" );
inp.datepicker( "option", { yearRange: "-0:+1" } ).val( "01/01/" + new Date().getFullYear() );
ok( dp.find( ".ui-datepicker-prev" ).hasClass( "ui-state-disabled" ), "Year Range Test - previous button disabled at 1/1/minYear" );
inp.datepicker( "setDate", "12/30/" + new Date().getFullYear() );
ok( dp.find( ".ui-datepicker-next" ).hasClass( "ui-state-disabled" ), "Year Range Test - next button disabled at 12/30/maxYear" );
inp.datepicker( "option", {
minDate: new Date( 1900, 0, 1 ),
maxDate: "-7Y",
yearRange: "1900:-7"
} ).val( "" );
ok( dp.find( ".ui-datepicker-next" ).hasClass( "ui-state-disabled" ), "Year Range Test - relative - next button disabled" );
ok( !dp.find( ".ui-datepicker-prev" ).hasClass( "ui-state-disabled" ), "Year Range Test - relative - prev button enabled" );
inp.datepicker( "option", {
minDate: new Date( 1900, 0, 1 ),
maxDate: "1/25/2007",
yearRange: "1900:2007"
} ).val( "" );
ok( dp.find( ".ui-datepicker-next" ).hasClass( "ui-state-disabled" ), "Year Range Test - absolute - next button disabled" );
ok( !dp.find( ".ui-datepicker-prev" ).hasClass( "ui-state-disabled" ), "Year Range Test - absolute - prev button enabled" );
} );
test( "setDate", function() {
expect( 24 );
var inl, alt, minDate, maxDate, dateAndTimeToSet, dateAndTimeClone,
inp = testHelper.init( "#inp" ),
date1 = new Date( 2008, 6 - 1, 4 ),
date2 = new Date();
ok( inp.datepicker( "getDate" ) == null, "Set date - default" );
inp.datepicker( "setDate", date1 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date1, "Set date - 2008-06-04" );
date1 = new Date();
date1.setDate( date1.getDate() + 7 );
inp.datepicker( "setDate", +7 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date1, "Set date - +7" );
date2.setFullYear( date2.getFullYear() + 2 );
inp.datepicker( "setDate", "+2y" );
testHelper.equalsDate( inp.datepicker( "getDate" ), date2, "Set date - +2y" );
inp.datepicker( "setDate", date1, date2 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date1, "Set date - two dates" );
inp.datepicker( "setDate" );
ok( inp.datepicker( "getDate" ) == null, "Set date - null" );
// Relative to current date
date1 = new Date();
date1.setDate( date1.getDate() + 7 );
inp.datepicker( "setDate", "c +7" );
testHelper.equalsDate( inp.datepicker( "getDate" ), date1, "Set date - c +7" );
date1.setDate( date1.getDate() + 7 );
inp.datepicker( "setDate", "c+7" );
testHelper.equalsDate( inp.datepicker( "getDate" ), date1, "Set date - c+7" );
date1.setDate( date1.getDate() - 21 );
inp.datepicker( "setDate", "c -3 w" );
testHelper.equalsDate( inp.datepicker( "getDate" ), date1, "Set date - c -3 w" );
// Inline
inl = testHelper.init( "#inl" );
date1 = new Date( 2008, 6 - 1, 4 );
date2 = new Date();
testHelper.equalsDate( inl.datepicker( "getDate" ), date2, "Set date inline - default" );
inl.datepicker( "setDate", date1 );
testHelper.equalsDate( inl.datepicker( "getDate" ), date1, "Set date inline - 2008-06-04" );
date1 = new Date();
date1.setDate( date1.getDate() + 7 );
inl.datepicker( "setDate", +7 );
testHelper.equalsDate( inl.datepicker( "getDate" ), date1, "Set date inline - +7" );
date2.setFullYear( date2.getFullYear() + 2 );
inl.datepicker( "setDate", "+2y" );
testHelper.equalsDate( inl.datepicker( "getDate" ), date2, "Set date inline - +2y" );
inl.datepicker( "setDate", date1, date2 );
testHelper.equalsDate( inl.datepicker( "getDate" ), date1, "Set date inline - two dates" );
inl.datepicker( "setDate" );
ok( inl.datepicker( "getDate" ) == null, "Set date inline - null" );
// Alternate field
alt = $( "#alt" );
inp.datepicker( "option", { altField: "#alt", altFormat: "yy-mm-dd" } );
date1 = new Date( 2008, 6 - 1, 4 );
inp.datepicker( "setDate", date1 );
equal( inp.val(), "06/04/2008", "Set date alternate - 06/04/2008" );
equal( alt.val(), "2008-06-04", "Set date alternate - 2008-06-04" );
// With minimum/maximum
inp = testHelper.init( "#inp" );
date1 = new Date( 2008, 1 - 1, 4 );
date2 = new Date( 2008, 6 - 1, 4 );
minDate = new Date( 2008, 2 - 1, 29 );
maxDate = new Date( 2008, 3 - 1, 28 );
inp.val( "" ).datepicker( "option", { minDate: minDate } ).datepicker( "setDate", date2 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date2, "Set date min/max - setDate > min" );
inp.datepicker( "setDate", date1 );
testHelper.equalsDate( inp.datepicker( "getDate" ), minDate, "Set date min/max - setDate < min" );
inp.val( "" ).datepicker( "option", { maxDate: maxDate, minDate: null } ).datepicker( "setDate", date1 );
testHelper.equalsDate( inp.datepicker( "getDate" ), date1, "Set date min/max - setDate < max" );
inp.datepicker( "setDate", date2 );
testHelper.equalsDate( inp.datepicker( "getDate" ), maxDate, "Set date min/max - setDate > max" );
inp.val( "" ).datepicker( "option", { minDate: minDate } ).datepicker( "setDate", date1 );
testHelper.equalsDate( inp.datepicker( "getDate" ), minDate, "Set date min/max - setDate < min" );
inp.datepicker( "setDate", date2 );
testHelper.equalsDate( inp.datepicker( "getDate" ), maxDate, "Set date min/max - setDate > max" );
dateAndTimeToSet = new Date( 2008, 3 - 1, 28, 1, 11, 0 );
dateAndTimeClone = new Date( 2008, 3 - 1, 28, 1, 11, 0 );
inp.datepicker( "setDate", dateAndTimeToSet );
equal( dateAndTimeToSet.getTime(), dateAndTimeClone.getTime(), "Date object passed should not be changed by setDate" );
} );
test( "altField", function() {
expect( 10 );
var inp = testHelper.init( "#inp" ),
alt = $( "#alt" );
// No alternate field set
alt.val( "" );
inp.val( "06/04/2008" ).datepicker( "show" );
inp.simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
equal( inp.val(), "06/04/2008", "Alt field - dp - enter" );
equal( alt.val(), "", "Alt field - alt not set" );
// Alternate field set
alt.val( "" );
inp.datepicker( "option", { altField: "#alt", altFormat: "yy-mm-dd" } ).
val( "06/04/2008" ).datepicker( "show" );
inp.simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
equal( inp.val(), "06/04/2008", "Alt field - dp - enter" );
equal( alt.val(), "2008-06-04", "Alt field - alt - enter" );
// Move from initial date
alt.val( "" );
inp.val( "06/04/2008" ).datepicker( "show" );
inp.simulate( "keydown", { keyCode: $.ui.keyCode.PAGE_DOWN } ).
simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
equal( inp.val(), "07/04/2008", "Alt field - dp - pgdn" );
equal( alt.val(), "2008-07-04", "Alt field - alt - pgdn" );
// Alternate field set - closed
alt.val( "" );
inp.val( "06/04/2008" ).datepicker( "show" );
inp.simulate( "keydown", { keyCode: $.ui.keyCode.PAGE_DOWN } ).
simulate( "keydown", { keyCode: $.ui.keyCode.ESCAPE } );
equal( inp.val(), "06/04/2008", "Alt field - dp - pgdn/esc" );
equal( alt.val(), "", "Alt field - alt - pgdn/esc" );
// Clear date and alternate
alt.val( "" );
inp.val( "06/04/2008" ).datepicker( "show" );
inp.simulate( "keydown", { ctrlKey: true, keyCode: $.ui.keyCode.END } );
equal( inp.val(), "", "Alt field - dp - ctrl+end" );
equal( alt.val(), "", "Alt field - alt - ctrl+end" );
} );
test( "autoSize", function() {
expect( 15 );
var inp = testHelper.init( "#inp" );
equal( inp.prop( "size" ), 20, "Auto size - default" );
inp.datepicker( "option", "autoSize", true );
equal( inp.prop( "size" ), 10, "Auto size - mm/dd/yy" );
inp.datepicker( "option", "dateFormat", "m/d/yy" );
equal( inp.prop( "size" ), 10, "Auto size - m/d/yy" );
inp.datepicker( "option", "dateFormat", "D M d yy" );
equal( inp.prop( "size" ), 15, "Auto size - D M d yy" );
inp.datepicker( "option", "dateFormat", "DD, MM dd, yy" );
equal( inp.prop( "size" ), 29, "Auto size - DD, MM dd, yy" );
// French
inp.datepicker( "option", $.extend( { autoSize: false }, $.datepicker.regional.fr ) );
equal( inp.prop( "size" ), 29, "Auto size - fr - default" );
inp.datepicker( "option", "autoSize", true );
equal( inp.prop( "size" ), 10, "Auto size - fr - dd/mm/yy" );
inp.datepicker( "option", "dateFormat", "m/d/yy" );
equal( inp.prop( "size" ), 10, "Auto size - fr - m/d/yy" );
inp.datepicker( "option", "dateFormat", "D M d yy" );
equal( inp.prop( "size" ), 18, "Auto size - fr - D M d yy" );
inp.datepicker( "option", "dateFormat", "DD, MM dd, yy" );
equal( inp.prop( "size" ), 28, "Auto size - fr - DD, MM dd, yy" );
// Hebrew
inp.datepicker( "option", $.extend( { autoSize: false }, $.datepicker.regional.he ) );
equal( inp.prop( "size" ), 28, "Auto size - he - default" );
inp.datepicker( "option", "autoSize", true );
equal( inp.prop( "size" ), 10, "Auto size - he - dd/mm/yy" );
inp.datepicker( "option", "dateFormat", "m/d/yy" );
equal( inp.prop( "size" ), 10, "Auto size - he - m/d/yy" );
inp.datepicker( "option", "dateFormat", "D M d yy" );
equal( inp.prop( "size" ), 16, "Auto size - he - D M d yy" );
inp.datepicker( "option", "dateFormat", "DD, MM dd, yy" );
equal( inp.prop( "size" ), 23, "Auto size - he - DD, MM dd, yy" );
} );
test( "daylightSaving", function() {
expect( 25 );
var inp = testHelper.init( "#inp" ),
dp = $( "#ui-datepicker-div" );
ok( true, "Daylight saving - " + new Date() );
// Australia, Sydney - AM change, southern hemisphere
inp.val( "04/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(6) a", dp ).simulate( "click" );
equal( inp.val(), "04/05/2008", "Daylight saving - Australia 04/05/2008" );
inp.val( "04/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(7) a", dp ).simulate( "click" );
equal( inp.val(), "04/06/2008", "Daylight saving - Australia 04/06/2008" );
inp.val( "04/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(8) a", dp ).simulate( "click" );
equal( inp.val(), "04/07/2008", "Daylight saving - Australia 04/07/2008" );
inp.val( "10/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(6) a", dp ).simulate( "click" );
equal( inp.val(), "10/04/2008", "Daylight saving - Australia 10/04/2008" );
inp.val( "10/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(7) a", dp ).simulate( "click" );
equal( inp.val(), "10/05/2008", "Daylight saving - Australia 10/05/2008" );
inp.val( "10/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(8) a", dp ).simulate( "click" );
equal( inp.val(), "10/06/2008", "Daylight saving - Australia 10/06/2008" );
// Brasil, Brasilia - midnight change, southern hemisphere
inp.val( "02/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(20) a", dp ).simulate( "click" );
equal( inp.val(), "02/16/2008", "Daylight saving - Brasil 02/16/2008" );
inp.val( "02/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(21) a", dp ).simulate( "click" );
equal( inp.val(), "02/17/2008", "Daylight saving - Brasil 02/17/2008" );
inp.val( "02/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(22) a", dp ).simulate( "click" );
equal( inp.val(), "02/18/2008", "Daylight saving - Brasil 02/18/2008" );
inp.val( "10/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(13) a", dp ).simulate( "click" );
equal( inp.val(), "10/11/2008", "Daylight saving - Brasil 10/11/2008" );
inp.val( "10/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(14) a", dp ).simulate( "click" );
equal( inp.val(), "10/12/2008", "Daylight saving - Brasil 10/12/2008" );
inp.val( "10/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(15) a", dp ).simulate( "click" );
equal( inp.val(), "10/13/2008", "Daylight saving - Brasil 10/13/2008" );
// Lebanon, Beirut - midnight change, northern hemisphere
inp.val( "03/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(34) a", dp ).simulate( "click" );
equal( inp.val(), "03/29/2008", "Daylight saving - Lebanon 03/29/2008" );
inp.val( "03/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(35) a", dp ).simulate( "click" );
equal( inp.val(), "03/30/2008", "Daylight saving - Lebanon 03/30/2008" );
inp.val( "03/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(36) a", dp ).simulate( "click" );
equal( inp.val(), "03/31/2008", "Daylight saving - Lebanon 03/31/2008" );
inp.val( "10/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(27) a", dp ).simulate( "click" );
equal( inp.val(), "10/25/2008", "Daylight saving - Lebanon 10/25/2008" );
inp.val( "10/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(28) a", dp ).simulate( "click" );
equal( inp.val(), "10/26/2008", "Daylight saving - Lebanon 10/26/2008" );
inp.val( "10/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(29) a", dp ).simulate( "click" );
equal( inp.val(), "10/27/2008", "Daylight saving - Lebanon 10/27/2008" );
// US, Eastern - AM change, northern hemisphere
inp.val( "03/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(13) a", dp ).simulate( "click" );
equal( inp.val(), "03/08/2008", "Daylight saving - US 03/08/2008" );
inp.val( "03/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(14) a", dp ).simulate( "click" );
equal( inp.val(), "03/09/2008", "Daylight saving - US 03/09/2008" );
inp.val( "03/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(15) a", dp ).simulate( "click" );
equal( inp.val(), "03/10/2008", "Daylight saving - US 03/10/2008" );
inp.val( "11/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(6) a", dp ).simulate( "click" );
equal( inp.val(), "11/01/2008", "Daylight saving - US 11/01/2008" );
inp.val( "11/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(7) a", dp ).simulate( "click" );
equal( inp.val(), "11/02/2008", "Daylight saving - US 11/02/2008" );
inp.val( "11/01/2008" ).datepicker( "show" );
$( ".ui-datepicker-calendar td:eq(8) a", dp ).simulate( "click" );
equal( inp.val(), "11/03/2008", "Daylight saving - US 11/03/2008" );
} );
var beforeShowThis = null,
beforeShowInput = null,
beforeShowInst = null,
beforeShowDayThis = null,
beforeShowDayOK = true;
function beforeAll( input, inst ) {
beforeShowThis = this;
beforeShowInput = input;
beforeShowInst = inst;
return { currentText: "Current" };
}
function beforeDay( date ) {
beforeShowDayThis = this;
beforeShowDayOK &= ( date > new Date( 2008, 1 - 1, 26 ) &&
date < new Date( 2008, 3 - 1, 6 ) );
return [ ( date.getDate() % 2 === 0 ), ( date.getDate() % 10 === 0 ? "day10" : "" ),
( date.getDate() % 3 === 0 ? "Divisble by 3" : "" ) ];
}
test( "callbacks", function() {
expect( 13 );
// Before show
var dp, day20, day21,
inp = testHelper.init( "#inp", { beforeShow: beforeAll } ),
inst = $.data( inp[ 0 ], "datepicker" );
equal( $.datepicker._get( inst, "currentText" ), "Today", "Before show - initial" );
inp.val( "02/04/2008" ).datepicker( "show" );
equal( $.datepicker._get( inst, "currentText" ), "Current", "Before show - changed" );
ok( beforeShowThis.id === inp[ 0 ].id, "Before show - this OK" );
ok( beforeShowInput.id === inp[ 0 ].id, "Before show - input OK" );
deepEqual( beforeShowInst, inst, "Before show - inst OK" );
inp.datepicker( "hide" ).datepicker( "destroy" );
// Before show day
inp = testHelper.init( "#inp", { beforeShowDay: beforeDay } );
dp = $( "#ui-datepicker-div" );
inp.val( "02/04/2008" ).datepicker( "show" );
ok( beforeShowDayThis.id === inp[ 0 ].id, "Before show day - this OK" );
ok( beforeShowDayOK, "Before show day - dates OK" );
day20 = dp.find( ".ui-datepicker-calendar td:contains('20')" );
day21 = dp.find( ".ui-datepicker-calendar td:contains('21')" );
ok( !day20.is( ".ui-datepicker-unselectable" ), "Before show day - unselectable 20" );
ok( day21.is( ".ui-datepicker-unselectable" ), "Before show day - unselectable 21" );
ok( day20.is( ".day10" ), "Before show day - CSS 20" );
ok( !day21.is( ".day10" ), "Before show day - CSS 21" );
ok( !day20.attr( "title" ), "Before show day - title 20" );
ok( day21.attr( "title" ) === "Divisble by 3", "Before show day - title 21" );
inp.datepicker( "hide" ).datepicker( "destroy" );
} );
test( "beforeShowDay - tooltips with quotes", function() {
expect( 1 );
var inp, dp;
inp = testHelper.init( "#inp", {
beforeShowDay: function() {
return [ true, "", "'" ];
}
} );
dp = $( "#ui-datepicker-div" );
inp.datepicker( "show" );
equal( dp.find( ".ui-datepicker-calendar td:contains('9')" ).attr( "title" ), "'" );
inp.datepicker( "hide" ).datepicker( "destroy" );
} );
test( "localisation", function() {
expect( 24 );
var dp, month, day, date,
inp = testHelper.init( "#inp", $.datepicker.regional.fr );
inp.datepicker( "option", { dateFormat: "DD, d MM yy", showButtonPanel:true, changeMonth:true, changeYear:true } ).val( "" ).datepicker( "show" );
dp = $( "#ui-datepicker-div" );
equal( $( ".ui-datepicker-close", dp ).text(), "Fermer", "Localisation - close" );
$( ".ui-datepicker-close", dp ).simulate( "mouseover" );
equal( $( ".ui-datepicker-prev", dp ).text(), "Précédent", "Localisation - previous" );
equal( $( ".ui-datepicker-current", dp ).text(), "Aujourd'hui", "Localisation - current" );
equal( $( ".ui-datepicker-next", dp ).text(), "Suivant", "Localisation - next" );
month = 0;
$( ".ui-datepicker-month option", dp ).each( function() {
equal( $( this ).text(), $.datepicker.regional.fr.monthNamesShort[ month ],
"Localisation - month " + month );
month++;
} );
day = 1;
$( ".ui-datepicker-calendar th", dp ).each( function() {
equal( $( this ).text(), $.datepicker.regional.fr.dayNamesMin[ day ],
"Localisation - day " + day );
day = ( day + 1 ) % 7;
} );
inp.simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } );
date = new Date();
equal( inp.val(), $.datepicker.regional.fr.dayNames[ date.getDay() ] + ", " +
date.getDate() + " " + $.datepicker.regional.fr.monthNames[ date.getMonth() ] +
" " + date.getFullYear(), "Localisation - formatting" );
} );
test( "noWeekends", function() {
expect( 31 );
var i, date;
for ( i = 1; i <= 31; i++ ) {
date = new Date( 2001, 1 - 1, i );
deepEqual( $.datepicker.noWeekends( date ), [ ( i + 1 ) % 7 >= 2, "" ],
"No weekends " + date );
}
} );
test( "iso8601Week", function() {
expect( 12 );
var date = new Date( 2000, 12 - 1, 31 );
equal( $.datepicker.iso8601Week( date ), 52, "ISO 8601 week " + date );
date = new Date( 2001, 1 - 1, 1 );
equal( $.datepicker.iso8601Week( date ), 1, "ISO 8601 week " + date );
date = new Date( 2001, 1 - 1, 7 );
equal( $.datepicker.iso8601Week( date ), 1, "ISO 8601 week " + date );
date = new Date( 2001, 1 - 1, 8 );
equal( $.datepicker.iso8601Week( date ), 2, "ISO 8601 week " + date );
date = new Date( 2003, 12 - 1, 28 );
equal( $.datepicker.iso8601Week( date ), 52, "ISO 8601 week " + date );
date = new Date( 2003, 12 - 1, 29 );
equal( $.datepicker.iso8601Week( date ), 1, "ISO 8601 week " + date );
date = new Date( 2004, 1 - 1, 4 );
equal( $.datepicker.iso8601Week( date ), 1, "ISO 8601 week " + date );
date = new Date( 2004, 1 - 1, 5 );
equal( $.datepicker.iso8601Week( date ), 2, "ISO 8601 week " + date );
date = new Date( 2009, 12 - 1, 28 );
equal( $.datepicker.iso8601Week( date ), 53, "ISO 8601 week " + date );
date = new Date( 2010, 1 - 1, 3 );
equal( $.datepicker.iso8601Week( date ), 53, "ISO 8601 week " + date );
date = new Date( 2010, 1 - 1, 4 );
equal( $.datepicker.iso8601Week( date ), 1, "ISO 8601 week " + date );
date = new Date( 2010, 1 - 1, 10 );
equal( $.datepicker.iso8601Week( date ), 1, "ISO 8601 week " + date );
} );
test( "parseDate", function() {
expect( 26 );
testHelper.init( "#inp" );
var currentYear, gmtDate, fr, settings, zh;
ok( $.datepicker.parseDate( "d m y", "" ) == null, "Parse date empty" );
testHelper.equalsDate( $.datepicker.parseDate( "d m y", "3 2 01" ),
new Date( 2001, 2 - 1, 3 ), "Parse date d m y" );
testHelper.equalsDate( $.datepicker.parseDate( "dd mm yy", "03 02 2001" ),
new Date( 2001, 2 - 1, 3 ), "Parse date dd mm yy" );
testHelper.equalsDate( $.datepicker.parseDate( "d m y", "13 12 01" ),
new Date( 2001, 12 - 1, 13 ), "Parse date d m y" );
testHelper.equalsDate( $.datepicker.parseDate( "dd mm yy", "13 12 2001" ),
new Date( 2001, 12 - 1, 13 ), "Parse date dd mm yy" );
testHelper.equalsDate( $.datepicker.parseDate( "y-o", "01-34" ),
new Date( 2001, 2 - 1, 3 ), "Parse date y-o" );
testHelper.equalsDate( $.datepicker.parseDate( "yy-oo", "2001-347" ),
new Date( 2001, 12 - 1, 13 ), "Parse date yy-oo" );
testHelper.equalsDate( $.datepicker.parseDate( "oo yy", "348 2004" ),
new Date( 2004, 12 - 1, 13 ), "Parse date oo yy" );
testHelper.equalsDate( $.datepicker.parseDate( "D d M y", "Sat 3 Feb 01" ),
new Date( 2001, 2 - 1, 3 ), "Parse date D d M y" );
testHelper.equalsDate( $.datepicker.parseDate( "d MM DD yy", "3 February Saturday 2001" ),
new Date( 2001, 2 - 1, 3 ), "Parse date dd MM DD yy" );
testHelper.equalsDate( $.datepicker.parseDate( "DD, MM d, yy", "Saturday, February 3, 2001" ),
new Date( 2001, 2 - 1, 3 ), "Parse date DD, MM d, yy" );
testHelper.equalsDate( $.datepicker.parseDate( "'day' d 'of' MM (''DD''), yy",
"day 3 of February ('Saturday'), 2001" ), new Date( 2001, 2 - 1, 3 ),
"Parse date 'day' d 'of' MM (''DD''), yy" );
currentYear = new Date().getFullYear();
testHelper.equalsDate( $.datepicker.parseDate( "y-m-d", ( currentYear - 2000 ) + "-02-03" ),
new Date( currentYear, 2 - 1, 3 ), "Parse date y-m-d - default cutuff" );
testHelper.equalsDate( $.datepicker.parseDate( "y-m-d", ( currentYear - 2000 + 10 ) + "-02-03" ),
new Date( currentYear + 10, 2 - 1, 3 ), "Parse date y-m-d - default cutuff" );
testHelper.equalsDate( $.datepicker.parseDate( "y-m-d", ( currentYear - 2000 + 11 ) + "-02-03" ),
new Date( currentYear - 89, 2 - 1, 3 ), "Parse date y-m-d - default cutuff" );
testHelper.equalsDate( $.datepicker.parseDate( "y-m-d", "80-02-03", { shortYearCutoff: 80 } ),
new Date( 2080, 2 - 1, 3 ), "Parse date y-m-d - cutoff 80" );
testHelper.equalsDate( $.datepicker.parseDate( "y-m-d", "81-02-03", { shortYearCutoff: 80 } ),
new Date( 1981, 2 - 1, 3 ), "Parse date y-m-d - cutoff 80" );
testHelper.equalsDate( $.datepicker.parseDate( "y-m-d", ( currentYear - 2000 + 60 ) + "-02-03", { shortYearCutoff: "+60" } ),
new Date( currentYear + 60, 2 - 1, 3 ), "Parse date y-m-d - cutoff +60" );
testHelper.equalsDate( $.datepicker.parseDate( "y-m-d", ( currentYear - 2000 + 61 ) + "-02-03", { shortYearCutoff: "+60" } ),
new Date( currentYear - 39, 2 - 1, 3 ), "Parse date y-m-d - cutoff +60" );
gmtDate = new Date( 2001, 2 - 1, 3 );
gmtDate.setMinutes( gmtDate.getMinutes() - gmtDate.getTimezoneOffset() );
testHelper.equalsDate( $.datepicker.parseDate( "@", "981158400000" ), gmtDate, "Parse date @" );
testHelper.equalsDate( $.datepicker.parseDate( "!", "631167552000000000" ), gmtDate, "Parse date !" );
fr = $.datepicker.regional.fr;
settings = { dayNamesShort: fr.dayNamesShort, dayNames: fr.dayNames,
monthNamesShort: fr.monthNamesShort, monthNames: fr.monthNames };
testHelper.equalsDate( $.datepicker.parseDate( "D d M y", "Lun. 9 avr. 01", settings ),
new Date( 2001, 4 - 1, 9 ), "Parse date D M y with settings" );
testHelper.equalsDate( $.datepicker.parseDate( "d MM DD yy", "9 Avril Lundi 2001", settings ),
new Date( 2001, 4 - 1, 9 ), "Parse date d MM DD yy with settings" );
testHelper.equalsDate( $.datepicker.parseDate( "DD, MM d, yy", "Lundi, Avril 9, 2001", settings ),
new Date( 2001, 4 - 1, 9 ), "Parse date DD, MM d, yy with settings" );
testHelper.equalsDate( $.datepicker.parseDate( "'jour' d 'de' MM (''DD''), yy", "jour 9 de Avril ('Lundi'), 2001", settings ),
new Date( 2001, 4 - 1, 9 ), "Parse date 'jour' d 'de' MM (''DD''), yy with settings" );
zh = $.datepicker.regional[ "zh-CN" ];
testHelper.equalsDate( $.datepicker.parseDate( "yy M d", "2011 十一月 22", zh ),
new Date( 2011, 11 - 1, 22 ), "Parse date yy M d with zh-CN" );
} );
test( "parseDateErrors", function() {
expect( 18 );
testHelper.init( "#inp" );
var fr, settings;
function expectError( expr, value, error ) {
try {
expr();
ok( false, "Parsed error " + value );
}
catch ( e ) {
equal( e, error, "Parsed error " + value );
}
}
expectError( function() { $.datepicker.parseDate( null, "Sat 2 01" ); },
"Sat 2 01", "Invalid arguments" );
expectError( function() { $.datepicker.parseDate( "d m y", null ); },
"null", "Invalid arguments" );
expectError( function() { $.datepicker.parseDate( "d m y", "Sat 2 01" ); },
"Sat 2 01 - d m y", "Missing number at position 0" );
expectError( function() { $.datepicker.parseDate( "dd mm yy", "Sat 2 01" ); },
"Sat 2 01 - dd mm yy", "Missing number at position 0" );
expectError( function() { $.datepicker.parseDate( "d m y", "3 Feb 01" ); },
"3 Feb 01 - d m y", "Missing number at position 2" );
expectError( function() { $.datepicker.parseDate( "dd mm yy", "3 Feb 01" ); },
"3 Feb 01 - dd mm yy", "Missing number at position 2" );
expectError( function() { $.datepicker.parseDate( "mm dd yy", "2 1 01" ); },
"2 1 01 - dd mm yy", "Missing number at position 4" );
expectError( function() { $.datepicker.parseDate( "d m y", "3 2 AD01" ); },
"3 2 AD01 - d m y", "Missing number at position 4" );
expectError( function() { $.datepicker.parseDate( "d m yy", "3 2 AD01" ); },
"3 2 AD01 - dd mm yy", "Missing number at position 4" );
expectError( function() { $.datepicker.parseDate( "y-o", "01-D01" ); },
"2001-D01 - y-o", "Missing number at position 3" );
expectError( function() { $.datepicker.parseDate( "yy-oo", "2001-D01" ); },
"2001-D01 - yy-oo", "Missing number at position 5" );
expectError( function() { $.datepicker.parseDate( "D d M y", "D7 3 Feb 01" ); },
"D7 3 Feb 01 - D d M y", "Unknown name at position 0" );
expectError( function() { $.datepicker.parseDate( "D d M y", "Sat 3 M2 01" ); },
"Sat 3 M2 01 - D d M y", "Unknown name at position 6" );
expectError( function() { $.datepicker.parseDate( "DD, MM d, yy", "Saturday- Feb 3, 2001" ); },
"Saturday- Feb 3, 2001 - DD, MM d, yy", "Unexpected literal at position 8" );
expectError( function() { $.datepicker.parseDate( "'day' d 'of' MM (''DD''), yy",
"day 3 of February (\"Saturday\"), 2001" ); },
"day 3 of Mon2 ('Day7'), 2001", "Unexpected literal at position 19" );
expectError( function() { $.datepicker.parseDate( "d m y", "29 2 01" ); },
"29 2 01 - d m y", "Invalid date" );
fr = $.datepicker.regional.fr;
settings = { dayNamesShort: fr.dayNamesShort, dayNames: fr.dayNames,
monthNamesShort: fr.monthNamesShort, monthNames: fr.monthNames };
expectError( function() { $.datepicker.parseDate( "D d M y", "Mon 9 Avr 01", settings ); },
"Mon 9 Avr 01 - D d M y", "Unknown name at position 0" );
expectError( function() { $.datepicker.parseDate( "D d M y", "Lun. 9 Apr 01", settings ); },
"Lun. 9 Apr 01 - D d M y", "Unknown name at position 7" );
} );
test( "Ticket #7244: date parser does not fail when too many numbers are passed into the date function", function() {
expect( 4 );
var date;
try {
date = $.datepicker.parseDate( "dd/mm/yy", "18/04/19881" );
ok( false, "Did not properly detect an invalid date" );
}catch ( e ) {
ok( "invalid date detected" );
}
try {
date = $.datepicker.parseDate( "dd/mm/yy", "18/04/1988 @ 2:43 pm" );
equal( date.getDate(), 18 );
equal( date.getMonth(), 3 );
equal( date.getFullYear(), 1988 );
} catch ( e ) {
ok( false, "Did not properly parse date with extra text separated by whitespace" );
}
} );
test( "formatDate", function() {
expect( 16 );
testHelper.init( "#inp" );
var gmtDate, fr, settings;
equal( $.datepicker.formatDate( "d m y", new Date( 2001, 2 - 1, 3 ) ),
"3 2 01", "Format date d m y" );
equal( $.datepicker.formatDate( "dd mm yy", new Date( 2001, 2 - 1, 3 ) ),
"03 02 2001", "Format date dd mm yy" );
equal( $.datepicker.formatDate( "d m y", new Date( 2001, 12 - 1, 13 ) ),
"13 12 01", "Format date d m y" );
equal( $.datepicker.formatDate( "dd mm yy", new Date( 2001, 12 - 1, 13 ) ),
"13 12 2001", "Format date dd mm yy" );
equal( $.datepicker.formatDate( "yy-o", new Date( 2001, 2 - 1, 3 ) ),
"2001-34", "Format date yy-o" );
equal( $.datepicker.formatDate( "yy-oo", new Date( 2001, 2 - 1, 3 ) ),
"2001-034", "Format date yy-oo" );
equal( $.datepicker.formatDate( "D M y", new Date( 2001, 2 - 1, 3 ) ),
"Sat Feb 01", "Format date D M y" );
equal( $.datepicker.formatDate( "DD MM yy", new Date( 2001, 2 - 1, 3 ) ),
"Saturday February 2001", "Format date DD MM yy" );
equal( $.datepicker.formatDate( "DD, MM d, yy", new Date( 2001, 2 - 1, 3 ) ),
"Saturday, February 3, 2001", "Format date DD, MM d, yy" );
equal( $.datepicker.formatDate( "'day' d 'of' MM (''DD''), yy",
new Date( 2001, 2 - 1, 3 ) ), "day 3 of February ('Saturday'), 2001",
"Format date 'day' d 'of' MM ('DD'), yy" );
gmtDate = new Date( 2001, 2 - 1, 3 );
gmtDate.setMinutes( gmtDate.getMinutes() - gmtDate.getTimezoneOffset() );
equal( $.datepicker.formatDate( "@", gmtDate ), "981158400000", "Format date @" );
equal( $.datepicker.formatDate( "!", gmtDate ), "631167552000000000", "Format date !" );
fr = $.datepicker.regional.fr;
settings = { dayNamesShort: fr.dayNamesShort, dayNames: fr.dayNames,
monthNamesShort: fr.monthNamesShort, monthNames: fr.monthNames };
equal( $.datepicker.formatDate( "D M y", new Date( 2001, 4 - 1, 9 ), settings ),
"lun. avr. 01", "Format date D M y with settings" );
equal( $.datepicker.formatDate( "DD MM yy", new Date( 2001, 4 - 1, 9 ), settings ),
"lundi avril 2001", "Format date DD MM yy with settings" );
equal( $.datepicker.formatDate( "DD, MM d, yy", new Date( 2001, 4 - 1, 9 ), settings ),
"lundi, avril 9, 2001", "Format date DD, MM d, yy with settings" );
equal( $.datepicker.formatDate( "'jour' d 'de' MM (''DD''), yy",
new Date( 2001, 4 - 1, 9 ), settings ), "jour 9 de avril ('lundi'), 2001",
"Format date 'jour' d 'de' MM (''DD''), yy with settings" );
} );
// TODO: Fix this test so it isn't mysteriously flaky in Browserstack on certain OS/Browser combos
// test("Ticket 6827: formatDate day of year calculation is wrong during day lights savings time", function(){
// expect( 1 );
// var time = $.datepicker.formatDate("oo", new Date("2010/03/30 12:00:00 CDT"));
// equal(time, "089");
// });
test( "Ticket 7602: Stop datepicker from appearing with beforeShow event handler", function() {
expect( 3 );
var inp, dp;
inp = testHelper.init( "#inp", {
beforeShow: function() {
}
} );
dp = $( "#ui-datepicker-div" );
inp.datepicker( "show" );
equal( dp.css( "display" ), "block", "beforeShow returns nothing" );
inp.datepicker( "hide" ).datepicker( "destroy" );
inp = testHelper.init( "#inp", {
beforeShow: function() {
return true;
}
} );
dp = $( "#ui-datepicker-div" );
inp.datepicker( "show" );
equal( dp.css( "display" ), "block", "beforeShow returns true" );
inp.datepicker( "hide" );
inp.datepicker( "destroy" );
inp = testHelper.init( "#inp", {
beforeShow: function() {
return false;
}
} );
dp = $( "#ui-datepicker-div" );
inp.datepicker( "show" );
equal( dp.css( "display" ), "none", "beforeShow returns false" );
inp.datepicker( "destroy" );
} );
} );
|
import { api } from 'lwc';
import * as testUtil from 'securemoduletest/testUtil';
export const ComponentNonLockerizedMixin = Base => {
return class extends Base {
@api COMPONENT = 'ComponentLockerizedMixin { NS: "secureothernamespace" }';
@api NAME = 'Lockerized! [ParentClass]';
@api BOOLEAN = false;
@api NULL = null;
@api UNDEFINED = undefined;
@api NUMBER = 100;
@api STRING = 'Hello!';
@api SYMBOL = Symbol('ABC');
@api BOOLEAN_OVERRIDE = 'true';
@api NULL_OVERRIDE = undefined;
@api UNDEFINED_OVERRIDE = null;
@api NUMBER_OVERRIDE = 100;
@api STRING_OVERRIDE = 'Hello!';
@api SYMBOL_OVERRIDE = Symbol('ABC');
@api WINDOW = window;
@api DOCUMENT = document;
@api ELEMENT = document.createElement('DIV');
@api OBJECT = {
'win': window,
'doc': document,
'el': document.createElement('DIV'),
'winFunction': function() { return window; },
'docFunction': function() { return document; },
'elFunction': function() { return document.createElement('DIV'); },
'winThisContextFunction': function() { return this.win },
'docThisContextFunction': function() { return this.doc },
'elThisContextFunction': function() { return this.el }
};
getWindow() {
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', window.toString(), 'Function "window" not lockerized! [ParentClass]');
return window;
}
getDocument() {
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', document.toString(), 'Function "document" not lockerized! [ParentClass]');
return document;
}
getElement() {
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', document.createElement('DIV').toString(), 'Function "element" not lockerized! [ParentClass]');
return document.createElement('DIV');
}
getWindowOverride() {
return window;
}
getDocumentOverride() {
return document;
}
getElementOverride() {
return document.createElement('DIV');
}
getWindowThisContext() {
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.WINDOW.toString(), 'Function this context "window" not lockerized! [ParentClass]');
return this.WINDOW;
}
getDocumentThisContext() {
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.DOCUMENT.toString(), 'Function this context "document" not lockerized! [ParentClass]');
return this.DOCUMENT;
}
getElementThisContext() {
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }',this.ELEMENT.toString(), 'Function this context "element" not lockerized! [ParentClass]');
return this.ELEMENT;
}
getWindowReturn(win) {
this.win = win;
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.win.toString(), 'Function return "window" not lockerized! [ParentClass]');
return this.win;
}
getDocumentReturn(doc) {
this.doc = doc;
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.doc.toString(), 'Function return "document" not lockerized! [ParentClass]');
return this.doc;
}
getElementReturn(el) {
this.el = el;
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.el.toString(), 'Function return "element" not lockerized! [ParentClass]');
return this.el;
}
getWindowReturnFunction(winFunc) {
this.win = winFunc();
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.win.toString(), 'Function return function "window" not lockerized! [ParentClass]');
return this.win;
}
getDocumentReturnFunction(docFunc) {
this.docFunc = docFunc();
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.docFunc.toString(), 'Function return function "document" not lockerized! [ParentClass]');
return this.docFunc;
}
getElementReturnFunction(elFunc) {
this.elFunc = elFunc();
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.elFunc.toString(), 'Function return function "element" not lockerized! [ParentClass]');
return this.elFunc;
}
@api
testBaseComponentPrimitives() {
testUtil.assertEquals(false, this.BOOLEAN_OVERRIDE);
testUtil.assertEquals(null, this.NULL_OVERRIDE);
testUtil.assertEquals(undefined, this.UNDEFINED_OVERRIDE);
testUtil.assertEquals(999, this.NUMBER_OVERRIDE);
testUtil.assertEquals('Override!', this.STRING_OVERRIDE);
testUtil.assertEquals('Symbol(XYZ)', this.SYMBOL_OVERRIDE.toString());
}
@api
testBaseComponentObjects() {
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.WINDOW.toString(), 'Property "window" not lockerized! [ParentClass]');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.DOCUMENT.toString(), 'Property "document" not lockerized! [ParentClass]');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.ELEMENT.toString(), 'Property "element" not lockerized! [ParentClass]');
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.OBJECT.win.toString(), 'Object "window" not lockerized! [ParentClass]');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.OBJECT.doc.toString(), 'Object "document" not lockerized! [ParentClass]');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.OBJECT.el.toString(), 'Object "element" not lockerized! [ParentClass]');
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.OBJECT.winFunction().toString(), 'Object function "window" not lockerized! [ParentClass]');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.OBJECT.docFunction().toString(), 'Object function "document" not lockerized! [ParentClass]');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.OBJECT.elFunction().toString(), 'Object function "element" not lockerized! [ParentClass]');
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.OBJECT.winThisContextFunction().toString(), 'Object this context "window" not lockerized! [ParentClass]');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.OBJECT.docThisContextFunction().toString(), 'Object this context "document" not lockerized! [ParentClass]');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.OBJECT.elThisContextFunction().toString(), 'Object this context "element" not lockerized! [ParentClass]');
}
@api
testBaseComponentFunctions() {
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.getWindow().toString(), 'Function "window" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.getDocument().toString(), 'Function "document" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.getElement().toString(), 'Function "element" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.getWindowOverride().toString(), 'Function override "window" not lockerized!');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.getDocumentOverride().toString(), 'Function override "document" not lockerized!');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }',this.getElementOverride().toString(), 'Function override "element" not lockerized!');
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.getWindowThisContext().toString(), 'Function this context "window" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.getDocumentThisContext().toString(), 'Function this context "document" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }',this.getElementThisContext().toString(), 'Function this context "element" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.getWindowReturn(window).toString(), 'Function return "window" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.getDocumentReturn(document).toString(), 'Function return "document" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.getElementReturn(document.createElement('DIV')).toString(), 'Function return "element" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.getWindowReturnFunction(function() { return window; }).toString(), 'Function return function "window" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.getDocumentReturnFunction(function() { return document; }).toString(), 'Function return function "document" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.getElementReturnFunction(function() { return document.createElement('DIV'); }).toString(), 'Function return function "element" not lockerized! [ChildClass]');
}
@api
testBaseComponentCreatedPrimitives() {
testUtil.assertEquals(false, this.BOOLEAN_SUPER);
testUtil.assertEquals(null, this.NULL_SUPER);
testUtil.assertEquals(undefined, this.UNDEFINED_SUPER);
testUtil.assertEquals(200, this.NUMBER_SUPER);
testUtil.assertEquals('Super!', this.STRING_SUPER);
testUtil.assertEquals('Symbol(QWERTY)', this.SYMBOL_SUPER.toString());
}
@api
testBaseComponentCreatedObjects() {
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.winSuper.toString(), '[Super] Property "window" not lockerized!');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.docSuper.toString(), '[Super] Property "document" not lockerized!');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.elSuper.toString(), '[Super] Property "element" not lockerized!');
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.objSuper.win.toString(), '[Super] Object "window" not lockerized!');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.objSuper.doc.toString(), '[Super] Object "document" not lockerized!');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.objSuper.el.toString(), '[Super] Object "element" not lockerized!');
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.objSuper.winFunction().toString(), '[Super] Object function "window" not lockerized!');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.objSuper.docFunction().toString(), '[Super] Object function "document" not lockerized!');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.objSuper.elFunction().toString(), '[Super] Object function "element" not lockerized!');
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.objSuper.winThisContextFunction().toString(), '[Super] Object this context "window" not lockerized!');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.objSuper.docThisContextFunction().toString(), '[Super] Object this context "document" not lockerized!');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.objSuper.elThisContextFunction().toString(), '[Super] Object this context "element" not lockerized!');
}
@api
testBaseComponentCreatedFunctions() {
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.getWinSuper().toString(), '[Super] Function "window" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.getDocSuper().toString(), '[Super] Function "document" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.getElSuper().toString(), '[Super] Function "element" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.getWinThisContextSuper().toString(), '[Super] Function this context "window" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.getDocThisContextSuper().toString(), '[Super] Function this context "document" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }',this.getElThisContextSuper().toString(), '[Super] Function this context "element" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.getWinReturnSuper(window).toString(), '[Super] Function return "window" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.getDocReturnSuper(document).toString(), '[Super] Function return "document" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.getElReturnSuper(document.createElement('DIV')).toString(), '[Super] Function return "element" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureWindow: [object Window]{ key: {"namespace":"secureothernamespace"} }', this.getWinReturnFuncSuper(function() { return window; }).toString(), '[Super] Function return function "window" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureDocument: [object HTMLDocument]{ key: {"namespace":"secureothernamespace"} }', this.getDocReturnFuncSuper(function() { return document; }).toString(), '[Super] Function return function "document" not lockerized! [ChildClass]');
testUtil.assertEquals('SecureElement: [object HTMLDivElement]{ key: {"namespace":"secureothernamespace"} }', this.getElReturnFuncSuper(function() { return document.createElement('DIV'); }).toString(), '[Super] Function return function "element" not lockerized! [ChildClass]');
}
}
}
|
import React, { Component } from 'react';
import styles from './styles.css';
import Img from '../../atoms/Img/index.js';
import Heading from '../../atoms/Heading/index.js';
import { InfoTxt } from '../../atoms/Txt/index.js';
import Time from '../../atoms/Time/index.js';
import MediaObjectLayout from '../../atoms/MediaObjectLayout/index.js';
import DeleteButton from '../../molecules/DeleteButton/index.js';
import { containPresenter } from '../../utils/HoC.js';
export class NotificationContainer extends Component {
constructor() {
super();
this.onClickDelete = ::this.onClickDelete;
}
render() {
const { presenter, onClickDelete:propsOnClickDelete, ...props } = this.props;
const onClickDelete = propsOnClickDelete ? this.onClickDelete : null;
const presenterProps = { onClickDelete, ...props };
return presenter(presenterProps);
}
onClickDelete(...args) {
const { onClickDelete, program } = this.props;
onClickDelete(...args, program);
}
}
export const NotificationPresenter = ({
program,
className,
onClickDelete,
...props,
}) => (
<MediaObjectLayout tag="section" className={ [ styles.root, className ].join(' ') } { ...props }>
<Img src={ program.thumbnail } alt={ `番組「${ program.title }」のサムネイル画像` } className={ styles.media } width="128" height="72" />
<Heading level={ 3 } visualLevel={ 6 }>{ program.title }</Heading>
<InfoTxt size="s">{ program.channelName }</InfoTxt>
<InfoTxt size="s" className={ styles.time }>
<Time format="MM月DD日(ddd)HH:mm">{ program.startAt }</Time> ~
<Time format="HH:mm">{ program.endAt }</Time>
</InfoTxt>
<DeleteButton onClick={ onClickDelete } className={ styles.del } />
</MediaObjectLayout>
);
const Notification = containPresenter(NotificationContainer, NotificationPresenter);
export default Notification;
|
module.exports = {
collectCoverage: true,
collectCoverageFrom: [
"**/src/**/**.js",
"!**/tests/**.{js,ts}",
"!**/node_modules/**",
],
coverageDirectory: "coverage",
testEnvironment: "node",
automock: false,
// coverageThreshold: {
// global: {
// branches: 100,
// functions: 100,
// lines: 100,
// statements: 100
// }
// },
};
|
(window["webpackJsonpWaveUI"]=window["webpackJsonpWaveUI"]||[]).push([["menu-examples-vue"],{"3f64":function(t,n,e){"use strict";e("f926")},e770:function(t,n,e){"use strict";e.r(n);var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("title-link",{attrs:{h2:""}},[t._v("Show on click or on hover")]),e("example",{staticClass:"example1",attrs:{"content-class":"pt5"},scopedSlots:t._u([{key:"html",fn:function(){return[t._v('<w-menu>\n <template #activator="{ on }">\n <w-button\n class="mr3"\n v-on="on"\n outline\n color="primary">\n Show menu on click\n </w-button>\n </template>\n Menu content\n</w-menu>\n\n<w-menu show-on-hover>\n <template #activator="{ on }">\n <w-button v-on="on" outline color="primary">\n Show menu on hover\n </w-button>\n </template>\n Menu content\n</w-menu>\n')]},proxy:!0}])},[e("w-menu",{attrs:{"detach-to":".example1"},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"mb2 mr3",attrs:{outline:"",color:"primary"}},o),[t._v("Show menu on click")])]}}])},[t._v("Menu content")]),e("w-menu",{attrs:{"detach-to":".example1","show-on-hover":""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"mb2",attrs:{outline:"",color:"primary"}},o),[t._v("Show menu on hover")])]}}])},[t._v("Menu content")])],1),e("title-link",{attrs:{h2:""}},[t._v("Position")]),e("example",{staticClass:"example2",attrs:{"content-class":"py12"},scopedSlots:t._u([{key:"html",fn:function(){return[t._v('<w-flex :gap="3" wrap>\n <w-menu left>\n <template #activator="{ on }">\n <w-button v-on="on" outline color="primary">\n Show menu on left\n </w-button>\n </template>\n Menu content\n </w-menu>\n\n <w-menu>\n <template #activator="{ on }">\n <w-button v-on="on" outline color="primary">\n Show menu on bottom\n </w-button>\n </template>\n Menu content\n </w-menu>\n\n <w-menu top>\n <template #activator="{ on }">\n <w-button v-on="on" outline color="primary">\n Show menu on top\n </w-button>\n </template>\n Menu content\n </w-menu>\n\n <w-menu right>\n <template #activator="{ on }">\n <w-button v-on="on" outline color="primary">\n Show menu on right\n </w-button>\n </template>\n Menu content\n </w-menu>\n</w-flex>\n')]},proxy:!0}])},[e("w-flex",{attrs:{gap:3,wrap:""}},[e("w-menu",{attrs:{"detach-to":".example2",left:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({attrs:{outline:"",color:"primary"}},o),[t._v("Show menu on left")])]}}])},[t._v("Menu content")]),e("w-menu",{attrs:{"detach-to":".example2"},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({attrs:{outline:"",color:"primary"}},o),[t._v("Show menu on bottom")])]}}])},[t._v("Menu content")]),e("w-menu",{attrs:{"detach-to":".example2",top:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({attrs:{outline:"",color:"primary"}},o),[t._v("Show menu on top")])]}}])},[t._v("Menu content")]),e("w-menu",{attrs:{"detach-to":".example2",right:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({attrs:{outline:"",color:"primary"}},o),[t._v("Show menu on right")])]}}])},[t._v("Menu content")])],1)],1),e("title-link",{attrs:{h2:""}},[t._v("Alignments")]),e("p",[t._v("In addition to positions, you can align the menu with its activator.")]),e("example",{staticClass:"example2",scopedSlots:t._u([{key:"html",fn:function(){return[t._v('<div class="title4 mb2">Top position</div>\n<w-menu top align-left>\n <template #activator="{ on }">\n <w-button class="ma1" v-on="on" outline color="primary">\n Align left\n </w-button>\n </template>\n Menu content\n</w-menu>\n\n<w-menu top>\n <template #activator="{ on }">\n <w-button class="ma1" v-on="on" outline color="primary">\n Centered\n </w-button>\n </template>\n Menu content\n</w-menu>\n\n<w-menu top align-right>\n <template #activator="{ on }">\n <w-button class="ma1" v-on="on" outline color="primary">\n Align right\n </w-button>\n </template>\n Menu content\n</w-menu>\n\n<div class="title4 mt6 mb2">Bottom position</div>\n<w-menu align-left>\n <template #activator="{ on }">\n <w-button class="ma1" v-on="on" outline color="primary">\n Align left\n </w-button>\n </template>\n Menu content\n</w-menu>\n\n<w-menu>\n <template #activator="{ on }">\n <w-button class="ma1" v-on="on" outline color="primary">\n Centered\n </w-button>\n </template>\n Menu content\n</w-menu>\n\n<w-menu align-right>\n <template #activator="{ on }">\n <w-button class="ma1" v-on="on" outline color="primary">\n Align right\n </w-button>\n </template>\n Menu content\n</w-menu>\n\n<div class="title4 mt6 mb2">Right position</div>\n<w-menu right align-top>\n <template #activator="{ on }">\n <w-button class="ma1" v-on="on" outline color="primary">\n Align top\n </w-button>\n </template>\n Menu content\n</w-menu>\n\n<w-menu right>\n <template #activator="{ on }">\n <w-button class="ma1" v-on="on" outline color="primary">\n Centered\n </w-button>\n </template>\n Menu content\n</w-menu>\n\n<w-menu right align-bottom>\n <template #activator="{ on }">\n <w-button class="ma1" v-on="on" outline color="primary">Alig\n n bottom\n </w-button>\n </template>\n Menu content\n</w-menu>\n\n<div class="title4 mt6 mb2">Left position</div>\n<w-menu left align-top>\n <template #activator="{ on }">\n <w-button class="ma1" v-on="on" outline color="primary">A\n lign top\n </w-button>\n </template>\n Menu content\n</w-menu>\n\n<w-menu left>\n <template #activator="{ on }">\n <w-button class="ma1" v-on="on" outline color="primary">\n Centered\n </w-button>\n </template>\n Menu content\n</w-menu>\n\n<w-menu left align-bottom>\n <template #activator="{ on }">\n <w-button class="ma1" v-on="on" outline color="primary">\n Align bottom\n </w-button>\n </template>\n Menu content\n</w-menu>\n')]},proxy:!0}])},[e("div",{staticClass:"title4 mb2"},[t._v("Top position")]),e("w-menu",{attrs:{"detach-to":".example2",top:"","align-left":""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"ma1",attrs:{outline:"",color:"primary"}},o),[t._v("Align left")])]}}])},[t._v("Menu content")]),e("w-menu",{attrs:{"detach-to":".example2",top:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"ma1",attrs:{outline:"",color:"primary"}},o),[t._v("Centered")])]}}])},[t._v("Menu content")]),e("w-menu",{attrs:{"detach-to":".example2",top:"","align-right":""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"ma1",attrs:{outline:"",color:"primary"}},o),[t._v("Align right")])]}}])},[t._v("Menu content")]),e("div",{staticClass:"title4 mt6 mb2"},[t._v("Bottom position")]),e("w-menu",{attrs:{"detach-to":".example2","align-left":""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"ma1",attrs:{outline:"",color:"primary"}},o),[t._v("Align left")])]}}])},[t._v("Menu content")]),e("w-menu",{attrs:{"detach-to":".example2"},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"ma1",attrs:{outline:"",color:"primary"}},o),[t._v("Centered")])]}}])},[t._v("Menu content")]),e("w-menu",{attrs:{"detach-to":".example2","align-right":""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"ma1",attrs:{outline:"",color:"primary"}},o),[t._v("Align right")])]}}])},[t._v("Menu content")]),e("div",{staticClass:"title4 mt6 mb2"},[t._v("Right position")]),e("w-menu",{attrs:{"detach-to":".example2",right:"","align-top":""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"ma1",attrs:{outline:"",color:"primary"}},o),[t._v("Align top")])]}}])},[t._v("Menu content")]),e("w-menu",{attrs:{"detach-to":".example2",right:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"ma1",attrs:{outline:"",color:"primary"}},o),[t._v("Centered")])]}}])},[t._v("Menu content")]),e("w-menu",{attrs:{"detach-to":".example2",right:"","align-bottom":""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"ma1",attrs:{outline:"",color:"primary"}},o),[t._v("Align bottom")])]}}])},[t._v("Menu content")]),e("div",{staticClass:"title4 mt6 mb2"},[t._v("Left position")]),e("w-menu",{attrs:{"detach-to":".example2",left:"","align-top":""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"ma1",attrs:{outline:"",color:"primary"}},o),[t._v("Align top")])]}}])},[t._v("Menu content")]),e("w-menu",{attrs:{"detach-to":".example2",left:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"ma1",attrs:{outline:"",color:"primary"}},o),[t._v("Centered")])]}}])},[t._v("Menu content")]),e("w-menu",{attrs:{"detach-to":".example2",left:"","align-bottom":""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"ma1",attrs:{outline:"",color:"primary"}},o),[t._v("Align bottom")])]}}])},[t._v("Menu content")])],1),e("title-link",{attrs:{h2:""}},[t._v("Color & background color")]),t._m(0),e("example",{staticClass:"example3",attrs:{"content-class":"pb12"},scopedSlots:t._u([{key:"html",fn:function(){return[t._v('<w-menu color="blue-dark2" bg-color="blue-light5">\n <template #activator="{ on }">\n <w-button v-on="on" outline color="primary">\n Show a blue menu\n </w-button>\n </template>\n Menu content\n</w-menu>\n')]},proxy:!0}])},[e("w-menu",{attrs:{"detach-to":".example3",color:"blue-dark2","bg-color":"blue-light5"},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"ma1",attrs:{outline:"",color:"primary"}},o),[t._v("Show a blue menu")])]}}])},[t._v("Menu content")])],1),e("title-link",{attrs:{h2:""}},[t._v("Tile, round and shadow")]),e("example",{staticClass:"example4",attrs:{"content-class":"pb12"},scopedSlots:t._u([{key:"html",fn:function(){return[t._v('<w-flex wrap :gap="3">\n <w-menu tile>\n <template #activator="{ on }">\n <w-button v-on="on" outline color="primary">\n Show a tile menu\n </w-button>\n </template>\n Menu content\n </template>\n </w-menu>\n\n <w-menu round>\n <template #activator="{ on }">\n <w-button v-on="on" outline color="primary">\n Show a round menu\n </w-button>\n </template>\n Menu content\n </template>\n </w-menu>\n\n <w-menu shadow>\n <template #activator="{ on }">\n <w-button v-on="on" outline color="primary">\n Show a shadow menu\n </w-button>\n </template>\n Menu content\n </template>\n </w-menu>\n</w-flex>\n')]},proxy:!0}])},[e("w-flex",{attrs:{wrap:"",gap:3}},[e("w-menu",{attrs:{"detach-to":".example4",tile:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"mt1",attrs:{outline:"",color:"primary"}},o),[t._v("Show a tile menu")])]}}])},[t._v("Menu content")]),e("w-menu",{attrs:{"detach-to":".example4",round:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"mt1",attrs:{outline:"",color:"primary"}},o),[t._v("Show a round menu")])]}}])},[t._v("Menu content")]),e("w-menu",{attrs:{"detach-to":".example4",shadow:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"mt1",attrs:{outline:"",color:"primary"}},o),[t._v("Show a shadow menu")])]}}])},[t._v("Menu content")])],1)],1),e("title-link",{attrs:{h2:""}},[t._v("Menu content: w-card")]),e("p",[t._v("By default the menu is a w-card, so it accepts all the props of a w-card.")]),e("example",{staticClass:"example5",attrs:{"content-class":"mb12 pb12"},scopedSlots:t._u([{key:"html",fn:function(){return[t._v('<w-menu shadow v-model="showMenu">\n <template #activator>\n <w-button\n class="mr3"\n @click="showMenu = true"\n outline\n color="primary">\n Show a w-card menu\n </w-button>\n </template>\n\n <div class="title4">\n How much do you like Wave UI?\n </div>\n\n <p>Pick a serious answer.</p>\n\n <w-flex class="pl10 mt4" wrap justify-end>\n <w-button\n class="mr1"\n text\n color="green"\n @click="showMenu = false">\n Love it!\n </w-button>\n\n <w-button\n class="mr1"\n text\n color="green"\n @click="showMenu = false">\n Love it!\n </w-button>\n\n <w-button\n text\n color="green"\n @click="showMenu = false">\n Love it!\n </w-button>\n </w-flex>\n</w-menu>\n\n<w-menu shadow custom>\n <template #activator="{ on }">\n <w-button v-on="on" outline color="primary">\n Show a list menu\n </w-button>\n </template>\n\n <w-card content-class="pa0">\n <w-toolbar>\n <div class="title3 ma0">Menu Title</div>\n <div class="spacer"></div>\n <span class="ml1">Item 1</span>\n <span class="ml1">Item 2</span>\n </w-toolbar>\n\n <div class="pa3">\n This is some content in a w-card component.\n </div>\n </w-card>\n</w-menu>')]},proxy:!0},{key:"js",fn:function(){return[t._v("data: () => ({\n showMenu: false\n})\n")]},proxy:!0}])},[e("w-menu",{attrs:{"detach-to":".example5",shadow:""},scopedSlots:t._u([{key:"activator",fn:function(){return[e("w-button",{staticClass:"mr3 mb2",attrs:{outline:"",color:"primary"},on:{click:function(n){t.showMenu=!0}}},[t._v("Show a w-card menu")])]},proxy:!0}]),model:{value:t.showMenu,callback:function(n){t.showMenu=n},expression:"showMenu"}},[e("div",{staticClass:"title4"},[t._v("How much do you like Wave UI?")]),e("p",[t._v("Pick a serious answer.")]),e("w-flex",{staticClass:"pl10 mt4",attrs:{wrap:"","justify-end":""}},[e("w-button",{staticClass:"mr1",attrs:{text:"",color:"green"},on:{click:function(n){t.showMenu=!1}}},[t._v("Love it!")]),e("w-button",{staticClass:"mr1",attrs:{text:"",color:"green"},on:{click:function(n){t.showMenu=!1}}},[t._v("Love it!")]),e("w-button",{attrs:{text:"",color:"green"},on:{click:function(n){t.showMenu=!1}}},[t._v("Love it!")])],1)],1),e("w-menu",{attrs:{"detach-to":".example5",shadow:"",custom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({staticClass:"mb2",attrs:{outline:"",color:"primary"}},o),[t._v("Show a list menu")])]}}])},[e("w-card",{staticClass:"white--bg",attrs:{"content-class":"pa0"}},[e("w-toolbar",[e("div",{staticClass:"title3 ma0"},[t._v("Menu Title")]),e("div",{staticClass:"spacer"}),e("span",{staticClass:"ml1"},[t._v("Item 1")]),e("span",{staticClass:"ml1"},[t._v("Item 2")])]),e("div",{staticClass:"pa3"},[t._v("This is some content in a w-card component.")])],1)],1)],1),e("title-link",{attrs:{h2:""}},[t._v("Custom content: List menu")]),e("p",[t._v("By default the menu is a w-card but if you need more flexibility, you can set the custom prop and put\nwhatever you want in it, free of style.")]),e("example",{staticClass:"example6",attrs:{"content-class":"mb12 pb12"},scopedSlots:t._u([{key:"html",fn:function(){return[t._v('<w-menu v-model="showMenu" shadow custom>\n <template #activator="{ on }">\n <w-button v-on="on" outline color="primary">\n Show a list menu\n </w-button>\n </template>\n\n <w-list\n class="white--bg"\n v-model="listSelection"\n :items="listItems"\n item-class="px8"\n @item-select="showMenu = false">\n </w-list>\n</w-menu>')]},proxy:!0},{key:"js",fn:function(){return[t._v("data: () => ({\n showMenu: false,\n listSelection: null,\n listItems: [\n { label: 'Item 1' },\n { label: 'Item 2' },\n { label: 'Item 3' }\n ]\n})\n")]},proxy:!0}])},[e("w-menu",{attrs:{"detach-to":".example6",shadow:"",custom:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({attrs:{outline:"",color:"primary"}},o),[t._v("Show a list menu")])]}}]),model:{value:t.showListMenu1,callback:function(n){t.showListMenu1=n},expression:"showListMenu1"}},[e("w-list",{staticClass:"white--bg",attrs:{items:[{label:"Item 1"},{label:"Item 2"},{label:"Item 3"}],"item-class":"px8"},on:{"item-select":function(n){t.showListMenu1=!1}},model:{value:t.list,callback:function(n){t.list=n},expression:"list"}})],1)],1),e("title-link",{attrs:{h2:""}},[t._v("Menu with overlay")]),e("example",{staticClass:"example7",attrs:{"content-class":"mb12 pb12"},scopedSlots:t._u([{key:"html",fn:function(){return[t._v('<w-menu v-model="showMenu" shadow custom overlay>\n <template #activator="{ on }">\n <w-button v-on="on" outline color="primary">\n Show a menu & overlay\n </w-button>\n </template>\n\n <w-list\n class="white--bg"\n nav\n :items="listItems"\n item-class="px8"\n @item-select="showMenu = false">\n </w-list>\n</w-menu>')]},proxy:!0},{key:"js",fn:function(){return[t._v("data: () => ({\n showMenu: false,\n listItems: [\n { label: 'Item 1', route: '#item1' },\n { label: 'Item 2', route: '#item2' },\n { label: 'Item 3', route: '#item3' }\n ]\n})")]},proxy:!0}])},[e("w-menu",{attrs:{"detach-to":".example7",shadow:"",custom:"",overlay:""},scopedSlots:t._u([{key:"activator",fn:function(n){var o=n.on;return[e("w-button",t._g({attrs:{outline:"",color:"primary"}},o),[t._v("Show a menu & overlay")])]}}]),model:{value:t.showListMenu2,callback:function(n){t.showListMenu2=n},expression:"showListMenu2"}},[e("w-list",{staticClass:"white--bg",attrs:{nav:"",items:[{label:"Item 1",route:"#item1"},{label:"Item 2",route:"#item2"},{label:"Item 3",route:"#item3"}],"item-class":"px8"},on:{"item-select":function(n){t.showListMenu2=!1}}})],1)],1)],1)},a=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("p",[t._v("Like in most components, you can define a "),e("code",[t._v("color")]),t._v(" and a "),e("code",[t._v("bg-color")]),t._v(".")])}],l={data:function(){return{showMenu:!1,showListMenu1:!1,showListMenu2:!1,list:[]}}},s=l,r=(e("3f64"),e("2877")),u=Object(r["a"])(s,o,a,!1,null,null,null);n["default"]=u.exports},f926:function(t,n,e){}}]);
//# sourceMappingURL=menu-examples-vue.78177aa7.js.map
|
const
chai = require('chai'),
SiteTrawler = require('../../../../lib/classes/SiteTrawler.js');
/*
* Set up chai
*/
chai.should();
// Common testing timeout
var timeout = 5*1000;
var basicSiteTrawler = {
subClassSetup: {
id : "Twitter, John Petrucci, Masterclass",
maxResults : 10
}
}
describe('SiteTrawler', () => {
describe('getResults', function () {
var s, b, mt, lr
var multipleTweets = [
{id: 1, contents: "Masterclass this sunday"},
{id: 2, contents: "Masterclass this monday"},
{id: 3, contents: "New plectrums for sale"}
]
beforeEach (function () {
b = Object.assign({},basicSiteTrawler)
mt = multipleTweets.slice()
lr = function (p, cb) { this.results = mt.slice(); cb(null) }
})
it('returns valid results for all tweets ', function (done) {
s = new SiteTrawler(b)
s.loadResults = lr
s.getResults(null, function (e,tweets) {
tweets.should.deep.equal([
{id: 1, contents: "Masterclass this sunday"},
{id: 2, contents: "Masterclass this monday"},
{id: 3, contents: "New plectrums for sale"}
])
done();
})
});
it('applies a custom filter to some results', function (done) {
s = new SiteTrawler(b)
s.loadResults = lr
s.resultPassesCustomFilters = function (p) { if (p.result.contents.match(/.*Masterclass.*/)) { return true } else { return false } }
s.getResults(null, function (e,tweets) {
tweets.should.deep.equal([
{id: 1, contents: "Masterclass this sunday"},
{id: 2, contents: "Masterclass this monday"},
])
done();
})
});
it('applies a custom filter to all results', function (done) {
s = new SiteTrawler(b)
s.loadResults = lr
s.resultPassesCustomFilters = function (p) { return (p.result.contents.match(/.*concert.*/) > 5) }
s.getResults(null, function (e,tweets) {
tweets.should.deep.equal([])
done();
})
});
it('returns no results if the service had none', function (done) {
s = new SiteTrawler(b)
s.loadResults = function (p,cb) { cb(null) }
s.getResults(null, function (e,tweets) {
tweets.should.deep.equal([])
done();
})
});
it('reports if service failed for any reason', function (done) {
s = new SiteTrawler(b)
s.loadResults = function (p,cb) { cb('Simulated failure') }
s.getResults(null, function (e,tweets) {
e.should.equal('Failed to load results: Simulated failure')
done();
})
});
afterEach (function () {
b = null
s = null
})
})
describe('getResultsString', function () {
it('throws an error by default (users are forced to write an override)', function () {
var s = new SiteTrawler(basicSiteTrawler)
chai.expect(s.getResultsString.bind(s,null)).to.throw('getResultsString needs to be overridden')
})
});
describe('getDataToSaveToSpreadsheet', function () {
it('returns null by default (users are forced to write an override)', function () {
var s = new SiteTrawler(basicSiteTrawler)
const data = s.getDataToSaveToSpreadsheet()
chai.expect(data).to.equal(null)
})
});
describe('loadResults', function () {
it('returns an error by default (users are forced to write an override)', function (done) {
var s = new SiteTrawler(basicSiteTrawler)
s.loadResults(null, function (err, ret) {
err.should.equal('loadResults needs to be overridden')
done()
})
})
})
describe('getRollCallValues', function () {
const names = [
"Geddy",
"Alex",
"Neil"
]
const attendeeFieldToTest = 'name'
const valueForAbsentees = { instrument: 'tambourine' }
const tests = [{
testName: 'All attendees are found (regardless of order)',
inputResults: [
{name: 'Alex', instrument: 'guitar'},
{name: 'Geddy', instrument: 'bass'},
{name: 'Neil', instrument: 'drums'}
],
expectedResponse: [
{name: 'Geddy', instrument: 'bass'},
{name: 'Alex', instrument: 'guitar'},
{name: 'Neil', instrument: 'drums'}
]
},{
testName: "One attendee isn't found and is given a default value",
inputResults: [
{name: 'Geddy', instrument: 'bass'},
{name: 'Neil', instrument: 'drums'}
],
expectedResponse: [
{name: 'Geddy', instrument: 'bass'},
{name: 'Alex', instrument: 'tambourine'},
{name: 'Neil', instrument: 'drums'}
]
},{
testName: "All are absent and are given a default value",
inputResults: [],
expectedResponse: [
{name: 'Geddy', instrument: 'tambourine'},
{name: 'Alex', instrument: 'tambourine'},
{name: 'Neil', instrument: 'tambourine'}
]
}]
const s = new SiteTrawler(basicSiteTrawler)
tests.forEach ( ({
testName,
only = false,
inputResults,
expectedResponse = "Response hasn't been defined",
}) => {
const itFn = (only)? it.only : it ;
itFn(testName, () => {
const gotResp = s.getRollCallValues ({
names,
attendeeFieldToTest,
valueForAbsentees,
attendees: inputResults
})
gotResp.should.eql(expectedResponse)
})
})
})
})
|
const { Client, Message, MessageEmbed } = require('discord.js');
const path = require('path');
const emoji = require('../../emoji.json')
module.exports = {
name: 'arara',
aliases: [''],
description: '',
/**
* @param {Client} client
* @param {Message} message
* @param {String[]} args
*/
run: async(client, message, args) => {
const channel = message.member.voice.channel;
const botchannel = message.guild.me.voice.channel;
if(!channel)
return message.channel.send(new MessageEmbed()
.setColor("GREEN")
.setFooter('Thanks For Using me!')
.setTitle(`<:no:933239221836206131> You need to join a voice channel`)
);
if(botchannel)
return message.channel.send(new MessageEmbed()
.setColor("RED")
.setFooter('Thanks For Using Me!')
.setTitle(`<:no:933239221836206131> I am already connected in \`${botchannel.name}\``)
);
const e = await message.react('🎙️').catch(()=>{})
channel.join().then(async connection => {
const dispatcher = connection.play(path.join(__dirname + '/audios/arara.mp3'));
dispatcher.on('speaking', speaking => {
if(!speaking) {
channel.leave();
e.remove()
}
});
}).catch(err => console.log(err));
}
}
//join vc
|
export default (options, actions) =>
`
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>${options.title || ''}</title>
<link rel="stylesheet" href="${options.stylesheetURL || './lib/html/stylesheet.css'}">
</head>
<body>
<main>
<div class="handle drag-area"></div>
<form name="actions" class="actions">
${actions.map(action =>
`<button name="${action.name}" onClick="run('${action.name}'); return false;">${action.name}</button>`
).join('')}
</form>
</main>
</body>
<script>
actions = ${JSON.stringify(actions)}
require('${options.entryRenderer || './lib/entryRenderer'}')
</script>
</html>
`
|
/**
* Created by highlander on 5/7/16.
*/
const TAG = ' | (modules/api) INTERFACE | '
const uuid = require('node-uuid')
const co = require('co')
// const async = require('asyncawait/async')
// const await = require('asyncawait/await')
// const Redis = require('promise-redis')();
// const redis = Redis.createClient();
const util = require('@arbiter/arb-redis')
const redis = util.redis
const when = require('when')
const _ = require('underscore')
let collections = require('./mongo.js')
let signup = collections.reportSignup
const config = require("../configs/env")
let { btc,ltc,eth} = require('@arbiter/arb-daemons-manager').daemons
// constants
const SATOSHI = 100000000
// logging
const log = require('@arbiter/dumb-lumberjack')()
// modules
const hte = require('./hte.js')
const arbiter = require('./arbiter.js')
const markets = require('./markets.js')
const Accounting = require('@arbiter/arb-accounting')
const accounting = new Accounting(redis)
const rates = require('@arbiter/arb-rates')
const signing = require('./signing.js')
const oracle = require('@arbiter/arb-oracle-client')
// export
module.exports = {
retarget: function (account,orderId,rate) {
return retarget_order(account,orderId,rate)
},
cancel: function (orderId) {
return arbiter.cancel(orderId)
},
limitorder: function (account,expiration,pubkey,pair,rate,amountIn,returnAddress,withdrawalAddress) {
let order = {
account,
expiration,
pubkey,
pair,
rate,
amountIn,
returnAddress,
withdrawalAddress
}
return arbiter.create(order)
},
}
/*******************************************
// Primary
//*******************************************/
let get_orders = async function(body) {
let tag = TAG + ' |get_orders| '
try {
let signature = body.signature
let account = body.account
let payload = body.payload
await signing.validate(account, signature, JSON.stringify(payload))
return await redis.smembers('accountOrders:' + account)
} catch (e)
{
log.error(tag, e)
}
}
let account_tools = async function (account,action,ethAddress) {
let tag = TAG + ' | account_tools | '
try {
// required params
// let account = body.account
// let action = body.payload.action
// await validate_account(account, action)
if (!account) throw Error('101: account required!')
if (!action) throw Error('102: action required! (CRUD)')
//
// // get account info
console.log("account: ",account)
let accountInfo = await redis.hgetall(account)
log.debug(tag, 'accountInfo: ', accountInfo)
if (!accountInfo && action !== 'create') throw Error('103: unknown account!')
// if NOT account (sanity on redis keys)
if (accountInfo && !accountInfo.account) throw Error('104: account invalid! ')
// action
switch (action) {
case 'create':
// let accountInfo = await create_account(body, account)
// return accountInfo
// if ETH address given
if (ethAddress) {
// TODO debit token bucket for new signup
// TODO if ETH address valid
// checkpoint
let arbiterAddress = config.ARBITER_MASTER_ETH
let oracleAddress = config.ORACLE_MASTER_ETH
let addressArray = [arbiterAddress, oracleAddress, ethAddress]
let contractAddress
try {
contractAddress = await eth.addMultisigAddress(addressArray)
} catch (e) {
log.error(tag, 'Failed to create contract error: ', e)
}
if (!contractAddress) throw Error('105: failed to created multisig contract!')
log.debug(tag,"contractAddress: ",contractAddress)
log.debug(tag,"contractAddress: ",typeof (contractAddress))
if (typeof (contractAddress) === 'string') contractAddress = JSON.parse(contractAddress)
contractAddress = contractAddress.address
redis.sadd('contracts:eth:ms', contractAddress)
log.debug(tag, 'contractAddress: ', contractAddress)
let accountInfo = {}
accountInfo.account = account
accountInfo.eth = true
accountInfo.ethAddress = ethAddress
accountInfo.contractAddress = contractAddress
redis.hmset(account, accountInfo)
//signup.insert(accountInfo)
return accountInfo
} else {
return 'account signup not needed for non-eth users!'
}
break
case 'read':
log.debug(tag," Checkpoint read")
return accountInfo
break
case 'update':
break
case 'destroy':
break
}
} catch (e) {
log.error(tag, 'E: ', e)
throw e
}
}
let retarget_order = async function (account,orderId,rate,body) {
let tag = TAG + ' | retarget_order | '
try {
let pubkey = account
validate_order({account,orderId,rate})
// get order info
let orderInfo = await redis.hgetall(orderId)
let order = orderInfo
if (!orderInfo) throw Error('103: unknown order!')
// does address match order
if (orderInfo.account !== pubkey) throw Error('104: incorrect signing pubkey for order given:' + orderInfo.account + ' expected: ' + pubkey)
await cancel_order(orderInfo)
// create new order
let newOrder = {}
newOrder.quantity = ''
newOrder.rate = rate
newOrder.orderId = uuid.v4()
await redis.hset(newOrder.orderId, 'orderId', newOrder.orderId)
// Accounting
// TODO make this atmoic?
// fund new order
await move_balance(orderInfo)
// CLONE order into new orderId for properties in order
for (property in order) {
if (property !== 'orderId' && property !== 'amountOut') {
await redis.hset(newOrder.orderId, property, order[property])
}
}
// cancel order
let successMove = await redis.hset(orderId, 'status', 'cancelled')
log.debug(tag, '417 success: ', successMove)
// if(!successMove) throw "108: Failed to update status cancelled"
// push to live
log.debug(tag, 'orderId: ', newOrder.orderId)
log.debug(tag, 'amountIn: ', order.amountIn)
log.debug(tag, 'rate: ', rate)
//
validate_replace_order(newOrder, order, rate)
// update price
redis.hset(newOrder.orderId, 'price', rate)
await redis.hset(newOrder.orderId, 'rate', rate)
// add to index
await redis.sadd('accountOrders:' + order.account, newOrder.orderId)
// add to live
await redis.sadd('live', newOrder.orderId)
let quanitiy = rates.getAmountLeft(orderInfo, rate)
if(!quanitiy) throw Error("103: Rates module failed to give quanitity! ")
// TODO Validate Amounts and Rates!!
// var validOrder = orders.validateRateAndAmounts(order.amountIn, null, rate, isBuy)
// if(!validOrder || !validOrder.amountOut) throw "ERROR:411: can not validate order rates"
// if(debug) console.log(tag,"validOrder: ",validOrder)
log.debug(tag, 'quanitiy: ', quanitiy)
log.debug(tag, 'quanitiy: ', typeof (quanitiy))
// update amountOut
// build new amount out (Min)
let amountOutNew
let amountOutOld = orderInfo[orderInfo.coinOut]
amountOutOld = parseFloat(amountOutOld)
amountOutOld = (amountOutOld * SATOSHI) / SATOSHI
log.debug(tag, 'amountOutOld: ', amountOutOld)
log.debug(tag, 'amountOutOld: ', typeof (amountOutOld))
if (isNaN(amountOutOld)) {
amountOutOld = 0
}
amountOutNew = quanitiy + amountOutOld
log.debug(tag, 'amountOutNew: ', amountOutNew)
amountOutNew = Math.abs(amountOutNew)
redis.hset(newOrder.orderId, 'amountOut', amountOutNew)
order.rate = rate
order.orderId = newOrder.orderId
order.quanitiy = quanitiy
// validate and update oracle
let payloadOracle = {
orderIdNew: newOrder.orderId,
orderIdOld: orderId,
orderInfo: order,
requestCustomer: body
}
// sign data
let outputS = JSON.stringify(payloadOracle)
let bodyRequest = {
account: config.ARBITER_SIGNING,
payload: payloadOracle,
signature: await signing.sign(config.ARBITER_SIGNING, outputS)
}
let oracleSuccess = await oracle.retarget(bodyRequest)
if (!oracleSuccess) throw Error('110: Failed Oracle validation rules! ')
log.debug(tag,"input hte: ",{market:order.market, orderId:newOrder.orderId, quanitiy, rate})
let newOrderId = await hte.submitOrder(order.market, newOrder.orderId, quanitiy, rate)
log.debug(tag, ' newOrderId: ', newOrderId)
return {
success:true,
orderId:newOrder.orderId
}
} catch (e) {
log.error(tag, 'e: ', e)
throw e
}
}
/*******************************************
//lib
//*******************************************/
let validate_account = async function (account, action) {
let tag = TAG + ' | get_min_amount_out | '
try {
if (!account) throw Error('101: account required!')
if (!action) throw Error('102: action required! (CRUD)')
// get account info
let accountInfo = await redis.hgetall(account)
log.debug(tag, 'accountInfo: ', accountInfo)
if (!accountInfo && action !== 'create') throw Error('103: unknown account!')
// if NOT account (sanity on redis keys)
if (accountInfo && !accountInfo.account) throw Error('104: account invalid! ')
return true
} catch (e) {
log.error(tag, 'Error: ', e)
throw e
}
}
const create_account = async function (body, account) {
let tag = TAG + ' | get_min_amount_out | '
try {
let arbiterAddress = config.ARBITER_MASTER_ETH
let oracleAddress = config.ORACLE_MASTER_ETH
let addressArray = [arbiterAddress, oracleAddress, body.payload.ethAddress]
let contractAddress
try {
contractAddress = await eth.addMultisigAddress(addressArray)
} catch (e) {
log.error(tag, 'Failed to create contract error: ', e)
}
if (!contractAddress) throw Error('105: failed to created multisig contract!')
if (typeof (contractAddress) === 'string') contractAddress = JSON.parse(contractAddress)
contractAddress = contractAddress.address
redis.sadd('contracts:eth:ms', contractAddress)
log.debug(tag, 'contractAddress: ', contractAddress)
let accountInfo = {}
accountInfo.account = account
accountInfo.eth = true
accountInfo.ethAddress = body.payload.ethAddress
accountInfo.contractAddress = contractAddress
let successUpdate = await redis.hmset(account, accountInfo)
log.info(tag, 'accountInfo: ', accountInfo)
return accountInfo
} catch (e) {
log.error(tag, 'Error: ', e)
throw e
}
}
const cancel_order = async function (orderInfo) {
let tag = TAG + ' | get_min_amount_out | '
try {
let orderId = orderInfo.orderId
let successCancel = await hte.cancelOrder(orderInfo.market, orderId)
if (!successCancel) throw Error('105: failed to remove orderId from trade engine! orderId:' + orderId)
// remove from live set
let successRedis = await redis.smove('live', 'cancelled', orderId)
if (!successRedis) throw Error('106: order not found in live set!')
return true
} catch (e) {
log.error(tag, 'Error: ', e)
throw e
}
}
function isNaN (x) {
// Coerce into number
x = Number(x)
// if x is NaN, NaN != NaN is true, otherwise it's false
return x != x
}
const move_balance = async function (orderInfo) {
let tag = TAG + ' | get_min_amount_out | '
try {
if (orderInfo[orderInfo.coinIn]) await accounting.credit(orderInfo.orderId, orderInfo[orderInfo.coinIn], orderInfo.coinIn)
if (orderInfo[orderInfo.coinOut]) await accounting.credit(orderInfo.orderId, orderInfo[orderInfo.coinOut], orderInfo.coinOut)
// defund old order
if (orderInfo[orderInfo.coinIn]) await accounting.debit(orderInfo.orderId, orderInfo[orderInfo.coinIn], orderInfo.coinIn)
if (orderInfo[orderInfo.coinOut]) await accounting.debit(orderInfo.orderId, orderInfo[orderInfo.coinOut], orderInfo.coinOut)
return true
} catch (e) {
log.error(tag, 'Error: ', e)
throw e
}
}
let validate_replace_order = function (newOrder, order, rate) {
if (!newOrder.orderId || !order.amountIn || !rate) throw Error('109: invalid replace order!')
return true
}
let validate_order = function (body) {
let pubkey = body.account
let orderId = body.orderId
let rate = body.rate
if (!orderId) throw Error('98: orderId required!')
if (!rate) throw Error('99: rate required!')
if (!pubkey) throw Error('101: pubkey required!')
return true
}
// if in redis respond public info
// var get_orders_by_pubkey = function (pubkey) {
// let d = when.defer()
// let tag = ' | get_orders_by_pubkey | '
//
// console.log('look up existing for ' + pubkey)
//
// let finalList = []
//
// redis.smembers('pubKeyOrders:' + pubkey)
// .then(function (orderList) {
// // hmget limitOrder:d14ef6ec-15b4-4cb9-8ae7-01a119102373 depositAddress status
//
// return when.iterate(function (x) {
// return x + 1
// }, function (x) {
// // Stop when we've looped through all of items
// return !orderList || x > orderList.length - 1
// }, function (x) {
// console.log('lookup ', orderList[x])
//
// // return get_order_info(orderList[x])
// // .then(function(result){
// // finalList[finalList.length] = result
// // })
// return redis.hgetall(orderList[x])
// .then(function (results) {
// results.orderId = orderList[x]
// finalList[finalList.length] = results
// })
//
// // return redis.hmget("limitOrder:"+orderList[x], "depositAddress", "status")
// // .then(function(results){
// // finalList[finalList.length] = {shiftId:orderList[x], depositAddress:results[0], status:results[1]}
// // })
// }, 0) // 0 is what x starts at
// })
// .then(function () {
// console.log('returning an existing list of ' + finalList.length + ' orders')
//
// // console.log("",finalList)
// d.resolve(finalList)
// })
// return d.promise
// }
|
//! moment.js
//! version : 2.10.2
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
global.moment = factory()
}(this, function () { 'use strict';
var hookCallback;
function utils_hooks__hooks () {
return hookCallback.apply(null, arguments);
}
// This is done to register the method called with moment()
// without creating circular dependencies.
function setHookCallback (callback) {
hookCallback = callback;
}
function defaultParsingFlags() {
// We need to deep clone this object.
return {
empty : false,
unusedTokens : [],
unusedInput : [],
overflow : -2,
charsLeftOver : 0,
nullInput : false,
invalidMonth : null,
invalidFormat : false,
userInvalidated : false,
iso : false
};
}
function isArray(input) {
return Object.prototype.toString.call(input) === '[object Array]';
}
function isDate(input) {
return Object.prototype.toString.call(input) === '[object Date]' || input instanceof Date;
}
function map(arr, fn) {
var res = [], i;
for (i = 0; i < arr.length; ++i) {
res.push(fn(arr[i], i));
}
return res;
}
function hasOwnProp(a, b) {
return Object.prototype.hasOwnProperty.call(a, b);
}
function extend(a, b) {
for (var i in b) {
if (hasOwnProp(b, i)) {
a[i] = b[i];
}
}
if (hasOwnProp(b, 'toString')) {
a.toString = b.toString;
}
if (hasOwnProp(b, 'valueOf')) {
a.valueOf = b.valueOf;
}
return a;
}
function create_utc__createUTC (input, format, locale, strict) {
return createLocalOrUTC(input, format, locale, strict, true).utc();
}
function valid__isValid(m) {
if (m._isValid == null) {
m._isValid = !isNaN(m._d.getTime()) &&
m._pf.overflow < 0 &&
!m._pf.empty &&
!m._pf.invalidMonth &&
!m._pf.nullInput &&
!m._pf.invalidFormat &&
!m._pf.userInvalidated;
if (m._strict) {
m._isValid = m._isValid &&
m._pf.charsLeftOver === 0 &&
m._pf.unusedTokens.length === 0 &&
m._pf.bigHour === undefined;
}
}
return m._isValid;
}
function valid__createInvalid (flags) {
var m = create_utc__createUTC(NaN);
if (flags != null) {
extend(m._pf, flags);
}
else {
m._pf.userInvalidated = true;
}
return m;
}
var momentProperties = utils_hooks__hooks.momentProperties = [];
function copyConfig(to, from) {
var i, prop, val;
if (typeof from._isAMomentObject !== 'undefined') {
to._isAMomentObject = from._isAMomentObject;
}
if (typeof from._i !== 'undefined') {
to._i = from._i;
}
if (typeof from._f !== 'undefined') {
to._f = from._f;
}
if (typeof from._l !== 'undefined') {
to._l = from._l;
}
if (typeof from._strict !== 'undefined') {
to._strict = from._strict;
}
if (typeof from._tzm !== 'undefined') {
to._tzm = from._tzm;
}
if (typeof from._isUTC !== 'undefined') {
to._isUTC = from._isUTC;
}
if (typeof from._offset !== 'undefined') {
to._offset = from._offset;
}
if (typeof from._pf !== 'undefined') {
to._pf = from._pf;
}
if (typeof from._locale !== 'undefined') {
to._locale = from._locale;
}
if (momentProperties.length > 0) {
for (i in momentProperties) {
prop = momentProperties[i];
val = from[prop];
if (typeof val !== 'undefined') {
to[prop] = val;
}
}
}
return to;
}
var updateInProgress = false;
// Moment prototype object
function Moment(config) {
copyConfig(this, config);
this._d = new Date(+config._d);
// Prevent infinite loop in case updateOffset creates new moment
// objects.
if (updateInProgress === false) {
updateInProgress = true;
utils_hooks__hooks.updateOffset(this);
updateInProgress = false;
}
}
function isMoment (obj) {
return obj instanceof Moment || (obj != null && hasOwnProp(obj, '_isAMomentObject'));
}
function toInt(argumentForCoercion) {
var coercedNumber = +argumentForCoercion,
value = 0;
if (coercedNumber !== 0 && isFinite(coercedNumber)) {
if (coercedNumber >= 0) {
value = Math.floor(coercedNumber);
} else {
value = Math.ceil(coercedNumber);
}
}
return value;
}
function compareArrays(array1, array2, dontConvert) {
var len = Math.min(array1.length, array2.length),
lengthDiff = Math.abs(array1.length - array2.length),
diffs = 0,
i;
for (i = 0; i < len; i++) {
if ((dontConvert && array1[i] !== array2[i]) ||
(!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
diffs++;
}
}
return diffs + lengthDiff;
}
function Locale() {
}
var locales = {};
var globalLocale;
function normalizeLocale(key) {
return key ? key.toLowerCase().replace('_', '-') : key;
}
// pick the locale from the array
// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
function chooseLocale(names) {
var i = 0, j, next, locale, split;
while (i < names.length) {
split = normalizeLocale(names[i]).split('-');
j = split.length;
next = normalizeLocale(names[i + 1]);
next = next ? next.split('-') : null;
while (j > 0) {
locale = loadLocale(split.slice(0, j).join('-'));
if (locale) {
return locale;
}
if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
//the next array item is better than a shallower substring of this one
break;
}
j--;
}
i++;
}
return null;
}
function loadLocale(name) {
var oldLocale = null;
// TODO: Find a better way to register and load all the locales in Node
if (!locales[name] && typeof module !== 'undefined' &&
module && module.exports) {
try {
oldLocale = globalLocale._abbr;
require('./locale/' + name);
// because defineLocale currently also sets the global locale, we
// want to undo that for lazy loaded locales
locale_locales__getSetGlobalLocale(oldLocale);
} catch (e) { }
}
return locales[name];
}
// This function will load locale and then set the global locale. If
// no arguments are passed in, it will simply return the current global
// locale key.
function locale_locales__getSetGlobalLocale (key, values) {
var data;
if (key) {
if (typeof values === 'undefined') {
data = locale_locales__getLocale(key);
}
else {
data = defineLocale(key, values);
}
if (data) {
// moment.duration._locale = moment._locale = data;
globalLocale = data;
}
}
return globalLocale._abbr;
}
function defineLocale (name, values) {
if (values !== null) {
values.abbr = name;
if (!locales[name]) {
locales[name] = new Locale();
}
locales[name].set(values);
// backwards compat for now: also set the locale
locale_locales__getSetGlobalLocale(name);
return locales[name];
} else {
// useful for testing
delete locales[name];
return null;
}
}
// returns locale data
function locale_locales__getLocale (key) {
var locale;
if (key && key._locale && key._locale._abbr) {
key = key._locale._abbr;
}
if (!key) {
return globalLocale;
}
if (!isArray(key)) {
//short-circuit everything else
locale = loadLocale(key);
if (locale) {
return locale;
}
key = [key];
}
return chooseLocale(key);
}
var aliases = {};
function addUnitAlias (unit, shorthand) {
var lowerCase = unit.toLowerCase();
aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
}
function normalizeUnits(units) {
return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
}
function normalizeObjectUnits(inputObject) {
var normalizedInput = {},
normalizedProp,
prop;
for (prop in inputObject) {
if (hasOwnProp(inputObject, prop)) {
normalizedProp = normalizeUnits(prop);
if (normalizedProp) {
normalizedInput[normalizedProp] = inputObject[prop];
}
}
}
return normalizedInput;
}
function makeGetSet (unit, keepTime) {
return function (value) {
if (value != null) {
get_set__set(this, unit, value);
utils_hooks__hooks.updateOffset(this, keepTime);
return this;
} else {
return get_set__get(this, unit);
}
};
}
function get_set__get (mom, unit) {
return mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]();
}
function get_set__set (mom, unit, value) {
return mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
}
// MOMENTS
function getSet (units, value) {
var unit;
if (typeof units === 'object') {
for (unit in units) {
this.set(unit, units[unit]);
}
} else {
units = normalizeUnits(units);
if (typeof this[units] === 'function') {
return this[units](value);
}
}
return this;
}
function zeroFill(number, targetLength, forceSign) {
var output = '' + Math.abs(number),
sign = number >= 0;
while (output.length < targetLength) {
output = '0' + output;
}
return (sign ? (forceSign ? '+' : '') : '-') + output;
}
var formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g;
var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
var formatFunctions = {};
var formatTokenFunctions = {};
// token: 'M'
// padded: ['MM', 2]
// ordinal: 'Mo'
// callback: function () { this.month() + 1 }
function addFormatToken (token, padded, ordinal, callback) {
var func = callback;
if (typeof callback === 'string') {
func = function () {
return this[callback]();
};
}
if (token) {
formatTokenFunctions[token] = func;
}
if (padded) {
formatTokenFunctions[padded[0]] = function () {
return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
};
}
if (ordinal) {
formatTokenFunctions[ordinal] = function () {
return this.localeData().ordinal(func.apply(this, arguments), token);
};
}
}
function removeFormattingTokens(input) {
if (input.match(/\[[\s\S]/)) {
return input.replace(/^\[|\]$/g, '');
}
return input.replace(/\\/g, '');
}
function makeFormatFunction(format) {
var array = format.match(formattingTokens), i, length;
for (i = 0, length = array.length; i < length; i++) {
if (formatTokenFunctions[array[i]]) {
array[i] = formatTokenFunctions[array[i]];
} else {
array[i] = removeFormattingTokens(array[i]);
}
}
return function (mom) {
var output = '';
for (i = 0; i < length; i++) {
output += array[i] instanceof Function ? array[i].call(mom, format) : array[i];
}
return output;
};
}
// format date using native date object
function formatMoment(m, format) {
if (!m.isValid()) {
return m.localeData().invalidDate();
}
format = expandFormat(format, m.localeData());
if (!formatFunctions[format]) {
formatFunctions[format] = makeFormatFunction(format);
}
return formatFunctions[format](m);
}
function expandFormat(format, locale) {
var i = 5;
function replaceLongDateFormatTokens(input) {
return locale.longDateFormat(input) || input;
}
localFormattingTokens.lastIndex = 0;
while (i >= 0 && localFormattingTokens.test(format)) {
format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
localFormattingTokens.lastIndex = 0;
i -= 1;
}
return format;
}
var match1 = /\d/; // 0 - 9
var match2 = /\d\d/; // 00 - 99
var match3 = /\d{3}/; // 000 - 999
var match4 = /\d{4}/; // 0000 - 9999
var match6 = /[+-]?\d{6}/; // -999999 - 999999
var match1to2 = /\d\d?/; // 0 - 99
var match1to3 = /\d{1,3}/; // 0 - 999
var match1to4 = /\d{1,4}/; // 0 - 9999
var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
var matchUnsigned = /\d+/; // 0 - inf
var matchSigned = /[+-]?\d+/; // -inf - inf
var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
// any word (or two) characters or numbers including two/three word month in arabic.
var matchWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
var regexes = {};
function addRegexToken (token, regex, strictRegex) {
regexes[token] = typeof regex === 'function' ? regex : function (isStrict) {
return (isStrict && strictRegex) ? strictRegex : regex;
};
}
function getParseRegexForToken (token, config) {
if (!hasOwnProp(regexes, token)) {
return new RegExp(unescapeFormat(token));
}
return regexes[token](config._strict, config._locale);
}
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
function unescapeFormat(s) {
return s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
return p1 || p2 || p3 || p4;
}).replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
}
var tokens = {};
function addParseToken (token, callback) {
var i, func = callback;
if (typeof token === 'string') {
token = [token];
}
if (typeof callback === 'number') {
func = function (input, array) {
array[callback] = toInt(input);
};
}
for (i = 0; i < token.length; i++) {
tokens[token[i]] = func;
}
}
function addWeekParseToken (token, callback) {
addParseToken(token, function (input, array, config, token) {
config._w = config._w || {};
callback(input, config._w, config, token);
});
}
function addTimeToArrayFromToken(token, input, config) {
if (input != null && hasOwnProp(tokens, token)) {
tokens[token](input, config._a, config, token);
}
}
var YEAR = 0;
var MONTH = 1;
var DATE = 2;
var HOUR = 3;
var MINUTE = 4;
var SECOND = 5;
var MILLISECOND = 6;
function daysInMonth(year, month) {
return new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
}
// FORMATTING
addFormatToken('M', ['MM', 2], 'Mo', function () {
return this.month() + 1;
});
addFormatToken('MMM', 0, 0, function (format) {
return this.localeData().monthsShort(this, format);
});
addFormatToken('MMMM', 0, 0, function (format) {
return this.localeData().months(this, format);
});
// ALIASES
addUnitAlias('month', 'M');
// PARSING
addRegexToken('M', match1to2);
addRegexToken('MM', match1to2, match2);
addRegexToken('MMM', matchWord);
addRegexToken('MMMM', matchWord);
addParseToken(['M', 'MM'], function (input, array) {
array[MONTH] = toInt(input) - 1;
});
addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
var month = config._locale.monthsParse(input, token, config._strict);
// if we didn't find a month name, mark the date as invalid.
if (month != null) {
array[MONTH] = month;
} else {
config._pf.invalidMonth = input;
}
});
// LOCALES
var defaultLocaleMonths = 'Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Augosto_Septiembre_Octubre_Noviembre_Diciembre'.split('_');
function localeMonths (m) {
return this._months[m.month()];
}
var defaultLocaleMonthsShort = 'Ene_Feb_Mar_Abr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dic'.split('_');
function localeMonthsShort (m) {
return this._monthsShort[m.month()];
}
function localeMonthsParse (monthName, format, strict) {
var i, mom, regex;
if (!this._monthsParse) {
this._monthsParse = [];
this._longMonthsParse = [];
this._shortMonthsParse = [];
}
for (i = 0; i < 12; i++) {
// make the regex if we don't have it already
mom = create_utc__createUTC([2000, i]);
if (strict && !this._longMonthsParse[i]) {
this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
}
if (!strict && !this._monthsParse[i]) {
regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
}
// test the regex
if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
return i;
} else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
return i;
} else if (!strict && this._monthsParse[i].test(monthName)) {
return i;
}
}
}
// MOMENTS
function setMonth (mom, value) {
var dayOfMonth;
// TODO: Move this out of here!
if (typeof value === 'string') {
value = mom.localeData().monthsParse(value);
// TODO: Another silent failure?
if (typeof value !== 'number') {
return mom;
}
}
dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
return mom;
}
function getSetMonth (value) {
if (value != null) {
setMonth(this, value);
utils_hooks__hooks.updateOffset(this, true);
return this;
} else {
return get_set__get(this, 'Month');
}
}
function getDaysInMonth () {
return daysInMonth(this.year(), this.month());
}
function checkOverflow (m) {
var overflow;
var a = m._a;
if (a && m._pf.overflow === -2) {
overflow =
a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
-1;
if (m._pf._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
overflow = DATE;
}
m._pf.overflow = overflow;
}
return m;
}
function warn(msg) {
if (utils_hooks__hooks.suppressDeprecationWarnings === false && typeof console !== 'undefined' && console.warn) {
console.warn('Deprecation warning: ' + msg);
}
}
function deprecate(msg, fn) {
var firstTime = true;
return extend(function () {
if (firstTime) {
warn(msg);
firstTime = false;
}
return fn.apply(this, arguments);
}, fn);
}
var deprecations = {};
function deprecateSimple(name, msg) {
if (!deprecations[name]) {
warn(msg);
deprecations[name] = true;
}
}
utils_hooks__hooks.suppressDeprecationWarnings = false;
var from_string__isoRegex = /^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
var isoDates = [
['YYYYYY-MM-DD', /[+-]\d{6}-\d{2}-\d{2}/],
['YYYY-MM-DD', /\d{4}-\d{2}-\d{2}/],
['GGGG-[W]WW-E', /\d{4}-W\d{2}-\d/],
['GGGG-[W]WW', /\d{4}-W\d{2}/],
['YYYY-DDD', /\d{4}-\d{3}/]
];
// iso time formats and regexes
var isoTimes = [
['HH:mm:ss.SSSS', /(T| )\d\d:\d\d:\d\d\.\d+/],
['HH:mm:ss', /(T| )\d\d:\d\d:\d\d/],
['HH:mm', /(T| )\d\d:\d\d/],
['HH', /(T| )\d\d/]
];
var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
// date from iso format
function configFromISO(config) {
var i, l,
string = config._i,
match = from_string__isoRegex.exec(string);
if (match) {
config._pf.iso = true;
for (i = 0, l = isoDates.length; i < l; i++) {
if (isoDates[i][1].exec(string)) {
// match[5] should be 'T' or undefined
config._f = isoDates[i][0] + (match[6] || ' ');
break;
}
}
for (i = 0, l = isoTimes.length; i < l; i++) {
if (isoTimes[i][1].exec(string)) {
config._f += isoTimes[i][0];
break;
}
}
if (string.match(matchOffset)) {
config._f += 'Z';
}
configFromStringAndFormat(config);
} else {
config._isValid = false;
}
}
// date from iso format or fallback
function configFromString(config) {
var matched = aspNetJsonRegex.exec(config._i);
if (matched !== null) {
config._d = new Date(+matched[1]);
return;
}
configFromISO(config);
if (config._isValid === false) {
delete config._isValid;
utils_hooks__hooks.createFromInputFallback(config);
}
}
utils_hooks__hooks.createFromInputFallback = deprecate(
'moment construction falls back to js Date. This is ' +
'discouraged and will be removed in upcoming major ' +
'release. Please refer to ' +
'https://github.com/moment/moment/issues/1407 for more info.',
function (config) {
config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
}
);
function createDate (y, m, d, h, M, s, ms) {
//can't just apply() to create a date:
//http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply
var date = new Date(y, m, d, h, M, s, ms);
//the date constructor doesn't accept years < 1970
if (y < 1970) {
date.setFullYear(y);
}
return date;
}
function createUTCDate (y) {
var date = new Date(Date.UTC.apply(null, arguments));
if (y < 1970) {
date.setUTCFullYear(y);
}
return date;
}
addFormatToken(0, ['YY', 2], 0, function () {
return this.year() % 100;
});
addFormatToken(0, ['YYYY', 4], 0, 'year');
addFormatToken(0, ['YYYYY', 5], 0, 'year');
addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
// ALIASES
addUnitAlias('year', 'y');
// PARSING
addRegexToken('Y', matchSigned);
addRegexToken('YY', match1to2, match2);
addRegexToken('YYYY', match1to4, match4);
addRegexToken('YYYYY', match1to6, match6);
addRegexToken('YYYYYY', match1to6, match6);
addParseToken(['YYYY', 'YYYYY', 'YYYYYY'], YEAR);
addParseToken('YY', function (input, array) {
array[YEAR] = utils_hooks__hooks.parseTwoDigitYear(input);
});
// HELPERS
function daysInYear(year) {
return isLeapYear(year) ? 366 : 365;
}
function isLeapYear(year) {
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
}
// HOOKS
utils_hooks__hooks.parseTwoDigitYear = function (input) {
return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
};
// MOMENTS
var getSetYear = makeGetSet('FullYear', false);
function getIsLeapYear () {
return isLeapYear(this.year());
}
addFormatToken('w', ['ww', 2], 'wo', 'week');
addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
// ALIASES
addUnitAlias('week', 'w');
addUnitAlias('isoWeek', 'W');
// PARSING
addRegexToken('w', match1to2);
addRegexToken('ww', match1to2, match2);
addRegexToken('W', match1to2);
addRegexToken('WW', match1to2, match2);
addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
week[token.substr(0, 1)] = toInt(input);
});
// HELPERS
// firstDayOfWeek 0 = sun, 6 = sat
// the day of the week that starts the week
// (usually sunday or monday)
// firstDayOfWeekOfYear 0 = sun, 6 = sat
// the first week is the week that contains the first
// of this day of the week
// (eg. ISO weeks use thursday (4))
function weekOfYear(mom, firstDayOfWeek, firstDayOfWeekOfYear) {
var end = firstDayOfWeekOfYear - firstDayOfWeek,
daysToDayOfWeek = firstDayOfWeekOfYear - mom.day(),
adjustedMoment;
if (daysToDayOfWeek > end) {
daysToDayOfWeek -= 7;
}
if (daysToDayOfWeek < end - 7) {
daysToDayOfWeek += 7;
}
adjustedMoment = local__createLocal(mom).add(daysToDayOfWeek, 'd');
return {
week: Math.ceil(adjustedMoment.dayOfYear() / 7),
year: adjustedMoment.year()
};
}
// LOCALES
function localeWeek (mom) {
return weekOfYear(mom, this._week.dow, this._week.doy).week;
}
var defaultLocaleWeek = {
dow : 0, // Sunday is the first day of the week.
doy : 6 // The week that contains Jan 1st is the first week of the year.
};
function localeFirstDayOfWeek () {
return this._week.dow;
}
function localeFirstDayOfYear () {
return this._week.doy;
}
// MOMENTS
function getSetWeek (input) {
var week = this.localeData().week(this);
return input == null ? week : this.add((input - week) * 7, 'd');
}
function getSetISOWeek (input) {
var week = weekOfYear(this, 1, 4).week;
return input == null ? week : this.add((input - week) * 7, 'd');
}
addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
// ALIASES
addUnitAlias('dayOfYear', 'DDD');
// PARSING
addRegexToken('DDD', match1to3);
addRegexToken('DDDD', match3);
addParseToken(['DDD', 'DDDD'], function (input, array, config) {
config._dayOfYear = toInt(input);
});
// HELPERS
//http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
function dayOfYearFromWeeks(year, week, weekday, firstDayOfWeekOfYear, firstDayOfWeek) {
var d = createUTCDate(year, 0, 1).getUTCDay();
var daysToAdd;
var dayOfYear;
d = d === 0 ? 7 : d;
weekday = weekday != null ? weekday : firstDayOfWeek;
daysToAdd = firstDayOfWeek - d + (d > firstDayOfWeekOfYear ? 7 : 0) - (d < firstDayOfWeek ? 7 : 0);
dayOfYear = 7 * (week - 1) + (weekday - firstDayOfWeek) + daysToAdd + 1;
return {
year : dayOfYear > 0 ? year : year - 1,
dayOfYear : dayOfYear > 0 ? dayOfYear : daysInYear(year - 1) + dayOfYear
};
}
// MOMENTS
function getSetDayOfYear (input) {
var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
}
// Pick the first defined of two or three arguments.
function defaults(a, b, c) {
if (a != null) {
return a;
}
if (b != null) {
return b;
}
return c;
}
function currentDateArray(config) {
var now = new Date();
if (config._useUTC) {
return [now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate()];
}
return [now.getFullYear(), now.getMonth(), now.getDate()];
}
// convert an array to a date.
// the array should mirror the parameters below
// note: all values past the year are optional and will default to the lowest possible value.
// [year, month, day , hour, minute, second, millisecond]
function configFromArray (config) {
var i, date, input = [], currentDate, yearToUse;
if (config._d) {
return;
}
currentDate = currentDateArray(config);
//compute day of the year from weeks and weekdays
if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
dayOfYearFromWeekInfo(config);
}
//if the day of the year is set, figure out what it is
if (config._dayOfYear) {
yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
if (config._dayOfYear > daysInYear(yearToUse)) {
config._pf._overflowDayOfYear = true;
}
date = createUTCDate(yearToUse, 0, config._dayOfYear);
config._a[MONTH] = date.getUTCMonth();
config._a[DATE] = date.getUTCDate();
}
// Default to current date.
// * if no year, month, day of month are given, default to today
// * if day of month is given, default month and year
// * if month is given, default only year
// * if year is given, don't default anything
for (i = 0; i < 3 && config._a[i] == null; ++i) {
config._a[i] = input[i] = currentDate[i];
}
// Zero out whatever was not defaulted, including time
for (; i < 7; i++) {
config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
}
// Check for 24:00:00.000
if (config._a[HOUR] === 24 &&
config._a[MINUTE] === 0 &&
config._a[SECOND] === 0 &&
config._a[MILLISECOND] === 0) {
config._nextDay = true;
config._a[HOUR] = 0;
}
config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
// Apply timezone offset from input. The actual utcOffset can be changed
// with parseZone.
if (config._tzm != null) {
config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
}
if (config._nextDay) {
config._a[HOUR] = 24;
}
}
function dayOfYearFromWeekInfo(config) {
var w, weekYear, week, weekday, dow, doy, temp;
w = config._w;
if (w.GG != null || w.W != null || w.E != null) {
dow = 1;
doy = 4;
// TODO: We need to take the current isoWeekYear, but that depends on
// how we interpret now (local, utc, fixed offset). So create
// a now version of current config (take local/utc/offset flags, and
// create now).
weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(local__createLocal(), 1, 4).year);
week = defaults(w.W, 1);
weekday = defaults(w.E, 1);
} else {
dow = config._locale._week.dow;
doy = config._locale._week.doy;
weekYear = defaults(w.gg, config._a[YEAR], weekOfYear(local__createLocal(), dow, doy).year);
week = defaults(w.w, 1);
if (w.d != null) {
// weekday -- low day numbers are considered next week
weekday = w.d;
if (weekday < dow) {
++week;
}
} else if (w.e != null) {
// local weekday -- counting starts from begining of week
weekday = w.e + dow;
} else {
// default to begining of week
weekday = dow;
}
}
temp = dayOfYearFromWeeks(weekYear, week, weekday, doy, dow);
config._a[YEAR] = temp.year;
config._dayOfYear = temp.dayOfYear;
}
utils_hooks__hooks.ISO_8601 = function () {};
// date from string and format string
function configFromStringAndFormat(config) {
// TODO: Move this to another part of the creation flow to prevent circular deps
if (config._f === utils_hooks__hooks.ISO_8601) {
configFromISO(config);
return;
}
config._a = [];
config._pf.empty = true;
// This array is used to make a Date, either with `new Date` or `Date.UTC`
var string = '' + config._i,
i, parsedInput, tokens, token, skipped,
stringLength = string.length,
totalParsedInputLength = 0;
tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
for (i = 0; i < tokens.length; i++) {
token = tokens[i];
parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
if (parsedInput) {
skipped = string.substr(0, string.indexOf(parsedInput));
if (skipped.length > 0) {
config._pf.unusedInput.push(skipped);
}
string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
totalParsedInputLength += parsedInput.length;
}
// don't parse if it's not a known token
if (formatTokenFunctions[token]) {
if (parsedInput) {
config._pf.empty = false;
}
else {
config._pf.unusedTokens.push(token);
}
addTimeToArrayFromToken(token, parsedInput, config);
}
else if (config._strict && !parsedInput) {
config._pf.unusedTokens.push(token);
}
}
// add remaining unparsed input length to the string
config._pf.charsLeftOver = stringLength - totalParsedInputLength;
if (string.length > 0) {
config._pf.unusedInput.push(string);
}
// clear _12h flag if hour is <= 12
if (config._pf.bigHour === true && config._a[HOUR] <= 12) {
config._pf.bigHour = undefined;
}
// handle meridiem
config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
configFromArray(config);
checkOverflow(config);
}
function meridiemFixWrap (locale, hour, meridiem) {
var isPm;
if (meridiem == null) {
// nothing to do
return hour;
}
if (locale.meridiemHour != null) {
return locale.meridiemHour(hour, meridiem);
} else if (locale.isPM != null) {
// Fallback
isPm = locale.isPM(meridiem);
if (isPm && hour < 12) {
hour += 12;
}
if (!isPm && hour === 12) {
hour = 0;
}
return hour;
} else {
// this is not supposed to happen
return hour;
}
}
function configFromStringAndArray(config) {
var tempConfig,
bestMoment,
scoreToBeat,
i,
currentScore;
if (config._f.length === 0) {
config._pf.invalidFormat = true;
config._d = new Date(NaN);
return;
}
for (i = 0; i < config._f.length; i++) {
currentScore = 0;
tempConfig = copyConfig({}, config);
if (config._useUTC != null) {
tempConfig._useUTC = config._useUTC;
}
tempConfig._pf = defaultParsingFlags();
tempConfig._f = config._f[i];
configFromStringAndFormat(tempConfig);
if (!valid__isValid(tempConfig)) {
continue;
}
// if there is any input that was not parsed add a penalty for that format
currentScore += tempConfig._pf.charsLeftOver;
//or tokens
currentScore += tempConfig._pf.unusedTokens.length * 10;
tempConfig._pf.score = currentScore;
if (scoreToBeat == null || currentScore < scoreToBeat) {
scoreToBeat = currentScore;
bestMoment = tempConfig;
}
}
extend(config, bestMoment || tempConfig);
}
function configFromObject(config) {
if (config._d) {
return;
}
var i = normalizeObjectUnits(config._i);
config._a = [i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond];
configFromArray(config);
}
function createFromConfig (config) {
var input = config._i,
format = config._f,
res;
config._locale = config._locale || locale_locales__getLocale(config._l);
if (input === null || (format === undefined && input === '')) {
return valid__createInvalid({nullInput: true});
}
if (typeof input === 'string') {
config._i = input = config._locale.preparse(input);
}
if (isMoment(input)) {
return new Moment(checkOverflow(input));
} else if (isArray(format)) {
configFromStringAndArray(config);
} else if (format) {
configFromStringAndFormat(config);
} else {
configFromInput(config);
}
res = new Moment(checkOverflow(config));
if (res._nextDay) {
// Adding is smart enough around DST
res.add(1, 'd');
res._nextDay = undefined;
}
return res;
}
function configFromInput(config) {
var input = config._i;
if (input === undefined) {
config._d = new Date();
} else if (isDate(input)) {
config._d = new Date(+input);
} else if (typeof input === 'string') {
configFromString(config);
} else if (isArray(input)) {
config._a = map(input.slice(0), function (obj) {
return parseInt(obj, 10);
});
configFromArray(config);
} else if (typeof(input) === 'object') {
configFromObject(config);
} else if (typeof(input) === 'number') {
// from milliseconds
config._d = new Date(input);
} else {
utils_hooks__hooks.createFromInputFallback(config);
}
}
function createLocalOrUTC (input, format, locale, strict, isUTC) {
var c = {};
if (typeof(locale) === 'boolean') {
strict = locale;
locale = undefined;
}
// object construction must be done this way.
// https://github.com/moment/moment/issues/1423
c._isAMomentObject = true;
c._useUTC = c._isUTC = isUTC;
c._l = locale;
c._i = input;
c._f = format;
c._strict = strict;
c._pf = defaultParsingFlags();
return createFromConfig(c);
}
function local__createLocal (input, format, locale, strict) {
return createLocalOrUTC(input, format, locale, strict, false);
}
var prototypeMin = deprecate(
'moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548',
function () {
var other = local__createLocal.apply(null, arguments);
return other < this ? this : other;
}
);
var prototypeMax = deprecate(
'moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548',
function () {
var other = local__createLocal.apply(null, arguments);
return other > this ? this : other;
}
);
// Pick a moment m from moments so that m[fn](other) is true for all
// other. This relies on the function fn to be transitive.
//
// moments should either be an array of moment objects or an array, whose
// first element is an array of moment objects.
function pickBy(fn, moments) {
var res, i;
if (moments.length === 1 && isArray(moments[0])) {
moments = moments[0];
}
if (!moments.length) {
return local__createLocal();
}
res = moments[0];
for (i = 1; i < moments.length; ++i) {
if (moments[i][fn](res)) {
res = moments[i];
}
}
return res;
}
// TODO: Use [].sort instead?
function min () {
var args = [].slice.call(arguments, 0);
return pickBy('isBefore', args);
}
function max () {
var args = [].slice.call(arguments, 0);
return pickBy('isAfter', args);
}
function Duration (duration) {
var normalizedInput = normalizeObjectUnits(duration),
years = normalizedInput.year || 0,
quarters = normalizedInput.quarter || 0,
months = normalizedInput.month || 0,
weeks = normalizedInput.week || 0,
days = normalizedInput.day || 0,
hours = normalizedInput.hour || 0,
minutes = normalizedInput.minute || 0,
seconds = normalizedInput.second || 0,
milliseconds = normalizedInput.millisecond || 0;
// representation for dateAddRemove
this._milliseconds = +milliseconds +
seconds * 1e3 + // 1000
minutes * 6e4 + // 1000 * 60
hours * 36e5; // 1000 * 60 * 60
// Because of dateAddRemove treats 24 hours as different from a
// day when working around DST, we need to store them separately
this._days = +days +
weeks * 7;
// It is impossible translate months into days without knowing
// which months you are are talking about, so we have to store
// it separately.
this._months = +months +
quarters * 3 +
years * 12;
this._data = {};
this._locale = locale_locales__getLocale();
this._bubble();
}
function isDuration (obj) {
return obj instanceof Duration;
}
function offset (token, separator) {
addFormatToken(token, 0, 0, function () {
var offset = this.utcOffset();
var sign = '+';
if (offset < 0) {
offset = -offset;
sign = '-';
}
return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
});
}
offset('Z', ':');
offset('ZZ', '');
// PARSING
addRegexToken('Z', matchOffset);
addRegexToken('ZZ', matchOffset);
addParseToken(['Z', 'ZZ'], function (input, array, config) {
config._useUTC = true;
config._tzm = offsetFromString(input);
});
// HELPERS
// timezone chunker
// '+10:00' > ['10', '00']
// '-1530' > ['-15', '30']
var chunkOffset = /([\+\-]|\d\d)/gi;
function offsetFromString(string) {
var matches = ((string || '').match(matchOffset) || []);
var chunk = matches[matches.length - 1] || [];
var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
var minutes = +(parts[1] * 60) + toInt(parts[2]);
return parts[0] === '+' ? minutes : -minutes;
}
// Return a moment from input, that is local/utc/zone equivalent to model.
function cloneWithOffset(input, model) {
var res, diff;
if (model._isUTC) {
res = model.clone();
diff = (isMoment(input) || isDate(input) ? +input : +local__createLocal(input)) - (+res);
// Use low-level api, because this fn is low-level api.
res._d.setTime(+res._d + diff);
utils_hooks__hooks.updateOffset(res, false);
return res;
} else {
return local__createLocal(input).local();
}
return model._isUTC ? local__createLocal(input).zone(model._offset || 0) : local__createLocal(input).local();
}
function getDateOffset (m) {
// On Firefox.24 Date#getTimezoneOffset returns a floating point.
// https://github.com/moment/moment/pull/1871
return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
}
// HOOKS
// This function will be called whenever a moment is mutated.
// It is intended to keep the offset in sync with the timezone.
utils_hooks__hooks.updateOffset = function () {};
// MOMENTS
// keepLocalTime = true means only change the timezone, without
// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
// +0200, so we adjust the time as needed, to be valid.
//
// Keeping the time actually adds/subtracts (one hour)
// from the actual represented time. That is why we call updateOffset
// a second time. In case it wants us to change the offset again
// _changeInProgress == true case, then we have to adjust, because
// there is no such time in the given timezone.
function getSetOffset (input, keepLocalTime) {
var offset = this._offset || 0,
localAdjust;
if (input != null) {
if (typeof input === 'string') {
input = offsetFromString(input);
}
if (Math.abs(input) < 16) {
input = input * 60;
}
if (!this._isUTC && keepLocalTime) {
localAdjust = getDateOffset(this);
}
this._offset = input;
this._isUTC = true;
if (localAdjust != null) {
this.add(localAdjust, 'm');
}
if (offset !== input) {
if (!keepLocalTime || this._changeInProgress) {
add_subtract__addSubtract(this, create__createDuration(input - offset, 'm'), 1, false);
} else if (!this._changeInProgress) {
this._changeInProgress = true;
utils_hooks__hooks.updateOffset(this, true);
this._changeInProgress = null;
}
}
return this;
} else {
return this._isUTC ? offset : getDateOffset(this);
}
}
function getSetZone (input, keepLocalTime) {
if (input != null) {
if (typeof input !== 'string') {
input = -input;
}
this.utcOffset(input, keepLocalTime);
return this;
} else {
return -this.utcOffset();
}
}
function setOffsetToUTC (keepLocalTime) {
return this.utcOffset(0, keepLocalTime);
}
function setOffsetToLocal (keepLocalTime) {
if (this._isUTC) {
this.utcOffset(0, keepLocalTime);
this._isUTC = false;
if (keepLocalTime) {
this.subtract(getDateOffset(this), 'm');
}
}
return this;
}
function setOffsetToParsedOffset () {
if (this._tzm) {
this.utcOffset(this._tzm);
} else if (typeof this._i === 'string') {
this.utcOffset(offsetFromString(this._i));
}
return this;
}
function hasAlignedHourOffset (input) {
if (!input) {
input = 0;
}
else {
input = local__createLocal(input).utcOffset();
}
return (this.utcOffset() - input) % 60 === 0;
}
function isDaylightSavingTime () {
return (
this.utcOffset() > this.clone().month(0).utcOffset() ||
this.utcOffset() > this.clone().month(5).utcOffset()
);
}
function isDaylightSavingTimeShifted () {
if (this._a) {
var other = this._isUTC ? create_utc__createUTC(this._a) : local__createLocal(this._a);
return this.isValid() && compareArrays(this._a, other.toArray()) > 0;
}
return false;
}
function isLocal () {
return !this._isUTC;
}
function isUtcOffset () {
return this._isUTC;
}
function isUtc () {
return this._isUTC && this._offset === 0;
}
var aspNetRegex = /(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/;
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
var create__isoRegex = /^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;
function create__createDuration (input, key) {
var duration = input,
// matching against regexp is expensive, do it on demand
match = null,
sign,
ret,
diffRes;
if (isDuration(input)) {
duration = {
ms : input._milliseconds,
d : input._days,
M : input._months
};
} else if (typeof input === 'number') {
duration = {};
if (key) {
duration[key] = input;
} else {
duration.milliseconds = input;
}
} else if (!!(match = aspNetRegex.exec(input))) {
sign = (match[1] === '-') ? -1 : 1;
duration = {
y : 0,
d : toInt(match[DATE]) * sign,
h : toInt(match[HOUR]) * sign,
m : toInt(match[MINUTE]) * sign,
s : toInt(match[SECOND]) * sign,
ms : toInt(match[MILLISECOND]) * sign
};
} else if (!!(match = create__isoRegex.exec(input))) {
sign = (match[1] === '-') ? -1 : 1;
duration = {
y : parseIso(match[2], sign),
M : parseIso(match[3], sign),
d : parseIso(match[4], sign),
h : parseIso(match[5], sign),
m : parseIso(match[6], sign),
s : parseIso(match[7], sign),
w : parseIso(match[8], sign)
};
} else if (duration == null) {// checks for null or undefined
duration = {};
} else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
diffRes = momentsDifference(local__createLocal(duration.from), local__createLocal(duration.to));
duration = {};
duration.ms = diffRes.milliseconds;
duration.M = diffRes.months;
}
ret = new Duration(duration);
if (isDuration(input) && hasOwnProp(input, '_locale')) {
ret._locale = input._locale;
}
return ret;
}
create__createDuration.fn = Duration.prototype;
function parseIso (inp, sign) {
// We'd normally use ~~inp for this, but unfortunately it also
// converts floats to ints.
// inp may be undefined, so careful calling replace on it.
var res = inp && parseFloat(inp.replace(',', '.'));
// apply sign while we're at it
return (isNaN(res) ? 0 : res) * sign;
}
function positiveMomentsDifference(base, other) {
var res = {milliseconds: 0, months: 0};
res.months = other.month() - base.month() +
(other.year() - base.year()) * 12;
if (base.clone().add(res.months, 'M').isAfter(other)) {
--res.months;
}
res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
return res;
}
function momentsDifference(base, other) {
var res;
other = cloneWithOffset(other, base);
if (base.isBefore(other)) {
res = positiveMomentsDifference(base, other);
} else {
res = positiveMomentsDifference(other, base);
res.milliseconds = -res.milliseconds;
res.months = -res.months;
}
return res;
}
function createAdder(direction, name) {
return function (val, period) {
var dur, tmp;
//invert the arguments, but complain about it
if (period !== null && !isNaN(+period)) {
deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period).');
tmp = val; val = period; period = tmp;
}
val = typeof val === 'string' ? +val : val;
dur = create__createDuration(val, period);
add_subtract__addSubtract(this, dur, direction);
return this;
};
}
function add_subtract__addSubtract (mom, duration, isAdding, updateOffset) {
var milliseconds = duration._milliseconds,
days = duration._days,
months = duration._months;
updateOffset = updateOffset == null ? true : updateOffset;
if (milliseconds) {
mom._d.setTime(+mom._d + milliseconds * isAdding);
}
if (days) {
get_set__set(mom, 'Date', get_set__get(mom, 'Date') + days * isAdding);
}
if (months) {
setMonth(mom, get_set__get(mom, 'Month') + months * isAdding);
}
if (updateOffset) {
utils_hooks__hooks.updateOffset(mom, days || months);
}
}
var add_subtract__add = createAdder(1, 'add');
var add_subtract__subtract = createAdder(-1, 'subtract');
function moment_calendar__calendar (time) {
// We want to compare the start of today, vs this.
// Getting start-of-today depends on whether we're local/utc/offset or not.
var now = time || local__createLocal(),
sod = cloneWithOffset(now, this).startOf('day'),
diff = this.diff(sod, 'days', true),
format = diff < -6 ? 'sameElse' :
diff < -1 ? 'lastWeek' :
diff < 0 ? 'lastDay' :
diff < 1 ? 'sameDay' :
diff < 2 ? 'nextDay' :
diff < 7 ? 'nextWeek' : 'sameElse';
return this.format(this.localeData().calendar(format, this, local__createLocal(now)));
}
function clone () {
return new Moment(this);
}
function isAfter (input, units) {
var inputMs;
units = normalizeUnits(typeof units !== 'undefined' ? units : 'millisecond');
if (units === 'millisecond') {
input = isMoment(input) ? input : local__createLocal(input);
return +this > +input;
} else {
inputMs = isMoment(input) ? +input : +local__createLocal(input);
return inputMs < +this.clone().startOf(units);
}
}
function isBefore (input, units) {
var inputMs;
units = normalizeUnits(typeof units !== 'undefined' ? units : 'millisecond');
if (units === 'millisecond') {
input = isMoment(input) ? input : local__createLocal(input);
return +this < +input;
} else {
inputMs = isMoment(input) ? +input : +local__createLocal(input);
return +this.clone().endOf(units) < inputMs;
}
}
function isBetween (from, to, units) {
return this.isAfter(from, units) && this.isBefore(to, units);
}
function isSame (input, units) {
var inputMs;
units = normalizeUnits(units || 'millisecond');
if (units === 'millisecond') {
input = isMoment(input) ? input : local__createLocal(input);
return +this === +input;
} else {
inputMs = +local__createLocal(input);
return +(this.clone().startOf(units)) <= inputMs && inputMs <= +(this.clone().endOf(units));
}
}
function absFloor (number) {
if (number < 0) {
return Math.ceil(number);
} else {
return Math.floor(number);
}
}
function diff (input, units, asFloat) {
var that = cloneWithOffset(input, this),
zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4,
delta, output;
units = normalizeUnits(units);
if (units === 'year' || units === 'month' || units === 'quarter') {
output = monthDiff(this, that);
if (units === 'quarter') {
output = output / 3;
} else if (units === 'year') {
output = output / 12;
}
} else {
delta = this - that;
output = units === 'second' ? delta / 1e3 : // 1000
units === 'minute' ? delta / 6e4 : // 1000 * 60
units === 'hour' ? delta / 36e5 : // 1000 * 60 * 60
units === 'day' ? (delta - zoneDelta) / 864e5 : // 1000 * 60 * 60 * 24, negate dst
units === 'week' ? (delta - zoneDelta) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst
delta;
}
return asFloat ? output : absFloor(output);
}
function monthDiff (a, b) {
// difference in months
var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
// b is in (anchor - 1 month, anchor + 1 month)
anchor = a.clone().add(wholeMonthDiff, 'months'),
anchor2, adjust;
if (b - anchor < 0) {
anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
// linear across the month
adjust = (b - anchor) / (anchor - anchor2);
} else {
anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
// linear across the month
adjust = (b - anchor) / (anchor2 - anchor);
}
return -(wholeMonthDiff + adjust);
}
utils_hooks__hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
function toString () {
return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
}
function moment_format__toISOString () {
var m = this.clone().utc();
if (0 < m.year() && m.year() <= 9999) {
if ('function' === typeof Date.prototype.toISOString) {
// native implementation is ~50x faster, use it when we can
return this.toDate().toISOString();
} else {
return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
}
} else {
return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
}
}
function format (inputString) {
var output = formatMoment(this, inputString || utils_hooks__hooks.defaultFormat);
return this.localeData().postformat(output);
}
function from (time, withoutSuffix) {
return create__createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
}
function fromNow (withoutSuffix) {
return this.from(local__createLocal(), withoutSuffix);
}
function locale (key) {
var newLocaleData;
if (key === undefined) {
return this._locale._abbr;
} else {
newLocaleData = locale_locales__getLocale(key);
if (newLocaleData != null) {
this._locale = newLocaleData;
}
return this;
}
}
var lang = deprecate(
'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
function (key) {
if (key === undefined) {
return this.localeData();
} else {
return this.locale(key);
}
}
);
function localeData () {
return this._locale;
}
function startOf (units) {
units = normalizeUnits(units);
// the following switch intentionally omits break keywords
// to utilize falling through the cases.
switch (units) {
case 'year':
this.month(0);
/* falls through */
case 'quarter':
case 'month':
this.date(1);
/* falls through */
case 'week':
case 'isoWeek':
case 'day':
this.hours(0);
/* falls through */
case 'hour':
this.minutes(0);
/* falls through */
case 'minute':
this.seconds(0);
/* falls through */
case 'second':
this.milliseconds(0);
}
// weeks are a special case
if (units === 'week') {
this.weekday(0);
}
if (units === 'isoWeek') {
this.isoWeekday(1);
}
// quarters are also special
if (units === 'quarter') {
this.month(Math.floor(this.month() / 3) * 3);
}
return this;
}
function endOf (units) {
units = normalizeUnits(units);
if (units === undefined || units === 'millisecond') {
return this;
}
return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
}
function to_type__valueOf () {
return +this._d - ((this._offset || 0) * 60000);
}
function unix () {
return Math.floor(+this / 1000);
}
function toDate () {
return this._offset ? new Date(+this) : this._d;
}
function toArray () {
var m = this;
return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
}
function moment_valid__isValid () {
return valid__isValid(this);
}
function parsingFlags () {
return extend({}, this._pf);
}
function invalidAt () {
return this._pf.overflow;
}
addFormatToken(0, ['gg', 2], 0, function () {
return this.weekYear() % 100;
});
addFormatToken(0, ['GG', 2], 0, function () {
return this.isoWeekYear() % 100;
});
function addWeekYearFormatToken (token, getter) {
addFormatToken(0, [token, token.length], 0, getter);
}
addWeekYearFormatToken('gggg', 'weekYear');
addWeekYearFormatToken('ggggg', 'weekYear');
addWeekYearFormatToken('GGGG', 'isoWeekYear');
addWeekYearFormatToken('GGGGG', 'isoWeekYear');
// ALIASES
addUnitAlias('weekYear', 'gg');
addUnitAlias('isoWeekYear', 'GG');
// PARSING
addRegexToken('G', matchSigned);
addRegexToken('g', matchSigned);
addRegexToken('GG', match1to2, match2);
addRegexToken('gg', match1to2, match2);
addRegexToken('GGGG', match1to4, match4);
addRegexToken('gggg', match1to4, match4);
addRegexToken('GGGGG', match1to6, match6);
addRegexToken('ggggg', match1to6, match6);
addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
week[token.substr(0, 2)] = toInt(input);
});
addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
week[token] = utils_hooks__hooks.parseTwoDigitYear(input);
});
// HELPERS
function weeksInYear(year, dow, doy) {
return weekOfYear(local__createLocal([year, 11, 31 + dow - doy]), dow, doy).week;
}
// MOMENTS
function getSetWeekYear (input) {
var year = weekOfYear(this, this.localeData()._week.dow, this.localeData()._week.doy).year;
return input == null ? year : this.add((input - year), 'y');
}
function getSetISOWeekYear (input) {
var year = weekOfYear(this, 1, 4).year;
return input == null ? year : this.add((input - year), 'y');
}
function getISOWeeksInYear () {
return weeksInYear(this.year(), 1, 4);
}
function getWeeksInYear () {
var weekInfo = this.localeData()._week;
return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
}
addFormatToken('Q', 0, 0, 'quarter');
// ALIASES
addUnitAlias('quarter', 'Q');
// PARSING
addRegexToken('Q', match1);
addParseToken('Q', function (input, array) {
array[MONTH] = (toInt(input) - 1) * 3;
});
// MOMENTS
function getSetQuarter (input) {
return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
}
addFormatToken('D', ['DD', 2], 'Do', 'date');
// ALIASES
addUnitAlias('date', 'D');
// PARSING
addRegexToken('D', match1to2);
addRegexToken('DD', match1to2, match2);
addRegexToken('Do', function (isStrict, locale) {
return isStrict ? locale._ordinalParse : locale._ordinalParseLenient;
});
addParseToken(['D', 'DD'], DATE);
addParseToken('Do', function (input, array) {
array[DATE] = toInt(input.match(match1to2)[0], 10);
});
// MOMENTS
var getSetDayOfMonth = makeGetSet('Date', true);
addFormatToken('d', 0, 'do', 'day');
addFormatToken('dd', 0, 0, function (format) {
return this.localeData().weekdaysMin(this, format);
});
addFormatToken('ddd', 0, 0, function (format) {
return this.localeData().weekdaysShort(this, format);
});
addFormatToken('dddd', 0, 0, function (format) {
return this.localeData().weekdays(this, format);
});
addFormatToken('e', 0, 0, 'weekday');
addFormatToken('E', 0, 0, 'isoWeekday');
// ALIASES
addUnitAlias('day', 'd');
addUnitAlias('weekday', 'e');
addUnitAlias('isoWeekday', 'E');
// PARSING
addRegexToken('d', match1to2);
addRegexToken('e', match1to2);
addRegexToken('E', match1to2);
addRegexToken('dd', matchWord);
addRegexToken('ddd', matchWord);
addRegexToken('dddd', matchWord);
addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config) {
var weekday = config._locale.weekdaysParse(input);
// if we didn't get a weekday name, mark the date as invalid
if (weekday != null) {
week.d = weekday;
} else {
config._pf.invalidWeekday = input;
}
});
addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
week[token] = toInt(input);
});
// HELPERS
function parseWeekday(input, locale) {
if (typeof input === 'string') {
if (!isNaN(input)) {
input = parseInt(input, 10);
}
else {
input = locale.weekdaysParse(input);
if (typeof input !== 'number') {
return null;
}
}
}
return input;
}
// LOCALES
var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
function localeWeekdays (m) {
return this._weekdays[m.day()];
}
var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
function localeWeekdaysShort (m) {
return this._weekdaysShort[m.day()];
}
var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
function localeWeekdaysMin (m) {
return this._weekdaysMin[m.day()];
}
function localeWeekdaysParse (weekdayName) {
var i, mom, regex;
if (!this._weekdaysParse) {
this._weekdaysParse = [];
}
for (i = 0; i < 7; i++) {
// make the regex if we don't have it already
if (!this._weekdaysParse[i]) {
mom = local__createLocal([2000, 1]).day(i);
regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
}
// test the regex
if (this._weekdaysParse[i].test(weekdayName)) {
return i;
}
}
}
// MOMENTS
function getSetDayOfWeek (input) {
var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
if (input != null) {
input = parseWeekday(input, this.localeData());
return this.add(input - day, 'd');
} else {
return day;
}
}
function getSetLocaleDayOfWeek (input) {
var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
return input == null ? weekday : this.add(input - weekday, 'd');
}
function getSetISODayOfWeek (input) {
// behaves the same as moment#day except
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
// as a setter, sunday should belong to the previous week.
return input == null ? this.day() || 7 : this.day(this.day() % 7 ? input : input - 7);
}
addFormatToken('H', ['HH', 2], 0, 'hour');
addFormatToken('h', ['hh', 2], 0, function () {
return this.hours() % 12 || 12;
});
function meridiem (token, lowercase) {
addFormatToken(token, 0, 0, function () {
return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
});
}
meridiem('a', true);
meridiem('A', false);
// ALIASES
addUnitAlias('hour', 'h');
// PARSING
function matchMeridiem (isStrict, locale) {
return locale._meridiemParse;
}
addRegexToken('a', matchMeridiem);
addRegexToken('A', matchMeridiem);
addRegexToken('H', match1to2);
addRegexToken('h', match1to2);
addRegexToken('HH', match1to2, match2);
addRegexToken('hh', match1to2, match2);
addParseToken(['H', 'HH'], HOUR);
addParseToken(['a', 'A'], function (input, array, config) {
config._isPm = config._locale.isPM(input);
config._meridiem = input;
});
addParseToken(['h', 'hh'], function (input, array, config) {
array[HOUR] = toInt(input);
config._pf.bigHour = true;
});
// LOCALES
function localeIsPM (input) {
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
// Using charAt should be more compatible.
return ((input + '').toLowerCase().charAt(0) === 'p');
}
var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
function localeMeridiem (hours, minutes, isLower) {
if (hours > 11) {
return isLower ? 'pm' : 'PM';
} else {
return isLower ? 'am' : 'AM';
}
}
// MOMENTS
// Setting the hour should keep the time, because the user explicitly
// specified which hour he wants. So trying to maintain the same hour (in
// a new timezone) makes sense. Adding/subtracting hours does not follow
// this rule.
var getSetHour = makeGetSet('Hours', true);
addFormatToken('m', ['mm', 2], 0, 'minute');
// ALIASES
addUnitAlias('minute', 'm');
// PARSING
addRegexToken('m', match1to2);
addRegexToken('mm', match1to2, match2);
addParseToken(['m', 'mm'], MINUTE);
// MOMENTS
var getSetMinute = makeGetSet('Minutes', false);
addFormatToken('s', ['ss', 2], 0, 'second');
// ALIASES
addUnitAlias('second', 's');
// PARSING
addRegexToken('s', match1to2);
addRegexToken('ss', match1to2, match2);
addParseToken(['s', 'ss'], SECOND);
// MOMENTS
var getSetSecond = makeGetSet('Seconds', false);
addFormatToken('S', 0, 0, function () {
return ~~(this.millisecond() / 100);
});
addFormatToken(0, ['SS', 2], 0, function () {
return ~~(this.millisecond() / 10);
});
function millisecond__milliseconds (token) {
addFormatToken(0, [token, 3], 0, 'millisecond');
}
millisecond__milliseconds('SSS');
millisecond__milliseconds('SSSS');
// ALIASES
addUnitAlias('millisecond', 'ms');
// PARSING
addRegexToken('S', match1to3, match1);
addRegexToken('SS', match1to3, match2);
addRegexToken('SSS', match1to3, match3);
addRegexToken('SSSS', matchUnsigned);
addParseToken(['S', 'SS', 'SSS', 'SSSS'], function (input, array) {
array[MILLISECOND] = toInt(('0.' + input) * 1000);
});
// MOMENTS
var getSetMillisecond = makeGetSet('Milliseconds', false);
addFormatToken('z', 0, 0, 'zoneAbbr');
addFormatToken('zz', 0, 0, 'zoneName');
// MOMENTS
function getZoneAbbr () {
return this._isUTC ? 'UTC' : '';
}
function getZoneName () {
return this._isUTC ? 'Coordinated Universal Time' : '';
}
var momentPrototype__proto = Moment.prototype;
momentPrototype__proto.add = add_subtract__add;
momentPrototype__proto.calendar = moment_calendar__calendar;
momentPrototype__proto.clone = clone;
momentPrototype__proto.diff = diff;
momentPrototype__proto.endOf = endOf;
momentPrototype__proto.format = format;
momentPrototype__proto.from = from;
momentPrototype__proto.fromNow = fromNow;
momentPrototype__proto.get = getSet;
momentPrototype__proto.invalidAt = invalidAt;
momentPrototype__proto.isAfter = isAfter;
momentPrototype__proto.isBefore = isBefore;
momentPrototype__proto.isBetween = isBetween;
momentPrototype__proto.isSame = isSame;
momentPrototype__proto.isValid = moment_valid__isValid;
momentPrototype__proto.lang = lang;
momentPrototype__proto.locale = locale;
momentPrototype__proto.localeData = localeData;
momentPrototype__proto.max = prototypeMax;
momentPrototype__proto.min = prototypeMin;
momentPrototype__proto.parsingFlags = parsingFlags;
momentPrototype__proto.set = getSet;
momentPrototype__proto.startOf = startOf;
momentPrototype__proto.subtract = add_subtract__subtract;
momentPrototype__proto.toArray = toArray;
momentPrototype__proto.toDate = toDate;
momentPrototype__proto.toISOString = moment_format__toISOString;
momentPrototype__proto.toJSON = moment_format__toISOString;
momentPrototype__proto.toString = toString;
momentPrototype__proto.unix = unix;
momentPrototype__proto.valueOf = to_type__valueOf;
// Year
momentPrototype__proto.year = getSetYear;
momentPrototype__proto.isLeapYear = getIsLeapYear;
// Week Year
momentPrototype__proto.weekYear = getSetWeekYear;
momentPrototype__proto.isoWeekYear = getSetISOWeekYear;
// Quarter
momentPrototype__proto.quarter = momentPrototype__proto.quarters = getSetQuarter;
// Month
momentPrototype__proto.month = getSetMonth;
momentPrototype__proto.daysInMonth = getDaysInMonth;
// Week
momentPrototype__proto.week = momentPrototype__proto.weeks = getSetWeek;
momentPrototype__proto.isoWeek = momentPrototype__proto.isoWeeks = getSetISOWeek;
momentPrototype__proto.weeksInYear = getWeeksInYear;
momentPrototype__proto.isoWeeksInYear = getISOWeeksInYear;
// Day
momentPrototype__proto.date = getSetDayOfMonth;
momentPrototype__proto.day = momentPrototype__proto.days = getSetDayOfWeek;
momentPrototype__proto.weekday = getSetLocaleDayOfWeek;
momentPrototype__proto.isoWeekday = getSetISODayOfWeek;
momentPrototype__proto.dayOfYear = getSetDayOfYear;
// Hour
momentPrototype__proto.hour = momentPrototype__proto.hours = getSetHour;
// Minute
momentPrototype__proto.minute = momentPrototype__proto.minutes = getSetMinute;
// Second
momentPrototype__proto.second = momentPrototype__proto.seconds = getSetSecond;
// Millisecond
momentPrototype__proto.millisecond = momentPrototype__proto.milliseconds = getSetMillisecond;
// Offset
momentPrototype__proto.utcOffset = getSetOffset;
momentPrototype__proto.utc = setOffsetToUTC;
momentPrototype__proto.local = setOffsetToLocal;
momentPrototype__proto.parseZone = setOffsetToParsedOffset;
momentPrototype__proto.hasAlignedHourOffset = hasAlignedHourOffset;
momentPrototype__proto.isDST = isDaylightSavingTime;
momentPrototype__proto.isDSTShifted = isDaylightSavingTimeShifted;
momentPrototype__proto.isLocal = isLocal;
momentPrototype__proto.isUtcOffset = isUtcOffset;
momentPrototype__proto.isUtc = isUtc;
momentPrototype__proto.isUTC = isUtc;
// Timezone
momentPrototype__proto.zoneAbbr = getZoneAbbr;
momentPrototype__proto.zoneName = getZoneName;
// Deprecations
momentPrototype__proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
momentPrototype__proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
momentPrototype__proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
momentPrototype__proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779', getSetZone);
var momentPrototype = momentPrototype__proto;
function moment__createUnix (input) {
return local__createLocal(input * 1000);
}
function moment__createInZone () {
return local__createLocal.apply(null, arguments).parseZone();
}
var defaultCalendar = {
sameDay : '[Today at] LT',
nextDay : '[Tomorrow at] LT',
nextWeek : 'dddd [at] LT',
lastDay : '[Yesterday at] LT',
lastWeek : '[Last] dddd [at] LT',
sameElse : 'L'
};
function locale_calendar__calendar (key, mom, now) {
var output = this._calendar[key];
return typeof output === 'function' ? output.call(mom, now) : output;
}
var defaultLongDateFormat = {
LTS : 'h:mm:ss A',
LT : 'h:mm A',
L : 'MM/DD/YYYY',
LL : 'MMMM D, YYYY',
LLL : 'MMMM D, YYYY LT',
LLLL : 'dddd, MMMM D, YYYY LT'
};
function longDateFormat (key) {
var output = this._longDateFormat[key];
if (!output && this._longDateFormat[key.toUpperCase()]) {
output = this._longDateFormat[key.toUpperCase()].replace(/MMMM|MM|DD|dddd/g, function (val) {
return val.slice(1);
});
this._longDateFormat[key] = output;
}
return output;
}
var defaultInvalidDate = 'Invalid date';
function invalidDate () {
return this._invalidDate;
}
var defaultOrdinal = '%d';
var defaultOrdinalParse = /\d{1,2}/;
function ordinal (number) {
return this._ordinal.replace('%d', number);
}
function preParsePostFormat (string) {
return string;
}
var defaultRelativeTime = {
future : 'in %s',
past : '%s ago',
s : 'a few seconds',
m : 'a minute',
mm : '%d minutes',
h : 'an hour',
hh : '%d hours',
d : 'a day',
dd : '%d days',
M : 'a month',
MM : '%d months',
y : 'a year',
yy : '%d years'
};
function relative__relativeTime (number, withoutSuffix, string, isFuture) {
var output = this._relativeTime[string];
return (typeof output === 'function') ?
output(number, withoutSuffix, string, isFuture) :
output.replace(/%d/i, number);
}
function pastFuture (diff, output) {
var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
return typeof format === 'function' ? format(output) : format.replace(/%s/i, output);
}
function locale_set__set (config) {
var prop, i;
for (i in config) {
prop = config[i];
if (typeof prop === 'function') {
this[i] = prop;
} else {
this['_' + i] = prop;
}
}
// Lenient ordinal parsing accepts just a number in addition to
// number + (possibly) stuff coming from _ordinalParseLenient.
this._ordinalParseLenient = new RegExp(this._ordinalParse.source + '|' + /\d{1,2}/.source);
}
var prototype__proto = Locale.prototype;
prototype__proto._calendar = defaultCalendar;
prototype__proto.calendar = locale_calendar__calendar;
prototype__proto._longDateFormat = defaultLongDateFormat;
prototype__proto.longDateFormat = longDateFormat;
prototype__proto._invalidDate = defaultInvalidDate;
prototype__proto.invalidDate = invalidDate;
prototype__proto._ordinal = defaultOrdinal;
prototype__proto.ordinal = ordinal;
prototype__proto._ordinalParse = defaultOrdinalParse;
prototype__proto.preparse = preParsePostFormat;
prototype__proto.postformat = preParsePostFormat;
prototype__proto._relativeTime = defaultRelativeTime;
prototype__proto.relativeTime = relative__relativeTime;
prototype__proto.pastFuture = pastFuture;
prototype__proto.set = locale_set__set;
// Month
prototype__proto.months = localeMonths;
prototype__proto._months = defaultLocaleMonths;
prototype__proto.monthsShort = localeMonthsShort;
prototype__proto._monthsShort = defaultLocaleMonthsShort;
prototype__proto.monthsParse = localeMonthsParse;
// Week
prototype__proto.week = localeWeek;
prototype__proto._week = defaultLocaleWeek;
prototype__proto.firstDayOfYear = localeFirstDayOfYear;
prototype__proto.firstDayOfWeek = localeFirstDayOfWeek;
// Day of Week
prototype__proto.weekdays = localeWeekdays;
prototype__proto._weekdays = defaultLocaleWeekdays;
prototype__proto.weekdaysMin = localeWeekdaysMin;
prototype__proto._weekdaysMin = defaultLocaleWeekdaysMin;
prototype__proto.weekdaysShort = localeWeekdaysShort;
prototype__proto._weekdaysShort = defaultLocaleWeekdaysShort;
prototype__proto.weekdaysParse = localeWeekdaysParse;
// Hours
prototype__proto.isPM = localeIsPM;
prototype__proto._meridiemParse = defaultLocaleMeridiemParse;
prototype__proto.meridiem = localeMeridiem;
function lists__get (format, index, field, setter) {
var locale = locale_locales__getLocale();
var utc = create_utc__createUTC().set(setter, index);
return locale[field](utc, format);
}
function list (format, index, field, count, setter) {
if (typeof format === 'number') {
index = format;
format = undefined;
}
format = format || '';
if (index != null) {
return lists__get(format, index, field, setter);
}
var i;
var out = [];
for (i = 0; i < count; i++) {
out[i] = lists__get(format, i, field, setter);
}
return out;
}
function lists__listMonths (format, index) {
return list(format, index, 'months', 12, 'month');
}
function lists__listMonthsShort (format, index) {
return list(format, index, 'monthsShort', 12, 'month');
}
function lists__listWeekdays (format, index) {
return list(format, index, 'weekdays', 7, 'day');
}
function lists__listWeekdaysShort (format, index) {
return list(format, index, 'weekdaysShort', 7, 'day');
}
function lists__listWeekdaysMin (format, index) {
return list(format, index, 'weekdaysMin', 7, 'day');
}
locale_locales__getSetGlobalLocale('en', {
ordinalParse: /\d{1,2}(th|st|nd|rd)/,
ordinal : function (number) {
var b = number % 10,
output = (toInt(number % 100 / 10) === 1) ? 'th' :
(b === 1) ? 'st' :
(b === 2) ? 'nd' :
(b === 3) ? 'rd' : 'th';
return number + output;
}
});
// Side effect imports
utils_hooks__hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', locale_locales__getSetGlobalLocale);
utils_hooks__hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', locale_locales__getLocale);
var mathAbs = Math.abs;
function duration_abs__abs () {
var data = this._data;
this._milliseconds = mathAbs(this._milliseconds);
this._days = mathAbs(this._days);
this._months = mathAbs(this._months);
data.milliseconds = mathAbs(data.milliseconds);
data.seconds = mathAbs(data.seconds);
data.minutes = mathAbs(data.minutes);
data.hours = mathAbs(data.hours);
data.months = mathAbs(data.months);
data.years = mathAbs(data.years);
return this;
}
function duration_add_subtract__addSubtract (duration, input, value, direction) {
var other = create__createDuration(input, value);
duration._milliseconds += direction * other._milliseconds;
duration._days += direction * other._days;
duration._months += direction * other._months;
return duration._bubble();
}
// supports only 2.0-style add(1, 's') or add(duration)
function duration_add_subtract__add (input, value) {
return duration_add_subtract__addSubtract(this, input, value, 1);
}
// supports only 2.0-style subtract(1, 's') or subtract(duration)
function duration_add_subtract__subtract (input, value) {
return duration_add_subtract__addSubtract(this, input, value, -1);
}
function bubble () {
var milliseconds = this._milliseconds;
var days = this._days;
var months = this._months;
var data = this._data;
var seconds, minutes, hours, years = 0;
// The following code bubbles up values, see the tests for
// examples of what that means.
data.milliseconds = milliseconds % 1000;
seconds = absFloor(milliseconds / 1000);
data.seconds = seconds % 60;
minutes = absFloor(seconds / 60);
data.minutes = minutes % 60;
hours = absFloor(minutes / 60);
data.hours = hours % 24;
days += absFloor(hours / 24);
// Accurately convert days to years, assume start from year 0.
years = absFloor(daysToYears(days));
days -= absFloor(yearsToDays(years));
// 30 days to a month
// TODO (iskren): Use anchor date (like 1st Jan) to compute this.
months += absFloor(days / 30);
days %= 30;
// 12 months -> 1 year
years += absFloor(months / 12);
months %= 12;
data.days = days;
data.months = months;
data.years = years;
return this;
}
function daysToYears (days) {
// 400 years have 146097 days (taking into account leap year rules)
return days * 400 / 146097;
}
function yearsToDays (years) {
// years * 365 + absFloor(years / 4) -
// absFloor(years / 100) + absFloor(years / 400);
return years * 146097 / 400;
}
function as (units) {
var days;
var months;
var milliseconds = this._milliseconds;
units = normalizeUnits(units);
if (units === 'month' || units === 'year') {
days = this._days + milliseconds / 864e5;
months = this._months + daysToYears(days) * 12;
return units === 'month' ? months : months / 12;
} else {
// handle milliseconds separately because of floating point math errors (issue #1867)
days = this._days + Math.round(yearsToDays(this._months / 12));
switch (units) {
case 'week' : return days / 7 + milliseconds / 6048e5;
case 'day' : return days + milliseconds / 864e5;
case 'hour' : return days * 24 + milliseconds / 36e5;
case 'minute' : return days * 24 * 60 + milliseconds / 6e4;
case 'second' : return days * 24 * 60 * 60 + milliseconds / 1000;
// Math.floor prevents floating point math errors here
case 'millisecond': return Math.floor(days * 24 * 60 * 60 * 1000) + milliseconds;
default: throw new Error('Unknown unit ' + units);
}
}
}
// TODO: Use this.as('ms')?
function duration_as__valueOf () {
return (
this._milliseconds +
this._days * 864e5 +
(this._months % 12) * 2592e6 +
toInt(this._months / 12) * 31536e6
);
}
function makeAs (alias) {
return function () {
return this.as(alias);
};
}
var asMilliseconds = makeAs('ms');
var asSeconds = makeAs('s');
var asMinutes = makeAs('m');
var asHours = makeAs('h');
var asDays = makeAs('d');
var asWeeks = makeAs('w');
var asMonths = makeAs('M');
var asYears = makeAs('y');
function duration_get__get (units) {
units = normalizeUnits(units);
return this[units + 's']();
}
function makeGetter(name) {
return function () {
return this._data[name];
};
}
var duration_get__milliseconds = makeGetter('milliseconds');
var seconds = makeGetter('seconds');
var minutes = makeGetter('minutes');
var hours = makeGetter('hours');
var days = makeGetter('days');
var months = makeGetter('months');
var years = makeGetter('years');
function weeks () {
return absFloor(this.days() / 7);
}
var round = Math.round;
var thresholds = {
s: 45, // seconds to minute
m: 45, // minutes to hour
h: 22, // hours to day
d: 26, // days to month
M: 11 // months to year
};
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
}
function duration_humanize__relativeTime (posNegDuration, withoutSuffix, locale) {
var duration = create__createDuration(posNegDuration).abs();
var seconds = round(duration.as('s'));
var minutes = round(duration.as('m'));
var hours = round(duration.as('h'));
var days = round(duration.as('d'));
var months = round(duration.as('M'));
var years = round(duration.as('y'));
var a = seconds < thresholds.s && ['s', seconds] ||
minutes === 1 && ['m'] ||
minutes < thresholds.m && ['mm', minutes] ||
hours === 1 && ['h'] ||
hours < thresholds.h && ['hh', hours] ||
days === 1 && ['d'] ||
days < thresholds.d && ['dd', days] ||
months === 1 && ['M'] ||
months < thresholds.M && ['MM', months] ||
years === 1 && ['y'] || ['yy', years];
a[2] = withoutSuffix;
a[3] = +posNegDuration > 0;
a[4] = locale;
return substituteTimeAgo.apply(null, a);
}
// This function allows you to set a threshold for relative time strings
function duration_humanize__getSetRelativeTimeThreshold (threshold, limit) {
if (thresholds[threshold] === undefined) {
return false;
}
if (limit === undefined) {
return thresholds[threshold];
}
thresholds[threshold] = limit;
return true;
}
function humanize (withSuffix) {
var locale = this.localeData();
var output = duration_humanize__relativeTime(this, !withSuffix, locale);
if (withSuffix) {
output = locale.pastFuture(+this, output);
}
return locale.postformat(output);
}
var iso_string__abs = Math.abs;
function iso_string__toISOString() {
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
var Y = iso_string__abs(this.years());
var M = iso_string__abs(this.months());
var D = iso_string__abs(this.days());
var h = iso_string__abs(this.hours());
var m = iso_string__abs(this.minutes());
var s = iso_string__abs(this.seconds() + this.milliseconds() / 1000);
var total = this.asSeconds();
if (!total) {
// this is the same as C#'s (Noda) and python (isodate)...
// but not other JS (goog.date)
return 'P0D';
}
return (total < 0 ? '-' : '') +
'P' +
(Y ? Y + 'Y' : '') +
(M ? M + 'M' : '') +
(D ? D + 'D' : '') +
((h || m || s) ? 'T' : '') +
(h ? h + 'H' : '') +
(m ? m + 'M' : '') +
(s ? s + 'S' : '');
}
var duration_prototype__proto = Duration.prototype;
duration_prototype__proto.abs = duration_abs__abs;
duration_prototype__proto.add = duration_add_subtract__add;
duration_prototype__proto.subtract = duration_add_subtract__subtract;
duration_prototype__proto.as = as;
duration_prototype__proto.asMilliseconds = asMilliseconds;
duration_prototype__proto.asSeconds = asSeconds;
duration_prototype__proto.asMinutes = asMinutes;
duration_prototype__proto.asHours = asHours;
duration_prototype__proto.asDays = asDays;
duration_prototype__proto.asWeeks = asWeeks;
duration_prototype__proto.asMonths = asMonths;
duration_prototype__proto.asYears = asYears;
duration_prototype__proto.valueOf = duration_as__valueOf;
duration_prototype__proto._bubble = bubble;
duration_prototype__proto.get = duration_get__get;
duration_prototype__proto.milliseconds = duration_get__milliseconds;
duration_prototype__proto.seconds = seconds;
duration_prototype__proto.minutes = minutes;
duration_prototype__proto.hours = hours;
duration_prototype__proto.days = days;
duration_prototype__proto.weeks = weeks;
duration_prototype__proto.months = months;
duration_prototype__proto.years = years;
duration_prototype__proto.humanize = humanize;
duration_prototype__proto.toISOString = iso_string__toISOString;
duration_prototype__proto.toString = iso_string__toISOString;
duration_prototype__proto.toJSON = iso_string__toISOString;
duration_prototype__proto.locale = locale;
duration_prototype__proto.localeData = localeData;
// Deprecations
duration_prototype__proto.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', iso_string__toISOString);
duration_prototype__proto.lang = lang;
// Side effect imports
addFormatToken('X', 0, 0, 'unix');
addFormatToken('x', 0, 0, 'valueOf');
// PARSING
addRegexToken('x', matchSigned);
addRegexToken('X', matchTimestamp);
addParseToken('X', function (input, array, config) {
config._d = new Date(parseFloat(input, 10) * 1000);
});
addParseToken('x', function (input, array, config) {
config._d = new Date(toInt(input));
});
// Side effect imports
utils_hooks__hooks.version = '2.10.2';
setHookCallback(local__createLocal);
utils_hooks__hooks.fn = momentPrototype;
utils_hooks__hooks.min = min;
utils_hooks__hooks.max = max;
utils_hooks__hooks.utc = create_utc__createUTC;
utils_hooks__hooks.unix = moment__createUnix;
utils_hooks__hooks.months = lists__listMonths;
utils_hooks__hooks.isDate = isDate;
utils_hooks__hooks.locale = locale_locales__getSetGlobalLocale;
utils_hooks__hooks.invalid = valid__createInvalid;
utils_hooks__hooks.duration = create__createDuration;
utils_hooks__hooks.isMoment = isMoment;
utils_hooks__hooks.weekdays = lists__listWeekdays;
utils_hooks__hooks.parseZone = moment__createInZone;
utils_hooks__hooks.localeData = locale_locales__getLocale;
utils_hooks__hooks.isDuration = isDuration;
utils_hooks__hooks.monthsShort = lists__listMonthsShort;
utils_hooks__hooks.weekdaysMin = lists__listWeekdaysMin;
utils_hooks__hooks.defineLocale = defineLocale;
utils_hooks__hooks.weekdaysShort = lists__listWeekdaysShort;
utils_hooks__hooks.normalizeUnits = normalizeUnits;
utils_hooks__hooks.relativeTimeThreshold = duration_humanize__getSetRelativeTimeThreshold;
var _moment = utils_hooks__hooks;
return _moment;
}));
|
window['__demo']={"hello":"Hello {name}!qqq","__name__":"en-US"};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.