text
stringlengths 2
1.05M
|
|---|
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import classNames from 'classnames';
import ReeValidate from 'ree-validate';
// import AuthService from '../../../services';
import Http from '../../../Http';
import {
Button,
Card,
CardHeader,
Input,
Table,
} from 'reactstrap';
class AgencyNewProduct extends Component {
constructor(props) {
super(props);
this.handleRemove = this.handleRemove.bind(this);
this.state = {
collapse: true,
fadeIn: true,
timeout: 300,
agencyInfo: [],
commRate_arr: [],
commRGM_arr: [],
product_arr: [],
product_list: [
{
product: "",
rule: "",
state: "",
representative: "",
u_w_assigned: "",
license: "",
autherization: "",
}
],
error: false,
isLoading: false,
};
//rest api endpoint
this.api = process.env.REACT_APP_API_URL + '/api/v1/agency';
}
componentDidMount() {
this.setState({ commRate_arr: this.props.commRate_arr });
this.setState({ commRGM_arr: this.props.commRGM_arr });
this.setState({ product_arr: this.props.product_arr });
}
UNSAFE_componentWillReceiveProps(props) {
this.setState({ commRate_arr: props.commRate_arr })
}
handleSubmit = (e) => {
e.preventDefault();
const { agencyInfo } = this.state;
// this.addAgency(agencyInfo);
}
handleAddRow = () => {
const item = {
product: "",
rule: "",
state: "",
representative: "",
u_w_assigned: "",
license: "",
autherization: "",
};
this.setState({
product_list: [...this.state.product_list, item]
});
}
handleRemove = (index) => {
let tproduct_list = [...this.state.product_list];
tproduct_list.splice(index, 1);
this.setState({
product_list: tproduct_list
});
}
render() {
const {
commRate_arr,
product_arr,
commRGM_arr,
} = this.state;
return (
<div className="animated fadeIn">
<Card>
<CardHeader>
<strong>Products</strong>
<Button size="sm" color="primary" className="float-right mr-1" onClick={this.handleAddRow}><span>Add Row</span></Button>
</CardHeader>
<Table hover responsive size="sm">
<thead>
<tr>
<th>POLICY PRODUCT</th>
<th>COMM. GROUP</th>
<th>ACTIONS</th>
</tr>
</thead>
<tbody>
{
this.state.product_list.map((item, index) => (
<tr key={index}>
<td>
<Input type="select" name="product" id="product" bsSize="sm">
<option value="">Select Product</option>
<option value="1">HO3 (Homeowners)</option>
<option value="2">HO6 (Homeowners)</option>
<option value="3">MH HO3</option>
<option value="4">MH Dwelling Program</option>
<option value="5">MHO Direct</option>
<option value="6">MDP Direct</option>
<option value="7">HO3 (Citizens)</option>
<option value="8">HO6 (Citizens)</option>
<option value="9">HO3 (Clearing House)</option>
<option value="10">Flood Program</option>
<option value="11">Commercial Program</option>
<option value="12">Commercial Non Residential</option>
<option value="13">HO3 Diamond</option>
<option value="14">Elements DP 3 Diamond</option>
<option value="15">Elements HO3 Select</option>
<option value="16">Elements HO6 Select</option>
<option value="17">Elements DP1 Select</option>
<option value="18">Elements DP3 Select</option>
</Input>
</td>
<td>
<Input type="select" name="comm_group" id="comm_group" bsSize="sm">
<option value="">Select Group</option>
<option value="1">HO3 (Homeowners)</option>
<option value="2">HO6 (Homeowners)</option>
<option value="3">MH HO3</option>
<option value="4">MH Dwelling Program</option>
<option value="5">MHO Direct</option>
<option value="6">MDP Direct</option>
<option value="7">HO3 (Citizens)</option>
<option value="8">HO6 (Citizens)</option>
<option value="9">HO3 (Clearing House)</option>
<option value="10">Flood Program</option>
<option value="11">Commercial Program</option>
<option value="12">Commercial Non Residential</option>
<option value="13">HO3 Diamond</option>
<option value="14">Elements DP 3 Diamond</option>
<option value="15">Elements HO3 Select</option>
<option value="16">Elements HO6 Select</option>
<option value="17">Elements DP1 Select</option>
<option value="18">Elements DP3 Select</option>
</Input>
</td>
<td>
<Button size="sm" color="danger" className="btn-pill" onClick={() => this.handleRemove(index)}>
<i className="icon-close icons d-block pt-1"></i>
</Button>
</td>
</tr>
))
}
</tbody>
</Table>
</Card>
</div>
);
}
}
// export default Agency;
const mapStateToProps = state => ({
isAuthenticated: state.Auth.isAuthenticated,
// agencyInfo: state.agencyInfo,
// handleChange: state.handleChange,
// user: state.Auth.user,
});
// Agency.defaultProps = {
// agency: 'Default header',
// agencyInfo: 'Default contentTitle',
// agencyDetail: 'Default contentBody'
// };
export default connect(mapStateToProps)(AgencyNewProduct);
|
import { LightningElement } from 'lwc';
export default class ConstructorGetElementsByClassName extends LightningElement {
constructor() {
super();
this.getElementsByClassName('foo');
}
}
|
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { ContainerServiceClient } = require("@azure/arm-containerservice");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Updates a private endpoint connection.
*
* @summary Updates a private endpoint connection.
* x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/examples/PrivateEndpointConnectionsUpdate.json
*/
async function updatePrivateEndpointConnection() {
const subscriptionId = "subid1";
const resourceGroupName = "rg1";
const resourceName = "clustername1";
const privateEndpointConnectionName = "privateendpointconnection1";
const parameters = {
privateLinkServiceConnectionState: { status: "Approved" },
};
const credential = new DefaultAzureCredential();
const client = new ContainerServiceClient(credential, subscriptionId);
const result = await client.privateEndpointConnections.update(
resourceGroupName,
resourceName,
privateEndpointConnectionName,
parameters
);
console.log(result);
}
updatePrivateEndpointConnection().catch(console.error);
|
import React, { Component } from 'react';
import { Button, ButtonGroup, Container, Table } from 'reactstrap';
import AppNavbar from './AppNavbar';
import { Link } from 'react-router-dom';
class BookList extends Component {
constructor(props) {
super(props);
this.state = {book: [], isLoading: true};
this.remove = this.remove.bind(this);
}
componentDidMount() {
this.setState({isLoading: true});
fetch('/book')
.then(response => response.json())
.then(data => this.setState({book: data, isLoading: false}));
}
async remove(id) {
await fetch(`/book/${id}`, {
method: 'DELETE',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
}
}).then(() => {
let updatedBook = [...this.state.book].filter(i => i.id !== id);
this.setState({book: updatedBook});
});
}
render() {
const {book, isLoading} = this.state;
if (isLoading) {
return <p>Loading...</p>;
}
const bookList = book.map(book => {
return <tr key={book.id}>
<td style={{whiteSpace: 'nowrap'}}>{book.id}</td>
<td>{book.name}</td>
<td>{book.available}</td>
<td>
<ButtonGroup>
<Button size="sm" color="primary" tag={Link} to={"/book/" + book.id}>Edit</Button>
<Button size="sm" color="danger" onClick={() => this.remove(book.id)}>Delete</Button>
</ButtonGroup>
</td>
</tr>
});
return (
<div>
<AppNavbar/>
<Container fluid>
<div className="float-right">
<Button color="success" tag={Link} to="/book/new">Add Book</Button>
</div>
<h3>My JUG Tour</h3>
<Table className="mt-4">
<thead>
<tr>
<th width="20%">Name</th>
<th>Events</th>
<th width="10%">Actions</th>
</tr>
</thead>
<tbody>
{bookList}
</tbody>
</Table>
</Container>
</div>
);
}
}
export default BookList;
|
const ReactDatez = require('./components/reactDatez.js').default
const ReduxReactDatez = require('./components/reduxReactDatez.js').default
require('./styles/components/datepickers.css')
module.exports = {
ReactDatez,
ReduxReactDatez
}
|
const tape = require('tape');
const lambdaCfn = require('../index.js');
const AWS = require('@mapbox/mock-aws-sdk-js');
let test;
tape('setup SNS mock test harness', function(t) {
if (process.env.NODE_ENV) {
test = process.env.NODE_ENV;
delete process.env.NODE_ENV;
}
t.end();
});
tape('message default email address mapping', (t) => {
process.env.ServiceAlarmSNSTopic = 'arn:aws:sns:us-east-1:012345678901:myTopic';
const msg = {subject: 'test', event: 'test', summary: 'test'};
const expected = { Subject: 'test', Message: 'test\n\n"test"', TopicArn: process.env.ServiceAlarmSNSTopic};
const data = 'messageId';
AWS.stub('SNS', 'publish', function(params, callback) {
t.deepEqual(params, expected, 'uses default service alarm topic');
callback(null, data);
});
lambdaCfn.message(msg, function(err, data) {
t.ifError(err, 'success');
t.equal(data, 'messageId');
t.equal(AWS.SNS.callCount, 1, 'one SNS call ');
AWS.SNS.restore();
t.end();
});
});
tape('message default email address mapping', (t) => {
process.env.mySnsTopic = 'arn:aws:sns:us-east-1:012345678901:mySnsTopic';
const msg = {subject: 'test', event: 'test', summary: 'test', topic: process.env.mySnsTopic};
const expected = { Subject: 'test', Message: 'test\n\n"test"', TopicArn: process.env.mySnsTopic};
const data = 'messageId';
AWS.stub('SNS', 'publish', (params, callback) => {
t.deepEqual(params, expected, 'uses custom topic');
callback(null, data);
});
lambdaCfn.message(msg, function(err, data) {
t.ifError(err, 'success');
t.equal(data, 'messageId');
t.equal(AWS.SNS.callCount, 1, 'one SNS call ');
AWS.SNS.restore();
t.end();
});
});
tape('tear down SNS mock test harness', (t) => {
process.env.NODE_ENV = test;
t.end();
});
|
module.exports.init = (config) => {
config.cookieSecret = '{RANDOM_1}';
config.cookieSession.keys = [ '{RANDOM_2}' ];
};
|
/*
Copyright (c) 2018-2020 Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
export const BEHAVIOR = Object.freeze({
fluid: 'fluid',
fixed: 'fixed'
});
export const ALIGNMENT = Object.freeze({
start: 'flex-start',
center: 'center',
end: 'flex-end'
});
|
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.Piece = exports.allOptions = exports.OptionContext = exports.Option = exports.AvatarStyle = exports.Avatar = void 0;
var PropTypes = require("prop-types");
var React = require("react");
var avatar_1 = require("./avatar");
var options_1 = require("./options");
var avatar_2 = require("./avatar");
Object.defineProperty(exports, "Avatar", { enumerable: true, get: function () { return avatar_2.default; } });
Object.defineProperty(exports, "AvatarStyle", { enumerable: true, get: function () { return avatar_2.AvatarStyle; } });
var options_2 = require("./options");
Object.defineProperty(exports, "Option", { enumerable: true, get: function () { return options_2.Option; } });
Object.defineProperty(exports, "OptionContext", { enumerable: true, get: function () { return options_2.OptionContext; } });
Object.defineProperty(exports, "allOptions", { enumerable: true, get: function () { return options_2.allOptions; } });
var piece_1 = require("./avatar/piece");
var AvatarComponent = /** @class */ (function (_super) {
__extends(AvatarComponent, _super);
function AvatarComponent() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.optionContext = new options_1.OptionContext(options_1.allOptions);
return _this;
}
AvatarComponent.prototype.getChildContext = function () {
return { optionContext: this.optionContext };
};
AvatarComponent.prototype.UNSAFE_componentWillMount = function () {
this.updateOptionContext(this.props);
};
AvatarComponent.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
this.updateOptionContext(nextProps);
};
AvatarComponent.prototype.render = function () {
var _a = this.props, avatarStyle = _a.avatarStyle, style = _a.style;
return React.createElement(avatar_1.default, { avatarStyle: avatarStyle, style: style });
};
AvatarComponent.prototype.updateOptionContext = function (props) {
var data = {};
for (var _i = 0, allOptions_1 = options_1.allOptions; _i < allOptions_1.length; _i++) {
var option = allOptions_1[_i];
var value = props[option.key];
if (!value) {
continue;
}
data[option.key] = value;
}
this.optionContext.setData(data);
};
AvatarComponent.childContextTypes = {
optionContext: PropTypes.instanceOf(options_1.OptionContext)
};
return AvatarComponent;
}(React.Component));
exports.default = AvatarComponent;
var Piece = /** @class */ (function (_super) {
__extends(Piece, _super);
function Piece() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.optionContext = new options_1.OptionContext(options_1.allOptions);
return _this;
}
Piece.prototype.getChildContext = function () {
return { optionContext: this.optionContext };
};
Piece.prototype.UNSAFE_componentWillMount = function () {
this.updateOptionContext(this.props);
};
Piece.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
this.updateOptionContext(nextProps);
};
Piece.prototype.render = function () {
var _a = this.props, avatarStyle = _a.avatarStyle, style = _a.style, pieceType = _a.pieceType, pieceSize = _a.pieceSize, viewBox = _a.viewBox;
return React.createElement(piece_1.default, { avatarStyle: avatarStyle, style: style, pieceType: pieceType, pieceSize: pieceSize, viewBox: viewBox });
};
Piece.prototype.updateOptionContext = function (props) {
var data = {};
for (var _i = 0, allOptions_2 = options_1.allOptions; _i < allOptions_2.length; _i++) {
var option = allOptions_2[_i];
var value = props[option.key];
if (!value) {
continue;
}
data[option.key] = value;
}
this.optionContext.setData(data);
};
Piece.childContextTypes = {
optionContext: PropTypes.instanceOf(options_1.OptionContext)
};
return Piece;
}(React.Component));
exports.Piece = Piece;
|
/*!
* FullCalendar v2.0.2
* Docs & License: http://arshaw.com/fullcalendar/
* (c) 2013 Adam Shaw
*/
(function(t){"function"==typeof define&&define.amd?define(["jquery","moment"],t):t(jQuery,moment)})(function(t,e){function n(t,e){return e.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")}function r(t,e){var n=e.longDateFormat("L");return n=n.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),t.isRTL?n+=" ddd":n="ddd "+n,n}function a(t){o(xe,t)}function o(e){function n(n,r){t.isPlainObject(r)&&t.isPlainObject(e[n])&&!i(n)?e[n]=o({},e[n],r):void 0!==r&&(e[n]=r)}for(var r=1;arguments.length>r;r++)t.each(arguments[r],n);return e}function i(t){return/(Time|Duration)$/.test(t)}function s(n,r){function a(t){se?f()&&(b(),m(t)):i()}function i(){le=ne.theme?"ui":"fc",n.addClass("fc"),ne.isRTL?n.addClass("fc-rtl"):n.addClass("fc-ltr"),ne.theme&&n.addClass("ui-widget"),se=t("<div class='fc-content' />").prependTo(n),oe=new l(te,ne),ie=oe.render(),ie&&n.prepend(ie),h(ne.defaultView),ne.handleWindowResize&&t(window).resize(w),v()||s()}function s(){setTimeout(function(){!ce.start&&v()&&g()},0)}function d(){ce&&(Q("viewDestroy",ce,ce,ce.element),ce.triggerEventDestroy()),t(window).unbind("resize",w),ne.droppable&&t(document).off("dragstart",J).off("dragstop",K),ce.selectionManagerDestroy&&ce.selectionManagerDestroy(),oe.destroy(),se.remove(),n.removeClass("fc fc-ltr fc-rtl ui-widget")}function f(){return n.is(":visible")}function v(){return t("body").is(":visible")}function h(t){ce&&t==ce.name||p(t)}function p(e){ye++,ce&&(Q("viewDestroy",ce,ce,ce.element),N(),ce.triggerEventDestroy(),$(),ce.element.remove(),oe.deactivateButton(ce.name)),oe.activateButton(e),ce=new _e[e](t("<div class='fc-view fc-view-"+e+"' />").appendTo(se),te),g(),V(),ye--}function g(t){ce.start&&!t&&fe.isWithin(ce.intervalStart,ce.intervalEnd)||f()&&m(t)}function m(t){ye++,ce.start&&(Q("viewDestroy",ce,ce,ce.element),N(),x()),$(),t&&(fe=ce.incrementDate(fe,t)),ce.render(fe.clone()),D(),V(),(ce.afterRender||k)(),H(),F(),Q("viewRender",ce,ce,ce.element),ye--,M()}function y(){f()&&(N(),x(),b(),D(),S())}function b(){ue=ne.contentHeight?ne.contentHeight:ne.height?ne.height-(ie?ie.height():0)-T(se):Math.round(se.width()/Math.max(ne.aspectRatio,.5))}function D(){void 0===ue&&b(),ye++,ce.setHeight(ue),ce.setWidth(se.width()),ye--,de=n.outerWidth()}function w(t){if(!ye&&t.target===window)if(ce.start){var e=++me;setTimeout(function(){e==me&&!ye&&f()&&de!=(de=n.outerWidth())&&(ye++,y(),ce.trigger("windowResize",ge),ye--)},ne.windowResizeDelay)}else s()}function C(){x(),z()}function E(t){x(),S(t)}function S(t){f()&&(ce.renderEvents(be,t),ce.trigger("eventAfterAllRender"))}function x(){ce.triggerEventDestroy(),ce.clearEvents(),ce.clearEventData()}function M(){!ne.lazyFetching||he(ce.start,ce.end)?z():S()}function z(){pe(ce.start,ce.end)}function R(t){be=t,S()}function _(t){E(t)}function H(){oe.updateTitle(ce.title)}function F(){var t=te.getNow();t.isWithin(ce.intervalStart,ce.intervalEnd)?oe.disableButton("today"):oe.enableButton("today")}function A(t,e){ce.select(t,e)}function N(){ce&&ce.unselect()}function Y(){g(-1)}function O(){g(1)}function W(){fe.add("years",-1),g()}function L(){fe.add("years",1),g()}function Z(){fe=te.getNow(),g()}function P(t){fe=te.moment(t),g()}function j(t){fe.add(e.duration(t)),g()}function q(){return fe.clone()}function $(){se.css({width:"100%",height:se.height(),overflow:"hidden"})}function V(){se.css({width:"",height:"",overflow:""})}function X(){return te}function U(){return ce}function G(t,e){return void 0===e?ne[t]:(("height"==t||"contentHeight"==t||"aspectRatio"==t)&&(ne[t]=e,y()),void 0)}function Q(t,e){return ne[t]?ne[t].apply(e||ge,Array.prototype.slice.call(arguments,2)):void 0}function J(e,n){var r=e.target,a=t(r);if(!a.parents(".fc").length){var o=ne.dropAccept;(t.isFunction(o)?o.call(r,a):a.is(o))&&(ve=r,ce.dragStart(ve,e,n))}}function K(t,e){ve&&(ce.dragStop(ve,t,e),ve=null)}var te=this;r=r||{};var ee,ne=o({},xe,r);ee=ne.lang in Me?Me[ne.lang]:Me[xe.lang],ee&&(ne=o({},xe,ee,r)),ne.isRTL&&(ne=o({},xe,ze,ee||{},r)),te.options=ne,te.render=a,te.destroy=d,te.refetchEvents=C,te.reportEvents=R,te.reportEventChange=_,te.rerenderEvents=E,te.changeView=h,te.select=A,te.unselect=N,te.prev=Y,te.next=O,te.prevYear=W,te.nextYear=L,te.today=Z,te.gotoDate=P,te.incrementDate=j,te.getDate=q,te.getCalendar=X,te.getView=U,te.option=G,te.trigger=Q;var re=u(e.langData(ne.lang));if(ne.monthNames&&(re._months=ne.monthNames),ne.monthNamesShort&&(re._monthsShort=ne.monthNamesShort),ne.dayNames&&(re._weekdays=ne.dayNames),ne.dayNamesShort&&(re._weekdaysShort=ne.dayNamesShort),null!=ne.firstDay){var ae=u(re._week);ae.dow=ne.firstDay,re._week=ae}te.defaultAllDayEventDuration=e.duration(ne.defaultAllDayEventDuration),te.defaultTimedEventDuration=e.duration(ne.defaultTimedEventDuration),te.moment=function(){var t;return"local"===ne.timezone?(t=Re.moment.apply(null,arguments),t.hasTime()&&t.local()):t="UTC"===ne.timezone?Re.moment.utc.apply(null,arguments):Re.moment.parseZone.apply(null,arguments),t._lang=re,t},te.getIsAmbigTimezone=function(){return"local"!==ne.timezone&&"UTC"!==ne.timezone},te.rezoneDate=function(t){return te.moment(t.toArray())},te.getNow=function(){var t=ne.now;return"function"==typeof t&&(t=t()),te.moment(t)},te.calculateWeekNumber=function(t){var e=ne.weekNumberCalculation;return"function"==typeof e?e(t):"local"===e?t.week():"ISO"===e.toUpperCase()?t.isoWeek():void 0},te.getEventEnd=function(t){return t.end?t.end.clone():te.getDefaultEventEnd(t.allDay,t.start)},te.getDefaultEventEnd=function(t,e){var n=e.clone();return t?n.stripTime().add(te.defaultAllDayEventDuration):n.add(te.defaultTimedEventDuration),te.getIsAmbigTimezone()&&n.stripZone(),n},te.formatRange=function(t,e,n){return"function"==typeof n&&(n=n.call(te,ne,re)),I(t,e,n,null,ne.isRTL)},te.formatDate=function(t,e){return"function"==typeof e&&(e=e.call(te,ne,re)),B(t,e)},c.call(te,ne);var oe,ie,se,le,ce,de,ue,fe,ve,he=te.isFetchNeeded,pe=te.fetchEvents,ge=n[0],me=0,ye=0,be=[];fe=null!=ne.defaultDate?te.moment(ne.defaultDate):te.getNow(),ne.droppable&&t(document).on("dragstart",J).on("dragstop",K)}function l(e,n){function r(){f=n.theme?"ui":"fc";var e=n.header;return e?v=t("<table class='fc-header' style='width:100%'/>").append(t("<tr/>").append(o("left")).append(o("center")).append(o("right"))):void 0}function a(){v.remove()}function o(r){var a=t("<td class='fc-header-"+r+"'/>"),o=n.header[r];return o&&t.each(o.split(" "),function(r){r>0&&a.append("<span class='fc-header-space'/>");var o;t.each(this.split(","),function(r,i){if("title"==i)a.append("<span class='fc-header-title'><h2> </h2></span>"),o&&o.addClass(f+"-corner-right"),o=null;else{var s;if(e[i]?s=e[i]:_e[i]&&(s=function(){h.removeClass(f+"-state-hover"),e.changeView(i)}),s){var l,c=z(n.themeButtonIcons,i),d=z(n.buttonIcons,i),u=z(n.defaultButtonText,i),v=z(n.buttonText,i);l=v?R(v):c&&n.theme?"<span class='ui-icon ui-icon-"+c+"'></span>":d&&!n.theme?"<span class='fc-icon fc-icon-"+d+"'></span>":R(u||i);var h=t("<span class='fc-button fc-button-"+i+" "+f+"-state-default'>"+l+"</span>").click(function(){h.hasClass(f+"-state-disabled")||s()}).mousedown(function(){h.not("."+f+"-state-active").not("."+f+"-state-disabled").addClass(f+"-state-down")}).mouseup(function(){h.removeClass(f+"-state-down")}).hover(function(){h.not("."+f+"-state-active").not("."+f+"-state-disabled").addClass(f+"-state-hover")},function(){h.removeClass(f+"-state-hover").removeClass(f+"-state-down")}).appendTo(a);H(h),o||h.addClass(f+"-corner-left"),o=h}}}),o&&o.addClass(f+"-corner-right")}),a}function i(t){v.find("h2").html(t)}function s(t){v.find("span.fc-button-"+t).addClass(f+"-state-active")}function l(t){v.find("span.fc-button-"+t).removeClass(f+"-state-active")}function c(t){v.find("span.fc-button-"+t).addClass(f+"-state-disabled")}function d(t){v.find("span.fc-button-"+t).removeClass(f+"-state-disabled")}var u=this;u.render=r,u.destroy=a,u.updateTitle=i,u.activateButton=s,u.deactivateButton=l,u.disableButton=c,u.enableButton=d;var f,v=t([])}function c(e){function n(t,e){return!E||t.clone().stripZone()<E.clone().stripZone()||e.clone().stripZone()>S.clone().stripZone()}function r(t,e){E=t,S=e,O=[];var n=++H,r=_.length;F=r;for(var o=0;r>o;o++)a(_[o],n)}function a(e,n){o(e,function(r){var a,o,i=t.isArray(e.events);if(n==H){if(r)for(a=0;r.length>a;a++)o=r[a],i||(o=D(o,e)),o&&O.push(o);F--,F||M(O)}})}function o(n,r){var a,i,s=Re.sourceFetchers;for(a=0;s.length>a;a++){if(i=s[a].call(C,n,E.clone(),S.clone(),e.timezone,r),i===!0)return;if("object"==typeof i)return o(i,r),void 0}var l=n.events;if(l)t.isFunction(l)?(y(),l.call(C,E.clone(),S.clone(),e.timezone,function(t){r(t),b()})):t.isArray(l)?r(l):r();else{var c=n.url;if(c){var d,u=n.success,f=n.error,v=n.complete;d=t.isFunction(n.data)?n.data():n.data;var h=t.extend({},d||{}),p=Y(n.startParam,e.startParam),g=Y(n.endParam,e.endParam),m=Y(n.timezoneParam,e.timezoneParam);p&&(h[p]=E.format()),g&&(h[g]=S.format()),e.timezone&&"local"!=e.timezone&&(h[m]=e.timezone),y(),t.ajax(t.extend({},He,n,{data:h,success:function(e){e=e||[];var n=N(u,this,arguments);t.isArray(n)&&(e=n),r(e)},error:function(){N(f,this,arguments),r()},complete:function(){N(v,this,arguments),b()}}))}else r()}}function i(t){var e=s(t);e&&(_.push(e),F++,a(e,H))}function s(e){var n,r,a=Re.sourceNormalizers;if(t.isFunction(e)||t.isArray(e)?n={events:e}:"string"==typeof e?n={url:e}:"object"==typeof e&&(n=t.extend({},e),"string"==typeof n.className&&(n.className=n.className.split(/\s+/))),n){for(t.isArray(n.events)&&(n.events=t.map(n.events,function(t){return D(t,n)})),r=0;a.length>r;r++)a[r].call(C,n);return n}}function l(e){_=t.grep(_,function(t){return!c(t,e)}),O=t.grep(O,function(t){return!c(t.source,e)}),M(O)}function c(t,e){return t&&e&&u(t)==u(e)}function u(t){return("object"==typeof t?t.events||t.url:"")||t}function f(t){t.start=C.moment(t.start),t.end&&(t.end=C.moment(t.end)),w(t),h(t),M(O)}function h(t){var e,n,r,a;for(e=0;O.length>e;e++)if(n=O[e],n._id==t._id&&n!==t)for(r=0;W.length>r;r++)a=W[r],void 0!==t[a]&&(n[a]=t[a])}function p(t,e){var n=D(t);n&&(n.source||(e&&(R.events.push(n),n.source=R),O.push(n)),M(O))}function g(e){var n,r;for(null==e?e=function(){return!0}:t.isFunction(e)||(n=e+"",e=function(t){return t._id==n}),O=t.grep(O,e,!0),r=0;_.length>r;r++)t.isArray(_[r].events)&&(_[r].events=t.grep(_[r].events,e,!0));M(O)}function m(e){return t.isFunction(e)?t.grep(O,e):null!=e?(e+="",t.grep(O,function(t){return t._id==e})):O}function y(){A++||k("loading",null,!0,x())}function b(){--A||k("loading",null,!1,x())}function D(n,r){var a,o,i,s,l={};return e.eventDataTransform&&(n=e.eventDataTransform(n)),r&&r.eventDataTransform&&(n=r.eventDataTransform(n)),a=C.moment(n.start||n.date),a.isValid()&&(o=null,!n.end||(o=C.moment(n.end),o.isValid()))?(i=n.allDay,void 0===i&&(s=Y(r?r.allDayDefault:void 0,e.allDayDefault),i=void 0!==s?s:!(a.hasTime()||o&&o.hasTime())),i?(a.hasTime()&&a.stripTime(),o&&o.hasTime()&&o.stripTime()):(a.hasTime()||(a=C.rezoneDate(a)),o&&!o.hasTime()&&(o=C.rezoneDate(o))),t.extend(l,n),r&&(l.source=r),l._id=n._id||(void 0===n.id?"_fc"+Fe++:n.id+""),l.className=n.className?"string"==typeof n.className?n.className.split(/\s+/):n.className:[],l.allDay=i,l.start=a,l.end=o,e.forceEventDuration&&!l.end&&(l.end=z(l)),d(l),l):void 0}function w(t,e,n){var r,a,o,i,s=t._allDay,l=t._start,c=t._end,d=!1;return e||n||(e=t.start,n=t.end),r=t.allDay!=s?t.allDay:!(e||n).hasTime(),r&&(e&&(e=e.clone().stripTime()),n&&(n=n.clone().stripTime())),e&&(a=r?v(e,l.clone().stripTime()):v(e,l)),r!=s?d=!0:n&&(o=v(n||C.getDefaultEventEnd(r,e||l),e||l).subtract(v(c||C.getDefaultEventEnd(s,l),l))),i=T(m(t._id),d,r,a,o),{dateDelta:a,durationDelta:o,undo:i}}function T(n,r,a,o,i){var s=C.getIsAmbigTimezone(),l=[];return t.each(n,function(t,n){var c=n._allDay,u=n._start,f=n._end,v=null!=a?a:c,h=u.clone(),p=!r&&f?f.clone():null;v?(h.stripTime(),p&&p.stripTime()):(h.hasTime()||(h=C.rezoneDate(h)),p&&!p.hasTime()&&(p=C.rezoneDate(p))),p||!e.forceEventDuration&&!+i||(p=C.getDefaultEventEnd(v,h)),h.add(o),p&&p.add(o).add(i),s&&(+o||+i)&&(h.stripZone(),p&&p.stripZone()),n.allDay=v,n.start=h,n.end=p,d(n),l.push(function(){n.allDay=c,n.start=u,n.end=f,d(n)})}),function(){for(var t=0;l.length>t;t++)l[t]()}}var C=this;C.isFetchNeeded=n,C.fetchEvents=r,C.addEventSource=i,C.removeEventSource=l,C.updateEvent=f,C.renderEvent=p,C.removeEvents=g,C.clientEvents=m,C.mutateEvent=w;var E,S,k=C.trigger,x=C.getView,M=C.reportEvents,z=C.getEventEnd,R={events:[]},_=[R],H=0,F=0,A=0,O=[];t.each((e.events?[e.events]:[]).concat(e.eventSources||[]),function(t,e){var n=s(e);n&&_.push(n)});var W=["title","url","allDay","className","editable","color","backgroundColor","borderColor","textColor"]}function d(t){t._allDay=t.allDay,t._start=t.start.clone(),t._end=t.end?t.end.clone():null}function u(t){var e=function(){};return e.prototype=t,new e}function f(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function v(t,n){return e.duration({days:t.clone().stripTime().diff(n.clone().stripTime(),"days"),ms:t.time()-n.time()})}function h(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function p(e,n,r){e.unbind("mouseover").mouseover(function(e){for(var a,o,i,s=e.target;s!=this;)a=s,s=s.parentNode;void 0!==(o=a._fci)&&(a._fci=void 0,i=n[o],r(i.event,i.element,i),t(e.target).trigger(e)),e.stopPropagation()})}function g(e,n,r){for(var a,o=0;e.length>o;o++)a=t(e[o]),a.width(Math.max(0,n-y(a,r)))}function m(e,n,r){for(var a,o=0;e.length>o;o++)a=t(e[o]),a.height(Math.max(0,n-T(a,r)))}function y(t,e){return b(t)+w(t)+(e?D(t):0)}function b(e){return(parseFloat(t.css(e[0],"paddingLeft",!0))||0)+(parseFloat(t.css(e[0],"paddingRight",!0))||0)}function D(e){return(parseFloat(t.css(e[0],"marginLeft",!0))||0)+(parseFloat(t.css(e[0],"marginRight",!0))||0)}function w(e){return(parseFloat(t.css(e[0],"borderLeftWidth",!0))||0)+(parseFloat(t.css(e[0],"borderRightWidth",!0))||0)}function T(t,e){return C(t)+S(t)+(e?E(t):0)}function C(e){return(parseFloat(t.css(e[0],"paddingTop",!0))||0)+(parseFloat(t.css(e[0],"paddingBottom",!0))||0)}function E(e){return(parseFloat(t.css(e[0],"marginTop",!0))||0)+(parseFloat(t.css(e[0],"marginBottom",!0))||0)}function S(e){return(parseFloat(t.css(e[0],"borderTopWidth",!0))||0)+(parseFloat(t.css(e[0],"borderBottomWidth",!0))||0)}function k(){}function x(t,e){return t-e}function M(t){return Math.max.apply(Math,t)}function z(t,e){if(t=t||{},void 0!==t[e])return t[e];for(var n,r=e.split(/(?=[A-Z])/),a=r.length-1;a>=0;a--)if(n=t[r[a].toLowerCase()],void 0!==n)return n;return t["default"]}function R(t){return(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}function _(t){return t.replace(/&.*?;/g,"")}function H(t){t.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return!1})}function F(t){t.children().removeClass("fc-first fc-last").filter(":first-child").addClass("fc-first").end().filter(":last-child").addClass("fc-last")}function A(t,e){var n=t.source||{},r=t.color,a=n.color,o=e("eventColor"),i=t.backgroundColor||r||n.backgroundColor||a||e("eventBackgroundColor")||o,s=t.borderColor||r||n.borderColor||a||e("eventBorderColor")||o,l=t.textColor||n.textColor||e("eventTextColor"),c=[];return i&&c.push("background-color:"+i),s&&c.push("border-color:"+s),l&&c.push("color:"+l),c.join(";")}function N(e,n,r){if(t.isFunction(e)&&(e=[e]),e){var a,o;for(a=0;e.length>a;a++)o=e[a].apply(n,r)||o;return o}}function Y(){for(var t=0;arguments.length>t;t++)if(void 0!==arguments[t])return arguments[t]}function O(n,r,a){var o,i,s,l,c=n[0],d=1==n.length&&"string"==typeof c;return e.isMoment(c)?(l=e.apply(null,n),c._ambigTime&&(l._ambigTime=!0),c._ambigZone&&(l._ambigZone=!0)):h(c)||void 0===c?l=e.apply(null,n):(o=!1,i=!1,d?Ne.test(c)?(c+="-01",n=[c],o=!0,i=!0):(s=Ye.exec(c))&&(o=!s[5],i=!0):t.isArray(c)&&(i=!0),l=r?e.utc.apply(e,n):e.apply(null,n),o?(l._ambigTime=!0,l._ambigZone=!0):a&&(i?l._ambigZone=!0:d&&l.zone(c))),new W(l)}function W(t){f(this,t)}function L(t){var e,n=[],r=!1,a=!1;for(e=0;t.length>e;e++)n.push(Re.moment(t[e])),r=r||n[e]._ambigTime,a=a||n[e]._ambigZone;for(e=0;n.length>e;e++)r?n[e].stripTime():a&&n[e].stripZone();return n}function Z(t,n){return e.fn.format.call(t,n)}function B(t,e){return P(t,V(e))}function P(t,e){var n,r="";for(n=0;e.length>n;n++)r+=j(t,e[n]);return r}function j(t,e){var n,r;return"string"==typeof e?e:(n=e.token)?Oe[n]?Oe[n](t):Z(t,n):e.maybe&&(r=P(t,e.maybe),r.match(/[1-9]/))?r:""}function I(t,e,n,r,a){return t=Re.moment.parseZone(t),e=Re.moment.parseZone(e),n=t.lang().longDateFormat(n)||n,r=r||" - ",q(t,e,V(n),r,a)}function q(t,e,n,r,a){var o,i,s,l,c="",d="",u="",f="",v="";for(i=0;n.length>i&&(o=$(t,e,n[i]),o!==!1);i++)c+=o;for(s=n.length-1;s>i&&(o=$(t,e,n[s]),o!==!1);s--)d=o+d;for(l=i;s>=l;l++)u+=j(t,n[l]),f+=j(e,n[l]);return(u||f)&&(v=a?f+r+u:u+r+f),c+v+d}function $(t,e,n){var r,a;return"string"==typeof n?n:(r=n.token)&&(a=We[r.charAt(0)],a&&t.isSame(e,a))?Z(t,r):!1}function V(t){return t in Le?Le[t]:Le[t]=X(t)}function X(t){for(var e,n=[],r=/\[([^\]]*)\]|\(([^\)]*)\)|(LT|(\w)\4*o?)|([^\w\[\(]+)/g;e=r.exec(t);)e[1]?n.push(e[1]):e[2]?n.push({maybe:X(e[2])}):e[3]?n.push({token:e[3]}):e[5]&&n.push(e[5]);return n}function U(t,e){function n(t,e){return t.clone().stripTime().add("months",e).startOf("month")}function r(t){a.intervalStart=t.clone().stripTime().startOf("month"),a.intervalEnd=a.intervalStart.clone().add("months",1),a.start=a.intervalStart.clone(),a.start=a.skipHiddenDays(a.start),a.start.startOf("week"),a.start=a.skipHiddenDays(a.start),a.end=a.intervalEnd.clone(),a.end=a.skipHiddenDays(a.end,-1,!0),a.end.add("days",(7-a.end.weekday())%7),a.end=a.skipHiddenDays(a.end,-1,!0);var n=Math.ceil(a.end.diff(a.start,"weeks",!0));"fixed"==a.opt("weekMode")&&(a.end.add("weeks",6-n),n=6),a.title=e.formatDate(a.intervalStart,a.opt("titleFormat")),a.renderBasic(n,a.getCellsPerWeek(),!0)}var a=this;a.incrementDate=n,a.render=r,J.call(a,t,e,"month")}function G(t,e){function n(t,e){return t.clone().stripTime().add("weeks",e).startOf("week")}function r(t){a.intervalStart=t.clone().stripTime().startOf("week"),a.intervalEnd=a.intervalStart.clone().add("weeks",1),a.start=a.skipHiddenDays(a.intervalStart),a.end=a.skipHiddenDays(a.intervalEnd,-1,!0),a.title=e.formatRange(a.start,a.end.clone().subtract(1),a.opt("titleFormat")," — "),a.renderBasic(1,a.getCellsPerWeek(),!1)}var a=this;a.incrementDate=n,a.render=r,J.call(a,t,e,"basicWeek")}function Q(t,e){function n(t,e){var n=t.clone().stripTime().add("days",e);return n=a.skipHiddenDays(n,0>e?-1:1)}function r(t){a.start=a.intervalStart=t.clone().stripTime(),a.end=a.intervalEnd=a.start.clone().add("days",1),a.title=e.formatDate(a.start,a.opt("titleFormat")),a.renderBasic(1,1,!1)}var a=this;a.incrementDate=n,a.render=r,J.call(a,t,e,"basicDay")}function J(e,n,r){function a(t,e,n){U=t,G=e,Q=n,o(),W||i(),s()}function o(){re=ie("theme")?"ui":"fc",ae=ie("columnFormat"),oe=ie("weekNumbers")}function i(){I=t("<div class='fc-event-container' style='position:absolute;z-index:8;top:0;left:0'/>").appendTo(e)}function s(){var n=l();N&&N.remove(),N=t(n).appendTo(e),Y=N.find("thead"),O=Y.find(".fc-day-header"),W=N.find("tbody"),L=W.find("tr"),Z=W.find(".fc-day"),B=L.find("td:first-child"),P=L.eq(0).find(".fc-day > div"),j=L.eq(0).find(".fc-day-content > div"),F(Y.add(Y.find("tr"))),F(L),L.eq(0).addClass("fc-first"),L.filter(":last").addClass("fc-last"),Z.each(function(e,n){var r=ue(Math.floor(e/G),e%G);se("dayRender",A,r,t(n))}),h(Z)}function l(){var t="<table class='fc-border-separate' style='width:100%' cellspacing='0'>"+c()+d()+"</table>";return t}function c(){var t,e,n=re+"-widget-header",r="";for(r+="<thead><tr>",oe&&(r+="<th class='fc-week-number "+n+"'>"+R(ie("weekNumberTitle"))+"</th>"),t=0;G>t;t++)e=ue(0,t),r+="<th class='fc-day-header fc-"+Ae[e.day()]+" "+n+"'>"+R(he(e,ae))+"</th>";return r+="</tr></thead>"}function d(){var t,e,n,r=re+"-widget-content",a="";for(a+="<tbody>",t=0;U>t;t++){for(a+="<tr class='fc-week'>",oe&&(n=ue(t,0),a+="<td class='fc-week-number "+r+"'>"+"<div>"+R(pe(n))+"</div>"+"</td>"),e=0;G>e;e++)n=ue(t,e),a+=u(n);a+="</tr>"}return a+="</tbody>"}function u(t){var e=A.intervalStart.month(),r=n.getNow().stripTime(),a="",o=re+"-widget-content",i=["fc-day","fc-"+Ae[t.day()],o];return t.month()!=e&&i.push("fc-other-month"),t.isSame(r,"day")?i.push("fc-today",re+"-state-highlight"):r>t?i.push("fc-past"):i.push("fc-future"),a+="<td class='"+i.join(" ")+"'"+" data-date='"+t.format()+"'"+">"+"<div>",Q&&(a+="<div class='fc-day-number'>"+t.date()+"</div>"),a+="<div class='fc-day-content'><div style='position:relative'> </div></div></div></td>"}function f(e){$=e;var n,r,a,o=Math.max($-Y.height(),0);"variable"==ie("weekMode")?n=r=Math.floor(o/(1==U?2:6)):(n=Math.floor(o/U),r=o-n*(U-1)),B.each(function(e,o){U>e&&(a=t(o),a.find("> div").css("min-height",(e==U-1?r:n)-T(a)))})}function v(t){q=t,ee.clear(),ne.clear(),X=0,oe&&(X=Y.find("th.fc-week-number").outerWidth()),V=Math.floor((q-X)/G),g(O.slice(0,-1),V)}function h(t){t.click(p).mousedown(de)}function p(e){if(!ie("selectable")){var r=n.moment(t(this).data("date"));se("dayClick",this,r,e)}}function m(t,e,n){n&&J.build();for(var r=ve(t,e),a=0;r.length>a;a++){var o=r[a];h(y(o.row,o.leftCol,o.row,o.rightCol))}}function y(t,n,r,a){var o=J.rect(t,n,r,a,e);return le(o,e)}function b(t){return t.clone().stripTime().add("days",1)}function D(t,e){m(t,e,!0)}function w(){ce()}function C(t,e){var n=fe(t),r=Z[n.row*G+n.col];se("dayClick",r,t,e)}function E(t,e){te.start(function(t){if(ce(),t){var e=ue(t),r=e.clone().add(n.defaultAllDayEventDuration);m(e,r)}},e)}function S(t,e,n){var r=te.stop();ce(),r&&se("drop",t,ue(r),e,n)}function k(t){return ee.left(t)}function x(t){return ee.right(t)}function M(t){return ne.left(t)}function z(t){return ne.right(t)}function _(t){return L.eq(t)}var A=this;A.renderBasic=a,A.setHeight=f,A.setWidth=v,A.renderDayOverlay=m,A.defaultSelectionEnd=b,A.renderSelection=D,A.clearSelection=w,A.reportDayClick=C,A.dragStart=E,A.dragStop=S,A.getHoverListener=function(){return te},A.colLeft=k,A.colRight=x,A.colContentLeft=M,A.colContentRight=z,A.getIsCellAllDay=function(){return!0},A.allDayRow=_,A.getRowCnt=function(){return U},A.getColCnt=function(){return G},A.getColWidth=function(){return V},A.getDaySegmentContainer=function(){return I},ge.call(A,e,n,r),Te.call(A),we.call(A),K.call(A);var N,Y,O,W,L,Z,B,P,j,I,q,$,V,X,U,G,Q,J,te,ee,ne,re,ae,oe,ie=A.opt,se=A.trigger,le=A.renderOverlay,ce=A.clearOverlays,de=A.daySelectionMousedown,ue=A.cellToDate,fe=A.dateToCell,ve=A.rangeToSegments,he=n.formatDate,pe=n.calculateWeekNumber;H(e.addClass("fc-grid")),J=new Ce(function(e,n){var r,a,o;O.each(function(e,i){r=t(i),a=r.offset().left,e&&(o[1]=a),o=[a],n[e]=o}),o[1]=a+r.outerWidth(),L.each(function(n,i){U>n&&(r=t(i),a=r.offset().top,n&&(o[1]=a),o=[a],e[n]=o)}),o[1]=a+r.outerHeight()}),te=new Ee(J),ee=new ke(function(t){return P.eq(t)}),ne=new ke(function(t){return j.eq(t)})}function K(){function t(t,e){n.renderDayEvents(t,e)}function e(){n.getDaySegmentContainer().empty()}var n=this;n.renderEvents=t,n.clearEvents=e,me.call(n)}function te(t,e){function n(t,e){return t.clone().stripTime().add("weeks",e).startOf("week")}function r(t){a.intervalStart=t.clone().stripTime().startOf("week"),a.intervalEnd=a.intervalStart.clone().add("weeks",1),a.start=a.skipHiddenDays(a.intervalStart),a.end=a.skipHiddenDays(a.intervalEnd,-1,!0),a.title=e.formatRange(a.start,a.end.clone().subtract(1),a.opt("titleFormat")," — "),a.renderAgenda(a.getCellsPerWeek())}var a=this;a.incrementDate=n,a.render=r,ae.call(a,t,e,"agendaWeek")}function ee(t,e){function n(t,e){var n=t.clone().stripTime().add("days",e);return n=a.skipHiddenDays(n,0>e?-1:1)}function r(t){a.start=a.intervalStart=t.clone().stripTime(),a.end=a.intervalEnd=a.start.clone().add("days",1),a.title=e.formatDate(a.start,a.opt("titleFormat")),a.renderAgenda(1)}var a=this;a.incrementDate=n,a.render=r,ae.call(a,t,e,"agendaDay")}function ne(t,e){return e.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")}function re(t,e){return e.longDateFormat("LT").replace(/\s*a$/i,"")}function ae(n,r,a){function o(t){xe=t,i(),$?l():s()}function i(){Fe=Le("theme")?"ui":"fc",Ne=Le("isRTL"),We=Le("columnFormat"),Ye=e.duration(Le("minTime")),Oe=e.duration(Le("maxTime")),me=e.duration(Le("slotDuration")),be=Le("snapDuration"),be=be?e.duration(be):me}function s(){var r,a,o,i,s=Fe+"-widget-header",c=Fe+"-widget-content",d=0===me.asMinutes()%15;for(l(),ee=t("<div style='position:absolute;z-index:2;left:0;width:100%'/>").appendTo(n),Le("allDaySlot")?(ne=t("<div class='fc-event-container' style='position:absolute;z-index:8;top:0;left:0'/>").appendTo(ee),r="<table style='width:100%' class='fc-agenda-allday' cellspacing='0'><tr><th class='"+s+" fc-agenda-axis'>"+(Le("allDayHTML")||R(Le("allDayText")))+"</th>"+"<td>"+"<div class='fc-day-content'><div style='position:relative'/></div>"+"</td>"+"<th class='"+s+" fc-agenda-gutter'> </th>"+"</tr>"+"</table>",re=t(r).appendTo(ee),ae=re.find("tr"),y(ae.find("td")),ee.append("<div class='fc-agenda-divider "+s+"'>"+"<div class='fc-agenda-divider-inner'/>"+"</div>")):ne=t([]),ie=t("<div style='position:absolute;width:100%;overflow-x:hidden;overflow-y:auto'/>").appendTo(ee),se=t("<div style='position:relative;width:100%;overflow:hidden'/>").appendTo(ie),le=t("<div class='fc-event-container' style='position:absolute;z-index:8;top:0;left:0'/>").appendTo(se),r="<table class='fc-agenda-slots' style='width:100%' cellspacing='0'><tbody>",a=e.duration(+Ye),Me=0;Oe>a;)o=q.start.clone().time(a),i=o.minutes(),r+="<tr class='fc-slot"+Me+" "+(i?"fc-minor":"")+"'>"+"<th class='fc-agenda-axis "+s+"'>"+(d&&i?" ":R(Ge(o,Le("axisFormat"))))+"</th>"+"<td class='"+c+"'>"+"<div style='position:relative'> </div>"+"</td>"+"</tr>",a.add(me),Me++;r+="</tbody></table>",ce=t(r).appendTo(se),b(ce.find("td"))}function l(){var e=c();$&&$.remove(),$=t(e).appendTo(n),V=$.find("thead"),X=V.find("th").slice(1,-1),U=$.find("tbody"),G=U.find("td").slice(0,-1),Q=G.find("> div"),J=G.find(".fc-day-content > div"),K=G.eq(0),te=Q.eq(0),F(V.add(V.find("tr"))),F(U.add(U.find("tr")))}function c(){var t="<table style='width:100%' class='fc-agenda-days fc-border-separate' cellspacing='0'>"+d()+u()+"</table>";return t}function d(){var t,e,n,r=Fe+"-widget-header",a="";for(a+="<thead><tr>",Le("weekNumbers")?(t=Ve(0,0),e=Qe(t),Ne?e+=Le("weekNumberTitle"):e=Le("weekNumberTitle")+e,a+="<th class='fc-agenda-axis fc-week-number "+r+"'>"+R(e)+"</th>"):a+="<th class='fc-agenda-axis "+r+"'> </th>",n=0;xe>n;n++)t=Ve(0,n),a+="<th class='fc-"+Ae[t.day()]+" fc-col"+n+" "+r+"'>"+R(Ge(t,We))+"</th>";return a+="<th class='fc-agenda-gutter "+r+"'> </th>"+"</tr>"+"</thead>"}function u(){var t,e,n,a,o,i=Fe+"-widget-header",s=Fe+"-widget-content",l=r.getNow().stripTime(),c="";for(c+="<tbody><tr><th class='fc-agenda-axis "+i+"'> </th>",n="",e=0;xe>e;e++)t=Ve(0,e),o=["fc-col"+e,"fc-"+Ae[t.day()],s],t.isSame(l,"day")?o.push(Fe+"-state-highlight","fc-today"):l>t?o.push("fc-past"):o.push("fc-future"),a="<td class='"+o.join(" ")+"'>"+"<div>"+"<div class='fc-day-content'>"+"<div style='position:relative'> </div>"+"</div>"+"</div>"+"</td>",n+=a;return c+=n,c+="<td class='fc-agenda-gutter "+s+"'> </td>"+"</tr>"+"</tbody>"}function f(t){void 0===t&&(t=fe),fe=t,Je={};var e=U.position().top,n=ie.position().top,r=Math.min(t-e,ce.height()+n+1);te.height(r-T(K)),ee.css("top",e),ie.height(r-n-1);var a=ce.find("tr:first").height()+1,o=ce.find("tr:eq(1)").height();ye=(a+o)/2,De=me/be,Se=ye/De}function v(e){ue=e,_e.clear(),He.clear();var n=V.find("th:first");re&&(n=n.add(re.find("th:first"))),n=n.add(ce.find("th:first")),ve=0,g(n.width("").each(function(e,n){ve=Math.max(ve,t(n).outerWidth())}),ve);var r=$.find(".fc-agenda-gutter");re&&(r=r.add(re.find("th.fc-agenda-gutter")));var a=ie[0].clientWidth;pe=ie.width()-a,pe?(g(r,pe),r.show().prev().removeClass("fc-last")):r.hide().prev().addClass("fc-last"),he=Math.floor((a-ve)/xe),g(X.slice(0,-1),he)}function h(){function t(){ie.scrollTop(n)}var n=Y(e.duration(Le("scrollTime")))+1;t(),setTimeout(t,0)}function p(){h()}function y(t){t.click(D).mousedown(qe)}function b(t){t.click(D).mousedown(B)}function D(t){if(!Le("selectable")){var e=Math.min(xe-1,Math.floor((t.pageX-$.offset().left-ve)/he)),n=Ve(0,e),a=this.parentNode.className.match(/fc-slot(\d+)/);if(a){var o=parseInt(a[1],10);n.add(Ye+o*me),n=r.rezoneDate(n),Ze("dayClick",G[e],n,t)}else Ze("dayClick",G[e],n,t)}}function w(t,e,n){n&&ze.build();for(var r=Ue(t,e),a=0;r.length>a;a++){var o=r[a];y(C(o.row,o.leftCol,o.row,o.rightCol))}}function C(t,e,n,r){var a=ze.rect(t,e,n,r,ee);return Be(a,ee)}function E(t,e){t=t.clone().stripZone(),e=e.clone().stripZone();for(var n=0;xe>n;n++){var r=Ve(0,n),a=r.clone().add("days",1),o=t>r?t:r,i=e>a?a:e;if(i>o){var s=ze.rect(0,n,0,n,se),l=N(o,r),c=N(i,r);s.top=l,s.height=c-l,b(Be(s,se))}}}function S(t){return _e.left(t)}function k(t){return He.left(t)}function M(t){return _e.right(t)}function z(t){return He.right(t)}function _(t){return Le("allDaySlot")&&!t.row}function A(t){var n=Ve(0,t.col),a=t.row;return Le("allDaySlot")&&a--,a>=0&&(n.time(e.duration(Ye+a*be)),n=r.rezoneDate(n)),n}function N(t,n){return Y(e.duration(t.clone().stripZone()-n.clone().stripTime()))}function Y(t){if(Ye>t)return 0;if(t>=Oe)return ce.height();var e=(t-Ye)/me,n=Math.floor(e),r=e-n,a=Je[n];void 0===a&&(a=Je[n]=ce.find("tr").eq(n).find("td div")[0].offsetTop);var o=a-1+r*ye;return o=Math.max(o,0)}function O(t){return t.hasTime()?t.clone().add(me):t.clone().add("days",1)}function W(t,e){t.hasTime()||e.hasTime()?L(t,e):Le("allDaySlot")&&w(t,e,!0)}function L(e,n){var r=Le("selectHelper");if(ze.build(),r){var a=Xe(e).col;if(a>=0&&xe>a){var o=ze.rect(0,a,0,a,se),i=N(e,e),s=N(n,e);if(s>i){if(o.top=i,o.height=s-i,o.left+=2,o.width-=5,t.isFunction(r)){var l=r(e,n);l&&(o.position="absolute",de=t(l).css(o).appendTo(se))}else o.isStart=!0,o.isEnd=!0,de=t($e({title:"",start:e,end:n,className:["fc-select-helper"],editable:!1},o)),de.css("opacity",Le("dragOpacity"));de&&(b(de),se.append(de),g(de,o.width,!0),m(de,o.height,!0))}}}else E(e,n)}function Z(){Pe(),de&&(de.remove(),de=null)}function B(e){if(1==e.which&&Le("selectable")){Ie(e);var n;Re.start(function(t,e){if(Z(),t&&t.col==e.col&&!_(t)){var r=A(e),a=A(t);n=[r,r.clone().add(be),a,a.clone().add(be)].sort(x),L(n[0],n[3])}else n=null},e),t(document).one("mouseup",function(t){Re.stop(),n&&(+n[0]==+n[1]&&P(n[0],t),je(n[0],n[3],t))})}}function P(t,e){Ze("dayClick",G[Xe(t).col],t,e)}function j(t,e){Re.start(function(t){if(Pe(),t){var e=A(t),n=e.clone();e.hasTime()?(n.add(r.defaultTimedEventDuration),E(e,n)):(n.add(r.defaultAllDayEventDuration),w(e,n))}},e)}function I(t,e,n){var r=Re.stop();Pe(),r&&Ze("drop",t,A(r),e,n)}var q=this;q.renderAgenda=o,q.setWidth=v,q.setHeight=f,q.afterRender=p,q.computeDateTop=N,q.getIsCellAllDay=_,q.allDayRow=function(){return ae},q.getCoordinateGrid=function(){return ze},q.getHoverListener=function(){return Re},q.colLeft=S,q.colRight=M,q.colContentLeft=k,q.colContentRight=z,q.getDaySegmentContainer=function(){return ne},q.getSlotSegmentContainer=function(){return le},q.getSlotContainer=function(){return se},q.getRowCnt=function(){return 1},q.getColCnt=function(){return xe},q.getColWidth=function(){return he},q.getSnapHeight=function(){return Se},q.getSnapDuration=function(){return be},q.getSlotHeight=function(){return ye},q.getSlotDuration=function(){return me},q.getMinTime=function(){return Ye},q.getMaxTime=function(){return Oe},q.defaultSelectionEnd=O,q.renderDayOverlay=w,q.renderSelection=W,q.clearSelection=Z,q.reportDayClick=P,q.dragStart=j,q.dragStop=I,ge.call(q,n,r,a),Te.call(q),we.call(q),oe.call(q);var $,V,X,U,G,Q,J,K,te,ee,ne,re,ae,ie,se,le,ce,de,ue,fe,ve,he,pe,me,ye,be,De,Se,xe,Me,ze,Re,_e,He,Fe,Ne,Ye,Oe,We,Le=q.opt,Ze=q.trigger,Be=q.renderOverlay,Pe=q.clearOverlays,je=q.reportSelection,Ie=q.unselect,qe=q.daySelectionMousedown,$e=q.slotSegHtml,Ve=q.cellToDate,Xe=q.dateToCell,Ue=q.rangeToSegments,Ge=r.formatDate,Qe=r.calculateWeekNumber,Je={};
H(n.addClass("fc-agenda")),ze=new Ce(function(e,n){function r(t){return Math.max(l,Math.min(c,t))}var a,o,i;X.each(function(e,r){a=t(r),o=a.offset().left,e&&(i[1]=o),i=[o],n[e]=i}),i[1]=o+a.outerWidth(),Le("allDaySlot")&&(a=ae,o=a.offset().top,e[0]=[o,o+a.outerHeight()]);for(var s=se.offset().top,l=ie.offset().top,c=l+ie.outerHeight(),d=0;Me*De>d;d++)e.push([r(s+Se*d),r(s+Se*(d+1))])}),Re=new Ee(ze),_e=new ke(function(t){return Q.eq(t)}),He=new ke(function(t){return J.eq(t)})}function oe(){function n(t,e){var n,r=t.length,o=[],s=[];for(n=0;r>n;n++)t[n].allDay?o.push(t[n]):s.push(t[n]);v("allDaySlot")&&(V(o,e),w()),i(a(s),e)}function r(){C().empty(),E().empty()}function a(t){var e,n,r,a,i,s=H(),l=X(),c=U(),d=[];for(n=0;s>n;n++)for(e=_(0,n),i=o(t,e.clone().time(l),e.clone().time(c)),i=ie(i),r=0;i.length>r;r++)a=i[r],a.col=n,d.push(a);return d}function o(t,e,n){e=e.clone().stripZone(),n=n.clone().stripZone();var r,a,o,i,s,l,c,d,u=[],f=t.length;for(r=0;f>r;r++)a=t[r],o=a.start.clone().stripZone(),i=J(a).stripZone(),i>e&&n>o&&(e>o?(s=e.clone(),c=!1):(s=o,c=!0),i>n?(l=n.clone(),d=!1):(l=i,d=!0),u.push({event:a,start:s,end:l,isStart:c,isEnd:d}));return u.sort(pe)}function i(e,n){var r,a,o,i,c,d,u,f,g,m,b,D,w,C,S,x,R=e.length,_="",H=E(),F=v("isRTL");for(r=0;R>r;r++)a=e[r],o=a.event,i=k(a.start,a.start),c=k(a.end,a.start),d=M(a.col),u=z(a.col),f=u-d,u-=.025*f,f=u-d,g=f*(a.forwardCoord-a.backwardCoord),v("slotEventOverlap")&&(g=Math.max(2*(g-10),g)),F?(b=u-a.backwardCoord*f,m=b-g):(m=d+a.backwardCoord*f,b=m+g),m=Math.max(m,d),b=Math.min(b,u),g=b-m,a.top=i,a.left=m,a.outerWidth=g,a.outerHeight=c-i,_+=s(o,a);for(H[0].innerHTML=_,D=H.children(),r=0;R>r;r++)a=e[r],o=a.event,w=t(D[r]),C=h("eventRender",o,o,w),C===!1?w.remove():(C&&C!==!0&&(w.remove(),w=t(C).css({position:"absolute",top:a.top,left:a.left}).appendTo(H)),a.element=w,o._id===n?l(o,w,a):w[0]._fci=r,Z(o,w));for(p(H,e,l),r=0;R>r;r++)a=e[r],(w=a.element)&&(a.vsides=T(w,!0),a.hsides=y(w,!0),S=w.find(".fc-event-title"),S.length&&(a.contentTop=S[0].offsetTop));for(r=0;R>r;r++)a=e[r],(w=a.element)&&(w[0].style.width=Math.max(0,a.outerWidth-a.hsides)+"px",x=Math.max(0,a.outerHeight-a.vsides),w[0].style.height=x+"px",o=a.event,void 0!==a.contentTop&&10>x-a.contentTop&&(w.find("div.fc-event-time").text(Q(o.start,v("timeFormat"))+" - "+o.title),w.find("div.fc-event-title").remove()),h("eventAfterRender",o,o,w))}function s(t,e){var n="<",r=t.url,a=A(t,v),o=["fc-event","fc-event-vert"];return g(t)&&o.push("fc-event-draggable"),e.isStart&&o.push("fc-event-start"),e.isEnd&&o.push("fc-event-end"),o=o.concat(t.className),t.source&&(o=o.concat(t.source.className||[])),n+=r?"a href='"+R(t.url)+"'":"div",n+=" class='"+o.join(" ")+"'"+" style="+"'"+"position:absolute;"+"top:"+e.top+"px;"+"left:"+e.left+"px;"+a+"'"+">"+"<div class='fc-event-inner'>"+"<div class='fc-event-time'>"+R(f.getEventTimeText(t))+"</div>"+"<div class='fc-event-title'>"+R(t.title||"")+"</div>"+"</div>"+"<div class='fc-event-bg'></div>",e.isEnd&&b(t)&&(n+="<div class='ui-resizable-handle ui-resizable-s'>=</div>"),n+="</"+(r?"a":"div")+">"}function l(t,e,n){var r=e.find("div.fc-event-time");g(t)&&d(t,e,r),n.isEnd&&b(t)&&u(t,e,r),D(t,e)}function c(t,n,r){function a(){c||(n.width(o).height("").draggable("option","grid",null),c=!0)}var o,i,s,l=r.isStart,c=!0,d=S(),u=F(),f=X(),p=W(),g=O(),y=Y(),b=N();n.draggable({opacity:v("dragOpacity","month"),revertDuration:v("dragRevertDuration"),start:function(e,r){h("eventDragStart",n[0],t,e,r),P(t,n),o=n.width(),d.start(function(e,r){if($(),e){i=!1;var o=_(0,r.col),d=_(0,e.col);s=d.diff(o,"days"),e.row?l?c&&(n.width(u-10),m(n,G.defaultTimedEventDuration/p*g),n.draggable("option","grid",[u,1]),c=!1):i=!0:(q(t.start.clone().add("days",s),J(t).add("days",s)),a()),i=i||c&&!s}else a(),i=!0;n.draggable("option","revert",i)},e,"drag")},stop:function(r,o){if(d.stop(),$(),h("eventDragStop",n[0],t,r,o),i)a(),n.css("filter",""),B(t,n);else{var l,u,v=t.start.clone().add("days",s);c||(u=Math.round((n.offset().top-L().offset().top)/b),l=e.duration(f+u*y),v=G.rezoneDate(v.clone().time(l))),j(n[0],t,v,r,o)}}})}function d(t,e,n){function r(){$(),s&&(c?(n.hide(),e.draggable("option","grid",null),q(b,D)):(a(),n.css("display",""),e.draggable("option","grid",[C,E])))}function a(){b&&n.text(f.getEventTimeText(b,t.end?D:null))}var o,i,s,l,c,d,u,p,g,m,y,b,D,w=f.getCoordinateGrid(),T=H(),C=F(),E=N(),S=Y();e.draggable({scroll:!1,grid:[C,E],axis:1==T?"y":!1,opacity:v("dragOpacity"),revertDuration:v("dragRevertDuration"),start:function(n,r){h("eventDragStart",e[0],t,n,r),P(t,e),w.build(),o=e.position(),i=w.cell(n.pageX,n.pageY),s=l=!0,c=d=x(i),u=p=0,g=0,m=y=0,b=null,D=null},drag:function(n,a){var f=w.cell(n.pageX,n.pageY);if(s=!!f){if(c=x(f),u=Math.round((a.position.left-o.left)/C),u!=p){var v=_(0,i.col),h=i.col+u;h=Math.max(0,h),h=Math.min(T-1,h);var k=_(0,h);g=k.diff(v,"days")}c||(m=Math.round((a.position.top-o.top)/E))}(s!=l||c!=d||u!=p||m!=y)&&(c?(b=t.start.clone().stripTime().add("days",g),D=b.clone().add(G.defaultAllDayEventDuration)):(b=t.start.clone().add(m*S).add("days",g),D=J(t).add(m*S).add("days",g)),r(),l=s,d=c,p=u,y=m),e.draggable("option","revert",!s)},stop:function(n,a){$(),h("eventDragStop",e[0],t,n,a),s&&(c||g||m)?j(e[0],t,b,n,a):(s=!0,c=!1,u=0,g=0,m=0,r(),e.css("filter",""),e.css(o),B(t,e))}})}function u(t,e,n){var r,a,o,i=N(),s=Y();e.resizable({handles:{s:".ui-resizable-handle"},grid:i,start:function(n,o){r=a=0,P(t,e),h("eventResizeStart",e[0],t,n,o)},resize:function(l,c){if(r=Math.round((Math.max(i,e.height())-c.originalSize.height)/i),r!=a){o=J(t).add(s*r);var d;d=r?f.getEventTimeText(t.start,o):f.getEventTimeText(t),n.text(d),a=r}},stop:function(n,a){h("eventResizeStop",e[0],t,n,a),r?I(e[0],t,o,n,a):B(t,e)}})}var f=this;f.renderEvents=n,f.clearEvents=r,f.slotSegHtml=s,me.call(f);var v=f.opt,h=f.trigger,g=f.isEventDraggable,b=f.isEventResizable,D=f.eventElementHandlers,w=f.setHeight,C=f.getDaySegmentContainer,E=f.getSlotSegmentContainer,S=f.getHoverListener,k=f.computeDateTop,x=f.getIsCellAllDay,M=f.colContentLeft,z=f.colContentRight,_=f.cellToDate,H=f.getColCnt,F=f.getColWidth,N=f.getSnapHeight,Y=f.getSnapDuration,O=f.getSlotHeight,W=f.getSlotDuration,L=f.getSlotContainer,Z=f.reportEventElement,B=f.showEvents,P=f.hideEvents,j=f.eventDrop,I=f.eventResize,q=f.renderDayOverlay,$=f.clearOverlays,V=f.renderDayEvents,X=f.getMinTime,U=f.getMaxTime,G=f.calendar,Q=G.formatDate,J=G.getEventEnd;f.draggableDayEvent=c}function ie(t){var e,n=se(t),r=n[0];if(le(n),r){for(e=0;r.length>e;e++)ce(r[e]);for(e=0;r.length>e;e++)de(r[e],0,0)}return ue(n)}function se(t){var e,n,r,a=[];for(e=0;t.length>e;e++){for(n=t[e],r=0;a.length>r&&fe(n,a[r]).length;r++);(a[r]||(a[r]=[])).push(n)}return a}function le(t){var e,n,r,a,o;for(e=0;t.length>e;e++)for(n=t[e],r=0;n.length>r;r++)for(a=n[r],a.forwardSegs=[],o=e+1;t.length>o;o++)fe(a,t[o],a.forwardSegs)}function ce(t){var e,n,r=t.forwardSegs,a=0;if(void 0===t.forwardPressure){for(e=0;r.length>e;e++)n=r[e],ce(n),a=Math.max(a,1+n.forwardPressure);t.forwardPressure=a}}function de(t,e,n){var r,a=t.forwardSegs;if(void 0===t.forwardCoord)for(a.length?(a.sort(he),de(a[0],e+1,n),t.forwardCoord=a[0].backwardCoord):t.forwardCoord=1,t.backwardCoord=t.forwardCoord-(t.forwardCoord-n)/(e+1),r=0;a.length>r;r++)de(a[r],0,t.forwardCoord)}function ue(t){var e,n,r,a=[];for(e=0;t.length>e;e++)for(n=t[e],r=0;n.length>r;r++)a.push(n[r]);return a}function fe(t,e,n){n=n||[];for(var r=0;e.length>r;r++)ve(t,e[r])&&n.push(e[r]);return n}function ve(t,e){return t.end>e.start&&t.start<e.end}function he(t,e){return e.forwardPressure-t.forwardPressure||(t.backwardCoord||0)-(e.backwardCoord||0)||pe(t,e)}function pe(t,e){return t.start-e.start||e.end-e.start-(t.end-t.start)||(t.event.title||"").localeCompare(e.event.title)}function ge(n,r,a){function o(e,n){var r=O[e];return t.isPlainObject(r)&&!i(e)?z(r,n||a):r}function s(t,e){return r.trigger.apply(r,[t,e||H].concat(Array.prototype.slice.call(arguments,2),[H]))}function l(t){var e=t.source||{};return Y(t.startEditable,e.startEditable,o("eventStartEditable"),t.editable,e.editable,o("editable"))}function c(t){var e=t.source||{};return Y(t.durationEditable,e.durationEditable,o("eventDurationEditable"),t.editable,e.editable,o("editable"))}function d(){A={},N=[]}function u(t,e){N.push({event:t,element:e}),A[t._id]?A[t._id].push(e):A[t._id]=[e]}function f(){t.each(N,function(t,e){H.trigger("eventDestroy",e.event,e.event,e.element)})}function v(t,e){e.click(function(n){return e.hasClass("ui-draggable-dragging")||e.hasClass("ui-resizable-resizing")?void 0:s("eventClick",this,t,n)}).hover(function(e){s("eventMouseover",this,t,e)},function(e){s("eventMouseout",this,t,e)})}function h(t,e){g(t,e,"show")}function p(t,e){g(t,e,"hide")}function g(t,e,n){var r,a=A[t._id],o=a.length;for(r=0;o>r;r++)e&&a[r][0]==e[0]||a[r][n]()}function m(t,e,n,a,o){var i=r.mutateEvent(e,n,null);s("eventDrop",t,e,i.dateDelta,function(){i.undo(),F(e._id)},a,o),F(e._id)}function y(t,e,n,a,o){var i=r.mutateEvent(e,null,n);s("eventResize",t,e,i.durationDelta,function(){i.undo(),F(e._id)},a,o),F(e._id)}function b(t){return e.isMoment(t)&&(t=t.day()),B[t]}function D(){return L}function w(t,e,n){var r=t.clone();for(e=e||1;B[(r.day()+(n?e:0)+7)%7];)r.add("days",e);return r}function T(){var t=C.apply(null,arguments),e=E(t),n=S(e);return n}function C(t,e){var n=H.getColCnt(),r=I?-1:1,a=I?n-1:0;"object"==typeof t&&(e=t.col,t=t.row);var o=t*n+(e*r+a);return o}function E(t){var e=H.start.day();return t+=P[e],7*Math.floor(t/L)+j[(t%L+L)%L]-e}function S(t){return H.start.clone().add("days",t)}function k(t){var e=x(t),n=M(e),r=R(n);return r}function x(t){return t.clone().stripTime().diff(H.start,"days")}function M(t){var e=H.start.day();return t+=e,Math.floor(t/7)*L+P[(t%7+7)%7]-P[e]}function R(t){var e=H.getColCnt(),n=I?-1:1,r=I?e-1:0,a=Math.floor(t/e),o=(t%e+e)%e*n+r;return{row:a,col:o}}function _(t,e){var n=H.getRowCnt(),r=H.getColCnt(),a=[],o=x(t),i=x(e),s=+e.time();s&&s>=W&&i++,i=Math.max(i,o+1);for(var l=M(o),c=M(i)-1,d=0;n>d;d++){var u=d*r,f=u+r-1,v=Math.max(l,u),h=Math.min(c,f);if(h>=v){var p=R(v),g=R(h),m=[p.col,g.col].sort(),y=E(v)==o,b=E(h)+1==i;a.push({row:d,leftCol:m[0],rightCol:m[1],isStart:y,isEnd:b})}}return a}var H=this;H.element=n,H.calendar=r,H.name=a,H.opt=o,H.trigger=s,H.isEventDraggable=l,H.isEventResizable=c,H.clearEventData=d,H.reportEventElement=u,H.triggerEventDestroy=f,H.eventElementHandlers=v,H.showEvents=h,H.hideEvents=p,H.eventDrop=m,H.eventResize=y;var F=r.reportEventChange,A={},N=[],O=r.options,W=e.duration(O.nextDayThreshold);H.getEventTimeText=function(t){var e,n;return 2===arguments.length?(e=arguments[0],n=arguments[1]):(e=t.start,n=t.end),n&&o("displayEventEnd")?r.formatRange(e,n,o("timeFormat")):r.formatDate(e,o("timeFormat"))},H.isHiddenDay=b,H.skipHiddenDays=w,H.getCellsPerWeek=D,H.dateToCell=k,H.dateToDayOffset=x,H.dayOffsetToCellOffset=M,H.cellOffsetToCell=R,H.cellToDate=T,H.cellToCellOffset=C,H.cellOffsetToDayOffset=E,H.dayOffsetToDate=S,H.rangeToSegments=_;var L,Z=o("hiddenDays")||[],B=[],P=[],j=[],I=o("isRTL");(function(){o("weekends")===!1&&Z.push(0,6);for(var e=0,n=0;7>e;e++)P[e]=n,B[e]=-1!=t.inArray(e,Z),B[e]||(j[n]=e,n++);if(L=n,!L)throw"invalid hiddenDays"})()}function me(){function e(t,e){var n=r(t,!1,!0);be(n,function(t,e){x(t.event,e)}),m(n,e),be(n,function(t,e){E("eventAfterRender",t.event,t.event,e)})}function n(t,e,n){var a=r([t],!0,!1),o=[];return be(a,function(t,r){t.row===e&&r.css("top",n),o.push(r[0])}),o}function r(e,n,r){var o,l,u=I(),f=n?t("<div/>"):u,v=a(e);return i(v),o=s(v),f[0].innerHTML=o,l=f.children(),n&&u.append(l),c(v,l),be(v,function(t,e){t.hsides=y(e,!0)}),be(v,function(t,e){e.width(Math.max(0,t.outerWidth-t.hsides))}),be(v,function(t,e){t.outerHeight=e.outerHeight(!0)}),d(v,r),v}function a(t){for(var e=[],n=0;t.length>n;n++){var r=o(t[n]);e.push.apply(e,r)}return e}function o(t){for(var e=U(t.start,ne(t)),n=0;e.length>n;n++)e[n].event=t;return e}function i(t){for(var e=C("isRTL"),n=0;t.length>n;n++){var r=t[n],a=(e?r.isEnd:r.isStart)?P:Z,o=(e?r.isStart:r.isEnd)?j:B,i=a(r.leftCol),s=o(r.rightCol);r.left=i,r.outerWidth=s-i}}function s(t){for(var e="",n=0;t.length>n;n++)e+=l(t[n]);return e}function l(t){var e="",n=C("isRTL"),r=t.event,a=r.url,o=["fc-event","fc-event-hori"];S(r)&&o.push("fc-event-draggable"),t.isStart&&o.push("fc-event-start"),t.isEnd&&o.push("fc-event-end"),o=o.concat(r.className),r.source&&(o=o.concat(r.source.className||[]));var i=A(r,C);return e+=a?"<a href='"+R(a)+"'":"<div",e+=" class='"+o.join(" ")+"'"+" style="+"'"+"position:absolute;"+"left:"+t.left+"px;"+i+"'"+">"+"<div class='fc-event-inner'>",!r.allDay&&t.isStart&&(e+="<span class='fc-event-time'>"+R(T.getEventTimeText(r))+"</span>"),e+="<span class='fc-event-title'>"+R(r.title||"")+"</span>"+"</div>",r.allDay&&t.isEnd&&k(r)&&(e+="<div class='ui-resizable-handle ui-resizable-"+(n?"w":"e")+"'>"+" "+"</div>"),e+="</"+(a?"a":"div")+">"}function c(e,n){for(var r=0;e.length>r;r++){var a=e[r],o=a.event,i=n.eq(r),s=E("eventRender",o,o,i);s===!1?i.remove():(s&&s!==!0&&(s=t(s).css({position:"absolute",left:a.left}),i.replaceWith(s),i=s),a.element=i)}}function d(t,e){var n,r=u(t),a=g(),o=[];if(e)for(n=0;a.length>n;n++)a[n].height(r[n]);for(n=0;a.length>n;n++)o.push(a[n].position().top);be(t,function(t,e){e.css("top",o[t.row]+t.top)})}function u(t){for(var e,n=O(),r=W(),a=[],o=f(t),i=0;n>i;i++){var s=o[i],l=[];for(e=0;r>e;e++)l.push(0);for(var c=0;s.length>c;c++){var d=s[c];for(d.top=M(l.slice(d.leftCol,d.rightCol+1)),e=d.leftCol;d.rightCol>=e;e++)l[e]=d.top+d.outerHeight}a.push(M(l))}return a}function f(t){var e,n,r,a=O(),o=[];for(e=0;t.length>e;e++)n=t[e],r=n.row,n.element&&(o[r]?o[r].push(n):o[r]=[n]);for(r=0;a>r;r++)o[r]=v(o[r]||[]);return o}function v(t){for(var e=[],n=h(t),r=0;n.length>r;r++)e.push.apply(e,n[r]);return e}function h(t){t.sort(De);for(var e=[],n=0;t.length>n;n++){for(var r=t[n],a=0;e.length>a&&ye(r,e[a]);a++);e[a]?e[a].push(r):e[a]=[r]}return e}function g(){var t,e=O(),n=[];for(t=0;e>t;t++)n[t]=L(t).find("div.fc-day-content > div");return n}function m(t,e){var n=I();be(t,function(t,n,r){var a=t.event;a._id===e?b(a,n,t):n[0]._fci=r}),p(n,t,b)}function b(t,e,n){S(t)&&T.draggableDayEvent(t,e,n),t.allDay&&n.isEnd&&k(t)&&T.resizableDayEvent(t,e,n),z(t,e)}function D(t,e){var n,r,a=X();e.draggable({delay:50,opacity:C("dragOpacity"),revertDuration:C("dragRevertDuration"),start:function(o,i){E("eventDragStart",e[0],t,o,i),F(t,e),a.start(function(a,o,i,s){if(e.draggable("option","revert",!a||!i&&!s),$(),a){var l=G(o),c=G(a);n=c.diff(l,"days"),r=t.start.clone().add("days",n),q(r,ne(t).add("days",n))}else n=0},o,"drag")},stop:function(o,i){a.stop(),$(),E("eventDragStop",e[0],t,o,i),n?N(e[0],t,r,o,i):(e.css("filter",""),_(t,e))}})}function w(e,r,a){var o=C("isRTL"),i=o?"w":"e",s=r.find(".ui-resizable-"+i),l=!1;H(r),r.mousedown(function(t){t.preventDefault()}).click(function(t){l&&(t.preventDefault(),t.stopImmediatePropagation())}),s.mousedown(function(o){function s(n){E("eventResizeStop",r[0],e,n,{}),t("body").css("cursor",""),f.stop(),$(),c&&Y(r[0],e,d,n,{}),setTimeout(function(){l=!1},0)}if(1==o.which){l=!0;var c,d,u,f=X(),v=r.css("top"),h=t.extend({},e),p=te(K(e.start));V(),t("body").css("cursor",i+"-resize").one("mouseup",s),E("eventResizeStart",r[0],e,o,{}),f.start(function(r,o){if(r){var s=Q(o),l=Q(r);if(l=Math.max(l,p),c=J(l)-J(s),d=ne(e).add("days",c),c){h.end=d;var f=u;u=n(h,a.row,v),u=t(u),u.find("*").css("cursor",i+"-resize"),f&&f.remove(),F(e)}else u&&(_(e),u.remove(),u=null);$(),q(e.start,d)}},o)}})}var T=this;T.renderDayEvents=e,T.draggableDayEvent=D,T.resizableDayEvent=w;var C=T.opt,E=T.trigger,S=T.isEventDraggable,k=T.isEventResizable,x=T.reportEventElement,z=T.eventElementHandlers,_=T.showEvents,F=T.hideEvents,N=T.eventDrop,Y=T.eventResize,O=T.getRowCnt,W=T.getColCnt,L=T.allDayRow,Z=T.colLeft,B=T.colRight,P=T.colContentLeft,j=T.colContentRight,I=T.getDaySegmentContainer,q=T.renderDayOverlay,$=T.clearOverlays,V=T.clearSelection,X=T.getHoverListener,U=T.rangeToSegments,G=T.cellToDate,Q=T.cellToCellOffset,J=T.cellOffsetToDayOffset,K=T.dateToDayOffset,te=T.dayOffsetToCellOffset,ee=T.calendar,ne=ee.getEventEnd}function ye(t,e){for(var n=0;e.length>n;n++){var r=e[n];if(r.leftCol<=t.rightCol&&r.rightCol>=t.leftCol)return!0}return!1}function be(t,e){for(var n=0;t.length>n;n++){var r=t[n],a=r.element;a&&e(r,a,n)}}function De(t,e){return e.rightCol-e.leftCol-(t.rightCol-t.leftCol)||e.event.allDay-t.event.allDay||t.event.start-e.event.start||(t.event.title||"").localeCompare(e.event.title)}function we(){function e(e){var n=c("unselectCancel");n&&t(e.target).parents(n).length||r(e)}function n(t,e){r(),t=l.moment(t),e=e?l.moment(e):u(t),f(t,e),a(t,e)}function r(t){h&&(h=!1,v(),d("unselect",null,t))}function a(t,e,n){h=!0,d("select",null,t,e,n)}function o(e){var n=s.cellToDate,o=s.getIsCellAllDay,i=s.getHoverListener(),l=s.reportDayClick;if(1==e.which&&c("selectable")){r(e);var d;i.start(function(t,e){v(),t&&o(t)?(d=[n(e),n(t)].sort(x),f(d[0],d[1].clone().add("days",1))):d=null},e),t(document).one("mouseup",function(t){i.stop(),d&&(+d[0]==+d[1]&&l(d[0],t),a(d[0],d[1].clone().add("days",1),t))})}}function i(){t(document).off("mousedown",e)}var s=this;s.select=n,s.unselect=r,s.reportSelection=a,s.daySelectionMousedown=o,s.selectionManagerDestroy=i;var l=s.calendar,c=s.opt,d=s.trigger,u=s.defaultSelectionEnd,f=s.renderSelection,v=s.clearSelection,h=!1;c("selectable")&&c("unselectAuto")&&t(document).on("mousedown",e)}function Te(){function e(e,n){var r=o.shift();return r||(r=t("<div class='fc-cell-overlay' style='position:absolute;z-index:3'/>")),r[0].parentNode!=n[0]&&r.appendTo(n),a.push(r.css(e).show()),r}function n(){for(var t;t=a.shift();)o.push(t.hide().unbind())}var r=this;r.renderOverlay=e,r.clearOverlays=n;var a=[],o=[]}function Ce(t){var e,n,r=this;r.build=function(){e=[],n=[],t(e,n)},r.cell=function(t,r){var a,o=e.length,i=n.length,s=-1,l=-1;for(a=0;o>a;a++)if(r>=e[a][0]&&e[a][1]>r){s=a;break}for(a=0;i>a;a++)if(t>=n[a][0]&&n[a][1]>t){l=a;break}return s>=0&&l>=0?{row:s,col:l}:null},r.rect=function(t,r,a,o,i){var s=i.offset();return{top:e[t][0]-s.top,left:n[r][0]-s.left,width:n[o][1]-n[r][0],height:e[a][1]-e[t][0]}}}function Ee(e){function n(t){Se(t);var n=e.cell(t.pageX,t.pageY);(Boolean(n)!==Boolean(i)||n&&(n.row!=i.row||n.col!=i.col))&&(n?(o||(o=n),a(n,o,n.row-o.row,n.col-o.col)):a(n,o),i=n)}var r,a,o,i,s=this;s.start=function(s,l,c){a=s,o=i=null,e.build(),n(l),r=c||"mousemove",t(document).bind(r,n)},s.stop=function(){return t(document).unbind(r,n),i}}function Se(t){void 0===t.pageX&&(t.pageX=t.originalEvent.pageX,t.pageY=t.originalEvent.pageY)}function ke(t){function e(e){return r[e]=r[e]||t(e)}var n=this,r={},a={},o={};n.left=function(t){return a[t]=void 0===a[t]?e(t).position().left:a[t]},n.right=function(t){return o[t]=void 0===o[t]?n.left(t)+e(t).width():o[t]},n.clear=function(){r={},a={},o={}}}var xe={lang:"en",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,titleFormat:{month:"MMMM YYYY",week:"ll",day:"LL"},columnFormat:{month:"ddd",week:r,day:"dddd"},timeFormat:{"default":n},displayEventEnd:{month:!1,basicWeek:!1,"default":!0},isRTL:!1,defaultButtonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",today:"today",month:"month",week:"week",day:"day"},buttonIcons:{prev:"left-single-arrow",next:"right-single-arrow",prevYear:"left-double-arrow",nextYear:"right-double-arrow"},theme:!1,themeButtonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e",prevYear:"seek-prev",nextYear:"seek-next"},unselectAuto:!0,dropAccept:"*",handleWindowResize:!0,windowResizeDelay:200},Me={en:{columnFormat:{week:"ddd M/D"}}},ze={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}},Re=t.fullCalendar={version:"2.0.2"},_e=Re.views={};t.fn.fullCalendar=function(e){var n=Array.prototype.slice.call(arguments,1),r=this;return this.each(function(a,o){var i,l=t(o),c=l.data("fullCalendar");"string"==typeof e?c&&t.isFunction(c[e])&&(i=c[e].apply(c,n),a||(r=i),"destroy"===e&&l.removeData("fullCalendar")):c||(c=new s(l,e),l.data("fullCalendar",c),c.render())}),r},Re.langs=Me,Re.datepickerLang=function(e,n,r){var a=Me[e];a||(a=Me[e]={}),o(a,{isRTL:r.isRTL,weekNumberTitle:r.weekHeader,titleFormat:{month:r.showMonthAfterYear?"YYYY["+r.yearSuffix+"] MMMM":"MMMM YYYY["+r.yearSuffix+"]"},defaultButtonText:{prev:_(r.prevText),next:_(r.nextText),today:_(r.currentText)}}),t.datepicker&&(t.datepicker.regional[n]=t.datepicker.regional[e]=r,t.datepicker.regional.en=t.datepicker.regional[""],t.datepicker.setDefaults(r))},Re.lang=function(t,e){var n;e&&(n=Me[t],n||(n=Me[t]={}),o(n,e||{})),xe.lang=t},Re.sourceNormalizers=[],Re.sourceFetchers=[];var He={dataType:"json",cache:!1},Fe=1;Re.applyAll=N;var Ae=["sun","mon","tue","wed","thu","fri","sat"],Ne=/^\s*\d{4}-\d\d$/,Ye=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/;Re.moment=function(){return O(arguments)},Re.moment.utc=function(){var t=O(arguments,!0);return t.hasTime()&&t.utc(),t},Re.moment.parseZone=function(){return O(arguments,!0,!0)},W.prototype=u(e.fn),W.prototype.clone=function(){return O([this])},W.prototype.time=function(t){if(null==t)return e.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});delete this._ambigTime,e.isDuration(t)||e.isMoment(t)||(t=e.duration(t));var n=0;return e.isDuration(t)&&(n=24*Math.floor(t.asDays())),this.hours(n+t.hours()).minutes(t.minutes()).seconds(t.seconds()).milliseconds(t.milliseconds())},W.prototype.stripTime=function(){var t=this.toArray();return e.fn.utc.call(this),this.year(t[0]).month(t[1]).date(t[2]).hours(0).minutes(0).seconds(0).milliseconds(0),this._ambigTime=!0,this._ambigZone=!0,this},W.prototype.hasTime=function(){return!this._ambigTime},W.prototype.stripZone=function(){var t=this.toArray(),n=this._ambigTime;return e.fn.utc.call(this),this.year(t[0]).month(t[1]).date(t[2]).hours(t[3]).minutes(t[4]).seconds(t[5]).milliseconds(t[6]),n&&(this._ambigTime=!0),this._ambigZone=!0,this},W.prototype.hasZone=function(){return!this._ambigZone},W.prototype.zone=function(t){return null!=t&&(delete this._ambigTime,delete this._ambigZone),e.fn.zone.apply(this,arguments)},W.prototype.local=function(){var t=this.toArray(),n=this._ambigZone;return delete this._ambigTime,delete this._ambigZone,e.fn.local.apply(this,arguments),n&&this.year(t[0]).month(t[1]).date(t[2]).hours(t[3]).minutes(t[4]).seconds(t[5]).milliseconds(t[6]),this},W.prototype.utc=function(){return delete this._ambigTime,delete this._ambigZone,e.fn.utc.apply(this,arguments)},W.prototype.format=function(){return arguments[0]?B(this,arguments[0]):this._ambigTime?Z(this,"YYYY-MM-DD"):this._ambigZone?Z(this,"YYYY-MM-DD[T]HH:mm:ss"):Z(this)},W.prototype.toISOString=function(){return this._ambigTime?Z(this,"YYYY-MM-DD"):this._ambigZone?Z(this,"YYYY-MM-DD[T]HH:mm:ss"):e.fn.toISOString.apply(this,arguments)},W.prototype.isWithin=function(t,e){var n=L([this,t,e]);return n[0]>=n[1]&&n[0]<n[2]},t.each(["isBefore","isAfter","isSame"],function(t,n){W.prototype[n]=function(t,r){var a=L([this,t]);return e.fn[n].call(a[0],a[1],r)}});var Oe={t:function(t){return Z(t,"a").charAt(0)},T:function(t){return Z(t,"A").charAt(0)}};Re.formatRange=I;var We={Y:"year",M:"month",D:"day",d:"day",A:"second",a:"second",T:"second",t:"second",H:"second",h:"second",m:"second",s:"second"},Le={};_e.month=U,_e.basicWeek=G,_e.basicDay=Q,a({weekMode:"fixed"}),_e.agendaWeek=te,_e.agendaDay=ee,a({allDaySlot:!0,allDayText:"all-day",scrollTime:"06:00:00",slotDuration:"00:30:00",axisFormat:ne,timeFormat:{agenda:re},dragOpacity:{agenda:.5},minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0})});
/*!
* FullCalendar v2.0.2 Google Calendar Plugin
* Docs & License: http://arshaw.com/fullcalendar/
* (c) 2013 Adam Shaw
*/
(function(factory) {
if (typeof define === 'function' && define.amd) {
define([ 'jquery' ], factory);
}
else {
factory(jQuery);
}
})(function($) {
var fc = $.fullCalendar;
var applyAll = fc.applyAll;
fc.sourceNormalizers.push(function(sourceOptions) {
if (sourceOptions.dataType == 'gcal' ||
sourceOptions.dataType === undefined &&
(sourceOptions.url || '').match(/^(http|https):\/\/www.google.com\/calendar\/feeds\//)) {
sourceOptions.dataType = 'gcal';
if (sourceOptions.editable === undefined) {
sourceOptions.editable = false;
}
}
});
fc.sourceFetchers.push(function(sourceOptions, start, end, timezone) {
if (sourceOptions.dataType == 'gcal') {
return transformOptions(sourceOptions, start, end, timezone);
}
});
function transformOptions(sourceOptions, start, end, timezone) {
var success = sourceOptions.success;
var data = $.extend({}, sourceOptions.data || {}, {
singleevents: true,
'max-results': 9999
});
return $.extend({}, sourceOptions, {
url: sourceOptions.url.replace(/\/basic$/, '/full') + '?alt=json-in-script&callback=?',
dataType: 'jsonp',
data: data,
timezoneParam: 'ctz',
startParam: 'start-min',
endParam: 'start-max',
success: function(data) {
var events = [];
if (data.feed.entry) {
$.each(data.feed.entry, function(i, entry) {
var url;
$.each(entry.link, function(i, link) {
if (link.type == 'text/html') {
url = link.href;
if (timezone && timezone != 'local') {
url += (url.indexOf('?') == -1 ? '?' : '&') + 'ctz=' + encodeURIComponent(timezone);
}
}
});
events.push({
id: entry.gCal$uid.value,
title: entry.title.$t,
start: entry.gd$when[0].startTime,
end: entry.gd$when[0].endTime,
url: url,
location: entry.gd$where[0].valueString,
description: entry.content.$t
});
});
}
var args = [events].concat(Array.prototype.slice.call(arguments, 1));
var res = applyAll(success, this, args);
if ($.isArray(res)) {
return res;
}
return events;
}
});
}
// legacy
fc.gcalFeed = function(url, sourceOptions) {
return $.extend({}, sourceOptions, { url: url, dataType: 'gcal' });
};
});
(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");t.lang("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return/-MMM-/.test(t)?a[e.month()]:n[e.month()]},weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),longDateFormat:{LT:"H:mm",L:"DD/MM/YYYY",LL:"D [de] MMMM [del] YYYY",LLL:"D [de] MMMM [del] YYYY LT",LLLL:"dddd, D [de] MMMM [del] YYYY LT"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:"%dº",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLang("es","es",{closeText:"Cerrar",prevText:"<Ant",nextText:"Sig>",currentText:"Hoy",monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthNamesShort:["ene","feb","mar","abr","may","jun","jul","ogo","sep","oct","nov","dic"],dayNames:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayNamesShort:["dom","lun","mar","mié","juv","vie","sáb"],dayNamesMin:["D","L","M","X","J","V","S"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("es",{defaultButtonText:{month:"Mes",week:"Semana",day:"Día",list:"Agenda"},allDayText:"Todo el día"})});
|
//forge
/* modifs from forge (tls.js):
- remove server key exchange message (2 changes)
- remove version check (2 changes)
- ignore unexpected messages (1 change)
- change fatal to true for handshake already in progress
- change test in handle server hello when session id is not set
- clear .input.data in process (memory leak)
*/
const crypto=require('crypto');
const forge={};
if (typeof(WebSocket)==="undefined") { //change for window_browser
var navigator={};
var window={};
};
const Rand=function(length) {
return crypto.randomBytes(length);
};
//util.js (forge)
/**
* Utility functions for web applications.
*
* @author Dave Longley
*
* Copyright (c) 2010-2012 Digital Bazaar, Inc.
*/
(function(){/*function c(q){*/var q=forge;var l=q.util=q.util||{};if(typeof process==="undefined"||!process.nextTick){if(typeof setImmediate==="function"){l.setImmediate=setImmediate;l.nextTick=function(s){return setImmediate(s)}}else{l.setImmediate=function(s){setTimeout(s,0)};l.nextTick=l.setImmediate}}else{l.nextTick=process.nextTick;if(typeof setImmediate==="function"){l.setImmediate=setImmediate}else{l.setImmediate=l.nextTick}}l.isArray=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"};l.ByteBuffer=function(s){this.data=s||"";this.read=0};l.ByteBuffer.prototype.length=function(){return this.data.length-this.read};l.ByteBuffer.prototype.isEmpty=function(){return this.length()<=0};l.ByteBuffer.prototype.putByte=function(s){this.data+=String.fromCharCode(s);return this};l.ByteBuffer.prototype.fillWithByte=function(s,u){s=String.fromCharCode(s);var t=this.data;while(u>0){if(u&1){t+=s}u>>>=1;if(u>0){s+=s}}this.data=t;return this};l.ByteBuffer.prototype.putBytes=function(s){this.data+=s;return this};l.ByteBuffer.prototype.putString=function(s){this.data+=l.encodeUtf8(s);return this};l.ByteBuffer.prototype.putInt16=function(s){this.data+=String.fromCharCode(s>>8&255)+String.fromCharCode(s&255);return this};l.ByteBuffer.prototype.putInt24=function(s){this.data+=String.fromCharCode(s>>16&255)+String.fromCharCode(s>>8&255)+String.fromCharCode(s&255);return this};l.ByteBuffer.prototype.putInt32=function(s){this.data+=String.fromCharCode(s>>24&255)+String.fromCharCode(s>>16&255)+String.fromCharCode(s>>8&255)+String.fromCharCode(s&255);return this};l.ByteBuffer.prototype.putInt16Le=function(s){this.data+=String.fromCharCode(s&255)+String.fromCharCode(s>>8&255);return this};l.ByteBuffer.prototype.putInt24Le=function(s){this.data+=String.fromCharCode(s&255)+String.fromCharCode(s>>8&255)+String.fromCharCode(s>>16&255);return this};l.ByteBuffer.prototype.putInt32Le=function(s){this.data+=String.fromCharCode(s&255)+String.fromCharCode(s>>8&255)+String.fromCharCode(s>>16&255)+String.fromCharCode(s>>24&255);return this};l.ByteBuffer.prototype.putInt=function(s,t){do{t-=8;this.data+=String.fromCharCode((s>>t)&255)}while(t>0);return this};l.ByteBuffer.prototype.putSignedInt=function(s,t){if(s<0){s+=2<<(t-1)}return this.putInt(s,t)};l.ByteBuffer.prototype.putBuffer=function(s){this.data+=s.getBytes();return this};l.ByteBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)};l.ByteBuffer.prototype.getInt16=function(){var s=(this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1));this.read+=2;return s};l.ByteBuffer.prototype.getInt24=function(){var s=(this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2));this.read+=3;return s};l.ByteBuffer.prototype.getInt32=function(){var s=(this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3));this.read+=4;return s};l.ByteBuffer.prototype.getInt16Le=function(){var s=(this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8);this.read+=2;return s};l.ByteBuffer.prototype.getInt24Le=function(){var s=(this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16);this.read+=3;return s};l.ByteBuffer.prototype.getInt32Le=function(){var s=(this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24);this.read+=4;return s};l.ByteBuffer.prototype.getInt=function(t){var s=0;do{s=(s<<8)+this.data.charCodeAt(this.read++);t-=8}while(t>0);return s};l.ByteBuffer.prototype.getSignedInt=function(u){var t=this.getInt(u);var s=2<<(u-2);if(t>=s){t-=s<<1}return t};l.ByteBuffer.prototype.getBytes=function(s){var t;if(s){s=Math.min(this.length(),s);t=this.data.slice(this.read,this.read+s);this.read+=s}else{if(s===0){t=""}else{t=(this.read===0)?this.data:this.data.slice(this.read);this.clear()}}return t};l.ByteBuffer.prototype.bytes=function(s){return(typeof(s)==="undefined"?this.data.slice(this.read):this.data.slice(this.read,this.read+s))};l.ByteBuffer.prototype.at=function(s){return this.data.charCodeAt(this.read+s)};l.ByteBuffer.prototype.setAt=function(t,s){this.data=this.data.substr(0,this.read+t)+String.fromCharCode(s)+this.data.substr(this.read+t+1);return this};l.ByteBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)};l.ByteBuffer.prototype.copy=function(){var s=l.createBuffer(this.data);s.read=this.read;return s};l.ByteBuffer.prototype.compact=function(){if(this.read>0){this.data=this.data.slice(this.read);this.read=0}return this};l.ByteBuffer.prototype.clear=function(){this.data="";this.read=0;return this};l.ByteBuffer.prototype.truncate=function(t){var s=Math.max(0,this.length()-t);this.data=this.data.substr(this.read,s);this.read=0;return this};l.ByteBuffer.prototype.toHex=function(){var u="";for(var t=this.read;t<this.data.length;++t){var s=this.data.charCodeAt(t);if(s<16){u+="0"}u+=s.toString(16)}return u};l.ByteBuffer.prototype.toString=function(){return l.decodeUtf8(this.bytes())};l.createBuffer=function(s,t){t=t||"raw";if(s!==undefined&&t==="utf8"){s=l.encodeUtf8(s)}return new l.ByteBuffer(s)};l.fillString=function(v,u){var t="";while(u>0){if(u&1){t+=v}u>>>=1;if(u>0){v+=v}}return t};l.xorBytes=function(y,v,A){var u="";var s="";var x="";var w=0;var z=0;for(;A>0;--A,++w){s=y.charCodeAt(w)^v.charCodeAt(w);if(z>=10){u+=x;x="";z=0}x+=String.fromCharCode(s);++z}u+=x;return u};l.hexToBytes=function(t){var u="";var s=0;if(t.length&1==1){s=1;u+=String.fromCharCode(parseInt(t[0],16))}for(;s<t.length;s+=2){u+=String.fromCharCode(parseInt(t.substr(s,2),16))}return u};l.bytesToHex=function(s){return l.createBuffer(s).toHex()};l.int32ToBytes=function(s){return(String.fromCharCode(s>>24&255)+String.fromCharCode(s>>16&255)+String.fromCharCode(s>>8&255)+String.fromCharCode(s&255))};var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var r=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];l.encode64=function(v,z){var s="";var u="";var y,w,t;var x=0;while(x<v.length){y=v.charCodeAt(x++);w=v.charCodeAt(x++);t=v.charCodeAt(x++);s+=g.charAt(y>>2);s+=g.charAt(((y&3)<<4)|(w>>4));if(isNaN(w)){s+="=="}else{s+=g.charAt(((w&15)<<2)|(t>>6));s+=isNaN(t)?"=":g.charAt(t&63)}if(z&&s.length>z){u+=s.substr(0,z)+"\r\n";s=s.substr(z)}}u+=s;return u};l.decode64=function(t){t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");var s="";var y,x,w,v;var u=0;while(u<t.length){y=r[t.charCodeAt(u++)-43];x=r[t.charCodeAt(u++)-43];w=r[t.charCodeAt(u++)-43];v=r[t.charCodeAt(u++)-43];s+=String.fromCharCode((y<<2)|(x>>4));if(w!==64){s+=String.fromCharCode(((x&15)<<4)|(w>>2));if(v!==64){s+=String.fromCharCode(((w&3)<<6)|v)}}}return s};l.encodeUtf8=function(s){return unescape(encodeURIComponent(s))};l.decodeUtf8=function(s){return decodeURIComponent(escape(s))};l.deflate=function(v,t,u){t=l.decode64(v.deflate(l.encode64(t)).rval);if(u){var w=2;var s=t.charCodeAt(1);if(s&32){w=6}t=t.substring(w,t.length-4)}return t};l.inflate=function(u,s,t){var v=u.inflate(l.encode64(s)).rval;return(v===null)?null:l.decode64(v)};var i=function(s,v,u){if(!s){throw {message:"WebStorage not available."}}var t;if(u===null){t=s.removeItem(v)}else{u=l.encode64(JSON.stringify(u));t=s.setItem(v,u)}if(typeof(t)!=="undefined"&&t.rval!==true){throw t.error}};var k=function(s,u){if(!s){throw {message:"WebStorage not available."}}var t=s.getItem(u);if(s.init){if(t.rval===null){if(t.error){throw t.error}t=null}else{t=t.rval}}if(t!==null){t=JSON.parse(l.decode64(t))}return t};var p=function(t,w,s,u){var v=k(t,w);if(v===null){v={}}v[s]=u;i(t,w,v)};var h=function(t,v,s){var u=k(t,v);if(u!==null){u=(s in u)?u[s]:null}return u};var j=function(t,x,s){var v=k(t,x);if(v!==null&&s in v){delete v[s];var u=true;for(var w in v){u=false;break}if(u){v=null}i(t,x,v)}};var n=function(s,t){i(s,t,null)};var m=function(t,x,z){var v=null;if(typeof(z)==="undefined"){z=["web","flash"]}var y;var u=false;var s=null;for(var A in z){y=z[A];try{if(y==="flash"||y==="both"){if(x[0]===null){throw {message:"Flash local storage not available."}}else{v=t.apply(this,x);u=(y==="flash")}}if(y==="web"||y==="both"){x[0]=localStorage;v=t.apply(this,x);u=true}}catch(w){s=w}if(u){break}}if(!u){throw s}return v};l.setItem=function(u,w,t,v,s){m(p,arguments,s)};l.getItem=function(u,v,t,s){return m(h,arguments,s)};l.removeItem=function(u,v,t,s){m(j,arguments,s)};l.clearItems=function(t,u,s){m(n,arguments,s)};l.parseUrl=function(v){var u=/^(https?):\/\/([^:&^\/]*):?(\d*)(.*)$/g;u.lastIndex=0;var s=u.exec(v);var t=(s===null)?null:{full:v,scheme:s[1],host:s[2],port:s[3],path:s[4]};if(t){t.fullHost=t.host;if(t.port){if(t.port!==80&&t.scheme==="http"){t.fullHost+=":"+t.port}else{if(t.port!==443&&t.scheme==="https"){t.fullHost+=":"+t.port}}}else{if(t.scheme==="http"){t.port=80}else{if(t.scheme==="https"){t.port=443}}}t.full=t.scheme+"://"+t.fullHost}return t};var o=null;l.getQueryVariables=function(s){var u=function(y){var z={};var x=y.split("&");for(var w=0;w<x.length;w++){var B=x[w].indexOf("=");var v;var A;if(B>0){v=x[w].substring(0,B);A=x[w].substring(B+1)}else{v=x[w];A=null}if(!(v in z)){z[v]=[]}if(!(v in Object.prototype)&&A!==null){z[v].push(unescape(A))}}return z};var t;if(typeof(s)==="undefined"){if(o===null){if(typeof(window)==="undefined"){o={}}else{o=u(window.location.search.substring(1))}}t=o}else{t=u(s)}return t};l.parseFragment=function(u){var t=u;var s="";var x=u.indexOf("?");if(x>0){t=u.substring(0,x);s=u.substring(x+1)}var w=t.split("/");if(w.length>0&&w[0]===""){w.shift()}var v=(s==="")?{}:l.getQueryVariables(s);return{pathString:t,queryString:s,path:w,query:v}};l.makeRequest=function(t){var u=l.parseFragment(t);var s={path:u.pathString,query:u.queryString,getPath:function(v){return(typeof(v)==="undefined")?u.path:u.path[v]},getQuery:function(v,w){var x;if(typeof(v)==="undefined"){x=u.query}else{x=u.query[v];if(x&&typeof(w)!=="undefined"){x=x[w]}}return x},getQueryLast:function(w,v){var y;var x=s.getQuery(w);if(x){y=x[x.length-1]}else{y=v}return y}};return s};l.makeLink=function(v,u,t){v=jQuery.isArray(v)?v.join("/"):v;var s=jQuery.param(u||{});t=t||"";return v+((s.length>0)?("?"+s):"")+((t.length>0)?("#"+t):"")};l.setPath=function(u,x,y){if(typeof(u)==="object"&&u!==null){var v=0;var t=x.length;while(v<t){var w=x[v++];if(v==t){u[w]=y}else{var s=(w in u);if(!s||(s&&typeof(u[w])!=="object")||(s&&u[w]===null)){u[w]={}}u=u[w]}}}};l.getPath=function(v,y,u){var w=0;var t=y.length;var s=true;while(s&&w<t&&typeof(v)==="object"&&v!==null){var x=y[w++];s=x in v;if(s){v=v[x]}}return(s?v:u)};l.deletePath=function(t,w){if(typeof(t)==="object"&&t!==null){var u=0;var s=w.length;while(u<s){var v=w[u++];if(u==s){delete t[v]}else{if(!(v in t)||(typeof(t[v])!=="object")||(t[v]===null)){break}t=t[v]}}}};l.isEmpty=function(s){for(var t in s){if(s.hasOwnProperty(t)){return false}}return true};l.format=function(z){var v=/%./g;var u;var t;var s=0;var y=[];var x=0;while((u=v.exec(z))){t=z.substring(x,v.lastIndex-2);if(t.length>0){y.push(t)}x=v.lastIndex;var w=u[0][1];switch(w){case"s":case"o":if(s<arguments.length){y.push(arguments[s+++1])}else{y.push("<?>")}break;case"%":y.push("%");break;default:y.push("<%"+w+"?>")}}y.push(z.substring(x));return y.join("")};l.formatNumber=function(x,v,C,w){var u=x,B=isNaN(v=Math.abs(v))?2:v;var A=C===undefined?",":C;var D=w===undefined?".":w,E=u<0?"-":"";var z=parseInt((u=Math.abs(+u||0).toFixed(B)),10)+"";var y=(z.length>3)?z.length%3:0;return E+(y?z.substr(0,y)+D:"")+z.substr(y).replace(/(\d{3})(?=\d)/g,"$1"+D)+(B?A+Math.abs(u-z).toFixed(B).slice(2):"")};l.formatSize=function(s){if(s>=1073741824){s=l.formatNumber(s/1073741824,2,".","")+" GiB"}else{if(s>=1048576){s=l.formatNumber(s/1048576,2,".","")+" MiB"}else{if(s>=1024){s=l.formatNumber(s/1024,0)+" KiB"}else{s=l.formatNumber(s,0)+" bytes"}}}return s};l.bytesFromIP=function(s){if(s.indexOf(".")!==-1){return l.bytesFromIPv4(s)}if(s.indexOf(":")!==-1){return l.bytesFromIPv6(s)}return null};l.bytesFromIPv4=function(v){v=v.split(".");if(v.length!==4){return null}var s=l.createBuffer();for(var u=0;u<v.length;++u){var t=parseInt(v[u],10);if(isNaN(t)){return null}s.putByte(t)}return s.getBytes()};l.bytesFromIPv6=function(x){var w=0;x=x.split(":").filter(function(y){if(y.length===0){++w}return true});var u=(8-x.length+w)*2;var s=l.createBuffer();for(var v=0;v<8;++v){if(!x[v]||x[v].length===0){s.fillWithByte(0,u);u=0;continue}var t=l.hexToBytes(x[v]);if(t.length<2){s.putByte(0)}s.putBytes(t)}return s.getBytes()};l.bytesToIP=function(s){if(s.length===4){return l.bytesToIPv4(s)}if(s.length===16){return l.bytesToIPv6(s)}return null};l.bytesToIPv4=function(s){if(s.length!==4){return null}var u=[];for(var t=0;t<s.length;++t){u.push(s.charCodeAt(t))}return u.join(".")};l.bytesToIPv6=function(A){if(A.length!==16){return null}var u=[];var z=[];var v=0;for(var t=0;t<A.length;t+=2){var s=l.bytesToHex(A[t]+A[t+1]);while(s[0]==="0"&&s!=="0"){s=s.substr(1)}if(s==="0"){var y=z[z.length-1];var w=u.length;if(!y||w!==y.end+1){z.push({start:w,end:w})}else{y.end=w;if((y.end-y.start)>(z[v].end-z[v].start)){v=z.length-1}}}u.push(s)}if(z.length>0){var x=z[v];if(x.end-x.start>0){u.splice(x.start,x.end-x.start+1,"");if(x.start===0){u.unshift("")}if(x.end===7){u.push("")}}}return u.join(":")}/*}var b="util";if(typeof define!=="function"){if(typeof module==="object"&&module.exports){var d=true;define=function(h,g){g(require,module)}}else{if(typeof forge==="undefined"){forge={}}return c(forge)}}var f;var a=function(g,h){h.exports=function(k){var l=f.map(function(i){return g(i)}).concat(c);k=k||{};k.defined=k.defined||{};if(k.defined[b]){return k[b]}k.defined[b]=true;for(var j=0;j<l.length;++j){l[j](k)}return k[b]}};var e=define;define=function(h,g){f=(typeof h==="string")?g.slice(2):h.slice(2);if(d){delete define;return e.apply(null,Array.prototype.slice.call(arguments,0))}define=e;return define.apply(null,Array.prototype.slice.call(arguments,0))};define(["require","module"],function(){a.apply(null,Array.prototype.slice.call(arguments,0))})*/})();
//sha1.js (forge)
/**
* Secure Hash Algorithm with 160-bit digest (SHA-1) implementation.
*
* This implementation is currently limited to message lengths (in bytes) that
* are up to 32-bits in size.
*
* @author Dave Longley
*
* Copyright (c) 2010-2012 Digital Bazaar, Inc.
*/
(function(){var e=forge.sha1=forge.sha1||{};forge.md=forge.md||{};forge.md.algorithms=forge.md.algorithms||{};forge.md.sha1=forge.md.algorithms.sha1=e;var c=null;var b=false;var d=function(){c=String.fromCharCode(128);c+=forge.util.fillString(String.fromCharCode(0),64);b=true};var a=function(r,p,u){var q,o,n,m,l,k,j,g;var h=u.length();while(h>=64){o=r.h0;n=r.h1;m=r.h2;l=r.h3;k=r.h4;for(g=0;g<16;++g){q=u.getInt32();p[g]=q;j=l^(n&(m^l));q=((o<<5)|(o>>>27))+j+k+1518500249+q;k=l;l=m;m=(n<<30)|(n>>>2);n=o;o=q}for(;g<20;++g){q=(p[g-3]^p[g-8]^p[g-14]^p[g-16]);q=(q<<1)|(q>>>31);p[g]=q;j=l^(n&(m^l));q=((o<<5)|(o>>>27))+j+k+1518500249+q;k=l;l=m;m=(n<<30)|(n>>>2);n=o;o=q}for(;g<32;++g){q=(p[g-3]^p[g-8]^p[g-14]^p[g-16]);q=(q<<1)|(q>>>31);p[g]=q;j=n^m^l;q=((o<<5)|(o>>>27))+j+k+1859775393+q;k=l;l=m;m=(n<<30)|(n>>>2);n=o;o=q}for(;g<40;++g){q=(p[g-6]^p[g-16]^p[g-28]^p[g-32]);q=(q<<2)|(q>>>30);p[g]=q;j=n^m^l;q=((o<<5)|(o>>>27))+j+k+1859775393+q;k=l;l=m;m=(n<<30)|(n>>>2);n=o;o=q}for(;g<60;++g){q=(p[g-6]^p[g-16]^p[g-28]^p[g-32]);q=(q<<2)|(q>>>30);p[g]=q;j=(n&m)|(l&(n^m));q=((o<<5)|(o>>>27))+j+k+2400959708+q;k=l;l=m;m=(n<<30)|(n>>>2);n=o;o=q}for(;g<80;++g){q=(p[g-6]^p[g-16]^p[g-28]^p[g-32]);q=(q<<2)|(q>>>30);p[g]=q;j=n^m^l;q=((o<<5)|(o>>>27))+j+k+3395469782+q;k=l;l=m;m=(n<<30)|(n>>>2);n=o;o=q}r.h0+=o;r.h1+=n;r.h2+=m;r.h3+=l;r.h4+=k;h-=64}};e.create=function(){if(!b){d()}var f=null;var i=forge.util.createBuffer();var g=new Array(80);var h={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0};h.start=function(){h.messageLength=0;i=forge.util.createBuffer();f={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520};return h};h.start();h.update=function(k,j){if(j==="utf8"){k=forge.util.encodeUtf8(k)}h.messageLength+=k.length;i.putBytes(k);a(f,g,i);if(i.read>2048||i.length()===0){i.compact()};return h};h.digest=function(){var j=h.messageLength;var m=forge.util.createBuffer();m.putBytes(i.bytes());m.putBytes(c.substr(0,64-((j+8)%64)));m.putInt32((j>>>29)&255);m.putInt32((j<<3)&4294967295);var k={h0:f.h0,h1:f.h1,h2:f.h2,h3:f.h3,h4:f.h4};a(k,g,m);var l=forge.util.createBuffer();l.putInt32(k.h0);l.putInt32(k.h1);l.putInt32(k.h2);l.putInt32(k.h3);l.putInt32(k.h4);return l};h.digest2=function(){var j=h.messageLength;var o=forge.util.createBuffer();var k=forge.util.createBuffer(i.data.slice(i.read));var m=g.slice(0);o.putBytes(i.bytes());o.putBytes(c.substr(0,64-((j+8)%64)));o.putInt32((j>>>29)&255);o.putInt32((j<<3)&4294967295);var l={h0:f.h0,h1:f.h1,h2:f.h2,h3:f.h3,h4:f.h4};a(l,g,o);var n=forge.util.createBuffer();n.putInt32(l.h0);n.putInt32(l.h1);n.putInt32(l.h2);n.putInt32(l.h3);n.putInt32(l.h4);i=k;g=m;return n};return h};e.createhash=function(){var g=e.create();var f=g.update;g.update=function(h){return f(h.toString("binary"))};g.digest=function(){return g.digest2().toHex()};return g}})();
//hmac.js (forge)
/**
* Hash-based Message Authentication Code implementation. Requires a message
* digest object that can be obtained, for example, from forge.md.sha1 or
* forge.md.md5.
*
* @author Dave Longley
*
* Copyright (c) 2010-2012 Digital Bazaar, Inc. All rights reserved.
*/
(function(){var a=forge;a.hmac={};/*if(typeof(window)!=="undefined"){var a=window.forge=window.forge||{};a.hmac={}}else{if(typeof(module)!=="undefined"&&module.exports){var a={md:require("./md"),util:require("./util")};module.exports=a.hmac={}}}*/;var b=a.hmac;b.create=function(){var g=null;var e=null;var f=null;var c=null;var d={};d.start=function(m,k){if(m!==null){if(m.constructor==String){m=m.toLowerCase();if(m in a.md.algorithms){e=a.md.algorithms[m].create()}else{throw'Unknown hash algorithm "'+m+'"'}}else{e=m}}if(k===null){k=g}else{if(k.constructor==String){k=a.util.createBuffer(k)}else{if(k.constructor==Array){var j=k;k=a.util.createBuffer();for(var h=0;h<j.length;++h){k.putByte(j[h])}}}var l=k.length();if(l>e.blockLength){e.start();e.update(k.bytes());k=e.digest()}f=a.util.createBuffer();c=a.util.createBuffer();l=k.length();for(var h=0;h<l;++h){var j=k.at(h);f.putByte(54^j);c.putByte(92^j)}if(l<e.blockLength){var j=e.blockLength-l;for(var h=0;h<j;++h){f.putByte(54);c.putByte(92)}}g=k;f=f.bytes();c=c.bytes()}e.start();e.update(f)};d.update=function(h){e.update(h)};d.getMac=function(){var h=e.digest().bytes();e.start();e.update(c);e.update(h);return e.digest()};d.digest=d.getMac;return d}})();
//aes.js (forge)
(function(){var j=false;var h=4;var f;var b;var d;var k;var g;var e=function(){j=true;d=[0,1,2,4,8,16,32,64,128,27,54];var x=new Array(256);for(var p=0;p<128;++p){x[p]=p<<1;x[p+128]=(p+128)<<1^283}f=new Array(256);b=new Array(256);k=new Array(4);g=new Array(4);for(var p=0;p<4;++p){k[p]=new Array(256);g[p]=new Array(256)}var s=0,o=0,v,t,q,w,l,u,r;for(var p=0;p<256;++p){w=o^(o<<1)^(o<<2)^(o<<3)^(o<<4);w=(w>>8)^(w&255)^99;f[s]=w;b[w]=s;l=x[w];v=x[s];t=x[v];q=x[t];u=(l<<24)^(w<<16)^(w<<8)^(w^l);r=(v^t^q)<<24^(s^q)<<16^(s^t^q)<<8^(s^v^q);for(var m=0;m<4;++m){k[m][s]=u;g[m][w]=r;u=u<<24|u>>>8;r=r<<24|r>>>8}if(s===0){s=o=1}else{s=v^x[x[x[v^q]]];o^=x[x[o]]}}};var a=function(z,o){var x=z.slice(0);var B,m=1;var r=x.length;var p=r+6+1;var s=h*p;for(var u=r;u<s;++u){B=x[u-1];if(u%r===0){B=f[B>>>16&255]<<24^f[B>>>8&255]<<16^f[B&255]<<8^f[B>>>24]^(d[m]<<24);m++}else{if(r>6&&(u%r===4)){B=f[B>>>24]<<24^f[B>>>16&255]<<16^f[B>>>8&255]<<8^f[B&255]}}x[u]=x[u-r]^B}if(o){var t;var D=g[0];var C=g[1];var A=g[2];var y=g[3];var v=x.slice(0);var s=x.length;for(var u=0,l=s-h;u<s;u+=h,l-=h){if(u===0||u===(s-h)){v[u]=x[l];v[u+1]=x[l+3];v[u+2]=x[l+2];v[u+3]=x[l+1]}else{for(var q=0;q<h;++q){t=x[l+q];v[u+(3&-q)]=D[f[t>>>24]]^C[f[t>>>16&255]]^A[f[t>>>8&255]]^y[f[t&255]]}}}x=v}return x};var c=function(u,v,t,o){var q=u.length/4-1;var p,n,m,l,s;if(o){p=g[0];n=g[1];m=g[2];l=g[3];s=b}else{p=k[0];n=k[1];m=k[2];l=k[3];s=f}var D,C,A,z,E,r,x;D=v[0]^u[0];C=v[o?3:1]^u[1];A=v[2]^u[2];z=v[o?1:3]^u[3];var y=3;for(var B=1;B<q;++B){E=p[D>>>24]^n[C>>>16&255]^m[A>>>8&255]^l[z&255]^u[++y];r=p[C>>>24]^n[A>>>16&255]^m[z>>>8&255]^l[D&255]^u[++y];x=p[A>>>24]^n[z>>>16&255]^m[D>>>8&255]^l[C&255]^u[++y];z=p[z>>>24]^n[D>>>16&255]^m[C>>>8&255]^l[A&255]^u[++y];D=E;C=r;A=x}t[0]=(s[D>>>24]<<24)^(s[C>>>16&255]<<16)^(s[A>>>8&255]<<8)^(s[z&255])^u[++y];t[o?3:1]=(s[C>>>24]<<24)^(s[A>>>16&255]<<16)^(s[z>>>8&255]<<8)^(s[D&255])^u[++y];t[2]=(s[A>>>24]<<24)^(s[z>>>16&255]<<16)^(s[D>>>8&255]<<8)^(s[C&255])^u[++y];t[o?1:3]=(s[z>>>24]<<24)^(s[D>>>16&255]<<16)^(s[C>>>8&255]<<8)^(s[A&255])^u[++y]};var i=function(H,r,u,o,v){var m=null;if(!j){e()}v=(v||"CBC").toUpperCase();if(typeof H==="string"&&(H.length===16||H.length===24||H.length===32)){H=forge.util.createBuffer(H)}else{if(forge.util.isArray(H)&&(H.length===16||H.length===24||H.length===32)){var B=H;var H=forge.util.createBuffer();for(var x=0;x<B.length;++x){H.putByte(B[x])}}}if(!forge.util.isArray(H)){var B=H;H=[];var z=B.length();if(z===16||z===24||z===32){z=z>>>2;for(var x=0;x<z;++x){H.push(B.getInt32())}}}if(!forge.util.isArray(H)||!(H.length===4||H.length===6||H.length===8)){return m}var I=(["CFB","OFB","CTR"].indexOf(v)!==-1);var p=(v==="CBC");var A=a(H,o&&!I);var w=h<<2;var n;var y;var s;var D;var q;var l;var F;m={output:null};if(v==="CBC"){F=E}else{if(v==="CFB"){F=G}else{if(v==="OFB"){F=t}else{if(v==="CTR"){F=C}else{throw {message:'Unsupported block cipher mode of operation: "'+v+'"'}}}}}m.update=function(J){if(!l){n.putBuffer(J)}while(n.length()>=w||(n.length()>0&&l)){F()}};m.update2=function(J){if(J){if(J.length()){n.data=n.data.substr(n.read);n.read=0;n.putBuffer(J)}}while(n.length()>=w){F()}if(m.overflow){y.getBytes(m.overflow)}var M=n.length()%w;if(M){var K=forge.util.createBuffer(n.data.slice(n.read));var L=s.slice(0);while(n.length()>0){F()}n=K;s=L;y.truncate(w-M)} else /*modif Aym */{n.data='';n.read=0};m.overflow=M};m.finish=function(N){var M=true;var O=n.length()%w;if(!o){if(N){M=N(w,n,o)}else{if(p){var L=(n.length()===w)?w:(w-n.length());n.fillWithByte(L,L)}}}if(M){l=true;m.update()}if(o){if(p){M=(O===0)}if(M){if(N){M=N(w,y,o)}else{if(p){var J=y.length();var K=y.at(J-1);if(K>(h<<2)){M=false}else{y.truncate(K)}}}}}if(!p&&!N&&O>0){y.truncate(w-O)}return M};m.start=function(K,J){if(K===null){K=q.slice(0)}if(typeof K==="string"&&K.length===16){K=forge.util.createBuffer(K)}else{if(forge.util.isArray(K)&&K.length===16){var M=K;var K=forge.util.createBuffer();for(var L=0;L<16;++L){K.putByte(M[L])}}}if(!forge.util.isArray(K)){var M=K;K=new Array(4);K[0]=M.getInt32();K[1]=M.getInt32();K[2]=M.getInt32();K[3]=M.getInt32()}n=forge.util.createBuffer();y=J||forge.util.createBuffer();q=K.slice(0);s=new Array(h);D=new Array(h);l=false;m.output=y;if(["CFB","OFB","CTR"].indexOf(v)!==-1){for(var L=0;L<h;++L){s[L]=q[L]}q=null}};if(r!==null){m.start(r,u)}return m;function E(){if(o){for(var J=0;J<h;++J){s[J]=n.getInt32()}}else{for(var J=0;J<h;++J){s[J]=q[J]^n.getInt32()}}c(A,s,D,o);if(o){for(var J=0;J<h;++J){y.putInt32(q[J]^D[J])}q=s.slice(0)}else{for(var J=0;J<h;++J){y.putInt32(D[J])}q=D}}function G(){c(A,s,D,false);for(var K=0;K<h;++K){s[K]=n.getInt32()}for(var K=0;K<h;++K){var J=s[K]^D[K];if(!o){s[K]=J}y.putInt32(J)}}function t(){c(A,s,D,false);for(var J=0;J<h;++J){s[J]=n.getInt32()}for(var J=0;J<h;++J){y.putInt32(s[J]^D[J]);s[J]=D[J]}}function C(){c(A,s,D,false);for(var J=h-1;J>=0;--J){if(s[J]===4294967295){s[J]=0}else{++s[J];break}}for(var J=0;J<h;++J){y.putInt32(n.getInt32()^D[J])}}};forge.aes=forge.aes||{};forge.aes.startEncrypting=function(n,m,l,o){return i(n,m,l,false,o)};forge.aes.createEncryptionCipher=function(l,m){return i(l,null,null,false,m)};forge.aes.startDecrypting=function(n,m,l,o){return i(n,m,l,true,o)};forge.aes.createDecryptionCipher=function(l,m){return i(l,null,null,true,m)};forge.aes._expandKey=function(m,l){if(!j){e()}return a(m,l)};forge.aes._updateBlock=c;forge.aes.createcipheriv=function(r,o,n){var q=r.split("-")[2];var m=forge.util.createBuffer();o=forge.util.createBuffer(o.toString("binary"));n=forge.util.createBuffer(n.toString("binary"));var l=forge.aes.startEncrypting(o,n,m,q);var p=l.update2;l.update=function(t){var s;if(t){t=forge.util.createBuffer(t.toString("binary"))}else{t=forge.util.createBuffer()}p(t);s=m.toHex();m.data="";m.read=0;return s};return l}})();
//asn1.js (forge)
/**
* Javascript implementation of Abstract Syntax Notation Number One.
*
* @author Dave Longley
*
* Copyright (c) 2010-2012 Digital Bazaar, Inc.
*
**/
(function(){var b=forge;b.asn1={};/*if(typeof(window)!=="undefined"){var b=window.forge=window.forge||{};b.asn1={}}else{if(typeof(module)!=="undefined"&&module.exports){var b={util:require("./util"),pki:{oids:require("./oids")}};module.exports=b.asn1={}}}*/;var a=b.asn1;a.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192};a.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30};a.create=function(h,e,g,f){return{tagClass:h,type:e,constructed:g,composed:g||(f.constructor==Array),value:f}};var c=function(e){var f=e.getByte();if(f==128){return undefined}var h;var g=f&128;if(!g){h=f}else{h=e.getInt((f&127)<<3)}return h};a.fromDer=function(t){if(t.constructor==String){t=b.util.createBuffer(t)}if(t.length()<2){throw {message:"Too few bytes to parse DER.",bytes:t.length()}}var r=t.getByte();var m=(r&192);var q=r&31;var g=c(t);if(t.length()<g){throw {message:"Too few bytes to read ASN.1 value.",detail:t.length()+" < "+g}}var s;var k=((r&32)==32);var p=k;if(!p&&m===a.Class.UNIVERSAL&&q===a.Type.BITSTRING&&g>1){var f=t.read;var h=t.getByte();if(h===0){r=t.getByte();var j=(r&192);if(j===a.Class.UNIVERSAL||j===a.Class.CONTEXT_SPECIFIC){try{var n=c(t);p=(n===g-(t.read-f));if(p){++f;--g}}catch(o){}}}t.read=f}if(p){s=[];if(g===undefined){for(;;){if(t.bytes(2)===String.fromCharCode(0,0)){t.getBytes(2);break}s.push(a.fromDer(t))}}else{var e=t.length();while(g>0){s.push(a.fromDer(t));g-=e-t.length();e=t.length()}}}else{if(g===undefined){throw {message:"Non-constructed ASN.1 object of indefinite length."}}if(q===a.Type.BMPSTRING){s="";for(var l=0;l<g;l+=2){s+=String.fromCharCode(t.getInt16())}}else{s=t.getBytes(g)}};return a.create(m,q,k,s)};a.toDer=function(l){var g=b.util.createBuffer();var h=l.tagClass|l.type;var k=b.util.createBuffer();if(l.composed){if(l.constructed){h|=32}else{k.putByte(0)}for(var j=0;j<l.value.length;++j){if(l.value[j]!==undefined){k.putBuffer(a.toDer(l.value[j]))}}}else{k.putBytes(l.value)}g.putByte(h);if(k.length()<=127){g.putByte(k.length()&127)}else{var f=k.length();var e="";do{e+=String.fromCharCode(f&255);f=f>>>8}while(f>0);g.putByte(e.length|128);for(var j=e.length-1;j>=0;--j){g.putByte(e.charCodeAt(j))}}g.putBuffer(k);return g};a.oidToDer=function(g){var m=g.split(".");var o=b.util.createBuffer();o.putByte(40*parseInt(m[0],10)+parseInt(m[1],10));var l,e,k,j;for(var h=2;h<m.length;++h){l=true;e=[];k=parseInt(m[h],10);do{j=k&127;k=k>>>7;if(!l){j|=128}e.push(j);l=false}while(k>0);for(var f=e.length-1;f>=0;--f){o.putByte(e[f])}}return o};a.derToOid=function(f){var g;if(f.constructor==String){f=b.util.createBuffer(f)}var e=f.getByte();g=Math.floor(e/40)+"."+(e%40);var h=0;while(f.length()>0){e=f.getByte();h=h<<7;if(e&128){h+=e&127}else{g+="."+(h+e);h=0}}return g};a.utcTimeToDate=function(o){var g=new Date();var n=parseInt(o.substr(0,2),10);n=(n>=50)?1900+n:2000+n;var p=parseInt(o.substr(2,2),10)-1;var l=parseInt(o.substr(4,2),10);var h=parseInt(o.substr(6,2),10);var j=parseInt(o.substr(8,2),10);var q=0;if(o.length>11){var m=o.charAt(10);var i=10;if(m!=="+"&&m!=="-"){q=parseInt(o.substr(10,2),10);i+=2}}g.setUTCFullYear(n,p,l);g.setUTCHours(h,j,q,0);if(i){m=o.charAt(i);if(m==="+"||m==="-"){var e=parseInt(o.substr(i+1,2),10);var f=parseInt(o.substr(i+4,2),10);var k=e*60+f;k*=60000;if(m==="+"){g.setTime(+g-k)}else{g.setTime(+g+k)}}}return g};a.generalizedTimeToDate=function(p){var i=new Date();var j=parseInt(p.substr(0,4),10);var r=parseInt(p.substr(4,2),10)-1;var o=parseInt(p.substr(6,2),10);var k=parseInt(p.substr(8,2),10);var m=parseInt(p.substr(10,2),10);var s=parseInt(p.substr(12,2),10);var h=0;var n=0;var g=false;if(p.charAt(p.length-1)=="Z"){g=true}var l=p.length-5,q=p.charAt(l);if(q==="+"||q==="-"){var e=parseInt(p.substr(l+1,2),10);var f=parseInt(p.substr(l+4,2),10);n=e*60+f;n*=60000;if(q==="+"){n*=-1}g=true}if(p.charAt(14)=="."){h=parseFloat(p.substr(14),10)*1000}if(g){i.setUTCFullYear(j,r,o);i.setUTCHours(k,m,s,h);i.setTime(+i+n)}else{i.setFullYear(j,r,o);i.setHours(k,m,s,h)}return i};a.dateToUtcTime=function(e){var h="";var g=[];g.push((""+e.getUTCFullYear()).substr(2));g.push(""+(e.getUTCMonth()+1));g.push(""+e.getUTCDate());g.push(""+e.getUTCHours());g.push(""+e.getUTCMinutes());g.push(""+e.getUTCSeconds());for(var f=0;f<g.length;++f){if(g[f].length<2){h+="0"}h+=g[f]}h+="Z";return h};a.validate=function(l,f,e,m){var k=false;if((l.tagClass===f.tagClass||typeof(f.tagClass)==="undefined")&&(l.type===f.type||typeof(f.type)==="undefined")){if(l.constructed===f.constructed||typeof(f.constructed)==="undefined"){k=true;if(f.value&&f.value.constructor==Array){var g=0;for(var h=0;k&&h<f.value.length;++h){k=f.value[h].optional||false;if(l.value[g]){k=a.validate(l.value[g],f.value[h],e,m);if(k){++g}else{if(f.value[h].optional){k=true}}}if(!k&&m){m.push("["+f.name+'] Tag class "'+f.tagClass+'", type "'+f.type+'" expected value length "'+f.value.length+'", got "'+l.value.length+'"')}}}if(k&&e){if(f.capture){e[f.capture]=l.value}if(f.captureAsn1){e[f.captureAsn1]=l}}}else{if(m){m.push("["+f.name+'] Expected constructed "'+f.constructed+'", got "'+l.constructed+'"')}}}else{if(m){if(l.tagClass!==f.tagClass){m.push("["+f.name+'] Expected tag class "'+f.tagClass+'", got "'+l.tagClass+'"')}if(l.type!==f.type){m.push("["+f.name+'] Expected type "'+f.type+'", got "'+l.type+'"')}}}return k};var d=/[^\\u0000-\\u00ff]/;a.prettyPrint=function(k,l,f){var j="";l=l||0;f=f||2;if(l>0){j+="\n"}var e="";for(var g=0;g<l*f;++g){e+=" "}j+=e+"Tag: ";switch(k.tagClass){case a.Class.UNIVERSAL:j+="Universal:";break;case a.Class.APPLICATION:j+="Application:";break;case a.Class.CONTEXT_SPECIFIC:j+="Context-Specific:";break;case a.Class.PRIVATE:j+="Private:";break}if(k.tagClass===a.Class.UNIVERSAL){j+=k.type;switch(k.type){case a.Type.NONE:j+=" (None)";break;case a.Type.BOOLEAN:j+=" (Boolean)";break;case a.Type.BITSTRING:j+=" (Bit string)";break;case a.Type.INTEGER:j+=" (Integer)";break;case a.Type.OCTETSTRING:j+=" (Octet string)";break;case a.Type.NULL:j+=" (Null)";break;case a.Type.OID:j+=" (Object Identifier)";break;case a.Type.ODESC:j+=" (Object Descriptor)";break;case a.Type.EXTERNAL:j+=" (External or Instance of)";break;case a.Type.REAL:j+=" (Real)";break;case a.Type.ENUMERATED:j+=" (Enumerated)";break;case a.Type.EMBEDDED:j+=" (Embedded PDV)";break;case a.Type.UTF8:j+=" (UTF8)";break;case a.Type.ROID:j+=" (Relative Object Identifier)";break;case a.Type.SEQUENCE:j+=" (Sequence)";break;case a.Type.SET:j+=" (Set)";break;case a.Type.PRINTABLESTRING:j+=" (Printable String)";break;case a.Type.IA5String:j+=" (IA5String (ASCII))";break;case a.Type.UTCTIME:j+=" (UTC time)";break;case a.Type.GENERALIZEDTIME:j+=" (Generalized time)";break;case a.Type.BMPSTRING:j+=" (BMP String)";break}}else{j+=k.type}j+="\n";j+=e+"Constructed: "+k.constructed+"\n";if(k.composed){j+=e+"Sub values: "+k.value.length;for(var g=0;g<k.value.length;++g){j+=a.prettyPrint(k.value[g],l+1,f);if((g+1)<k.value.length){j+=","}}}else{j+=e+"Value: ";if(k.type===a.Type.OID){var h=a.derToOid(k.value);j+=h;if(b.pki&&b.pki.oids){if(h in b.pki.oids){j+=" ("+b.pki.oids[h]+")"}}}else{if(d.test(k.value)){j+="0x"+b.util.createBuffer(k.value,"utf8").toHex()}else{if(k.value.length===0){j+="[null]"}else{j+=k.value}}}}return j}})();
/*
jsbn.js (forge and RSA)
Tom Wu BSD License
http://www-cs-students.stanford.edu/~tjw/jsbn/
*/
var dbits;var canary=244837814094590;var j_lm=((canary&16777215)==15715070);function BigInteger(e,d,f){if(e!=null){if("number"==typeof e){this.fromNumber(e,d,f)}else{if(d==null&&"string"!=typeof e){this.fromString(e,256)}else{this.fromString(e,d)}}}}function nbi(){return new BigInteger(null)}function am1(f,a,b,e,h,g){while(--g>=0){var d=a*this[f++]+b[e]+h;h=Math.floor(d/67108864);b[e++]=d&67108863}return h}function am2(f,q,r,e,o,a){var k=q&32767,p=q>>15;while(--a>=0){var d=this[f]&32767;var g=this[f++]>>15;var b=p*d+g*k;d=k*d+((b&32767)<<15)+r[e]+(o&1073741823);o=(d>>>30)+(b>>>15)+p*g+(o>>>30);r[e++]=d&1073741823}return o}function am3(f,q,r,e,o,a){var k=q&16383,p=q>>14;while(--a>=0){var d=this[f]&16383;var g=this[f++]>>14;var b=p*d+g*k;d=k*d+((b&16383)<<14)+r[e]+o;o=(d>>28)+(b>>14)+p*g;r[e++]=d&268435455}return o}if(typeof(navigator)==="undefined"){BigInteger.prototype.am=am3;dbits=28}else{if(j_lm&&(navigator.appName=="Microsoft Internet Explorer")){BigInteger.prototype.am=am2;dbits=30}else{if(j_lm&&(navigator.appName!="Netscape")){BigInteger.prototype.am=am1;dbits=26}else{BigInteger.prototype.am=am3;dbits=28}}}BigInteger.prototype.DB=dbits;BigInteger.prototype.DM=((1<<dbits)-1);BigInteger.prototype.DV=(1<<dbits);var BI_FP=52;BigInteger.prototype.FV=Math.pow(2,BI_FP);BigInteger.prototype.F1=BI_FP-dbits;BigInteger.prototype.F2=2*dbits-BI_FP;var BI_RM="0123456789abcdefghijklmnopqrstuvwxyz";var BI_RC=new Array();var rr,vv;rr="0".charCodeAt(0);for(vv=0;vv<=9;++vv){BI_RC[rr++]=vv}rr="a".charCodeAt(0);for(vv=10;vv<36;++vv){BI_RC[rr++]=vv}rr="A".charCodeAt(0);for(vv=10;vv<36;++vv){BI_RC[rr++]=vv}function int2char(a){return BI_RM.charAt(a)}function intAt(b,a){var d=BI_RC[b.charCodeAt(a)];return(d==null)?-1:d}function bnpCopyTo(b){for(var a=this.t-1;a>=0;--a){b[a]=this[a]}b.t=this.t;b.s=this.s}function bnpFromInt(a){this.t=1;this.s=(a<0)?-1:0;if(a>0){this[0]=a}else{if(a<-1){this[0]=a+DV}else{this.t=0}}}function nbv(a){var b=nbi();b.fromInt(a);return b}function bnpFromString(h,c){var e;if(c==16){e=4}else{if(c==8){e=3}else{if(c==256){e=8}else{if(c==2){e=1}else{if(c==32){e=5}else{if(c==4){e=2}else{this.fromRadix(h,c);return}}}}}}this.t=0;this.s=0;var g=h.length,d=false,f=0;while(--g>=0){var a=(e==8)?h[g]&255:intAt(h,g);if(a<0){if(h.charAt(g)=="-"){d=true}continue}d=false;if(f==0){this[this.t++]=a}else{if(f+e>this.DB){this[this.t-1]|=(a&((1<<(this.DB-f))-1))<<f;this[this.t++]=(a>>(this.DB-f))}else{this[this.t-1]|=a<<f}}f+=e;if(f>=this.DB){f-=this.DB}}if(e==8&&(h[0]&128)!=0){this.s=-1;if(f>0){this[this.t-1]|=((1<<(this.DB-f))-1)<<f}}this.clamp();if(d){BigInteger.ZERO.subTo(this,this)}}function bnpClamp(){var a=this.s&this.DM;while(this.t>0&&this[this.t-1]==a){--this.t}}function bnToString(c){if(this.s<0){return"-"+this.negate().toString(c)}var e;if(c==16){e=4}else{if(c==8){e=3}else{if(c==2){e=1}else{if(c==32){e=5}else{if(c==4){e=2}else{return this.toRadix(c)}}}}}var g=(1<<e)-1,l,a=false,h="",f=this.t;var j=this.DB-(f*this.DB)%e;if(f-->0){if(j<this.DB&&(l=this[f]>>j)>0){a=true;h=int2char(l)}while(f>=0){if(j<e){l=(this[f]&((1<<j)-1))<<(e-j);l|=this[--f]>>(j+=this.DB-e)}else{l=(this[f]>>(j-=e))&g;if(j<=0){j+=this.DB;--f}}if(l>0){a=true}if(a){h+=int2char(l)}}}return a?h:"0"}function bnNegate(){var a=nbi();BigInteger.ZERO.subTo(this,a);return a}function bnAbs(){return(this.s<0)?this.negate():this}function bnCompareTo(b){var d=this.s-b.s;if(d!=0){return d}var c=this.t;d=c-b.t;if(d!=0){return d}while(--c>=0){if((d=this[c]-b[c])!=0){return d}}return 0}function nbits(a){var c=1,b;if((b=a>>>16)!=0){a=b;c+=16}if((b=a>>8)!=0){a=b;c+=8}if((b=a>>4)!=0){a=b;c+=4}if((b=a>>2)!=0){a=b;c+=2}if((b=a>>1)!=0){a=b;c+=1}return c}function bnBitLength(){if(this.t<=0){return 0}return this.DB*(this.t-1)+nbits(this[this.t-1]^(this.s&this.DM))}function bnpDLShiftTo(c,b){var a;for(a=this.t-1;a>=0;--a){b[a+c]=this[a]}for(a=c-1;a>=0;--a){b[a]=0}b.t=this.t+c;b.s=this.s}function bnpDRShiftTo(c,b){for(var a=c;a<this.t;++a){b[a-c]=this[a]}b.t=Math.max(this.t-c,0);b.s=this.s}function bnpLShiftTo(j,e){var b=j%this.DB;var a=this.DB-b;var g=(1<<a)-1;var f=Math.floor(j/this.DB),h=(this.s<<b)&this.DM,d;for(d=this.t-1;d>=0;--d){e[d+f+1]=(this[d]>>a)|h;h=(this[d]&g)<<b}for(d=f-1;d>=0;--d){e[d]=0}e[f]=h;e.t=this.t+f+1;e.s=this.s;e.clamp()}function bnpRShiftTo(g,d){d.s=this.s;var e=Math.floor(g/this.DB);if(e>=this.t){d.t=0;return}var b=g%this.DB;var a=this.DB-b;var f=(1<<b)-1;d[0]=this[e]>>b;for(var c=e+1;c<this.t;++c){d[c-e-1]|=(this[c]&f)<<a;d[c-e]=this[c]>>b}if(b>0){d[this.t-e-1]|=(this.s&f)<<a}d.t=this.t-e;d.clamp()}function bnpSubTo(d,f){var e=0,g=0,b=Math.min(d.t,this.t);while(e<b){g+=this[e]-d[e];f[e++]=g&this.DM;g>>=this.DB}if(d.t<this.t){g-=d.s;while(e<this.t){g+=this[e];f[e++]=g&this.DM;g>>=this.DB}g+=this.s}else{g+=this.s;while(e<d.t){g-=d[e];f[e++]=g&this.DM;g>>=this.DB}g-=d.s}f.s=(g<0)?-1:0;if(g<-1){f[e++]=this.DV+g}else{if(g>0){f[e++]=g}}f.t=e;f.clamp()}function bnpMultiplyTo(c,e){var b=this.abs(),f=c.abs();var d=b.t;e.t=d+f.t;while(--d>=0){e[d]=0}for(d=0;d<f.t;++d){e[d+b.t]=b.am(0,f[d],e,d,0,b.t)}e.s=0;e.clamp();if(this.s!=c.s){BigInteger.ZERO.subTo(e,e)}}function bnpSquareTo(d){var a=this.abs();var b=d.t=2*a.t;while(--b>=0){d[b]=0}for(b=0;b<a.t-1;++b){var e=a.am(b,a[b],d,2*b,0,1);if((d[b+a.t]+=a.am(b+1,2*a[b],d,2*b+1,e,a.t-b-1))>=a.DV){d[b+a.t]-=a.DV;d[b+a.t+1]=1}}if(d.t>0){d[d.t-1]+=a.am(b,a[b],d,2*b,0,1)}d.s=0;d.clamp()}function bnpDivRemTo(n,h,g){var w=n.abs();if(w.t<=0){return}var k=this.abs();if(k.t<w.t){if(h!=null){h.fromInt(0)}if(g!=null){this.copyTo(g)}return}if(g==null){g=nbi()}var d=nbi(),a=this.s,l=n.s;var v=this.DB-nbits(w[w.t-1]);if(v>0){w.lShiftTo(v,d);k.lShiftTo(v,g)}else{w.copyTo(d);k.copyTo(g)}var p=d.t;var b=d[p-1];if(b==0){return}var o=b*(1<<this.F1)+((p>1)?d[p-2]>>this.F2:0);var A=this.FV/o,z=(1<<this.F1)/o,x=1<<this.F2;var u=g.t,s=u-p,f=(h==null)?nbi():h;d.dlShiftTo(s,f);if(g.compareTo(f)>=0){g[g.t++]=1;g.subTo(f,g)}BigInteger.ONE.dlShiftTo(p,f);f.subTo(d,d);while(d.t<p){d[d.t++]=0}while(--s>=0){var c=(g[--u]==b)?this.DM:Math.floor(g[u]*A+(g[u-1]+x)*z);if((g[u]+=d.am(0,c,g,s,0,p))<c){d.dlShiftTo(s,f);g.subTo(f,g);while(g[u]<--c){g.subTo(f,g)}}}if(h!=null){g.drShiftTo(p,h);if(a!=l){BigInteger.ZERO.subTo(h,h)}}g.t=p;g.clamp();if(v>0){g.rShiftTo(v,g)}if(a<0){BigInteger.ZERO.subTo(g,g)}}function bnMod(b){var c=nbi();this.abs().divRemTo(b,null,c);if(this.s<0&&c.compareTo(BigInteger.ZERO)>0){b.subTo(c,c)}return c}function Classic(a){this.m=a}function cConvert(a){if(a.s<0||a.compareTo(this.m)>=0){return a.mod(this.m)}else{return a}}function cRevert(a){return a}function cReduce(a){a.divRemTo(this.m,null,a)}function cMulTo(a,c,b){a.multiplyTo(c,b);this.reduce(b)}function cSqrTo(a,b){a.squareTo(b);this.reduce(b)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;function bnpInvDigit(){if(this.t<1){return 0}var a=this[0];if((a&1)==0){return 0}var b=a&3;b=(b*(2-(a&15)*b))&15;b=(b*(2-(a&255)*b))&255;b=(b*(2-(((a&65535)*b)&65535)))&65535;b=(b*(2-a*b%this.DV))%this.DV;return(b>0)?this.DV-b:-b}function Montgomery(a){this.m=a;this.mp=a.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<<(a.DB-15))-1;this.mt2=2*a.t}function montConvert(a){var b=nbi();a.abs().dlShiftTo(this.m.t,b);b.divRemTo(this.m,null,b);if(a.s<0&&b.compareTo(BigInteger.ZERO)>0){this.m.subTo(b,b)}return b}function montRevert(a){var b=nbi();a.copyTo(b);this.reduce(b);return b}function montReduce(a){while(a.t<=this.mt2){a[a.t++]=0}for(var c=0;c<this.m.t;++c){var b=a[c]&32767;var d=(b*this.mpl+(((b*this.mph+(a[c]>>15)*this.mpl)&this.um)<<15))&a.DM;b=c+this.m.t;a[b]+=this.m.am(0,d,a,c,0,this.m.t);while(a[b]>=a.DV){a[b]-=a.DV;a[++b]++}}a.clamp();a.drShiftTo(this.m.t,a);if(a.compareTo(this.m)>=0){a.subTo(this.m,a)}}function montSqrTo(a,b){a.squareTo(b);this.reduce(b)}function montMulTo(a,c,b){a.multiplyTo(c,b);this.reduce(b)}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return((this.t>0)?(this[0]&1):this.s)==0}function bnpExp(h,j){if(h>4294967295||h<1){return BigInteger.ONE}var f=nbi(),a=nbi(),d=j.convert(this),c=nbits(h)-1;d.copyTo(f);while(--c>=0){j.sqrTo(f,a);if((h&(1<<c))>0){j.mulTo(a,d,f)}else{var b=f;f=a;a=b}}return j.revert(f)}function bnModPowInt(b,a){var c;if(b<256||a.isEven()){c=new Classic(a)}else{c=new Montgomery(a)}return this.exp(b,c)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);
//prng4.js
function Arcfour(){this.i=0;this.j=0;this.S=new Array()}function ARC4init(d){var c,a,b;for(c=0;c<256;++c){this.S[c]=c}a=0;for(c=0;c<256;++c){a=(a+this.S[c]+d[c%d.length])&255;b=this.S[c];this.S[c]=this.S[a];this.S[a]=b}this.i=0;this.j=0}function ARC4next(){var a;this.i=(this.i+1)&255;this.j=(this.j+this.S[this.i])&255;a=this.S[this.i];this.S[this.i]=this.S[this.j];this.S[this.j]=a;return this.S[(a+this.S[this.i])&255]}Arcfour.prototype.init=ARC4init;Arcfour.prototype.next=ARC4next;function prng_newstate(){return new Arcfour()}var rng_psize=256;
//rng.js
var navigator=navigator||window.navigator;
var rng_state;var rng_pool;var rng_pptr;function rng_seed_int(a){rng_pool[rng_pptr++]^=a&255;rng_pool[rng_pptr++]^=(a>>8)&255;rng_pool[rng_pptr++]^=(a>>16)&255;rng_pool[rng_pptr++]^=(a>>24)&255;if(rng_pptr>=rng_psize){rng_pptr-=rng_psize}}function rng_seed_time(){rng_seed_int(new Date().getTime())}if(rng_pool==null){rng_pool=new Array();rng_pptr=0;var t;if(navigator.appName=="Netscape"&&navigator.appVersion<"5"&&window.crypto){var z=window.crypto.random(32);for(t=0;t<z.length;++t){rng_pool[rng_pptr++]=z.charCodeAt(t)&255}}while(rng_pptr<rng_psize){t=Math.floor(65536*Math.random());rng_pool[rng_pptr++]=t>>>8;rng_pool[rng_pptr++]=t&255}rng_pptr=0;rng_seed_time()}function rng_get_byte(){if(rng_state==null){rng_seed_time();rng_state=prng_newstate();rng_state.init(rng_pool);for(rng_pptr=0;rng_pptr<rng_pool.length;++rng_pptr){rng_pool[rng_pptr]=0}rng_pptr=0}return rng_state.next()}function rng_get_bytes(b){var a;for(a=0;a<b.length;++a){b[a]=rng_get_byte()}}function SecureRandom(){}SecureRandom.prototype.nextBytes=rng_get_bytes;
//rsa.js
function parseBigInt(b,a){return new BigInteger(b,a)}function linebrk(c,d){var a="";var b=0;while(b+d<c.length){a+=c.substring(b,b+d)+"\n";b+=d}return a+c.substring(b,c.length)}function byte2Hex(a){if(a<16){return"0"+a.toString(16)}else{return a.toString(16)}}function pkcs1pad2(f,h){if(h<f.length+11){alert("Message too long for RSA");return null}var g=new Array();var d=f.length-1;while(d>=1&&h>0){var c=f[d--];var e=f[d--];g[--h]=(intAt(e,0)<<4)+intAt(c,0)}g[--h]=0;var b=new SecureRandom();var a=new Array();while(h>2){a[0]=0;while(a[0]==0){b.nextBytes(a)}g[--h]=a[0]}g[--h]=2;g[--h]=0;return new BigInteger(g)}function RSAKey(){this.n=null;this.e=0;this.d=null;this.p=null;this.q=null;this.dmp1=null;this.dmq1=null;this.coeff=null}function RSASetPublic(b,a){if(b!=null&&a!=null&&b.length>0&&a.length>0){this.n=parseBigInt(b,16);this.e=parseInt(a,16)}else{alert("Invalid RSA public key")}}function RSADoPublic(a){return a.modPowInt(this.e,this.n)}function RSAEncrypt(d){var a=pkcs1pad2(d,(this.n.bitLength()+7)>>3);if(a==null){return null}var e=this.doPublic(a);if(e==null){return null}var b=e.toString(16);if((b.length&1)==0){return b}else{return"0"+b}}RSAKey.prototype.doPublic=RSADoPublic;RSAKey.prototype.setPublic=RSASetPublic;RSAKey.prototype.encrypt=RSAEncrypt;
//jsbn2.js (used for forge only)
function bnClone(){var a=nbi();this.copyTo(a);return a}function bnIntValue(){if(this.s<0){if(this.t==1){return this[0]-this.DV}else{if(this.t==0){return -1}}}else{if(this.t==1){return this[0]}else{if(this.t==0){return 0}}}return((this[1]&((1<<(32-this.DB))-1))<<this.DB)|this[0]}function bnByteValue(){return(this.t==0)?this.s:(this[0]<<24)>>24}function bnShortValue(){return(this.t==0)?this.s:(this[0]<<16)>>16}function bnpChunkSize(a){return Math.floor(Math.LN2*this.DB/Math.log(a))}function bnSigNum(){if(this.s<0){return -1}else{if(this.t<=0||(this.t==1&&this[0]<=0)){return 0}else{return 1}}}function bnpToRadix(c){if(c==null){c=10}if(this.signum()==0||c<2||c>36){return"0"}var f=this.chunkSize(c);var e=Math.pow(c,f);var i=nbv(e),j=nbi(),h=nbi(),g="";this.divRemTo(i,j,h);while(j.signum()>0){g=(e+h.intValue()).toString(c).substr(1)+g;j.divRemTo(i,j,h)}return h.intValue().toString(c)+g}function bnpFromRadix(m,h){this.fromInt(0);if(h==null){h=10}var f=this.chunkSize(h);var g=Math.pow(h,f),e=false,a=0,l=0;for(var c=0;c<m.length;++c){var k=intAt(m,c);if(k<0){if(m.charAt(c)=="-"&&this.signum()==0){e=true}continue}l=h*l+k;if(++a>=f){this.dMultiply(g);this.dAddOffset(l,0);a=0;l=0}}if(a>0){this.dMultiply(Math.pow(h,a));this.dAddOffset(l,0)}if(e){BigInteger.ZERO.subTo(this,this)}}function bnpFromNumber(f,e,h){if("number"==typeof e){if(f<2){this.fromInt(1)}else{this.fromNumber(f,h);if(!this.testBit(f-1)){this.bitwiseTo(BigInteger.ONE.shiftLeft(f-1),op_or,this)}if(this.isEven()){this.dAddOffset(1,0)}while(!this.isProbablePrime(e)){this.dAddOffset(2,0);if(this.bitLength()>f){this.subTo(BigInteger.ONE.shiftLeft(f-1),this)}}}}else{var d=new Array(),g=f&7;d.length=(f>>3)+1;e.nextBytes(d);if(g>0){d[0]&=((1<<g)-1)}else{d[0]=0}this.fromString(d,256)}}function bnToByteArray(){var b=this.t,c=new Array();c[0]=this.s;var e=this.DB-(b*this.DB)%8,f,a=0;if(b-->0){if(e<this.DB&&(f=this[b]>>e)!=(this.s&this.DM)>>e){c[a++]=f|(this.s<<(this.DB-e))}while(b>=0){if(e<8){f=(this[b]&((1<<e)-1))<<(8-e);f|=this[--b]>>(e+=this.DB-8)}else{f=(this[b]>>(e-=8))&255;if(e<=0){e+=this.DB;--b}}if((f&128)!=0){f|=-256}if(a==0&&(this.s&128)!=(f&128)){++a}if(a>0||f!=this.s){c[a++]=f}}}return c}function bnEquals(b){return(this.compareTo(b)==0)}function bnMin(b){return(this.compareTo(b)<0)?this:b}function bnMax(b){return(this.compareTo(b)>0)?this:b}function bnpBitwiseTo(c,h,e){var d,g,b=Math.min(c.t,this.t);for(d=0;d<b;++d){e[d]=h(this[d],c[d])}if(c.t<this.t){g=c.s&this.DM;for(d=b;d<this.t;++d){e[d]=h(this[d],g)}e.t=this.t}else{g=this.s&this.DM;for(d=b;d<c.t;++d){e[d]=h(g,c[d])}e.t=c.t}e.s=h(this.s,c.s);e.clamp()}function op_and(a,b){return a&b}function bnAnd(b){var c=nbi();this.bitwiseTo(b,op_and,c);return c}function op_or(a,b){return a|b}function bnOr(b){var c=nbi();this.bitwiseTo(b,op_or,c);return c}function op_xor(a,b){return a^b}function bnXor(b){var c=nbi();this.bitwiseTo(b,op_xor,c);return c}function op_andnot(a,b){return a&~b}function bnAndNot(b){var c=nbi();this.bitwiseTo(b,op_andnot,c);return c}function bnNot(){var b=nbi();for(var a=0;a<this.t;++a){b[a]=this.DM&~this[a]}b.t=this.t;b.s=~this.s;return b}function bnShiftLeft(b){var a=nbi();if(b<0){this.rShiftTo(-b,a)}else{this.lShiftTo(b,a)}return a}function bnShiftRight(b){var a=nbi();if(b<0){this.lShiftTo(-b,a)}else{this.rShiftTo(b,a)}return a}function lbit(a){if(a==0){return -1}var b=0;if((a&65535)==0){a>>=16;b+=16}if((a&255)==0){a>>=8;b+=8}if((a&15)==0){a>>=4;b+=4}if((a&3)==0){a>>=2;b+=2}if((a&1)==0){++b}return b}function bnGetLowestSetBit(){for(var a=0;a<this.t;++a){if(this[a]!=0){return a*this.DB+lbit(this[a])}}if(this.s<0){return this.t*this.DB}return -1}function cbit(a){var b=0;while(a!=0){a&=a-1;++b}return b}function bnBitCount(){var c=0,a=this.s&this.DM;for(var b=0;b<this.t;++b){c+=cbit(this[b]^a)}return c}function bnTestBit(b){var a=Math.floor(b/this.DB);if(a>=this.t){return(this.s!=0)}return((this[a]&(1<<(b%this.DB)))!=0)}function bnpChangeBit(c,b){var a=BigInteger.ONE.shiftLeft(c);this.bitwiseTo(a,b,a);return a}function bnSetBit(a){return this.changeBit(a,op_or)}function bnClearBit(a){return this.changeBit(a,op_andnot)}function bnFlipBit(a){return this.changeBit(a,op_xor)}function bnpAddTo(d,f){var e=0,g=0,b=Math.min(d.t,this.t);while(e<b){g+=this[e]+d[e];f[e++]=g&this.DM;g>>=this.DB}if(d.t<this.t){g+=d.s;while(e<this.t){g+=this[e];f[e++]=g&this.DM;g>>=this.DB}g+=this.s}else{g+=this.s;while(e<d.t){g+=d[e];f[e++]=g&this.DM;g>>=this.DB}g+=d.s}f.s=(g<0)?-1:0;if(g>0){f[e++]=g}else{if(g<-1){f[e++]=this.DV+g}}f.t=e;f.clamp()}function bnAdd(b){var c=nbi();this.addTo(b,c);return c}function bnSubtract(b){var c=nbi();this.subTo(b,c);return c}function bnMultiply(b){var c=nbi();this.multiplyTo(b,c);return c}function bnSquare(){var a=nbi();this.squareTo(a);return a}function bnDivide(b){var c=nbi();this.divRemTo(b,c,null);return c}function bnRemainder(b){var c=nbi();this.divRemTo(b,null,c);return c}function bnDivideAndRemainder(b){var d=nbi(),c=nbi();this.divRemTo(b,d,c);return new Array(d,c)}function bnpDMultiply(a){this[this.t]=this.am(0,a-1,this,0,0,this.t);++this.t;this.clamp()}function bnpDAddOffset(b,a){if(b==0){return}while(this.t<=a){this[this.t++]=0}this[a]+=b;while(this[a]>=this.DV){this[a]-=this.DV;if(++a>=this.t){this[this.t++]=0}++this[a]}}function NullExp(){}function nNop(a){return a}function nMulTo(a,c,b){a.multiplyTo(c,b)}function nSqrTo(a,b){a.squareTo(b)}NullExp.prototype.convert=nNop;NullExp.prototype.revert=nNop;NullExp.prototype.mulTo=nMulTo;NullExp.prototype.sqrTo=nSqrTo;function bnPow(a){return this.exp(a,new NullExp())}function bnpMultiplyLowerTo(b,f,e){var d=Math.min(this.t+b.t,f);e.s=0;e.t=d;while(d>0){e[--d]=0}var c;for(c=e.t-this.t;d<c;++d){e[d+this.t]=this.am(0,b[d],e,d,0,this.t)}for(c=Math.min(b.t,f);d<c;++d){this.am(0,b[d],e,d,0,f-d)}e.clamp()}function bnpMultiplyUpperTo(b,e,d){--e;var c=d.t=this.t+b.t-e;d.s=0;while(--c>=0){d[c]=0}for(c=Math.max(e-this.t,0);c<b.t;++c){d[this.t+c-e]=this.am(e-c,b[c],d,0,0,this.t+c-e)}d.clamp();d.drShiftTo(1,d)}function Barrett(a){this.r2=nbi();this.q3=nbi();BigInteger.ONE.dlShiftTo(2*a.t,this.r2);this.mu=this.r2.divide(a);this.m=a}function barrettConvert(a){if(a.s<0||a.t>2*this.m.t){return a.mod(this.m)}else{if(a.compareTo(this.m)<0){return a}else{var b=nbi();a.copyTo(b);this.reduce(b);return b}}}function barrettRevert(a){return a}function barrettReduce(a){a.drShiftTo(this.m.t-1,this.r2);if(a.t>this.m.t+1){a.t=this.m.t+1;a.clamp()}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(a.compareTo(this.r2)<0){a.dAddOffset(1,this.m.t+1)}a.subTo(this.r2,a);while(a.compareTo(this.m)>=0){a.subTo(this.m,a)}}function barrettSqrTo(a,b){a.squareTo(b);this.reduce(b)}function barrettMulTo(a,c,b){a.multiplyTo(c,b);this.reduce(b)}Barrett.prototype.convert=barrettConvert;Barrett.prototype.revert=barrettRevert;Barrett.prototype.reduce=barrettReduce;Barrett.prototype.mulTo=barrettMulTo;Barrett.prototype.sqrTo=barrettSqrTo;function bnModPow(q,f){var o=q.bitLength(),h,b=nbv(1),v;if(o<=0){return b}else{if(o<18){h=1}else{if(o<48){h=3}else{if(o<144){h=4}else{if(o<768){h=5}else{h=6}}}}}if(o<8){v=new Classic(f)}else{if(f.isEven()){v=new Barrett(f)}else{v=new Montgomery(f)}}var p=new Array(),d=3,s=h-1,a=(1<<h)-1;p[1]=v.convert(this);if(h>1){var A=nbi();v.sqrTo(p[1],A);while(d<=a){p[d]=nbi();v.mulTo(A,p[d-2],p[d]);d+=2}}var l=q.t-1,x,u=true,c=nbi(),y;o=nbits(q[l])-1;while(l>=0){if(o>=s){x=(q[l]>>(o-s))&a}else{x=(q[l]&((1<<(o+1))-1))<<(s-o);if(l>0){x|=q[l-1]>>(this.DB+o-s)}}d=h;while((x&1)==0){x>>=1;--d}if((o-=d)<0){o+=this.DB;--l}if(u){p[x].copyTo(b);u=false}else{while(d>1){v.sqrTo(b,c);v.sqrTo(c,b);d-=2}if(d>0){v.sqrTo(b,c)}else{y=b;b=c;c=y}v.mulTo(c,p[x],b)}while(l>=0&&(q[l]&(1<<o))==0){v.sqrTo(b,c);y=b;b=c;c=y;if(--o<0){o=this.DB-1;--l}}}return v.revert(b)}function bnGCD(c){var b=(this.s<0)?this.negate():this.clone();var h=(c.s<0)?c.negate():c.clone();if(b.compareTo(h)<0){var e=b;b=h;h=e}var d=b.getLowestSetBit(),f=h.getLowestSetBit();if(f<0){return b}if(d<f){f=d}if(f>0){b.rShiftTo(f,b);h.rShiftTo(f,h)}while(b.signum()>0){if((d=b.getLowestSetBit())>0){b.rShiftTo(d,b)}if((d=h.getLowestSetBit())>0){h.rShiftTo(d,h)}if(b.compareTo(h)>=0){b.subTo(h,b);b.rShiftTo(1,b)}else{h.subTo(b,h);h.rShiftTo(1,h)}}if(f>0){h.lShiftTo(f,h)}return h}function bnpModInt(e){if(e<=0){return 0}var c=this.DV%e,b=(this.s<0)?e-1:0;if(this.t>0){if(c==0){b=this[0]%e}else{for(var a=this.t-1;a>=0;--a){b=(c*b+this[a])%e}}}return b}function bnModInverse(f){var j=f.isEven();if((this.isEven()&&j)||f.signum()==0){return BigInteger.ZERO}var i=f.clone(),h=this.clone();var g=nbv(1),e=nbv(0),l=nbv(0),k=nbv(1);while(i.signum()!=0){while(i.isEven()){i.rShiftTo(1,i);if(j){if(!g.isEven()||!e.isEven()){g.addTo(this,g);e.subTo(f,e)}g.rShiftTo(1,g)}else{if(!e.isEven()){e.subTo(f,e)}}e.rShiftTo(1,e)}while(h.isEven()){h.rShiftTo(1,h);if(j){if(!l.isEven()||!k.isEven()){l.addTo(this,l);k.subTo(f,k)}l.rShiftTo(1,l)}else{if(!k.isEven()){k.subTo(f,k)}}k.rShiftTo(1,k)}if(i.compareTo(h)>=0){i.subTo(h,i);if(j){g.subTo(l,g)}e.subTo(k,e)}else{h.subTo(i,h);if(j){l.subTo(g,l)}k.subTo(e,k)}}if(h.compareTo(BigInteger.ONE)!=0){return BigInteger.ZERO}if(k.compareTo(f)>=0){return k.subtract(f)}if(k.signum()<0){k.addTo(f,k)}else{return k}if(k.signum()<0){return k.add(f)}else{return k}}var lowprimes=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];var lplim=(1<<26)/lowprimes[lowprimes.length-1];function bnIsProbablePrime(e){var d,b=this.abs();if(b.t==1&&b[0]<=lowprimes[lowprimes.length-1]){for(d=0;d<lowprimes.length;++d){if(b[0]==lowprimes[d]){return true}}return false}if(b.isEven()){return false}d=1;while(d<lowprimes.length){var a=lowprimes[d],c=d+1;while(c<lowprimes.length&&a<lplim){a*=lowprimes[c++]}a=b.modInt(a);while(d<c){if(a%lowprimes[d++]==0){return false}}}return b.millerRabin(e)}function bnpMillerRabin(f){var g=this.subtract(BigInteger.ONE);var c=g.getLowestSetBit();if(c<=0){return false}var h=g.shiftRight(c);f=(f+1)>>1;if(f>lowprimes.length){f=lowprimes.length}var b=nbi();for(var e=0;e<f;++e){b.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]);var l=b.modPow(h,this);if(l.compareTo(BigInteger.ONE)!=0&&l.compareTo(g)!=0){var d=1;while(d++<c&&l.compareTo(g)!=0){l=l.modPowInt(2,this);if(l.compareTo(BigInteger.ONE)==0){return false}}if(l.compareTo(g)!=0){return false}}}return true}BigInteger.prototype.chunkSize=bnpChunkSize;BigInteger.prototype.toRadix=bnpToRadix;BigInteger.prototype.fromRadix=bnpFromRadix;BigInteger.prototype.fromNumber=bnpFromNumber;BigInteger.prototype.bitwiseTo=bnpBitwiseTo;BigInteger.prototype.changeBit=bnpChangeBit;BigInteger.prototype.addTo=bnpAddTo;BigInteger.prototype.dMultiply=bnpDMultiply;BigInteger.prototype.dAddOffset=bnpDAddOffset;BigInteger.prototype.multiplyLowerTo=bnpMultiplyLowerTo;BigInteger.prototype.multiplyUpperTo=bnpMultiplyUpperTo;BigInteger.prototype.modInt=bnpModInt;BigInteger.prototype.millerRabin=bnpMillerRabin;BigInteger.prototype.clone=bnClone;BigInteger.prototype.intValue=bnIntValue;BigInteger.prototype.byteValue=bnByteValue;BigInteger.prototype.shortValue=bnShortValue;BigInteger.prototype.signum=bnSigNum;BigInteger.prototype.toByteArray=bnToByteArray;BigInteger.prototype.equals=bnEquals;BigInteger.prototype.min=bnMin;BigInteger.prototype.max=bnMax;BigInteger.prototype.and=bnAnd;BigInteger.prototype.or=bnOr;BigInteger.prototype.xor=bnXor;BigInteger.prototype.andNot=bnAndNot;BigInteger.prototype.not=bnNot;BigInteger.prototype.shiftLeft=bnShiftLeft;BigInteger.prototype.shiftRight=bnShiftRight;BigInteger.prototype.getLowestSetBit=bnGetLowestSetBit;BigInteger.prototype.bitCount=bnBitCount;BigInteger.prototype.testBit=bnTestBit;BigInteger.prototype.setBit=bnSetBit;BigInteger.prototype.clearBit=bnClearBit;BigInteger.prototype.flipBit=bnFlipBit;BigInteger.prototype.add=bnAdd;BigInteger.prototype.subtract=bnSubtract;BigInteger.prototype.multiply=bnMultiply;BigInteger.prototype.divide=bnDivide;BigInteger.prototype.remainder=bnRemainder;BigInteger.prototype.divideAndRemainder=bnDivideAndRemainder;BigInteger.prototype.modPow=bnModPow;BigInteger.prototype.modInverse=bnModInverse;BigInteger.prototype.pow=bnPow;BigInteger.prototype.gcd=bnGCD;BigInteger.prototype.isProbablePrime=bnIsProbablePrime;BigInteger.prototype.square=bnSquare;
/*var dhprime=new BigInteger('FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE65381FFFFFFFFFFFFFFFF',16);
var dhg=new BigInteger('02',16);
var secretX=new BigInteger('04',16);
alert(dhg.modPow(secretX,dhprime).toString(16));*/
/*function discrete_exp(t,u,n) { // args are base, exponent, modulus
// computes s = (t ^ u) mod n
// (see Bruce Schneier's book, _Applied Cryptography_ p. 244)
var s = 1;
while (u) { if (u&1) {s = (s*t) % n}; u >>= 1; t = (t*t)%n; };
return s;
}
*/
//prng.js (forge)
/**
* A javascript implementation of a cryptographically-secure
* Pseudo Random Number Generator (PRNG). The Fortuna algorithm is mostly
* followed here. SHA-1 is used instead of SHA-256.
*
* @author Dave Longley
*
* Copyright (c) 2010-2012 Digital Bazaar, Inc.
*/
(function(){var a=forge;a.prng={};/*if(typeof(window)!=="undefined"){var a=window.forge=window.forge||{};a.prng={}}else{if(typeof(module)!=="undefined"&&module.exports){var a={md:require("./md"),util:require("./util")};a.md.sha1.create();module.exports=a.prng={}}}*/;var b=a.prng;b.create=function(g){var c={plugin:g,key:null,seed:null,time:null,reseeds:0,generated:0};var h=g.md;var f=new Array(32);for(var e=0;e<32;++e){f[e]=h.create()}c.pools=f;c.pool=0;c.generate=function(o){if(c.key===null){d()}var k=c.plugin.cipher;var j=c.plugin.increment;var p=c.plugin.formatKey;var n=c.plugin.formatSeed;var i=a.util.createBuffer();while(i.length()<o){var l=k(c.key,c.seed);c.generated+=l.length;i.putBytes(l);c.key=p(k(c.key,j(c.seed)));c.seed=n(k(c.key,c.seed));if(c.generated>=1048576){var m=+new Date();if(m-c.time<100){d()}}}return i.getBytes(o)};function d(){if(c.pools[0].messageLength<32){var t=(32-c.pools[0].messageLength)<<5;var s="";var j,q,n;var o=Math.floor(Math.random()*65535);while(s.length<t){q=16807*(o&65535);j=16807*(o>>16);q+=(j&32767)<<16;q+=j>>15;q=(q&2147483647)+(q>>31);o=q&4294967295;for(var m=0;m<3;++m){n=o>>>(m<<3);n^=Math.floor(Math.random()*255);s+=String.fromCharCode(n&255)}}c.collect(s)}else{var r=a.md.sha1.create();r.update(c.pools[0].digest().getBytes());c.pools[0].start();var l=1;for(var m=1;m<32;++m){l=(l==31)?2147483648:(l<<2);if(l%c.reseeds===0){r.update(c.pools[m].digest().getBytes());c.pools[m].start()}}var p=r.digest().getBytes();r.start();r.update(p);var u=r.digest().getBytes();c.key=c.plugin.formatKey(p);c.seed=c.plugin.formatSeed(u);++c.reseeds;c.generated=0;c.time=+new Date()}}c.collect=function(j){var m=j.length;for(var l=0;l<m;++l){c.pools[c.pool].update(j.substr(l,1));c.pool=(c.pool===31)?0:c.pool+1}if(c.pools[0].messageLength>=32){var k=+new Date();if(c.time===null||(k-c.time<100)){d()}}};c.collectInt=function(k,l){var j="";do{l-=8;j+=String.fromCharCode((k>>l)&255)}while(l>0);c.collect(j)};return c}})();
//random.js (forge)
/**
* An API for getting cryptographically-secure random bytes. The bytes are
* generated using the Fortuna algorithm devised by Bruce Schneier and
* Niels Ferguson.
*
* Getting strong random bytes is not yet easy to do in javascript. The only
* truish random entropy that can be collected is from the mouse, keyboard, or
* from timing with respect to page loads, etc. This generator makes a poor
* attempt at providing random bytes when those sources haven't yet provided
* enough entropy to initially seed or to reseed the PRNG.
*
* @author Dave Longley
*
* Copyright (c) 2009-2012 Digital Bazaar, Inc.
*/
(function(d){var i=forge;i.random={};/*if(typeof(window)!=="undefined"){var i=window.forge=window.forge||{};i.random={}}else{if(typeof(module)!=="undefined"&&module.exports){var i={aes:require("./aes"),md:require("./md"),prng:require("./prng"),util:require("./util")};module.exports=i.random={}}}*/;var h={};var f=new Array(4);var c=i.util.createBuffer();h.formatKey=function(k){var e=i.util.createBuffer(k);k=new Array(4);k[0]=e.getInt32();k[1]=e.getInt32();k[2]=e.getInt32();k[3]=e.getInt32();return i.aes._expandKey(k,false)};h.formatSeed=function(e){var tmp=i.util.createBuffer(e);e=new Array(4);e[0]=tmp.getInt32();e[1]=tmp.getInt32();e[2]=tmp.getInt32();e[3]=tmp.getInt32();return e};h.cipher=function(k,e){i.aes._updateBlock(k,e,f,false);c.putInt32(f[0]);c.putInt32(f[1]);c.putInt32(f[2]);c.putInt32(f[3]);return c.getBytes()};h.increment=function(e){++e[3];return e};h.md=i.md.sha1;var b=i.prng.create(h);b.collectInt(+new Date(),32);if(typeof(navigator)!=="undefined"){var a="";for(var j in navigator){try{if(typeof(navigator[j])=="string"){a+=navigator[j]}}catch(g){}}b.collect(a);a=null}if(d){d().mousemove(function(k){b.collectInt(k.clientX,16);b.collectInt(k.clientY,16)});d().keypress(function(k){b.collectInt(k.charCode,8)})}i.random.getBytes=function(e){return b.generate(e)}})(typeof(jQuery)!=="undefined"?jQuery:null);
//oid.js (forge)
/**
* Object IDs for ASN.1.
*
* @author Dave Longley
*
* Copyright (c) 2010-2012 Digital Bazaar, Inc.
*/
(function(){var a={};var b=forge;/*if(typeof(window)!=="undefined"){var b=window.forge=window.forge||{}}else{if(typeof(module)!=="undefined"&&module.exports){var b={};module.exports=a}}*/;b.pki=b.pki||{};b.pki.oids=a;a["1.2.840.113549.1.1.1"]="rsaEncryption";a.rsaEncryption="1.2.840.113549.1.1.1";a["1.2.840.113549.1.1.4"]="md5withRSAEncryption";a.md5withRSAEncryption="1.2.840.113549.1.1.4";a["1.2.840.113549.1.1.5"]="sha1withRSAEncryption";a.sha1withRSAEncryption="1.2.840.113549.1.1.5";a["1.2.840.113549.1.1.7"]="RSAES-OAEP";a["RSAES-OAEP"]="1.2.840.113549.1.1.7";a["1.2.840.113549.1.1.8"]="mgf1";a.mgf1="1.2.840.113549.1.1.8";a["1.2.840.113549.1.1.9"]="pSpecified";a.pSpecified="1.2.840.113549.1.1.9";a["1.2.840.113549.1.1.10"]="RSASSA-PSS";a["RSASSA-PSS"]="1.2.840.113549.1.1.10";a["1.2.840.113549.1.1.11"]="sha256WithRSAEncryption";a.sha256WithRSAEncryption="1.2.840.113549.1.1.11";a["1.2.840.113549.1.1.12"]="sha384WithRSAEncryption";a.sha384WithRSAEncryption="1.2.840.113549.1.1.12";a["1.2.840.113549.1.1.13"]="sha512WithRSAEncryption";a.sha512WithRSAEncryption="1.2.840.113549.1.1.13";a["1.3.14.3.2.26"]="sha1";a.sha1="1.3.14.3.2.26";a["2.16.840.1.101.3.4.2.1"]="sha256";a.sha256="2.16.840.1.101.3.4.2.1";a["2.16.840.1.101.3.4.2.2"]="sha384";a.sha384="2.16.840.1.101.3.4.2.2";a["2.16.840.1.101.3.4.2.3"]="sha512";a.sha512="2.16.840.1.101.3.4.2.3";a["1.2.840.113549.2.5"]="md5";a.md5="1.2.840.113549.2.5";a["1.2.840.113549.1.7.1"]="data";a.data="1.2.840.113549.1.7.1";a["1.2.840.113549.1.7.2"]="signedData";a.signedData="1.2.840.113549.1.7.2";a["1.2.840.113549.1.7.3"]="envelopedData";a.envelopedData="1.2.840.113549.1.7.3";a["1.2.840.113549.1.7.4"]="signedAndEnvelopedData";a.signedAndEnvelopedData="1.2.840.113549.1.7.4";a["1.2.840.113549.1.7.5"]="digestedData";a.digestedData="1.2.840.113549.1.7.5";a["1.2.840.113549.1.7.6"]="encryptedData";a.encryptedData="1.2.840.113549.1.7.6";a["1.2.840.113549.1.9.20"]="friendlyName";a.friendlyName="1.2.840.113549.1.9.20";a["1.2.840.113549.1.9.21"]="localKeyId";a.localKeyId="1.2.840.113549.1.9.21";a["1.2.840.113549.1.9.22.1"]="x509Certificate";a.x509Certificate="1.2.840.113549.1.9.22.1";a["1.2.840.113549.1.12.10.1.1"]="keyBag";a.keyBag="1.2.840.113549.1.12.10.1.1";a["1.2.840.113549.1.12.10.1.2"]="pkcs8ShroudedKeyBag";a.pkcs8ShroudedKeyBag="1.2.840.113549.1.12.10.1.2";a["1.2.840.113549.1.12.10.1.3"]="certBag";a.certBag="1.2.840.113549.1.12.10.1.3";a["1.2.840.113549.1.12.10.1.4"]="crlBag";a.crlBag="1.2.840.113549.1.12.10.1.4";a["1.2.840.113549.1.12.10.1.5"]="secretBag";a.secretBag="1.2.840.113549.1.12.10.1.5";a["1.2.840.113549.1.12.10.1.6"]="safeContentsBag";a.safeContentsBag="1.2.840.113549.1.12.10.1.6";a["1.2.840.113549.1.5.13"]="pkcs5PBES2";a.pkcs5PBES2="1.2.840.113549.1.5.13";a["1.2.840.113549.1.5.12"]="pkcs5PBKDF2";a.pkcs5PBKDF2="1.2.840.113549.1.5.12";a["1.2.840.113549.1.12.1.1"]="pbeWithSHAAnd128BitRC4";a.pbeWithSHAAnd128BitRC4="1.2.840.113549.1.12.1.1";a["1.2.840.113549.1.12.1.2"]="pbeWithSHAAnd40BitRC4";a.pbeWithSHAAnd40BitRC4="1.2.840.113549.1.12.1.2";a["1.2.840.113549.1.12.1.3"]="pbeWithSHAAnd3-KeyTripleDES-CBC";a["pbeWithSHAAnd3-KeyTripleDES-CBC"]="1.2.840.113549.1.12.1.3";a["1.2.840.113549.1.12.1.4"]="pbeWithSHAAnd2-KeyTripleDES-CBC";a["pbeWithSHAAnd2-KeyTripleDES-CBC"]="1.2.840.113549.1.12.1.4";a["1.2.840.113549.1.12.1.5"]="pbeWithSHAAnd128BitRC2-CBC";a["pbeWithSHAAnd128BitRC2-CBC"]="1.2.840.113549.1.12.1.5";a["1.2.840.113549.1.12.1.6"]="pbewithSHAAnd40BitRC2-CBC";a["pbewithSHAAnd40BitRC2-CBC"]="1.2.840.113549.1.12.1.6";a["1.2.840.113549.3.7"]="des-EDE3-CBC";a["des-EDE3-CBC"]="1.2.840.113549.3.7";a["2.16.840.1.101.3.4.1.2"]="aes128-CBC";a["aes128-CBC"]="2.16.840.1.101.3.4.1.2";a["2.16.840.1.101.3.4.1.22"]="aes192-CBC";a["aes192-CBC"]="2.16.840.1.101.3.4.1.22";a["2.16.840.1.101.3.4.1.42"]="aes256-CBC";a["aes256-CBC"]="2.16.840.1.101.3.4.1.42";a["2.5.4.3"]="commonName";a.commonName="2.5.4.3";a["2.5.4.5"]="serialName";a.serialName="2.5.4.5";a["2.5.4.6"]="countryName";a.countryName="2.5.4.6";a["2.5.4.7"]="localityName";a.localityName="2.5.4.7";a["2.5.4.8"]="stateOrProvinceName";a.stateOrProvinceName="2.5.4.8";a["2.5.4.10"]="organizationName";a.organizationName="2.5.4.10";a["2.5.4.11"]="organizationalUnitName";a.organizationalUnitName="2.5.4.11";a["1.2.840.113549.1.9.1"]="emailAddress";a.emailAddress="1.2.840.113549.1.9.1";a["2.5.29.1"]="authorityKeyIdentifier";a["2.5.29.2"]="keyAttributes";a["2.5.29.3"]="certificatePolicies";a["2.5.29.4"]="keyUsageRestriction";a["2.5.29.5"]="policyMapping";a["2.5.29.6"]="subtreesConstraint";a["2.5.29.7"]="subjectAltName";a["2.5.29.8"]="issuerAltName";a["2.5.29.9"]="subjectDirectoryAttributes";a["2.5.29.10"]="basicConstraints";a["2.5.29.11"]="nameConstraints";a["2.5.29.12"]="policyConstraints";a["2.5.29.13"]="basicConstraints";a["2.5.29.14"]="subjectKeyIdentifier";a.subjectKeyIdentifier="2.5.29.14";a["2.5.29.15"]="keyUsage";a.keyUsage="2.5.29.15";a["2.5.29.16"]="privateKeyUsagePeriod";a["2.5.29.17"]="subjectAltName";a.subjectAltName="2.5.29.17";a["2.5.29.18"]="issuerAltName";a.issuerAltName="2.5.29.18";a["2.5.29.19"]="basicConstraints";a.basicConstraints="2.5.29.19";a["2.5.29.20"]="cRLNumber";a["2.5.29.21"]="cRLReason";a["2.5.29.22"]="expirationDate";a["2.5.29.23"]="instructionCode";a["2.5.29.24"]="invalidityDate";a["2.5.29.25"]="cRLDistributionPoints";a["2.5.29.26"]="issuingDistributionPoint";a["2.5.29.27"]="deltaCRLIndicator";a["2.5.29.28"]="issuingDistributionPoint";a["2.5.29.29"]="certificateIssuer";a["2.5.29.30"]="nameConstraints";a["2.5.29.31"]="cRLDistributionPoints";a["2.5.29.32"]="certificatePolicies";a["2.5.29.33"]="policyMappings";a["2.5.29.34"]="policyConstraints";a["2.5.29.35"]="authorityKeyIdentifier";a["2.5.29.36"]="policyConstraints";a["2.5.29.37"]="extKeyUsage";a.extKeyUsage="2.5.29.37";a["2.5.29.46"]="freshestCRL";a["2.5.29.54"]="inhibitAnyPolicy"})();
//rsa.js (forge)
/**
* Javascript implementation of a basic RSA algorithms.
*
* @author Dave Longley
*
* Copyright (c) 2010-2012 Digital Bazaar, Inc.
*/
(function(){var e=forge;/*if(typeof(window)!=="undefined"){var e=window.forge=window.forge||{}}else{if(typeof(module)!=="undefined"&&module.exports){var e={asn1:require("./asn1"),pki:{oids:require("./oids")},random:require("./random"),util:require("./util")};BigInteger=require("./jsbn");module.exports=e.pki.rsa={}}}*/;var d=e.asn1;e.pki=e.pki||{};e.pki.rsa=e.pki.rsa||{};var b=e.pki;var c=function(h){var g;if(h.algorithm in e.pki.oids){g=e.pki.oids[h.algorithm]}else{throw {message:"Unknown message digest algorithm.",algorithm:h.algorithm}}var k=d.oidToDer(g).getBytes();var j=d.create(d.Class.UNIVERSAL,d.Type.SEQUENCE,true,[]);var f=d.create(d.Class.UNIVERSAL,d.Type.SEQUENCE,true,[]);f.value.push(d.create(d.Class.UNIVERSAL,d.Type.OID,false,k));f.value.push(d.create(d.Class.UNIVERSAL,d.Type.NULL,false,""));var i=d.create(d.Class.UNIVERSAL,d.Type.OCTETSTRING,false,h.digest().getBytes());j.value.push(f);j.value.push(i);return d.toDer(j).getBytes()};var a=function(f,g,j){var k;if(j){k=f.modPow(g.e,g.n)}else{if(!g.dP){g.dP=g.d.mod(g.p.subtract(BigInteger.ONE))}if(!g.dQ){g.dQ=g.d.mod(g.q.subtract(BigInteger.ONE))}if(!g.qInv){g.qInv=g.q.modInverse(g.p)}var i=f.mod(g.p).modPow(g.dP,g.p);var h=f.mod(g.q).modPow(g.dQ,g.q);while(i.compareTo(h)<0){i=i.add(g.p)}k=i.subtract(h).multiply(g.qInv).mod(g.p).multiply(g.q).add(h)}return k};b.rsa.encrypt=function(h,u,v){var n=v;var q=e.util.createBuffer();var l=Math.ceil(u.n.bitLength()/8);if(v!==false&&v!==true){if(h.length>(l-11)){throw {message:"Message is too long to encrypt.",length:h.length,max:(l-11)}}q.putByte(0);q.putByte(v);var j=l-3-h.length;var f;if(v===0||v===1){n=false;f=(v===0)?0:255;for(var o=0;o<j;++o){q.putByte(f)}}else{n=true;for(var o=0;o<j;++o){f=Math.floor(Math.random()*255)+1;q.putByte(f)}}q.putByte(0)}q.putBytes(h);var t=new BigInteger(q.toHex(),16);var s=a(t,u,n);var r=s.toString(16);var p=e.util.createBuffer();var g=l-Math.ceil(r.length/2);while(g>0){p.putByte(0);--g}p.putBytes(e.util.hexToBytes(r));return p.getBytes()};b.rsa.decrypt=function(q,w,n,l){var g=e.util.createBuffer();var j=Math.ceil(w.n.bitLength()/8);if(q.length!=j){throw {message:"Encrypted message length is invalid.",length:q.length,expected:j}}var t=new BigInteger(e.util.createBuffer(q).toHex(),16);var u=a(t,w,n);var z=u.toString(16);var r=e.util.createBuffer();var f=j-Math.ceil(z.length/2);while(f>0){r.putByte(0);--f}r.putBytes(e.util.hexToBytes(z));if(l!==false){var p=r.getByte();var v=r.getByte();if(p!==0||(n&&v!==0&&v!==1)||(!n&&v!=2)||(n&&v===0&&typeof(l)==="undefined")){throw {message:"Encryption block is invalid."}}var h=0;if(v===0){h=j-3-l;for(var o=0;o<h;++o){if(r.getByte()!==0){throw {message:"Encryption block is invalid."}}}}else{if(v===1){h=0;while(r.length()>1){if(r.getByte()!==255){--r.read;break}++h}}else{if(v===2){h=0;while(r.length()>1){if(r.getByte()===0){--r.read;break}++h}}}}var s=r.getByte();if(s!==0||h!==(j-3-r.length())){throw {message:"Encryption block is invalid."}}}return r.getBytes()};b.rsa.createKeyPairGenerationState=function(g,i){if(typeof(g)==="string"){g=parseInt(g,10)}g=g||1024;var f={nextBytes:function(k){var n=+new Date();var j=e.random.getBytes(k.length);for(var l=0;l<k.length;++l){k[l]=j.charCodeAt(l)}var m=+new Date()}};var h={state:0,itrs:0,maxItrs:100,bits:g,rng:f,e:new BigInteger((i||65537).toString(16),16),p:null,q:null,qBits:g>>1,pBits:g-(g>>1),pqState:0,num:null,six:new BigInteger(null),addNext:2,keys:null};h.six.fromInt(6);return h};b.rsa.stepKeyPairGenerationState=function(g,j){var l=+new Date();var k;var o=0;while(g.keys===null&&(j<=0||o<j)){if(g.state===0){var p=(g.p===null)?g.pBits:g.qBits;var i=p-1;if(g.pqState===0){g.itrs=0;g.num=new BigInteger(p,g.rng);g.r=null;if(g.num.isEven()){g.num.dAddOffset(1,0)}if(!g.num.testBit(i)){g.num.bitwiseTo(BigInteger.ONE.shiftLeft(i),function(n,q){return n|q},g.num)}++g.pqState}else{if(g.pqState===1){if(g.addNext===null){var f=g.num.mod(g.six).byteValue();if(f===3){g.num.mod.dAddOffset(2);f=5}g.addNext=(f===1)?2:4}var h=g.num.isProbablePrime(1);if(h){++g.pqState}else{if(g.itrs<g.maxItrs){g.num.dAddOffset(g.addNext,0);if(g.num.bitLength()>p){g.addNext=null;g.num.subTo(BigInteger.ONE.shiftLeft(i),g.num)}else{g.addNext=(g.addNext===4)?2:4}++g.itrs}else{g.pqState=0}}}else{if(g.pqState===2){g.pqState=(g.num.subtract(BigInteger.ONE).gcd(g.e).compareTo(BigInteger.ONE)===0)?3:0}else{if(g.pqState===3){g.pqState=0;if(g.num.isProbablePrime(10)){if(g.p===null){g.p=g.num}else{g.q=g.num}if(g.p!==null&&g.q!==null){++g.state}}g.num=null}}}}}else{if(g.state===1){if(g.p.compareTo(g.q)<0){g.num=g.p;g.p=g.q;g.q=g.num}++g.state}else{if(g.state===2){g.p1=g.p.subtract(BigInteger.ONE);g.q1=g.q.subtract(BigInteger.ONE);g.phi=g.p1.multiply(g.q1);++g.state}else{if(g.state===3){if(g.phi.gcd(g.e).compareTo(BigInteger.ONE)===0){++g.state}else{g.p=null;g.q=null;g.state=0}}else{if(g.state===4){g.n=g.p.multiply(g.q);if(g.n.bitLength()===g.bits){++g.state}else{g.q=null;g.state=0}}else{if(g.state===5){var m=g.e.modInverse(g.phi);g.keys={privateKey:e.pki.rsa.setPrivateKey(g.n,g.e,m,g.p,g.q,m.mod(g.p1),m.mod(g.q1),g.q.modInverse(g.p)),publicKey:e.pki.rsa.setPublicKey(g.n,g.e)}}}}}}}k=+new Date();o+=k-l;l=k}return g.keys!==null};b.rsa.generateKeyPair=function(g,h){var f=b.rsa.createKeyPairGenerationState(g,h);b.rsa.stepKeyPairGenerationState(f,0);return f.keys};b.rsa.setPublicKey=function(h,g){var f={n:h,e:g};f.encrypt=function(i){return b.rsa.encrypt(i,f,2)};f.verify=function(m,i,j){var n=j===undefined?undefined:false;var l=b.rsa.decrypt(i,f,true,n);if(j===undefined){var k=d.fromDer(l);return m===k.value[1].value}else{return j.verify(m,l,f.n.bitLength())}};return f};b.rsa.setPrivateKey=function(h,i,j,g,f,l,k,o){var m={n:h,e:i,d:j,p:g,q:f,dP:l,dQ:k,qInv:o};m.decrypt=function(n){return b.rsa.decrypt(n,m,false)};m.sign=function(q,p){var n=false;if(p===undefined){p={encode:c};n=1}var r=p.encode(q,m.n.bitLength());return b.rsa.encrypt(r,m,n)};return m}})();
//pki.js and pem.js (forge)
/**
* Javascript implementation of a basic Public Key Infrastructure, including
* support for RSA public and private keys.
*
* @author Dave Longley
* @author Stefan Siegl <stesie@brokenpipe.de>
*
* Copyright (c) 2010-2012 Digital Bazaar, Inc.
* Copyright (c) 2012 Stefan Siegl <stesie@brokenpipe.de>
*
*/
(function(){function d(p){if(typeof BigInteger==="undefined"){BigInteger=p.jsbn.BigInteger}var t=p.asn1;var j=p.pki=p.pki||{};var m=j.oids;j.pbe={};var w={};w.CN=m.commonName;w.commonName="CN";w.C=m.countryName;w.countryName="C";w.L=m.localityName;w.localityName="L";w.ST=m.stateOrProvinceName;w.stateOrProvinceName="ST";w.O=m.organizationName;w.organizationName="O";w.OU=m.organizationalUnitName;w.organizationalUnitName="OU";w.E=m.emailAddress;w.emailAddress="E";var A={name:"SubjectPublicKeyInfo",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:false,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:t.Class.UNIVERSAL,type:t.Type.BITSTRING,constructed:false,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,optional:true,captureAsn1:"rsaPublicKey"}]}]};var v={name:"RSAPublicKey",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"RSAPublicKey.modulus",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"publicKeyExponent"}]};var x={name:"Certificate",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.TBSCertificate",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:t.Class.CONTEXT_SPECIFIC,type:0,constructed:true,optional:true,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:false,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:t.Class.UNIVERSAL,optional:true,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:t.Class.UNIVERSAL,type:t.Type.UTCTIME,constructed:false,optional:true,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:t.Class.UNIVERSAL,type:t.Type.GENERALIZEDTIME,constructed:false,optional:true,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:t.Class.UNIVERSAL,type:t.Type.UTCTIME,constructed:false,optional:true,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:t.Class.UNIVERSAL,type:t.Type.GENERALIZEDTIME,constructed:false,optional:true,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,captureAsn1:"certSubject"},A,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:t.Class.CONTEXT_SPECIFIC,type:1,constructed:true,optional:true,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:t.Class.UNIVERSAL,type:t.Type.BITSTRING,constructed:false,capture:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:t.Class.CONTEXT_SPECIFIC,type:2,constructed:true,optional:true,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:t.Class.UNIVERSAL,type:t.Type.BITSTRING,constructed:false,capture:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:t.Class.CONTEXT_SPECIFIC,type:3,constructed:true,captureAsn1:"certExtensions",optional:true}]},{name:"Certificate.signatureAlgorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:false,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:t.Class.UNIVERSAL,optional:true,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:t.Class.UNIVERSAL,type:t.Type.BITSTRING,constructed:false,capture:"certSignature"}]};var s={name:"PrivateKeyInfo",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"PrivateKeyInfo.version",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:false,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:t.Class.UNIVERSAL,type:t.Type.OCTETSTRING,constructed:false,capture:"privateKey"}]};var z={name:"RSAPrivateKey",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"RSAPrivateKey.version",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"privateKeyCoefficient"}]};var y={name:"EncryptedPrivateKeyInfo",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:false,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:t.Class.UNIVERSAL,type:t.Type.OCTETSTRING,constructed:false,capture:"encryptedData"}]};var C={name:"PBES2Algorithms",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:false,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"PBES2Algorithms.params.salt",tagClass:t.Class.UNIVERSAL,type:t.Type.OCTETSTRING,constructed:false,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,onstructed:true,capture:"kdfIterationCount"}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:false,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:t.Class.UNIVERSAL,type:t.Type.OCTETSTRING,constructed:false,capture:"encIv"}]}]};var F={name:"pkcs-12PbeParams",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"pkcs-12PbeParams.salt",tagClass:t.Class.UNIVERSAL,type:t.Type.OCTETSTRING,constructed:false,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"iterations"}]};var u={name:"rsapss",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"rsapss.hashAlgorithm",tagClass:t.Class.CONTEXT_SPECIFIC,type:0,constructed:true,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:t.Class.UNIVERSAL,type:t.Class.SEQUENCE,constructed:true,optional:true,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:false,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:t.Class.CONTEXT_SPECIFIC,type:1,constructed:true,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:t.Class.UNIVERSAL,type:t.Class.SEQUENCE,constructed:true,optional:true,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:false,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:false,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:t.Class.CONTEXT_SPECIFIC,type:2,optional:true,value:[{name:"rsapss.saltLength.saltLength",tagClass:t.Class.UNIVERSAL,type:t.Class.INTEGER,constructed:false,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:t.Class.CONTEXT_SPECIFIC,type:3,optional:true,value:[{name:"rsapss.trailer.trailer",tagClass:t.Class.UNIVERSAL,type:t.Class.INTEGER,constructed:false,capture:"trailer"}]}]};var k={name:"CertificationRequestInfo",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:t.Class.UNIVERSAL,type:t.Type.INTEGER,constructed:false,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,captureAsn1:"certificationRequestInfoSubject"},A,{name:"CertificationRequestInfo.attributes",tagClass:t.Class.CONTEXT_SPECIFIC,type:0,constructed:true,optional:true,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:false},{name:"CertificationRequestInfo.attributes.value",tagClass:t.Class.UNIVERSAL,type:t.Type.SET,constructed:true}]}]}]};var q={name:"CertificationRequest",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,captureAsn1:"csr",value:[k,{name:"CertificationRequest.signatureAlgorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.SEQUENCE,constructed:true,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:t.Class.UNIVERSAL,type:t.Type.OID,constructed:false,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:t.Class.UNIVERSAL,optional:true,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:t.Class.UNIVERSAL,type:t.Type.BITSTRING,constructed:false,capture:"csrSignature"}]};j.RDNAttributesAsArray=function(K,J){var M=[];var N,G,L;for(var H=0;H<K.value.length;++H){N=K.value[H];for(var I=0;I<N.value.length;++I){L={};G=N.value[I];L.type=t.derToOid(G.value[0].value);L.value=G.value[1].value;L.valueTagClass=G.value[1].type;if(L.type in m){L.name=m[L.type];if(L.name in w){L.shortName=w[L.name]}}if(J){J.update(L.type);J.update(L.value)}M.push(L)}}return M};j.CRIAttributesAsArray=function(I){var M=[];for(var J=0;J<I.length;++J){var H=I[J];var K=t.derToOid(H.value[0].value);var G=H.value[1].value;for(var N=0;N<G.length;++N){var L={};L.type=K;L.value=G[N].value;L.valueTagClass=G[N].type;if(L.type in m){L.name=m[L.type];if(L.name in w){L.shortName=w[L.name]}}M.push(L)}}return M};var i=function(K,H){if(typeof H==="string"){H={shortName:H}}var J=null;var G;for(var I=0;J===null&&I<K.attributes.length;++I){G=K.attributes[I];if(H.type&&H.type===G.type){J=G}else{if(H.name&&H.name===G.name){J=G}else{if(H.shortName&&H.shortName===G.shortName){J=G}}}}return J};var o=function(O){var R=[];var S,H,K;for(var Q=0;Q<O.value.length;++Q){K=O.value[Q];for(var L=0;L<K.value.length;++L){H=K.value[L];S={};S.id=t.derToOid(H.value[0].value);S.critical=false;if(H.value[1].type===t.Type.BOOLEAN){S.critical=(H.value[1].value.charCodeAt(0)!==0);S.value=H.value[2].value}else{S.value=H.value[1].value}if(S.id in m){S.name=m[S.id];if(S.name==="keyUsage"){var V=t.fromDer(S.value);var U=0;var T=0;if(V.value.length>1){U=V.value.charCodeAt(1);T=V.value.length>2?V.value.charCodeAt(2):0}S.digitalSignature=(U&128)===128;S.nonRepudiation=(U&64)===64;S.keyEncipherment=(U&32)===32;S.dataEncipherment=(U&16)===16;S.keyAgreement=(U&8)===8;S.keyCertSign=(U&4)===4;S.cRLSign=(U&2)===2;S.encipherOnly=(U&1)===1;S.decipherOnly=(T&128)===128}else{if(S.name==="basicConstraints"){var V=t.fromDer(S.value);if(V.value.length>0){S.cA=(V.value[0].value.charCodeAt(0)!==0)}else{S.cA=false}if(V.value.length>1){var P=p.util.createBuffer(V.value[1].value);S.pathLenConstraint=P.getInt(P.length()<<3)}}else{if(S.name==="extKeyUsage"){var V=t.fromDer(S.value);for(var N=0;N<V.value.length;++N){var J=t.derToOid(V.value[N].value);if(J in m){S[m[J]]=true}else{S[J]=true}}}else{if(S.name==="subjectAltName"||S.name==="issuerAltName"){S.altNames=[];var M;var V=t.fromDer(S.value);for(var I=0;I<V.value.length;++I){M=V.value[I];var G={type:M.type,value:M.value};S.altNames.push(G);switch(M.type){case 1:case 2:case 6:break;case 7:break;case 8:G.oid=t.derToOid(M.value);break;default:}}}}}}}R.push(S)}}return R};j.pemToDer=function(G){var H=p.pem.decode(G)[0];if(H.procType&&H.procType.type==="ENCRYPTED"){throw {message:"Could not convert PEM to DER; PEM is encrypted."}}return p.util.createBuffer(H.body)};var r=function(G){var H=G.toString(16);if(H[0]>="8"){H="00"+H}return p.util.hexToBytes(H)};var g=function(I,J,G){var K={};if(I!==m["RSASSA-PSS"]){return K}if(G){K={hash:{algorithmOid:m.sha1},mgf:{algorithmOid:m.mgf1,hash:{algorithmOid:m.sha1}},saltLength:20}}var H={};var L=[];if(!t.validate(J,u,H,L)){throw {message:"Cannot read RSASSA-PSS parameter block.",errors:L}}if(H.hashOid!==undefined){K.hash=K.hash||{};K.hash.algorithmOid=t.derToOid(H.hashOid)}if(H.maskGenOid!==undefined){K.mgf=K.mgf||{};K.mgf.algorithmOid=t.derToOid(H.maskGenOid);K.mgf.hash=K.mgf.hash||{};K.mgf.hash.algorithmOid=t.derToOid(H.maskGenHashOid)}if(H.saltLength!==undefined){K.saltLength=H.saltLength.charCodeAt(0)}return K};j.certificateFromPem=function(H,K,G){var J=p.pem.decode(H)[0];if(J.type!=="CERTIFICATE"&&J.type!=="X509 CERTIFICATE"&&J.type!=="TRUSTED CERTIFICATE"){throw {message:'Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".',headerType:J.type}}if(J.procType&&J.procType.type==="ENCRYPTED"){throw {message:"Could not convert certificate from PEM; PEM is encrypted."}}var I=t.fromDer(J.body,G);return j.certificateFromAsn1(I,K)};j.certificateToPem=function(G,I){var H={type:"CERTIFICATE",body:t.toDer(j.certificateToAsn1(G)).getBytes()};return p.pem.encode(H,{maxline:I})};j.publicKeyFromPem=function(G){var I=p.pem.decode(G)[0];if(I.type!=="PUBLIC KEY"&&I.type!=="RSA PUBLIC KEY"){throw {message:'Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".',headerType:I.type}}if(I.procType&&I.procType.type==="ENCRYPTED"){throw {message:"Could not convert public key from PEM; PEM is encrypted."}};var H=t.fromDer(I.body);return j.publicKeyFromAsn1(H)};j.publicKeyToPem=function(G,I){var H={type:"PUBLIC KEY",body:t.toDer(j.publicKeyToAsn1(G)).getBytes()};return p.pem.encode(H,{maxline:I})};j.publicKeyToRSAPublicKeyPem=function(G,I){var H={type:"RSA PUBLIC KEY",body:t.toDer(j.publicKeyToRSAPublicKey(G)).getBytes()};return p.pem.encode(H,{maxline:I})};j.privateKeyFromPem=function(G){var I=p.pem.decode(G)[0];if(I.type!=="PRIVATE KEY"&&I.type!=="RSA PRIVATE KEY"){throw {message:'Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".',headerType:I.type}}if(I.procType&&I.procType.type==="ENCRYPTED"){throw {message:"Could not convert private key from PEM; PEM is encrypted."}}var H=t.fromDer(I.body);return j.privateKeyFromAsn1(H)};j.privateKeyToPem=function(G,I){var H={type:"RSA PRIVATE KEY",body:t.toDer(j.privateKeyToAsn1(G)).getBytes()};return p.pem.encode(H,{maxline:I})};j.certificationRequestFromPem=function(H,K,G){var J=p.pem.decode(H)[0];if(J.type!=="CERTIFICATE REQUEST"){throw {message:'Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".',headerType:J.type}}if(J.procType&&J.procType.type==="ENCRYPTED"){throw {message:"Could not convert certification request from PEM; PEM is encrypted."}}var I=t.fromDer(J.body,G);return j.certificationRequestFromAsn1(I,K)};j.certificationRequestToPem=function(G,I){var H={type:"CERTIFICATE REQUEST",body:t.toDer(j.certificationRequestToAsn1(G)).getBytes()};return p.pem.encode(H,{maxline:I})};j.createCertificate=function(){var G={};G.version=2;G.serialNumber="00";G.signatureOid=null;G.signature=null;G.siginfo={};G.siginfo.algorithmOid=null;G.validity={};G.validity.notBefore=new Date();G.validity.notAfter=new Date();G.issuer={};G.issuer.getField=function(I){return i(G.issuer,I)};G.issuer.addField=function(I){H([I]);G.issuer.attributes.push(I)};G.issuer.attributes=[];G.issuer.hash=null;G.subject={};G.subject.getField=function(I){return i(G.subject,I)};G.subject.addField=function(I){H([I]);G.subject.attributes.push(I)};G.subject.attributes=[];G.subject.hash=null;G.extensions=[];G.publicKey=null;G.md=null;var H=function(J){var I;for(var K=0;K<J.length;++K){I=J[K];if(typeof(I.name)==="undefined"){if(I.type&&I.type in j.oids){I.name=j.oids[I.type]}else{if(I.shortName&&I.shortName in w){I.name=j.oids[w[I.shortName]]}}}if(typeof(I.type)==="undefined"){if(I.name&&I.name in j.oids){I.type=j.oids[I.name]}else{throw {message:"Attribute type not specified.",attribute:I}}}if(typeof(I.shortName)==="undefined"){if(I.name&&I.name in w){I.shortName=w[I.name]}}if(typeof(I.value)==="undefined"){throw {message:"Attribute value not specified.",attribute:I}}}};G.setSubject=function(I,J){H(I);G.subject.attributes=I;delete G.subject.uniqueId;if(J){G.subject.uniqueId=J}G.subject.hash=null};G.setIssuer=function(I,J){H(I);G.issuer.attributes=I;delete G.issuer.uniqueId;if(J){G.issuer.uniqueId=J}G.issuer.hash=null};G.setExtensions=function(L){var P;for(var N=0;N<L.length;++N){P=L[N];if(typeof(P.name)==="undefined"){if(P.id&&P.id in j.oids){P.name=j.oids[P.id]}}if(typeof(P.id)==="undefined"){if(P.name&&P.name in j.oids){P.id=j.oids[P.name]}else{throw {message:"Extension ID not specified.",extension:P}}}if(typeof(P.value)==="undefined"){if(P.name==="keyUsage"){var K=0;var R=0;var Q=0;if(P.digitalSignature){R|=128;K=7}if(P.nonRepudiation){R|=64;K=6}if(P.keyEncipherment){R|=32;K=5}if(P.dataEncipherment){R|=16;K=4}if(P.keyAgreement){R|=8;K=3}if(P.keyCertSign){R|=4;K=2}if(P.cRLSign){R|=2;K=1}if(P.encipherOnly){R|=1;K=0}if(P.decipherOnly){Q|=128;K=7}var S=String.fromCharCode(K);if(Q!==0){S+=String.fromCharCode(R)+String.fromCharCode(Q)}else{if(R!==0){S+=String.fromCharCode(R)}}P.value=t.create(t.Class.UNIVERSAL,t.Type.BITSTRING,false,S)}else{if(P.name==="basicConstraints"){P.value=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[]);if(P.cA){P.value.value.push(t.create(t.Class.UNIVERSAL,t.Type.BOOLEAN,false,String.fromCharCode(255)))}if(P.pathLenConstraint){var O=P.pathLenConstraint;var M=p.util.createBuffer();M.putInt(O,O.toString(2).length);P.value.value.push(t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,M.getBytes()))}}else{if(P.name==="extKeyUsage"){P.value=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[]);var U=P.value.value;for(var T in P){if(P[T]!==true){continue}if(T in m){U.push(t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(m[T]).getBytes()))}else{if(T.indexOf(".")!==-1){U.push(t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(T).getBytes()))}}}}else{if(P.name==="subjectAltName"||P.name==="issuerAltName"){P.value=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[]);var I;for(var J=0;J<P.altNames.length;++J){I=P.altNames[J];var S=I.value;if(I.type===8){S=t.oidToDer(S)}P.value.value.push(t.create(t.Class.CONTEXT_SPECIFIC,I.type,false,S))}}}}}if(typeof(P.value)==="undefined"){throw {message:"Extension value not specified.",extension:P}}}}G.extensions=L};G.getExtension=function(I){if(typeof I==="string"){I={name:I}}var L=null;var K;for(var J=0;L===null&&J<G.extensions.length;++J){K=G.extensions[J];if(I.id&&K.id===I.id){L=K}else{if(I.name&&K.name===I.name){L=K}}}return L};G.sign=function(J){G.signatureOid=m.sha1withRSAEncryption;G.siginfo.algorithmOid=m.sha1withRSAEncryption;G.md=p.md.sha1.create();G.tbsCertificate=j.getTBSCertificate(G);var I=t.toDer(G.tbsCertificate);G.md.update(I.getBytes());G.signature=J.sign(G.md)};G.verify=function(I){var N=false;var O=I.md;if(O===null){if(I.signatureOid in m){var K=m[I.signatureOid];switch(K){case"sha1withRSAEncryption":O=p.md.sha1.create();break;case"md5withRSAEncryption":O=p.md.md5.create();break;case"sha256WithRSAEncryption":O=p.md.sha256.create();break;case"RSASSA-PSS":O=p.md.sha256.create();break}}if(O===null){throw {message:"Could not compute certificate digest. Unknown signature OID.",signatureOid:I.signatureOid}}var P=I.tbsCertificate||j.getTBSCertificate(I);var Q=t.toDer(P);O.update(Q.getBytes())}if(O!==null){var J=undefined;switch(I.signatureOid){case m.sha1withRSAEncryption:J=undefined;break;case m["RSASSA-PSS"]:var M,L;M=m[I.signatureParameters.mgf.hash.algorithmOid];if(M===undefined||p.md[M]===undefined){throw {message:"Unsupported MGF hash function.",oid:I.signatureParameters.mgf.hash.algorithmOid,name:M}}L=m[I.signatureParameters.mgf.algorithmOid];if(L===undefined||p.mgf[L]===undefined){throw {message:"Unsupported MGF function.",oid:I.signatureParameters.mgf.algorithmOid,name:L}}L=p.mgf[L].create(p.md[M].create());M=m[I.signatureParameters.hash.algorithmOid];if(M===undefined||p.md[M]===undefined){throw {message:"Unsupported RSASSA-PSS hash function.",oid:I.signatureParameters.hash.algorithmOid,name:M}}J=p.pss.create(p.md[M].create(),L,I.signatureParameters.saltLength);break}N=G.publicKey.verify(O.digest().getBytes(),I.signature,J)}return N};G.isIssuer=function(L){var N=false;var J=G.issuer;var K=L.subject;if(J.hash&&K.hash){N=(J.hash===K.hash)}else{if(J.attributes.length===K.attributes.length){N=true;var I,M;for(var O=0;N&&O<J.attributes.length;++O){I=J.attributes[O];M=K.attributes[O];if(I.type!==M.type||I.value!==M.value){N=false}}}}return N};return G};j.certificateFromAsn1=function(K,R){var S={};var Q=[];if(!t.validate(K,x,S,Q)){throw {message:"Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.",errors:Q}}if(typeof S.certSignature!=="string"){var J="\x00";for(var L=0;L<S.certSignature.length;++L){J+=t.toDer(S.certSignature[L]).getBytes()}S.certSignature=J}var I=t.derToOid(S.publicKeyOid);if(I!==j.oids.rsaEncryption){throw {message:"Cannot read public key. OID is not RSA."}}var M=j.createCertificate();M.version=S.certVersion?S.certVersion.charCodeAt(0):0;var G=p.util.createBuffer(S.certSerialNumber);M.serialNumber=G.toHex();M.signatureOid=p.asn1.derToOid(S.certSignatureOid);M.signatureParameters=g(M.signatureOid,S.certSignatureParams,true);M.siginfo.algorithmOid=p.asn1.derToOid(S.certinfoSignatureOid);M.siginfo.parameters=g(M.siginfo.algorithmOid,S.certinfoSignatureParams,false);var H=p.util.createBuffer(S.certSignature);++H.read;M.signature=H.getBytes();var O=[];if(S.certValidity1UTCTime!==undefined){O.push(t.utcTimeToDate(S.certValidity1UTCTime))}if(S.certValidity2GeneralizedTime!==undefined){O.push(t.generalizedTimeToDate(S.certValidity2GeneralizedTime))}if(S.certValidity3UTCTime!==undefined){O.push(t.utcTimeToDate(S.certValidity3UTCTime))}if(S.certValidity4GeneralizedTime!==undefined){O.push(t.generalizedTimeToDate(S.certValidity4GeneralizedTime))}if(O.length>2){throw {message:"Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate."}}if(O.length<2){throw {message:"Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime."}}M.validity.notBefore=O[0];M.validity.notAfter=O[1];M.tbsCertificate=S.tbsCertificate;if(R){M.md=null;if(M.signatureOid in m){var I=m[M.signatureOid];switch(I){case"sha1withRSAEncryption":M.md=p.md.sha1.create();break;case"md5withRSAEncryption":M.md=p.md.md5.create();break;case"sha256WithRSAEncryption":M.md=p.md.sha256.create();break;case"RSASSA-PSS":M.md=p.md.sha256.create();break}}if(M.md===null){throw {message:"Could not compute certificate digest. Unknown signature OID.",signatureOid:M.signatureOid}}var T=t.toDer(M.tbsCertificate);M.md.update(T.getBytes())}var N=p.md.sha1.create();M.issuer.getField=function(U){return i(M.issuer,U)};M.issuer.addField=function(U){_fillMissingFields([U]);M.issuer.attributes.push(U)};M.issuer.attributes=j.RDNAttributesAsArray(S.certIssuer,N);if(S.certIssuerUniqueId){M.issuer.uniqueId=S.certIssuerUniqueId}M.issuer.hash=N.digest().toHex();var P=p.md.sha1.create();M.subject.getField=function(U){return i(M.subject,U)};M.subject.addField=function(U){_fillMissingFields([U]);M.subject.attributes.push(U)};M.subject.attributes=j.RDNAttributesAsArray(S.certSubject,P);if(S.certSubjectUniqueId){M.subject.uniqueId=S.certSubjectUniqueId}M.subject.hash=P.digest().toHex();if(S.certExtensions){M.extensions=o(S.certExtensions)}else{M.extensions=[]}M.publicKey=j.publicKeyFromAsn1(S.subjectPublicKeyInfo);return M};j.certificationRequestFromAsn1=function(I,O){var P={};var N=[];if(!t.validate(I,q,P,N)){throw {message:"Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.",errors:N}}if(typeof P.csrSignature!=="string"){var L="\x00";for(var J=0;J<P.csrSignature.length;++J){L+=t.toDer(P.csrSignature[J]).getBytes()}P.csrSignature=L}var H=t.derToOid(P.publicKeyOid);if(H!==j.oids.rsaEncryption){throw {message:"Cannot read public key. OID is not RSA."}}var K=j.createCertificationRequest();K.version=P.csrVersion?P.csrVersion.charCodeAt(0):0;K.signatureOid=p.asn1.derToOid(P.csrSignatureOid);K.signatureParameters=g(K.signatureOid,P.csrSignatureParams,true);K.siginfo.algorithmOid=p.asn1.derToOid(P.csrSignatureOid);K.siginfo.parameters=g(K.siginfo.algorithmOid,P.csrSignatureParams,false);var G=p.util.createBuffer(P.csrSignature);++G.read;K.signature=G.getBytes();K.certificationRequestInfo=P.certificationRequestInfo;if(O){K.md=null;if(K.signatureOid in m){var H=m[K.signatureOid];switch(H){case"sha1withRSAEncryption":K.md=p.md.sha1.create();break;case"md5withRSAEncryption":K.md=p.md.md5.create();break;case"sha256WithRSAEncryption":K.md=p.md.sha256.create();break;case"RSASSA-PSS":K.md=p.md.sha256.create();break}}if(K.md===null){throw {message:"Could not compute certification request digest. Unknown signature OID.",signatureOid:K.signatureOid}}var Q=t.toDer(K.certificationRequestInfo);K.md.update(Q.getBytes())}var M=p.md.sha1.create();K.subject.getField=function(R){return i(K.subject,R)};K.subject.addField=function(R){_fillMissingFields([R]);K.subject.attributes.push(R)};K.subject.attributes=j.RDNAttributesAsArray(P.certificationRequestInfoSubject,M);K.subject.hash=M.digest().toHex();K.publicKey=j.publicKeyFromAsn1(P.subjectPublicKeyInfo);K.getAttribute=function(R){return i(K.attributes,R)};K.addAttribute=function(R){_fillMissingFields([R]);K.attributes.push(R)};K.attributes=j.CRIAttributesAsArray(P.certificationRequestInfoAttributes);return K};j.createCertificationRequest=function(){var G={};G.version=0;G.signatureOid=null;G.signature=null;G.siginfo={};G.siginfo.algorithmOid=null;G.subject={};G.subject.getField=function(I){return i(G.subject,I)};G.subject.addField=function(I){H([I]);G.subject.attributes.push(I)};G.subject.attributes=[];G.subject.hash=null;G.publicKey=null;G.attributes=[];G.getAttribute=function(I){return i(G.attributes,I)};G.addAttribute=function(I){H([I]);G.attributes.push(I)};G.md=null;var H=function(J){var I;for(var K=0;K<J.length;++K){I=J[K];if(typeof(I.name)==="undefined"){if(I.type&&I.type in j.oids){I.name=j.oids[I.type]}else{if(I.shortName&&I.shortName in w){I.name=j.oids[w[I.shortName]]}}}if(typeof(I.type)==="undefined"){if(I.name&&I.name in j.oids){I.type=j.oids[I.name]}else{throw {message:"Attribute type not specified.",attribute:I}}}if(typeof(I.shortName)==="undefined"){if(I.name&&I.name in w){I.shortName=w[I.name]}}if(typeof(I.value)==="undefined"){throw {message:"Attribute value not specified.",attribute:I}}}};G.setSubject=function(I){H(I);G.subject.attributes=I;G.subject.hash=null};G.setAttributes=function(I){H(I);G.attributes=I};G.sign=function(J){G.signatureOid=m.sha1withRSAEncryption;G.siginfo.algorithmOid=m.sha1withRSAEncryption;G.md=p.md.sha1.create();G.certificationRequestInfo=j.getCertificationRequestInfo(G);var I=t.toDer(G.certificationRequestInfo);G.md.update(I.getBytes());G.signature=J.sign(G.md)};G.verify=function(){var P=false;var M=G.md;if(M===null){if(G.signatureOid in m){var L=m[G.signatureOid];switch(L){case"sha1withRSAEncryption":M=p.md.sha1.create();break;case"md5withRSAEncryption":M=p.md.md5.create();break;case"sha256WithRSAEncryption":M=p.md.sha256.create();break;case"RSASSA-PSS":M=p.md.sha256.create();break}}if(M===null){throw {message:"Could not compute certification request digest. Unknown signature OID.",signatureOid:G.signatureOid}}var J=G.certificationRequestInfo||j.getCertificationRequestInfo(G);var I=t.toDer(J);M.update(I.getBytes())}if(M!==null){var K=undefined;switch(G.signatureOid){case m.sha1withRSAEncryption:K=undefined;break;case m["RSASSA-PSS"]:var O,N;O=m[G.signatureParameters.mgf.hash.algorithmOid];if(O===undefined||p.md[O]===undefined){throw {message:"Unsupported MGF hash function.",oid:G.signatureParameters.mgf.hash.algorithmOid,name:O}}N=m[G.signatureParameters.mgf.algorithmOid];if(N===undefined||p.mgf[N]===undefined){throw {message:"Unsupported MGF function.",oid:G.signatureParameters.mgf.algorithmOid,name:N}}N=p.mgf[N].create(p.md[O].create());O=m[G.signatureParameters.hash.algorithmOid];if(O===undefined||p.md[O]===undefined){throw {message:"Unsupported RSASSA-PSS hash function.",oid:G.signatureParameters.hash.algorithmOid,name:O}}K=p.pss.create(p.md[O].create(),N,G.signatureParameters.saltLength);break}P=G.publicKey.verify(M.digest().getBytes(),G.signature,K)}return P};return G};function n(M){var L=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[]);var G,N;var H=M.attributes;for(var I=0;I<H.length;++I){G=H[I];var K=G.value;var J=t.Type.PRINTABLESTRING;if("valueTagClass" in G){J=G.valueTagClass;if(J===t.Type.UTF8){K=p.util.encodeUtf8(K)}}N=t.create(t.Class.UNIVERSAL,t.Type.SET,true,[t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(G.type).getBytes()),t.create(t.Class.UNIVERSAL,J,false,K)])]);L.value.push(N)}return L}function h(J){var M=t.create(t.Class.CONTEXT_SPECIFIC,3,true,[]);var H=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[]);M.value.push(H);var K,G;for(var I=0;I<J.length;++I){K=J[I];G=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[]);H.value.push(G);G.value.push(t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(K.id).getBytes()));if(K.critical){G.value.push(t.create(t.Class.UNIVERSAL,t.Type.BOOLEAN,false,String.fromCharCode(255)))}var L=K.value;if(typeof K.value!=="string"){L=t.toDer(L).getBytes()}G.value.push(t.create(t.Class.UNIVERSAL,t.Type.OCTETSTRING,false,L))}return M}function B(G,I){switch(G){case m["RSASSA-PSS"]:var H=[];if(I.hash.algorithmOid!==undefined){H.push(t.create(t.Class.CONTEXT_SPECIFIC,0,true,[t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(I.hash.algorithmOid).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.NULL,false,"")])]))}if(I.mgf.algorithmOid!==undefined){H.push(t.create(t.Class.CONTEXT_SPECIFIC,1,true,[t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(I.mgf.algorithmOid).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(I.mgf.hash.algorithmOid).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.NULL,false,"")])])]))}if(I.saltLength!==undefined){H.push(t.create(t.Class.CONTEXT_SPECIFIC,2,true,[t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,String.fromCharCode(I.saltLength))]))}return t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,H);default:return t.create(t.Class.UNIVERSAL,t.Type.NULL,false,"")}}function E(K){var N=t.create(t.Class.CONTEXT_SPECIFIC,0,true,[]);if(K.attributes.length===0){return N}var I=K.attributes;for(var J=0;J<I.length;++J){var G=I[J];var M=G.value;var L=t.Type.UTF8;if("valueTagClass" in G){L=G.valueTagClass}if(L===t.Type.UTF8){M=p.util.encodeUtf8(M)}var H=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(G.type).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.SET,true,[t.create(t.Class.UNIVERSAL,L,false,M)])]);N.value.push(H)}return N}j.getTBSCertificate=function(H){var G=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.CONTEXT_SPECIFIC,0,true,[t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,String.fromCharCode(H.version))]),t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,p.util.hexToBytes(H.serialNumber)),t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(H.siginfo.algorithmOid).getBytes()),B(H.siginfo.algorithmOid,H.siginfo.parameters)]),n(H.issuer),t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.UTCTIME,false,t.dateToUtcTime(H.validity.notBefore)),t.create(t.Class.UNIVERSAL,t.Type.UTCTIME,false,t.dateToUtcTime(H.validity.notAfter))]),n(H.subject),j.publicKeyToAsn1(H.publicKey)]);if(H.issuer.uniqueId){G.value.push(t.create(t.Class.CONTEXT_SPECIFIC,1,true,[t.create(t.Class.UNIVERSAL,t.Type.BITSTRING,false,String.fromCharCode(0)+H.issuer.uniqueId)]))}if(H.subject.uniqueId){G.value.push(t.create(t.Class.CONTEXT_SPECIFIC,2,true,[t.create(t.Class.UNIVERSAL,t.Type.BITSTRING,false,String.fromCharCode(0)+H.subject.uniqueId)]))}if(H.extensions.length>0){G.value.push(h(H.extensions))}return G};j.getCertificationRequestInfo=function(H){var G=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,String.fromCharCode(H.version)),n(H.subject),j.publicKeyToAsn1(H.publicKey),E(H)]);return G};j.distinguishedNameToAsn1=function(G){return n(G)};j.certificateToAsn1=function(H){var G=H.tbsCertificate||j.getTBSCertificate(H);return t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[G,t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(H.signatureOid).getBytes()),B(H.signatureOid,H.signatureParameters)]),t.create(t.Class.UNIVERSAL,t.Type.BITSTRING,false,String.fromCharCode(0)+H.signature)])};j.certificationRequestToAsn1=function(H){var G=H.certificationRequestInfo||j.getCertificationRequestInfo(H);return t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[G,t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(H.signatureOid).getBytes()),B(H.signatureOid,H.signatureParameters)]),t.create(t.Class.UNIVERSAL,t.Type.BITSTRING,false,String.fromCharCode(0)+H.signature)])};j.createCaStore=function(J){var I={certs:{}};I.getIssuer=function(K){var M=null;if(!K.issuer.hash){var L=p.md.sha1.create();K.issuer.attributes=j.RDNAttributesAsArray(n(K.issuer),L);K.issuer.hash=L.digest().toHex()}if(K.issuer.hash in I.certs){M=I.certs[K.issuer.hash];if(p.util.isArray(M)){throw {message:"Resolving multiple issuer matches not implemented yet."}}}return M};I.addCertificate=function(L){if(typeof L==="string"){L=p.pki.certificateFromPem(L)}if(!L.subject.hash){var M=p.md.sha1.create();L.subject.attributes=j.RDNAttributesAsArray(n(L.subject),M);L.subject.hash=M.digest().toHex()}if(L.subject.hash in I.certs){var K=I.certs[L.subject.hash];if(!p.util.isArray(K)){K=[K]}K.push(L)}else{I.certs[L.subject.hash]=L}};if(J){for(var H=0;H<J.length;++H){var G=J[H];I.addCertificate(G)}}return I};j.certificateError={bad_certificate:"forge.pki.BadCertificate",unsupported_certificate:"forge.pki.UnsupportedCertificate",certificate_revoked:"forge.pki.CertificateRevoked",certificate_expired:"forge.pki.CertificateExpired",certificate_unknown:"forge.pki.CertificateUnknown",unknown_ca:"forge.pki.UnknownCertificateAuthority"};j.verifyCertificateChain=function(M,O,G){O=O.slice(0);var I=O.slice(0);var H=new Date();var K=true;var Q=null;var Y=0;var L=null;do{var W=O.shift();if(H<W.validity.notBefore||H>W.validity.notAfter){Q={message:"Certificate is not valid yet or has expired.",error:j.certificateError.certificate_expired,notBefore:W.validity.notBefore,notAfter:W.validity.notAfter,now:H}}else{var P=false;if(O.length>0){L=O[0];try{P=L.verify(W)}catch(T){}}else{var V=M.getIssuer(W);if(V===null){Q={message:"Certificate is not trusted.",error:j.certificateError.unknown_ca}}else{if(!p.util.isArray(V)){V=[V]}while(!P&&V.length>0){L=V.shift();try{P=L.verify(W)}catch(T){}}}}if(Q===null&&!P){Q={message:"Certificate signature is invalid.",error:j.certificateError.bad_certificate}}}if(Q===null&&!W.isIssuer(L)){Q={message:"Certificate issuer is invalid.",error:j.certificateError.bad_certificate}}if(Q===null){var Z={keyUsage:true,basicConstraints:true};for(var S=0;Q===null&&S<W.extensions.length;++S){var J=W.extensions[S];if(J.critical&&!(J.name in Z)){Q={message:"Certificate has an unsupported critical extension.",error:j.certificateError.unsupported_certificate}}}}if(!K||(O.length===0&&!L)){var R=W.getExtension("basicConstraints");var N=W.getExtension("keyUsage");if(N!==null){if(!N.keyCertSign||R===null){Q={message:"Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",error:j.certificateError.bad_certificate}}}if(Q===null&&R!==null&&!R.cA){Q={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:j.certificateError.bad_certificate}}}var U=(Q===null)?true:Q.error;var X=G?G(U,Y,I):U;if(X===true){Q=null}else{if(U===true){Q={message:"The application rejected the certificate.",error:j.certificateError.bad_certificate}}if(X||X===0){if(typeof X==="object"&&!p.util.isArray(X)){if(X.message){Q.message=X.message}if(X.error){Q.error=X.error}}else{if(typeof X==="string"){Q.error=X}}}throw Q}K=false;++Y}while(O.length>0);return true};j.publicKeyFromAsn1=function(J){var G={};var L=[];if(t.validate(J,A,G,L)){var H=t.derToOid(G.publicKeyOid);if(H!==j.oids.rsaEncryption){throw {message:"Cannot read public key. Unknown OID.",oid:H}}J=G.rsaPublicKey}L=[];if(!t.validate(J,v,G,L)){throw {message:"Cannot read public key. ASN.1 object does not contain an RSAPublicKey.",errors:L}}var K=p.util.createBuffer(G.publicKeyModulus).toHex();var I=p.util.createBuffer(G.publicKeyExponent).toHex();return j.setRsaPublicKey(new BigInteger(K,16),new BigInteger(I,16))};j.publicKeyToAsn1=j.publicKeyToSubjectPublicKeyInfo=function(G){return t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(j.oids.rsaEncryption).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.NULL,false,"")]),t.create(t.Class.UNIVERSAL,t.Type.BITSTRING,false,[j.publicKeyToRSAPublicKey(G)])])};j.publicKeyToRSAPublicKey=function(G){return t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,r(G.n)),t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,r(G.e))])};j.privateKeyFromAsn1=function(J){var P={};var O=[];if(t.validate(J,s,P,O)){J=t.fromDer(p.util.createBuffer(P.privateKey))}P={};O=[];if(!t.validate(J,z,P,O)){throw {message:"Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.",errors:O}}var I,K,L,H,G,N,M,Q;I=p.util.createBuffer(P.privateKeyModulus).toHex();K=p.util.createBuffer(P.privateKeyPublicExponent).toHex();L=p.util.createBuffer(P.privateKeyPrivateExponent).toHex();H=p.util.createBuffer(P.privateKeyPrime1).toHex();G=p.util.createBuffer(P.privateKeyPrime2).toHex();N=p.util.createBuffer(P.privateKeyExponent1).toHex();M=p.util.createBuffer(P.privateKeyExponent2).toHex();Q=p.util.createBuffer(P.privateKeyCoefficient).toHex();return j.setRsaPrivateKey(new BigInteger(I,16),new BigInteger(K,16),new BigInteger(L,16),new BigInteger(H,16),new BigInteger(G,16),new BigInteger(N,16),new BigInteger(M,16),new BigInteger(Q,16))};j.privateKeyToAsn1=j.privateKeyToRSAPrivateKey=function(G){return t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,String.fromCharCode(0)),t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,r(G.n)),t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,r(G.e)),t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,r(G.d)),t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,r(G.p)),t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,r(G.q)),t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,r(G.dP)),t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,r(G.dQ)),t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,r(G.qInv))])};j.wrapRsaPrivateKey=function(G){return t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,"\x00"),t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(m.rsaEncryption).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.NULL,false,"")]),t.create(t.Class.UNIVERSAL,t.Type.OCTETSTRING,false,t.toDer(G).getBytes())])};j.encryptPrivateKeyInfo=function(J,R,T){T=T||{};T.saltSize=T.saltSize||8;T.count=T.count||2048;T.algorithm=T.algorithm||"aes128";var L=p.random.getBytes(T.saltSize);var P=T.count;var Q=p.util.createBuffer();Q.putInt16(P);var U;var M;var G;if(T.algorithm.indexOf("aes")===0){var S;if(T.algorithm==="aes128"){U=16;S=m["aes128-CBC"]}else{if(T.algorithm==="aes192"){U=24;S=m["aes192-CBC"]}else{if(T.algorithm==="aes256"){U=32;S=m["aes256-CBC"]}else{throw {message:"Cannot encrypt private key. Unknown encryption algorithm.",algorithm:T.algorithm}}}}var O=p.pkcs5.pbkdf2(R,L,P,U);var H=p.random.getBytes(16);var N=p.aes.createEncryptionCipher(O);N.start(H);N.update(t.toDer(J));N.finish();G=N.output.getBytes();M=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(m.pkcs5PBES2).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(m.pkcs5PBKDF2).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OCTETSTRING,false,L),t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,Q.getBytes())])]),t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(S).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.OCTETSTRING,false,H)])])])}else{if(T.algorithm==="3des"){U=24;var I=new p.util.ByteBuffer(L);var O=p.pkcs12.generateKey(R,I,1,P,U);var H=p.pkcs12.generateKey(R,I,2,P,U);var N=p.des.createEncryptionCipher(O);N.start(H);N.update(t.toDer(J));N.finish();G=N.output.getBytes();M=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OID,false,t.oidToDer(m["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[t.create(t.Class.UNIVERSAL,t.Type.OCTETSTRING,false,L),t.create(t.Class.UNIVERSAL,t.Type.INTEGER,false,Q.getBytes())])])}else{throw {message:"Cannot encrypt private key. Unknown encryption algorithm.",algorithm:T.algorithm}}}var K=t.create(t.Class.UNIVERSAL,t.Type.SEQUENCE,true,[M,t.create(t.Class.UNIVERSAL,t.Type.OCTETSTRING,false,G)]);return K};j.pbe.getCipherForPBES2=function(G,I,O){var P={};var N=[];if(!t.validate(I,C,P,N)){throw {message:"Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.",errors:N}}G=t.derToOid(P.kdfOid);if(G!==j.oids.pkcs5PBKDF2){throw {message:"Cannot read encrypted private key. Unsupported key derivation function OID.",oid:G,supportedOids:["pkcs5PBKDF2"]}}G=t.derToOid(P.encOid);if(G!==j.oids["aes128-CBC"]&&G!==j.oids["aes192-CBC"]&&G!==j.oids["aes256-CBC"]){throw {message:"Cannot read encrypted private key. Unsupported encryption scheme OID.",oid:G,supportedOids:["aes128-CBC","aes192-CBC","aes256-CBC"]}}var J=P.kdfSalt;var M=p.util.createBuffer(P.kdfIterationCount);M=M.getInt(M.length()<<3);var Q;if(G===j.oids["aes128-CBC"]){Q=16}else{if(G===j.oids["aes192-CBC"]){Q=24}else{if(G===j.oids["aes256-CBC"]){Q=32}}}var L=p.pkcs5.pbkdf2(O,J,M,Q);var H=P.encIv;var K=p.aes.createDecryptionCipher(L);K.start(H);return K};j.pbe.getCipherForPKCS12PBE=function(H,J,P){var Q={};var M=[];if(!t.validate(J,F,Q,M)){throw {message:"Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.",errors:M}}var K=p.util.createBuffer(Q.salt);var L=p.util.createBuffer(Q.iterations);L=L.getInt(L.length()<<3);var R,G,O;switch(H){case j.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:R=24;G=8;O=p.des.startDecrypting;break;case j.oids["pbewithSHAAnd40BitRC2-CBC"]:R=5;G=8;O=function(U,T){var S=p.rc2.createDecryptionCipher(U,40);S.start(T,null);return S};break;default:throw {message:"Cannot read PKCS #12 PBE data block. Unsupported OID.",oid:H}}var N=p.pkcs12.generateKey(P,K,1,L,R);var I=p.pkcs12.generateKey(P,K,2,L,G);return O(N,I)};j.pbe.getCipher=function(H,I,G){switch(H){case j.oids.pkcs5PBES2:return j.pbe.getCipherForPBES2(H,I,G);break;case j.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case j.oids["pbewithSHAAnd40BitRC2-CBC"]:return j.pbe.getCipherForPKCS12PBE(H,I,G);break;default:throw {message:"Cannot read encrypted PBE data block. Unsupported OID.",oid:H,supportedOids:["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"]}}};j.decryptPrivateKeyInfo=function(M,I){var L=null;var H={};var N=[];if(!t.validate(M,y,H,N)){throw {message:"Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.",errors:N}}var J=t.derToOid(H.encryptionOid);var G=j.pbe.getCipher(J,H.encryptionParams,I);var K=p.util.createBuffer(H.encryptedData);G.update(K);if(G.finish()){L=t.fromDer(G.output)}return L};j.encryptedPrivateKeyToPem=function(G,I){var H={type:"ENCRYPTED PRIVATE KEY",body:t.toDer(G).getBytes()};return p.pem.encode(H,{maxline:I})};j.encryptedPrivateKeyFromPem=function(G){var H=p.pem.decode(G)[0];if(H.type!=="ENCRYPTED PRIVATE KEY"){throw {message:'Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".',headerType:H.type}}if(H.procType&&H.procType.type==="ENCRYPTED"){throw {message:"Could not convert encrypted private key from PEM; PEM is encrypted."}}return t.fromDer(H.body)};j.encryptRsaPrivateKey=function(L,N,P){P=P||{};if(!P.legacy){var I=j.wrapRsaPrivateKey(j.privateKeyToAsn1(L));I=j.encryptPrivateKeyInfo(I,N,P);return j.encryptedPrivateKeyToPem(I)}var M;var H;var Q;var O;switch(P.algorithm){case"aes128":M="AES-128-CBC";Q=16;H=p.random.getBytes(16);O=p.aes.createEncryptionCipher;break;case"aes192":M="AES-192-CBC";Q=24;H=p.random.getBytes(16);O=p.aes.createEncryptionCipher;break;case"aes256":M="AES-256-CBC";Q=32;H=p.random.getBytes(16);O=p.aes.createEncryptionCipher;break;case"3des":M="DES-EDE3-CBC";Q=24;H=p.random.getBytes(8);O=p.des.createEncryptionCipher;break;default:throw {message:'Could not encrypt RSA private key; unsupported encryption algorithm "'+P.algorithm+'".',algorithm:P.algorithm}}var K=D(N,H.substr(0,8),Q);var J=O(K);J.start(H);J.update(t.toDer(j.privateKeyToAsn1(L)));J.finish();var G={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:M,parameters:p.util.bytesToHex(H).toUpperCase()},body:J.output.getBytes()};return p.pem.encode(G)};j.decryptRsaPrivateKey=function(J,M){var I=null;var G=p.pem.decode(J)[0];if(G.type!=="ENCRYPTED PRIVATE KEY"&&G.type!=="PRIVATE KEY"&&G.type!=="RSA PRIVATE KEY"){throw {message:'Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".',headerType:G.type}}if(G.procType&&G.procType.type==="ENCRYPTED"){var O;var N;switch(G.dekInfo.algorithm){case"DES-EDE3-CBC":O=24;N=p.des.createDecryptionCipher;break;case"AES-128-CBC":O=16;N=p.aes.createDecryptionCipher;break;case"AES-192-CBC":O=24;N=p.aes.createDecryptionCipher;break;case"AES-256-CBC":O=32;N=p.aes.createDecryptionCipher;break;case"RC2-40-CBC":O=5;N=function(P){return p.rc2.createDecryptionCipher(P,40)};break;case"RC2-64-CBC":O=8;N=function(P){return p.rc2.createDecryptionCipher(P,64)};break;case"RC2-128-CBC":O=16;N=function(P){return p.rc2.createDecryptionCipher(P,128)};break;default:throw {message:'Could not decrypt private key; unsupported encryption algorithm "'+G.dekInfo.algorithm+'".',algorithm:G.dekInfo.algorithm}}var H=p.util.hexToBytes(G.dekInfo.parameters);var L=D(M,H.substr(0,8),O);var K=N(L);K.start(H);K.update(p.util.createBuffer(G.body));if(K.finish()){I=K.output.getBytes()}else{return I}}else{I=G.body}if(G.type==="ENCRYPTED PRIVATE KEY"){I=j.decryptPrivateKeyInfo(t.fromDer(I),M)}else{I=t.fromDer(I)}if(I!==null){I=j.privateKeyFromAsn1(I)}return I};function D(H,J,G){var L=[l(H+J)];for(var K=16,I=1;K<G;++I,K+=16){L.push(l(L[I-1]+H+J))}return L.join("").substr(0,G)}function l(G){return p.md.md5.create().update(G).digest().getBytes()}j.setRsaPublicKey=j.rsa.setPublicKey;j.setRsaPrivateKey=j.rsa.setPrivateKey}var b="pki";var f=["./aes","./asn1","./des","./jsbn","./md","./mgf","./oids","./pem","./pbkdf2","./pkcs12","./pss","./random","./rc2","./rsa","./util"];var e=null;if(typeof define!=="function"){d(forge);return}var c=["require","module"].concat(f);var a=function(g,h){h.exports=function(k){var l=f.map(function(i){return g(i)}).concat(d);k=k||{};k.defined=k.defined||{};if(k.defined[b]){return k[b]}k.defined[b]=true;for(var j=0;j<l.length;++j){l[j](k)}return k[b]}};if(e){e(c,a)}else{if(typeof define==="function"){define([].concat(c),function(){a.apply(null,Array.prototype.slice.call(arguments,0))})}}})();(function(){function d(g){var i=g.pem=g.pem||{};i.encode=function(n,k){k=k||{};var m="-----BEGIN "+n.type+"-----\r\n";var o;if(n.procType){o={name:"Proc-Type",values:[String(n.procType.version),n.procType.type]};m+=h(o)}if(n.contentDomain){o={name:"Content-Domain",values:[n.contentDomain]};m+=h(o)}if(n.dekInfo){o={name:"DEK-Info",values:[n.dekInfo.algorithm]};if(n.dekInfo.parameters){o.values.push(n.dekInfo.parameters)}m+=h(o)}if(n.headers){for(var l=0;l<n.headers.length;++l){m+=h(n.headers[l])}}if(n.procType){m+="\r\n"}m+=g.util.encode64(n.body,k.maxline||64)+"\r\n";m+="-----END "+n.type+"-----\r\n";return m};i.decode=function(t){var q=[];var l=/\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g;var s=/([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/;var w=/\r?\n/;var r;while(true){r=l.exec(t);if(!r){break}var m={type:r[1],procType:null,contentDomain:null,dekInfo:null,headers:[],body:g.util.decode64(r[3])};q.push(m);if(!r[2]){continue}var y=r[2].split(w);var v=0;while(r&&v<y.length){var x=y[v].replace(/\s+$/,"");for(var k=v+1;k<y.length;++k){var p=y[k];if(!/\s/.test(p[0])){break}x+=p;v=k}r=x.match(s);if(r){var o={name:r[1],values:[]};var u=r[2].split(",");for(var n=0;n<u.length;++n){o.values.push(j(u[n]))}if(!m.procType){if(o.name!=="Proc-Type"){throw {message:'Invalid PEM formatted message. The first encapsulated header must be "Proc-Type".'}}else{if(o.values.length!==2){throw {message:'Invalid PEM formatted message. The "Proc-Type" header must have two subfields.'}}}m.procType={version:u[0],type:u[1]}}else{if(!m.contentDomain&&o.name==="Content-Domain"){m.contentDomain=u[0]||""}else{if(!m.dekInfo&&o.name==="DEK-Info"){if(o.values.length===0){throw {message:'Invalid PEM formatted message. The "DEK-Info" header must have at least one subfield.'}}m.dekInfo={algorithm:u[0],parameters:u[1]||null}}else{m.headers.push(o)}}}}++v}if(m.procType==="ENCRYPTED"&&!m.dekInfo){throw {message:'Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".'}}}if(q.length===0){throw {message:"Invalid PEM formatted message."}}return q};function h(q){var p=q.name+": ";var k=[];for(var l=0;l<q.values.length;++l){k.push(q.values[l].replace(/^(\S+\r\n)/,function(s,r){return" "+r}))}p+=k.join(",")+"\r\n";var n=0;var m=-1;for(var l=0;l<p.length;++l,++n){if(n>65&&m!==-1){var o=p[m];if(o===","){++m;o=" "}p=p.substr(0,m)+"\r\n"+o+p.substr(m+1);n=(l-m-1);m=-1;++l}if(p[l]===" "||p[l]==="\t"||p[l]===","){m=l}}return p}function j(k){return k.replace(/^\s+/,"")}}var b="pem";var f=["./util"];var e=null;if(typeof define!=="function"){d(forge);return}var c=["require","module"].concat(f);var a=function(g,h){h.exports=function(k){var l=f.map(function(i){return g(i)}).concat(d);k=k||{};k.defined=k.defined||{};if(k.defined[b]){return k[b]}k.defined[b]=true;for(var j=0;j<l.length;++j){l[j](k)}return k[b]}};if(e){e(c,a)}else{if(typeof define==="function"){define([].concat(c),function(){a.apply(null,Array.prototype.slice.call(arguments,0))})}}})();
//tls.js (forge)
/**
* A Javascript implementation of Transport Layer Security (TLS).
*
* @author Dave Longley
*
* Copyright (c) 2009-2012 Digital Bazaar, Inc.
*/
(function(){var N=forge;N.tls={};/*if(typeof(window)!=="undefined"){var N=window.forge=window.forge||{};N.tls={}}else{if(typeof(module)!=="undefined"&&module.exports){var N={aes:require("./aes"),asn1:require("./asn1"),hmac:require("./hmac"),md:require("./md"),pki:require("./pki"),random:require("./random"),util:require("./util")};N.pki.oids=require("./oids");N.pki.rsa=require("./rsa");module.exports=N.tls={}}}*/var O=function(Y,ak,ad,X){var ac=N.util.createBuffer();var am=(Y.length>>1);var ag=am+(Y.length&1);var ao=Y.substr(0,ag);var al=Y.substr(am,ag);var aj=N.util.createBuffer();var ae=N.hmac.create();ad=ak+ad;var aa=Math.ceil(X/16);var ab=Math.ceil(X/20);ae.start("MD5",ao);var an=N.util.createBuffer();aj.putBytes(ad);for(var Z=0;Z<aa;++Z){var af=new Date().valueOf();ae.start(null,null);ae.update(aj.getBytes());aj.putBuffer(ae.digest());ae.start(null,null);ae.update(aj.bytes()+ad);an.putBuffer(ae.digest())}ae.start("SHA1",al);var ah=N.util.createBuffer();aj.clear();aj.putBytes(ad);for(var Z=0;Z<ab;++Z){ae.start(null,null);ae.update(aj.getBytes());aj.putBuffer(ae.digest());ae.start(null,null);ae.update(aj.bytes()+ad);ah.putBuffer(ae.digest())}ac.putBytes(N.util.xorBytes(an.getBytes(),ah.getBytes(),X));return ac};var e=function(Y,Z,X,aa){};/* hmac tls */var j=function(Z,ab,Y){/*console.log('key '+decode(Z))*/;var aa=N.hmac.create();aa.start("SHA1",Z);var X=N.util.createBuffer();X.putInt32(ab[0]);X.putInt32(ab[1]);X.putByte(Y.type);X.putByte(Y.version.major);X.putByte(Y.version.minor);X.putInt16(Y.length);X.putBytes(Y.fragment.bytes());/*console.log(X.data.toString('hex'));console.log('update');*/var tmp=X.getBytes();/*console.log(decode(tmp));*/aa.update(tmp);/*console.log('digest');*/var tmp2=aa.digest().getBytes();/*console.log(decode(tmp2));*/return tmp2};var I=function(ac,Y,aa){var ab=false;try{var X=ac.deflate(Y.fragment.getBytes());Y.fragment=N.util.createBuffer(X);Y.length=X.length;ab=true}catch(Z){}return ab};var p=function(ac,Y,aa){var ab=false;try{var X=ac.inflate(Y.fragment.getBytes());Y.fragment=N.util.createBuffer(X);Y.length=X.length;ab=true}catch(Z){}return ab};var f=function(Y,aa){var ab=false;var ac=aa.macFunction(aa.macKey,aa.sequenceNumber,Y);Y.fragment.putBytes(ac);aa.updateSequenceNumber();var Z=aa.cipherState.init?null:aa.cipherState.iv;aa.cipherState.init=true;var X=aa.cipherState.cipher;X.start(Z);X.update(Y.fragment);if(X.finish(V)){Y.fragment=X.output;Y.length=Y.fragment.length();ab=true}return ab};var V=function(Z,X,Y){if(!Y){var aa=(X.length()==Z)?(Z-1):(Z-X.length()-1);X.fillWithByte(aa,aa+1)}return true};/* decrypt aes 128 */var r=function(ac,Z,aa){var ad=true;if(aa){var X=Z.length();var Y=Z.last();for(var ab=X-1-Y;ab<X-1;++ab){ad=ad&&(Z.at(ab)==Y)}if(ad){Z.truncate(Y+1)}};/*console.log('decrypt 128 cbc');console.log(Z.data.toString('hex'));*/return ad};/*decrypt aes*/var S=function(ab,ag){/*console.log('data to decrypt ')+console.log(ab.fragment.data.toString('hex'));*/var aa=false;var Y=ag.cipherState.init?null:ag.cipherState.iv;ag.cipherState.init=true;var ad=ag.cipherState.cipher;ad.start(Y);ad.update(ab.fragment);aa=ad.finish(r);var af=ag.macLength;var ae="";for(var Z=0;Z<af;++Z){ae+=String.fromCharCode(0)}var ac=ad.output.length();if(ac>=af){ab.fragment=ad.output.getBytes(ac-af);ae=ad.output.getBytes(af)}else{ab.fragment=ad.output.getBytes()}ab.fragment=N.util.createBuffer(ab.fragment);ab.length=ab.fragment.length();var X=ag.macFunction(ag.macKey,ag.sequenceNumber,ab);ag.updateSequenceNumber();/*console.log('decrypted fragment ');console.log(ab.fragment.data.toString('hex'));console.log('Mac '+decode(X)+' '+decode(ae));*/aa=(X===ae)&&aa;return aa};var d=function(Z,Y){var X=0;switch(Y){case 1:X=Z.getByte();break;case 2:X=Z.getInt16();break;case 3:X=Z.getInt24();break;case 4:X=Z.getInt32();break}return N.util.createBuffer(Z.getBytes(X))};var n=function(Y,X,Z){Y.putInt(Z.length(),X<<3);Y.putBuffer(Z)};var g={};g.Version={major:3,minor:1};g.MaxFragment=(1<<14)-1024;g.ConnectionEnd={server:0,client:1};g.PRFAlgorithm={tls_prf_sha256:0};g.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2};g.CipherType={stream:0,block:1,aead:2};g.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4};g.CompressionMethod={none:0,deflate:1};g.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23};g.HandshakeType={hello_request:0,client_hello:1,server_hello:2,certificate:11,server_key_exchange:12,certificate_request:13,server_hello_done:14,certificate_verify:15,client_key_exchange:16,finished:20};g.Alert={};g.Alert.Level={warning:1,fatal:2};g.Alert.Description={close_notify:0,unexpected_message:10,bad_record_mac:20,decryption_failed:21,record_overflow:22,decompression_failure:30,handshake_failure:40,bad_certificate:42,unsupported_certificate:43,certificate_revoked:44,certificate_expired:45,certificate_unknown:46,illegal_parameter:47,unknown_ca:48,access_denied:49,decode_error:50,decrypt_error:51,export_restriction:60,protocol_version:70,insufficient_security:71,internal_error:80,user_canceled:90,no_renegotiation:100};g.CipherSuites={TLS_RSA_WITH_AES_128_CBC_SHA: [0x00,0x2f],TLS_RSA_WITH_AES_256_CBC_SHA: [0x00,0x35],TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA: [0xc0,0x0a],TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA: [0xc0,0x14],TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA: [0x00,0x88],TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA: [0x00,0x87],TLS_DHE_RSA_WITH_AES_256_CBC_SHA: [0x00,0x39],TLS_DHE_DSS_WITH_AES_256_CBC_SHA: [0x00,0x38],TLS_ECDH_RSA_WITH_AES_256_CBC_SHA: [0xc0,0x0f],TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA: [0xc0,0x05],TLS_RSA_WITH_CAMELLIA_256_CBC_SHA: [0x00,0x84],TLS_ECDHE_ECDSA_WITH_RC4_128_SHA: [0xc0,0x07],TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA: [0xc0,0x09],TLS_ECDHE_RSA_WITH_RC4_128_SHA: [0xc0,0x11],TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA: [0xc0,0x13],TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA: [0x00,0x45],TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA: [0x00,0x44],TLS_DHE_RSA_WITH_AES_128_CBC_SHA: [0x00,0x33],TLS_DHE_DSS_WITH_AES_128_CBC_SHA: [0x00,0x32],TLS_ECDH_RSA_WITH_RC4_128_SHA: [0xc0,0x0c],TLS_ECDH_RSA_WITH_AES_128_CBC_SHA: [0xc0,0x0e],TLS_ECDH_ECDSA_WITH_RC4_128_SHA: [0xc0,0x02],TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA: [0xc0,0x04],TLS_RSA_WITH_SEED_CBC_SHA: [0x00,0x96],TLS_RSA_WITH_CAMELLIA_128_CBC_SHA: [0x00,0x41],TLS_RSA_WITH_RC4_128_MD5: [0x00,0x04],TLS_RSA_WITH_RC4_128_SHA: [0x00,0x05],TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA: [0xc0,0x08],TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA: [0xc0,0x12],TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA: [0x00,0x16],TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA: [0x00,0x13],TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA: [0xc0,0x0d],TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA: [0xc0,0x03],SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA: [0xfe,0xff],TLS_RSA_WITH_3DES_EDE_CBC_SHA: [0x00,0x0a]};
/*
c.session = {
serverNameList: [],
cipherSuite: null,
compressionMethod: null,
serverCertificate: null,
clientCertificate: null,
md5: forge.md.md5.create(),
sha1: forge.md.sha1.create()
};
c.session.sp = {
entity: c.entity,
prf_algorithm: tls.PRFAlgorithm.tls_prf_sha256,
bulk_cipher_algorithm: tls.BulkCipherAlgorithm.aes,
cipher_type: tls.CipherType.block,
enc_key_length: keyLength,
block_length: 16,
fixed_iv_length: 16,
record_iv_length: 16,
mac_algorithm: tls.MACAlgorithm.hmac_sha1,
mac_length: 20,
mac_key_length: 20,
compression_algorithm: c.session.compressionMethod,
pre_master_secret: null,
master_secret: null,
client_random: cRandom,
server_random: sRandom
};
*/
/*
var dhprime=new BigInteger('FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE65381FFFFFFFFFFFFFFFF',16);
var dhg=new BigInteger('02',16);
var secretX=new BigInteger('04',16);
alert(dhg.modPow(secretX,dhprime).toString(16));
*/
/*{if(Y>0){Z.error(Z,{message:"Invalid key parameters. Only RSA is supported.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unsupported_certificate}})}else{Z.expect=L;Z.process()}}*/
var DHE_handleServerKeyExchange=function(c, record, length) {
// this implementation only supports RSA, no Diffie-Hellman support
// so any length > 0 is invalid
if(length > 0) {
/*
select (KeyExchangeAlgorithm) {
case dh_anon:
ServerDHParams params;
case dhe_dss:
case dhe_rsa:
ServerDHParams params;
digitally-signed struct {
opaque client_random[32];
opaque server_random[32];
ServerDHParams params;
} signed_params;
case rsa:
case dh_dss:
case dh_rsa:
struct {} ;
message is omitted for rsa, dh_dss, and dh_rsa
may be extended, e.g., for ECDH -- see [TLSECC]
} ServerKeyExchange;
struct { Lenght 2 bytes + data
opaque dh_p<1..2^16-1>;
opaque dh_g<1..2^16-1>;
opaque dh_Ys<1..2^16-1>;
} ServerDHParams;
dh_p
The prime modulus used for the Diffie-Hellman operation.
dh_g
The generator used for the Diffie-Hellman operation.
dh_Ys
The server's Diffie-Hellman public value (g^X mod p).
*/
var b=record.fragment;
var dhe=c.session.sp.DHE={};
dhe.prime=b.getBytes(b.getInt(16));
//alert((new Buffer(prime,'binary')).toString('hex'));
dhe.g=b.getBytes(b.getInt(16));
dhe.server_public_key=b.getBytes(b.getInt(16));
dhe.signature=b.getBytes(b.getInt(16));
//TODO check signature
}
//else {
// expect an optional CertificateRequest message next
c.expect = L;
// continue
c.process();
//}
};
/*g.createClientKeyExchange=function(ac){var X=N.util.createBuffer();X.putByte(g.Version.major);X.putByte(g.Version.minor);X.putBytes(N.random.getBytes(46));var aa=ac.session.sp;aa.pre_master_secret=X.getBytes();var Y=ac.session.serverCertificate.publicKey;X=Y.encrypt(aa.pre_master_secret);var Z=X.length+2;var ab=N.util.createBuffer();ab.putByte(g.HandshakeType.client_key_exchange);ab.putInt24(Z);ab.putInt16(X.length);ab.putBytes(X);return ab}*/
var DHE_createClientKeyExchange = function(ac) {
/*
createSecurityParameters modified
switch(ac.session.cipherSuite) {
case g.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA:
keyLength = 16;
break;
case g.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA:
keyLength = 32;
break;
}
struct {
select (KeyExchangeAlgorithm) {
case rsa:
EncryptedPreMasterSecret;
case dhe_dss:
case dhe_rsa:
case dh_dss:
case dh_rsa:
case dh_anon:
ClientDiffieHellmanPublic;
} exchange_keys;
} ClientKeyExchange;
struct {
select (PublicValueEncoding) {
case implicit: struct { };
case explicit: opaque dh_Yc<1..2^16-1>;
} dh_public;
} ClientDiffieHellmanPublic;
dh_Yc
The client's Diffie-Hellman public value (Yc).
*/
// create buffer to encrypt
var aa = ac.session.sp;
var X;
if (!aa.DHE) {
// add highest client-supported protocol to help server avoid version
// rollback attacks
X = N.util.createBuffer();
X.putByte(g.Version.major);
X.putByte(g.Version.minor);
// generate and add 46 random bytes
X.putBytes(N.random.getBytes(46));
// save pre-master secret
aa.pre_master_secret = X.getBytes();
// RSA-encrypt the pre-master secret
var Y = ac.session.serverCertificate.publicKey;
X = Y.encrypt(aa.pre_master_secret);
/* Note: The encrypted pre-master secret will be stored in a
public-key-encrypted opaque vector that has the length prefixed using
2 bytes, so include those 2 bytes in the handshake message length. This
is done as a minor optimization instead of calling writeVector(). */
} else {
var dhe=aa.DHE;
var client_key=new BigInteger(Rand(128).toString('hex'),16);
var prime=new BigInteger(new Buffer(dhe.prime,'binary').toString('hex'),16);
var gdh=new BigInteger(new Buffer(dhe.g,'binary').toString('hex'),16);
var server_key=new BigInteger(new Buffer(dhe.server_public_key,'binary').toString('hex'),16);
var sec=new Buffer(server_key.modPow(client_key,prime).toString(16),'hex');
aa.pre_master_secret=sec.toString('binary');
//console.log('Pre Master: '+sec.toString('hex'));
if (!forge_buffers) {
X=new Buffer(gdh.modPow(client_key,prime).toString(16),'hex');
//console.log('Client public key: '+X.toString('hex'));
} else {
X=(new Buffer(gdh.modPow(client_key,prime).toString(16),'hex')).toString('binary');
};
};
// determine length of the handshake message
var Z = X.length + 2;
// build record fragment
var ab = N.util.createBuffer();
ab.putByte(g.HandshakeType.client_key_exchange);
ab.putInt24(Z);
// add vector length bytes
ab.putInt16(X.length);
ab.putBytes(X);
return ab;
};
g.getCipherSuite=function(X){var aa=null;for(var Y in g.CipherSuites){var Z=g.CipherSuites[Y];if(Z[0]===X.charCodeAt(0)&&Z[1]===X.charCodeAt(1)){aa=Z;break}}return aa};g.handleUnexpected=function(Z,X){var Y=(!Z.open&&Z.entity===g.ConnectionEnd.client);/* modif Ayms ignore unexpected */;console.log('unexpected message ----------------');Y=true;if(!Y){Z.error(Z,{message:"Unexpected message. Received TLS record out of order.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unexpected_message}})}};g.handleHelloRequest=function(Z,X,Y){if(!Z.handshaking&&Z.handshakes>0){g.queue(Z,g.createAlert({level:g.Alert.Level.warning,description:g.Alert.Description.no_renegotiation}));g.flush(Z)}Z.process()};g.parseHelloMessage=function(ag,af,Z){var aa=null;var ab=(ag.entity==g.ConnectionEnd.client);if(Z<38){ag.error(ag,{message:ab?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}})}else{var ai=af.fragment;aa={version:{major:ai.getByte(),minor:ai.getByte()},random:N.util.createBuffer(ai.getBytes(32)),session_id:d(ai,1),extensions:[]};if(ab){aa.cipher_suite=ai.getBytes(2);aa.compression_method=ai.getByte()}else{aa.cipher_suites=d(ai,2);aa.compression_methods=d(ai,1)};if(ai.length()>0){var ac=d(ai,2);while(ac.length()>0){aa.extensions.push({type:[ac.getByte(),ac.getByte()],data:d(ac,2)})}if(!ab){for(var ae=0;ae<aa.extensions.length;++ae){var Y=aa.extensions[ae];if(Y.type[0]===0&&Y.type[1]===0){var X=d(Y.data,2);while(X.length()>0){var ah=X.getByte();if(ah!==0){break}ag.session.serverNameList.push(d(X,2).getBytes())}}}}};/*if(aa.version.major!==g.Version.major||aa.version.minor!==g.Version.minor){ag.error(ag,{message:"Incompatible TLS version.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}})}*/if(ab){ag.session.cipherSuite=g.getCipherSuite(aa.cipher_suite)}else{var ad=N.util.createBuffer(aa.cipher_suites.bytes());while(ad.length()>0){ag.session.cipherSuite=g.getCipherSuite(ad.getBytes(2));if(ag.session.cipherSuite!==null){break}}}if(ag.session.cipherSuite===null){ag.error(ag,{message:"No cipher suites in common.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.handshake_failure},cipherSuite:N.util.bytesToHex(aa.cipher_suite)})}if(ab){ag.session.compressionMethod=aa.compression_method}else{ag.session.compressionMethod=g.CompressionMethod.none}};return aa};g.createSecurityParameters=function(ad,aa){var Z;switch(ad.session.cipherSuite){case g.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA:Z=16;break;case g.CipherSuites.TLS_DHE_RSA_WITH_AES_128_CBC_SHA:Z=16;break;case g.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA:Z=32;break;case g.CipherSuites.TLS_DHE_RSA_WITH_AES_256_CBC_SHA:Z=32;break}var X=(ad.entity===g.ConnectionEnd.client);var Y=aa.random.bytes();var ac=X?ad.session.sp.client_random:Y;var ab=X?Y:g.createRandom().getBytes();ad.session.sp={entity:ad.entity,prf_algorithm:g.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:g.BulkCipherAlgorithm.aes,cipher_type:g.CipherType.block,enc_key_length:Z,block_length:16,fixed_iv_length:16,record_iv_length:16,mac_algorithm:g.MACAlgorithm.hmac_sha1,mac_length:20,mac_key_length:20,compression_algorithm:ad.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:ac,server_random:ab}};g.handleServerHello=function(ab,X,Y){var aa=g.parseHelloMessage(ab,X,Y);if(!ab.fail){var Z=aa.session_id.bytes();/*modif*/if(Z&&(Z===ab.session.id)){ab.expect=T;ab.session.resuming=true;ab.session.sp.server_random=aa.random.bytes()}else{ab.expect=R;ab.session.resuming=false;g.createSecurityParameters(ab,aa)};ab.session.id=Z;ab.process()}};g.handleClientHello=function(ac,X,Y){var ab=g.parseHelloMessage(ac,X,Y);if(!ac.fail){var aa=ab.session_id.bytes();var Z=null;if(ac.sessionCache){Z=ac.sessionCache.getSession(aa);if(Z===null){aa=""}}if(aa.length===0){aa=N.random.getBytes(32)}ac.session.id=aa;ac.session.clientHelloVersion=ab.version;ac.session.sp=Z?Z.sp:{};if(Z!==null){ac.expect=M;ac.session.resuming=true;ac.session.sp.client_random=ab.random.bytes()}else{ac.expect=(ac.verifyClient!==false)?K:c;ac.session.resuming=false;g.createSecurityParameters(ac,ab)}ac.open=true;g.queue(ac,g.createRecord({type:g.ContentType.handshake,data:g.createServerHello(ac)}));if(ac.session.resuming){g.queue(ac,g.createRecord({type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()}));ac.state.pending=g.createConnectionState(ac);ac.state.current.write=ac.state.pending.write;g.queue(ac,g.createRecord({type:g.ContentType.handshake,data:g.createFinished(ac)}))}else{g.queue(ac,g.createRecord({type:g.ContentType.handshake,data:g.createCertificate(ac)}));/*g.queue(ac,g.createRecord({type:g.ContentType.handshake,data:g.createServerKeyExchange(ac)}))*/;if(ac.verifyClient!==false){g.queue(ac,g.createRecord({type:g.ContentType.handshake,data:g.createCertificateRequest(ac)}))}g.queue(ac,g.createRecord({type:g.ContentType.handshake,data:g.createServerHelloDone(ac)}))}g.flush(ac);ac.process()}};g.handleCertificate=function(af,ad,X){if(X<3){af.error(af,{message:"Invalid Certificate message. Message too short.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}})}else{var ag=ad.fragment;var Y={certificate_list:d(ag,3)};var ab,aa;var ac=[];try{while(Y.certificate_list.length()>0){ab=d(Y.certificate_list,3);aa=N.asn1.fromDer(ab);ab=N.pki.certificateFromAsn1(aa,true);ac.push(ab)}}catch(ae){af.error(af,{message:"Could not parse certificate list.",cause:ae,send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate}})}if(!af.fail){var Z=(af.entity===g.ConnectionEnd.client);if((Z||af.verifyClient===true)&&ac.length===0){af.error(af,{message:Z?"No server certificate provided.":"No client certificate provided.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}})}else{if(ac.length===0){af.expect=Z?k:c}else{if(Z){af.session.serverCertificate=ac[0]}else{af.session.clientCertificate=ac[0]}if(g.verifyCertificateChain(af,ac)){af.expect=Z?k:c}}}af.process()}}};g.handleServerKeyExchange=DHE_handleServerKeyExchange;g.handleClientKeyExchange=function(ae,aa,ac){if(ac<48){ae.error(ae,{message:"Invalid key parameters. Only RSA is supported.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unsupported_certificate}})}else{var X=aa.fragment;msg={enc_pre_master_secret:d(X,2).getBytes()};var Z=null;if(ae.getPrivateKey){try{Z=ae.getPrivateKey(ae,ae.session.serverCertificate);Z=N.pki.privateKeyFromPem(Z)}catch(ab){ae.error(ae,{message:"Could not get private key.",cause:ab,send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}}if(Z===null){ae.error(ae,{message:"No private key set.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}else{try{var ad=ae.session.sp;ad.pre_master_secret=Z.decrypt(msg.enc_pre_master_secret);var Y=ae.session.clientHelloVersion;if(Y.major!==ad.pre_master_secret.charCodeAt(0)||Y.minor!==ad.pre_master_secret.charCodeAt(1)){throw {message:"TLS version rollback attack detected."}}}catch(ab){ad.pre_master_secret=N.random.getBytes(48)}}}if(!ae.fail){ae.expect=M;if(ae.session.clientCertificate!==null){ae.expect=x}ae.process()}};g.handleCertificateRequest=function(ab,Y,Z){if(Z<3){ab.error(ab,{message:"Invalid CertificateRequest. Message too short.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}})}else{var X=Y.fragment;var aa={certificate_types:d(X,1),certificate_authorities:d(X,2)};ab.session.certificateRequest=aa;ab.expect=i;ab.process()}};g.handleCertificateVerify=function(ae,Y,ac){if(ac<2){ae.error(ae,{message:"Invalid CertificateVerify. Message too short.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}})}else{var X=Y.fragment;X.read-=4;var Z=X.bytes();X.read+=4;msg={signature:d(X,2).getBytes()};var ad=N.util.createBuffer();ad.putBuffer(ae.session.md5.digest());ad.putBuffer(ae.session.sha1.digest());ad=ad.getBytes();try{var ab=ae.session.clientCertificate;X=N.pki.rsa.decrypt(msg.signature,ab.publicKey,true,ad.length);if(X!==ad){throw {message:"CertificateVerify signature does not match."}}ae.session.md5.update(Z);ae.session.sha1.update(Z)}catch(aa){ae.error(ae,{message:"Bad signature in CertificateVerify.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.handshake_failure}})}if(!ae.fail){ae.expect=M;ae.process()}}};g.handleServerHelloDone=function(ac,X,aa){if(aa>0){ac.error(ac,{message:"Invalid ServerHelloDone message. Invalid length.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.record_overflow}})}else{if(ac.serverCertificate===null){var Z={message:"No server certificate provided. Not enough security.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.insufficient_security}};var Y=ac.verify(ac,Z.alert.description,depth,[]);if(Y===true){Z=null}else{if(Y||Y===0){if(Y.constructor==Object){if(Y.message){Z.message=Y.message}if(Y.alert){Z.alert.description=Y.alert}}else{if(Y.constructor==Number){Z.alert.description=Y}}}ac.error(ac,Z)}}}if(!ac.fail&&ac.session.certificateRequest!==null){X=g.createRecord({type:g.ContentType.handshake,data:g.createCertificate(ac)});g.queue(ac,X)}if(!ac.fail){X=g.createRecord({type:g.ContentType.handshake,data:g.createClientKeyExchange(ac)});g.queue(ac,X);ac.expect=a;var ab=function(ae,ad){if(ae.session.certificateRequest!==null&&ae.session.clientCertificate!==null){g.queue(ae,g.createRecord({type:g.ContentType.handshake,data:g.createCertificateVerify(ae,ad)}))}g.queue(ae,g.createRecord({type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()}));ae.state.pending=g.createConnectionState(ae);ae.state.current.write=ae.state.pending.write;g.queue(ae,g.createRecord({type:g.ContentType.handshake,data:g.createFinished(ae)}));ae.expect=T;g.flush(ae);ae.process()};if(ac.session.certificateRequest===null||ac.session.clientCertificate===null){ab(ac,null)}else{g.getClientSignature(ac,ab)}}};g.handleChangeCipherSpec=function(Z,Y){if(Y.fragment.getByte()!=1){Z.error(Z,{message:"Invalid ChangeCipherSpec message received.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}})}else{var X=(Z.entity===g.ConnectionEnd.client);if((Z.session.resuming&&X)||(!Z.session.resuming&&!X)){Z.state.pending=g.createConnectionState(Z)}Z.state.current.read=Z.state.pending.read;if((!Z.session.resuming&&X)||(Z.session.resuming&&!X)){Z.state.pending=null}Z.expect=X?P:G;Z.process()}};g.handleFinished=function(af,ad,Z){var ag=ad.fragment;ag.read-=4;var aa=ag.bytes();ag.read+=4;var ae=ad.fragment.getBytes();ag=N.util.createBuffer();ag.putBuffer(af.session.md5.digest());ag.putBuffer(af.session.sha1.digest());var ac=(af.entity===g.ConnectionEnd.client);var ah=ac?"server finished":"client finished";var X=af.session.sp;var Y=12;var ab=O;ag=ab(X.master_secret,ah,ag.getBytes(),Y);if(ag.getBytes()!==ae){af.error(af,{message:"Invalid verify_data in Finished message.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.decrypt_error}})}else{af.session.md5.update(aa);af.session.sha1.update(aa);if((af.session.resuming&&ac)||(!af.session.resuming&&!ac)){g.queue(af,g.createRecord({type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()}));af.state.current.write=af.state.pending.write;af.state.pending=null;g.queue(af,g.createRecord({type:g.ContentType.handshake,data:g.createFinished(af)}))}af.expect=ac?v:q;af.handshaking=false;++af.handshakes;af.peerCertificate=ac?af.session.serverCertificate:af.session.clientCertificate;if(af.sessionCache){af.session={id:af.session.id,sp:af.session.sp};af.session.sp.keys=null}else{af.session=null}g.flush(af);af.isConnected=true;af.connected(af);af.process()}};g.handleAlert=function(ab,Y){var X=Y.fragment;var aa={level:X.getByte(),description:X.getByte()};var Z;switch(aa.description){case g.Alert.Description.close_notify:Z="Connection closed.";break;case g.Alert.Description.unexpected_message:Z="Unexpected message.";break;case g.Alert.Description.bad_record_mac:Z="Bad record MAC.";break;case g.Alert.Description.decryption_failed:Z="Decryption failed.";break;case g.Alert.Description.record_overflow:Z="Record overflow.";break;case g.Alert.Description.decompression_failure:Z="Decompression failed.";break;case g.Alert.Description.handshake_failure:Z="Handshake failure.";break;case g.Alert.Description.bad_certificate:Z="Bad certificate.";break;case g.Alert.Description.unsupported_certificate:Z="Unsupported certificate.";break;case g.Alert.Description.certificate_revoked:Z="Certificate revoked.";break;case g.Alert.Description.certificate_expired:Z="Certificate expired.";break;case g.Alert.Description.certificate_unknown:Z="Certificate unknown.";break;case g.Alert.Description.illegal_parameter:Z="Illegal parameter.";break;case g.Alert.Description.unknown_ca:Z="Unknown certificate authority.";break;case g.Alert.Description.access_denied:Z="Access denied.";break;case g.Alert.Description.decode_error:Z="Decode error.";break;case g.Alert.Description.decrypt_error:Z="Decrypt error.";break;case g.Alert.Description.export_restriction:Z="Export restriction.";break;case g.Alert.Description.protocol_version:Z="Unsupported protocol version.";break;case g.Alert.Description.insufficient_security:Z="Insufficient security.";break;case g.Alert.Description.internal_error:Z="Internal error.";break;case g.Alert.Description.user_canceled:Z="User canceled.";break;case g.Alert.Description.no_renegotiation:Z="Renegotiation not supported.";break;default:Z="Unknown error.";break}if(aa.description===g.Alert.Description.close_notify){ab.close()}else{ab.error(ab,{message:Z,send:false,origin:(ab.entity===g.ConnectionEnd.client)?"server":"client",alert:aa});ab.process()}};g.handleHandshake=function(ac,Z){var X=Z.fragment;var aa=X.getByte();var ab=X.getInt24();if(ab>X.length()){ac.fragmented=Z;Z.fragment=N.util.createBuffer();X.read-=4;ac.process()}else{ac.fragmented=null;X.read-=4;var Y=X.bytes(ab+4);X.read+=4;if(aa in Q[ac.entity][ac.expect]){if(ac.entity===g.ConnectionEnd.server&&!ac.open&&!ac.fail){ac.handshaking=true;ac.session={serverNameList:[],cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:N.md.md5.create(),sha1:N.md.sha1.create()}}if(aa!==g.HandshakeType.hello_request&&aa!==g.HandshakeType.certificate_verify&&aa!==g.HandshakeType.finished){ac.session.md5.update(Y);ac.session.sha1.update(Y)}Q[ac.entity][ac.expect][aa](ac,Z,ab)}else{g.handleUnexpected(ac,Z)}}};g.handleApplicationData=function(Y,X){Y.data.putBuffer(X.fragment);Y.dataReady(Y);Y.process()};var h=0;var R=1;var k=2;var L=3;var i=4;var T=5;var P=6;var v=7;var a=8;var b=0;var K=1;var c=2;var x=3;var M=4;var G=5;var q=6;var U=7;var W=g.handleUnexpected;var J=g.handleChangeCipherSpec;var H=g.handleAlert;var F=g.handleHandshake;var E=g.handleApplicationData;var o=[];o[g.ConnectionEnd.client]=[[W,W,F,W],[W,H,F,W],[W,H,F,W],[W,H,F,W],[W,H,F,W],[J,H,W,W],[W,H,F,W],[W,H,F,E],[W,H,F,W]];o[g.ConnectionEnd.server]=[[W,W,F,W],[W,H,F,W],[W,H,F,W],[W,H,F,W],[J,H,W,W],[W,H,F,W],[W,H,F,E],[W,H,F,W]];var D=g.handleHelloRequest;var C=g.handleServerHello;var B=g.handleCertificate;var A=g.handleServerKeyExchange;var z=g.handleCertificateRequest;var y=g.handleServerHelloDone;var w=g.handleFinished;var Q=[];Q[g.ConnectionEnd.client]=[[W,W,C,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W],[D,W,W,W,W,W,W,W,W,W,W,B,A,z,y,W,W,W,W,W,W],[D,W,W,W,W,W,W,W,W,W,W,W,A,z,y,W,W,W,W,W,W],[D,W,W,W,W,W,W,W,W,W,W,W,W,z,y,W,W,W,W,W,W],[D,W,W,W,W,W,W,W,W,W,W,W,W,W,y,W,W,W,W,W,W],[D,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W],[D,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,w],[D,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W],[D,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W]];var u=g.handleClientHello;var t=g.handleClientKeyExchange;var s=g.handleCertificateVerify;Q[g.ConnectionEnd.server]=[[W,u,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W],[W,W,W,W,W,W,W,W,W,W,W,B,W,W,W,W,W,W,W,W,W],[W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,t,W,W,W,W],[W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,s,W,W,W,W,W],[W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W],[W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,w],[W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W],[W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W]];g.generateKeys=function(ac,ab){var aa=O;var Z=ab.client_random+ab.server_random;if(!ac.session.resuming){ab.master_secret=aa(ab.pre_master_secret,"master secret",Z,48).bytes();ab.pre_master_secret=null}Z=ab.server_random+ab.client_random;var Y=2*ab.mac_key_length+2*ab.enc_key_length+2*ab.fixed_iv_length;var X=aa(ab.master_secret,"key expansion",Z,Y);return{client_write_MAC_key:X.getBytes(ab.mac_key_length),server_write_MAC_key:X.getBytes(ab.mac_key_length),client_write_key:X.getBytes(ab.enc_key_length),server_write_key:X.getBytes(ab.enc_key_length),client_write_IV:X.getBytes(ab.fixed_iv_length),server_write_IV:X.getBytes(ab.fixed_iv_length)}};g.createConnectionState=function(ab){var Y=(ab.entity===g.ConnectionEnd.client);var X=function(){var ac={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(ad){return true},compressionState:null,compressFunction:function(ad){return true},updateSequenceNumber:function(){if(ac.sequenceNumber[1]==4294967295){ac.sequenceNumber[1]=0;++ac.sequenceNumber[0]}else{++ac.sequenceNumber[1]}}};return ac};var aa={read:X(),write:X()};aa.read.update=function(ad,ac){if(!aa.read.cipherFunction(ac,aa.read)){ad.error(ad,{message:"Could not decrypt record or bad MAC.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_record_mac}})}else{if(!aa.read.compressFunction(ad,ac,aa.read)){ad.error(ad,{message:"Could not decompress record.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.decompression_failure}})}}return !ad.fail};aa.write.update=function(ad,ac){if(!aa.write.compressFunction(ad,ac,aa.write)){ad.error(ad,{message:"Could not compress record.",send:false,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}else{if(!aa.write.cipherFunction(ac,aa.write)){ad.error(ad,{message:"Could not encrypt record.",send:false,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}}return !ad.fail};if(ab.session){var Z=ab.session.sp;Z.keys=g.generateKeys(ab,Z);aa.read.macKey=Y?Z.keys.server_write_MAC_key:Z.keys.client_write_MAC_key;aa.write.macKey=Y?Z.keys.client_write_MAC_key:Z.keys.server_write_MAC_key;aa.read.macLength=aa.write.macLength=Z.mac_length;switch(Z.mac_algorithm){case g.MACAlgorithm.hmac_sha1:aa.read.macFunction=aa.write.macFunction=j;break;default:throw {message:"Unsupported MAC algorithm."}}switch(Z.bulk_cipher_algorithm){case g.BulkCipherAlgorithm.aes:aa.read.cipherState={init:false,cipher:N.aes.createDecryptionCipher(Y?Z.keys.server_write_key:Z.keys.client_write_key),iv:Y?Z.keys.server_write_IV:Z.keys.client_write_IV};aa.write.cipherState={init:false,cipher:N.aes.createEncryptionCipher(Y?Z.keys.client_write_key:Z.keys.server_write_key),iv:Y?Z.keys.client_write_IV:Z.keys.server_write_IV};aa.read.cipherFunction=S;aa.write.cipherFunction=f;break;default:throw {message:"Unsupported cipher algorithm."}}switch(Z.cipher_type){case g.CipherType.block:break;default:throw {message:"Unsupported cipher type."}}switch(Z.compression_algorithm){case g.CompressionMethod.none:break;case g.CompressionMethod.deflate:aa.read.compressFunction=p;aa.write.compressFunction=I;break;default:throw {message:"Unsupported compression algorithm."}}}return aa};g.createRandom=function(){var Z=new Date();var X=+Z+Z.getTimezoneOffset()*60000;var Y=N.util.createBuffer();Y.putInt32(X);Y.putBytes(N.random.getBytes(28));return Y};g.createRecord=function(Y){var X={type:Y.type,version:{major:g.Version.major,minor:g.Version.minor},length:Y.data.length(),fragment:Y.data};return X};g.createAlert=function(Y){var X=N.util.createBuffer();X.putByte(Y.level);X.putByte(Y.description);return g.createRecord({type:g.ContentType.alert,data:X})};g.createClientHello=function(ah){var ak=N.util.createBuffer();for(var ad=0;ad<ah.cipherSuites.length;++ad){var af=ah.cipherSuites[ad];ak.putByte(af[0]);ak.putByte(af[1])}var aj=ak.length();var al=N.util.createBuffer();al.putByte(g.CompressionMethod.none);var Y=al.length();var ai=N.util.createBuffer();if(ah.virtualHost){var aa=N.util.createBuffer();aa.putByte(0);aa.putByte(0);var X=N.util.createBuffer();X.putByte(0);n(X,2,N.util.createBuffer(ah.virtualHost));var ag=N.util.createBuffer();n(ag,2,X);n(aa,2,ag);ai.putBuffer(aa)}var ac=ai.length();if(ac>0){ac+=2}var ab=ah.session.id;var Z=ab.length+1+2+4+28+2+aj+1+Y+ac;var ae=N.util.createBuffer();ae.putByte(g.HandshakeType.client_hello);ae.putInt24(Z);ae.putByte(g.Version.major);ae.putByte(g.Version.minor);ae.putBytes(ah.session.sp.client_random);n(ae,1,N.util.createBuffer(ab));n(ae,2,ak);n(ae,1,al);if(ac>0){n(ae,2,ai)}return ae};g.createServerHello=function(aa){var Z=aa.session.id;var X=Z.length+1+2+4+28+2+1;var Y=N.util.createBuffer();Y.putByte(g.HandshakeType.server_hello);Y.putInt24(X);Y.putByte(g.Version.major);Y.putByte(g.Version.minor);Y.putBytes(aa.session.sp.server_random);n(Y,1,N.util.createBuffer(Z));Y.putByte(aa.session.cipherSuite[0]);Y.putByte(aa.session.cipherSuite[1]);Y.putByte(aa.session.compressionMethod);return Y};g.createCertificate=function(ag){var Y=(ag.entity===g.ConnectionEnd.client);var ab=null;if(ag.getCertificate){ab=ag.getCertificate(ag,Y?ag.session.certificateRequest:ag.session.serverNameList)}var ah=N.util.createBuffer();if(ab!==null){try{if((Array.isArray&&!Array.isArray(ab))||ab.constructor!==Array){ab=[ab]}var Z=null;for(var ac=0;ac<ab.length;++ac){var af=N.pki.pemToDer(ab);if(Z===null){Z=N.asn1.fromDer(af.bytes())}var aa=N.util.createBuffer();n(aa,3,af);ah.putBuffer(aa)}ab=N.pki.certificateFromAsn1(Z);if(Y){ag.session.clientCertificate=ab}else{ag.session.serverCertificate=ab}}catch(ae){ag.error(ag,{message:"Could not send certificate list.",cause:ae,send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate}})}}var X=3+ah.length();var ad=N.util.createBuffer();ad.putByte(g.HandshakeType.certificate);ad.putInt24(X);n(ad,3,ah);return ad};g.createClientKeyExchange=DHE_createClientKeyExchange;g.createServerKeyExchange=function(Z){var X=0;var Y=N.util.createBuffer();/*Y.putByte(g.HandshakeType.server_key_exchange);Y.putInt24(X);*/return Y};g.getClientSignature=function(Z,Y){var X=N.util.createBuffer();X.putBuffer(Z.session.md5.digest());X.putBuffer(Z.session.sha1.digest());X=X.getBytes();Z.getSignature=Z.getSignature||function(ae,aa,ad){var ab=null;if(ae.getPrivateKey){try{ab=ae.getPrivateKey(ae,ae.session.clientCertificate);ab=N.pki.privateKeyFromPem(ab)}catch(ac){ae.error(ae,{message:"Could not get private key.",cause:ac,send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}}if(ab===null){ae.error(ae,{message:"No private key set.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}else{aa=N.pki.rsa.encrypt(aa,ab,1)}ad(ae,aa)};Z.getSignature(Z,X,Y)};g.createCertificateVerify=function(aa,X){var Y=X.length+2;var Z=N.util.createBuffer();Z.putByte(g.HandshakeType.certificate_verify);Z.putInt24(Y);Z.putInt16(X.length);Z.putBytes(X);return Z};g.createCertificateRequest=function(ae){var Z=N.util.createBuffer();Z.putByte(1);var Y=N.util.createBuffer();for(var ab in ae.caStore.certs){var aa=ae.caStore.certs[ab];var X=N.pki.distinguishedNameToAsn1(aa.subject);Y.putBuffer(N.asn1.toDer(X))}var ac=1+Z.length()+2+Y.length();var ad=N.util.createBuffer();ad.putByte(g.HandshakeType.certificate_request);ad.putInt24(ac);n(ad,1,Z);n(ad,2,Y);return ad};g.createServerHelloDone=function(Y){var X=N.util.createBuffer();X.putByte(g.HandshakeType.server_hello_done);X.putInt24(0);return X};g.createChangeCipherSpec=function(){var X=N.util.createBuffer();X.putByte(1);return X};g.createFinished=function(ae){var X=N.util.createBuffer();X.putBuffer(ae.session.md5.digest());X.putBuffer(ae.session.sha1.digest());var Y=(ae.entity===g.ConnectionEnd.client);var ac=ae.session.sp;var aa=12;var ab=O;var Z=Y?"client finished":"server finished";X=ab(ac.master_secret,Z,X.getBytes(),aa);var ad=N.util.createBuffer();ad.putByte(g.HandshakeType.finished);ad.putInt24(X.length());ad.putBuffer(X);return ad};g.queue=function(ae,Y){if(Y.type===g.ContentType.handshake){var X=Y.fragment.bytes();ae.session.md5.update(X);ae.session.sha1.update(X);X=null}var Z;if(Y.fragment.length()<=g.MaxFragment){Z=[Y]}else{Z=[];var ac=Y.fragment.bytes();while(ac.length>g.MaxFragment){Z.push(g.createRecord({type:Y.type,data:N.util.createBuffer(ac.slice(0,g.MaxFragment))}));ac=ac.slice(g.MaxFragment)}if(ac.length>0){Z.push(g.createRecord({type:Y.type,data:N.util.createBuffer(ac)}))}}for(var aa=0;aa<Z.length&&!ae.fail;++aa){var ad=Z[aa];var ab=ae.state.current.write;if(ab.update(ae,ad)){ae.records.push(ad)}}};g.flush=function(Z){for(var Y=0;Y<Z.records.length;++Y){var X=Z.records[Y];Z.tlsData.putByte(X.type);Z.tlsData.putByte(X.version.major);Z.tlsData.putByte(X.version.minor);Z.tlsData.putInt16(X.fragment.length());Z.tlsData.putBuffer(Z.records[Y].fragment)}Z.records=[];return Z.tlsDataReady(Z)};var m=function(X){switch(X){case true:return true;case N.pki.certificateError.bad_certificate:return g.Alert.Description.bad_certificate;case N.pki.certificateError.unsupported_certificate:return g.Alert.Description.unsupported_certificate;case N.pki.certificateError.certificate_revoked:return g.Alert.Description.certificate_revoked;case N.pki.certificateError.certificate_expired:return g.Alert.Description.certificate_expired;case N.pki.certificateError.certificate_unknown:return g.Alert.Description.certificate_unknown;case N.pki.certificateError.unknown_ca:return g.Alert.Description.unknown_ca;default:return g.Alert.Description.bad_certificate}};var l=function(X){switch(X){case true:return true;case g.Alert.Description.bad_certificate:return N.pki.certificateError.bad_certificate;case g.Alert.Description.unsupported_certificate:return N.pki.certificateError.unsupported_certificate;case g.Alert.Description.certificate_revoked:return N.pki.certificateError.certificate_revoked;case g.Alert.Description.certificate_expired:return N.pki.certificateError.certificate_expired;case g.Alert.Description.certificate_unknown:return N.pki.certificateError.certificate_unknown;case g.Alert.Description.unknown_ca:return N.pki.certificateError.unknown_ca;default:return N.pki.certificateError.bad_certificate}};g.verifyCertificateChain=function(aa,Y){try{N.pki.verifyCertificateChain(aa.caStore,Y,function Z(ae,ag,ad){var af=m(ae);var ac=aa.verify(aa,ae,ag,ad);if(ac!==true){if(ac.constructor===Object){var ab={message:"The application rejected the certificate.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate}};if(ac.message){ab.message=ac.message}if(ac.alert){ab.alert.description=ac.alert}throw ab}if(ac!==ae){ac=l(ac)}}return ac})}catch(X){if(X.constructor!==Object){X={send:true,alert:{level:g.Alert.Level.fatal,description:m(X)}}}if(!("send" in X)){X.send=true}if(!("alert" in X)){X.alert={level:g.Alert.Level.fatal,description:m(X.error)}}aa.error(aa,X)}return !aa.fail};g.createSessionCache=function(Y,X){var aa=null;if(Y&&Y.getSession&&Y.setSession&&Y.order){aa=Y}else{aa={};aa.cache=Y||{};aa.capacity=Math.max(X||100,1);aa.order=[];for(var Z in Y){if(aa.order.length<=X){aa.order.push(Z)}else{delete Y[Z]}}aa.getSession=function(ae){var ad=null;var ac=null;if(ae){ac=N.util.bytesToHex(ae)}else{if(aa.order.length>0){ac=aa.order[0]}}if(ac!==null&&ac in aa.cache){ad=aa.cache[ac];delete aa.cache[ac];for(var ab in aa.order){if(aa.order[ab]===ac){aa.order.splice(ab,1);break}}}return ad};aa.setSession=function(ad,ac){if(aa.order.length===aa.capacity){var ab=aa.order.shift();delete aa.cache[ab]}var ab=N.util.bytesToHex(ad);aa.order.push(ab);aa.cache[ab]=ac}}return aa};g.createConnection=function(af){var X=null;if(af.caStore){if((Array.isArray&&Array.isArray(af.caStore))||af.caStore.constructor==Array){X=N.pki.createCaStore(af.caStore)}else{X=af.caStore}}else{X=N.pki.createCaStore()}var ad=af.cipherSuites||null;if(ad===null){ad=[];ad.push(g.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA);ad.push(g.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA)}var aa=(af.server||false)?g.ConnectionEnd.server:g.ConnectionEnd.client;var Z=af.sessionCache?g.createSessionCache(af.sessionCache):null;var ab={entity:aa,sessionId:af.sessionId,caStore:X,sessionCache:Z,cipherSuites:ad,connected:af.connected,virtualHost:af.virtualHost||null,verifyClient:af.verifyClient||false,verify:af.verify||function(aj,ag,ai,ah){return ag},getCertificate:af.getCertificate||null,getPrivateKey:af.getPrivateKey||null,getSignature:af.getSignature||null,input:N.util.createBuffer(),tlsData:N.util.createBuffer(),data:N.util.createBuffer(),tlsDataReady:af.tlsDataReady,dataReady:af.dataReady,closed:af.closed,error:function(ai,ag){ag.origin=ag.origin||((ai.entity===g.ConnectionEnd.client)?"client":"server");if(ag.send){g.queue(ai,g.createAlert(ag.alert));g.flush(ai)}var ah=(ag.fatal!==false);if(ah){ai.fail=true}af.error(ai,ag);if(ah){ai.close(false)}},deflate:af.deflate||null,inflate:af.inflate||null};ab.reset=function(ag){ab.record=null;ab.session=null;ab.peerCertificate=null;ab.state={pending:null,current:null};ab.expect=(ab.entity===g.ConnectionEnd.client)?h:b;ab.fragmented=null;ab.records=[];ab.open=false;ab.handshakes=0;ab.handshaking=false;ab.isConnected=false;ab.fail=!(ag||typeof(ag)==="undefined");ab.input.clear();ab.tlsData.clear();ab.data.clear();ab.state.current=g.createConnectionState(ab)};ab.reset();var ae=function(aj,ag){var ai=ag.type-g.ContentType.change_cipher_spec;var ah=o[aj.entity][aj.expect];if(ai in ah){ah[ai](aj,ag)}else{g.handleUnexpected(aj,ag)}};var ac=function(aj){var ai=0;var ah=aj.input;var ag=ah.length();if(ag<5){ai=5-ag}else{aj.record={type:ah.getByte(),version:{major:ah.getByte(),minor:ah.getByte()},length:ah.getInt16(),fragment:N.util.createBuffer(),ready:false};/*if(aj.record.version.major!=g.Version.major||aj.record.version.minor!=g.Version.minor){aj.error(aj,{message:"Incompatible TLS version.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}})}*/}return ai};var Y=function(ak){var aj=0;var ah=ak.input;var ag=ah.length();if(ag<ak.record.length){aj=ak.record.length-ag}else{ak.record.fragment.putBytes(ah.getBytes(ak.record.length));/*modif Ayms*/ah.compact();var ai=ak.state.current.read;if(ai.update(ak,ak.record)){if(ak.fragmented!==null){if(ak.fragmented.type===ak.record.type){ak.fragmented.fragment.putBuffer(ak.record.fragment);ak.record=ak.fragmented}else{ak.error(ak,{message:"Invalid fragmented record.",send:true,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unexpected_message}})}}ak.record.ready=true}}return aj};ab.handshake=function(ah){if(ab.entity!==g.ConnectionEnd.client){ab.error(ab,{message:"Cannot initiate handshake as a server.",fatal:false})}else{if(ab.handshaking){ab.error(ab,{message:"Handshake already in progress.",fatal:true/*modif Ayms*/})}else{if(ab.fail&&!ab.open&&ab.handshakes===0){ab.fail=false}ab.handshaking=true;ah=ah||"";var ag=null;if(ah.length>0){if(ab.sessionCache){ag=ab.sessionCache.getSession(ah)}if(ag===null){ah=""}}if(ah.length===0&&ab.sessionCache){ag=ab.sessionCache.getSession();if(ag!==null){ah=ag.id}}ab.session={id:ah,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:ag?ag.sp:{},md5:N.md.md5.create(),sha1:N.md.sha1.create()};ab.session.sp.client_random=g.createRandom().getBytes();ab.open=true;g.queue(ab,g.createRecord({type:g.ContentType.handshake,data:g.createClientHello(ab)}));g.flush(ab)}}};ab.process=function(ag){var ah=0;if(ag){ab.input.putBytes(ag)};if(!ab.fail){if(ab.record!==null&&ab.record.ready&&ab.record.fragment.isEmpty()){ab.record=null}if(ab.record===null){ah=ac(ab)};if(!ab.fail&&ab.record!==null&&!ab.record.ready){ah=Y(ab)};if(!ab.fail&&ab.record!==null&&ab.record.ready){ae(ab,ab.record)}};return ah};ab.prepare=function(ag){g.queue(ab,g.createRecord({type:g.ContentType.application_data,data:N.util.createBuffer(ag)}));return g.flush(ab)};ab.close=function(ag){if(!ab.fail&&ab.sessionCache&&ab.session){ab.sessionCache.setSession(ab.session.id,ab.session)}if(ab.open){ab.open=false;ab.input.clear();if(ab.isConnected||ab.handshaking){ab.isConnected=ab.handshaking=false;g.queue(ab,g.createAlert({level:g.Alert.Level.warning,description:g.Alert.Description.close_notify}));g.flush(ab)}ab.closed(ab)}ab.reset(ag)};return ab};N.tls.prf_tls1=O;N.tls.Alert=g.Alert;N.tls.CipherSuites=g.CipherSuites;N.tls.createSessionCache=g.createSessionCache;N.tls.createConnection=g.createConnection;})();(function(){var d={};var g=forge;/*if(typeof(window)!=="undefined"){var g=window.forge=window.forge||{}}else{if(typeof(module)!=="undefined"&&module.exports){var g={util:require("./util")};module.exports=d}}*/g.md=g.md||{};g.md.algorithms=g.md.algorithms||{};g.md.md5=g.md.algorithms.md5=d;var f=null;var c=null;var i=null;var a=null;var b=false;var e=function(){f=String.fromCharCode(128);f+=g.util.fillString(String.fromCharCode(0),64);c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9];i=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21];a=new Array(64);for(var j=0;j<64;++j){a[j]=Math.floor(Math.abs(Math.sin(j+1))*4294967296)}b=true};var h=function(x,u,y){var v,q,p,o,n,m,j,k;var l=y.length();while(l>=64){q=x.h0;p=x.h1;o=x.h2;n=x.h3;for(k=0;k<16;++k){u[k]=y.getInt32Le();m=n^(p&(o^n));v=(q+m+a[k]+u[k]);j=i[k];q=n;n=o;o=p;p+=(v<<j)|(v>>>(32-j))}for(;k<32;++k){m=o^(n&(p^o));v=(q+m+a[k]+u[c[k]]);j=i[k];q=n;n=o;o=p;p+=(v<<j)|(v>>>(32-j))}for(;k<48;++k){m=p^o^n;v=(q+m+a[k]+u[c[k]]);j=i[k];q=n;n=o;o=p;p+=(v<<j)|(v>>>(32-j))}for(;k<64;++k){m=o^(p|~n);v=(q+m+a[k]+u[c[k]]);j=i[k];q=n;n=o;o=p;p+=(v<<j)|(v>>>(32-j))}x.h0=(x.h0+q)&4294967295;x.h1=(x.h1+p)&4294967295;x.h2=(x.h2+o)&4294967295;x.h3=(x.h3+n)&4294967295;l-=64}};d.create=function(){if(!b){e()}var j=null;var m=g.util.createBuffer();var k=new Array(16);var l={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0};l.start=function(){l.messageLength=0;m=g.util.createBuffer();j={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878}};l.start();l.update=function(o,n){if(n==="utf8"){o=g.util.encodeUtf8(o)}l.messageLength+=o.length;m.putBytes(o);h(j,k,m);if(m.read>2048||m.length()===0){m.compact()}};l.digest=function(){var n=l.messageLength;var q=g.util.createBuffer();q.putBytes(m.bytes());q.putBytes(f.substr(0,64-((n+8)%64)));q.putInt32Le((n<<3)&4294967295);q.putInt32Le((n>>>29)&255);var o={h0:j.h0,h1:j.h1,h2:j.h2,h3:j.h3};h(o,k,q);var p=g.util.createBuffer();p.putInt32Le(o.h0);p.putInt32Le(o.h1);p.putInt32Le(o.h2);p.putInt32Le(o.h3);return p};return l}})();
//end forge
module.exports=forge;
|
function barbaManager(){function t(t){var e=$(t).parent(),i=$(t).prev(".layer--blue");e.addClass("animate-width");var n=e[0].getBoundingClientRect().top;$(t).addClass("is-animate");var r=$(t).find(".works-text");return Barba.BaseTransition.extend({start:function(){var t=this;Promise.all([t.newContainerLoading,t.fadeOut()]).then(t.fadeIn.bind(t))},fadeOut:function(){var o=Barba.Utils.deferred(),s=$(window).width()<=1024;$("body").hasClass("mobile-menu-active")&&($(".hamburger").attr("data-status","off"),$(".hamburger").removeClass("is-active"),$("body").removeClass("mobile-menu-active"));var a=new TimelineLite({paused:!0,onComplete:function(){o.resolve()}}).set(e,{zIndex:3}).add("start");return s?a.set(r,{autoAlpha:0}):a.to(r,.8,{top:"72%",left:0,ease:DAnimation.bezier(.6,.01,.52,1)},"start"),a.to(".layer--overlay",.4,{autoAlpha:1,ease:DAnimation.bezier(0,.18,.76,1)},"start").to(r.find(".works-text__content"),.4,{marginTop:"35%",autoAlpha:0,ease:DAnimation.bezier(.6,.01,.52,1)},"-=0.76"),s||a.to(r.find("h3"),.6,{fontSize:"2.8rem",ease:DAnimation.bezier(.6,.01,.52,1)},"start").to($(t).find(".works-image-hover-bg"),.6,{x:"-21%",ease:DAnimation.bezier(.6,.01,.52,1)},"start"),a.to(e,.7,{y:n*-1,ease:DAnimation.bezier(.42,.3,.7,1)},"start").to(i,.7,{width:"100%",ease:DAnimation.bezier(.6,.01,.52,1)},"start").set(e,{position:"fixed",top:"0",y:0,zIndex:4}),a.play(),o.promise},fadeIn:function(){var t=this,e=($(this.newContainer),$(this.newContainer).find(".header.case").find("h2"));size.common.calcVH($(this.newContainer)),TweenMax.set($(this.newContainer).find(".layer--overlay"),{autoAlpha:1,ease:Quad.easeOut,zIndex:2}),TweenMax.set(this.oldContainer,{position:"absolute",visibility:"visible",top:0,right:0,left:0}),TweenMax.set(this.newContainer,{autoAlpha:1,zIndex:2}),$(window).scrollTop(0),TweenMax.set($(this.newContainer).find(".header.case"),{zIndex:4}),TweenMax.set(e,{x:0}),TweenMax.set([$(this.newContainer).find(".case-intro-header"),$(this.newContainer).find(".case-intro-text")],{position:"relative",zIndex:4}),TweenMax.set($(this.oldContainer),{autoAlpha:0}),new TimelineLite({onComplete:function(){size.common.mobileMenu(),size.common.animationScrollMagic(),$(t.newContainer).find(".is-video").append(size.iframeVideoTemplate()),t.done()}}).fromTo([$(this.newContainer).find(".case-intro-text"),$(this.newContainer).find(".case-intro-header")],1,{autoAlpha:0,top:"20px",ease:DAnimation.bezier(.42,.3,.7,1)},{autoAlpha:1,top:0}).add("start").to($(this.oldContainer),.6,{opacity:0},"start").to($(t.newContainer).find(".layer--overlay"),.5,{autoAlpha:0,ease:Quad.easeOut},"start").to(e,.6,{autoAlpha:1},"start")}})}function e(){var e;Barba.Pjax.Dom.wrapperId="site-wrapper",Barba.Pjax.Dom.containerClass="site-container",Barba.Dispatcher.on("linkClicked",function(t){e=t}),Barba.Pjax.init(),Barba.Prefetch.init();var n=!1,r=Barba.BaseTransition.extend({start:function(){n=!0,Promise.all([this.newContainerLoading,this.fadeOut()]).then(this.display.bind(this,"0"))},fadeOut:function(){var t=$(".layer--transition"),e=$(".layer--white");$("body").hasClass("mobile-menu-active")&&($(".hamburger").attr("data-status","off"),$(".hamburger").removeClass("is-active"),$("body").removeClass("mobile-menu-active"));var i=Barba.Utils.deferred(),n=({y:window.pageYOffset},new TimelineMax({onComplete:function(){i.resolve()}}));return n.add("start").set($(this.oldContainer),{position:"relative"}).to($(this.oldContainer),.8,{top:"-40px",ease:DAnimation.bezier(.6,.01,.52,1)},"start").to(t,.8,{autoAlpha:1,ease:DAnimation.bezier(.6,.01,.52,1)},"start").to(e,1,{y:"0%",ease:DAnimation.bezier(.6,.01,.52,1)},"start"),i.promise},display:function(t){var e=this,i=({y:window.pageYOffset},$(this.newContainer).find(".layer--transition")),n=$(this.newContainer).find(".layer--white"),r=$(this.newContainer).find(".header").find("h2");TweenLite.set(this.newContainer,{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:200}),size.common.start();var o=new TimelineMax({onComplete:function(){size.common.animate("[data-transform]"),size.common.mobileMenu(),size.common.animationScrollMagic(),$("#reel-video").length&&size.common.reel(),$(e.newContainer).find(".is-video").append(size.iframeVideoTemplate()),size.common.calcVH($(e.newContainer)),$(window).on("orientationchange",$.debounce(20,function(){size.common.calcVH($(e.newContainer))})),e.done()}});o.add("start").to($("html, body"),0,{scrollTop:0,ease:animation}).set(i,{autoAlpha:1}).set(n,{y:"0%"}).set(this.newContainer,{autoAlpha:1}).to(i,.3,{autoAlpha:0,ease:DAnimation.bezier(.6,.01,.52,1)},"start").to(n,.6,{y:"100%",ease:DAnimation.bezier(.6,.01,.52,1)},"start").to(this.newContainer,.5,{top:"0px",ease:DAnimation.bezier(.6,.01,.52,1)},"start").fromTo(r,1.3,{y:"-20%",autoAlpha:0,ease:DAnimation.bezier(.6,.01,.52,1)},{y:"0%",autoAlpha:1},"start").staggerFromTo($(".stage-bottom"),.4,{autoAlpha:0,y:"15px",ease:Expo.easeOut},{autoAlpha:1,y:"0px"},.08,"-=0.78").set(this.newContainer,{position:"static",top:0,right:0,bottom:0,left:0})}}),o=Barba.BaseTransition.extend({start:function(){Promise.all([this.newContainerLoading,this.fadeOut()]).then(this.fadeIn.bind(this))},fadeOut:function(){var t=Barba.Utils.deferred(),e=($(".view-work"),$(".layer--cover")),i=(parseInt(e.css("margin-top"),0),$(window).width()>667?$(window).innerHeight()/2+79:$(window).innerHeight()/2);return $("body").hasClass("mobile-menu-active")&&($(".hamburger").attr("data-status","off"),$(".hamburger").removeClass("is-active"),$("body").removeClass("mobile-menu-active")),new TimelineLite({onComplete:function(){t.resolve()}}).set(e,{autoAlpha:1}).to(e,.5,{marginTop:0,height:i+"px",width:"100%",ease:DAnimation.bezier(.42,.3,.38,1)}).to(e,1,{top:0,ease:DAnimation.bezier(.4,.01,.31,1.01)},"-=0.7").to(".work-more",0,{autoAlpha:0},"-=1").to(".layer--overlay",.4,{autoAlpha:1,ease:DAnimation.bezier(0,.18,.76,1)},"-=0.9"),t.promise},fadeIn:function(){var t=this;$(this.newContainer);$(window).scrollTop(0),TweenMax.set(this.oldContainer,{position:"absolute",visibility:"visible",top:0,right:0,zIndex:2}),TweenMax.set(this.newContainer,{autoAlpha:1}),new TimelineLite({onComplete:function(){size.common.mobileMenu(),size.common.animationScrollMagic(),$("#reel-video").length&&size.common.reel(),t.done()}}).set($(this.oldContainer),{autoAlpha:0}).fromTo($(".header.work").find("h2"),.6,{autoAlpha:0,y:"10%",ease:DAnimation.bezier(.4,.01,.31,1.01)},{y:"0%",autoAlpha:1}).fromTo($(".works"),.6,{autoAlpha:0,y:"30px"},{autoAlpha:1,y:0,ease:DAnimation.bezier(.4,.01,.31,1.01)},"-=0.35")}});Barba.Dispatcher.on("linkClicked",function(e){if(!$(e).hasClass("view-work")||size.iOSVersion()<8)!$(e).hasClass("works-link")||size.iOSVersion()<8?Barba.Pjax.getTransition=function(){return r}:Barba.Pjax.getTransition=function(){return t(e)};else{var n=$(".view-work"),s=n[0].getBoundingClientRect().top,a=n.width(),l=$(window).height(),u=$(".layer--cover");TweenMax.set(u,{width:a,marginTop:"50vh",height:n[0].getBoundingClientRect().height});var c=parseInt(u.css("margin-top"),10);s<l&&i(s-c),Barba.Pjax.getTransition=function(){return o}}})}function i(t){var e=$(".layer--cover");TweenMax.set(e,{top:t})}var n=!1,r=Barba.BaseView.extend({namespace:"case",onEnter:function(){$('[data-slider="default"]').hasClass("slick-initialized")||(slider.init(void 0!==element?element:$(slider.element)),$(".next").on("click",function(){$('[data-slider="default"]').slick("slickNext")}),$(".prev").on("click",function(){$('[data-slider="default"]').slick("slickPrev")}),n=!0)},onEnterCompleted:function(){},onLeave:function(){$('[data-slider="default"]').slick("unslick")},onLeaveCompleted:function(){n=!1}});r.init(),e()}!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e=!!t&&"length"in t&&t.length,i=ot.type(t);return"function"!==i&&!ot.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function n(t,e,i){if(ot.isFunction(e))return ot.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return ot.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(mt.test(e))return ot.filter(e,t,i);e=ot.filter(e,t)}return ot.grep(t,function(t){return K.call(e,t)>-1!==i})}function r(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e={};return ot.each(t.match(xt)||[],function(t,i){e[i]=!0}),e}function s(){G.removeEventListener("DOMContentLoaded",s),t.removeEventListener("load",s),ot.ready()}function a(){this.expando=ot.expando+a.uid++}function l(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(Pt,"-$&").toLowerCase(),i=t.getAttribute(n),"string"==typeof i){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:At.test(i)?ot.parseJSON(i):i)}catch(r){}Ct.set(t,e,i)}else i=void 0;return i}function u(t,e,i,n){var r,o=1,s=20,a=n?function(){return n.cur()}:function(){return ot.css(t,e,"")},l=a(),u=i&&i[3]||(ot.cssNumber[e]?"":"px"),c=(ot.cssNumber[e]||"px"!==u&&+l)&&Dt.exec(ot.css(t,e));if(c&&c[3]!==u){u=u||c[3],i=i||[],c=+l||1;do o=o||".5",c/=o,ot.style(t,e,c+u);while(o!==(o=a()/l)&&1!==o&&--s)}return i&&(c=+c||+l||0,r=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=u,n.start=c,n.end=r)),r}function c(t,e){var i="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&ot.nodeName(t,e)?ot.merge([t],i):i}function d(t,e){for(var i=0,n=t.length;n>i;i++)St.set(t[i],"globalEval",!e||St.get(e[i],"globalEval"))}function h(t,e,i,n,r){for(var o,s,a,l,u,h,f=e.createDocumentFragment(),p=[],m=0,g=t.length;g>m;m++)if(o=t[m],o||0===o)if("object"===ot.type(o))ot.merge(p,o.nodeType?[o]:o);else if(jt.test(o)){for(s=s||f.appendChild(e.createElement("div")),a=(Ft.exec(o)||["",""])[1].toLowerCase(),l=zt[a]||zt._default,s.innerHTML=l[1]+ot.htmlPrefilter(o)+l[2],h=l[0];h--;)s=s.lastChild;ot.merge(p,s.childNodes),s=f.firstChild,s.textContent=""}else p.push(e.createTextNode(o));for(f.textContent="",m=0;o=p[m++];)if(n&&ot.inArray(o,n)>-1)r&&r.push(o);else if(u=ot.contains(o.ownerDocument,o),s=c(f.appendChild(o),"script"),u&&d(s),i)for(h=0;o=s[h++];)Mt.test(o.type||"")&&i.push(o);return f}function f(){return!0}function p(){return!1}function m(){try{return G.activeElement}catch(t){}}function g(t,e,i,n,r,o){var s,a;if("object"==typeof e){"string"!=typeof i&&(n=n||i,i=void 0);for(a in e)g(t,a,i,n,e[a],o);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),r===!1)r=p;else if(!r)return t;return 1===o&&(s=r,r=function(t){return ot().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=ot.guid++)),t.each(function(){ot.event.add(this,e,r,n,i)})}function v(t,e){return ot.nodeName(t,"table")&&ot.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function y(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function _(t){var e=Wt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function w(t,e){var i,n,r,o,s,a,l,u;if(1===e.nodeType){if(St.hasData(t)&&(o=St.access(t),s=St.set(e,o),u=o.events)){delete s.handle,s.events={};for(r in u)for(i=0,n=u[r].length;n>i;i++)ot.event.add(e,r,u[r][i])}Ct.hasData(t)&&(a=Ct.access(t),l=ot.extend({},a),Ct.set(e,l))}}function x(t,e){var i=e.nodeName.toLowerCase();"input"===i&&Rt.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function b(t,e,i,n){e=Q.apply([],e);var r,o,s,a,l,u,d=0,f=t.length,p=f-1,m=e[0],g=ot.isFunction(m);if(g||f>1&&"string"==typeof m&&!nt.checkClone&&Bt.test(m))return t.each(function(r){var o=t.eq(r);g&&(e[0]=m.call(this,r,o.html())),b(o,e,i,n)});if(f&&(r=h(e,t[0].ownerDocument,!1,t,n),o=r.firstChild,1===r.childNodes.length&&(r=o),o||n)){for(s=ot.map(c(r,"script"),y),a=s.length;f>d;d++)l=r,d!==p&&(l=ot.clone(l,!0,!0),a&&ot.merge(s,c(l,"script"))),i.call(t[d],l,d);if(a)for(u=s[s.length-1].ownerDocument,ot.map(s,_),d=0;a>d;d++)l=s[d],Mt.test(l.type||"")&&!St.access(l,"globalEval")&&ot.contains(u,l)&&(l.src?ot._evalUrl&&ot._evalUrl(l.src):ot.globalEval(l.textContent.replace(Xt,"")))}return t}function T(t,e,i){for(var n,r=e?ot.filter(e,t):t,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||ot.cleanData(c(n)),n.parentNode&&(i&&ot.contains(n.ownerDocument,n)&&d(c(n,"script")),n.parentNode.removeChild(n));return t}function k(t,e){var i=ot(e.createElement(t)).appendTo(e.body),n=ot.css(i[0],"display");return i.detach(),n}function S(t){var e=G,i=Yt[t];return i||(i=k(t,e),"none"!==i&&i||(Ut=(Ut||ot("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Ut[0].contentDocument,e.write(),e.close(),i=k(t,e),Ut.detach()),Yt[t]=i),i}function C(t,e,i){var n,r,o,s,a=t.style;return i=i||Zt(t),s=i?i.getPropertyValue(e)||i[e]:void 0,""!==s&&void 0!==s||ot.contains(t.ownerDocument,t)||(s=ot.style(t,e)),i&&!nt.pixelMarginRight()&&Gt.test(s)&&Vt.test(e)&&(n=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=i.width,a.width=n,a.minWidth=r,a.maxWidth=o),void 0!==s?s+"":s}function A(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function P(t){if(t in ne)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=ie.length;i--;)if(t=ie[i]+e,t in ne)return t}function O(t,e,i){var n=Dt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function D(t,e,i,n,r){for(var o=i===(n?"border":"content")?4:"width"===e?1:0,s=0;4>o;o+=2)"margin"===i&&(s+=ot.css(t,i+$t[o],!0,r)),n?("content"===i&&(s-=ot.css(t,"padding"+$t[o],!0,r)),"margin"!==i&&(s-=ot.css(t,"border"+$t[o]+"Width",!0,r))):(s+=ot.css(t,"padding"+$t[o],!0,r),"padding"!==i&&(s+=ot.css(t,"border"+$t[o]+"Width",!0,r)));return s}function $(t,e,i){var n=!0,r="width"===e?t.offsetWidth:t.offsetHeight,o=Zt(t),s="border-box"===ot.css(t,"boxSizing",!1,o);if(0>=r||null==r){if(r=C(t,e,o),(0>r||null==r)&&(r=t.style[e]),Gt.test(r))return r;n=s&&(nt.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+D(t,e,i||(s?"border":"content"),n,o)+"px"}function E(t,e){for(var i,n,r,o=[],s=0,a=t.length;a>s;s++)n=t[s],n.style&&(o[s]=St.get(n,"olddisplay"),i=n.style.display,e?(o[s]||"none"!==i||(n.style.display=""),""===n.style.display&&Et(n)&&(o[s]=St.access(n,"olddisplay",S(n.nodeName)))):(r=Et(n),"none"===i&&r||St.set(n,"olddisplay",r?i:ot.css(n,"display"))));for(s=0;a>s;s++)n=t[s],n.style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?o[s]||"":"none"));return t}function R(t,e,i,n,r){return new R.prototype.init(t,e,i,n,r)}function F(){return t.setTimeout(function(){re=void 0}),re=ot.now()}function M(t,e){var i,n=0,r={height:t};for(e=e?1:0;4>n;n+=2-e)i=$t[n],r["margin"+i]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function z(t,e,i){for(var n,r=(L.tweeners[e]||[]).concat(L.tweeners["*"]),o=0,s=r.length;s>o;o++)if(n=r[o].call(i,e,t))return n}function j(t,e,i){var n,r,o,s,a,l,u,c,d=this,h={},f=t.style,p=t.nodeType&&Et(t),m=St.get(t,"fxshow");i.queue||(a=ot._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,ot.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],u=ot.css(t,"display"),c="none"===u?St.get(t,"olddisplay")||S(t.nodeName):u,"inline"===c&&"none"===ot.css(t,"float")&&(f.display="inline-block")),i.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}));for(n in e)if(r=e[n],se.exec(r)){if(delete e[n],o=o||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;p=!0}h[n]=m&&m[n]||ot.style(t,n)}else u=void 0;if(ot.isEmptyObject(h))"inline"===("none"===u?S(t.nodeName):u)&&(f.display=u);else{m?"hidden"in m&&(p=m.hidden):m=St.access(t,"fxshow",{}),o&&(m.hidden=!p),p?ot(t).show():d.done(function(){ot(t).hide()}),d.done(function(){var e;St.remove(t,"fxshow");for(e in h)ot.style(t,e,h[e])});for(n in h)s=z(p?m[n]:0,n,d),n in m||(m[n]=s.start,p&&(s.end=s.start,s.start="width"===n||"height"===n?1:0))}}function N(t,e){var i,n,r,o,s;for(i in t)if(n=ot.camelCase(i),r=e[n],o=t[i],ot.isArray(o)&&(r=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),s=ot.cssHooks[n],s&&"expand"in s){o=s.expand(o),delete t[n];for(i in o)i in t||(t[i]=o[i],e[i]=r)}else e[n]=r}function L(t,e,i){var n,r,o=0,s=L.prefilters.length,a=ot.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=re||F(),i=Math.max(0,u.startTime+u.duration-e),n=i/u.duration||0,o=1-n,s=0,l=u.tweens.length;l>s;s++)u.tweens[s].run(o);return a.notifyWith(t,[u,o,i]),1>o&&l?i:(a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:ot.extend({},e),opts:ot.extend(!0,{specialEasing:{},easing:ot.easing._default},i),originalProperties:e,originalOptions:i,startTime:re||F(),duration:i.duration,tweens:[],createTween:function(e,i){var n=ot.Tween(t,u.opts,e,i,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var i=0,n=e?u.tweens.length:0;if(r)return this;for(r=!0;n>i;i++)u.tweens[i].run(1);return e?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,e])):a.rejectWith(t,[u,e]),this}}),c=u.props;for(N(c,u.opts.specialEasing);s>o;o++)if(n=L.prefilters[o].call(u,t,c,u.opts))return ot.isFunction(n.stop)&&(ot._queueHooks(u.elem,u.opts.queue).stop=ot.proxy(n.stop,n)),n;return ot.map(c,z,u),ot.isFunction(u.opts.start)&&u.opts.start.call(t,u),ot.fx.timer(ot.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function I(t){return t.getAttribute&&t.getAttribute("class")||""}function H(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,o=e.toLowerCase().match(xt)||[];if(ot.isFunction(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function q(t,e,i,n){function r(a){var l;return o[a]=!0,ot.each(t[a]||[],function(t,a){var u=a(e,i,n);return"string"!=typeof u||s||o[u]?s?!(l=u):void 0:(e.dataTypes.unshift(u),r(u),!1)}),l}var o={},s=t===Ce;return r(e.dataTypes[0])||!o["*"]&&r("*")}function B(t,e){var i,n,r=ot.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&ot.extend(!0,t,n),t}function W(t,e,i){for(var n,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}return o?(o!==l[0]&&l.unshift(o),i[o]):void 0}function X(t,e,i,n){var r,o,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(s=u[l+" "+o]||u["* "+o],!s)for(r in u)if(a=r.split(" "),a[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){s===!0?s=u[r]:u[r]!==!0&&(o=a[0],c.unshift(a[1]));break}if(s!==!0)if(s&&t["throws"])e=s(e);else try{e=s(e)}catch(d){return{state:"parsererror",error:s?d:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function U(t,e,i,n){var r;if(ot.isArray(e))ot.each(e,function(e,r){i||De.test(t)?n(t,r):U(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)});else if(i||"object"!==ot.type(e))n(t,e);else for(r in e)U(t+"["+r+"]",e[r],i,n)}function Y(t){return ot.isWindow(t)?t:9===t.nodeType&&t.defaultView}var V=[],G=t.document,Z=V.slice,Q=V.concat,J=V.push,K=V.indexOf,tt={},et=tt.toString,it=tt.hasOwnProperty,nt={},rt="2.2.4",ot=function(t,e){return new ot.fn.init(t,e)},st=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,at=/^-ms-/,lt=/-([\da-z])/gi,ut=function(t,e){return e.toUpperCase()};ot.fn=ot.prototype={jquery:rt,constructor:ot,selector:"",length:0,toArray:function(){return Z.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:Z.call(this)},pushStack:function(t){var e=ot.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return ot.each(this,t)},map:function(t){return this.pushStack(ot.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(Z.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(0>t?e:0);return this.pushStack(i>=0&&e>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:J,sort:V.sort,splice:V.splice},ot.extend=ot.fn.extend=function(){var t,e,i,n,r,o,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||ot.isFunction(s)||(s={}),a===l&&(s=this,a--);l>a;a++)if(null!=(t=arguments[a]))for(e in t)i=s[e],n=t[e],s!==n&&(u&&n&&(ot.isPlainObject(n)||(r=ot.isArray(n)))?(r?(r=!1,o=i&&ot.isArray(i)?i:[]):o=i&&ot.isPlainObject(i)?i:{},s[e]=ot.extend(u,o,n)):void 0!==n&&(s[e]=n));return s},ot.extend({expando:"jQuery"+(rt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ot.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!ot.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==ot.type(t)||t.nodeType||ot.isWindow(t))return!1;if(t.constructor&&!it.call(t,"constructor")&&!it.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||it.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?tt[et.call(t)]||"object":typeof t},globalEval:function(t){var e,i=eval;t=ot.trim(t),t&&(1===t.indexOf("use strict")?(e=G.createElement("script"),e.text=t,G.head.appendChild(e).parentNode.removeChild(e)):i(t))},camelCase:function(t){return t.replace(at,"ms-").replace(lt,ut)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,r=0;if(i(t))for(n=t.length;n>r&&e.call(t[r],r,t[r])!==!1;r++);else for(r in t)if(e.call(t[r],r,t[r])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(st,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(i(Object(t))?ot.merge(n,"string"==typeof t?[t]:t):J.call(n,t)),n},inArray:function(t,e,i){return null==e?-1:K.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;i>n;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n,r=[],o=0,s=t.length,a=!i;s>o;o++)n=!e(t[o],o),n!==a&&r.push(t[o]);return r},map:function(t,e,n){var r,o,s=0,a=[];if(i(t))for(r=t.length;r>s;s++)o=e(t[s],s,n),null!=o&&a.push(o);else for(s in t)o=e(t[s],s,n),null!=o&&a.push(o);return Q.apply([],a)},guid:1,proxy:function(t,e){var i,n,r;return"string"==typeof e&&(i=t[e],e=t,t=i),ot.isFunction(t)?(n=Z.call(arguments,2),r=function(){return t.apply(e||this,n.concat(Z.call(arguments)))},r.guid=t.guid=t.guid||ot.guid++,r):void 0},now:Date.now,support:nt}),"function"==typeof Symbol&&(ot.fn[Symbol.iterator]=V[Symbol.iterator]),ot.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){tt["[object "+e+"]"]=e.toLowerCase()});var ct=function(t){function e(t,e,i,n){var r,o,s,a,l,u,d,f,p=e&&e.ownerDocument,m=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==m&&9!==m&&11!==m)return i;if(!n&&((e?e.ownerDocument||e:I)!==E&&$(e),e=e||E,F)){if(11!==m&&(u=vt.exec(t)))if(r=u[1]){if(9===m){if(!(s=e.getElementById(r)))return i;if(s.id===r)return i.push(s),i}else if(p&&(s=p.getElementById(r))&&N(e,s)&&s.id===r)return i.push(s),i}else{if(u[2])return J.apply(i,e.getElementsByTagName(t)),i;if((r=u[3])&&x.getElementsByClassName&&e.getElementsByClassName)return J.apply(i,e.getElementsByClassName(r)),i}if(x.qsa&&!X[t+" "]&&(!M||!M.test(t))){if(1!==m)p=e,f=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(_t,"\\$&"):e.setAttribute("id",a=L),d=S(t),o=d.length,l=ht.test(a)?"#"+a:"[id='"+a+"']";o--;)d[o]=l+" "+h(d[o]);f=d.join(","),p=yt.test(t)&&c(e.parentNode)||e}if(f)try{return J.apply(i,p.querySelectorAll(f)),i}catch(g){}finally{a===L&&e.removeAttribute("id")}}}return A(t.replace(at,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>b.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[L]=!0,t}function r(t){var e=E.createElement("div");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var i=t.split("|"),n=i.length;n--;)b.attrHandle[i[n]]=e}function s(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Y)-(~t.sourceIndex||Y);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function a(t){return function(e){var i=e.nodeName.toLowerCase();return"input"===i&&e.type===t}}function l(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function u(t){return n(function(e){return e=+e,n(function(i,n){for(var r,o=t([],i.length,e),s=o.length;s--;)i[r=o[s]]&&(i[r]=!(n[r]=i[r]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function d(){}function h(t){for(var e=0,i=t.length,n="";i>e;e++)n+=t[e].value;return n}function f(t,e,i){var n=e.dir,r=i&&"parentNode"===n,o=q++;return e.first?function(e,i,o){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,o)}:function(e,i,s){var a,l,u,c=[H,o];if(s){for(;e=e[n];)if((1===e.nodeType||r)&&t(e,i,s))return!0}else for(;e=e[n];)if(1===e.nodeType||r){if(u=e[L]||(e[L]={}),l=u[e.uniqueID]||(u[e.uniqueID]={}),(a=l[n])&&a[0]===H&&a[1]===o)return c[2]=a[2];if(l[n]=c,c[2]=t(e,i,s))return!0}}}function p(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function m(t,i,n){for(var r=0,o=i.length;o>r;r++)e(t,i[r],n);return n}function g(t,e,i,n,r){for(var o,s=[],a=0,l=t.length,u=null!=e;l>a;a++)(o=t[a])&&(i&&!i(o,n,r)||(s.push(o),u&&e.push(a)));return s}function v(t,e,i,r,o,s){return r&&!r[L]&&(r=v(r)),o&&!o[L]&&(o=v(o,s)),n(function(n,s,a,l){var u,c,d,h=[],f=[],p=s.length,v=n||m(e||"*",a.nodeType?[a]:a,[]),y=!t||!n&&e?v:g(v,h,t,a,l),_=i?o||(n?t:p||r)?[]:s:y;if(i&&i(y,_,a,l),r)for(u=g(_,f),r(u,[],a,l),c=u.length;c--;)(d=u[c])&&(_[f[c]]=!(y[f[c]]=d));if(n){if(o||t){if(o){for(u=[],c=_.length;c--;)(d=_[c])&&u.push(y[c]=d);o(null,_=[],u,l)}for(c=_.length;c--;)(d=_[c])&&(u=o?tt(n,d):h[c])>-1&&(n[u]=!(s[u]=d))}}else _=g(_===s?_.splice(p,_.length):_),o?o(null,s,_,l):J.apply(s,_)})}function y(t){for(var e,i,n,r=t.length,o=b.relative[t[0].type],s=o||b.relative[" "],a=o?1:0,l=f(function(t){return t===e},s,!0),u=f(function(t){return tt(e,t)>-1},s,!0),c=[function(t,i,n){var r=!o&&(n||i!==P)||((e=i).nodeType?l(t,i,n):u(t,i,n));return e=null,r}];r>a;a++)if(i=b.relative[t[a].type])c=[f(p(c),i)];else{if(i=b.filter[t[a].type].apply(null,t[a].matches),i[L]){for(n=++a;r>n&&!b.relative[t[n].type];n++);return v(a>1&&p(c),a>1&&h(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(at,"$1"),i,n>a&&y(t.slice(a,n)),r>n&&y(t=t.slice(n)),r>n&&h(t))}c.push(i)}return p(c)}function _(t,i){var r=i.length>0,o=t.length>0,s=function(n,s,a,l,u){var c,d,h,f=0,p="0",m=n&&[],v=[],y=P,_=n||o&&b.find.TAG("*",u),w=H+=null==y?1:Math.random()||.1,x=_.length;for(u&&(P=s===E||s||u);p!==x&&null!=(c=_[p]);p++){if(o&&c){for(d=0,s||c.ownerDocument===E||($(c),a=!F);h=t[d++];)if(h(c,s||E,a)){l.push(c);break}u&&(H=w)}r&&((c=!h&&c)&&f--,n&&m.push(c))}if(f+=p,r&&p!==f){for(d=0;h=i[d++];)h(m,v,s,a);if(n){if(f>0)for(;p--;)m[p]||v[p]||(v[p]=Z.call(l));v=g(v)}J.apply(l,v),u&&!n&&v.length>0&&f+i.length>1&&e.uniqueSort(l)}return u&&(H=w,P=y),m};return r?n(s):s}var w,x,b,T,k,S,C,A,P,O,D,$,E,R,F,M,z,j,N,L="sizzle"+1*new Date,I=t.document,H=0,q=0,B=i(),W=i(),X=i(),U=function(t,e){return t===e&&(D=!0),0},Y=1<<31,V={}.hasOwnProperty,G=[],Z=G.pop,Q=G.push,J=G.push,K=G.slice,tt=function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt="\\["+it+"*("+nt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+nt+"))|)"+it+"*\\]",ot=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+rt+")*)|.*)\\)|)",st=new RegExp(it+"+","g"),at=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),lt=new RegExp("^"+it+"*,"+it+"*"),ut=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ct=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),dt=new RegExp(ot),ht=new RegExp("^"+nt+"$"),ft={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},pt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,_t=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),xt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},bt=function(){$()};try{J.apply(G=K.call(I.childNodes),I.childNodes),G[I.childNodes.length].nodeType}catch(Tt){J={apply:G.length?function(t,e){Q.apply(t,K.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}x=e.support={},k=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},$=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:I;return n!==E&&9===n.nodeType&&n.documentElement?(E=n,R=E.documentElement,F=!k(E),(i=E.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",bt,!1):i.attachEvent&&i.attachEvent("onunload",bt)),x.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),x.getElementsByTagName=r(function(t){return t.appendChild(E.createComment("")),!t.getElementsByTagName("*").length}),x.getElementsByClassName=gt.test(E.getElementsByClassName),x.getById=r(function(t){return R.appendChild(t).id=L,!E.getElementsByName||!E.getElementsByName(L).length}),x.getById?(b.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&F){var i=e.getElementById(t);return i?[i]:[]}},b.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){return t.getAttribute("id")===e}}):(delete b.find.ID,b.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),b.find.TAG=x.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):x.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},b.find.CLASS=x.getElementsByClassName&&function(t,e){return"undefined"!=typeof e.getElementsByClassName&&F?e.getElementsByClassName(t):void 0},z=[],M=[],(x.qsa=gt.test(E.querySelectorAll))&&(r(function(t){R.appendChild(t).innerHTML="<a id='"+L+"'></a><select id='"+L+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&M.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||M.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+L+"-]").length||M.push("~="),
t.querySelectorAll(":checked").length||M.push(":checked"),t.querySelectorAll("a#"+L+"+*").length||M.push(".#.+[+~]")}),r(function(t){var e=E.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&M.push("name"+it+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),M.push(",.*:")})),(x.matchesSelector=gt.test(j=R.matches||R.webkitMatchesSelector||R.mozMatchesSelector||R.oMatchesSelector||R.msMatchesSelector))&&r(function(t){x.disconnectedMatch=j.call(t,"div"),j.call(t,"[s!='']:x"),z.push("!=",ot)}),M=M.length&&new RegExp(M.join("|")),z=z.length&&new RegExp(z.join("|")),e=gt.test(R.compareDocumentPosition),N=e||gt.test(R.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},U=e?function(t,e){if(t===e)return D=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!x.sortDetached&&e.compareDocumentPosition(t)===i?t===E||t.ownerDocument===I&&N(I,t)?-1:e===E||e.ownerDocument===I&&N(I,e)?1:O?tt(O,t)-tt(O,e):0:4&i?-1:1)}:function(t,e){if(t===e)return D=!0,0;var i,n=0,r=t.parentNode,o=e.parentNode,a=[t],l=[e];if(!r||!o)return t===E?-1:e===E?1:r?-1:o?1:O?tt(O,t)-tt(O,e):0;if(r===o)return s(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)l.unshift(i);for(;a[n]===l[n];)n++;return n?s(a[n],l[n]):a[n]===I?-1:l[n]===I?1:0},E):E},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==E&&$(t),i=i.replace(ct,"='$1']"),x.matchesSelector&&F&&!X[i+" "]&&(!z||!z.test(i))&&(!M||!M.test(i)))try{var n=j.call(t,i);if(n||x.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(r){}return e(i,E,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==E&&$(t),N(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==E&&$(t);var i=b.attrHandle[e.toLowerCase()],n=i&&V.call(b.attrHandle,e.toLowerCase())?i(t,e,!F):void 0;return void 0!==n?n:x.attributes||!F?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,r=0;if(D=!x.detectDuplicates,O=!x.sortStable&&t.slice(0),t.sort(U),D){for(;e=t[r++];)e===t[r]&&(n=i.push(r));for(;n--;)t.splice(i[n],1)}return O=null,t},T=e.getText=function(t){var e,i="",n=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=T(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=T(e);return i},b=e.selectors={cacheLength:50,createPseudo:n,match:ft,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(wt,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(wt,xt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&dt.test(i)&&(e=S(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(r){var o=e.attr(r,t);return null==o?"!="===i:!i||(o+="","="===i?o===n:"!="===i?o!==n:"^="===i?n&&0===o.indexOf(n):"*="===i?n&&o.indexOf(n)>-1:"$="===i?n&&o.slice(-n.length)===n:"~="===i?(" "+o.replace(st," ")+" ").indexOf(n)>-1:"|="===i&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var u,c,d,h,f,p,m=o!==s?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,_=!1;if(g){if(o){for(;m;){for(h=e;h=h[m];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&y){for(h=g,d=h[L]||(h[L]={}),c=d[h.uniqueID]||(d[h.uniqueID]={}),u=c[t]||[],f=u[0]===H&&u[1],_=f&&u[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(_=f=0)||p.pop();)if(1===h.nodeType&&++_&&h===e){c[t]=[H,f,_];break}}else if(y&&(h=e,d=h[L]||(h[L]={}),c=d[h.uniqueID]||(d[h.uniqueID]={}),u=c[t]||[],f=u[0]===H&&u[1],_=f),_===!1)for(;(h=++f&&h&&h[m]||(_=f=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++_||(y&&(d=h[L]||(h[L]={}),c=d[h.uniqueID]||(d[h.uniqueID]={}),c[t]=[H,_]),h!==e)););return _-=r,_===n||_%n===0&&_/n>=0}}},PSEUDO:function(t,i){var r,o=b.pseudos[t]||b.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[L]?o(i):o.length>1?(r=[t,t,"",i],b.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,r=o(t,i),s=r.length;s--;)n=tt(t,r[s]),t[n]=!(e[n]=r[s])}):function(t){return o(t,0,r)}):o}},pseudos:{not:n(function(t){var e=[],i=[],r=C(t.replace(at,"$1"));return r[L]?n(function(t,e,i,n){for(var o,s=r(t,null,n,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,n,o){return e[0]=t,r(e,null,o,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(wt,xt),function(e){return(e.textContent||e.innerText||T(e)).indexOf(t)>-1}}),lang:n(function(t){return ht.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(wt,xt).toLowerCase(),function(e){var i;do if(i=F?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return i=i.toLowerCase(),i===t||0===i.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===R},focus:function(t){return t===E.activeElement&&(!E.hasFocus||E.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!b.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return pt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,i){return[0>i?i+e:i]}),even:u(function(t,e){for(var i=0;e>i;i+=2)t.push(i);return t}),odd:u(function(t,e){for(var i=1;e>i;i+=2)t.push(i);return t}),lt:u(function(t,e,i){for(var n=0>i?i+e:i;--n>=0;)t.push(n);return t}),gt:u(function(t,e,i){for(var n=0>i?i+e:i;++n<e;)t.push(n);return t})}},b.pseudos.nth=b.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})b.pseudos[w]=l(w);return d.prototype=b.filters=b.pseudos,b.setFilters=new d,S=e.tokenize=function(t,i){var n,r,o,s,a,l,u,c=W[t+" "];if(c)return i?0:c.slice(0);for(a=t,l=[],u=b.preFilter;a;){n&&!(r=lt.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),n=!1,(r=ut.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(at," ")}),a=a.slice(n.length));for(s in b.filter)!(r=ft[s].exec(a))||u[s]&&!(r=u[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return i?a.length:a?e.error(t):W(t,l).slice(0)},C=e.compile=function(t,e){var i,n=[],r=[],o=X[t+" "];if(!o){for(e||(e=S(t)),i=e.length;i--;)o=y(e[i]),o[L]?n.push(o):r.push(o);o=X(t,_(r,n)),o.selector=t}return o},A=e.select=function(t,e,i,n){var r,o,s,a,l,u="function"==typeof t&&t,d=!n&&S(t=u.selector||t);if(i=i||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&x.getById&&9===e.nodeType&&F&&b.relative[o[1].type]){if(e=(b.find.ID(s.matches[0].replace(wt,xt),e)||[])[0],!e)return i;u&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=ft.needsContext.test(t)?0:o.length;r--&&(s=o[r],!b.relative[a=s.type]);)if((l=b.find[a])&&(n=l(s.matches[0].replace(wt,xt),yt.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(r,1),t=n.length&&h(o),!t)return J.apply(i,n),i;break}}return(u||C(t,d))(n,e,!F,i,!e||yt.test(t)&&c(e.parentNode)||e),i},x.sortStable=L.split("").sort(U).join("")===L,x.detectDuplicates=!!D,$(),x.sortDetached=r(function(t){return 1&t.compareDocumentPosition(E.createElement("div"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,i){return i?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),x.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,i){return i||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,i){var n;return i?void 0:t[e]===!0?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t);ot.find=ct,ot.expr=ct.selectors,ot.expr[":"]=ot.expr.pseudos,ot.uniqueSort=ot.unique=ct.uniqueSort,ot.text=ct.getText,ot.isXMLDoc=ct.isXML,ot.contains=ct.contains;var dt=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&ot(t).is(i))break;n.push(t)}return n},ht=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},ft=ot.expr.match.needsContext,pt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,mt=/^.[^:#\[\.,]*$/;ot.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?ot.find.matchesSelector(n,t)?[n]:[]:ot.find.matches(t,ot.grep(e,function(t){return 1===t.nodeType}))},ot.fn.extend({find:function(t){var e,i=this.length,n=[],r=this;if("string"!=typeof t)return this.pushStack(ot(t).filter(function(){for(e=0;i>e;e++)if(ot.contains(r[e],this))return!0}));for(e=0;i>e;e++)ot.find(t,r[e],n);return n=this.pushStack(i>1?ot.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(n(this,t||[],!1))},not:function(t){return this.pushStack(n(this,t||[],!0))},is:function(t){return!!n(this,"string"==typeof t&&ft.test(t)?ot(t):t||[],!1).length}});var gt,vt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,yt=ot.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||gt,"string"==typeof t){if(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:vt.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof ot?e[0]:e,ot.merge(this,ot.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:G,!0)),pt.test(n[1])&&ot.isPlainObject(e))for(n in e)ot.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return r=G.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=G,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ot.isFunction(t)?void 0!==i.ready?i.ready(t):t(ot):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ot.makeArray(t,this))};yt.prototype=ot.fn,gt=ot(G);var _t=/^(?:parents|prev(?:Until|All))/,wt={children:!0,contents:!0,next:!0,prev:!0};ot.fn.extend({has:function(t){var e=ot(t,this),i=e.length;return this.filter(function(){for(var t=0;i>t;t++)if(ot.contains(this,e[t]))return!0})},closest:function(t,e){for(var i,n=0,r=this.length,o=[],s=ft.test(t)||"string"!=typeof t?ot(t,e||this.context):0;r>n;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:1===i.nodeType&&ot.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?ot.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?K.call(ot(t),this[0]):K.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ot.uniqueSort(ot.merge(this.get(),ot(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ot.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return dt(t,"parentNode")},parentsUntil:function(t,e,i){return dt(t,"parentNode",i)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return dt(t,"nextSibling")},prevAll:function(t){return dt(t,"previousSibling")},nextUntil:function(t,e,i){return dt(t,"nextSibling",i)},prevUntil:function(t,e,i){return dt(t,"previousSibling",i)},siblings:function(t){return ht((t.parentNode||{}).firstChild,t)},children:function(t){return ht(t.firstChild)},contents:function(t){return t.contentDocument||ot.merge([],t.childNodes)}},function(t,e){ot.fn[t]=function(i,n){var r=ot.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=ot.filter(n,r)),this.length>1&&(wt[t]||ot.uniqueSort(r),_t.test(t)&&r.reverse()),this.pushStack(r)}});var xt=/\S+/g;ot.Callbacks=function(t){t="string"==typeof t?o(t):ot.extend({},t);var e,i,n,r,s=[],a=[],l=-1,u=function(){for(r=t.once,n=e=!0;a.length;l=-1)for(i=a.shift();++l<s.length;)s[l].apply(i[0],i[1])===!1&&t.stopOnFalse&&(l=s.length,i=!1);t.memory||(i=!1),e=!1,r&&(s=i?[]:"")},c={add:function(){return s&&(i&&!e&&(l=s.length-1,a.push(i)),function n(e){ot.each(e,function(e,i){ot.isFunction(i)?t.unique&&c.has(i)||s.push(i):i&&i.length&&"string"!==ot.type(i)&&n(i)})}(arguments),i&&!e&&u()),this},remove:function(){return ot.each(arguments,function(t,e){for(var i;(i=ot.inArray(e,s,i))>-1;)s.splice(i,1),l>=i&&l--}),this},has:function(t){return t?ot.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=a=[],s=i="",this},disabled:function(){return!s},lock:function(){return r=a=[],i||(s=i=""),this},locked:function(){return!!r},fireWith:function(t,i){return r||(i=i||[],i=[t,i.slice?i.slice():i],a.push(i),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},ot.extend({Deferred:function(t){var e=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ot.Deferred(function(i){ot.each(e,function(e,o){var s=ot.isFunction(t[e])&&t[e];r[o[1]](function(){var t=s&&s.apply(this,arguments);t&&ot.isFunction(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[o[0]+"With"](this===n?i.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ot.extend(t,n):n}},r={};return n.pipe=n.then,ot.each(e,function(t,o){var s=o[2],a=o[3];n[o[1]]=s.add,a&&s.add(function(){i=a},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?n:this,arguments),this},r[o[0]+"With"]=s.fireWith}),n.promise(r),t&&t.call(r,r),r},when:function(t){var e,i,n,r=0,o=Z.call(arguments),s=o.length,a=1!==s||t&&ot.isFunction(t.promise)?s:0,l=1===a?t:ot.Deferred(),u=function(t,i,n){return function(r){i[t]=this,n[t]=arguments.length>1?Z.call(arguments):r,n===e?l.notifyWith(i,n):--a||l.resolveWith(i,n)}};if(s>1)for(e=new Array(s),i=new Array(s),n=new Array(s);s>r;r++)o[r]&&ot.isFunction(o[r].promise)?o[r].promise().progress(u(r,i,e)).done(u(r,n,o)).fail(l.reject):--a;return a||l.resolveWith(n,o),l.promise()}});var bt;ot.fn.ready=function(t){return ot.ready.promise().done(t),this},ot.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ot.readyWait++:ot.ready(!0)},ready:function(t){(t===!0?--ot.readyWait:ot.isReady)||(ot.isReady=!0,t!==!0&&--ot.readyWait>0||(bt.resolveWith(G,[ot]),ot.fn.triggerHandler&&(ot(G).triggerHandler("ready"),ot(G).off("ready"))))}}),ot.ready.promise=function(e){return bt||(bt=ot.Deferred(),"complete"===G.readyState||"loading"!==G.readyState&&!G.documentElement.doScroll?t.setTimeout(ot.ready):(G.addEventListener("DOMContentLoaded",s),t.addEventListener("load",s))),bt.promise(e)},ot.ready.promise();var Tt=function(t,e,i,n,r,o,s){var a=0,l=t.length,u=null==i;if("object"===ot.type(i)){r=!0;for(a in i)Tt(t,e,a,i[a],!0,o,s)}else if(void 0!==n&&(r=!0,ot.isFunction(n)||(s=!0),u&&(s?(e.call(t,n),e=null):(u=e,e=function(t,e,i){return u.call(ot(t),i)})),e))for(;l>a;a++)e(t[a],i,s?n:n.call(t[a],a,e(t[a],i)));return r?t:u?e.call(t):l?e(t[0],i):o},kt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};a.uid=1,a.prototype={register:function(t,e){var i=e||{};return t.nodeType?t[this.expando]=i:Object.defineProperty(t,this.expando,{value:i,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!kt(t))return{};var e=t[this.expando];return e||(e={},kt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,r=this.cache(t);if("string"==typeof e)r[e]=i;else for(n in e)r[n]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,i){var n;return void 0===e||e&&"string"==typeof e&&void 0===i?(n=this.get(t,e),void 0!==n?n:this.get(t,ot.camelCase(e))):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n,r,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{ot.isArray(e)?n=e.concat(e.map(ot.camelCase)):(r=ot.camelCase(e),e in o?n=[e,r]:(n=r,n=n in o?[n]:n.match(xt)||[])),i=n.length;for(;i--;)delete o[n[i]]}(void 0===e||ot.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!ot.isEmptyObject(e)}};var St=new a,Ct=new a,At=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Pt=/[A-Z]/g;ot.extend({hasData:function(t){return Ct.hasData(t)||St.hasData(t)},data:function(t,e,i){return Ct.access(t,e,i)},removeData:function(t,e){Ct.remove(t,e)},_data:function(t,e,i){return St.access(t,e,i)},_removeData:function(t,e){St.remove(t,e)}}),ot.fn.extend({data:function(t,e){var i,n,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=Ct.get(o),1===o.nodeType&&!St.get(o,"hasDataAttrs"))){for(i=s.length;i--;)s[i]&&(n=s[i].name,0===n.indexOf("data-")&&(n=ot.camelCase(n.slice(5)),l(o,n,r[n])));St.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){Ct.set(this,t)}):Tt(this,function(e){var i,n;if(o&&void 0===e){if(i=Ct.get(o,t)||Ct.get(o,t.replace(Pt,"-$&").toLowerCase()),void 0!==i)return i;if(n=ot.camelCase(t),i=Ct.get(o,n),void 0!==i)return i;if(i=l(o,n,void 0),void 0!==i)return i}else n=ot.camelCase(t),this.each(function(){var i=Ct.get(this,n);Ct.set(this,n,e),t.indexOf("-")>-1&&void 0!==i&&Ct.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Ct.remove(this,t)})}}),ot.extend({queue:function(t,e,i){var n;return t?(e=(e||"fx")+"queue",n=St.get(t,e),i&&(!n||ot.isArray(i)?n=St.access(t,e,ot.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(t,e){e=e||"fx";var i=ot.queue(t,e),n=i.length,r=i.shift(),o=ot._queueHooks(t,e),s=function(){ot.dequeue(t,e)};"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete o.stop,r.call(t,s,o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return St.get(t,i)||St.access(t,i,{empty:ot.Callbacks("once memory").add(function(){St.remove(t,[e+"queue",i])})})}}),ot.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?ot.queue(this[0],t):void 0===e?this:this.each(function(){var i=ot.queue(this,t,e);ot._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&ot.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ot.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=ot.Deferred(),o=this,s=this.length,a=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)i=St.get(o[s],t+"queueHooks"),i&&i.empty&&(n++,i.empty.add(a));return a(),r.promise(e)}});var Ot=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Dt=new RegExp("^(?:([+-])=|)("+Ot+")([a-z%]*)$","i"),$t=["Top","Right","Bottom","Left"],Et=function(t,e){return t=e||t,"none"===ot.css(t,"display")||!ot.contains(t.ownerDocument,t)},Rt=/^(?:checkbox|radio)$/i,Ft=/<([\w:-]+)/,Mt=/^$|\/(?:java|ecma)script/i,zt={option:[1,"<select multiple='multiple'>","</select>"],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,"",""]};zt.optgroup=zt.option,zt.tbody=zt.tfoot=zt.colgroup=zt.caption=zt.thead,zt.th=zt.td;var jt=/<|&#?\w+;/;!function(){var t=G.createDocumentFragment(),e=t.appendChild(G.createElement("div")),i=G.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),nt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",nt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Nt=/^key/,Lt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,It=/^([^.]*)(?:\.(.+)|)/;ot.event={global:{},add:function(t,e,i,n,r){var o,s,a,l,u,c,d,h,f,p,m,g=St.get(t);if(g)for(i.handler&&(o=i,i=o.handler,r=o.selector),i.guid||(i.guid=ot.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(e){return"undefined"!=typeof ot&&ot.event.triggered!==e.type?ot.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(xt)||[""],u=e.length;u--;)a=It.exec(e[u])||[],f=m=a[1],p=(a[2]||"").split(".").sort(),f&&(d=ot.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=ot.event.special[f]||{},c=ot.extend({type:f,origType:m,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&ot.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||(h=l[f]=[],h.delegateCount=0,d.setup&&d.setup.call(t,n,p,s)!==!1||t.addEventListener&&t.addEventListener(f,s)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),ot.event.global[f]=!0)},remove:function(t,e,i,n,r){var o,s,a,l,u,c,d,h,f,p,m,g=St.hasData(t)&&St.get(t);if(g&&(l=g.events)){for(e=(e||"").match(xt)||[""],u=e.length;u--;)if(a=It.exec(e[u])||[],f=m=a[1],p=(a[2]||"").split(".").sort(),f){for(d=ot.event.special[f]||{},f=(n?d.delegateType:d.bindType)||f,h=l[f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],!r&&m!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(t,c));s&&!h.length&&(d.teardown&&d.teardown.call(t,p,g.handle)!==!1||ot.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)ot.event.remove(t,f+e[u],i,n,!0);ot.isEmptyObject(l)&&St.remove(t,"handle events")}},dispatch:function(t){t=ot.event.fix(t);var e,i,n,r,o,s=[],a=Z.call(arguments),l=(St.get(this,"events")||{})[t.type]||[],u=ot.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(s=ot.event.handlers.call(this,t,l),e=0;(r=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,n=((ot.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a),void 0!==n&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,r,o,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==t.type)){for(n=[],i=0;a>i;i++)o=e[i],r=o.selector+" ",void 0===n[r]&&(n[r]=o.needsContext?ot(r,this).index(l)>-1:ot.find(r,this,null,[l]).length),n[r]&&n.push(o);n.length&&s.push({elem:l,handlers:n})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,n,r,o=e.button;return null==t.pageX&&null!=e.clientX&&(i=t.target.ownerDocument||G,n=i.documentElement,r=i.body,t.pageX=e.clientX+(n&&n.scrollLeft||r&&r.scrollLeft||0)-(n&&n.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(n&&n.scrollTop||r&&r.scrollTop||0)-(n&&n.clientTop||r&&r.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[ot.expando])return t;var e,i,n,r=t.type,o=t,s=this.fixHooks[r];for(s||(this.fixHooks[r]=s=Lt.test(r)?this.mouseHooks:Nt.test(r)?this.keyHooks:{}),n=s.props?this.props.concat(s.props):this.props,t=new ot.Event(o),e=n.length;e--;)i=n[e],t[i]=o[i];return t.target||(t.target=G),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==m()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===m()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&ot.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return ot.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},ot.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},ot.Event=function(t,e){return this instanceof ot.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?f:p):this.type=t,e&&ot.extend(this,e),this.timeStamp=t&&t.timeStamp||ot.now(),void(this[ot.expando]=!0)):new ot.Event(t,e)},ot.Event.prototype={constructor:ot.Event,isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=f,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=f,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=f,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},ot.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ot.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===n||ot.contains(n,r))||(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}}),ot.fn.extend({on:function(t,e,i,n){return g(this,t,e,i,n)},one:function(t,e,i,n){return g(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,ot(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return e!==!1&&"function"!=typeof e||(i=e,e=void 0),i===!1&&(i=p),this.each(function(){ot.event.remove(this,t,i,e)})}});var Ht=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,qt=/<script|<style|<link/i,Bt=/checked\s*(?:[^=]|=\s*.checked.)/i,Wt=/^true\/(.*)/,Xt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ot.extend({htmlPrefilter:function(t){return t.replace(Ht,"<$1></$2>")},clone:function(t,e,i){var n,r,o,s,a=t.cloneNode(!0),l=ot.contains(t.ownerDocument,t);if(!(nt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ot.isXMLDoc(t)))for(s=c(a),o=c(t),n=0,r=o.length;r>n;n++)x(o[n],s[n]);if(e)if(i)for(o=o||c(t),s=s||c(a),n=0,r=o.length;r>n;n++)w(o[n],s[n]);else w(t,a);return s=c(a,"script"),s.length>0&&d(s,!l&&c(t,"script")),a},cleanData:function(t){for(var e,i,n,r=ot.event.special,o=0;void 0!==(i=t[o]);o++)if(kt(i)){if(e=i[St.expando]){if(e.events)for(n in e.events)r[n]?ot.event.remove(i,n):ot.removeEvent(i,n,e.handle);i[St.expando]=void 0}i[Ct.expando]&&(i[Ct.expando]=void 0)}}}),ot.fn.extend({domManip:b,detach:function(t){return T(this,t,!0)},remove:function(t){return T(this,t)},text:function(t){return Tt(this,function(t){return void 0===t?ot.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return b(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.appendChild(t)}})},prepend:function(){return b(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return b(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return b(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(ot.cleanData(c(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ot.clone(this,t,e)})},html:function(t){return Tt(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!qt.test(t)&&!zt[(Ft.exec(t)||["",""])[1].toLowerCase()]){t=ot.htmlPrefilter(t);try{for(;n>i;i++)e=this[i]||{},1===e.nodeType&&(ot.cleanData(c(e,!1)),e.innerHTML=t);e=0}catch(r){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return b(this,arguments,function(e){var i=this.parentNode;ot.inArray(this,t)<0&&(ot.cleanData(c(this)),i&&i.replaceChild(e,this))},t)}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ot.fn[t]=function(t){for(var i,n=[],r=ot(t),o=r.length-1,s=0;o>=s;s++)i=s===o?this:this.clone(!0),ot(r[s])[e](i),J.apply(n,i.get());return this.pushStack(n)}});var Ut,Yt={HTML:"block",BODY:"block"},Vt=/^margin/,Gt=new RegExp("^("+Ot+")(?!px)[a-z%]+$","i"),Zt=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)},Qt=function(t,e,i,n){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];r=i.apply(t,n||[]);for(o in e)t.style[o]=s[o];return r},Jt=G.documentElement;!function(){function e(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Jt.appendChild(s);var e=t.getComputedStyle(a);i="1%"!==e.top,o="2px"===e.marginLeft,n="4px"===e.width,a.style.marginRight="50%",r="4px"===e.marginRight,
Jt.removeChild(s)}var i,n,r,o,s=G.createElement("div"),a=G.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",nt.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),ot.extend(nt,{pixelPosition:function(){return e(),i},boxSizingReliable:function(){return null==n&&e(),n},pixelMarginRight:function(){return null==n&&e(),r},reliableMarginLeft:function(){return null==n&&e(),o},reliableMarginRight:function(){var e,i=a.appendChild(G.createElement("div"));return i.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",a.style.width="1px",Jt.appendChild(s),e=!parseFloat(t.getComputedStyle(i).marginRight),Jt.removeChild(s),a.removeChild(i),e}}))}();var Kt=/^(none|table(?!-c[ea]).+)/,te={position:"absolute",visibility:"hidden",display:"block"},ee={letterSpacing:"0",fontWeight:"400"},ie=["Webkit","O","Moz","ms"],ne=G.createElement("div").style;ot.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=C(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=ot.camelCase(e),l=t.style;return e=ot.cssProps[a]||(ot.cssProps[a]=P(a)||a),s=ot.cssHooks[e]||ot.cssHooks[a],void 0===i?s&&"get"in s&&void 0!==(r=s.get(t,!1,n))?r:l[e]:(o=typeof i,"string"===o&&(r=Dt.exec(i))&&r[1]&&(i=u(t,e,r),o="number"),void(null!=i&&i===i&&("number"===o&&(i+=r&&r[3]||(ot.cssNumber[a]?"":"px")),nt.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),s&&"set"in s&&void 0===(i=s.set(t,i,n))||(l[e]=i))))}},css:function(t,e,i,n){var r,o,s,a=ot.camelCase(e);return e=ot.cssProps[a]||(ot.cssProps[a]=P(a)||a),s=ot.cssHooks[e]||ot.cssHooks[a],s&&"get"in s&&(r=s.get(t,!0,i)),void 0===r&&(r=C(t,e,n)),"normal"===r&&e in ee&&(r=ee[e]),""===i||i?(o=parseFloat(r),i===!0||isFinite(o)?o||0:r):r}}),ot.each(["height","width"],function(t,e){ot.cssHooks[e]={get:function(t,i,n){return i?Kt.test(ot.css(t,"display"))&&0===t.offsetWidth?Qt(t,te,function(){return $(t,e,n)}):$(t,e,n):void 0},set:function(t,i,n){var r,o=n&&Zt(t),s=n&&D(t,e,n,"border-box"===ot.css(t,"boxSizing",!1,o),o);return s&&(r=Dt.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=ot.css(t,e)),O(t,i,s)}}}),ot.cssHooks.marginLeft=A(nt.reliableMarginLeft,function(t,e){return e?(parseFloat(C(t,"marginLeft"))||t.getBoundingClientRect().left-Qt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px":void 0}),ot.cssHooks.marginRight=A(nt.reliableMarginRight,function(t,e){return e?Qt(t,{display:"inline-block"},C,[t,"marginRight"]):void 0}),ot.each({margin:"",padding:"",border:"Width"},function(t,e){ot.cssHooks[t+e]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];4>n;n++)r[t+$t[n]+e]=o[n]||o[n-2]||o[0];return r}},Vt.test(t)||(ot.cssHooks[t+e].set=O)}),ot.fn.extend({css:function(t,e){return Tt(this,function(t,e,i){var n,r,o={},s=0;if(ot.isArray(e)){for(n=Zt(t),r=e.length;r>s;s++)o[e[s]]=ot.css(t,e[s],!1,n);return o}return void 0!==i?ot.style(t,e,i):ot.css(t,e)},t,e,arguments.length>1)},show:function(){return E(this,!0)},hide:function(){return E(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Et(this)?ot(this).show():ot(this).hide()})}}),ot.Tween=R,R.prototype={constructor:R,init:function(t,e,i,n,r,o){this.elem=t,this.prop=i,this.easing=r||ot.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(ot.cssNumber[i]?"":"px")},cur:function(){var t=R.propHooks[this.prop];return t&&t.get?t.get(this):R.propHooks._default.get(this)},run:function(t){var e,i=R.propHooks[this.prop];return this.options.duration?this.pos=e=ot.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=ot.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){ot.fx.step[t.prop]?ot.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ot.cssProps[t.prop]]&&!ot.cssHooks[t.prop]?t.elem[t.prop]=t.now:ot.style(t.elem,t.prop,t.now+t.unit)}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ot.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ot.fx=R.prototype.init,ot.fx.step={};var re,oe,se=/^(?:toggle|show|hide)$/,ae=/queueHooks$/;ot.Animation=ot.extend(L,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return u(i.elem,t,Dt.exec(e),i),i}]},tweener:function(t,e){ot.isFunction(t)?(e=t,t=["*"]):t=t.match(xt);for(var i,n=0,r=t.length;r>n;n++)i=t[n],L.tweeners[i]=L.tweeners[i]||[],L.tweeners[i].unshift(e)},prefilters:[j],prefilter:function(t,e){e?L.prefilters.unshift(t):L.prefilters.push(t)}}),ot.speed=function(t,e,i){var n=t&&"object"==typeof t?ot.extend({},t):{complete:i||!i&&e||ot.isFunction(t)&&t,duration:t,easing:i&&e||e&&!ot.isFunction(e)&&e};return n.duration=ot.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in ot.fx.speeds?ot.fx.speeds[n.duration]:ot.fx.speeds._default,null!=n.queue&&n.queue!==!0||(n.queue="fx"),n.old=n.complete,n.complete=function(){ot.isFunction(n.old)&&n.old.call(this),n.queue&&ot.dequeue(this,n.queue)},n},ot.fn.extend({fadeTo:function(t,e,i,n){return this.filter(Et).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=ot.isEmptyObject(t),o=ot.speed(e,i,n),s=function(){var e=L(this,ot.extend({},t),o);(r||St.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=ot.timers,s=St.get(this);if(r)s[r]&&s[r].stop&&n(s[r]);else for(r in s)s[r]&&s[r].stop&&ae.test(r)&&n(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(i),e=!1,o.splice(r,1));!e&&i||ot.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,i=St.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],o=ot.timers,s=n?n.length:0;for(i.finish=!0,ot.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;s>e;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),ot.each(["toggle","show","hide"],function(t,e){var i=ot.fn[e];ot.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(M(e,!0),t,n,r)}}),ot.each({slideDown:M("show"),slideUp:M("hide"),slideToggle:M("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ot.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),ot.timers=[],ot.fx.tick=function(){var t,e=0,i=ot.timers;for(re=ot.now();e<i.length;e++)t=i[e],t()||i[e]!==t||i.splice(e--,1);i.length||ot.fx.stop(),re=void 0},ot.fx.timer=function(t){ot.timers.push(t),t()?ot.fx.start():ot.timers.pop()},ot.fx.interval=13,ot.fx.start=function(){oe||(oe=t.setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){t.clearInterval(oe),oe=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fn.delay=function(e,i){return e=ot.fx?ot.fx.speeds[e]||e:e,i=i||"fx",this.queue(i,function(i,n){var r=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(r)}})},function(){var t=G.createElement("input"),e=G.createElement("select"),i=e.appendChild(G.createElement("option"));t.type="checkbox",nt.checkOn=""!==t.value,nt.optSelected=i.selected,e.disabled=!0,nt.optDisabled=!i.disabled,t=G.createElement("input"),t.value="t",t.type="radio",nt.radioValue="t"===t.value}();var le,ue=ot.expr.attrHandle;ot.fn.extend({attr:function(t,e){return Tt(this,ot.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ot.removeAttr(this,t)})}}),ot.extend({attr:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?ot.prop(t,e,i):(1===o&&ot.isXMLDoc(t)||(e=e.toLowerCase(),r=ot.attrHooks[e]||(ot.expr.match.bool.test(e)?le:void 0)),void 0!==i?null===i?void ot.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:(n=ot.find.attr(t,e),null==n?void 0:n))},attrHooks:{type:{set:function(t,e){if(!nt.radioValue&&"radio"===e&&ot.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n,r=0,o=e&&e.match(xt);if(o&&1===t.nodeType)for(;i=o[r++];)n=ot.propFix[i]||i,ot.expr.match.bool.test(i)&&(t[n]=!1),t.removeAttribute(i)}}),le={set:function(t,e,i){return e===!1?ot.removeAttr(t,i):t.setAttribute(i,i),i}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(t,e){var i=ue[e]||ot.find.attr;ue[e]=function(t,e,n){var r,o;return n||(o=ue[e],ue[e]=r,r=null!=i(t,e,n)?e.toLowerCase():null,ue[e]=o),r}});var ce=/^(?:input|select|textarea|button)$/i,de=/^(?:a|area)$/i;ot.fn.extend({prop:function(t,e){return Tt(this,ot.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[ot.propFix[t]||t]})}}),ot.extend({prop:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ot.isXMLDoc(t)||(e=ot.propFix[e]||e,r=ot.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=ot.find.attr(t,"tabindex");return e?parseInt(e,10):ce.test(t.nodeName)||de.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),nt.optSelected||(ot.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ot.propFix[this.toLowerCase()]=this});var he=/[\t\r\n\f]/g;ot.fn.extend({addClass:function(t){var e,i,n,r,o,s,a,l=0;if(ot.isFunction(t))return this.each(function(e){ot(this).addClass(t.call(this,e,I(this)))});if("string"==typeof t&&t)for(e=t.match(xt)||[];i=this[l++];)if(r=I(i),n=1===i.nodeType&&(" "+r+" ").replace(he," ")){for(s=0;o=e[s++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");a=ot.trim(n),r!==a&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,r,o,s,a,l=0;if(ot.isFunction(t))return this.each(function(e){ot(this).removeClass(t.call(this,e,I(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(xt)||[];i=this[l++];)if(r=I(i),n=1===i.nodeType&&(" "+r+" ").replace(he," ")){for(s=0;o=e[s++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");a=ot.trim(n),r!==a&&i.setAttribute("class",a)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):ot.isFunction(t)?this.each(function(i){ot(this).toggleClass(t.call(this,i,I(this),e),e)}):this.each(function(){var e,n,r,o;if("string"===i)for(n=0,r=ot(this),o=t.match(xt)||[];e=o[n++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==i||(e=I(this),e&&St.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":St.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+I(i)+" ").replace(he," ").indexOf(e)>-1)return!0;return!1}});var fe=/\r/g,pe=/[\x20\t\r\n\f]+/g;ot.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=ot.isFunction(t),this.each(function(i){var r;1===this.nodeType&&(r=n?t.call(this,i,ot(this).val()):t,null==r?r="":"number"==typeof r?r+="":ot.isArray(r)&&(r=ot.map(r,function(t){return null==t?"":t+""})),e=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=ot.valHooks[r.type]||ot.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:(i=r.value,"string"==typeof i?i.replace(fe,""):null==i?"":i)):void 0}}),ot.extend({valHooks:{option:{get:function(t){var e=ot.find.attr(t,"value");return null!=e?e:ot.trim(ot.text(t)).replace(pe," ")}},select:{get:function(t){for(var e,i,n=t.options,r=t.selectedIndex,o="select-one"===t.type||0>r,s=o?null:[],a=o?r+1:n.length,l=0>r?a:o?r:0;a>l;l++)if(i=n[l],(i.selected||l===r)&&(nt.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!ot.nodeName(i.parentNode,"optgroup"))){if(e=ot(i).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var i,n,r=t.options,o=ot.makeArray(e),s=r.length;s--;)n=r[s],(n.selected=ot.inArray(ot.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(t,e){return ot.isArray(e)?t.checked=ot.inArray(ot(t).val(),e)>-1:void 0}},nt.checkOn||(ot.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var me=/^(?:focusinfocus|focusoutblur)$/;ot.extend(ot.event,{trigger:function(e,i,n,r){var o,s,a,l,u,c,d,h=[n||G],f=it.call(e,"type")?e.type:e,p=it.call(e,"namespace")?e.namespace.split("."):[];if(s=a=n=n||G,3!==n.nodeType&&8!==n.nodeType&&!me.test(f+ot.event.triggered)&&(f.indexOf(".")>-1&&(p=f.split("."),f=p.shift(),p.sort()),u=f.indexOf(":")<0&&"on"+f,e=e[ot.expando]?e:new ot.Event(f,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:ot.makeArray(i,[e]),d=ot.event.special[f]||{},r||!d.trigger||d.trigger.apply(n,i)!==!1)){if(!r&&!d.noBubble&&!ot.isWindow(n)){for(l=d.delegateType||f,me.test(l+f)||(s=s.parentNode);s;s=s.parentNode)h.push(s),a=s;a===(n.ownerDocument||G)&&h.push(a.defaultView||a.parentWindow||t)}for(o=0;(s=h[o++])&&!e.isPropagationStopped();)e.type=o>1?l:d.bindType||f,c=(St.get(s,"events")||{})[e.type]&&St.get(s,"handle"),c&&c.apply(s,i),c=u&&s[u],c&&c.apply&&kt(s)&&(e.result=c.apply(s,i),e.result===!1&&e.preventDefault());return e.type=f,r||e.isDefaultPrevented()||d._default&&d._default.apply(h.pop(),i)!==!1||!kt(n)||u&&ot.isFunction(n[f])&&!ot.isWindow(n)&&(a=n[u],a&&(n[u]=null),ot.event.triggered=f,n[f](),ot.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(t,e,i){var n=ot.extend(new ot.Event,i,{type:t,isSimulated:!0});ot.event.trigger(n,null,e)}}),ot.fn.extend({trigger:function(t,e){return this.each(function(){ot.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];return i?ot.event.trigger(t,e,i,!0):void 0}}),ot.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ot.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),ot.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),nt.focusin="onfocusin"in t,nt.focusin||ot.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){ot.event.simulate(e,t.target,ot.event.fix(t))};ot.event.special[e]={setup:function(){var n=this.ownerDocument||this,r=St.access(n,e);r||n.addEventListener(t,i,!0),St.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=St.access(n,e)-1;r?St.access(n,e,r):(n.removeEventListener(t,i,!0),St.remove(n,e))}}});var ge=t.location,ve=ot.now(),ye=/\?/;ot.parseJSON=function(t){return JSON.parse(t+"")},ot.parseXML=function(e){var i;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(n){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||ot.error("Invalid XML: "+e),i};var _e=/#.*$/,we=/([?&])_=[^&]*/,xe=/^(.*?):[ \t]*([^\r\n]*)$/gm,be=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Te=/^(?:GET|HEAD)$/,ke=/^\/\//,Se={},Ce={},Ae="*/".concat("*"),Pe=G.createElement("a");Pe.href=ge.href,ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ge.href,type:"GET",isLocal:be.test(ge.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ae,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":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?B(B(t,ot.ajaxSettings),e):B(ot.ajaxSettings,t)},ajaxPrefilter:H(Se),ajaxTransport:H(Ce),ajax:function(e,i){function n(e,i,n,a){var u,d,y,_,x,T=i;2!==w&&(w=2,l&&t.clearTimeout(l),r=void 0,s=a||"",b.readyState=e>0?4:0,u=e>=200&&300>e||304===e,n&&(_=W(h,b,n)),_=X(h,_,b,u),u?(h.ifModified&&(x=b.getResponseHeader("Last-Modified"),x&&(ot.lastModified[o]=x),x=b.getResponseHeader("etag"),x&&(ot.etag[o]=x)),204===e||"HEAD"===h.type?T="nocontent":304===e?T="notmodified":(T=_.state,d=_.data,y=_.error,u=!y)):(y=T,!e&&T||(T="error",0>e&&(e=0))),b.status=e,b.statusText=(i||T)+"",u?m.resolveWith(f,[d,T,b]):m.rejectWith(f,[b,T,y]),b.statusCode(v),v=void 0,c&&p.trigger(u?"ajaxSuccess":"ajaxError",[b,h,u?d:y]),g.fireWith(f,[b,T]),c&&(p.trigger("ajaxComplete",[b,h]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof e&&(i=e,e=void 0),i=i||{};var r,o,s,a,l,u,c,d,h=ot.ajaxSetup({},i),f=h.context||h,p=h.context&&(f.nodeType||f.jquery)?ot(f):ot.event,m=ot.Deferred(),g=ot.Callbacks("once memory"),v=h.statusCode||{},y={},_={},w=0,x="canceled",b={readyState:0,getResponseHeader:function(t){var e;if(2===w){if(!a)for(a={};e=xe.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===w?s:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return w||(t=_[i]=_[i]||t,y[t]=e),this},overrideMimeType:function(t){return w||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>w)for(e in t)v[e]=[v[e],t[e]];else b.always(t[b.status]);return this},abort:function(t){var e=t||x;return r&&r.abort(e),n(0,e),this}};if(m.promise(b).complete=g.add,b.success=b.done,b.error=b.fail,h.url=((e||h.url||ge.href)+"").replace(_e,"").replace(ke,ge.protocol+"//"),h.type=i.method||i.type||h.method||h.type,h.dataTypes=ot.trim(h.dataType||"*").toLowerCase().match(xt)||[""],null==h.crossDomain){u=G.createElement("a");try{u.href=h.url,u.href=u.href,h.crossDomain=Pe.protocol+"//"+Pe.host!=u.protocol+"//"+u.host}catch(T){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ot.param(h.data,h.traditional)),q(Se,h,i,b),2===w)return b;c=ot.event&&h.global,c&&0===ot.active++&&ot.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Te.test(h.type),o=h.url,h.hasContent||(h.data&&(o=h.url+=(ye.test(o)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=we.test(o)?o.replace(we,"$1_="+ve++):o+(ye.test(o)?"&":"?")+"_="+ve++)),h.ifModified&&(ot.lastModified[o]&&b.setRequestHeader("If-Modified-Since",ot.lastModified[o]),ot.etag[o]&&b.setRequestHeader("If-None-Match",ot.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||i.contentType)&&b.setRequestHeader("Content-Type",h.contentType),b.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ae+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)b.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(h.beforeSend.call(f,b,h)===!1||2===w))return b.abort();x="abort";for(d in{success:1,error:1,complete:1})b[d](h[d]);if(r=q(Ce,h,i,b)){if(b.readyState=1,c&&p.trigger("ajaxSend",[b,h]),2===w)return b;h.async&&h.timeout>0&&(l=t.setTimeout(function(){b.abort("timeout")},h.timeout));try{w=1,r.send(y,n)}catch(T){if(!(2>w))throw T;n(-1,T)}}else n(-1,"No Transport");return b},getJSON:function(t,e,i){return ot.get(t,e,i,"json")},getScript:function(t,e){return ot.get(t,void 0,e,"script")}}),ot.each(["get","post"],function(t,e){ot[e]=function(t,i,n,r){return ot.isFunction(i)&&(r=r||n,n=i,i=void 0),ot.ajax(ot.extend({url:t,type:e,dataType:r,data:i,success:n},ot.isPlainObject(t)&&t))}}),ot._evalUrl=function(t){return ot.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},ot.fn.extend({wrapAll:function(t){var e;return ot.isFunction(t)?this.each(function(e){ot(this).wrapAll(t.call(this,e))}):(this[0]&&(e=ot(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return ot.isFunction(t)?this.each(function(e){ot(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ot(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=ot.isFunction(t);return this.each(function(i){ot(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}}),ot.expr.filters.hidden=function(t){return!ot.expr.filters.visible(t)},ot.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var Oe=/%20/g,De=/\[\]$/,$e=/\r?\n/g,Ee=/^(?:submit|button|image|reset|file)$/i,Re=/^(?:input|select|textarea|keygen)/i;ot.param=function(t,e){var i,n=[],r=function(t,e){e=ot.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(t)||t.jquery&&!ot.isPlainObject(t))ot.each(t,function(){r(this.name,this.value)});else for(i in t)U(i,t[i],e,r);return n.join("&").replace(Oe,"+")},ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ot.prop(this,"elements");return t?ot.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ot(this).is(":disabled")&&Re.test(this.nodeName)&&!Ee.test(t)&&(this.checked||!Rt.test(t))}).map(function(t,e){var i=ot(this).val();return null==i?null:ot.isArray(i)?ot.map(i,function(t){return{name:e.name,value:t.replace($e,"\r\n")}}):{name:e.name,value:i.replace($e,"\r\n")}}).get()}}),ot.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(e){}};var Fe={0:200,1223:204},Me=ot.ajaxSettings.xhr();nt.cors=!!Me&&"withCredentials"in Me,nt.ajax=Me=!!Me,ot.ajaxTransport(function(e){var i,n;return nt.cors||Me&&!e.crossDomain?{send:function(r,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(s in r)a.setRequestHeader(s,r[s]);i=function(t){return function(){i&&(i=n=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Fe[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=i(),n=a.onerror=i("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout(function(){i&&n()})},i=i("abort");try{a.send(e.hasContent&&e.data||null)}catch(l){if(i)throw l}},abort:function(){i&&i()}}:void 0}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ot.globalEval(t),t}}}),ot.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),ot.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,r){e=ot("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),G.head.appendChild(e[0])},abort:function(){i&&i()}}}});var ze=[],je=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ze.pop()||ot.expando+"_"+ve++;return this[t]=!0,t}}),ot.ajaxPrefilter("json jsonp",function(e,i,n){var r,o,s,a=e.jsonp!==!1&&(je.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&je.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=ot.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(je,"$1"+r):e.jsonp!==!1&&(e.url+=(ye.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||ot.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){s=arguments},n.always(function(){void 0===o?ot(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=i.jsonpCallback,ze.push(r)),s&&ot.isFunction(o)&&o(s[0]),s=o=void 0}),"script"):void 0}),ot.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||G;var n=pt.exec(t),r=!i&&[];return n?[e.createElement(n[1])]:(n=h([t],e,r),r&&r.length&&ot(r).remove(),ot.merge([],n.childNodes))};var Ne=ot.fn.load;ot.fn.load=function(t,e,i){if("string"!=typeof t&&Ne)return Ne.apply(this,arguments);var n,r,o,s=this,a=t.indexOf(" ");return a>-1&&(n=ot.trim(t.slice(a)),t=t.slice(0,a)),ot.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&ot.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(n?ot("<div>").append(ot.parseHTML(t)).find(n):t)}).always(i&&function(t,e){s.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ot.fn[e]=function(t){return this.on(e,t)}}),ot.expr.filters.animated=function(t){return ot.grep(ot.timers,function(e){return t===e.elem}).length},ot.offset={setOffset:function(t,e,i){var n,r,o,s,a,l,u,c=ot.css(t,"position"),d=ot(t),h={};"static"===c&&(t.style.position="relative"),a=d.offset(),o=ot.css(t,"top"),l=ot.css(t,"left"),u=("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1,u?(n=d.position(),s=n.top,r=n.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),ot.isFunction(e)&&(e=e.call(t,i,ot.extend({},a))),null!=e.top&&(h.top=e.top-a.top+s),null!=e.left&&(h.left=e.left-a.left+r),"using"in e?e.using.call(t,h):d.css(h)}},ot.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ot.offset.setOffset(this,t,e)});var e,i,n=this[0],r={top:0,left:0},o=n&&n.ownerDocument;return o?(e=o.documentElement,ot.contains(e,n)?(r=n.getBoundingClientRect(),i=Y(o),{top:r.top+i.pageYOffset-e.clientTop,left:r.left+i.pageXOffset-e.clientLeft}):r):void 0},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===ot.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ot.nodeName(t[0],"html")||(n=t.offset()),n.top+=ot.css(t[0],"borderTopWidth",!0),n.left+=ot.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-ot.css(i,"marginTop",!0),left:e.left-n.left-ot.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===ot.css(t,"position");)t=t.offsetParent;return t||Jt})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;ot.fn[t]=function(n){return Tt(this,function(t,n,r){var o=Y(t);return void 0===r?o?o[e]:t[n]:void(o?o.scrollTo(i?o.pageXOffset:r,i?r:o.pageYOffset):t[n]=r)},t,n,arguments.length)}}),ot.each(["top","left"],function(t,e){ot.cssHooks[e]=A(nt.pixelPosition,function(t,i){return i?(i=C(t,e),Gt.test(i)?ot(t).position()[e]+"px":i):void 0})}),ot.each({Height:"height",Width:"width"},function(t,e){ot.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){ot.fn[n]=function(n,r){var o=arguments.length&&(i||"boolean"!=typeof n),s=i||(n===!0||r===!0?"margin":"border");return Tt(this,function(e,i,n){var r;return ot.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===n?ot.css(e,i,s):ot.style(e,i,n,s)},e,o?n:void 0,o,null)}})}),ot.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},size:function(){return this.length}}),ot.fn.andSelf=ot.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot});var Le=t.jQuery,Ie=t.$;return ot.noConflict=function(e){return t.$===ot&&(t.$=Ie),e&&t.jQuery===ot&&(t.jQuery=Le),ot},e||(t.jQuery=t.$=ot),ot}),function(t,e){"function"==typeof define&&define.amd?define(function(){return t.is=e()}):"object"==typeof exports?module.exports=e():t.is=e()}(this,function(){function t(t){return function(){return!t.apply(null,u.call(arguments))}}function e(t){return function(){var e=u.call(arguments),i=e.length;1===i&&a.array(e[0])&&(e=e[0],i=e.length);for(var n=0;n<i;n++)if(!t.call(null,e[n]))return!1;return!0}}function i(t){return function(){var e=u.call(arguments),i=e.length;1===i&&a.array(e[0])&&(e=e[0],i=e.length);for(var n=0;n<i;n++)if(t.call(null,e[n]))return!0;return!1}}function n(t,e){a[t]=function(i){return e[t].test(i)}}function r(){var n=a;for(var r in n)if(c.call(n,r)&&a["function"](n[r]))for(var o=n[r].api||["not","all","any"],s=0;s<o.length;s++)"not"===o[s]&&(a.not[r]=t(a[r])),"all"===o[s]&&(a.all[r]=e(a[r])),"any"===o[s]&&(a.any[r]=i(a[r]))}var o=this||global,s=o.is,a={};a.VERSION="0.8.0",a.not={},a.all={},a.any={};var l=Object.prototype.toString,u=Array.prototype.slice,c=Object.prototype.hasOwnProperty;a.arguments=function(t){return a.not["null"](t)&&("[object Arguments]"===l.call(t)||"object"==typeof t&&"callee"in t)},a.array=Array.isArray||function(t){return"[object Array]"===l.call(t)},a["boolean"]=function(t){return t===!0||t===!1||"[object Boolean]"===l.call(t)},a.date=function(t){return"[object Date]"===l.call(t)},a.error=function(t){return"[object Error]"===l.call(t)},a["function"]=function(t){return"[object Function]"===l.call(t)||"function"==typeof t},a.nan=function(t){return t!==t},a["null"]=function(t){return null===t},a.number=function(t){return a.not.nan(t)&&"[object Number]"===l.call(t)},a.object=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},a.json=function(t){return"[object Object]"===l.call(t)},a.regexp=function(t){return"[object RegExp]"===l.call(t)},a.sameType=function(t,e){return a.nan(t)||a.nan(e)?a.nan(t)===a.nan(e):l.call(t)===l.call(e)},a.sameType.api=["not"],a.string=function(t){return"[object String]"===l.call(t)},a["char"]=function(t){return a.string(t)&&1===t.length},a.undefined=function(t){return void 0===t},a.empty=function(t){if(a.object(t)){var e=Object.getOwnPropertyNames(t).length;return!!(0===e||1===e&&a.array(t)||2===e&&a.arguments(t))}return""===t},a.existy=function(t){return null!==t&&void 0!==t},a.truthy=function(t){return a.existy(t)&&t!==!1&&a.not.nan(t)&&""!==t&&0!==t;
},a.falsy=t(a.truthy),a.space=function(t){if(a["char"](t)){var e=t.charCodeAt(0);return e>8&&e<14||32===e}return!1},a.equal=function(t,e){return a.all.number(t,e)?t===e&&1/t===1/e:a.all.string(t,e)||a.all.regexp(t,e)?""+t==""+e:!!a.all["boolean"](t,e)&&t===e},a.equal.api=["not"],a.even=function(t){return a.number(t)&&t%2===0},a.odd=function(t){return a.number(t)&&t%2===1},a.positive=function(t){return a.number(t)&&t>0},a.negative=function(t){return a.number(t)&&t<0},a.above=function(t,e){return a.all.number(t,e)&&t>e},a.above.api=["not"],a.under=function(t,e){return a.all.number(t,e)&&t<e},a.under.api=["not"],a.within=function(t,e,i){return a.all.number(t,e,i)&&t>e&&t<i},a.within.api=["not"],a.decimal=function(t){return a.number(t)&&t%1!==0},a.integer=function(t){return a.number(t)&&t%1===0},a.finite=isFinite||function(t){return t!==1/0&&t!==-(1/0)&&a.not.nan(t)},a.infinite=t(a.finite);var d={url:/^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/i,email:/^((([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,creditCard:/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/,alphaNumeric:/^[A-Za-z0-9]+$/,timeString:/^(2[0-3]|[01]?[0-9]):([0-5]?[0-9]):([0-5]?[0-9])$/,dateString:/^(1[0-2]|0?[1-9])\/(3[01]|[12][0-9]|0?[1-9])\/(?:[0-9]{2})?[0-9]{2}$/,usZipCode:/^[0-9]{5}(?:-[0-9]{4})?$/,caPostalCode:/^(?!.*[DFIOQU])[A-VXY][0-9][A-Z]\s?[0-9][A-Z][0-9]$/,ukPostCode:/^[A-Z]{1,2}[0-9RCHNQ][0-9A-Z]?\s?[0-9][ABD-HJLNP-UW-Z]{2}$|^[A-Z]{2}-?[0-9]{4}$/,nanpPhone:/^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/,eppPhone:/^\+[0-9]{1,3}\.[0-9]{4,14}(?:x.+)?$/,socialSecurityNumber:/^(?!000|666)[0-8][0-9]{2}-(?!00)[0-9]{2}-(?!0000)[0-9]{4}$/,affirmative:/^(?:1|t(?:rue)?|y(?:es)?|ok(?:ay)?)$/,hexadecimal:/^[0-9a-fA-F]+$/,hexColor:/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/,ipv4:/^(?:(?:\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(?:\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$/,ipv6:/^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,ip:/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$|^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/};for(var h in d)d.hasOwnProperty(h)&&n(h,d);a.include=function(t,e){return t.indexOf(e)>-1},a.include.api=["not"],a.upperCase=function(t){return a.string(t)&&t===t.toUpperCase()},a.lowerCase=function(t){return a.string(t)&&t===t.toLowerCase()},a.startWith=function(t,e){return a.string(t)&&0===t.indexOf(e)},a.startWith.api=["not"],a.endWith=function(t,e){return a.string(t)&&t.indexOf(e)>-1&&t.indexOf(e)===t.length-e.length},a.endWith.api=["not"],a.capitalized=function(t){if(a.not.string(t))return!1;for(var e=t.split(" "),i=[],n=0;n<e.length;n++)i.push(e[n][0]===e[n][0].toUpperCase());return a.all.truthy.apply(null,i)},a.palindrome=function(t){return a.string(t)&&t==t.split("").reverse().join("")};var f=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],p=["january","february","march","april","may","june","july","august","september","october","november","december"];if(a.today=function(t){var e=new Date,i=e.toDateString();return a.date(t)&&t.toDateString()===i},a.yesterday=function(t){var e=new Date,i=new Date(e.setDate(e.getDate()-1)).toDateString();return a.date(t)&&t.toDateString()===i},a.tomorrow=function(t){var e=new Date,i=new Date(e.setDate(e.getDate()+1)).toDateString();return a.date(t)&&t.toDateString()===i},a.past=function(t){var e=new Date;return a.date(t)&&t.getTime()<e.getTime()},a.future=t(a.past),a.day=function(t,e){return a.date(t)&&e.toLowerCase()===f[t.getDay()]},a.day.api=["not"],a.month=function(t,e){return a.date(t)&&e.toLowerCase()===p[t.getMonth()]},a.month.api=["not"],a.year=function(t,e){return a.date(t)&&a.number(e)&&e===t.getFullYear()},a.year.api=["not"],a.leapYear=function(t){return a.number(t)&&(t%4===0&&t%100!==0||t%400===0)},a.weekend=function(t){return a.date(t)&&(6===t.getDay()||0===t.getDay())},a.weekday=t(a.weekend),a.inDateRange=function(t,e,i){if(a.not.date(t)||a.not.date(e)||a.not.date(i))return!1;var n=t.getTime(),r=e.getTime(),o=i.getTime();return n>r&&n<o},a.inDateRange.api=["not"],a.inLastWeek=function(t){return a.inDateRange(t,new Date((new Date).setDate((new Date).getDate()-7)),new Date)},a.inLastMonth=function(t){return a.inDateRange(t,new Date((new Date).setMonth((new Date).getMonth()-1)),new Date)},a.inLastYear=function(t){return a.inDateRange(t,new Date((new Date).setFullYear((new Date).getFullYear()-1)),new Date)},a.inNextWeek=function(t){return a.inDateRange(t,new Date,new Date((new Date).setDate((new Date).getDate()+7)))},a.inNextMonth=function(t){return a.inDateRange(t,new Date,new Date((new Date).setMonth((new Date).getMonth()+1)))},a.inNextYear=function(t){return a.inDateRange(t,new Date,new Date((new Date).setFullYear((new Date).getFullYear()+1)))},a.quarterOfYear=function(t,e){return a.date(t)&&a.number(e)&&e===Math.floor((t.getMonth()+3)/3)},a.quarterOfYear.api=["not"],a.dayLightSavingTime=function(t){var e=new Date(t.getFullYear(),0,1),i=new Date(t.getFullYear(),6,1),n=Math.max(e.getTimezoneOffset(),i.getTimezoneOffset());return t.getTimezoneOffset()<n},"undefined"!=typeof window){var m="navigator"in window&&"userAgent"in navigator&&navigator.userAgent.toLowerCase()||"",g="navigator"in window&&"vendor"in navigator&&navigator.vendor.toLowerCase()||"",v="navigator"in window&&"appVersion"in navigator&&navigator.appVersion.toLowerCase()||"";a.chrome=function(){return/chrome|chromium/i.test(m)&&/google inc/.test(g)},a.chrome.api=["not"],a.firefox=function(){return/firefox/i.test(m)},a.firefox.api=["not"],a.edge=function(){return/edge/i.test(m)},a.edge.api=["not"],a.ie=function(t){return t?t>=11?"ActiveXObject"in window:new RegExp("msie "+t).test(m):/msie/i.test(m)||"ActiveXObject"in window},a.ie.api=["not"],a.opera=function(){return/^Opera\//.test(m)||/\x20OPR\//.test(m)},a.opera.api=["not"],a.safari=function(){return/safari/i.test(m)&&/apple computer/i.test(g)},a.safari.api=["not"],a.ios=function(){return a.iphone()||a.ipad()||a.ipod()},a.ios.api=["not"],a.iphone=function(){return/iphone/i.test(m)},a.iphone.api=["not"],a.ipad=function(){return/ipad/i.test(m)},a.ipad.api=["not"],a.ipod=function(){return/ipod/i.test(m)},a.ipod.api=["not"],a.android=function(){return/android/i.test(m)},a.android.api=["not"],a.androidPhone=function(){return/android/i.test(m)&&/mobile/i.test(m)},a.androidPhone.api=["not"],a.androidTablet=function(){return/android/i.test(m)&&!/mobile/i.test(m)},a.androidTablet.api=["not"],a.blackberry=function(){return/blackberry/i.test(m)||/BB10/i.test(m)},a.blackberry.api=["not"],a.desktop=function(){return a.not.mobile()&&a.not.tablet()},a.desktop.api=["not"],a.linux=function(){return/linux/i.test(v)},a.linux.api=["not"],a.mac=function(){return/mac/i.test(v)},a.mac.api=["not"],a.windows=function(){return/win/i.test(v)},a.windows.api=["not"],a.windowsPhone=function(){return a.windows()&&/phone/i.test(m)},a.windowsPhone.api=["not"],a.windowsTablet=function(){return a.windows()&&a.not.windowsPhone()&&/touch/i.test(m)},a.windowsTablet.api=["not"],a.mobile=function(){return a.iphone()||a.ipod()||a.androidPhone()||a.blackberry()||a.windowsPhone()},a.mobile.api=["not"],a.tablet=function(){return a.ipad()||a.androidTablet()||a.windowsTablet()},a.tablet.api=["not"],a.online=function(){return navigator.onLine},a.online.api=["not"],a.offline=t(a.online),a.offline.api=["not"],a.touchDevice=function(){return"ontouchstart"in window||"DocumentTouch"in window&&document instanceof DocumentTouch},a.touchDevice.api=["not"]}return a.propertyCount=function(t,e){if(!a.object(t)||!a.number(e))return!1;if(Object.keys)return Object.keys(t).length===e;var i,n=[];for(i in t)c.call(t,i)&&n.push(i);return n.length===e},a.propertyCount.api=["not"],a.propertyDefined=function(t,e){return a.object(t)&&a.string(e)&&e in t},a.propertyDefined.api=["not"],a.windowObject=function(t){return"object"==typeof t&&"setInterval"in t},a.domNode=function(t){return a.object(t)&&t.nodeType>0},a.inArray=function(t,e){if(a.not.array(e))return!1;for(var i=0;i<e.length;i++)if(e[i]===t)return!0;return!1},a.inArray.api=["not"],a.sorted=function(t){if(a.not.array(t))return!1;for(var e=0;e<t.length;e++)if(t[e]>t[e+1])return!1;return!0},r(),a.setRegexp=function(t,e){for(var i in d)c.call(d,i)&&e===i&&(d[i]=t)},a.setNamespace=function(){return o.is=s,this},a});var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var n=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},r=function(t,e,i){var n,r,o=t.cycle;for(n in o)r=o[n],t[n]="function"==typeof r?r(i,e[i]):r[i%r.length];delete t.cycle},o=function(t,e,n){i.call(this,t,e,n),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=o.prototype.render},s=1e-10,a=i._internals,l=a.isSelector,u=a.isArray,c=o.prototype=i.to({},.1,{}),d=[];o.version="1.19.0",c.constructor=o,c.kill()._gc=!1,o.killTweensOf=o.killDelayedCallsTo=i.killTweensOf,o.getTweensOf=i.getTweensOf,o.lagSmoothing=i.lagSmoothing,o.ticker=i.ticker,o.render=i.render,c.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),i.prototype.invalidate.call(this)},c.updateTo=function(t,e){var n,r=this.ratio,o=this.vars.immediateRender||t.immediateRender;e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(n in t)this.vars[n]=t[n];if(this._initted||o)if(e)this._initted=!1,o&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var s=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(s,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||o)for(var a,l=1/(1-r),u=this._firstPT;u;)a=u.s+u.c,u.c*=l,u.s=a-u.c,u=u._next;return this},c.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var n,r,o,l,u,c,d,h,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,m=this._totalTime,g=this._cycle,v=this._duration,y=this._rawPrevTime;if(t>=f-1e-7?(this._totalTime=f,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=v,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(n=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===v&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0>y||0>=t&&t>=-1e-7||y===s&&"isPause"!==this.data)&&y!==t&&(i=!0,y>s&&(r="onReverseComplete")),this._rawPrevTime=h=!e||t||y===t?t:s)):1e-7>t?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==m||0===v&&y>0)&&(r="onReverseComplete",n=this._reversed),0>t&&(this._active=!1,0===v&&(this._initted||!this.vars.lazy||i)&&(y>=0&&(i=!0),this._rawPrevTime=h=!e||t||y===t?t:s)),this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(l=v+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&t>=m&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=v-this._time),this._time>v?this._time=v:this._time<0&&(this._time=0)),this._easeType?(u=this._time/v,c=this._easeType,d=this._easePower,(1===c||3===c&&u>=.5)&&(u=1-u),3===c&&(u*=2),1===d?u*=u:2===d?u*=u*u:3===d?u*=u*u*u:4===d&&(u*=u*u*u*u),1===c?this.ratio=1-u:2===c?this.ratio=u:this._time/v<.5?this.ratio=u/2:this.ratio=1-u/2):this.ratio=this._ease.getRatio(this._time/v)),p===this._time&&!i&&g===this._cycle)return void(m!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=p,this._totalTime=m,this._rawPrevTime=y,this._cycle=g,a.lazyTweens.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/v):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==p&&t>=0&&(this._active=!0),0===m&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===v)&&(e||this._callback("onStart"))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(0>t&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._totalTime!==m||r)&&this._callback("onUpdate")),this._cycle!==g&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===v&&this._rawPrevTime===s&&h!==s&&(this._rawPrevTime=0))},o.to=function(t,e,i){return new o(t,e,i)},o.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new o(t,e,i)},o.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new o(t,e,n)},o.staggerTo=o.allTo=function(t,e,s,a,c,h,f){a=a||0;var p,m,g,v,y=0,_=[],w=function(){s.onComplete&&s.onComplete.apply(s.onCompleteScope||this,arguments),c.apply(f||s.callbackScope||this,h||d)},x=s.cycle,b=s.startAt&&s.startAt.cycle;for(u(t)||("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=n(t))),t=t||[],0>a&&(t=n(t),t.reverse(),a*=-1),p=t.length-1,g=0;p>=g;g++){m={};for(v in s)m[v]=s[v];if(x&&(r(m,t,g),null!=m.duration&&(e=m.duration,delete m.duration)),b){b=m.startAt={};for(v in s.startAt)b[v]=s.startAt[v];r(m.startAt,t,g)}m.delay=y+(m.delay||0),g===p&&c&&(m.onComplete=w),_[g]=new o(t[g],e,m),y+=a}return _},o.staggerFrom=o.allFrom=function(t,e,i,n,r,s,a){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,o.staggerTo(t,e,i,n,r,s,a)},o.staggerFromTo=o.allFromTo=function(t,e,i,n,r,s,a,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,o.staggerTo(t,e,n,r,s,a,l)},o.delayedCall=function(t,e,i,n,r){return new o(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:r,overwrite:0})},o.set=function(t,e){return new o(t,0,e)},o.isTweening=function(t){return i.getTweensOf(t,!0).length>0};var h=function(t,e){for(var n=[],r=0,o=t._first;o;)o instanceof i?n[r++]=o:(e&&(n[r++]=o),n=n.concat(h(o,e)),r=n.length),o=o._next;return n},f=o.getAllTweens=function(e){return h(t._rootTimeline,e).concat(h(t._rootFramesTimeline,e))};o.killAll=function(t,i,n,r){null==i&&(i=!0),null==n&&(n=!0);var o,s,a,l=f(0!=r),u=l.length,c=i&&n&&r;for(a=0;u>a;a++)s=l[a],(c||s instanceof e||(o=s.target===s.vars.onComplete)&&n||i&&!o)&&(t?s.totalTime(s._reversed?0:s.totalDuration()):s._enabled(!1,!1))},o.killChildTweensOf=function(t,e){if(null!=t){var r,s,c,d,h,f=a.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=n(t)),u(t))for(d=t.length;--d>-1;)o.killChildTweensOf(t[d],e);else{r=[];for(c in f)for(s=f[c].target.parentNode;s;)s===t&&(r=r.concat(f[c].tweens)),s=s.parentNode;for(h=r.length,d=0;h>d;d++)e&&r[d].totalTime(r[d].totalDuration()),r[d]._enabled(!1,!1)}}};var p=function(t,i,n,r){i=i!==!1,n=n!==!1,r=r!==!1;for(var o,s,a=f(r),l=i&&n&&r,u=a.length;--u>-1;)s=a[u],(l||s instanceof e||(o=s.target===s.vars.onComplete)&&n||i&&!o)&&s.paused(t)};return o.pauseAll=function(t,e,i){p(!0,t,e,i)},o.resumeAll=function(t,e,i){p(!1,t,e,i)},o.globalTimeScale=function(e){var n=t._rootTimeline,r=i.ticker.time;return arguments.length?(e=e||s,n._startTime=r-(r-n._startTime)*n._timeScale/e,n=t._rootFramesTimeline,r=i.ticker.frame,n._startTime=r-(r-n._startTime)*n._timeScale/e,n._timeScale=t._rootTimeline._timeScale=e,e):n._timeScale},c.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},c.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},c.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},c.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},c.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},c.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},c.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},c.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},o},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var n=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,n,r=this.vars;for(n in r)i=r[n],l(i)&&-1!==i.join("").indexOf("{self}")&&(r[n]=this._swapSelfInParams(i));l(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,o=i._internals,s=n._internals={},a=o.isSelector,l=o.isArray,u=o.lazyTweens,c=o.lazyRender,d=_gsScope._gsDefine.globals,h=function(t){var e,i={};for(e in t)i[e]=t[e];return i},f=function(t,e,i){var n,r,o=t.cycle;for(n in o)r=o[n],t[n]="function"==typeof r?r.call(e[i],i):r[i%r.length];delete t.cycle},p=s.pauseCallback=function(){},m=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},g=n.prototype=new e;return n.version="1.19.0",g.constructor=n,g.kill()._gc=g._forcingPlayhead=g._hasPause=!1,g.to=function(t,e,n,r){var o=n.repeat&&d.TweenMax||i;return e?this.add(new o(t,e,n),r):this.set(t,n,r)},g.from=function(t,e,n,r){return this.add((n.repeat&&d.TweenMax||i).from(t,e,n),r)},g.fromTo=function(t,e,n,r,o){var s=r.repeat&&d.TweenMax||i;return e?this.add(s.fromTo(t,e,n,r),o):this.set(t,r,o)},g.staggerTo=function(t,e,r,o,s,l,u,c){var d,p,g=new n({onComplete:l,onCompleteParams:u,callbackScope:c,smoothChildTiming:this.smoothChildTiming}),v=r.cycle;for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],a(t)&&(t=m(t)),o=o||0,0>o&&(t=m(t),t.reverse(),o*=-1),p=0;p<t.length;p++)d=h(r),d.startAt&&(d.startAt=h(d.startAt),d.startAt.cycle&&f(d.startAt,t,p)),v&&(f(d,t,p),null!=d.duration&&(e=d.duration,delete d.duration)),g.to(t[p],e,d,p*o);return this.add(g,s)},g.staggerFrom=function(t,e,i,n,r,o,s,a){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,n,r,o,s,a)},g.staggerFromTo=function(t,e,i,n,r,o,s,a,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,n,r,o,s,a,l)},g.call=function(t,e,n,r){return this.add(i.delayedCall(0,t,e,n),r)},g.set=function(t,e,n){return n=this._parseTimeOrLabel(n,0,!0),null==e.immediateRender&&(e.immediateRender=n===this._time&&!this._paused),this.add(new i(t,0,e),n)},n.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,o,s=new n(t),a=s._timeline;for(null==e&&(e=!0),a._remove(s,!0),s._startTime=0,s._rawPrevTime=s._time=s._totalTime=a._time,r=a._first;r;)o=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||s.add(r,r._startTime-r._delay),r=o;return a.add(s,0),s},g.add=function(r,o,s,a){var u,c,d,h,f,p;if("number"!=typeof o&&(o=this._parseTimeOrLabel(o,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&l(r)){for(s=s||"normal",a=a||0,u=o,c=r.length,d=0;c>d;d++)l(h=r[d])&&(h=new n({tweens:h})),this.add(h,u),"string"!=typeof h&&"function"!=typeof h&&("sequence"===s?u=h._startTime+h.totalDuration()/h._timeScale:"start"===s&&(h._startTime-=h.delay())),u+=a;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,o);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,o),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(f=this,p=f.rawTime()>r._startTime;f._timeline;)p&&f._timeline.smoothChildTiming?f.totalTime(f._totalTime,!0):f._gc&&f._enabled(!0,!1),f=f._timeline;return this},g.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&l(e)){for(var n=e.length;--n>-1;)this.remove(e[n]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},g._remove=function(t,i){e.prototype._remove.call(this,t,i);var n=this._last;return n?this._time>n._startTime+n._totalDuration/n._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},g.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},g.insert=g.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},g.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},g.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},g.addPause=function(t,e,n,r){var o=i.delayedCall(0,p,n,r||this);return o.vars.onComplete=o.vars.onReverseComplete=e,o.data="isPause",this._hasPause=!0,this.add(o,t)},g.removeLabel=function(t){return delete this._labels[t],this},g.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},g._parseTimeOrLabel=function(e,i,n,r){var o;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&l(r)))for(o=r.length;--o>-1;)r[o]instanceof t&&r[o].timeline===this&&this.remove(r[o]);if("string"==typeof i)return this._parseTimeOrLabel(i,n&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,n);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(o=e.indexOf("="),-1===o)return null==this._labels[e]?n?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(o-1)+"1",10)*Number(e.substr(o+1)),e=o>1?this._parseTimeOrLabel(e.substr(0,o-1),0,n):this.duration()}return Number(e)+i},g.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},g.stop=function(){return this.paused(!0)},g.gotoAndPlay=function(t,e){return this.play(t,e)},g.gotoAndStop=function(t,e){return this.pause(t,e)},g.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,o,s,a,l,d,h,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,m=this._startTime,g=this._timeScale,v=this._paused;if(t>=f-1e-7)this._totalTime=this._time=f,this._reversed||this._hasPausedChild()||(o=!0,a="onComplete",l=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=t&&t>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(l=!0,this._rawPrevTime>r&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=f+1e-4;else if(1e-7>t)if(this._totalTime=this._time=0,(0!==p||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(a="onReverseComplete",o=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(l=o=!0,a="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,0===t&&o)for(n=this._first;n&&0===n._startTime;)n._duration||(o=!1),n=n._next;t=0,this._initted||(l=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(t>=p)for(n=this._first;n&&n._startTime<=t&&!d;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(d=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!d;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(d=n),n=n._prev;d&&(this._time=t=d._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==p&&this._first||i||l||d){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),h=this._time,h>=p)for(n=this._first;n&&(s=n._next,h===this._time&&(!this._paused||v));)(n._active||n._startTime<=h&&!n._paused&&!n._gc)&&(d===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=s;else for(n=this._last;n&&(s=n._prev,h===this._time&&(!this._paused||v));){if(n._active||n._startTime<=p&&!n._paused&&!n._gc){if(d===n){for(d=n._prev;d&&d.endTime()>this._time;)d.render(d._reversed?d.totalDuration()-(t-d._startTime)*d._timeScale:(t-d._startTime)*d._timeScale,e,i),d=d._prev;d=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=s}this._onUpdate&&(e||(u.length&&c(),this._callback("onUpdate"))),a&&(this._gc||(m===this._startTime||g!==this._timeScale)&&(0===this._time||f>=this.totalDuration())&&(o&&(u.length&&c(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this._callback(a)))}},g._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof n&&t._hasPausedChild())return!0;t=t._next}return!1},g.getChildren=function(t,e,n,r){r=r||-9999999999;for(var o=[],s=this._first,a=0;s;)s._startTime<r||(s instanceof i?e!==!1&&(o[a++]=s):(n!==!1&&(o[a++]=s),t!==!1&&(o=o.concat(s.getChildren(!0,e,n)),a=o.length))),s=s._next;return o},g.getTweensOf=function(t,e){var n,r,o=this._gc,s=[],a=0;for(o&&this._enabled(!0,!0),n=i.getTweensOf(t),r=n.length;--r>-1;)(n[r].timeline===this||e&&this._contains(n[r]))&&(s[a++]=n[r]);return o&&this._enabled(!1,!0),s},g.recent=function(){return this._recent},g._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},g.shiftChildren=function(t,e,i){i=i||0;for(var n,r=this._first,o=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(n in o)o[n]>=i&&(o[n]+=t);return this._uncache(!0)},g._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,r=!1;--n>-1;)i[n]._kill(t,e)&&(r=!0);return r},g.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},g.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},g._enabled=function(t,i){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return e.prototype._enabled.call(this,t,i)},g.totalTime=function(e,i,n){this._forcingPlayhead=!0;var r=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},g.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},g.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,n=0,r=this._last,o=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>o&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):o=r._startTime,r._startTime<0&&!r._paused&&(n-=r._startTime,
this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),o=0),i=r._startTime+r._totalDuration/r._timeScale,i>n&&(n=i),r=e;this._duration=this._totalDuration=n,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},g.paused=function(e){if(!e)for(var i=this._first,n=this._time;i;)i._startTime===n&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},g.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},g.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},n},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,i){var n=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},r=1e-10,o=e._internals,s=o.lazyTweens,a=o.lazyRender,l=_gsScope._gsDefine.globals,u=new i(null,null,1,0),c=n.prototype=new t;return c.constructor=n,c.kill()._gc=!1,n.version="1.19.0",c.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},c.addCallback=function(t,i,n,r){return this.add(e.delayedCall(0,t,n,r),i)},c.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),n=i.length,r=this._parseTimeOrLabel(e);--n>-1;)i[n]._startTime===r&&i[n]._enabled(!1,!1);return this},c.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},c.tweenTo=function(t,i){i=i||{};var n,r,o,s={ease:u,useFrames:this.usesFrames(),immediateRender:!1},a=i.repeat&&l.TweenMax||e;for(r in i)s[r]=i[r];return s.time=this._parseTimeOrLabel(t),n=Math.abs(Number(s.time)-this._time)/this._timeScale||.001,o=new a(this,n,s),s.onStart=function(){o.target.paused(!0),o.vars.time!==o.target.time()&&n===o.duration()&&o.duration(Math.abs(o.vars.time-o.target.time())/o.target._timeScale),i.onStart&&o._callback("onStart")},o},c.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=i.immediateRender!==!1;var n=this.tweenTo(e,i);return n.duration(Math.abs(n.vars.time-t)/this._timeScale||.001)},c.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,o,l,u,c,d,h,f,p=this._dirty?this.totalDuration():this._totalDuration,m=this._duration,g=this._time,v=this._totalTime,y=this._startTime,_=this._timeScale,w=this._rawPrevTime,x=this._paused,b=this._cycle;if(t>=p-1e-7)this._locked||(this._totalTime=p,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(o=!0,u="onComplete",c=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=t&&t>=-1e-7||0>w||w===r)&&w!==t&&this._first&&(c=!0,w>r&&(u="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,this._yoyo&&0!==(1&this._cycle)?this._time=t=0:(this._time=m,t=m+1e-4);else if(1e-7>t)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==g||0===m&&w!==r&&(w>0||0>t&&w>=0)&&!this._locked)&&(u="onReverseComplete",o=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(c=o=!0,u="onReverseComplete"):w>=0&&this._first&&(c=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=m||!e||t||this._rawPrevTime===t?t:r,0===t&&o)for(n=this._first;n&&0===n._startTime;)n._duration||(o=!1),n=n._next;t=0,this._initted||(c=!0)}else if(0===m&&0>w&&(c=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(d=m+this._repeatDelay,this._cycle=this._totalTime/d>>0,0!==this._cycle&&this._cycle===this._totalTime/d&&t>=v&&this._cycle--,this._time=this._totalTime-this._cycle*d,this._yoyo&&0!==(1&this._cycle)&&(this._time=m-this._time),this._time>m?(this._time=m,t=m+1e-4):this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e){if(t=this._time,t>=g)for(n=this._first;n&&n._startTime<=t&&!h;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(h=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!h;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(h=n),n=n._prev;h&&(this._time=t=h._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==b&&!this._locked){var T=this._yoyo&&0!==(1&b),k=T===(this._yoyo&&0!==(1&this._cycle)),S=this._totalTime,C=this._cycle,A=this._rawPrevTime,P=this._time;if(this._totalTime=b*m,this._cycle<b?T=!T:this._totalTime+=m,this._time=g,this._rawPrevTime=0===m?w-1e-4:w,this._cycle=b,this._locked=!0,g=T?0:m,this.render(g,e,0===m),e||this._gc||this.vars.onRepeat&&this._callback("onRepeat"),g!==this._time)return;if(k&&(g=T?m+1e-4:-1e-4,this.render(g,!0,!1)),this._locked=!1,this._paused&&!x)return;this._time=P,this._totalTime=S,this._cycle=C,this._rawPrevTime=A}if(!(this._time!==g&&this._first||i||c||h))return void(v!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==v&&t>0&&(this._active=!0),0===v&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback("onStart")),f=this._time,f>=g)for(n=this._first;n&&(l=n._next,f===this._time&&(!this._paused||x));)(n._active||n._startTime<=this._time&&!n._paused&&!n._gc)&&(h===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=l;else for(n=this._last;n&&(l=n._prev,f===this._time&&(!this._paused||x));){if(n._active||n._startTime<=g&&!n._paused&&!n._gc){if(h===n){for(h=n._prev;h&&h.endTime()>this._time;)h.render(h._reversed?h.totalDuration()-(t-h._startTime)*h._timeScale:(t-h._startTime)*h._timeScale,e,i),h=h._prev;h=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=l}this._onUpdate&&(e||(s.length&&a(),this._callback("onUpdate"))),u&&(this._locked||this._gc||(y===this._startTime||_!==this._timeScale)&&(0===this._time||p>=this.totalDuration())&&(o&&(s.length&&a(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[u]&&this._callback(u)))},c.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var n,r,o=[],s=this.getChildren(t,e,i),a=0,l=s.length;for(n=0;l>n;n++)r=s[n],r.isActive()&&(o[a++]=r);return o},c.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),n=i.length;for(e=0;n>e;e++)if(i[e].time>t)return i[e].name;return null},c.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(e[i].time<t)return e[i].name;return null},c.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},c.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},c.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},c.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},c.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},c.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},c.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},c.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},c.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},n},!0),function(){var t=180/Math.PI,e=[],i=[],n=[],r={},o=_gsScope._gsDefine.globals,s=function(t,e,i,n){i===n&&(i=n-(n-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=n,this.da=n-t,this.ca=i-t,this.ba=e-t},a=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",l=function(t,e,i,n){var r={a:t},o={},s={},a={c:n},l=(t+e)/2,u=(e+i)/2,c=(i+n)/2,d=(l+u)/2,h=(u+c)/2,f=(h-d)/8;return r.b=l+(t-l)/4,o.b=d+f,r.c=o.a=(r.b+o.b)/2,o.c=s.a=(d+h)/2,s.b=h-f,a.b=c+(n-c)/4,s.c=a.a=(s.b+a.b)/2,[r,o,s,a]},u=function(t,r,o,s,a){var u,c,d,h,f,p,m,g,v,y,_,w,x,b=t.length-1,T=0,k=t[0].a;for(u=0;b>u;u++)f=t[T],c=f.a,d=f.d,h=t[T+1].d,a?(_=e[u],w=i[u],x=(w+_)*r*.25/(s?.5:n[u]||.5),p=d-(d-c)*(s?.5*r:0!==_?x/_:0),m=d+(h-d)*(s?.5*r:0!==w?x/w:0),g=d-(p+((m-p)*(3*_/(_+w)+.5)/4||0))):(p=d-(d-c)*r*.5,m=d+(h-d)*r*.5,g=d-(p+m)/2),p+=g,m+=g,f.c=v=p,0!==u?f.b=k:f.b=k=f.a+.6*(f.c-f.a),f.da=d-c,f.ca=v-c,f.ba=k-c,o?(y=l(c,k,v,d),t.splice(T,1,y[0],y[1],y[2],y[3]),T+=4):T++,k=m;f=t[T],f.b=k,f.c=k+.4*(f.d-k),f.da=f.d-f.a,f.ca=f.c-f.a,f.ba=k-f.a,o&&(y=l(f.a,k,f.c,f.d),t.splice(T,1,y[0],y[1],y[2],y[3]))},c=function(t,n,r,o){var a,l,u,c,d,h,f=[];if(o)for(t=[o].concat(t),l=t.length;--l>-1;)"string"==typeof(h=t[l][n])&&"="===h.charAt(1)&&(t[l][n]=o[n]+Number(h.charAt(0)+h.substr(2)));if(a=t.length-2,0>a)return f[0]=new s(t[0][n],0,0,t[-1>a?0:1][n]),f;for(l=0;a>l;l++)u=t[l][n],c=t[l+1][n],f[l]=new s(u,0,0,c),r&&(d=t[l+2][n],e[l]=(e[l]||0)+(c-u)*(c-u),i[l]=(i[l]||0)+(d-c)*(d-c));return f[l]=new s(t[l][n],0,0,t[l+1][n]),f},d=function(t,o,s,l,d,h){var f,p,m,g,v,y,_,w,x={},b=[],T=h||t[0];d="string"==typeof d?","+d+",":a,null==o&&(o=1);for(p in t[0])b.push(p);if(t.length>1){for(w=t[t.length-1],_=!0,f=b.length;--f>-1;)if(p=b[f],Math.abs(T[p]-w[p])>.05){_=!1;break}_&&(t=t.concat(),h&&t.unshift(h),t.push(t[1]),h=t[t.length-3])}for(e.length=i.length=n.length=0,f=b.length;--f>-1;)p=b[f],r[p]=-1!==d.indexOf(","+p+","),x[p]=c(t,p,r[p],h);for(f=e.length;--f>-1;)e[f]=Math.sqrt(e[f]),i[f]=Math.sqrt(i[f]);if(!l){for(f=b.length;--f>-1;)if(r[p])for(m=x[b[f]],y=m.length-1,g=0;y>g;g++)v=m[g+1].da/i[g]+m[g].da/e[g]||0,n[g]=(n[g]||0)+v*v;for(f=n.length;--f>-1;)n[f]=Math.sqrt(n[f])}for(f=b.length,g=s?4:1;--f>-1;)p=b[f],m=x[p],u(m,o,s,l,r[p]),_&&(m.splice(0,g),m.splice(m.length-g,g));return x},h=function(t,e,i){e=e||"soft";var n,r,o,a,l,u,c,d,h,f,p,m={},g="cubic"===e?3:2,v="soft"===e,y=[];if(v&&i&&(t=[i].concat(t)),null==t||t.length<g+1)throw"invalid Bezier data";for(h in t[0])y.push(h);for(u=y.length;--u>-1;){for(h=y[u],m[h]=l=[],f=0,d=t.length,c=0;d>c;c++)n=null==i?t[c][h]:"string"==typeof(p=t[c][h])&&"="===p.charAt(1)?i[h]+Number(p.charAt(0)+p.substr(2)):Number(p),v&&c>1&&d-1>c&&(l[f++]=(n+l[f-2])/2),l[f++]=n;for(d=f-g+1,f=0,c=0;d>c;c+=g)n=l[c],r=l[c+1],o=l[c+2],a=2===g?0:l[c+3],l[f++]=p=3===g?new s(n,r,o,a):new s(n,(2*r+n)/3,(2*r+o)/3,o);l.length=f}return m},f=function(t,e,i){for(var n,r,o,s,a,l,u,c,d,h,f,p=1/i,m=t.length;--m>-1;)for(h=t[m],o=h.a,s=h.d-o,a=h.c-o,l=h.b-o,n=r=0,c=1;i>=c;c++)u=p*c,d=1-u,n=r-(r=(u*u*s+3*d*(u*a+d*l))*u),f=m*i+c-1,e[f]=(e[f]||0)+n*n},p=function(t,e){e=e>>0||6;var i,n,r,o,s=[],a=[],l=0,u=0,c=e-1,d=[],h=[];for(i in t)f(t[i],s,e);for(r=s.length,n=0;r>n;n++)l+=Math.sqrt(s[n]),o=n%e,h[o]=l,o===c&&(u+=l,o=n/e>>0,d[o]=h,a[o]=u,l=0,h=[]);return{length:u,lengths:a,segments:d}},m=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var n,r,o,s,a,l=e.values||[],u={},c=l[0],f=e.autoRotate||i.vars.orientToBezier;this._autoRotate=f?f instanceof Array?f:[["x","y","rotation",f===!0?0:Number(f)||0]]:null;for(n in c)this._props.push(n);for(o=this._props.length;--o>-1;)n=this._props[o],this._overwriteProps.push(n),r=this._func[n]="function"==typeof t[n],u[n]=r?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(t[n]),a||u[n]!==l[0][n]&&(a=u);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?d(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,a):h(l,e.type,u),this._segCount=this._beziers[n].length,this._timeRes){var m=p(this._beziers,this._timeRes);this._length=m.length,this._lengths=m.lengths,this._segments=m.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(f=this._autoRotate)for(this._initialRotations=[],f[0]instanceof Array||(this._autoRotate=f=[f]),o=f.length;--o>-1;){for(s=0;3>s;s++)n=f[o][s],this._func[n]="function"==typeof t[n]&&t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)];n=f[o][2],this._initialRotations[o]=(this._func[n]?this._func[n].call(this._target):this._target[n])||0,this._overwriteProps.push(n)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,n,r,o,s,a,l,u,c,d,h=this._segCount,f=this._func,p=this._target,m=e!==this._startRatio;if(this._timeRes){if(c=this._lengths,d=this._curSeg,e*=this._length,r=this._li,e>this._l2&&h-1>r){for(u=h-1;u>r&&(this._l2=c[++r])<=e;);this._l1=c[r-1],this._li=r,this._curSeg=d=this._segments[r],this._s2=d[this._s1=this._si=0]}else if(e<this._l1&&r>0){for(;r>0&&(this._l1=c[--r])>=e;);0===r&&e<this._l1?this._l1=0:r++,this._l2=c[r],this._li=r,this._curSeg=d=this._segments[r],this._s1=d[(this._si=d.length-1)-1]||0,this._s2=d[this._si]}if(i=r,e-=this._l1,r=this._si,e>this._s2&&r<d.length-1){for(u=d.length-1;u>r&&(this._s2=d[++r])<=e;);this._s1=d[r-1],this._si=r}else if(e<this._s1&&r>0){for(;r>0&&(this._s1=d[--r])>=e;);0===r&&e<this._s1?this._s1=0:r++,this._s2=d[r],this._si=r}a=(r+(e-this._s1)/(this._s2-this._s1))*this._prec||0}else i=0>e?0:e>=1?h-1:h*e>>0,a=(e-i*(1/h))*h;for(n=1-a,r=this._props.length;--r>-1;)o=this._props[r],s=this._beziers[o][i],l=(a*a*s.da+3*n*(a*s.ca+n*s.ba))*a+s.a,this._mod[o]&&(l=this._mod[o](l,p)),f[o]?p[o](l):p[o]=l;if(this._autoRotate){var g,v,y,_,w,x,b,T=this._autoRotate;for(r=T.length;--r>-1;)o=T[r][2],x=T[r][3]||0,b=T[r][4]===!0?1:t,s=this._beziers[T[r][0]],g=this._beziers[T[r][1]],s&&g&&(s=s[i],g=g[i],v=s.a+(s.b-s.a)*a,_=s.b+(s.c-s.b)*a,v+=(_-v)*a,_+=(s.c+(s.d-s.c)*a-_)*a,y=g.a+(g.b-g.a)*a,w=g.b+(g.c-g.b)*a,y+=(w-y)*a,w+=(g.c+(g.d-g.c)*a-w)*a,l=m?Math.atan2(w-y,_-v)*b+x:this._initialRotations[r],this._mod[o]&&(l=this._mod[o](l,p)),f[o]?p[o](l):p[o]=l)}}}),g=m.prototype;m.bezierThrough=d,m.cubicToQuadratic=l,m._autoCSS=!0,m.quadraticToCubic=function(t,e,i){return new s(t,(2*e+t)/3,(2*e+i)/3,i)},m._cssRegister=function(){var t=o.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,n=e._setPluginRatio,r=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,o,s,a,l){e instanceof Array&&(e={values:e}),l=new m;var u,c,d,h=e.values,f=h.length-1,p=[],g={};if(0>f)return a;for(u=0;f>=u;u++)d=i(t,h[u],s,a,l,f!==u),p[u]=d.end;for(c in e)g[c]=e[c];return g.values=p,a=new r(t,"bezier",0,0,d.pt,2),a.data=d,a.plugin=l,a.setRatio=n,0===g.autoRotate&&(g.autoRotate=!0),!g.autoRotate||g.autoRotate instanceof Array||(u=g.autoRotate===!0?0:Number(g.autoRotate),g.autoRotate=null!=d.end.left?[["left","top","rotation",u,!1]]:null!=d.end.x&&[["x","y","rotation",u,!1]]),g.autoRotate&&(s._transform||s._enableTransforms(!1),d.autoRotate=s._target._gsTransform,d.proxy.rotation=d.autoRotate.rotation||0,s._overwriteProps.push("rotation")),l._onInitTween(d.proxy,g,s._tween),a}})}},g._mod=function(t){for(var e,i=this._overwriteProps,n=i.length;--n>-1;)e=t[i[n]],e&&"function"==typeof e&&(this._mod[i[n]]=e)},g._kill=function(t){var e,i,n=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=n.length;--i>-1;)n[i]===e&&n.splice(i,1);if(n=this._autoRotate)for(i=n.length;--i>-1;)t[n[i][2]]&&n.splice(i,1);return this._super._kill.call(this,t)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,n,r,o,s=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=s.prototype.setRatio},a=_gsScope._gsDefine.globals,l={},u=s.prototype=new t("css");u.constructor=s,s.version="1.19.0",s.API=2,s.defaultTransformPerspective=0,s.defaultSkewType="compensated",s.defaultSmoothOrigin=!0,u="px",s.suffixMap={top:u,right:u,bottom:u,left:u,width:u,height:u,fontSize:u,padding:u,margin:u,perspective:u,lineHeight:""};var c,d,h,f,p,m,g,v,y=/(?:\-|\.|\b)(\d|\.|e\-)+/g,_=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,w=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,x=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,b=/(?:\d|\-|\+|=|#|\.)*/g,T=/opacity *= *([^)]*)/i,k=/opacity:([^;]*)/i,S=/alpha\(opacity *=.+?\)/i,C=/^(rgb|hsl)/,A=/([A-Z])/g,P=/-([a-z])/gi,O=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,D=function(t,e){return e.toUpperCase()},$=/(?:Left|Right|Width)/i,E=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,R=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,F=/,(?=[^\)]*(?:\(|$))/gi,M=/[\s,\(]/i,z=Math.PI/180,j=180/Math.PI,N={},L=document,I=function(t){return L.createElementNS?L.createElementNS("http://www.w3.org/1999/xhtml",t):L.createElement(t)},H=I("div"),q=I("img"),B=s._internals={_specialProps:l},W=navigator.userAgent,X=function(){var t=W.indexOf("Android"),e=I("a");return h=-1!==W.indexOf("Safari")&&-1===W.indexOf("Chrome")&&(-1===t||Number(W.substr(t+8,1))>3),p=h&&Number(W.substr(W.indexOf("Version/")+8,1))<6,f=-1!==W.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(W)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(W))&&(m=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),U=function(t){return T.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},Y=function(t){window.console&&console.log(t)},V="",G="",Z=function(t,e){e=e||H;var i,n,r=e.style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;--n>-1&&void 0===r[i[n]+t];);return n>=0?(G=3===n?"ms":i[n],V="-"+G.toLowerCase()+"-",G+t):null},Q=L.defaultView?L.defaultView.getComputedStyle:function(){},J=s.getStyle=function(t,e,i,n,r){var o;return X||"opacity"!==e?(!n&&t.style[e]?o=t.style[e]:(i=i||Q(t))?o=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(A,"-$1").toLowerCase()):t.currentStyle&&(o=t.currentStyle[e]),null==r||o&&"none"!==o&&"auto"!==o&&"auto auto"!==o?o:r):U(t)},K=B.convertToPixels=function(t,i,n,r,o){if("px"===r||!r)return n;if("auto"===r||!n)return 0;var a,l,u,c=$.test(i),d=t,h=H.style,f=0>n,p=1===n;if(f&&(n=-n),p&&(n*=100),"%"===r&&-1!==i.indexOf("border"))a=n/100*(c?t.clientWidth:t.clientHeight);else{if(h.cssText="border:0 solid red;position:"+J(t,"position")+";line-height:0;","%"!==r&&d.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)h[c?"borderLeftWidth":"borderTopWidth"]=n+r;else{if(d=t.parentNode||L.body,l=d._gsCache,u=e.ticker.frame,l&&c&&l.time===u)return l.width*n/100;h[c?"width":"height"]=n+r}d.appendChild(H),a=parseFloat(H[c?"offsetWidth":"offsetHeight"]),d.removeChild(H),c&&"%"===r&&s.cacheWidths!==!1&&(l=d._gsCache=d._gsCache||{},l.time=u,l.width=a/n*100),0!==a||o||(a=K(t,i,n,r,!0))}return p&&(a/=100),f?-a:a},tt=B.calculateOffset=function(t,e,i){if("absolute"!==J(t,"position",i))return 0;var n="left"===e?"Left":"Top",r=J(t,"margin"+n,i);return t["offset"+n]-(K(t,e,parseFloat(r),r.replace(b,""))||0)},et=function(t,e){var i,n,r,o={};if(e=e||Q(t,null))if(i=e.length)for(;--i>-1;)r=e[i],(-1===r.indexOf("-transform")||Pt===r)&&(o[r.replace(P,D)]=e.getPropertyValue(r));else for(i in e)(-1===i.indexOf("Transform")||At===i)&&(o[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===o[i]&&(o[i.replace(P,D)]=e[i]);return X||(o.opacity=U(t)),n=Ht(t,e,!1),o.rotation=n.rotation,o.skewX=n.skewX,o.scaleX=n.scaleX,o.scaleY=n.scaleY,o.x=n.x,o.y=n.y,Dt&&(o.z=n.z,o.rotationX=n.rotationX,o.rotationY=n.rotationY,o.scaleZ=n.scaleZ),o.filters&&delete o.filters,o},it=function(t,e,i,n,r){var o,s,a,l={},u=t.style;for(s in i)"cssText"!==s&&"length"!==s&&isNaN(s)&&(e[s]!==(o=i[s])||r&&r[s])&&-1===s.indexOf("Origin")&&("number"==typeof o||"string"==typeof o)&&(l[s]="auto"!==o||"left"!==s&&"top"!==s?""!==o&&"auto"!==o&&"none"!==o||"string"!=typeof e[s]||""===e[s].replace(x,"")?o:0:tt(t,s),void 0!==u[s]&&(a=new vt(u,s,u[s],a)));if(n)for(s in n)"className"!==s&&(l[s]=n[s]);return{difs:l,firstMPT:a}},nt={width:["Left","Right"],height:["Top","Bottom"]},rt=["marginLeft","marginRight","marginTop","marginBottom"],ot=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||Q(t))[e]||0;if(t.getBBox&&Nt(t))return t.getBBox()[e]||0;var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=nt[e],o=r.length;for(i=i||Q(t,null);--o>-1;)n-=parseFloat(J(t,"padding"+r[o],i,!0))||0,n-=parseFloat(J(t,"border"+r[o]+"Width",i,!0))||0;return n},st=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";(null==t||""===t)&&(t="0 0");var i,n=t.split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":n[0],o=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":n[1];if(n.length>3&&!e){for(n=t.split(", ").join(",").split(","),t=[],i=0;i<n.length;i++)t.push(st(n[i]));return t.join(",")}return null==o?o="center"===r?"50%":"0":"center"===o&&(o="50%"),("center"===r||isNaN(parseFloat(r))&&-1===(r+"").indexOf("="))&&(r="50%"),t=r+" "+o+(n.length>2?" "+n[2]:""),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==o.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===o.charAt(1),e.ox=parseFloat(r.replace(x,"")),e.oy=parseFloat(o.replace(x,"")),e.v=t),e||t},at=function(t,e){return"function"==typeof t&&(t=t(v,g)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},lt=function(t,e){return"function"==typeof t&&(t=t(v,g)),null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ut=function(t,e,i,n){var r,o,s,a,l,u=1e-6;return"function"==typeof t&&(t=t(v,g)),null==t?a=e:"number"==typeof t?a=t:(r=360,o=t.split("_"),l="="===t.charAt(1),s=(l?parseInt(t.charAt(0)+"1",10)*parseFloat(o[0].substr(2)):parseFloat(o[0]))*(-1===t.indexOf("rad")?1:j)-(l?0:e),o.length&&(n&&(n[i]=e+s),-1!==t.indexOf("short")&&(s%=r,s!==s%(r/2)&&(s=0>s?s+r:s-r)),-1!==t.indexOf("_cw")&&0>s?s=(s+9999999999*r)%r-(s/r|0)*r:-1!==t.indexOf("ccw")&&s>0&&(s=(s-9999999999*r)%r-(s/r|0)*r)),a=e+s),u>a&&a>-u&&(a=0),a},ct={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},dt=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,255*(1>6*t?e+(i-e)*t*6:.5>t?i:2>3*t?e+(i-e)*(2/3-t)*6:e)+.5|0},ht=s.parseColor=function(t,e){var i,n,r,o,s,a,l,u,c,d,h;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ct[t])i=ct[t];else if("#"===t.charAt(0))4===t.length&&(n=t.charAt(1),r=t.charAt(2),o=t.charAt(3),t="#"+n+n+r+r+o+o),t=parseInt(t.substr(1),16),i=[t>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=h=t.match(y),e){if(-1!==t.indexOf("="))return t.match(_)}else s=Number(i[0])%360/360,a=Number(i[1])/100,l=Number(i[2])/100,r=.5>=l?l*(a+1):l+a-l*a,n=2*l-r,i.length>3&&(i[3]=Number(t[3])),i[0]=dt(s+1/3,n,r),i[1]=dt(s,n,r),i[2]=dt(s-1/3,n,r);else i=t.match(y)||ct.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=ct.black;return e&&!h&&(n=i[0]/255,r=i[1]/255,o=i[2]/255,u=Math.max(n,r,o),c=Math.min(n,r,o),l=(u+c)/2,u===c?s=a=0:(d=u-c,a=l>.5?d/(2-u-c):d/(u+c),s=u===n?(r-o)/d+(o>r?6:0):u===r?(o-n)/d+2:(n-r)/d+4,s*=60),i[0]=s+.5|0,i[1]=100*a+.5|0,i[2]=100*l+.5|0),i},ft=function(t,e){var i,n,r,o=t.match(pt)||[],s=0,a=o.length?"":t;for(i=0;i<o.length;i++)n=o[i],r=t.substr(s,t.indexOf(n,s)-s),s+=r.length+n.length,n=ht(n,e),3===n.length&&n.push(1),a+=r+(e?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return a+t.substr(s)},pt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(u in ct)pt+="|"+u+"\\b";pt=new RegExp(pt+")","gi"),s.colorStringFilter=function(t){var e,i=t[0]+t[1];pt.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=ft(t[0],e),t[1]=ft(t[1],e)),pt.lastIndex=0},e.defaultStringFilter||(e.defaultStringFilter=s.colorStringFilter);var mt=function(t,e,i,n){if(null==t)return function(t){return t};var r,o=e?(t.match(pt)||[""])[0]:"",s=t.split(o).join("").match(w)||[],a=t.substr(0,t.indexOf(s[0])),l=")"===t.charAt(t.length-1)?")":"",u=-1!==t.indexOf(" ")?" ":",",c=s.length,d=c>0?s[0].replace(y,""):"";return c?r=e?function(t){var e,h,f,p;if("number"==typeof t)t+=d;else if(n&&F.test(t)){for(p=t.replace(F,"|").split("|"),f=0;f<p.length;f++)p[f]=r(p[f]);return p.join(",")}if(e=(t.match(pt)||[o])[0],h=t.split(e).join("").match(w)||[],f=h.length,c>f--)for(;++f<c;)h[f]=i?h[(f-1)/2|0]:s[f];return a+h.join(u)+u+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,o,h;if("number"==typeof t)t+=d;else if(n&&F.test(t)){for(o=t.replace(F,"|").split("|"),h=0;h<o.length;h++)o[h]=r(o[h]);return o.join(",")}if(e=t.match(w)||[],h=e.length,c>h--)for(;++h<c;)e[h]=i?e[(h-1)/2|0]:s[h];return a+e.join(u)+l}:function(t){return t}},gt=function(t){return t=t.split(","),function(e,i,n,r,o,s,a){var l,u=(i+"").split(" ");for(a={},l=0;4>l;l++)a[t[l]]=u[l]=u[l]||u[(l-1)/2>>0];return r.parse(e,a,o,s)}},vt=(B._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,n,r,o,s=this.data,a=s.proxy,l=s.firstMPT,u=1e-6;l;)e=a[l.v],l.r?e=Math.round(e):u>e&&e>-u&&(e=0),l.t[l.p]=e,l=l._next;if(s.autoRotate&&(s.autoRotate.rotation=s.mod?s.mod(a.rotation,this.t):a.rotation),1===t||0===t)for(l=s.firstMPT,o=1===t?"e":"b";l;){if(i=l.t,i.type){if(1===i.type){for(r=i.xs0+i.s+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i[o]=r}}else i[o]=i.s+i.xs0;l=l._next}},function(t,e,i,n,r){this.t=t,this.p=e,this.v=i,this.r=r,n&&(n._prev=this,this._next=n)}),yt=(B._parseToProxy=function(t,e,i,n,r,o){var s,a,l,u,c,d=n,h={},f={},p=i._transform,m=N;for(i._transform=null,N=e,n=c=i.parse(t,e,n,r),N=m,o&&(i._transform=p,d&&(d._prev=null,d._prev&&(d._prev._next=null)));n&&n!==d;){if(n.type<=1&&(a=n.p,f[a]=n.s+n.c,h[a]=n.s,o||(u=new vt(n,"s",a,u,n.r),n.c=0),1===n.type))for(s=n.l;--s>0;)l="xn"+s,a=n.p+"_"+l,f[a]=n.data[l],h[a]=n[l],o||(u=new vt(n,l,a,u,n.rxp[l]));n=n._next}return{proxy:h,end:f,firstMPT:u,pt:c}},B.CSSPropTween=function(t,e,n,r,s,a,l,u,c,d,h){this.t=t,this.p=e,this.s=n,this.c=r,this.n=l||e,t instanceof yt||o.push(this.n),this.r=u,this.type=a||0,c&&(this.pr=c,i=!0),this.b=void 0===d?n:d,this.e=void 0===h?n+r:h,s&&(this._next=s,s._prev=this)}),_t=function(t,e,i,n,r,o){var s=new yt(t,e,i,n-i,r,(-1),o);return s.b=i,s.e=s.xs0=n,s},wt=s.parseComplex=function(t,e,i,n,r,o,a,l,u,d){i=i||o||"","function"==typeof n&&(n=n(v,g)),a=new yt(t,e,0,0,a,d?2:1,null,(!1),l,i,n),n+="",r&&pt.test(n+i)&&(n=[i,n],s.colorStringFilter(n),i=n[0],n=n[1]);var h,f,p,m,w,x,b,T,k,S,C,A,P,O=i.split(", ").join(",").split(" "),D=n.split(", ").join(",").split(" "),$=O.length,E=c!==!1;for((-1!==n.indexOf(",")||-1!==i.indexOf(","))&&(O=O.join(" ").replace(F,", ").split(" "),D=D.join(" ").replace(F,", ").split(" "),$=O.length),$!==D.length&&(O=(o||"").split(" "),$=O.length),a.plugin=u,a.setRatio=d,pt.lastIndex=0,h=0;$>h;h++)if(m=O[h],w=D[h],T=parseFloat(m),T||0===T)a.appendXtra("",T,at(w,T),w.replace(_,""),E&&-1!==w.indexOf("px"),!0);else if(r&&pt.test(m))A=w.indexOf(")")+1,A=")"+(A?w.substr(A):""),P=-1!==w.indexOf("hsl")&&X,m=ht(m,P),w=ht(w,P),k=m.length+w.length>6,k&&!X&&0===w[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(D[h]).join("transparent")):(X||(k=!1),P?a.appendXtra(k?"hsla(":"hsl(",m[0],at(w[0],m[0]),",",!1,!0).appendXtra("",m[1],at(w[1],m[1]),"%,",!1).appendXtra("",m[2],at(w[2],m[2]),k?"%,":"%"+A,!1):a.appendXtra(k?"rgba(":"rgb(",m[0],w[0]-m[0],",",!0,!0).appendXtra("",m[1],w[1]-m[1],",",!0).appendXtra("",m[2],w[2]-m[2],k?",":A,!0),k&&(m=m.length<4?1:m[3],a.appendXtra("",m,(w.length<4?1:w[3])-m,A,!1))),pt.lastIndex=0;else if(x=m.match(y)){if(b=w.match(_),!b||b.length!==x.length)return a;for(p=0,f=0;f<x.length;f++)C=x[f],S=m.indexOf(C,p),a.appendXtra(m.substr(p,S-p),Number(C),at(b[f],C),"",E&&"px"===m.substr(S+C.length,2),0===f),p=S+C.length;a["xs"+a.l]+=m.substr(p)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+w:w;if(-1!==n.indexOf("=")&&a.data){for(A=a.xs0+a.data.s,h=1;h<a.l;h++)A+=a["xs"+h]+a.data["xn"+h];a.e=A+a["xs"+h]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},xt=9;for(u=yt.prototype,u.l=u.pr=0;--xt>0;)u["xn"+xt]=0,u["xs"+xt]="";u.xs0="",u._next=u._prev=u.xfirst=u.data=u.plugin=u.setRatio=u.rxp=null,u.appendXtra=function(t,e,i,n,r,o){var s=this,a=s.l;return s["xs"+a]+=o&&(a||s["xs"+a])?" "+t:t||"",i||0===a||s.plugin?(s.l++,s.type=s.setRatio?2:1,s["xs"+s.l]=n||"",a>0?(s.data["xn"+a]=e+i,s.rxp["xn"+a]=r,s["xn"+a]=e,s.plugin||(s.xfirst=new yt(s,"xn"+a,e,i,s.xfirst||s,0,s.n,r,s.pr),s.xfirst.xs0=0),s):(s.data={s:e+i},s.rxp={},s.s=e,s.c=i,s.r=r,s)):(s["xs"+a]+=e+(n||""),s)};var bt=function(t,e){e=e||{},this.p=e.prefix?Z(t)||t:t,l[t]=l[this.p]=this,this.format=e.formatter||mt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},Tt=B._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var n,r,o=t.split(","),s=e.defaultValue;for(i=i||[s],n=0;n<o.length;n++)e.prefix=0===n&&e.prefix,e.defaultValue=i[n]||s,r=new bt(o[n],e)},kt=B._registerPluginProp=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Tt(t,{parser:function(t,i,n,r,o,s,u){var c=a.com.greensock.plugins[e];return c?(c._cssRegister(),l[n].parse(t,i,n,r,o,s,u)):(Y("Error: "+e+" js file not loaded."),o)}})}};u=bt.prototype,u.parseComplex=function(t,e,i,n,r,o){var s,a,l,u,c,d,h=this.keyword;if(this.multi&&(F.test(i)||F.test(e)?(a=e.replace(F,"|").split("|"),l=i.replace(F,"|").split("|")):h&&(a=[e],l=[i])),l){for(u=l.length>a.length?l.length:a.length,s=0;u>s;s++)e=a[s]=a[s]||this.dflt,i=l[s]=l[s]||this.dflt,h&&(c=e.indexOf(h),d=i.indexOf(h),c!==d&&(-1===d?a[s]=a[s].split(h).join(""):-1===c&&(a[s]+=" "+h)));e=a.join(", "),i=l.join(", ")}return wt(t,this.p,e,i,this.clrs,this.dflt,n,this.pr,r,o)},u.parse=function(t,e,i,n,o,s,a){return this.parseComplex(t.style,this.format(J(t,this.p,r,!1,this.dflt)),this.format(e),o,s)},s.registerSpecialProp=function(t,e,i){Tt(t,{parser:function(t,n,r,o,s,a,l){var u=new yt(t,r,0,0,s,2,r,(!1),i);return u.plugin=a,u.setRatio=e(t,n,o._tween,r),u},priority:i})},s.useSVGTransformAttr=h||f;var St,Ct="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),At=Z("transform"),Pt=V+"transform",Ot=Z("transformOrigin"),Dt=null!==Z("perspective"),$t=B.Transform=function(){this.perspective=parseFloat(s.defaultTransformPerspective)||0,this.force3D=!(s.defaultForce3D===!1||!Dt)&&(s.defaultForce3D||"auto")},Et=window.SVGElement,Rt=function(t,e,i){var n,r=L.createElementNS("http://www.w3.org/2000/svg",t),o=/([a-z])([A-Z])/g;for(n in i)r.setAttributeNS(null,n.replace(o,"$1-$2").toLowerCase(),i[n]);
return e.appendChild(r),r},Ft=L.documentElement,Mt=function(){var t,e,i,n=m||/Android/i.test(W)&&!window.chrome;return L.createElementNS&&!n&&(t=Rt("svg",Ft),e=Rt("rect",t,{width:100,height:50,x:100}),i=e.getBoundingClientRect().width,e.style[Ot]="50% 50%",e.style[At]="scaleX(0.5)",n=i===e.getBoundingClientRect().width&&!(f&&Dt),Ft.removeChild(t)),n}(),zt=function(t,e,i,n,r,o){var a,l,u,c,d,h,f,p,m,g,v,y,_,w,x=t._gsTransform,b=It(t,!0);x&&(_=x.xOrigin,w=x.yOrigin),(!n||(a=n.split(" ")).length<2)&&(f=t.getBBox(),e=st(e).split(" "),a=[(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*f.width:parseFloat(e[0]))+f.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*f.height:parseFloat(e[1]))+f.y]),i.xOrigin=c=parseFloat(a[0]),i.yOrigin=d=parseFloat(a[1]),n&&b!==Lt&&(h=b[0],f=b[1],p=b[2],m=b[3],g=b[4],v=b[5],y=h*m-f*p,l=c*(m/y)+d*(-p/y)+(p*v-m*g)/y,u=c*(-f/y)+d*(h/y)-(h*v-f*g)/y,c=i.xOrigin=a[0]=l,d=i.yOrigin=a[1]=u),x&&(o&&(i.xOffset=x.xOffset,i.yOffset=x.yOffset,x=i),r||r!==!1&&s.defaultSmoothOrigin!==!1?(l=c-_,u=d-w,x.xOffset+=l*b[0]+u*b[2]-l,x.yOffset+=l*b[1]+u*b[3]-u):x.xOffset=x.yOffset=0),o||t.setAttribute("data-svg-origin",a.join(" "))},jt=function(t){try{return t.getBBox()}catch(t){}},Nt=function(t){return!!(Et&&t.getBBox&&t.getCTM&&jt(t)&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))},Lt=[1,0,0,1,0,0],It=function(t,e){var i,n,r,o,s,a,l=t._gsTransform||new $t,u=1e5,c=t.style;if(At?n=J(t,Pt,null,!0):t.currentStyle&&(n=t.currentStyle.filter.match(E),n=n&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),l.x||0,l.y||0].join(","):""),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,i&&At&&((a="none"===Q(t).display)||!t.parentNode)&&(a&&(o=c.display,c.display="block"),t.parentNode||(s=1,Ft.appendChild(t)),n=J(t,Pt,null,!0),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,o?c.display=o:a&&Xt(c,"display"),s&&Ft.removeChild(t)),(l.svg||t.getBBox&&Nt(t))&&(i&&-1!==(c[At]+"").indexOf("matrix")&&(n=c[At],i=0),r=t.getAttribute("transform"),i&&r&&(-1!==r.indexOf("matrix")?(n=r,i=0):-1!==r.indexOf("translate")&&(n="matrix(1,0,0,1,"+r.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return Lt;for(r=(n||"").match(y)||[],xt=r.length;--xt>-1;)o=Number(r[xt]),r[xt]=(s=o-(o|=0))?(s*u+(0>s?-.5:.5)|0)/u+o:o;return e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r},Ht=B.getTransform=function(t,i,n,r){if(t._gsTransform&&n&&!r)return t._gsTransform;var o,a,l,u,c,d,h=n?t._gsTransform||new $t:new $t,f=h.scaleX<0,p=2e-5,m=1e5,g=Dt?parseFloat(J(t,Ot,i,!1,"0 0 0").split(" ")[2])||h.zOrigin||0:0,v=parseFloat(s.defaultTransformPerspective)||0;if(h.svg=!(!t.getBBox||!Nt(t)),h.svg&&(zt(t,J(t,Ot,i,!1,"50% 50%")+"",h,t.getAttribute("data-svg-origin")),St=s.useSVGTransformAttr||Mt),o=It(t),o!==Lt){if(16===o.length){var y,_,w,x,b,T=o[0],k=o[1],S=o[2],C=o[3],A=o[4],P=o[5],O=o[6],D=o[7],$=o[8],E=o[9],R=o[10],F=o[12],M=o[13],z=o[14],N=o[11],L=Math.atan2(O,R);h.zOrigin&&(z=-h.zOrigin,F=$*z-o[12],M=E*z-o[13],z=R*z+h.zOrigin-o[14]),h.rotationX=L*j,L&&(x=Math.cos(-L),b=Math.sin(-L),y=A*x+$*b,_=P*x+E*b,w=O*x+R*b,$=A*-b+$*x,E=P*-b+E*x,R=O*-b+R*x,N=D*-b+N*x,A=y,P=_,O=w),L=Math.atan2(-S,R),h.rotationY=L*j,L&&(x=Math.cos(-L),b=Math.sin(-L),y=T*x-$*b,_=k*x-E*b,w=S*x-R*b,E=k*b+E*x,R=S*b+R*x,N=C*b+N*x,T=y,k=_,S=w),L=Math.atan2(k,T),h.rotation=L*j,L&&(x=Math.cos(-L),b=Math.sin(-L),T=T*x+A*b,_=k*x+P*b,P=k*-b+P*x,O=S*-b+O*x,k=_),h.rotationX&&Math.abs(h.rotationX)+Math.abs(h.rotation)>359.9&&(h.rotationX=h.rotation=0,h.rotationY=180-h.rotationY),h.scaleX=(Math.sqrt(T*T+k*k)*m+.5|0)/m,h.scaleY=(Math.sqrt(P*P+E*E)*m+.5|0)/m,h.scaleZ=(Math.sqrt(O*O+R*R)*m+.5|0)/m,h.rotationX||h.rotationY?h.skewX=0:(h.skewX=A||P?Math.atan2(A,P)*j+h.rotation:h.skewX||0,Math.abs(h.skewX)>90&&Math.abs(h.skewX)<270&&(f?(h.scaleX*=-1,h.skewX+=h.rotation<=0?180:-180,h.rotation+=h.rotation<=0?180:-180):(h.scaleY*=-1,h.skewX+=h.skewX<=0?180:-180))),h.perspective=N?1/(0>N?-N:N):0,h.x=F,h.y=M,h.z=z,h.svg&&(h.x-=h.xOrigin-(h.xOrigin*T-h.yOrigin*A),h.y-=h.yOrigin-(h.yOrigin*k-h.xOrigin*P))}else if(!Dt||r||!o.length||h.x!==o[4]||h.y!==o[5]||!h.rotationX&&!h.rotationY){var I=o.length>=6,H=I?o[0]:1,q=o[1]||0,B=o[2]||0,W=I?o[3]:1;h.x=o[4]||0,h.y=o[5]||0,l=Math.sqrt(H*H+q*q),u=Math.sqrt(W*W+B*B),c=H||q?Math.atan2(q,H)*j:h.rotation||0,d=B||W?Math.atan2(B,W)*j+c:h.skewX||0,Math.abs(d)>90&&Math.abs(d)<270&&(f?(l*=-1,d+=0>=c?180:-180,c+=0>=c?180:-180):(u*=-1,d+=0>=d?180:-180)),h.scaleX=l,h.scaleY=u,h.rotation=c,h.skewX=d,Dt&&(h.rotationX=h.rotationY=h.z=0,h.perspective=v,h.scaleZ=1),h.svg&&(h.x-=h.xOrigin-(h.xOrigin*H+h.yOrigin*B),h.y-=h.yOrigin-(h.xOrigin*q+h.yOrigin*W))}h.zOrigin=g;for(a in h)h[a]<p&&h[a]>-p&&(h[a]=0)}return n&&(t._gsTransform=h,h.svg&&(St&&t.style[At]?e.delayedCall(.001,function(){Xt(t.style,At)}):!St&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),h},qt=function(t){var e,i,n=this.data,r=-n.rotation*z,o=r+n.skewX*z,s=1e5,a=(Math.cos(r)*n.scaleX*s|0)/s,l=(Math.sin(r)*n.scaleX*s|0)/s,u=(Math.sin(o)*-n.scaleY*s|0)/s,c=(Math.cos(o)*n.scaleY*s|0)/s,d=this.t.style,h=this.t.currentStyle;if(h){i=l,l=-u,u=-i,e=h.filter,d.filter="";var f,p,g=this.t.offsetWidth,v=this.t.offsetHeight,y="absolute"!==h.position,_="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+l+", M21="+u+", M22="+c,w=n.x+g*n.xPercent/100,x=n.y+v*n.yPercent/100;if(null!=n.ox&&(f=(n.oxp?g*n.ox*.01:n.ox)-g/2,p=(n.oyp?v*n.oy*.01:n.oy)-v/2,w+=f-(f*a+p*l),x+=p-(f*u+p*c)),y?(f=g/2,p=v/2,_+=", Dx="+(f-(f*a+p*l)+w)+", Dy="+(p-(f*u+p*c)+x)+")"):_+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?d.filter=e.replace(R,_):d.filter=_+" "+e,(0===t||1===t)&&1===a&&0===l&&0===u&&1===c&&(y&&-1===_.indexOf("Dx=0, Dy=0")||T.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&d.removeAttribute("filter")),!y){var k,S,C,A=8>m?1:-1;for(f=n.ieOffsetX||0,p=n.ieOffsetY||0,n.ieOffsetX=Math.round((g-((0>a?-a:a)*g+(0>l?-l:l)*v))/2+w),n.ieOffsetY=Math.round((v-((0>c?-c:c)*v+(0>u?-u:u)*g))/2+x),xt=0;4>xt;xt++)S=rt[xt],k=h[S],i=-1!==k.indexOf("px")?parseFloat(k):K(this.t,S,parseFloat(k),k.replace(b,""))||0,C=i!==n[S]?2>xt?-n.ieOffsetX:-n.ieOffsetY:2>xt?f-n.ieOffsetX:p-n.ieOffsetY,d[S]=(n[S]=Math.round(i-C*(0===xt||2===xt?1:A)))+"px"}}},Bt=B.set3DTransformRatio=B.setTransformRatio=function(t){var e,i,n,r,o,s,a,l,u,c,d,h,p,m,g,v,y,_,w,x,b,T,k,S=this.data,C=this.t.style,A=S.rotation,P=S.rotationX,O=S.rotationY,D=S.scaleX,$=S.scaleY,E=S.scaleZ,R=S.x,F=S.y,M=S.z,j=S.svg,N=S.perspective,L=S.force3D;if(((1===t||0===t)&&"auto"===L&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!L)&&!M&&!N&&!O&&!P&&1===E||St&&j||!Dt)return void(A||S.skewX||j?(A*=z,T=S.skewX*z,k=1e5,e=Math.cos(A)*D,r=Math.sin(A)*D,i=Math.sin(A-T)*-$,o=Math.cos(A-T)*$,T&&"simple"===S.skewType&&(y=Math.tan(T-S.skewY*z),y=Math.sqrt(1+y*y),i*=y,o*=y,S.skewY&&(y=Math.tan(S.skewY*z),y=Math.sqrt(1+y*y),e*=y,r*=y)),j&&(R+=S.xOrigin-(S.xOrigin*e+S.yOrigin*i)+S.xOffset,F+=S.yOrigin-(S.xOrigin*r+S.yOrigin*o)+S.yOffset,St&&(S.xPercent||S.yPercent)&&(m=this.t.getBBox(),R+=.01*S.xPercent*m.width,F+=.01*S.yPercent*m.height),m=1e-6,m>R&&R>-m&&(R=0),m>F&&F>-m&&(F=0)),w=(e*k|0)/k+","+(r*k|0)/k+","+(i*k|0)/k+","+(o*k|0)/k+","+R+","+F+")",j&&St?this.t.setAttribute("transform","matrix("+w):C[At]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix(":"matrix(")+w):C[At]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix(":"matrix(")+D+",0,0,"+$+","+R+","+F+")");if(f&&(m=1e-4,m>D&&D>-m&&(D=E=2e-5),m>$&&$>-m&&($=E=2e-5),!N||S.z||S.rotationX||S.rotationY||(N=0)),A||S.skewX)A*=z,g=e=Math.cos(A),v=r=Math.sin(A),S.skewX&&(A-=S.skewX*z,g=Math.cos(A),v=Math.sin(A),"simple"===S.skewType&&(y=Math.tan((S.skewX-S.skewY)*z),y=Math.sqrt(1+y*y),g*=y,v*=y,S.skewY&&(y=Math.tan(S.skewY*z),y=Math.sqrt(1+y*y),e*=y,r*=y))),i=-v,o=g;else{if(!(O||P||1!==E||N||j))return void(C[At]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) translate3d(":"translate3d(")+R+"px,"+F+"px,"+M+"px)"+(1!==D||1!==$?" scale("+D+","+$+")":""));e=o=1,i=r=0}u=1,n=s=a=l=c=d=0,h=N?-1/N:0,p=S.zOrigin,m=1e-6,x=",",b="0",A=O*z,A&&(g=Math.cos(A),v=Math.sin(A),a=-v,c=h*-v,n=e*v,s=r*v,u=g,h*=g,e*=g,r*=g),A=P*z,A&&(g=Math.cos(A),v=Math.sin(A),y=i*g+n*v,_=o*g+s*v,l=u*v,d=h*v,n=i*-v+n*g,s=o*-v+s*g,u*=g,h*=g,i=y,o=_),1!==E&&(n*=E,s*=E,u*=E,h*=E),1!==$&&(i*=$,o*=$,l*=$,d*=$),1!==D&&(e*=D,r*=D,a*=D,c*=D),(p||j)&&(p&&(R+=n*-p,F+=s*-p,M+=u*-p+p),j&&(R+=S.xOrigin-(S.xOrigin*e+S.yOrigin*i)+S.xOffset,F+=S.yOrigin-(S.xOrigin*r+S.yOrigin*o)+S.yOffset),m>R&&R>-m&&(R=b),m>F&&F>-m&&(F=b),m>M&&M>-m&&(M=0)),w=S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix3d(":"matrix3d(",w+=(m>e&&e>-m?b:e)+x+(m>r&&r>-m?b:r)+x+(m>a&&a>-m?b:a),w+=x+(m>c&&c>-m?b:c)+x+(m>i&&i>-m?b:i)+x+(m>o&&o>-m?b:o),P||O||1!==E?(w+=x+(m>l&&l>-m?b:l)+x+(m>d&&d>-m?b:d)+x+(m>n&&n>-m?b:n),w+=x+(m>s&&s>-m?b:s)+x+(m>u&&u>-m?b:u)+x+(m>h&&h>-m?b:h)+x):w+=",0,0,0,0,1,0,",w+=R+x+F+x+M+x+(N?1+-M/N:1)+")",C[At]=w};u=$t.prototype,u.x=u.y=u.z=u.skewX=u.skewY=u.rotation=u.rotationX=u.rotationY=u.zOrigin=u.xPercent=u.yPercent=u.xOffset=u.yOffset=0,u.scaleX=u.scaleY=u.scaleZ=1,Tt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,n,o,a,l){if(n._lastParsedTransform===l)return o;n._lastParsedTransform=l;var u;"function"==typeof l[i]&&(u=l[i],l[i]=e);var c,d,h,f,p,m,y,_,w,x=t._gsTransform,b=t.style,T=1e-6,k=Ct.length,S=l,C={},A="transformOrigin",P=Ht(t,r,!0,S.parseTransform),O=S.transform&&("function"==typeof S.transform?S.transform(v,g):S.transform);if(n._transform=P,O&&"string"==typeof O&&At)d=H.style,d[At]=O,d.display="block",d.position="absolute",L.body.appendChild(H),c=Ht(H,null,!1),P.svg&&(m=P.xOrigin,y=P.yOrigin,c.x-=P.xOffset,c.y-=P.yOffset,(S.transformOrigin||S.svgOrigin)&&(O={},zt(t,st(S.transformOrigin),O,S.svgOrigin,S.smoothOrigin,!0),m=O.xOrigin,y=O.yOrigin,c.x-=O.xOffset-P.xOffset,c.y-=O.yOffset-P.yOffset),(m||y)&&(_=It(H,!0),c.x-=m-(m*_[0]+y*_[2]),c.y-=y-(m*_[1]+y*_[3]))),L.body.removeChild(H),c.perspective||(c.perspective=P.perspective),null!=S.xPercent&&(c.xPercent=lt(S.xPercent,P.xPercent)),null!=S.yPercent&&(c.yPercent=lt(S.yPercent,P.yPercent));else if("object"==typeof S){if(c={scaleX:lt(null!=S.scaleX?S.scaleX:S.scale,P.scaleX),scaleY:lt(null!=S.scaleY?S.scaleY:S.scale,P.scaleY),scaleZ:lt(S.scaleZ,P.scaleZ),x:lt(S.x,P.x),y:lt(S.y,P.y),z:lt(S.z,P.z),xPercent:lt(S.xPercent,P.xPercent),yPercent:lt(S.yPercent,P.yPercent),perspective:lt(S.transformPerspective,P.perspective)},p=S.directionalRotation,null!=p)if("object"==typeof p)for(d in p)S[d]=p[d];else S.rotation=p;"string"==typeof S.x&&-1!==S.x.indexOf("%")&&(c.x=0,c.xPercent=lt(S.x,P.xPercent)),"string"==typeof S.y&&-1!==S.y.indexOf("%")&&(c.y=0,c.yPercent=lt(S.y,P.yPercent)),c.rotation=ut("rotation"in S?S.rotation:"shortRotation"in S?S.shortRotation+"_short":"rotationZ"in S?S.rotationZ:P.rotation-P.skewY,P.rotation-P.skewY,"rotation",C),Dt&&(c.rotationX=ut("rotationX"in S?S.rotationX:"shortRotationX"in S?S.shortRotationX+"_short":P.rotationX||0,P.rotationX,"rotationX",C),c.rotationY=ut("rotationY"in S?S.rotationY:"shortRotationY"in S?S.shortRotationY+"_short":P.rotationY||0,P.rotationY,"rotationY",C)),c.skewX=ut(S.skewX,P.skewX-P.skewY),(c.skewY=ut(S.skewY,P.skewY))&&(c.skewX+=c.skewY,c.rotation+=c.skewY)}for(Dt&&null!=S.force3D&&(P.force3D=S.force3D,f=!0),P.skewType=S.skewType||P.skewType||s.defaultSkewType,h=P.force3D||P.z||P.rotationX||P.rotationY||c.z||c.rotationX||c.rotationY||c.perspective,h||null==S.scale||(c.scaleZ=1);--k>-1;)w=Ct[k],O=c[w]-P[w],(O>T||-T>O||null!=S[w]||null!=N[w])&&(f=!0,o=new yt(P,w,P[w],O,o),w in C&&(o.e=C[w]),o.xs0=0,o.plugin=a,n._overwriteProps.push(o.n));return O=S.transformOrigin,P.svg&&(O||S.svgOrigin)&&(m=P.xOffset,y=P.yOffset,zt(t,st(O),c,S.svgOrigin,S.smoothOrigin),o=_t(P,"xOrigin",(x?P:c).xOrigin,c.xOrigin,o,A),o=_t(P,"yOrigin",(x?P:c).yOrigin,c.yOrigin,o,A),(m!==P.xOffset||y!==P.yOffset)&&(o=_t(P,"xOffset",x?m:P.xOffset,P.xOffset,o,A),o=_t(P,"yOffset",x?y:P.yOffset,P.yOffset,o,A)),O=St?null:"0px 0px"),(O||Dt&&h&&P.zOrigin)&&(At?(f=!0,w=Ot,O=(O||J(t,w,r,!1,"50% 50%"))+"",o=new yt(b,w,0,0,o,(-1),A),o.b=b[w],o.plugin=a,Dt?(d=P.zOrigin,O=O.split(" "),P.zOrigin=(O.length>2&&(0===d||"0px"!==O[2])?parseFloat(O[2]):d)||0,o.xs0=o.e=O[0]+" "+(O[1]||"50%")+" 0px",o=new yt(P,"zOrigin",0,0,o,(-1),o.n),o.b=d,o.xs0=o.e=P.zOrigin):o.xs0=o.e=O):st(O+"",P)),f&&(n._transformType=P.svg&&St||!h&&3!==this._transformType?2:3),u&&(l[i]=u),o},prefix:!0}),Tt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Tt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,o,s,a){e=this.format(e);var l,u,c,d,h,f,p,m,g,v,y,_,w,x,b,T,k=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],S=t.style;for(g=parseFloat(t.offsetWidth),v=parseFloat(t.offsetHeight),l=e.split(" "),u=0;u<k.length;u++)this.p.indexOf("border")&&(k[u]=Z(k[u])),h=d=J(t,k[u],r,!1,"0px"),-1!==h.indexOf(" ")&&(d=h.split(" "),h=d[0],d=d[1]),f=c=l[u],p=parseFloat(h),_=h.substr((p+"").length),w="="===f.charAt(1),w?(m=parseInt(f.charAt(0)+"1",10),f=f.substr(2),m*=parseFloat(f),y=f.substr((m+"").length-(0>m?1:0))||""):(m=parseFloat(f),y=f.substr((m+"").length)),""===y&&(y=n[i]||_),y!==_&&(x=K(t,"borderLeft",p,_),b=K(t,"borderTop",p,_),"%"===y?(h=x/g*100+"%",d=b/v*100+"%"):"em"===y?(T=K(t,"borderLeft",1,"em"),h=x/T+"em",d=b/T+"em"):(h=x+"px",d=b+"px"),w&&(f=parseFloat(h)+m+y,c=parseFloat(d)+m+y)),s=wt(S,k[u],h+" "+d,f+" "+c,!1,"0px",s);return s},prefix:!0,formatter:mt("0px 0px 0px 0px",!1,!0)}),Tt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,n,o,s){return wt(t.style,i,this.format(J(t,i,r,!1,"0px 0px")),this.format(e),!1,"0px",o)},prefix:!0,formatter:mt("0px 0px",!1,!0)}),Tt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,n,o,s){var a,l,u,c,d,h,f="background-position",p=r||Q(t,null),g=this.format((p?m?p.getPropertyValue(f+"-x")+" "+p.getPropertyValue(f+"-y"):p.getPropertyValue(f):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),v=this.format(e);if(-1!==g.indexOf("%")!=(-1!==v.indexOf("%"))&&v.split(",").length<2&&(h=J(t,"backgroundImage").replace(O,""),h&&"none"!==h)){for(a=g.split(" "),l=v.split(" "),q.setAttribute("src",h),u=2;--u>-1;)g=a[u],c=-1!==g.indexOf("%"),c!==(-1!==l[u].indexOf("%"))&&(d=0===u?t.offsetWidth-q.width:t.offsetHeight-q.height,a[u]=c?parseFloat(g)/100*d+"px":parseFloat(g)/d*100+"%");g=a.join(" ")}return this.parseComplex(t.style,g,v,o,s)},formatter:st}),Tt("backgroundSize",{defaultValue:"0 0",formatter:function(t){return t+="",st(-1===t.indexOf(" ")?t+" "+t:t)}}),Tt("perspective",{defaultValue:"0px",prefix:!0}),Tt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Tt("transformStyle",{prefix:!0}),Tt("backfaceVisibility",{prefix:!0}),Tt("userSelect",{prefix:!0}),Tt("margin",{parser:gt("marginTop,marginRight,marginBottom,marginLeft")}),Tt("padding",{parser:gt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Tt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,n,o,s){var a,l,u;return 9>m?(l=t.currentStyle,u=8>m?" ":",",a="rect("+l.clipTop+u+l.clipRight+u+l.clipBottom+u+l.clipLeft+")",e=this.format(e).split(",").join(u)):(a=this.format(J(t,this.p,r,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,a,e,o,s)}}),Tt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Tt("autoRound,strictUnits",{parser:function(t,e,i,n,r){return r}}),Tt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,n,o,s){var a=J(t,"borderTopWidth",r,!1,"0px"),l=this.format(e).split(" "),u=l[0].replace(b,"");return"px"!==u&&(a=parseFloat(a)/K(t,"borderTopWidth",1,u)+u),this.parseComplex(t.style,this.format(a+" "+J(t,"borderTopStyle",r,!1,"solid")+" "+J(t,"borderTopColor",r,!1,"#000")),l.join(" "),o,s)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(pt)||["#000"])[0]}}),Tt("borderWidth",{parser:gt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Tt("float,cssFloat,styleFloat",{parser:function(t,e,i,n,r,o){var s=t.style,a="cssFloat"in s?"cssFloat":"styleFloat";return new yt(s,a,0,0,r,(-1),i,(!1),0,s[a],e)}});var Wt=function(t){var e,i=this.t,n=i.filter||J(this.data,"filter")||"",r=this.s+this.c*t|0;100===r&&(-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(i.removeAttribute("filter"),e=!J(this.data,"filter")):(i.filter=n.replace(S,""),e=!0)),e||(this.xn1&&(i.filter=n=n||"alpha(opacity="+r+")"),-1===n.indexOf("pacity")?0===r&&this.xn1||(i.filter=n+" alpha(opacity="+r+")"):i.filter=n.replace(T,"opacity="+r))};Tt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,n,o,s){var a=parseFloat(J(t,"opacity",r,!1,"1")),l=t.style,u="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),u&&1===a&&"hidden"===J(t,"visibility",r)&&0!==e&&(a=0),X?o=new yt(l,"opacity",a,e-a,o):(o=new yt(l,"opacity",100*a,100*(e-a),o),o.xn1=u?1:0,l.zoom=1,o.type=2,o.b="alpha(opacity="+o.s+")",o.e="alpha(opacity="+(o.s+o.c)+")",o.data=t,o.plugin=s,o.setRatio=Wt),u&&(o=new yt(l,"visibility",0,0,o,(-1),null,(!1),0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit"),o.xs0="inherit",n._overwriteProps.push(o.n),n._overwriteProps.push(i)),o}});var Xt=function(t,e){e&&(t.removeProperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeProperty(e.replace(A,"-$1").toLowerCase())):t.removeAttribute(e))},Ut=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:Xt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Tt("className",{parser:function(t,e,n,o,s,a,l){var u,c,d,h,f,p=t.getAttribute("class")||"",m=t.style.cssText;if(s=o._classNamePT=new yt(t,n,0,0,s,2),s.setRatio=Ut,s.pr=-11,i=!0,s.b=p,c=et(t,r),d=t._gsClassPT){for(h={},f=d.data;f;)h[f.p]=1,f=f._next;d.setRatio(1)}return t._gsClassPT=s,s.e="="!==e.charAt(1)?e:p.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",s.e),u=it(t,c,et(t),l,h),t.setAttribute("class",p),s.data=u.firstMPT,t.style.cssText=m,s=s.xfirst=o.parse(t,u.difs,s,a)}});var Yt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,n,r,o,s=this.t.style,a=l.transform.parse;if("all"===this.e)s.cssText="",r=!0;else for(e=this.e.split(" ").join("").split(","),n=e.length;--n>-1;)i=e[n],l[i]&&(l[i].parse===a?r=!0:i="transformOrigin"===i?Ot:l[i].p),Xt(s,i);r&&(Xt(s,At),o=this.t._gsTransform,o&&(o.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Tt("clearProps",{parser:function(t,e,n,r,o){return o=new yt(t,n,0,0,o,2),o.setRatio=Yt,o.e=e,o.pr=-10,o.data=r._tween,i=!0,o}}),u="bezier,throwProps,physicsProps,physics2D".split(","),xt=u.length;xt--;)kt(u[xt]);u=s.prototype,u._firstPT=u._lastParsedTransform=u._transform=null,u._onInitTween=function(t,e,a,u){if(!t.nodeType)return!1;this._target=g=t,this._tween=a,this._vars=e,v=u,c=e.autoRound,i=!1,n=e.suffixMap||s.suffixMap,r=Q(t,""),o=this._overwriteProps;var f,m,y,_,w,x,b,T,S,C=t.style;if(d&&""===C.zIndex&&(f=J(t,"zIndex",r),("auto"===f||""===f)&&this._addLazySet(C,"zIndex",0)),"string"==typeof e&&(_=C.cssText,f=et(t,r),C.cssText=_+";"+e,f=it(t,f,et(t)).difs,!X&&k.test(e)&&(f.opacity=parseFloat(RegExp.$1)),e=f,C.cssText=_),e.className?this._firstPT=m=l.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=m=this.parse(t,e,null),this._transformType){for(S=3===this._transformType,At?h&&(d=!0,""===C.zIndex&&(b=J(t,"zIndex",r),("auto"===b||""===b)&&this._addLazySet(C,"zIndex",0)),p&&this._addLazySet(C,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(S?"visible":"hidden"))):C.zoom=1,y=m;y&&y._next;)y=y._next;T=new yt(t,"transform",0,0,null,2),this._linkCSSP(T,null,y),T.setRatio=At?Bt:qt,T.data=this._transform||Ht(t,r,!0),T.tween=a,T.pr=-1,o.pop()}if(i){for(;m;){for(x=m._next,y=_;y&&y.pr>m.pr;)y=y._next;(m._prev=y?y._prev:w)?m._prev._next=m:_=m,(m._next=y)?y._prev=m:w=m,m=x}this._firstPT=_}return!0},u.parse=function(t,e,i,o){var s,a,u,d,h,f,p,m,y,_,w=t.style;for(s in e)f=e[s],"function"==typeof f&&(f=f(v,g)),a=l[s],a?i=a.parse(t,f,s,this,i,o,e):(h=J(t,s,r)+"",y="string"==typeof f,"color"===s||"fill"===s||"stroke"===s||-1!==s.indexOf("Color")||y&&C.test(f)?(y||(f=ht(f),f=(f.length>3?"rgba(":"rgb(")+f.join(",")+")"),i=wt(w,s,h,f,!0,"transparent",i,0,o)):y&&M.test(f)?i=wt(w,s,h,f,!0,null,i,0,o):(u=parseFloat(h),p=u||0===u?h.substr((u+"").length):"",(""===h||"auto"===h)&&("width"===s||"height"===s?(u=ot(t,s,r),p="px"):"left"===s||"top"===s?(u=tt(t,s,r),p="px"):(u="opacity"!==s?0:1,p="")),_=y&&"="===f.charAt(1),_?(d=parseInt(f.charAt(0)+"1",10),f=f.substr(2),d*=parseFloat(f),m=f.replace(b,"")):(d=parseFloat(f),m=y?f.replace(b,""):""),""===m&&(m=s in n?n[s]:p),f=d||0===d?(_?d+u:d)+m:e[s],p!==m&&""!==m&&(d||0===d)&&u&&(u=K(t,s,u,p),"%"===m?(u/=K(t,s,100,"%")/100,e.strictUnits!==!0&&(h=u+"%")):"em"===m||"rem"===m||"vw"===m||"vh"===m?u/=K(t,s,1,m):"px"!==m&&(d=K(t,s,d,m),m="px"),_&&(d||0===d)&&(f=d+u+m)),_&&(d+=u),!u&&0!==u||!d&&0!==d?void 0!==w[s]&&(f||f+""!="NaN"&&null!=f)?(i=new yt(w,s,d||u||0,0,i,(-1),s,(!1),0,h,f),i.xs0="none"!==f||"display"!==s&&-1===s.indexOf("Style")?f:h):Y("invalid "+s+" tween value: "+e[s]):(i=new yt(w,s,u,d-u,i,0,s,c!==!1&&("px"===m||"zIndex"===s),0,h,f),i.xs0=m))),o&&i&&!i.plugin&&(i.plugin=o);return i},u.setRatio=function(t){var e,i,n,r=this._firstPT,o=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;r;){if(e=r.c*t+r.s,r.r?e=Math.round(e):o>e&&e>-o&&(e=0),r.type)if(1===r.type)if(n=r.l,2===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}else-1===r.type?r.t[r.p]=r.xs0:r.setRatio&&r.setRatio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setRatio(t),r=r._next;else for(;r;){if(2!==r.type)if(r.r&&-1!==r.type)if(e=Math.round(r.s+r.c),r.type){if(1===r.type){for(n=r.l,i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}}else r.t[r.p]=e+r.xs0;else r.t[r.p]=r.e;else r.setRatio(t);r=r._next}},u._enableTransforms=function(t){this._transform=this._transform||Ht(this._target,r,!0),this._transformType=this._transform.svg&&St||!t&&3!==this._transformType?2:3};var Vt=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};u._addLazySet=function(t,e,i){var n=this._firstPT=new yt(t,e,0,0,this._firstPT,2);n.e=i,n.setRatio=Vt,n.data=this},u._linkCSSP=function(t,e,i,n){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,n=!0),i?i._next=t:n||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},u._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&t[e.p]===Math.round&&(e.r=1),e=e._next},u._kill=function(e){var i,n,r,o=e;if(e.autoAlpha||e.alpha){o={};for(n in e)o[n]=e[n];o.opacity=1,o.autoAlpha&&(o.visibility=1)}for(e.className&&(i=this._classNamePT)&&(r=i.xfirst,r&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==n&&i.plugin._kill&&(i.plugin._kill(e),n=i.plugin),i=i._next;return t.prototype._kill.call(this,o)};var Gt=function(t,e,i){var n,r,o,s;if(t.slice)for(r=t.length;--r>-1;)Gt(t[r],e,i);else for(n=t.childNodes,r=n.length;--r>-1;)o=n[r],s=o.type,o.style&&(e.push(et(o)),i&&i.push(o)),1!==s&&9!==s&&11!==s||!o.childNodes.length||Gt(o,e,i)};return s.cascadeTo=function(t,i,n){var r,o,s,a,l=e.to(t,i,n),u=[l],c=[],d=[],h=[],f=e._internals.reservedProps;for(t=l._targets||l.target,Gt(t,c,h),l.render(i,!0,!0),Gt(t,d),l.render(0,!0,!0),l._enabled(!0),r=h.length;--r>-1;)if(o=it(h[r],c[r],d[r]),o.firstMPT){o=o.difs;for(s in n)f[s]&&(o[s]=n[s]);a={};for(s in o)a[s]=c[r][s];u.push(e.fromTo(h[r],i,a,o))}return u},t.activate([s]),s},!0),function(){var t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=function(t){for(;t;)t.f||t.blob||(t.m=Math.round),t=t._next},i=t.prototype;i._onInitAllProps=function(){for(var t,i,n,r=this._tween,o=r.vars.roundProps.join?r.vars.roundProps:r.vars.roundProps.split(","),s=o.length,a={},l=r._propLookup.roundProps;--s>-1;)a[o[s]]=Math.round;for(s=o.length;--s>-1;)for(t=o[s],i=r._firstPT;i;)n=i._next,i.pg?i.t._mod(a):i.n===t&&(2===i.f&&i.t?e(i.t._firstPT):(this._add(i.t,t,i.s,i.c),n&&(n._prev=i._prev),i._prev?i._prev._next=n:r._firstPT===i&&(r._firstPT=n),i._next=i._prev=null,r._propLookup[t]=l)),i=n;return!1},i._add=function(t,e,i,n){this._addTween(t,e,i,i+n,e,Math.round),this._overwriteProps.push(e)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.0",init:function(t,e,i,n){var r,o;if("function"!=typeof t.setAttribute)return!1;for(r in e)o=e[r],"function"==typeof o&&(o=o(n,t)),this._addTween(t,"setAttribute",t.getAttribute(r)+"",o+"",r,!1,r),this._overwriteProps.push(r);return!0}})}(),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.0",API:2,init:function(t,e,i,n){"object"!=typeof e&&(e={rotation:e}),this.finals={};var r,o,s,a,l,u,c=e.useRadians===!0?2*Math.PI:360,d=1e-6;for(r in e)"useRadians"!==r&&(a=e[r],"function"==typeof a&&(a=a(n,t)),u=(a+"").split("_"),o=u[0],s=parseFloat("function"!=typeof t[r]?t[r]:t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]()),a=this.finals[r]="string"==typeof o&&"="===o.charAt(1)?s+parseInt(o.charAt(0)+"1",10)*Number(o.substr(2)):Number(o)||0,l=a-s,u.length&&(o=u.join("_"),-1!==o.indexOf("short")&&(l%=c,l!==l%(c/2)&&(l=0>l?l+c:l-c)),-1!==o.indexOf("_cw")&&0>l?l=(l+9999999999*c)%c-(l/c|0)*c:-1!==o.indexOf("ccw")&&l>0&&(l=(l-9999999999*c)%c-(l/c|0)*c)),(l>d||-d>l)&&(this._addTween(t,r,s,s+l,r),this._overwriteProps.push(r)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,n,r=_gsScope.GreenSockGlobals||_gsScope,o=r.com.greensock,s=2*Math.PI,a=Math.PI/2,l=o._class,u=function(e,i){var n=l("easing."+e,function(){},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,n},c=t.register||function(){},d=function(t,e,i,n,r){var o=l("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new n},!0);return c(o,t),o},h=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},f=function(e,i){var n=l("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,r.config=function(t){return new n(t)},n},p=d("Back",f("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),f("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),f("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=l("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),g=m.prototype=new t;return g.constructor=m,g.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},m.ease=new m(.7,.7),g.config=m.config=function(t,e,i){return new m(t,e,i)},e=l("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),g=e.prototype=new t,g.constructor=e,g.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},g.config=e.config=function(t){return new e(t)},i=l("easing.RoughEase",function(e){e=e||{};for(var i,n,r,o,s,a,l=e.taper||"none",u=[],c=0,d=0|(e.points||20),f=d,p=e.randomize!==!1,m=e.clamp===!0,g=e.template instanceof t?e.template:null,v="number"==typeof e.strength?.4*e.strength:.4;--f>-1;)i=p?Math.random():1/d*f,n=g?g.getRatio(i):i,"none"===l?r=v:"out"===l?(o=1-i,r=o*o*v):"in"===l?r=i*i*v:.5>i?(o=2*i,r=o*o*.5*v):(o=2*(1-i),r=o*o*.5*v),p?n+=Math.random()*r-.5*r:f%2?n+=.5*r:n-=.5*r,m&&(n>1?n=1:0>n&&(n=0)),u[c++]={x:i,y:n};for(u.sort(function(t,e){return t.x-e.x}),a=new h(1,1,null),f=d;--f>-1;)s=u[f],a=new h(s.x,s.y,a);this._prev=new h(0,0,0!==a.t?a:a.next)},!0),g=i.prototype=new t,g.constructor=i,g.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},g.config=function(t){return new i(t)},i.ease=new i,d("Bounce",u("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),u("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),u("BounceInOut",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),d("Circ",u("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),u("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),u("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),n=function(e,i,n){var r=l("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||n)/(1>t?t:1),this._p3=this._p2/s*(Math.asin(1/this._p1)||0),this._p2=s/this._p2},!0),o=r.prototype=new t;return o.constructor=r,o.getRatio=i,o.config=function(t,e){return new r(t,e)},r},d("Elastic",n("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),n("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2))},.3),n("ElasticInOut",function(t){return(t*=2)<1?-.5*(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),d("Expo",u("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),u("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),u("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),d("Sine",u("SineOut",function(t){return Math.sin(t*a)}),u("SineIn",function(t){return-Math.cos(t*a)+1}),u("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),l("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),c(r.SlowMo,"SlowMo","ease,"),c(i,"RoughEase","ease,"),c(e,"SteppedEase","ease,"),p},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i={},n=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!n.TweenLite){var r,o,s,a,l,u=function(t){var e,i=t.split("."),r=n;for(e=0;e<i.length;e++)r[i[e]]=r=r[i[e]]||{};return r},c=u("com.greensock"),d=1e-10,h=function(t){
var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},f=function(){},p=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),m={},g=function(r,o,s,a){this.sc=m[r]?m[r].sc:[],m[r]=this,this.gsClass=null,this.func=s;var l=[];this.check=function(c){for(var d,h,f,p,v,y=o.length,_=y;--y>-1;)(d=m[o[y]]||new g(o[y],[])).gsClass?(l[y]=d.gsClass,_--):c&&d.sc.push(this);if(0===_&&s){if(h=("com.greensock."+r).split("."),f=h.pop(),p=u(h.join("."))[f]=this.gsClass=s.apply(s,l),a)if(n[f]=i[f]=p,v="undefined"!=typeof module&&module.exports,!v&&"function"==typeof define&&define.amd)define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+r.split(".").pop(),[],function(){return p});else if(v)if(r===e){module.exports=i[e]=p;for(y in i)p[y]=i[y]}else i[e]&&(i[e][f]=p);for(y=0;y<this.sc.length;y++)this.sc[y].check()}},this.check(!0)},v=t._gsDefine=function(t,e,i,n){return new g(t,e,i,n)},y=c._class=function(t,e,i){return e=e||function(){},v(t,[],function(){return e},i),e};v.globals=n;var _=[0,0,1,1],w=y("easing.Ease",function(t,e,i,n){this._func=t,this._type=i||0,this._power=n||0,this._params=e?_.concat(e):_},!0),x=w.map={},b=w.register=function(t,e,i,n){for(var r,o,s,a,l=e.split(","),u=l.length,d=(i||"easeIn,easeOut,easeInOut").split(",");--u>-1;)for(o=l[u],r=n?y("easing."+o,null,!0):c.easing[o]||{},s=d.length;--s>-1;)a=d[s],x[o+"."+a]=x[a+o]=r[a]=t.getRatio?t:t[a]||new t};for(s=w.prototype,s._calcEnd=!1,s.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:.5>t?n/2:1-n/2},r=["Linear","Quad","Cubic","Quart","Quint,Strong"],o=r.length;--o>-1;)s=r[o]+",Power"+o,b(new w(null,null,1,o),s,"easeOut",!0),b(new w(null,null,2,o),s,"easeIn"+(0===o?",easeNone":"")),b(new w(null,null,3,o),s,"easeInOut");x.linear=c.easing.Linear.easeIn,x.swing=c.easing.Quad.easeInOut;var T=y("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});s=T.prototype,s.addEventListener=function(t,e,i,n,r){r=r||0;var o,s,u=this._listeners[t],c=0;for(this!==a||l||a.wake(),null==u&&(this._listeners[t]=u=[]),s=u.length;--s>-1;)o=u[s],o.c===e&&o.s===i?u.splice(s,1):0===c&&o.pr<r&&(c=s+1);u.splice(c,0,{c:e,s:i,up:n,pr:r})},s.removeEventListener=function(t,e){var i,n=this._listeners[t];if(n)for(i=n.length;--i>-1;)if(n[i].c===e)return void n.splice(i,1)},s.dispatchEvent=function(t){var e,i,n,r=this._listeners[t];if(r)for(e=r.length,e>1&&(r=r.slice(0)),i=this._eventTarget;--e>-1;)n=r[e],n&&(n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i))};var k=t.requestAnimationFrame,S=t.cancelAnimationFrame,C=Date.now||function(){return(new Date).getTime()},A=C();for(r=["ms","moz","webkit","o"],o=r.length;--o>-1&&!k;)k=t[r[o]+"RequestAnimationFrame"],S=t[r[o]+"CancelAnimationFrame"]||t[r[o]+"CancelRequestAnimationFrame"];y("Ticker",function(t,e){var i,n,r,o,s,u=this,c=C(),h=!(e===!1||!k)&&"auto",p=500,m=33,g="tick",v=function(t){var e,a,l=C()-A;l>p&&(c+=l-m),A+=l,u.time=(A-c)/1e3,e=u.time-s,(!i||e>0||t===!0)&&(u.frame++,s+=e+(e>=o?.004:o-e),a=!0),t!==!0&&(r=n(v)),a&&u.dispatchEvent(g)};T.call(u),u.time=u.frame=0,u.tick=function(){v(!0)},u.lagSmoothing=function(t,e){p=t||1/d,m=Math.min(e,p,0)},u.sleep=function(){null!=r&&(h&&S?S(r):clearTimeout(r),n=f,r=null,u===a&&(l=!1))},u.wake=function(t){null!==r?u.sleep():t?c+=-A+(A=C()):u.frame>10&&(A=C()-p+5),n=0===i?f:h&&k?k:function(t){return setTimeout(t,1e3*(s-u.time)+1|0)},u===a&&(l=!0),v(2)},u.fps=function(t){return arguments.length?(i=t,o=1/(i||60),s=this.time+o,void u.wake()):i},u.useRAF=function(t){return arguments.length?(u.sleep(),h=t,void u.fps(i)):h},u.fps(t),setTimeout(function(){"auto"===h&&u.frame<5&&"hidden"!==document.visibilityState&&u.useRAF(!1)},1500)}),s=c.Ticker.prototype=new c.events.EventDispatcher,s.constructor=c.Ticker;var P=y("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,Y){l||a.wake();var i=this.vars.useFrames?U:Y;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=P.ticker=new c.Ticker,s=P.prototype,s._dirty=s._gc=s._initted=s._paused=!1,s._totalTime=s._time=0,s._rawPrevTime=-1,s._next=s._last=s._onUpdate=s._timeline=s.timeline=null,s._paused=!1;var O=function(){l&&C()-A>2e3&&a.wake(),setTimeout(O,2e3)};O(),s.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},s.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},s.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},s.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},s.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},s.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},s.render=function(t,e,i){},s.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},s.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&t<i+this.totalDuration()/this._timeScale},s._enabled=function(t,e){return l||a.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},s._kill=function(t,e){return this._enabled(!1,!1)},s.kill=function(t,e){return this._kill(t,e),this},s._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},s._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},s._callback=function(t){var e=this.vars,i=e[t],n=e[t+"Params"],r=e[t+"Scope"]||e.callbackScope||this,o=n?n.length:0;switch(o){case 0:i.call(r);break;case 1:i.call(r,n[0]);break;case 2:i.call(r,n[0],n[1]);break;default:i.apply(r,n)}},s.eventCallback=function(t,e,i,n){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=p(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},s.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},s.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},s.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},s.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},s.totalTime=function(t,e,i){if(l||a.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,r=this._timeline;if(t>n&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?n-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(F.length&&G(),this.render(t,e,!1),F.length&&G())}return this},s.progress=s.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},s.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},s.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},s.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||d,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},s.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},s.paused=function(t){if(!arguments.length)return this._paused;var e,i,n=this._timeline;return t!=this._paused&&n&&(l||t||a.wake(),e=n.rawTime(),i=e-this._pauseTime,!t&&n.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=n.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var D=y("core.SimpleTimeline",function(t){P.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});s=D.prototype=new P,s.constructor=D,s.kill()._gc=!1,s._first=s._last=s._recent=null,s._sortChildren=!1,s.add=s.insert=function(t,e,i,n){var r,o;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(o=t._startTime;r&&r._startTime>o;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},s._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},s.render=function(t,e,i){var n,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)n=r._next,(r._active||t>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=n},s.rawTime=function(){return l||a.wake(),this._totalTime};var $=y("TweenLite",function(e,i,n){if(P.call(this,i,n),this.render=$.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:$.selector(e)||e;var r,o,s,a=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?X[$.defaultOverwrite]:"number"==typeof l?l>>0:X[l],(a||e instanceof Array||e.push&&p(e))&&"number"!=typeof e[0])for(this._targets=s=h(e),this._propLookup=[],this._siblings=[],r=0;r<s.length;r++)o=s[r],o?"string"!=typeof o?o.length&&o!==t&&o[0]&&(o[0]===t||o[0].nodeType&&o[0].style&&!o.nodeType)?(s.splice(r--,1),this._targets=s=s.concat(h(o))):(this._siblings[r]=Z(o,this,!1),1===l&&this._siblings[r].length>1&&J(o,this,null,1,this._siblings[r])):(o=s[r--]=$.selector(o),"string"==typeof o&&s.splice(r+1,1)):s.splice(r--,1);else this._propLookup={},this._siblings=Z(e,this,!1),1===l&&this._siblings.length>1&&J(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-d,this.render(Math.min(0,-this._delay)))},!0),E=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},R=function(t,e){var i,n={};for(i in t)W[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!H[i]||H[i]&&H[i]._autoCSS)||(n[i]=t[i],delete t[i]);t.css=n};s=$.prototype=new P,s.constructor=$,s.kill()._gc=!1,s.ratio=0,s._firstPT=s._targets=s._overwrittenProps=s._startAt=null,s._notifyPluginsOfEnabled=s._lazy=!1,$.version="1.19.0",$.defaultEase=s._ease=new w(null,null,1,1),$.defaultOverwrite="auto",$.ticker=a,$.autoSleep=120,$.lagSmoothing=function(t,e){a.lagSmoothing(t,e)},$.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?($.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var F=[],M={},z=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,j=function(t){for(var e,i=this._firstPT,n=1e-6;i;)e=i.blob?t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m(e,this._target||i.t):n>e&&e>-n&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},N=function(t,e,i,n){var r,o,s,a,l,u,c,d=[t,e],h=0,f="",p=0;for(d.start=t,i&&(i(d),t=d[0],e=d[1]),d.length=0,r=t.match(z)||[],o=e.match(z)||[],n&&(n._next=null,n.blob=1,d._firstPT=d._applyPT=n),l=o.length,a=0;l>a;a++)c=o[a],u=e.substr(h,e.indexOf(c,h)-h),f+=u||!a?u:",",h+=u.length,p?p=(p+1)%5:"rgba("===u.substr(-5)&&(p=1),c===r[a]||r.length<=a?f+=c:(f&&(d.push(f),f=""),s=parseFloat(r[a]),d.push(s),d._firstPT={_next:d._firstPT,t:d,p:d.length-1,s:s,c:("="===c.charAt(1)?parseInt(c.charAt(0)+"1",10)*parseFloat(c.substr(2)):parseFloat(c)-s)||0,f:0,m:p&&4>p?Math.round:0}),h+=c.length;return f+=e.substr(h),f&&d.push(f),d.setRatio=j,d},L=function(t,e,i,n,r,o,s,a,l){"function"==typeof n&&(n=n(l||0,t));var u,c,d="get"===i?t[e]:i,h=typeof t[e],f="string"==typeof n&&"="===n.charAt(1),p={t:t,p:e,s:d,f:"function"===h,pg:0,n:r||e,m:o?"function"==typeof o?o:Math.round:0,pr:0,c:f?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-d||0};return"number"!==h&&("function"===h&&"get"===i&&(c=e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),p.s=d=s?t[c](s):t[c]()),"string"==typeof d&&(s||isNaN(d))?(p.fp=s,u=N(d,n,a||$.defaultStringFilter,p),p={t:u,p:"setRatio",s:0,c:1,f:2,pg:0,n:r||e,pr:0,m:0}):f||(p.s=parseFloat(d),p.c=parseFloat(n)-p.s||0)),p.c?((p._next=this._firstPT)&&(p._next._prev=p),this._firstPT=p,p):void 0},I=$._internals={isArray:p,isSelector:E,lazyTweens:F,blobDif:N},H=$._plugins={},q=I.tweenLookup={},B=0,W=I.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},X={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},U=P._rootFramesTimeline=new D,Y=P._rootTimeline=new D,V=30,G=I.lazyRender=function(){var t,e=F.length;for(M={};--e>-1;)t=F[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);F.length=0};Y._startTime=a.time,U._startTime=a.frame,Y._active=U._active=!0,setTimeout(G,1),P._updateRoot=$.render=function(){var t,e,i;if(F.length&&G(),Y.render((a.time-Y._startTime)*Y._timeScale,!1,!1),U.render((a.frame-U._startTime)*U._timeScale,!1,!1),F.length&&G(),a.frame>=V){V=a.frame+(parseInt($.autoSleep,10)||120);for(i in q){for(e=q[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete q[i]}if(i=Y._first,(!i||i._paused)&&$.autoSleep&&!U._first&&1===a._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||a.sleep()}}},a.addEventListener("tick",P._updateRoot);var Z=function(t,e,i){var n,r,o=t._gsTweenID;if(q[o||(t._gsTweenID=o="t"+B++)]||(q[o]={target:t,tweens:[]}),e&&(n=q[o].tweens,n[r=n.length]=e,i))for(;--r>-1;)n[r]===e&&n.splice(r,1);return q[o].tweens},Q=function(t,e,i,n){var r,o,s=t.vars.onOverwrite;return s&&(r=s(t,e,i,n)),s=$.onOverwrite,s&&(o=s(t,e,i,n)),r!==!1&&o!==!1},J=function(t,e,i,n,r){var o,s,a,l;if(1===n||n>=4){for(l=r.length,o=0;l>o;o++)if((a=r[o])!==e)a._gc||a._kill(null,t,e)&&(s=!0);else if(5===n)break;return s}var u,c=e._startTime+d,h=[],f=0,p=0===e._duration;for(o=r.length;--o>-1;)(a=r[o])===e||a._gc||a._paused||(a._timeline!==e._timeline?(u=u||K(e,0,p),0===K(a,u,p)&&(h[f++]=a)):a._startTime<=c&&a._startTime+a.totalDuration()/a._timeScale>c&&((p||!a._initted)&&c-a._startTime<=2e-10||(h[f++]=a)));for(o=f;--o>-1;)if(a=h[o],2===n&&a._kill(i,t,e)&&(s=!0),2!==n||!a._firstPT&&a._initted){if(2!==n&&!Q(a,e))continue;a._enabled(!1,!1)&&(s=!0)}return s},K=function(t,e,i){for(var n=t._timeline,r=n._timeScale,o=t._startTime;n._timeline;){if(o+=n._startTime,r*=n._timeScale,n._paused)return-100;n=n._timeline}return o/=r,o>e?o-e:i&&o===e||!t._initted&&2*d>o-e?d:(o+=t.totalDuration()/t._timeScale/r)>e+d?0:o-e-d};s._init=function(){var t,e,i,n,r,o,s=this.vars,a=this._overwrittenProps,l=this._duration,u=!!s.immediateRender,c=s.ease;if(s.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={};for(n in s.startAt)r[n]=s.startAt[n];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=u&&s.lazy!==!1,r.startAt=r.delay=null,this._startAt=$.to(this.target,0,r),u)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(s.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(u=!1),i={};for(n in s)W[n]&&"autoCSS"!==n||(i[n]=s[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=u&&s.lazy!==!1,i.immediateRender=u,this._startAt=$.to(this.target,0,i),u){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=c=c?c instanceof w?c:"function"==typeof c?new w(c,s.easeParams):x[c]||$.defaultEase:$.defaultEase,s.easeParams instanceof Array&&c.config&&(this._ease=c.config.apply(c,s.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,t=0;o>t;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],a?a[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,a,0);if(e&&$._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),s.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=s.onUpdate,this._initted=!0},s._initProps=function(e,i,n,r,o){var s,a,l,u,c,d;if(null==e)return!1;M[e._gsTweenID]&&G(),this.vars.css||e.style&&e!==t&&e.nodeType&&H.css&&this.vars.autoCSS!==!1&&R(this.vars,e);for(s in this.vars)if(d=this.vars[s],W[s])d&&(d instanceof Array||d.push&&p(d))&&-1!==d.join("").indexOf("{self}")&&(this.vars[s]=d=this._swapSelfInParams(d,this));else if(H[s]&&(u=new H[s])._onInitTween(e,this.vars[s],this,o)){for(this._firstPT=c={_next:this._firstPT,t:u,p:"setRatio",s:0,c:1,f:1,n:s,pg:1,pr:u._priority,m:0},a=u._overwriteProps.length;--a>-1;)i[u._overwriteProps[a]]=this._firstPT;(u._priority||u._onInitAllProps)&&(l=!0),(u._onDisable||u._onEnable)&&(this._notifyPluginsOfEnabled=!0),c._next&&(c._next._prev=c)}else i[s]=L.call(this,e,s,"get",d,s,0,null,this.vars.stringFilter,o);return r&&this._kill(r,e)?this._initProps(e,i,n,r,o):this._overwrite>1&&this._firstPT&&n.length>1&&J(e,this,i,this._overwrite,n)?(this._kill(i,e),this._initProps(e,i,n,r,o)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(M[e._gsTweenID]=!0),l)},s.render=function(t,e,i){var n,r,o,s,a=this._time,l=this._duration,u=this._rawPrevTime;if(t>=l-1e-7)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(n=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0>u||0>=t&&t>=-1e-7||u===d&&"isPause"!==this.data)&&u!==t&&(i=!0,u>d&&(r="onReverseComplete")),this._rawPrevTime=s=!e||t||u===t?t:d);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==a||0===l&&u>0)&&(r="onReverseComplete",n=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(u>=0&&(u!==d||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=s=!e||t||u===t?t:d)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var c=t/l,h=this._easeType,f=this._easePower;(1===h||3===h&&c>=.5)&&(c=1-c),3===h&&(c*=2),1===f?c*=c:2===f?c*=c*c:3===f?c*=c*c*c:4===f&&(c*=c*c*c*c),1===h?this.ratio=1-c:2===h?this.ratio=c:.5>t/l?this.ratio=c/2:this.ratio=1-c/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==a||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=a,this._rawPrevTime=u,F.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/l):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==a&&t>=0&&(this._active=!0),0===a&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this._callback("onStart"))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(0>t&&this._startAt&&t!==-1e-4&&this._startAt.render(t,e,i),e||(this._time!==a||n||i)&&this._callback("onUpdate")),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&t!==-1e-4&&this._startAt.render(t,e,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===l&&this._rawPrevTime===d&&s!==d&&(this._rawPrevTime=0))}},s._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:$.selector(e)||e;var n,r,o,s,a,l,u,c,d,h=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((p(e)||E(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n],i)&&(l=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){a=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){if(u=t||a,c=t!==r&&"all"!==r&&t!==a&&("object"!=typeof t||!t._tempKill),i&&($.onOverwrite||this.vars.onOverwrite)){for(o in u)a[o]&&(d||(d=[]),d.push(o));if((d||!t)&&!Q(this,i,e,d))return!1}for(o in u)(s=a[o])&&(h&&(s.f?s.t[s.p](s.s):s.t[s.p]=s.s,l=!0),s.pg&&s.t._kill(u)&&(l=!0),s.pg&&0!==s.t._overwriteProps.length||(s._prev?s._prev._next=s._next:s===this._firstPT&&(this._firstPT=s._next),s._next&&(s._next._prev=s._prev),s._next=s._prev=null),delete a[o]),c&&(r[o]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},s.invalidate=function(){return this._notifyPluginsOfEnabled&&$._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],P.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-d,this.render(Math.min(0,-this._delay))),this},s._enabled=function(t,e){if(l||a.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;--i>-1;)this._siblings[i]=Z(n[i],this,!0);else this._siblings=Z(this.target,this,!0)}return P.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&$._onPluginEvent(t?"_onEnable":"_onDisable",this)},$.to=function(t,e,i){return new $(t,e,i)},$.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new $(t,e,i)},$.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new $(t,e,n)},$.delayedCall=function(t,e,i,n,r){return new $(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},$.set=function(t,e){return new $(t,0,e)},$.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:$.selector(t)||t;var i,n,r,o;if((p(t)||E(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];--i>-1;)n=n.concat($.getTweensOf(t[i],e));for(i=n.length;--i>-1;)for(o=n[i],r=i;--r>-1;)o===n[r]&&n.splice(i,1)}else for(n=Z(t).concat(),i=n.length;--i>-1;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n},$.killTweensOf=$.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var n=$.getTweensOf(t,e),r=n.length;--r>-1;)n[r]._kill(i,t)};var tt=y("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=tt.prototype},!0);if(s=tt.prototype,tt.version="1.19.0",tt.API=2,s._firstPT=null,s._addTween=L,s.setRatio=j,s._kill=function(t){var e,i=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},s._mod=s._roundProps=function(t){for(var e,i=this._firstPT;i;)e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")],e&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},$._onPluginEvent=function(t,e){var i,n,r,o,s,a=e._firstPT;if("_onInitAllProps"===t){for(;a;){for(s=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:o)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:o=a,a=s}a=e._firstPT=r}for(;a;)a.pg&&"function"==typeof a.t[t]&&a.t[t]()&&(i=!0),a=a._next;return i},tt.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===tt.API&&(H[(new t[e])._propName]=t[e]);return!0},v.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,r=t.overwriteProps,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},s=y("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){tt.call(this,i,n),this._overwriteProps=r||[]},t.global===!0),a=s.prototype=new tt(i);a.constructor=s,s.API=t.API;for(e in o)"function"==typeof t[e]&&(a[o[e]]=t[e]);return s.version=t.version,tt.activate([s]),s},r=t._gsQueue){for(o=0;o<r.length;o++)r[o]();for(s in m)m[s].func||t.console.log("GSAP encountered missing dependency: "+s)}l=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Barba",[],e):"object"==typeof exports?exports.Barba=e():t.Barba=e()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="http://localhost:8080/dist",e(0)}([function(t,e,i){"function"!=typeof Promise&&(window.Promise=i(1));var n={version:"1.0.0",BaseTransition:i(4),BaseView:i(6),BaseCache:i(8),Dispatcher:i(7),HistoryManager:i(9),Pjax:i(10),Prefetch:i(13),Utils:i(5)};t.exports=n},function(t,e,i){(function(e){!function(i){function n(){}function r(t,e){return function(){t.apply(e,arguments)}}function o(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(t,this)}function s(t,e){for(;3===t._state;)t=t._value;return 0===t._state?void t._deferreds.push(e):(t._handled=!0,void f(function(){var t=1===n._state?e.onFulfilled:e.onRejected;if(null===t)return void(1===n._state?a:l)(e.promise,n._value);var i;try{i=t(n._value)}catch(n){return void l(e.promise,n)}a(e.promise,i)}))}function a(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var i=e.then;if(e instanceof o)return t._state=3,t._value=e,void u(t);if("function"==typeof i)return void d(r(i,e),t)}t._state=1,t._value=e,u(t)}catch(e){l(t,e)}}function l(t,e){t._state=2,t._value=e,u(t)}function u(t){2===t._state&&0===t._deferreds.length&&f(function(){t._handled||p(t._value)});for(var e=0,i=t._deferreds.length;e<i;e++)s(t,t._deferreds[e]);t._deferreds=null}function c(t,e,i){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=i}function d(t,e){var i=!1;try{t(function(t){i||(i=!0,a(e,t))},function(t){i||(i=!0,l(e,t))})}catch(t){if(i)return;i=!0,l(e,t)}}var h=setTimeout,f="function"==typeof e&&e||function(t){h(t,0)},p=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};o.prototype["catch"]=function(t){return this.then(null,t)},o.prototype.then=function(t,e){var i=new this.constructor(n);return s(this,new c(t,e,i)),i},o.all=function(t){var e=Array.prototype.slice.call(t);return new o(function(t,i){function n(t,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,function(e){n(t,e)},i)}e[t]=o,0===--r&&a(e)}catch(a){i(a)}}if(0===e.length)return t([]);for(var r=e.length,o=0;o<e.length;o++)n(o,e[o])})},o.resolve=function(t){return t&&"object"==typeof t&&t.constructor===o?t:new o(function(e){e(t)})},o.reject=function(t){return new o(function(e,i){i(t)})},o.race=function(t){return new o(function(e,i){for(var n=0,r=t.length;n<r;n++)t[n].then(e,i)})},o._setImmediateFn=function(t){f=t},o._setUnhandledRejectionFn=function(t){p=t},"undefined"!=typeof t&&t.exports?t.exports=o:i.Promise||(i.Promise=o)}(this)}).call(e,i(2).setImmediate)},function(t,e,i){(function(t,n){function r(t,e){this._id=t,this._clearFn=e}var o=i(3).nextTick,s=Function.prototype.apply,a=Array.prototype.slice,l={},u=0;e.setTimeout=function(){return new r(s.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(s.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},e.setImmediate="function"==typeof t?t:function(t){var i=u++,n=!(arguments.length<2)&&a.call(arguments,1);return l[i]=!0,o(function(){l[i]&&(n?t.apply(null,n):t.call(null),e.clearImmediate(i))}),i},e.clearImmediate="function"==typeof n?n:function(t){delete l[t]}}).call(e,i(2).setImmediate,i(2).clearImmediate)},function(t,e){function i(){d&&u&&(d=!1,u.length?c=u.concat(c):h=-1,c.length&&n())}function n(){if(!d){var t=s(i);d=!0;for(var e=c.length;e;){for(u=c,c=[];++h<e;)u&&u[h].run();h=-1,e=c.length}u=null,d=!1,a(t)}}function r(t,e){this.fun=t,this.array=e}function o(){}var s,a,l=t.exports={};!function(){try{s=setTimeout}catch(t){s=function(){throw new Error("setTimeout is not defined")}}try{a=clearTimeout}catch(t){a=function(){throw new Error("clearTimeout is not defined")}}}();var u,c=[],d=!1,h=-1;l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];c.push(new r(t,e)),1!==c.length||d||s(n,0)},r.prototype.run=function(){this.fun.apply(null,this.array);
},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=o,l.addListener=o,l.once=o,l.off=o,l.removeListener=o,l.removeAllListeners=o,l.emit=o,l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,e,i){var n=i(5),r={oldContainer:void 0,newContainer:void 0,newContainerLoading:void 0,extend:function(t){return n.extend(this,t)},init:function(t,e){var i=this;return this.oldContainer=t,this._newContainerPromise=e,this.deferred=n.deferred(),this.newContainerReady=n.deferred(),this.newContainerLoading=this.newContainerReady.promise,this.start(),this._newContainerPromise.then(function(t){i.newContainer=t,i.newContainerReady.resolve()}),this.deferred.promise},done:function(){this.oldContainer.parentNode.removeChild(this.oldContainer),this.newContainer.style.visibility="visible",this.deferred.resolve()},start:function(){}};t.exports=r},function(t,e){var i={getCurrentUrl:function(){return window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search},cleanLink:function(t){return t.replace(/#.*/,"")},xhrTimeout:5e3,xhr:function(t){var e=this.deferred(),i=new XMLHttpRequest;return i.onreadystatechange=function(){if(4===i.readyState)return 200===i.status?e.resolve(i.responseText):e.reject(new Error("xhr: HTTP code is not 200"))},i.ontimeout=function(){return e.reject(new Error("xhr: Timeout exceeded"))},i.open("GET",t),i.timeout=this.xhrTimeout,i.setRequestHeader("x-barba","yes"),i.send(),e.promise},extend:function(t,e){var i=Object.create(t);for(var n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);return i},deferred:function(){return new function(){this.resolve=null,this.reject=null,this.promise=new Promise(function(t,e){this.resolve=t,this.reject=e}.bind(this))}},getPort:function(t){var e="undefined"!=typeof t?t:window.location.port,i=window.location.protocol;return""!=e?parseInt(e):"http:"===i?80:"https:"===i?443:void 0}};t.exports=i},function(t,e,i){var n=i(7),r=i(5),o={namespace:null,extend:function(t){return r.extend(this,t)},init:function(){var t=this;n.on("initStateChange",function(e,i){i&&i.namespace===t.namespace&&t.onLeave()}),n.on("newPageReady",function(e,i,n){t.container=n,e.namespace===t.namespace&&t.onEnter()}),n.on("transitionCompleted",function(e,i){e.namespace===t.namespace&&t.onEnterCompleted(),i&&i.namespace===t.namespace&&t.onLeaveCompleted()})},onEnter:function(){},onEnterCompleted:function(){},onLeave:function(){},onLeaveCompleted:function(){}};t.exports=o},function(t,e){var i={events:{},on:function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},off:function(t,e){t in this.events!=0&&this.events[t].splice(this.events[t].indexOf(e),1)},trigger:function(t){if(t in this.events!=0)for(var e=0;e<this.events[t].length;e++)this.events[t][e].apply(this,Array.prototype.slice.call(arguments,1))}};t.exports=i},function(t,e,i){var n=i(5),r={data:{},extend:function(t){return n.extend(this,t)},set:function(t,e){this.data[t]=e},get:function(t){return this.data[t]},reset:function(){this.data={}}};t.exports=r},function(t,e){var i={history:[],add:function(t,e){e||(e=void 0),this.history.push({url:t,namespace:e})},currentStatus:function(){return this.history[this.history.length-1]},prevStatus:function(){var t=this.history;return t.length<2?null:t[t.length-2]}};t.exports=i},function(t,e,i){var n=i(5),r=i(7),o=i(11),s=i(8),a=i(9),l=i(12),u={Dom:l,History:a,Cache:s,cacheEnabled:!0,transitionProgress:!1,ignoreClassLink:"no-barba",start:function(){this.init()},init:function(){var t=this.Dom.getContainer(),e=this.Dom.getWrapper();e.setAttribute("aria-live","polite"),this.History.add(this.getCurrentUrl(),this.Dom.getNamespace(t)),r.trigger("initStateChange",this.History.currentStatus()),r.trigger("newPageReady",this.History.currentStatus(),{},t,this.Dom.currentHTML),r.trigger("transitionCompleted",this.History.currentStatus()),this.bindEvents()},bindEvents:function(){document.addEventListener("click",this.onLinkClick.bind(this)),window.addEventListener("popstate",this.onStateChange.bind(this))},getCurrentUrl:function(){return n.cleanLink(n.getCurrentUrl())},goTo:function(t){window.history.pushState(null,null,t),this.onStateChange()},forceGoTo:function(t){window.location=t},load:function(t){var e,i=n.deferred(),r=this;return e=this.Cache.get(t),e||(e=n.xhr(t),this.Cache.set(t,e)),e.then(function(t){var e=r.Dom.parseResponse(t);r.Dom.putContainer(e),r.cacheEnabled||r.Cache.reset(),i.resolve(e)},function(){r.forceGoTo(t),i.reject()}),i.promise},getHref:function(t){if(t)return t.getAttribute&&"string"==typeof t.getAttribute("xlink:href")?t.getAttribute("xlink:href"):"string"==typeof t.href?t.href:void 0},onLinkClick:function(t){for(var e=t.target;e&&!this.getHref(e);)e=e.parentNode;if(this.preventCheck(t,e)){t.stopPropagation(),t.preventDefault(),r.trigger("linkClicked",e,t);var i=this.getHref(e);this.goTo(i)}},preventCheck:function(t,e){if(!window.history.pushState)return!1;var i=this.getHref(e);return!(!e||!i||t.which>1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||e.target&&"_blank"===e.target||window.location.protocol!==e.protocol||window.location.hostname!==e.hostname||n.getPort()!==n.getPort(e.port)||i.indexOf("#")>-1||e.getAttribute&&"string"==typeof e.getAttribute("download")||n.cleanLink(i)==n.cleanLink(location.href)||e.classList.contains(this.ignoreClassLink))},getTransition:function(){return o},onStateChange:function(){var t=this.getCurrentUrl();if(this.transitionProgress&&this.forceGoTo(t),this.History.currentStatus().url===t)return!1;this.History.add(t);var e=this.load(t),i=Object.create(this.getTransition());this.transitionProgress=!0,r.trigger("initStateChange",this.History.currentStatus(),this.History.prevStatus());var n=i.init(this.Dom.getContainer(),e);e.then(this.onNewContainerLoaded.bind(this)),n.then(this.onTransitionEnd.bind(this))},onNewContainerLoaded:function(t){var e=this.History.currentStatus();e.namespace=this.Dom.getNamespace(t),r.trigger("newPageReady",this.History.currentStatus(),this.History.prevStatus(),t,this.Dom.currentHTML)},onTransitionEnd:function(){this.transitionProgress=!1,r.trigger("transitionCompleted",this.History.currentStatus(),this.History.prevStatus())}};t.exports=u},function(t,e,i){var n=i(4),r=n.extend({start:function(){this.newContainerLoading.then(this.finish.bind(this))},finish:function(){document.body.scrollTop=0,this.done()}});t.exports=r},function(t,e){var i={dataNamespace:"namespace",wrapperId:"barba-wrapper",containerClass:"barba-container",currentHTML:document.documentElement.innerHTML,parseResponse:function(t){this.currentHTML=t;var e=document.createElement("div");e.innerHTML=t;var i=e.querySelector("title");return i&&(document.title=i.textContent),this.getContainer(e)},getWrapper:function(){var t=document.getElementById(this.wrapperId);if(!t)throw new Error("Barba.js: wrapper not found!");return t},getContainer:function(t){if(t||(t=document.body),!t)throw new Error("Barba.js: DOM not ready!");var e=this.parseContainer(t);if(e&&e.jquery&&(e=e[0]),!e)throw new Error("Barba.js: no container found");return e},getNamespace:function(t){return t&&t.dataset?t.dataset[this.dataNamespace]:t?t.getAttribute("data-"+this.dataNamespace):null},putContainer:function(t){t.style.visibility="hidden";var e=this.getWrapper();e.appendChild(t)},parseContainer:function(t){return t.querySelector("."+this.containerClass)}};t.exports=i},function(t,e,i){var n=i(5),r=i(10),o={ignoreClassLink:"no-barba-prefetch",init:function(){return!!window.history.pushState&&(document.body.addEventListener("mouseover",this.onLinkEnter.bind(this)),void document.body.addEventListener("touchstart",this.onLinkEnter.bind(this)))},onLinkEnter:function(t){for(var e=t.target;e&&!r.getHref(e);)e=e.parentNode;if(e&&!e.classList.contains(this.ignoreClassLink)){var i=r.getHref(e);if(r.preventCheck(t,e)&&!r.Cache.get(i)){var o=n.xhr(i);r.Cache.set(i,o)}}}};t.exports=o}])}),function(t,e){if("function"==typeof define&&define.amd)define(["jquery","TweenMax","TimelineMax"],e);else{var i=e(t.jQuery,t.TweenMax,t.TimelineMax);t.ScrollMagic=i.Controller,t.ScrollScene=i.Scene}}(this,function(t,e,i){var n=function(e){var i,n,l="ScrollMagic",d={container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100},h=this,f=t.extend({},d,e),p=[],m=!1,g=0,v="PAUSED",y=!0,_=0,w=!0,x=function(){if(h.version=h.constructor.version,t.each(f,function(t,e){d.hasOwnProperty(t)||(A(2,'WARNING: Unknown option "'+t+'"'),delete f[t])}),f.container=t(f.container).first(),0===f.container.length)throw A(1,"ERROR creating object "+l+": No valid scroll container supplied"),l+" init failed.";y=!t.contains(document,f.container.get(0)),y||f.container.on("resize",function(t){t.stopPropagation()}),_=f.vertical?f.container.height():f.container.width(),f.container.on("scroll resize",S),f.refreshInterval=parseInt(f.refreshInterval),f.refreshInterval>0&&(n=window.setInterval(C,f.refreshInterval)),i=u(k),A(3,"added new "+l+" controller (v"+h.version+")")},b=function(){return f.vertical?f.container.scrollTop():f.container.scrollLeft()},T=function(t){f.vertical?f.container.scrollTop(t):f.container.scrollLeft(t)},k=function(){if(i=u(k),w&&m){var e=t.isArray(m)?m:p.slice(0),n=g;g=h.scrollPos();var r=g-n;v=0===r?"PAUSED":r>0?"FORWARD":"REVERSE",r<0&&e.reverse(),t.each(e,function(t,i){A(3,"updating Scene "+(t+1)+"/"+e.length+" ("+p.length+" total)"),i.update(!0)}),0===e.length&&f.loglevel>=3&&A(3,"updating 0 Scenes (nothing added to controller)"),m=!1}},S=function(t){"resize"==t.type&&(_=f.vertical?f.container.height():f.container.width()),m=!0},C=function(){y||_!=(f.vertical?f.container.height():f.container.width())&&f.container.trigger("resize"),t.each(p,function(t,e){e.refresh()})},A=function(t,e){if(f.loglevel>=t){var i="("+l+") ->",n=Array.prototype.splice.call(arguments,1);n.unshift(t,i),o.apply(window,n)}},P=function(t){if(t.length<=1)return t;var e=t.slice(0);return e.sort(function(t,e){return t.scrollOffset()>e.scrollOffset()?1:-1}),e};return this.addScene=function(e){return t.isArray(e)?t.each(e,function(t,e){h.addScene(e)}):e instanceof r?e.parent()!=h?e.addTo(h):t.inArray(e,p)<0&&(p.push(e),p=P(p),e.on("shift."+l+"_sort",function(){p=P(p)}),t.each(f.globalSceneOptions,function(t,i){e[t]&&e[t].call(e,i)}),A(3,"added Scene ("+p.length+" total)")):A(1,"ERROR: invalid argument supplied for '.addScene()'"),h},this.removeScene=function(e){if(t.isArray(e))t.each(e,function(t,e){h.removeScene(e)});else{var i=t.inArray(e,p);i>-1&&(e.off("shift."+l+"_sort"),p.splice(i,1),e.remove(),A(3,"removed Scene ("+p.length+" total)"))}return h},this.updateScene=function(e,i){return t.isArray(e)?t.each(e,function(t,e){h.updateScene(e,i)}):i?e.update(!0):(t.isArray(m)||(m=[]),t.inArray(e,m)==-1&&m.push(e),m=P(m)),h},this.update=function(t){return S({type:"resize"}),t&&k(),h},this.scrollTo=function(e){if(e instanceof r)e.parent()===h?h.scrollTo(e.scrollOffset()):A(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",e);else if("string"===t.type(e)||a(e)||e instanceof t){var i=t(e).first();if(i[0]){var n=f.vertical?"top":"left",o=s(f.container),l=s(i);y||(o[n]-=h.scrollPos()),h.scrollTo(l[n]-o[n])}else A(2,"scrollTo(): The supplied element could not be found. Scroll cancelled.",e)}else t.isFunction(e)?T=e:T.call(f.container[0],e);return h},this.scrollPos=function(e){return arguments.length?(t.isFunction(e)?b=e:A(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'."),h):b.call(h)},this.info=function(t){var e={size:_,vertical:f.vertical,scrollPos:g,scrollDirection:v,container:f.container,isDocument:y};return arguments.length?void 0!==e[t]?e[t]:void A(1,'ERROR: option "'+t+'" is not available'):e},this.loglevel=function(t){return arguments.length?(f.loglevel!=t&&(f.loglevel=t),h):f.loglevel},this.enabled=function(t){return arguments.length?(w!=t&&(w=!!t,h.updateScene(p,!0)),h):w},this.destroy=function(t){window.clearTimeout(n);for(var e=p.length;e--;)p[e].destroy(t);return f.container.off("scroll resize",S),c(i),A(3,"destroyed "+l+" (reset: "+(t?"true":"false")+")"),null},x(),h};n.version="1.3.0";var r=function(e){var r,a,u,c,d,h,f,p={onCenter:.5,onEnter:1,onLeave:0},m="ScrollScene",g={duration:0,offset:0,triggerElement:null,triggerHook:"onCenter",reverse:!0,tweenChanges:!1,loglevel:2},v=this,y=t.extend({},g,e),_="BEFORE",w=0,x={start:0,end:0},b=0,T=!0,k={unknownOptionSupplied:function(){t.each(y,function(t,e){g.hasOwnProperty(t)||(C(2,'WARNING: Unknown option "'+t+'"'),delete y[t])})},duration:function(){if(t.isFunction(y.duration)){r=y.duration;try{y.duration=parseFloat(r())}catch(e){C(1,'ERROR: Invalid return value of supplied function for option "duration":',y.duration),r=void 0,y.duration=g.duration}}else y.duration=parseFloat(y.duration),(!t.isNumeric(y.duration)||y.duration<0)&&(C(1,'ERROR: Invalid value for option "duration":',y.duration),y.duration=g.duration)},offset:function(){y.offset=parseFloat(y.offset),t.isNumeric(y.offset)||(C(1,'ERROR: Invalid value for option "offset":',y.offset),y.offset=g.offset)},triggerElement:function(){null!==y.triggerElement&&0===t(y.triggerElement).length&&(C(1,'ERROR: Element defined in option "triggerElement" was not found:',y.triggerElement),y.triggerElement=g.triggerElement)},triggerHook:function(){y.triggerHook in p||(t.isNumeric(y.triggerHook)?y.triggerHook=Math.max(0,Math.min(parseFloat(y.triggerHook),1)):(C(1,'ERROR: Invalid value for option "triggerHook": ',y.triggerHook),y.triggerHook=g.triggerHook))},reverse:function(){y.reverse=!!y.reverse},tweenChanges:function(){y.tweenChanges=!!y.tweenChanges},loglevel:function(){if(y.loglevel=parseInt(y.loglevel),!t.isNumeric(y.loglevel)||y.loglevel<0||y.loglevel>3){var e=y.loglevel;y.loglevel=g.loglevel,C(1,'ERROR: Invalid value for option "loglevel":',e)}}},S=function(){A(),v.on("change.internal",function(t){"loglevel"!==t.what&&"tweenChanges"!==t.what&&("triggerElement"===t.what?$():"reverse"===t.what&&v.update())}).on("shift.internal",function(t){O(),v.update(),("AFTER"===_&&"duration"===t.reason||"DURING"===_&&0===y.duration)&&R()}).on("progress.internal",function(t){E(),R()}).on("destroy",function(t){t.preventDefault()})},C=function(t,e){if(y.loglevel>=t){var i="("+m+") ->",n=Array.prototype.splice.call(arguments,1);n.unshift(t,i),o.apply(window,n)}},A=function(e){if(arguments.length)t.isArray(e)||(e=[e]);else{e=[];for(var i in k)e.push(i)}t.each(e,function(t,e){k[e]&&k[e]()})},P=function(t,e){var i=!1,n=y[t];return y[t]!=e&&(y[t]=e,A(t),i=n!=y[t]),i},O=function(){x={start:b+y.offset},a&&y.triggerElement&&(x.start-=a.info("size")*v.triggerHook()),x.end=x.start+y.duration},D=function(t){if(r){var e="duration";P(e,r.call(v))&&!t&&(v.trigger("change",{what:e,newval:y[e]}),v.trigger("shift",{reason:e}))}},$=function(e){var i=0;if(a&&y.triggerElement){for(var n=t(y.triggerElement).first(),r=a.info(),o=s(r.container),l=r.vertical?"top":"left";n.parent().data("ScrollMagicPinSpacer");)n=n.parent();var u=s(n);r.isDocument||(o[l]-=a.scrollPos()),i=u[l]-o[l]}var c=i!=b;b=i,c&&!e&&v.trigger("shift",{reason:"triggerElementPosition"})},E=function(t){if(u){var e=t>=0&&t<=1?t:w;if(u.repeat()===-1)if("DURING"===_&&u.paused())u.play();else{if("DURING"===_||u.paused())return!1;u.pause()}else{if(e==u.progress())return!1;0===y.duration?"DURING"===_?u.play():u.reverse():y.tweenChanges?u.tweenTo(e*u.duration()):u.progress(e).pause()}return!0}return!1},R=function(t){if(c&&a){var e=a.info();if(t||"DURING"!==_){var i={position:d.inFlow?"relative":"absolute",top:0,left:0},n=c.css("position")!=i.position;d.pushFollowers?y.duration>0&&("AFTER"===_&&0===parseFloat(d.spacer.css("padding-top"))?n=!0:"BEFORE"===_&&0===parseFloat(d.spacer.css("padding-bottom"))&&(n=!0)):i[e.vertical?"top":"left"]=y.duration*w,c.css(i),n&&(c.removeClass(d.pinnedClass),F())}else{"fixed"!=c.css("position")&&(c.css("position","fixed"),F(),c.addClass(d.pinnedClass));var r=s(d.spacer,!0),o=y.reverse||0===y.duration?e.scrollPos-x.start:Math.round(w*y.duration*10)/10;r.top-=parseFloat(d.spacer.css("margin-top")),r[e.vertical?"top":"left"]+=o,c.css({top:r.top,left:r.left})}}},F=function(){if(c&&a&&d.inFlow){var e="AFTER"===_,i="BEFORE"===_,n="DURING"===_,r="fixed"==c.css("position"),o=a.info("vertical"),s=d.spacer.children().first(),u=l(d.spacer.css("display")),h={};u?(h["margin-top"]=i||n&&r?c.css("margin-top"):"auto",h["margin-bottom"]=e||n&&r?c.css("margin-bottom"):"auto"):h["margin-top"]=h["margin-bottom"]="auto",d.relSize.width||d.relSize.autoFullWidth?r?t(window).width()==d.spacer.parent().width()?c.css("width",d.relSize.autoFullWidth?"100%":"inherit"):c.css("width",d.spacer.width()):c.css("width","100%"):(h["min-width"]=s.outerWidth(!s.is(c)),h.width=r?h["min-width"]:"auto"),d.relSize.height?r?t(window).height()==d.spacer.parent().height()?c.css("height","inherit"):c.css("height",d.spacer.height()):c.css("height","100%"):(h["min-height"]=s.outerHeight(!u),h.height=r?h["min-height"]:"auto"),d.pushFollowers&&(h["padding"+(o?"Top":"Left")]=y.duration*w,h["padding"+(o?"Bottom":"Right")]=y.duration*(1-w)),d.spacer.css(h)}},M=function(){a&&c&&"DURING"===_&&!a.info("isDocument")&&R()},z=function(){a&&c&&"DURING"===_&&((d.relSize.width||d.relSize.autoFullWidth)&&t(window).width()!=d.spacer.parent().width()||d.relSize.height&&t(window).height()!=d.spacer.parent().height())&&F()},j=function(t){a&&c&&"DURING"===_&&!a.info("isDocument")&&(t.preventDefault(),a.scrollTo(a.info("scrollPos")-(t.originalEvent.wheelDelta/3||30*-t.originalEvent.detail)))};return this.parent=function(){return a},this.duration=function(e){var i="duration";return arguments.length?(t.isFunction(e)||(r=void 0),P(i,e)&&(v.trigger("change",{what:i,newval:y[i]}),v.trigger("shift",{reason:i})),v):y[i]},this.offset=function(t){var e="offset";return arguments.length?(P(e,t)&&(v.trigger("change",{what:e,newval:y[e]}),v.trigger("shift",{reason:e})),v):y[e]},this.triggerElement=function(t){var e="triggerElement";return arguments.length?(P(e,t)&&v.trigger("change",{what:e,newval:y[e]}),v):y[e]},this.triggerHook=function(e){var i="triggerHook";return arguments.length?(P(i,e)&&(v.trigger("change",{what:i,newval:y[i]}),v.trigger("shift",{reason:i})),v):t.isNumeric(y[i])?y[i]:p[y[i]]},this.reverse=function(t){var e="reverse";return arguments.length?(P(e,t)&&v.trigger("change",{what:e,newval:y[e]}),v):y[e]},this.tweenChanges=function(t){var e="tweenChanges";return arguments.length?(P(e,t)&&v.trigger("change",{what:e,newval:y[e]}),v):y[e]},this.loglevel=function(t){var e="loglevel";return arguments.length?(P(e,t)&&v.trigger("change",{what:e,newval:y[e]}),v):y[e]},this.state=function(){return _},this.triggerPosition=function(){var t=y.offset;return a&&(t+=y.triggerElement?b:a.info("size")*v.triggerHook()),t},this.triggerOffset=function(){return v.triggerPosition()},this.scrollOffset=function(){return x.start},this.update=function(t){if(a)if(t)if(a.enabled()&&T){var e,i=a.info("scrollPos");e=y.duration>0?(i-x.start)/(x.end-x.start):i>=x.start?1:0,v.trigger("update",{startPos:x.start,endPos:x.end,scrollPos:i}),v.progress(e)}else c&&"DURING"===_&&R(!0);else a.updateScene(v,!1);return v},this.refresh=function(){return D(),$(),v},this.progress=function(t){if(arguments.length){var e=!1,i=_,n=a?a.info("scrollDirection"):"PAUSED",r=y.reverse||t>=w;if(0===y.duration?(e=w!=t,w=t<1&&r?0:1,_=0===w?"BEFORE":"DURING"):t<=0&&"BEFORE"!==_&&r?(w=0,_="BEFORE",e=!0):t>0&&t<1&&r?(w=t,_="DURING",e=!0):t>=1&&"AFTER"!==_?(w=1,_="AFTER",e=!0):"DURING"!==_||r||R(),e){var o={progress:w,state:_,scrollDirection:n},s=_!=i,l=function(t){v.trigger(t,o)};s&&"DURING"!==i&&(l("enter"),l("BEFORE"===i?"start":"end")),l("progress"),s&&"DURING"!==_&&(l("BEFORE"===_?"start":"end"),l("leave"))}return v}return w},this.setTween=function(e){if(!i)return C(1,"ERROR: TimelineMax wasn't found. Please make sure GSAP is loaded before ScrollMagic or use asynchronous loading."),v;u&&v.removeTween();try{u=new i({smoothChildTiming:!0}).add(e).pause()}catch(n){C(1,"ERROR calling method 'setTween()': Supplied argument is not a valid TweenObject")}finally{e.repeat&&e.repeat()===-1&&(u.repeat(-1),u.yoyo(e.yoyo()))}if(u&&a&&y.triggerElement&&y.loglevel>=2){var r=u.getTweensOf(t(y.triggerElement)),o=a.info("vertical");t.each(r,function(t,e){var i=e.vars.css||e.vars,n=o?void 0!==i.top||void 0!==i.bottom:void 0!==i.left||void 0!==i.right;if(n)return C(2,"WARNING: Tweening the position of the trigger element affects the scene timing and should be avoided!"),!1})}if(parseFloat(TweenLite.version)>=1.14)for(var s,l,c=u.getChildren(!0,!0,!1),d=function(){C(2,"WARNING: tween was overwritten by another. To learn how to avoid this issue see here: https://github.com/janpaepke/ScrollMagic/wiki/WARNING:-tween-was-overwritten-by-another")},h=0;h<c.length;h++)s=c[h],l!==d&&(l=s.vars.onOverwrite,s.vars.onOverwrite=function(){l&&l.apply(this,arguments),d.apply(this,arguments)});return C(3,"added tween"),E(),v},this.removeTween=function(t){return u&&(t&&E(0),u.kill(),u=void 0,C(3,"removed tween (reset: "+(t?"true":"false")+")")),v},this.setPin=function(e,i){var n={pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer",pinnedClass:""};if(i=t.extend({},n,i),e=t(e).first(),0===e.length)return C(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),v;if("fixed"==e.css("position"))return C(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),v;if(c){if(c===e)return v;v.removePin()}c=e,c.parent().hide();var r="absolute"!=c.css("position"),o=c.css(["display","top","left","bottom","right"]),s=c.css(["width","height"]);c.parent().show(),"0px"===s.width&&r&&l(o.display),!r&&i.pushFollowers&&(C(2,"WARNING: If the pinned element is positioned absolutely pushFollowers is disabled."),i.pushFollowers=!1);var a=t("<div></div>").addClass(i.spacerClass).css(o).data("ScrollMagicPinSpacer",!0).css({position:r?"relative":"absolute","margin-left":"auto","margin-right":"auto","box-sizing":"content-box"}),u=c[0].style;return d={spacer:a,relSize:{width:"%"===s.width.slice(-1),height:"%"===s.height.slice(-1),autoFullWidth:"0px"===s.width&&r&&l(o.display)},pushFollowers:i.pushFollowers,inFlow:r,origStyle:{width:u.width||"",position:u.position||"",top:u.top||"",left:u.left||"",bottom:u.bottom||"",right:u.right||"","box-sizing":u["box-sizing"]||"","-moz-box-sizing":u["-moz-box-sizing"]||"","-webkit-box-sizing":u["-webkit-box-sizing"]||""},pinnedClass:i.pinnedClass},d.relSize.width&&a.css("width",s.width),d.relSize.height&&a.css("height",s.height),c.before(a).appendTo(a).css({position:r?"relative":"absolute",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(d.relSize.width||d.relSize.autoFullWidth)&&c.css("box-sizing","border-box"),t(window).on("scroll."+m+"_pin resize."+m+"_pin",M),c.on("mousewheel DOMMouseScroll",j),C(3,"added pin"),R(),v},this.removePin=function(e){return c&&(e||!a?(c.insertBefore(d.spacer).css(d.origStyle),d.spacer.remove()):"DURING"===_&&R(!0),t(window).off("scroll."+m+"_pin resize."+m+"_pin"),c.off("mousewheel DOMMouseScroll",j),c=void 0,C(3,"removed pin (reset: "+(e?"true":"false")+")")),v},this.setClassToggle=function(e,i){var n=t(e);return 0===n.length||"string"!==t.type(i)?(C(1,"ERROR calling method 'setClassToggle()': Invalid "+(0===n.length?"element":"classes")+" supplied."),v):(h=i,f=n,v.on("enter.internal_class leave.internal_class",function(t){f.toggleClass(h,"enter"===t.type)}),v)},this.removeClassToggle=function(t){return f&&t&&f.removeClass(h),v.off("start.internal_class end.internal_class"),h=void 0,f=void 0,v},this.addTo=function(t){return t instanceof n?a!=t&&(a&&a.removeScene(v),a=t,A(),D(!0),$(!0),O(),F(),a.info("container").on("resize."+m,function(){z(),v.triggerHook()>0&&v.trigger("shift",{reason:"containerSize"})}),C(3,"added "+m+" to controller"),t.addScene(v),v.update()):C(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic controller"),v},this.enabled=function(t){return arguments.length?(T!=t&&(T=!!t,v.update(!0)),v):T},this.remove=function(){if(a){a.info("container").off("resize."+m);var t=a;a=void 0,C(3,"removed "+m+" from controller"),t.removeScene(v)}return v},this.destroy=function(t){return v.removeTween(t),v.removePin(t),v.removeClassToggle(t),v.trigger("destroy",{reset:t}),v.remove(),v.off("start end enter leave progress change update shift destroy shift.internal change.internal progress.internal"),C(3,"destroyed "+m+" (reset: "+(t?"true":"false")+")"),null},this.on=function(e,i){if(t.isFunction(i)){var n=t.trim(e).toLowerCase().replace(/(\w+)\.(\w+)/g,"$1."+m+"_$2").replace(/( |^)(\w+)(?= |$)/g,"$1$2."+m);t(v).on(n,i)}else C(1,"ERROR calling method 'on()': Supplied argument is not a valid callback!");return v},this.off=function(e,i){var n=t.trim(e).toLowerCase().replace(/(\w+)\.(\w+)/g,"$1."+m+"_$2").replace(/( |^)(\w+)(?= |$)/g,"$1$2."+m+"$3");return t(v).off(n,i),v},this.trigger=function(e,i){C(3,"event fired:",e,"->",i);var n=t.Event(t.trim(e).toLowerCase(),i);return t(v).trigger(n),v},S(),v},o=function(t){var e=["error","warn","log"];t.log||(t.log=function(){});for(var i,n=0;n<e.length;n++)i=e[n],t[i]||(t[i]=t.log);return function(i){(i>e.length||i<=0)&&(i=e.length);var n=new Date,r=("0"+n.getHours()).slice(-2)+":"+("0"+n.getMinutes()).slice(-2)+":"+("0"+n.getSeconds()).slice(-2)+":"+("00"+n.getMilliseconds()).slice(-3),o=e[i-1],s=Array.prototype.splice.call(arguments,1),a=Function.prototype.bind.call(t[o],t);s.unshift(r),a.apply(t,s)}}(window.console=window.console||{}),s=function(t,e){var i={top:0,left:0};if(t=t[0],t&&t.getBoundingClientRect){var n=t.getBoundingClientRect();i.top=n.top,i.left=n.left,e||(i.top+=(window.pageYOffset||document.scrollTop||0)-(document.clientTop||0),i.left+=(window.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0))}return i},a=function(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName},l=function(t){return["block","flex","list-item","table","-webkit-box"].indexOf(t)>-1},u=window.requestAnimationFrame,c=window.cancelAnimationFrame;return function(t){var e,i=0,n=["ms","moz","webkit","o"];for(e=0;!u&&e<n.length;++e)u=t[n[e]+"RequestAnimationFrame"],c=t[n[e]+"CancelAnimationFrame"]||t[n[e]+"CancelRequestAnimationFrame"];u||(u=function(e){var n=(new Date).getTime(),r=Math.max(0,16-(n-i)),o=t.setTimeout(function(){e(n+r)},r);return i=n+r,o}),c||(c=function(e){t.clearTimeout(e)})}(window),{Controller:n,Scene:r}}),!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";var e=window.Slick||{};e=function(){function e(e,n){var r,o=this;o.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(e),appendDots:t(e),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('<button type="button" data-role="none" role="button" tabindex="0" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.focussed=!1,o.interrupted=!1,o.hidden="hidden",o.paused=!0,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=t(e),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,r=t(e).data("slick")||{},o.options=t.extend({},o.defaults,n,r),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,"undefined"!=typeof document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=t.proxy(o.autoPlay,o),o.autoPlayClear=t.proxy(o.autoPlayClear,o),o.autoPlayIterator=t.proxy(o.autoPlayIterator,o),o.changeSlide=t.proxy(o.changeSlide,o),o.clickHandler=t.proxy(o.clickHandler,o),o.selectHandler=t.proxy(o.selectHandler,o),o.setPosition=t.proxy(o.setPosition,o),o.swipeHandler=t.proxy(o.swipeHandler,o),o.dragHandler=t.proxy(o.dragHandler,o),o.keyHandler=t.proxy(o.keyHandler,o),o.instanceUid=i++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0)}var i=0;return e}(),e.prototype.activateADA=function(){var t=this;t.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,i,n){var r=this;if("boolean"==typeof i)n=i,i=null;else if(0>i||i>=r.slideCount)return!1;r.unload(),"number"==typeof i?0===i&&0===r.$slides.length?t(e).appendTo(r.$slideTrack):n?t(e).insertBefore(r.$slides.eq(i)):t(e).insertAfter(r.$slides.eq(i)):n===!0?t(e).prependTo(r.$slideTrack):t(e).appendTo(r.$slideTrack),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slides.each(function(e,i){t(i).attr("data-slick-index",e)}),r.$slidesCache=r.$slides,r.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,i){var n={},r=this;r.animateHeight(),r.options.rtl===!0&&r.options.vertical===!1&&(e=-e),r.transformsEnabled===!1?r.options.vertical===!1?r.$slideTrack.animate({left:e},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:e},r.options.speed,r.options.easing,i):r.cssTransitions===!1?(r.options.rtl===!0&&(r.currentLeft=-r.currentLeft),t({animStart:r.currentLeft}).animate({animStart:e},{duration:r.options.speed,easing:r.options.easing,step:function(t){t=Math.ceil(t),r.options.vertical===!1?(n[r.animType]="translate("+t+"px, 0px)",r.$slideTrack.css(n)):(n[r.animType]="translate(0px,"+t+"px)",r.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(r.applyTransition(),e=Math.ceil(e),r.options.vertical===!1?n[r.animType]="translate3d("+e+"px, 0px, 0px)":n[r.animType]="translate3d(0px,"+e+"px, 0px)",r.$slideTrack.css(n),i&&setTimeout(function(){r.disableTransition(),i.call()},r.options.speed))},e.prototype.getNavTarget=function(){var e=this,i=e.options.asNavFor;return i&&null!==i&&(i=t(i).not(e.$slider)),i},e.prototype.asNavFor=function(e){var i=this,n=i.getNavTarget();null!==n&&"object"==typeof n&&n.each(function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)})},e.prototype.applyTransition=function(t){var e=this,i={};e.options.fade===!1?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,
e.options.fade===!1?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(t.options.infinite===!1&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1===0&&(t.direction=1))),t.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,n=this;if(n.options.dots===!0&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)i.append(t("<li />").append(n.options.customPaging.call(this,n,e)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),(e.options.centerMode===!0||e.options.swipeToSlide===!0)&&(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,n,r,o,s,a=this;if(n=document.createDocumentFragment(),o=a.$slider.children(),a.options.rows>1){for(s=a.options.slidesPerRow*a.options.rows,r=Math.ceil(o.length/s),t=0;r>t;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var u=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var c=t*s+(e*a.options.slidesPerRow+i);o.get(c)&&u.appendChild(o.get(c))}l.appendChild(u)}n.appendChild(l)}a.$slider.empty().append(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var n,r,o,s=this,a=!1,l=s.$slider.width(),u=window.innerWidth||t(window).width();if("window"===s.respondTo?o=u:"slider"===s.respondTo?o=l:"min"===s.respondTo&&(o=Math.min(u,l)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){r=null;for(n in s.breakpoints)s.breakpoints.hasOwnProperty(n)&&(s.originalSettings.mobileFirst===!1?o<s.breakpoints[n]&&(r=s.breakpoints[n]):o>s.breakpoints[n]&&(r=s.breakpoints[n]));null!==r?null!==s.activeBreakpoint?(r!==s.activeBreakpoint||i)&&(s.activeBreakpoint=r,"unslick"===s.breakpointSettings[r]?s.unslick(r):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[r]),e===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),a=r):(s.activeBreakpoint=r,"unslick"===s.breakpointSettings[r]?s.unslick(r):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[r]),e===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),a=r):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,e===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(e),a=r),e||a===!1||s.$slider.trigger("breakpoint",[s,a])}},e.prototype.changeSlide=function(e,i){var n,r,o,s=this,a=t(e.currentTarget);switch(a.is("a")&&e.preventDefault(),a.is("li")||(a=a.closest("li")),o=s.slideCount%s.options.slidesToScroll!==0,n=o?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,e.data.message){case"previous":r=0===n?s.options.slidesToScroll:s.options.slidesToShow-n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-r,!1,i);break;case"next":r=0===n?s.options.slidesToScroll:n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+r,!1,i);break;case"index":var l=0===e.data.index?0:e.data.index||a.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(l),!1,i),a.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i,n=this;if(e=n.getNavigableIndexes(),i=0,t>e[e.length-1])t=e[e.length-1];else for(var r in e){if(t<e[r]){t=i;break}i=e[r]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),e.$slider.off("focus.slick blur.slick"),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide)),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).off("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&(t=e.$slides.children().children(),t.removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){var e=this;e.shouldClick===!1&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){t(this).attr("style",t(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;i.cssTransitions===!1?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;e.cssTransitions===!1?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(i){i.stopImmediatePropagation();var n=t(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=n.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var t=this;return t.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(t.options.infinite===!0)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(t.options.centerMode===!0)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},e.prototype.getLeft=function(t){var e,i,n,r=this,o=0;return r.slideOffset=0,i=r.$slides.first().outerHeight(!0),r.options.infinite===!0?(r.slideCount>r.options.slidesToShow&&(r.slideOffset=r.slideWidth*r.options.slidesToShow*-1,o=i*r.options.slidesToShow*-1),r.slideCount%r.options.slidesToScroll!==0&&t+r.options.slidesToScroll>r.slideCount&&r.slideCount>r.options.slidesToShow&&(t>r.slideCount?(r.slideOffset=(r.options.slidesToShow-(t-r.slideCount))*r.slideWidth*-1,o=(r.options.slidesToShow-(t-r.slideCount))*i*-1):(r.slideOffset=r.slideCount%r.options.slidesToScroll*r.slideWidth*-1,o=r.slideCount%r.options.slidesToScroll*i*-1))):t+r.options.slidesToShow>r.slideCount&&(r.slideOffset=(t+r.options.slidesToShow-r.slideCount)*r.slideWidth,o=(t+r.options.slidesToShow-r.slideCount)*i),r.slideCount<=r.options.slidesToShow&&(r.slideOffset=0,o=0),r.options.centerMode===!0&&r.options.infinite===!0?r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)-r.slideWidth:r.options.centerMode===!0&&(r.slideOffset=0,r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)),e=r.options.vertical===!1?t*r.slideWidth*-1+r.slideOffset:t*i*-1+o,r.options.variableWidth===!0&&(n=r.slideCount<=r.options.slidesToShow||r.options.infinite===!1?r.$slideTrack.children(".slick-slide").eq(t):r.$slideTrack.children(".slick-slide").eq(t+r.options.slidesToShow),e=r.options.rtl===!0?n[0]?-1*(r.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,r.options.centerMode===!0&&(n=r.slideCount<=r.options.slidesToShow||r.options.infinite===!1?r.$slideTrack.children(".slick-slide").eq(t):r.$slideTrack.children(".slick-slide").eq(t+r.options.slidesToShow+1),e=r.options.rtl===!0?n[0]?-1*(r.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,e+=(r.$list.width()-n.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){var e=this;return e.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,r=[];for(e.options.infinite===!1?t=e.slideCount:(i=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,t=2*e.slideCount);t>i;)r.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return r},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,n,r=this;return n=r.options.centerMode===!0?r.slideWidth*Math.floor(r.options.slidesToShow/2):0,r.options.swipeToSlide===!0?(r.$slideTrack.find(".slick-slide").each(function(e,o){return o.offsetLeft-n+t(o).outerWidth()/2>-1*r.swipeLeft?(i=o,!1):void 0}),e=Math.abs(t(i).attr("data-slick-index")-r.currentSlide)||1):r.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){var i=this;i.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),i.options.accessibility===!0&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},e.prototype.initADA=function(){var e=this;e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$slideTrack.attr("role","listbox"),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(i){t(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+i})}),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each(function(i){t(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+i,id:"slick-slide"+e.instanceUid+i})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).on("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.initUI=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:e.options.rtl===!0?"next":"previous"}}):39===t.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),i=t(this).attr("data-lazy"),n=document.createElement("img");n.onload=function(){e.animate({opacity:0},100,function(){e.attr("src",i).animate({opacity:1},200,function(){e.removeAttr("data-lazy").removeClass("slick-loading")}),s.$slider.trigger("lazyLoaded",[s,e,i])})},n.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,e,i])},n.src=i})}var i,n,r,o,s=this;s.options.centerMode===!0?s.options.infinite===!0?(r=s.currentSlide+(s.options.slidesToShow/2+1),o=r+s.options.slidesToShow+2):(r=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),o=2+(s.options.slidesToShow/2+1)+s.currentSlide):(r=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,o=Math.ceil(r+s.options.slidesToShow),s.options.fade===!0&&(r>0&&r--,o<=s.slideCount&&o++)),i=s.$slider.find(".slick-slide").slice(r,o),e(i),s.slideCount<=s.options.slidesToShow?(n=s.$slider.find(".slick-slide"),e(n)):s.currentSlide>=s.slideCount-s.options.slidesToShow?(n=s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow),e(n)):0===s.currentSlide&&(n=s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow),e(n))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var t=this;t.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),e.options.accessibility===!0&&e.initADA())},e.prototype.prev=e.prototype.slickPrev=function(){var t=this;t.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var i,n,r,o=this,s=t("img[data-lazy]",o.$slider);s.length?(i=s.first(),n=i.attr("data-lazy"),r=document.createElement("img"),r.onload=function(){i.attr("src",n).removeAttr("data-lazy").removeClass("slick-loading"),o.options.adaptiveHeight===!0&&o.setPosition(),o.$slider.trigger("lazyLoaded",[o,i,n]),o.progressiveLazyLoad()},r.onerror=function(){3>e?setTimeout(function(){o.progressiveLazyLoad(e+1)},500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,i,n]),o.progressiveLazyLoad())},r.src=n):o.$slider.trigger("allImagesLoaded",[o])},e.prototype.refresh=function(e){var i,n,r=this;n=r.slideCount-r.options.slidesToShow,!r.options.infinite&&r.currentSlide>n&&(r.currentSlide=n),r.slideCount<=r.options.slidesToShow&&(r.currentSlide=0),i=r.currentSlide,r.destroy(!0),t.extend(r,r.initials,{currentSlide:i}),r.init(),e||r.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,n,r=this,o=r.options.responsive||null;if("array"===t.type(o)&&o.length){r.respondTo=r.options.respondTo||"window";for(e in o)if(n=r.breakpoints.length-1,i=o[e].breakpoint,o.hasOwnProperty(e)){for(;n>=0;)r.breakpoints[n]&&r.breakpoints[n]===i&&r.breakpoints.splice(n,1),n--;r.breakpoints.push(i),r.breakpointSettings[i]=o[e].settings}r.breakpoints.sort(function(t,e){return r.options.mobileFirst?t-e:e-t})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var n=this;return"boolean"==typeof t?(e=t,t=e===!0?0:n.slideCount-1):t=e===!0?--t:t,!(n.slideCount<1||0>t||t>n.slideCount-1)&&(n.unload(),i===!0?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,void n.reinit())},e.prototype.setCSS=function(t){var e,i,n=this,r={};n.options.rtl===!0&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",r[n.positionProp]=t,n.transformsEnabled===!1?n.$slideTrack.css(r):(r={},n.cssTransitions===!1?(r[n.animType]="translate("+e+", "+i+")",n.$slideTrack.css(r)):(r[n.animType]="translate3d("+e+", "+i+", 0px)",n.$slideTrack.css(r)))},e.prototype.setDimensions=function(){var t=this;t.options.vertical===!1?t.options.centerMode===!0&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),t.options.centerMode===!0&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),t.options.vertical===!1&&t.options.variableWidth===!1?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):t.options.variableWidth===!0?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();t.options.variableWidth===!1&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,i=this;i.$slides.each(function(n,r){e=i.slideWidth*n*-1,i.options.rtl===!0?t(r).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}):t(r).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,i,n,r,o,s=this,a=!1;if("object"===t.type(arguments[0])?(n=arguments[0],a=arguments[1],o="multiple"):"string"===t.type(arguments[0])&&(n=arguments[0],r=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?o="responsive":"undefined"!=typeof arguments[1]&&(o="single")),"single"===o)s.options[n]=r;else if("multiple"===o)t.each(n,function(t,e){s.options[t]=e});else if("responsive"===o)for(i in r)if("array"!==t.type(s.options.responsive))s.options.responsive=[r[i]];else{for(e=s.options.responsive.length-1;e>=0;)s.options.responsive[e].breakpoint===r[i].breakpoint&&s.options.responsive.splice(e,1),e--;s.options.responsive.push(r[i])}a&&(s.unload(),s.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),t.options.fade===!1?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=t.options.vertical===!0?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),(void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.msTransition)&&t.options.useCSS===!0&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&t.animType!==!1&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&t.animType!==!1},e.prototype.setSlideClasses=function(t){var e,i,n,r,o=this;i=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(t).addClass("slick-current"),o.options.centerMode===!0?(e=Math.floor(o.options.slidesToShow/2),o.options.infinite===!0&&(t>=e&&t<=o.slideCount-1-e?o.$slides.slice(t-e,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=o.options.slidesToShow+t,i.slice(n-e+1,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&i.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")):t>=0&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=o.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(r=o.slideCount%o.options.slidesToShow,n=o.options.infinite===!0?o.options.slidesToShow+t:t,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?i.slice(n-(o.options.slidesToShow-r),n+r).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===o.options.lazyLoad&&o.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,n,r=this;if(r.options.fade===!0&&(r.options.centerMode=!1),r.options.infinite===!0&&r.options.fade===!1&&(i=null,r.slideCount>r.options.slidesToShow)){for(n=r.options.centerMode===!0?r.options.slidesToShow+1:r.options.slidesToShow,e=r.slideCount;e>r.slideCount-n;e-=1)i=e-1,t(r.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(e=0;n>e;e+=1)i=e,t(r.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+r.slideCount).appendTo(r.$slideTrack).addClass("slick-cloned");r.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},e.prototype.interrupt=function(t){var e=this;t||e.autoPlay(),e.interrupted=t},e.prototype.selectHandler=function(e){var i=this,n=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),r=parseInt(n.attr("data-slick-index"));return r||(r=0),i.slideCount<=i.options.slidesToShow?(i.setSlideClasses(r),void i.asNavFor(r)):void i.slideHandler(r)},e.prototype.slideHandler=function(t,e,i){var n,r,o,s,a,l=null,u=this;return e=e||!1,u.animating===!0&&u.options.waitForAnimate===!0||u.options.fade===!0&&u.currentSlide===t||u.slideCount<=u.options.slidesToShow?void 0:(e===!1&&u.asNavFor(t),n=t,l=u.getLeft(n),s=u.getLeft(u.currentSlide),u.currentLeft=null===u.swipeLeft?s:u.swipeLeft,u.options.infinite===!1&&u.options.centerMode===!1&&(0>t||t>u.getDotCount()*u.options.slidesToScroll)?void(u.options.fade===!1&&(n=u.currentSlide,i!==!0?u.animateSlide(s,function(){u.postSlide(n)}):u.postSlide(n))):u.options.infinite===!1&&u.options.centerMode===!0&&(0>t||t>u.slideCount-u.options.slidesToScroll)?void(u.options.fade===!1&&(n=u.currentSlide,i!==!0?u.animateSlide(s,function(){u.postSlide(n)}):u.postSlide(n))):(u.options.autoplay&&clearInterval(u.autoPlayTimer),r=0>n?u.slideCount%u.options.slidesToScroll!==0?u.slideCount-u.slideCount%u.options.slidesToScroll:u.slideCount+n:n>=u.slideCount?u.slideCount%u.options.slidesToScroll!==0?0:n-u.slideCount:n,u.animating=!0,u.$slider.trigger("beforeChange",[u,u.currentSlide,r]),o=u.currentSlide,u.currentSlide=r,u.setSlideClasses(u.currentSlide),u.options.asNavFor&&(a=u.getNavTarget(),a=a.slick("getSlick"),a.slideCount<=a.options.slidesToShow&&a.setSlideClasses(u.currentSlide)),u.updateDots(),u.updateArrows(),u.options.fade===!0?(i!==!0?(u.fadeSlideOut(o),u.fadeSlide(r,function(){u.postSlide(r)})):u.postSlide(r),void u.animateHeight()):void(i!==!0?u.animateSlide(l,function(){u.postSlide(r)}):u.postSlide(r))))},e.prototype.startLoad=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,i,n,r=this;return t=r.touchObject.startX-r.touchObject.curX,e=r.touchObject.startY-r.touchObject.curY,i=Math.atan2(e,t),n=Math.round(180*i/Math.PI),0>n&&(n=360-Math.abs(n)),45>=n&&n>=0?r.options.rtl===!1?"left":"right":360>=n&&n>=315?r.options.rtl===!1?"left":"right":n>=135&&225>=n?r.options.rtl===!1?"right":"left":r.options.verticalSwiping===!0?n>=35&&135>=n?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(n.touchObject.edgeHit===!0&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(e.options.swipe===!1||"ontouchend"in document&&e.options.swipe===!1||e.options.draggable===!1&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),
t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,i,n,r,o,s=this;return o=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!s.dragging||o&&1!==o.length)&&(e=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,s.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),s.options.verticalSwiping===!0&&(s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2)))),i=s.swipeDirection(),"vertical"!==i?(void 0!==t.originalEvent&&s.touchObject.swipeLength>4&&t.preventDefault(),r=(s.options.rtl===!1?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),s.options.verticalSwiping===!0&&(r=s.touchObject.curY>s.touchObject.startY?1:-1),n=s.touchObject.swipeLength,s.touchObject.edgeHit=!1,s.options.infinite===!1&&(0===s.currentSlide&&"right"===i||s.currentSlide>=s.getDotCount()&&"left"===i)&&(n=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),s.options.vertical===!1?s.swipeLeft=e+n*r:s.swipeLeft=e+n*(s.$list.height()/s.listWidth)*r,s.options.verticalSwiping===!0&&(s.swipeLeft=e+n*r),s.options.fade!==!0&&s.options.touchMove!==!1&&(s.animating===!0?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))):void 0)},e.prototype.swipeStart=function(t){var e,i=this;return i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow?(i.touchObject={},!1):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(i.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t,e=this;t=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,i,n=this,r=arguments[0],o=Array.prototype.slice.call(arguments,1),s=n.length;for(t=0;s>t;t++)if("object"==typeof r||"undefined"==typeof r?n[t].slick=new e(n[t],r):i=n[t].slick[r].apply(n[t].slick,o),"undefined"!=typeof i)return i;return n}}),!function(){"use strict";function t(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,n),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var n in i)e.push(i[n]);for(var r=0,o=e.length;o>r;r++)e[r][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=r.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,n[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,n={},r=window.Waypoint,o=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete n[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,r.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||r.isTouch)&&(e.didScroll=!0,r.requestAnimationFrame(t))})},e.prototype.handleResize=function(){r.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var n=e[i],r=n.newScroll>n.oldScroll,o=r?n.forward:n.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=n.oldScroll<a.triggerPoint,u=n.newScroll>=a.triggerPoint,c=l&&u,d=!l&&!u;(c||d)&&(a.queueTrigger(o),t[a.group.id]=a.group)}}for(var h in t)t[h].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?r.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?r.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,r=t.length;r>n;n++)t[n].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),n={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var o in t){var s=t[o];for(var a in this.waypoints[o]){var l,u,c,d,h,f=this.waypoints[o][a],p=f.options.offset,m=f.triggerPoint,g=0,v=null==m;f.element!==f.element.window&&(g=f.adapter.offset()[s.offsetProp]),"function"==typeof p?p=p.apply(f):"string"==typeof p&&(p=parseFloat(p),f.options.offset.indexOf("%")>-1&&(p=Math.ceil(s.contextDimension*p/100))),l=s.contextScroll-s.contextOffset,f.triggerPoint=g+l-p,u=m<s.oldScroll,c=f.triggerPoint>=s.oldScroll,d=u&&c,h=!u&&!c,!v&&d?(f.queueTrigger(s.backward),n[f.group.id]=f.group):!v&&h?(f.queueTrigger(s.forward),n[f.group.id]=f.group):v&&s.oldScroll>=f.triggerPoint&&(f.queueTrigger(s.forward),n[f.group.id]=f.group)}}return r.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in n)n[t].refresh()},e.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){o&&o(),e.refreshAll()},r.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},r.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}var n={vertical:{},horizontal:{}},r=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],r="up"===i||"left"===i;n.sort(r?e:t);for(var o=0,s=n.length;s>o;o+=1){var a=n[o];(a.options.continuous||o===n.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=r.Adapter.inArray(e,this.waypoints),n=i===this.waypoints.length-1;return n?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=r.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=r.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return n[t.axis][t.name]||new i(t)},r.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,n){t[n]=e[n]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],n=arguments[0];return t.isFunction(arguments[0])&&(n=t.extend({},arguments[1]),n.handler=arguments[0]),this.each(function(){var r=t.extend({},n,{element:this});"string"==typeof r.context&&(r.context=t(this).closest(r.context)[0]),i.push(new e(r))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(),!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t.Vimeo=t.Vimeo||{},t.Vimeo.Player=e())}(this,function(){"use strict";function t(t,e){return e={exports:{}},t(e,e.exports),e.exports}function e(t,e,i){var n=T.get(t.element)||{};e in n||(n[e]=[]),n[e].push(i),T.set(t.element,n)}function i(t,e){var i=T.get(t.element)||{};return i[e]||[]}function n(t,e,i){var n=T.get(t.element)||{};if(!n[e])return!0;if(!i)return n[e]=[],T.set(t.element,n),!0;var r=n[e].indexOf(i);return r!==-1&&n[e].splice(r,1),T.set(t.element,n),n[e]&&0===n[e].length}function r(t,e){var r=i(t,e);if(r.length<1)return!1;var o=r.shift();return n(t,e,o),o}function o(t,e){var i=T.get(t);T.set(e,i),T["delete"](t)}function s(t,e){return 0===t.indexOf(e.toLowerCase())?t:""+e.toLowerCase()+t.substr(0,1).toUpperCase()+t.substr(1)}function a(t){return t instanceof window.HTMLElement}function l(t){return!isNaN(parseFloat(t))&&isFinite(t)&&Math.floor(t)==t}function u(t){return/^(https?:)?\/\/(player.)?vimeo.com(?=$|\/)/.test(t)}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.id,i=t.url,n=e||i;if(!n)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(l(n))return"https://vimeo.com/"+n;if(u(n))return n.replace("http:","https:");if(e)throw new TypeError("“"+e+"” is not a valid video id.");throw new TypeError("“"+n+"” is not a vimeo.com url.")}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k.reduce(function(e,i){var n=t.getAttribute("data-vimeo-"+i);return(n||""===n)&&(e[i]=""===n?1:n),e},e)}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(i,n){if(!u(t))throw new TypeError("“"+t+"” is not a vimeo.com url.");var r="https://vimeo.com/api/oembed.json?url="+encodeURIComponent(t);for(var o in e)e.hasOwnProperty(o)&&(r+="&"+o+"="+encodeURIComponent(e[o]));var s="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;s.open("GET",r,!0),s.onload=function(){if(404===s.status)return void n(new Error("“"+e+"” was not found."));if(403===s.status)return void n(new Error("“"+e+"” is not embeddable."));try{var t=JSON.parse(s.responseText);i(t)}catch(e){n(e)}},s.onerror=function(){var t=s.status?" ("+s.status+")":"";n(new Error("There was an error fetching the embed code from Vimeo"+t+"."))},s.send()})}function f(t,e){var i=t.html;if(!e)throw new TypeError("An element must be provided");if(null!==e.getAttribute("data-vimeo-initialized"))return e.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=i,e.appendChild(n.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),i=function(t){"console"in window&&console.error&&console.error("There was an error creating an embed: "+t)};e.forEach(function(t){try{if(null!==t.getAttribute("data-vimeo-defer"))return;var e=d(t),n=c(e);h(n,e).then(function(e){return f(e,t)})["catch"](i)}catch(t){i(t)}})}function m(t){return"string"==typeof t&&(t=JSON.parse(t)),t}function g(t,e,i){if(t.element.contentWindow.postMessage){var n={method:e};void 0!==i&&(n.value=i);var r=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));r>=8&&r<10&&(n=JSON.stringify(n)),t.element.contentWindow.postMessage(n,t.origin)}}function v(t,e){e=m(e);var o=[],s=void 0;if(e.event){if("error"===e.event){var a=i(t,e.data.method);a.forEach(function(i){var r=new Error(e.data.message);r.name=e.data.name,i.reject(r),n(t,e.data.method,i)})}o=i(t,"event:"+e.event),s=e.data}else if(e.method){var l=r(t,e.method);l&&(o.push(l),s=e.value)}o.forEach(function(t){try{if("function"==typeof t)return void t.call(e,s);t.resolve(s)}catch(e){}})}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _="undefined"!=typeof Array.prototype.indexOf,w="undefined"!=typeof window.postMessage;if(!_||!w)throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var x="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},b=(t(function(t,e){!function(t){function e(t,e){function n(t){return this&&this.constructor===n?(this._keys=[],this._values=[],this._itp=[],this.objectOnly=e,void(t&&i.call(this,t))):new n(t)}return e||_(t,"size",{get:g}),t.constructor=n,n.prototype=t,n}function i(t){this.add?t.forEach(this.add,this):t.forEach(function(t){this.set(t[0],t[1])},this)}function n(t){return this.has(t)&&(this._keys.splice(y,1),this._values.splice(y,1),this._itp.forEach(function(t){y<t[0]&&t[0]--})),-1<y}function r(t){return this.has(t)?this._values[y]:void 0}function o(t,e){if(this.objectOnly&&e!==Object(e))throw new TypeError("Invalid value used as weak collection key");if(e!=e||0===e)for(y=t.length;y--&&!w(t[y],e););else y=t.indexOf(e);return-1<y}function s(t){return o.call(this,this._values,t)}function a(t){return o.call(this,this._keys,t)}function l(t,e){return this.has(t)?this._values[y]=e:this._values[this._keys.push(t)-1]=e,this}function u(t){return this.has(t)||this._values.push(t),this}function c(){(this._keys||0).length=this._values.length=0}function d(){return m(this._itp,this._keys)}function h(){return m(this._itp,this._values)}function f(){return m(this._itp,this._keys,this._values)}function p(){return m(this._itp,this._values,this._values)}function m(t,e,i){var n=[0],r=!1;return t.push(n),{next:function(){var o,s=n[0];return!r&&s<e.length?(o=i?[e[s],i[s]]:e[s],n[0]++):(r=!0,t.splice(t.indexOf(n),1)),{done:r,value:o}}}}function g(){return this._values.length}function v(t,e){for(var i=this.entries();;){var n=i.next();if(n.done)break;t.call(e,n.value[1],n.value[0],this)}}var y,_=Object.defineProperty,w=function(t,e){return t===e||t!==t&&e!==e};"undefined"==typeof WeakMap&&(t.WeakMap=e({"delete":n,clear:c,get:r,has:a,set:l},!0)),"undefined"!=typeof Map&&"function"==typeof(new Map).values&&(new Map).values().next||(t.Map=e({"delete":n,has:a,get:r,set:l,keys:d,values:h,entries:f,forEach:v,clear:c})),"undefined"!=typeof Set&&"function"==typeof(new Set).values&&(new Set).values().next||(t.Set=e({has:s,add:u,"delete":n,clear:c,keys:h,values:h,entries:p,forEach:v})),"undefined"==typeof WeakSet&&(t.WeakSet=e({"delete":n,add:u,clear:c,has:s},!0))}("undefined"!=typeof e&&"undefined"!=typeof x?x:window)}),t(function(t){var e="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};!function(e,i,n){i[e]=i[e]||n(),"undefined"!=typeof t&&t.exports?t.exports=i[e]:"function"==typeof define&&define.amd&&define(function(){return i[e]})}("Promise","undefined"!=typeof x?x:x,function(){function t(t,e){f.add(t,e),h||(h=m(f.drain))}function i(t){var i,n="undefined"==typeof t?"undefined":e(t);return null==t||"object"!=n&&"function"!=n||(i=t.then),"function"==typeof i&&i}function n(){for(var t=0;t<this.chain.length;t++)r(this,1===this.state?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function r(t,e,n){var r,o;try{e===!1?n.reject(t.msg):(r=e===!0?t.msg:e.call(void 0,t.msg),r===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=i(r))?o.call(r,n.resolve,n.reject):n.resolve(r))}catch(t){n.reject(t)}}function o(t){var e,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(e=i(t))?a(function(){var t=new l(r);try{e.call(i,function(){o.apply(t,arguments)},function(){s.apply(t,arguments)})}catch(i){s.call(t,i)}}):(r.msg=t,r.state=1,r.chain.length>0&&a(n,r))}catch(a){s.call(new l(r),a)}}}function s(e){var i=this;i.triggered||(i.triggered=!0,i.def&&(i=i.def),i.msg=e,i.state=2,i.chain.length>0&&t(n,i))}function a(t,e,i,n){for(var r=0;r<e.length;r++)!function(r){t.resolve(e[r]).then(function(t){i(r,t)},n)}(r)}function l(t){this.def=t,this.triggered=!1}function u(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function c(t){if("function"!=typeof t)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var e=new u(this);this.then=function(t,r){var o={success:"function"!=typeof t||t,failure:"function"==typeof r&&r};return o.promise=new this.constructor(function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");o.resolve=t,o.reject=e}),e.chain.push(o),0!==e.state&&i(n,e),o.promise},this["catch"]=function(t){return this.then(void 0,t)};try{t.call(void 0,function(t){o.call(e,t)},function(t){s.call(e,t)})}catch(i){s.call(e,i)}}var d,h,f,p=Object.prototype.toString,m="undefined"!=typeof setImmediate?function(t){return setImmediate(t)}:setTimeout;try{Object.defineProperty({},"x",{}),d=function(t,e,i,n){return Object.defineProperty(t,e,{value:i,writable:!0,configurable:n!==!1})}}catch(t){d=function(t,e,i){return t[e]=i,t}}f=function(){function t(t,e){this.fn=t,this.self=e,this.next=void 0}var e,i,n;return{add:function(r,o){n=new t(r,o),i?i.next=n:e=n,i=n,n=void 0},drain:function(){var t=e;for(e=i=h=void 0;t;)t.fn.call(t.self),t=t.next}}}();var g=d({},"constructor",c,!1);return c.prototype=g,d(g,"__NPO__",0,!1),d(c,"resolve",function(t){var i=this;return t&&"object"==("undefined"==typeof t?"undefined":e(t))&&1===t.__NPO__?t:new i(function(e,i){if("function"!=typeof e||"function"!=typeof i)throw TypeError("Not a function");e(t)})}),d(c,"reject",function(t){return new this(function(e,i){if("function"!=typeof e||"function"!=typeof i)throw TypeError("Not a function");i(t)})}),d(c,"all",function(t){var e=this;return"[object Array]"!=p.call(t)?e.reject(TypeError("Not an array")):0===t.length?e.resolve([]):new e(function(i,n){if("function"!=typeof i||"function"!=typeof n)throw TypeError("Not a function");var r=t.length,o=Array(r),s=0;a(e,t,function(t,e){o[t]=e,++s===r&&i(o)},n)})}),d(c,"race",function(t){var e=this;return"[object Array]"!=p.call(t)?e.reject(TypeError("Not an array")):new e(function(i,n){if("function"!=typeof i||"function"!=typeof n)throw TypeError("Not a function");a(e,t,function(t,e){i(e)},n)})}),c})})),T=new WeakMap,k=["id","url","width","maxwidth","height","maxheight","portrait","title","byline","color","autoplay","autopause","loop","responsive"],S=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),C=new WeakMap,A=new WeakMap,P=function(){function t(e){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,t),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"string"==typeof e&&(e=document.getElementById(e)),!a(e))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){var r=e.querySelector("iframe");r&&(e=r)}if("IFRAME"===e.nodeName&&!u(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(C.has(e))return C.get(e);this.element=e,this.origin="*";var s=new b(function(t,r){var s=function(e){if(u(e.origin)&&i.element.contentWindow===e.source){"*"===i.origin&&(i.origin=e.origin);var n=m(e.data),r="event"in n&&"ready"===n.event,o="method"in n&&"ping"===n.method;return r||o?(i.element.setAttribute("data-ready","true"),void t()):void v(i,n)}};if(window.addEventListener?window.addEventListener("message",s,!1):window.attachEvent&&window.attachEvent("onmessage",s),"IFRAME"!==i.element.nodeName){var a=d(e,n),l=c(a);h(l,a).then(function(t){var n=f(t,e);return i.element=n,o(e,n),t})["catch"](function(t){return r(t)})}});return A.set(this,s),C.set(this.element,this),"IFRAME"===this.element.nodeName&&g(this,"ping"),this}return S(t,[{key:"callMethod",value:function(t){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new b(function(r,o){return i.ready().then(function(){e(i,t,{resolve:r,reject:o}),g(i,t,n)})})}},{key:"get",value:function(t){var i=this;return new b(function(n,r){return t=s(t,"get"),i.ready().then(function(){e(i,t,{resolve:n,reject:r}),g(i,t)})})}},{key:"set",value:function(t,i){var n=this;return b.resolve(i).then(function(i){if(t=s(t,"set"),void 0===i||null===i)throw new TypeError("There must be a value to set.");return n.ready().then(function(){return new b(function(r,o){e(n,t,{resolve:r,reject:o}),g(n,t,i)})})})}},{key:"on",value:function(t,n){if(!t)throw new TypeError("You must pass an event name.");if(!n)throw new TypeError("You must pass a callback function.");if("function"!=typeof n)throw new TypeError("The callback must be a function.");var r=i(this,"event:"+t);0===r.length&&this.callMethod("addEventListener",t)["catch"](function(){}),e(this,"event:"+t,n)}},{key:"off",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(e&&"function"!=typeof e)throw new TypeError("The callback must be a function.");var i=n(this,"event:"+t,e);i&&this.callMethod("removeEventListener",t)["catch"](function(t){})}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=A.get(this);return b.resolve(t)}},{key:"addCuePoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:e})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,e){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:e})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}}]),t}();return p(),P}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t){function e(t){return a.raw?t:encodeURIComponent(t)}function i(t){return a.raw?t:decodeURIComponent(t)}function n(t){return e(a.json?JSON.stringify(t):String(t))}function r(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t=decodeURIComponent(t.replace(s," ")),a.json?JSON.parse(t):t}catch(e){}}function o(e,i){var n=a.raw?e:r(e);return t.isFunction(i)?i(n):n}var s=/\+/g,a=t.cookie=function(r,s,l){if(void 0!==s&&!t.isFunction(s)){if(l=t.extend({},a.defaults,l),"number"==typeof l.expires){var u=l.expires,c=l.expires=new Date;c.setTime(+c+864e5*u)}return document.cookie=[e(r),"=",n(s),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var d=r?void 0:{},h=document.cookie?document.cookie.split("; "):[],f=0,p=h.length;f<p;f++){var m=h[f].split("="),g=i(m.shift()),v=m.join("=");if(r&&r===g){d=o(v,s);break}r||void 0===(v=o(v))||(d[g]=v)}return d};a.defaults={},t.removeCookie=function(e,i){return void 0!==t.cookie(e)&&(t.cookie(e,"",t.extend({},i,{expires:-1})),!t.cookie(e))}}),function(t,e){var i,n=t.jQuery||t.Cowboy||(t.Cowboy={});n.throttle=i=function(t,i,r,o){function s(){function n(){l=+new Date,r.apply(u,d)}function s(){a=e}var u=this,c=+new Date-l,d=arguments;o&&!a&&n(),a&&clearTimeout(a),o===e&&c>t?n():i!==!0&&(a=setTimeout(o?s:n,o===e?t-c:t))}var a,l=0;return"boolean"!=typeof i&&(o=r,r=i,i=e),n.guid&&(s.guid=r.guid=r.guid||n.guid++),s},n.debounce=function(t,n,r){return r===e?i(t,n,!1):i(t,r,n!==!1)}}(this);var size={common:{}};size.iOSVersion=function(){if(window.MSStream)return!1;if(!is.ios())return 999;var t,e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return void 0!==e&&null!==e&&(t=[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||0,10)],parseInt(t.join("."),10))},size.iframeVideoTemplate=function(){return'<iframe src="https://player.vimeo.com/video/192798641" width="640" height="360"frameborder="0" webkitallowfullscreen mozallowfullscreenallowfullscreen></iframe>'};var DAnimation={start:0,bezier:function(t,e,i,n){return DAnimation.polyBez([t,e],[i,n])},polyBez:function(t,e){var i=[null,null],n=[null,null],r=[null,null],o=function(o,s){return r[s]=3*t[s],n[s]=3*(e[s]-t[s])-r[s],i[s]=1-r[s]-n[s],o*(r[s]+o*(n[s]+o*i[s]))},s=function(t){return r[0]+t*(2*n[0]+3*i[0]*t)},a=function(t){for(var e,i=t,n=0;++n<14&&(e=o(i,0)-t,!(Math.abs(e)<.001));)i-=e/s(i);return i};return function(t){return o(a(t),1)}}},element,mobile_breakpoint=769,animation=DAnimation.bezier(.47,0,.65,1),slider={element:'[data-slider="default"]',slick:[],init:function(t){var e=t?$(t):$(slider.element);$.each(e,function(t,e){var i=$(e),n={element:i,navigation:!!i.data("slider-navigation"),mobileOnly:!!i.data("slider-mobile"),autoHeight:!!i.data("slider-auto-height"),equalHeight:!!i.data("slider-equal-height"),draggable:!!i.data("slider-draggable"),exposed:""===i.data("slider-exposed"),items:i.data("slider-items")||3,duration:i.data("duration")||4e3,dots:!!i.data("dots"),fade:!!i.data("fade"),vertical:!!i.data("vertical"),appendDots:i.data("append-dots")||"",adaptiveHeight:!!i.data("adaptive-height")};n.responsive=[{breakpoint:600,settings:{arrows:!0,slidesToShow:i.data("slider-items-s")||1}},{breakpoint:1025,settings:{arrows:!0,slidesToShow:i.data("slider-items-m")||2}},{breakpoint:1280,settings:{arrows:!0,slidesToShow:i.data("slider-items-l")||3}},{breakpoint:1600,settings:{arrows:!0,slidesToShow:n.items}}],slider.initSlick(n)})},initSlick:function(t){t.element.slick({
arrows:t.navigation,prevArrow:$(".prev"),nextArrow:$(".next"),slidesToShow:t.items,responsive:t.responsive,infinite:!1,draggable:t.draggable,autoplay:!1,autoplaySpeed:t.duration,fade:t.fade,dots:t.dots,vertical:t.vertical,adaptiveHeight:t.adaptiveHeight}),t.element.init(function(e){if(e.config=t,$(t.element).push(e),$(t.element).removeClass("is-slider-loading"),$(".case-slider").length){new Waypoint({element:$('[data-slider="default"]'),handler:function(t){},offset:"80%"})}}),t.element.on("init, reInit, afterChange",function(t,e,i){}),t.element.on("beforeChange",function(t,e,i,n){})}};slider.init(void 0!==element?element:$(slider.element)),size.common=function(t,e){function i(){function t(t,e){$.cookie(t,e,{path:"/",expires:365}),TweenMax.to(i,.6,{y:-60,opacity:0,ease:Sine.easeInOut,onComplete:function(){i.remove()}})}var i=$(".cookie-message-wrapper");if(TweenMax.set(i,{opacity:0,display:"none"}),TweenMax.to(i,.6,{opacity:1,delay:.6,display:"block",ease:Sine.easeInOut}),i.length>0){var n=$(".cookie-close");n.on("click",function(e){e.preventDefault();var i=n.attr("data-name"),r=n.attr("data-value");t(i,r)})}e.cookie.indexOf("size.cookie.acceptance")>=0&&i.remove()}function n(){}function r(){function i(){var i=$(this).scrollTop();Math.abs(r-i)<=o||(i>r&&i>s?$(".top-bar").removeClass("nav-down").addClass("nav-up"):i+$(t).height()<$(e).height()&&$(".top-bar").removeClass("nav-up").addClass("nav-down"),r=i,r<124?$(".top-bar").removeClass("scrinked"):$(".top-bar").addClass("scrinked"))}var n,r=0,o=5,s=$(".top-bar").outerHeight();$(t).scroll(function(t){n=!0}),setInterval(function(){n&&(i(),n=!1)},250)}function o(){$("[data-scrollmagic]").each(function(t,e){var i=new ScrollMagic,n=$(e).attr("data-offset"),r=new TimelineMax({pause:!0});r.add("start").fromTo($(e),.4,{y:"40px",opacity:0},{y:0,opacity:1,ease:Power2.EaseInOut},"start");new ScrollScene({triggerElement:e,triggerHook:"onEnter",offset:n?n:50}).setTween(r).addTo(i)})}function s(){$("[data-transform], [data-transform-header]").each(function(){var t=$(this).data("from"),e="none",i="none",n="none",r=t.split(", "),o={};r.forEach(function(t){var r=t.split(":");"condition"==r[0]?e=r[1]:"setExpression"==r[0]?i=r[1]:"noExpression"==r[0]?n=r[1]:o[r[0]]=r[1]});var s=o;"none"!=e&&$(this).hasClass(e)?$(this).css(s):"none"==e&&$(this).css(s)})}function a(t){$(t).each(function(){var t=$(this).data("to"),e=t.split(", "),i={},n=0,r=1,o="Power1.easeOut",s="none";e.forEach(function(t){var e=t.split(":");"delay"==e[0]?n=e[1]:"animation"==e[0]?o=e[1]:"duration"==e[0]?r=e[1]:"condition"==e[0]?s=e[1]:i[e[0]]=e[1]}),"none"!=s&&$(this).hasClass(s)?TweenMax.to($(this),r,{css:i,delay:n,ease:o,force3D:!0}):"none"==s&&TweenMax.to($(this),r,{css:i,delay:n,ease:o,force3D:!0})})}function l(){var t=new TimelineMax({paused:!0,repeat:-1,delay:.8,repeatDelay:.3}),e=new TimelineMax({paused:!0,onComplete:function(){t.stop()}});t.add("bg").fromTo($(".loader-logo-bg"),.4,{y:"-100%"},{y:"0%",ease:animation},"bg").to($(".loader-logo"),.3,{autoAlpha:1,ease:animation}).fromTo($(".loader-logo-overlay"),.4,{y:"-100%"},{y:"0%",ease:animation}).to([$(".loader-logo-bg"),$(".loader-logo-overlay")],.3,{y:"100%",ease:animation}),t.play(),setTimeout(function(){e.add("after").to($(".loader-logo-wrapper"),.3,{autoAlpha:0},"after").fromTo($(".loader-bg"),.9,{y:"0%"},{y:"100%",ease:Expo.easeOut,onComplete:function(){$(".loader").remove()}},"after-1").fromTo($(".top-bar").find("nav"),.5,{autoAlpha:0,y:"-20px",ease:Expo.easeOut},{autoAlpha:1,y:"0px"},"-=0.8").fromTo($(".header").find("h2"),.4,{autoAlpha:0,y:"-20px",ease:Expo.easeOut},{autoAlpha:1,y:"0px"},"-=0.7").staggerFromTo($(".stage-bottom"),.5,{autoAlpha:0,y:"20px",ease:Expo.easeOut},{autoAlpha:1,y:"0px"},.1,"-=0.68"),e.play(),size.common.animate("[data-transform]"),size.common.animate("[data-transform-header]")},2200)}function u(){$('[data-js="mobile-nav-toggle"]').on("click",function(){var t=$(this);"off"==t.attr("data-status")?(t.attr("data-status","on"),t.addClass("is-active"),$("body").addClass("mobile-menu-active"),c()):(t.attr("data-status","off"),t.removeClass("is-active"),$("body").removeClass("mobile-menu-active"))})}function c(){var t,e,i,n="Power3.easeOut";t=$(".top-bar nav a"),e=new TimelineLite({paused:!0}),i=.5,e.kill(),e.add([TweenMax.staggerFromTo(t,i,{x:-50,opacity:0},{x:0,opacity:1,ease:n},.1)]),e.restart()}function d(){var t=new Vimeo.Player("reel-video");$(".btn--play").on("click",function(e){e.preventDefault();var i=$(this);t.play(),i.addClass("is-hidden"),$(".video-poster").addClass("is-hidden"),TweenMax.to(i,.3,{autoAlpha:0}),TweenMax.to($(".video-poster"),.3,{autoAlpha:0})}),t.on("play",function(){$(".btn--play").addClass("is-hidden"),$(".video-poster").addClass("is-hidden"),TweenMax.to($(".btn--play"),.3,{autoAlpha:0}),TweenMax.to($(".video-poster"),.3,{autoAlpha:0})}),t.on("pause",function(){$(".btn--play").removeClass("is-hidden"),$(".video-poster").removeClass("is-hidden"),TweenMax.to($(".btn--play"),.3,{autoAlpha:1}),TweenMax.to($(".video-poster"),.3,{autoAlpha:1})}),t.on("ended",function(){$(".btn--play").removeClass("is-hidden"),$(".video-poster").removeClass("is-hidden"),TweenMax.to($(".btn--play"),.3,{autoAlpha:1}),TweenMax.to($(".video-poster"),.3,{autoAlpha:1})})}function h(){function i(){l="right",n(),r(),c=0,"undefined"!=typeof game_loop&&clearInterval(game_loop),game_loop=setInterval(o,60)}function n(){var t=5;d=[];for(var e=t-1;e>=0;e--)d.push({x:e,y:0})}function r(){u={x:Math.round(Math.random()*(p-g)/g),y:Math.round(Math.random()*(m-g)/g)}}function o(){f.fillStyle="white",f.fillRect(0,0,p,m),f.strokeStyle="black",f.strokeRect(0,0,p,m);var t=d[0].x,e=d[0].y;if("right"==l?t++:"left"==l?t--:"up"==l?e--:"down"==l&&e++,t==-1||t==p/g||e==-1||e==m/g||a(t,e,d))return void i();if(t==u.x&&e==u.y){var n={x:t,y:e};c++,r()}else{var n=d.pop();n.x=t,n.y=e}d.unshift(n);for(var o=0;o<d.length;o++){var h=d[o];s(h.x,h.y)}s(u.x,u.y);var v="Score: "+c;f.fillText(v,5,m-5)}function s(t,e){f.fillStyle="blue",f.fillRect(t*g,e*g,g,g),f.strokeStyle="white",f.strokeRect(t*g,e*g,g,g)}function a(t,e,i){for(var n=0;n<i.length;n++)if(i[n].x==t&&i[n].y==e)return!0;return!1}t.addEventListener("keydown",function(t){[32,37,38,39,40].indexOf(t.keyCode)>-1&&t.preventDefault()},!1);var l,u,c,d,h=$("#canvas")[0],f=h.getContext("2d"),p=$("#canvas").width(),m=$("#canvas").height(),g=10;i(),$(e).keydown(function(t){var e=t.which;"37"==e&&"right"!=l?l="left":"38"==e&&"down"!=l?l="up":"39"==e&&"left"!=l?l="right":"40"==e&&"up"!=l&&(l="down")})}function f(i){console.log(i);var n=i||$(e),r=n.find(".header:first"),o=n.find("header:first"),s=r.length>0?r.innerHeight():o.innerHeight(),a=size.iOSVersion();a&&a<8&&(s=$(t).innerHeight(),TweenMax.to(o,.1,{clearProps:"all",onComplete:function(){TweenMax.to(o,0,{height:s})}}),TweenMax.to(r,.1,{clearProps:"all",onComplete:function(){TweenMax.to(r,0,{height:s})}}),TweenMax.to($(".header.case"),.1,{clearProps:"all",onComplete:function(){TweenMax.to($(".header.case"),0,{height:s/2})}}))}function p(t){is.iphone()&&is.truthy(t)?$("body").addClass("is-iphone-portrait"):$("body").removeClass("is-iphone-portrait")}function m(){$('[data-namespace="case"]').length>0&&$('[data-namespace="case"]').find(".is-video").find("iframe").attr("src",function(){return $(this).data("src")})}return{mobileCheck:p,scrolling:r,animationScrollMagic:o,start:s,animate:a,loader:l,mobileMenu:u,cookiesPlugin:i,reel:d,snake:h,calcVH:f,viewWorkInViewport:n,lazyLoadReel:m}}(window,document),$(function(){$(document).load().scrollTop(0),size.common.animationScrollMagic(),size.common.start(),size.common.loader(),size.common.mobileMenu(),size.common.cookiesPlugin(),size.common.viewWorkInViewport(),size.common.lazyLoadReel(),barbaManager(),$("#reel-video").length&&size.common.reel(),$("#canvas").length>0&&size.common.snake(),window.onresize=function(t){$("#canvas").length>0&&size.common.snake()},$(".btn--more").on("click",function(t){t.preventDefault()});var t=!1;window.innerHeight>window.innerWidth&&(t=!0),size.common.mobileCheck(t),size.common.calcVH(),$(window).on("orientationchange",$.debounce(20,function(){t=window.innerHeight>window.innerWidth,size.common.mobileCheck(t),size.common.calcVH(t)})),$('[data-namespace="case"]').length>0&&$('[data-namespace="case"]').find(".is-video").append(size.iframeVideoTemplate())});
|
import React, { Component } from "react";
import { Menu, Dropdown } from "antd";
import Reset from "./Function/Reset";
import Search from "./Function/Search";
import History from "./Function/History";
import SitDown from "./Function/SitDown";
import "./common.css";
const menu = React.createElement(Menu, null, React.createElement(Menu.Item, null, React.createElement(Reset, null)), React.createElement(Menu.Item, null, React.createElement(Search, null)), React.createElement(Menu.Divider, null), React.createElement(Menu.Item, null, React.createElement(History, null)), React.createElement(Menu.Item, null, React.createElement(SitDown, null)));
class Function extends Component {
render() {
return React.createElement(Dropdown, {
overlay: menu,
trigger: ["click"],
overlayClassName: "nice-overlay"
}, React.createElement("a", {
id: "nice-menu-function",
className: "nice-menu-link",
href: "#"
}, "\u529F\u80FD"));
}
}
export default Function;
|
const connection = require('../database/connection')
module.exports = {
async index(request, response) {
const ong_id = request.headers.authorization
const incidents = await connection('incidents')
.where('ong_id', ong_id).select('*');
return response.json(incidents);
}
};
|
var mod_http = require('http')
,mod_net = require('net')
,mod_repl = require('repl')
,c = console.log
,services = {}
function registerService(sid) {
c('registerService ' + sid);
return loadModule(sid);
}
function serviceById(id) {
return services[id];
}
function loadModule(id) {
var p = './' + id + '.js';
// for file paths as above, resolve is actually not required
if (typeof require.cache[require.resolve(p)] !== 'undefined') {
services[id].component.stop();
delete require.cache[require.resolve(p)];
}
var r = require(p);
services[id] = r; // here, not registerService, so modules can access others at init() time
r.component.init(module.exports);
return r;
}
mod_net.createServer(function (socket) {
var r = mod_repl.start("RainShell> ", socket);
r.context.registerService = registerService;
r.context.serviceById = serviceById;
r.context.r = registerService;
}).listen(1338);
exports.serviceById = serviceById
|
'use strict';
describe('$http', function() {
var callback, mockedCookies;
var customParamSerializer = function(params) {
return Object.keys(params).join('_');
};
beforeEach(function() {
callback = jasmine.createSpy('done');
mockedCookies = {};
module({
$$cookieReader: function() {
return mockedCookies;
}
});
});
beforeEach(module({
customParamSerializer: customParamSerializer
}));
beforeEach(module(function($exceptionHandlerProvider) {
$exceptionHandlerProvider.mode('log');
}));
afterEach(inject(function($exceptionHandler, $httpBackend, $rootScope) {
forEach($exceptionHandler.errors, function(e) {
dump('Unhandled exception: ', e);
});
if ($exceptionHandler.errors.length) {
throw 'Unhandled exceptions trapped in $exceptionHandler!';
}
$rootScope.$digest();
$httpBackend.verifyNoOutstandingExpectation();
}));
describe('$httpProvider', function() {
describe('interceptors', function() {
it('should chain request, requestReject, response and responseReject interceptors', function() {
module(function($httpProvider) {
var savedConfig, savedResponse;
$httpProvider.interceptors.push(function($q) {
return {
request: function(config) {
config.url += '/1';
savedConfig = config;
return $q.reject('/2');
}
};
});
$httpProvider.interceptors.push(function($q) {
return {
requestError: function(error) {
savedConfig.url += error;
return $q.when(savedConfig);
}
};
});
$httpProvider.interceptors.push(function() {
return {
responseError: function(rejection) {
savedResponse.data += rejection;
return savedResponse;
}
};
});
$httpProvider.interceptors.push(function($q) {
return {
response: function(response) {
response.data += ':1';
savedResponse = response;
return $q.reject(':2');
}
};
});
});
inject(function($http, $httpBackend, $rootScope) {
var response;
$httpBackend.expect('GET', '/url/1/2').respond('response');
$http({method: 'GET', url: '/url'}).then(function(r) {
response = r;
});
$rootScope.$apply();
$httpBackend.flush();
expect(response.data).toEqual('response:1:2');
});
});
it('should verify order of execution', function() {
module(function($httpProvider) {
$httpProvider.interceptors.push(function($q) {
return {
request: function(config) {
config.url += '/outer';
return config;
},
response: function(response) {
response.data = '{' + response.data + '} outer';
return response;
}
};
});
$httpProvider.interceptors.push(function($q) {
return {
request: function(config) {
config.url += '/inner';
return config;
},
response: function(response) {
response.data = '{' + response.data + '} inner';
return response;
}
};
});
});
inject(function($http, $httpBackend) {
var response;
$httpBackend.expect('GET', '/url/outer/inner').respond('response');
$http({method: 'GET', url: '/url'}).then(function(r) {
response = r;
});
$httpBackend.flush();
expect(response.data).toEqual('{{response} inner} outer');
});
});
});
describe('request interceptors', function() {
it('should pass request config as a promise', function() {
var run = false;
module(function($httpProvider) {
$httpProvider.interceptors.push(function() {
return {
request: function(config) {
expect(config.url).toEqual('/url');
expect(config.data).toEqual({one: "two"});
expect(config.headers.foo).toEqual('bar');
run = true;
return config;
}
};
});
});
inject(function($http, $httpBackend, $rootScope) {
$httpBackend.expect('POST', '/url').respond('');
$http({method: 'POST', url: '/url', data: {one: 'two'}, headers: {foo: 'bar'}});
$rootScope.$apply();
expect(run).toEqual(true);
});
});
it('should allow manipulation of request', function() {
module(function($httpProvider) {
$httpProvider.interceptors.push(function() {
return {
request: function(config) {
config.url = '/intercepted';
config.headers.foo = 'intercepted';
return config;
}
};
});
});
inject(function($http, $httpBackend, $rootScope) {
$httpBackend.expect('GET', '/intercepted', null, function(headers) {
return headers.foo === 'intercepted';
}).respond('');
$http.get('/url');
$rootScope.$apply();
});
});
it('should allow replacement of the headers object', function() {
module(function($httpProvider) {
$httpProvider.interceptors.push(function() {
return {
request: function(config) {
config.headers = {foo: 'intercepted'};
return config;
}
};
});
});
inject(function($http, $httpBackend, $rootScope) {
$httpBackend.expect('GET', '/url', null, function(headers) {
return angular.equals(headers, {foo: 'intercepted'});
}).respond('');
$http.get('/url');
$rootScope.$apply();
});
});
it('should reject the http promise if an interceptor fails', function() {
var reason = new Error('interceptor failed');
module(function($httpProvider) {
$httpProvider.interceptors.push(function($q) {
return {
request: function(promise) {
return $q.reject(reason);
}
};
});
});
inject(function($http, $httpBackend, $rootScope) {
var success = jasmine.createSpy(), error = jasmine.createSpy();
$http.get('/url').then(success, error);
$rootScope.$apply();
expect(success).not.toHaveBeenCalled();
expect(error).toHaveBeenCalledWith(reason);
});
});
it('should not manipulate the passed-in config', function() {
module(function($httpProvider) {
$httpProvider.interceptors.push(function() {
return {
request: function(config) {
config.url = '/intercepted';
config.headers.foo = 'intercepted';
return config;
}
};
});
});
inject(function($http, $httpBackend, $rootScope) {
var config = { headers: { foo: 'bar'} };
var configCopy = angular.copy(config);
$httpBackend.expect('GET', '/intercepted').respond('');
$http.get('/url', config);
$rootScope.$apply();
expect(config).toEqual(configCopy);
$httpBackend.expect('POST', '/intercepted').respond('');
$http.post('/url', {bar: 'baz'}, config);
$rootScope.$apply();
expect(config).toEqual(configCopy);
});
});
it('should support interceptors defined as services', function() {
module(function($provide, $httpProvider) {
$provide.factory('myInterceptor', function() {
return {
request: function(config) {
config.url = '/intercepted';
return config;
}
};
});
$httpProvider.interceptors.push('myInterceptor');
});
inject(function($http, $httpBackend, $rootScope) {
$httpBackend.expect('POST', '/intercepted').respond('');
$http.post('/url');
$rootScope.$apply();
});
});
it('should support complex interceptors based on promises', function() {
module(function($provide, $httpProvider) {
$provide.factory('myInterceptor', function($q, $rootScope) {
return {
request: function(config) {
return $q.when('/intercepted').then(function(intercepted) {
config.url = intercepted;
return config;
});
}
};
});
$httpProvider.interceptors.push('myInterceptor');
});
inject(function($http, $httpBackend, $rootScope) {
$httpBackend.expect('POST', '/intercepted').respond('');
$http.post('/two');
$rootScope.$apply();
});
});
});
});
describe('the instance', function() {
var $httpBackend, $http, $rootScope;
beforeEach(inject(['$httpBackend', '$http', '$rootScope', function($hb, $h, $rs) {
$httpBackend = $hb;
$http = $h;
$rootScope = $rs;
spyOn($rootScope, '$apply').andCallThrough();
}]));
it('should throw error if the request configuration is not an object', function() {
expect(function() {
$http('/url');
}).toThrowMinErr('$http','badreq', 'Http request configuration must be an object. Received: /url');
});
it('should send GET requests if no method specified', function() {
$httpBackend.expect('GET', '/url').respond('');
$http({url: '/url'});
});
it('should do basic request', function() {
$httpBackend.expect('GET', '/url').respond('');
$http({url: '/url', method: 'GET'});
});
it('should pass data if specified', function() {
$httpBackend.expect('POST', '/url', 'some-data').respond('');
$http({url: '/url', method: 'POST', data: 'some-data'});
});
describe('params', function() {
it('should do basic request with params and encode', function() {
$httpBackend.expect('GET', '/url?a%3D=%3F%26&b=2').respond('');
$http({url: '/url', params: {'a=':'?&', b:2}, method: 'GET'});
});
it('should merge params if url contains some already', function() {
$httpBackend.expect('GET', '/url?c=3&a=1&b=2').respond('');
$http({url: '/url?c=3', params: {a:1, b:2}, method: 'GET'});
});
it('should jsonify objects in params map', function() {
$httpBackend.expect('GET', '/url?a=1&b=%7B%22c%22:3%7D').respond('');
$http({url: '/url', params: {a:1, b:{c:3}}, method: 'GET'});
});
it('should expand arrays in params map', function() {
$httpBackend.expect('GET', '/url?a=1&a=2&a=3').respond('');
$http({url: '/url', params: {a: [1,2,3]}, method: 'GET'});
});
it('should not encode @ in url params', function() {
//encodeURIComponent is too agressive and doesn't follow http://www.ietf.org/rfc/rfc3986.txt
//with regards to the character set (pchar) allowed in path segments
//so we need this test to make sure that we don't over-encode the params and break stuff
//like buzz api which uses @self
$httpBackend.expect('GET', '/Path?!do%26h=g%3Da+h&:bar=$baz@1').respond('');
$http({url: '/Path', params: {':bar': '$baz@1', '!do&h': 'g=a h'}, method: 'GET'});
});
it('should not add question mark when params is empty', function() {
$httpBackend.expect('GET', '/url').respond('');
$http({url: '/url', params: {}, method: 'GET'});
});
it('should not double quote dates', function() {
$httpBackend.expect('GET', '/url?date=2014-07-15T17:30:00.000Z').respond('');
$http({url: '/url', params: {date:new Date('2014-07-15T17:30:00.000Z')}, method: 'GET'});
});
describe('custom params serialization', function() {
it('should allow specifying custom paramSerializer as function', function() {
$httpBackend.expect('GET', '/url?foo_bar').respond('');
$http({url: '/url', params: {foo: 'fooVal', bar: 'barVal'}, paramSerializer: customParamSerializer});
});
it('should allow specifying custom paramSerializer as function from DI', function() {
$httpBackend.expect('GET', '/url?foo_bar').respond('');
$http({url: '/url', params: {foo: 'fooVal', bar: 'barVal'}, paramSerializer: 'customParamSerializer'});
});
});
});
describe('callbacks', function() {
it('should pass in the response object when a request is successful', function() {
$httpBackend.expect('GET', '/url').respond(207, 'my content', {'content-encoding': 'smurf'});
$http({url: '/url', method: 'GET'}).then(function(response) {
expect(response.data).toBe('my content');
expect(response.status).toBe(207);
expect(response.headers()).toEqual({'content-encoding': 'smurf'});
expect(response.config.url).toBe('/url');
callback();
});
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
it('should pass statusText in response object when a request is successful', function() {
$httpBackend.expect('GET', '/url').respond(200, 'SUCCESS', {}, 'OK');
$http({url: '/url', method: 'GET'}).then(function(response) {
expect(response.statusText).toBe('OK');
callback();
});
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
it('should pass statusText in response object when a request fails', function() {
$httpBackend.expect('GET', '/url').respond(404, 'ERROR', {}, 'Not Found');
$http({url: '/url', method: 'GET'}).then(null, function(response) {
expect(response.statusText).toBe('Not Found');
callback();
});
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
it('should pass in the response object when a request failed', function() {
$httpBackend.expect('GET', '/url').respond(543, 'bad error', {'request-id': '123'});
$http({url: '/url', method: 'GET'}).then(null, function(response) {
expect(response.data).toBe('bad error');
expect(response.status).toBe(543);
expect(response.headers()).toEqual({'request-id': '123'});
expect(response.config.url).toBe('/url');
callback();
});
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
describe('success', function() {
it('should allow http specific callbacks to be registered via "success"', function() {
$httpBackend.expect('GET', '/url').respond(207, 'my content', {'content-encoding': 'smurf'});
$http({url: '/url', method: 'GET'}).success(function(data, status, headers, config) {
expect(data).toBe('my content');
expect(status).toBe(207);
expect(headers()).toEqual({'content-encoding': 'smurf'});
expect(config.url).toBe('/url');
callback();
});
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
it('should return the original http promise', function() {
$httpBackend.expect('GET', '/url').respond(207, 'my content', {'content-encoding': 'smurf'});
var httpPromise = $http({url: '/url', method: 'GET'});
expect(httpPromise.success(callback)).toBe(httpPromise);
});
it('should error if the callback is not a function', function() {
expect(function() {
$http({url: '/url', method: 'GET'}).success();
}).toThrowMinErr('ng', 'areq');
expect(function() {
$http({url: '/url', method: 'GET'}).success(undefined);
}).toThrowMinErr('ng', 'areq');
expect(function() {
$http({url: '/url', method: 'GET'}).success(null);
}).toThrowMinErr('ng', 'areq');
expect(function() {
$http({url: '/url', method: 'GET'}).success({});
}).toThrowMinErr('ng', 'areq');
expect(function() {
$http({url: '/url', method: 'GET'}).success([]);
}).toThrowMinErr('ng', 'areq');
expect(function() {
$http({url: '/url', method: 'GET'}).success('error');
}).toThrowMinErr('ng', 'areq');
});
});
describe('error', function() {
it('should allow http specific callbacks to be registered via "error"', function() {
$httpBackend.expect('GET', '/url').respond(543, 'bad error', {'request-id': '123'});
$http({url: '/url', method: 'GET'}).error(function(data, status, headers, config) {
expect(data).toBe('bad error');
expect(status).toBe(543);
expect(headers()).toEqual({'request-id': '123'});
expect(config.url).toBe('/url');
callback();
});
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
it('should return the original http promise', function() {
$httpBackend.expect('GET', '/url').respond(543, 'bad error', {'request-id': '123'});
var httpPromise = $http({url: '/url', method: 'GET'});
expect(httpPromise.error(callback)).toBe(httpPromise);
});
it('should error if the callback is not a function', function() {
expect(function() {
$http({url: '/url', method: 'GET'}).error();
}).toThrowMinErr('ng', 'areq');
expect(function() {
$http({url: '/url', method: 'GET'}).error(undefined);
}).toThrowMinErr('ng', 'areq');
expect(function() {
$http({url: '/url', method: 'GET'}).error(null);
}).toThrowMinErr('ng', 'areq');
expect(function() {
$http({url: '/url', method: 'GET'}).error({});
}).toThrowMinErr('ng', 'areq');
expect(function() {
$http({url: '/url', method: 'GET'}).error([]);
}).toThrowMinErr('ng', 'areq');
expect(function() {
$http({url: '/url', method: 'GET'}).error('error');
}).toThrowMinErr('ng', 'areq');
});
});
});
describe('response headers', function() {
it('should return single header', function() {
$httpBackend.expect('GET', '/url').respond('', {'date': 'date-val'});
callback.andCallFake(function(r) {
expect(r.headers('date')).toBe('date-val');
});
$http({url: '/url', method: 'GET'}).then(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
it('should return null when single header does not exist', function() {
$httpBackend.expect('GET', '/url').respond('', {'Some-Header': 'Fake'});
callback.andCallFake(function(r) {
r.headers(); // we need that to get headers parsed first
expect(r.headers('nothing')).toBe(null);
});
$http({url: '/url', method: 'GET'}).then(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
it('should return all headers as object', function() {
$httpBackend.expect('GET', '/url').respond('', {
'content-encoding': 'gzip',
'server': 'Apache'
});
callback.andCallFake(function(r) {
expect(r.headers()).toEqual({'content-encoding': 'gzip', 'server': 'Apache'});
});
$http({url: '/url', method: 'GET'}).then(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
it('should return empty object for jsonp request', function() {
callback.andCallFake(function(r) {
expect(r.headers()).toEqual({});
});
$httpBackend.expect('JSONP', '/some').respond(200);
$http({url: '/some', method: 'JSONP'}).then(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
});
describe('response headers parser', function() {
/* global parseHeaders: false */
it('should parse basic', function() {
var parsed = parseHeaders(
'date: Thu, 04 Aug 2011 20:23:08 GMT\n' +
'content-encoding: gzip\n' +
'transfer-encoding: chunked\n' +
'x-cache-info: not cacheable; response has already expired, not cacheable; response has already expired\n' +
'connection: Keep-Alive\n' +
'x-backend-server: pm-dekiwiki03\n' +
'pragma: no-cache\n' +
'server: Apache\n' +
'x-frame-options: DENY\n' +
'content-type: text/html; charset=utf-8\n' +
'vary: Cookie, Accept-Encoding\n' +
'keep-alive: timeout=5, max=1000\n' +
'expires: Thu: , 19 Nov 1981 08:52:00 GMT\n');
expect(parsed['date']).toBe('Thu, 04 Aug 2011 20:23:08 GMT');
expect(parsed['content-encoding']).toBe('gzip');
expect(parsed['transfer-encoding']).toBe('chunked');
expect(parsed['keep-alive']).toBe('timeout=5, max=1000');
});
it('should parse lines without space after colon', function() {
expect(parseHeaders('key:value').key).toBe('value');
});
it('should trim the values', function() {
expect(parseHeaders('key: value ').key).toBe('value');
});
it('should allow headers without value', function() {
expect(parseHeaders('key:').key).toBe('');
});
it('should merge headers with same key', function() {
expect(parseHeaders('key: a\nkey:b\n').key).toBe('a, b');
});
it('should normalize keys to lower case', function() {
expect(parseHeaders('KeY: value').key).toBe('value');
});
it('should parse CRLF as delimiter', function() {
// IE does use CRLF
expect(parseHeaders('a: b\r\nc: d\r\n')).toEqual({a: 'b', c: 'd'});
expect(parseHeaders('a: b\r\nc: d\r\n').a).toBe('b');
});
it('should parse tab after semi-colon', function() {
expect(parseHeaders('a:\tbb').a).toBe('bb');
expect(parseHeaders('a: \tbb').a).toBe('bb');
});
it('should parse multiple values for the same header', function() {
expect(parseHeaders('key:value1\nkey:value2').key).toBe('value1, value2');
});
});
describe('request headers', function() {
it('should send custom headers', function() {
$httpBackend.expect('GET', '/url', undefined, function(headers) {
return headers['Custom'] == 'header';
}).respond('');
$http({url: '/url', method: 'GET', headers: {
'Custom': 'header'
}});
$httpBackend.flush();
});
it('should set default headers for GET request', function() {
$httpBackend.expect('GET', '/url', undefined, function(headers) {
return headers['Accept'] == 'application/json, text/plain, */*';
}).respond('');
$http({url: '/url', method: 'GET', headers: {}});
$httpBackend.flush();
});
it('should set default headers for POST request', function() {
$httpBackend.expect('POST', '/url', 'messageBody', function(headers) {
return headers['Accept'] == 'application/json, text/plain, */*' &&
headers['Content-Type'] == 'application/json;charset=utf-8';
}).respond('');
$http({url: '/url', method: 'POST', headers: {}, data: 'messageBody'});
$httpBackend.flush();
});
it('should set default headers for PUT request', function() {
$httpBackend.expect('PUT', '/url', 'messageBody', function(headers) {
return headers['Accept'] == 'application/json, text/plain, */*' &&
headers['Content-Type'] == 'application/json;charset=utf-8';
}).respond('');
$http({url: '/url', method: 'PUT', headers: {}, data: 'messageBody'});
$httpBackend.flush();
});
it('should set default headers for PATCH request', function() {
$httpBackend.expect('PATCH', '/url', 'messageBody', function(headers) {
return headers['Accept'] == 'application/json, text/plain, */*' &&
headers['Content-Type'] == 'application/json;charset=utf-8';
}).respond('');
$http({url: '/url', method: 'PATCH', headers: {}, data: 'messageBody'});
$httpBackend.flush();
});
it('should set default headers for custom HTTP method', function() {
$httpBackend.expect('FOO', '/url', undefined, function(headers) {
return headers['Accept'] == 'application/json, text/plain, */*';
}).respond('');
$http({url: '/url', method: 'FOO', headers: {}});
$httpBackend.flush();
});
it('should override default headers with custom', function() {
$httpBackend.expect('POST', '/url', 'messageBody', function(headers) {
return headers['Accept'] == 'Rewritten' &&
headers['Content-Type'] == 'Rewritten';
}).respond('');
$http({url: '/url', method: 'POST', data: 'messageBody', headers: {
'Accept': 'Rewritten',
'Content-Type': 'Rewritten'
}});
$httpBackend.flush();
});
it('should delete default headers if custom header function returns null', function() {
$httpBackend.expect('POST', '/url', 'messageBody', function(headers) {
return !('Accept' in headers);
}).respond('');
$http({url: '/url', method: 'POST', data: 'messageBody', headers: {
'Accept': function() { return null; }
}});
$httpBackend.flush();
});
it('should override default headers with custom in a case insensitive manner', function() {
$httpBackend.expect('POST', '/url', 'messageBody', function(headers) {
return headers['accept'] == 'Rewritten' &&
headers['content-type'] == 'Content-Type Rewritten' &&
isUndefined(headers['Accept']) &&
isUndefined(headers['Content-Type']);
}).respond('');
$http({url: '/url', method: 'POST', data: 'messageBody', headers: {
'accept': 'Rewritten',
'content-type': 'Content-Type Rewritten'
}});
$httpBackend.flush();
});
it('should not set XSRF cookie for cross-domain requests', inject(function($browser) {
mockedCookies['XSRF-TOKEN'] = 'secret';
$browser.url('http://host.com/base');
$httpBackend.expect('GET', 'http://www.test.com/url', undefined, function(headers) {
return isUndefined(headers['X-XSRF-TOKEN']);
}).respond('');
$http({url: 'http://www.test.com/url', method: 'GET', headers: {}});
$httpBackend.flush();
}));
it('should not send Content-Type header if request data/body is undefined', function() {
$httpBackend.expect('POST', '/url', undefined, function(headers) {
return !headers.hasOwnProperty('Content-Type');
}).respond('');
$httpBackend.expect('POST', '/url2', undefined, function(headers) {
return !headers.hasOwnProperty('content-type');
}).respond('');
$http({url: '/url', method: 'POST'});
$http({url: '/url2', method: 'POST', headers: {'content-type': 'Rewritten'}});
$httpBackend.flush();
});
it('should NOT delete Content-Type header if request data/body is set by request transform', function() {
$httpBackend.expect('POST', '/url', {'one': 'two'}, function(headers) {
return headers['Content-Type'] == 'application/json;charset=utf-8';
}).respond('');
$http({
url: '/url',
method: 'POST',
transformRequest: function(data) {
data = {'one': 'two'};
return data;
}
});
$httpBackend.flush();
});
it('should set the XSRF cookie into a XSRF header', inject(function() {
function checkXSRF(secret, header) {
return function(headers) {
return headers[header || 'X-XSRF-TOKEN'] == secret;
};
}
mockedCookies['XSRF-TOKEN'] = 'secret';
mockedCookies['aCookie'] = 'secret2';
$httpBackend.expect('GET', '/url', undefined, checkXSRF('secret')).respond('');
$httpBackend.expect('POST', '/url', undefined, checkXSRF('secret')).respond('');
$httpBackend.expect('PUT', '/url', undefined, checkXSRF('secret')).respond('');
$httpBackend.expect('DELETE', '/url', undefined, checkXSRF('secret')).respond('');
$httpBackend.expect('GET', '/url', undefined, checkXSRF('secret', 'aHeader')).respond('');
$httpBackend.expect('GET', '/url', undefined, checkXSRF('secret2')).respond('');
$http({url: '/url', method: 'GET'});
$http({url: '/url', method: 'POST', headers: {'S-ome': 'Header'}});
$http({url: '/url', method: 'PUT', headers: {'Another': 'Header'}});
$http({url: '/url', method: 'DELETE', headers: {}});
$http({url: '/url', method: 'GET', xsrfHeaderName: 'aHeader'});
$http({url: '/url', method: 'GET', xsrfCookieName: 'aCookie'});
$httpBackend.flush();
}));
it('should send execute result if header value is function', function() {
var headerConfig = {'Accept': function() { return 'Rewritten'; }};
function checkHeaders(headers) {
return headers['Accept'] == 'Rewritten';
}
$httpBackend.expect('GET', '/url', undefined, checkHeaders).respond('');
$httpBackend.expect('POST', '/url', undefined, checkHeaders).respond('');
$httpBackend.expect('PUT', '/url', undefined, checkHeaders).respond('');
$httpBackend.expect('PATCH', '/url', undefined, checkHeaders).respond('');
$httpBackend.expect('DELETE', '/url', undefined, checkHeaders).respond('');
$http({url: '/url', method: 'GET', headers: headerConfig});
$http({url: '/url', method: 'POST', headers: headerConfig});
$http({url: '/url', method: 'PUT', headers: headerConfig});
$http({url: '/url', method: 'PATCH', headers: headerConfig});
$http({url: '/url', method: 'DELETE', headers: headerConfig});
$httpBackend.flush();
});
it('should expose a config object to header functions', function() {
var config = {
foo: 'Rewritten',
headers: {'Accept': function(config) {
return config.foo;
}}
};
$httpBackend.expect('GET', '/url', undefined, {Accept: 'Rewritten'}).respond('');
$http.get('/url', config);
$httpBackend.flush();
});
it('should not allow modifications to a config object in header functions', function() {
var config = {
headers: {'Accept': function(config) {
config.foo = 'bar';
return 'Rewritten';
}}
};
$httpBackend.expect('GET', '/url', undefined, {Accept: 'Rewritten'}).respond('');
$http.get('/url', config);
$httpBackend.flush();
expect(config.foo).toBeUndefined();
});
it('should check the cache before checking the XSRF cookie', inject(function($cacheFactory) {
var testCache = $cacheFactory('testCache');
spyOn(testCache, 'get').andCallFake(function() {
mockedCookies['XSRF-TOKEN'] = 'foo';
});
$httpBackend.expect('GET', '/url', undefined, function(headers) {
return headers['X-XSRF-TOKEN'] === 'foo';
}).respond('');
$http({url: '/url', method: 'GET', cache: testCache});
$httpBackend.flush();
}));
});
describe('short methods', function() {
function checkHeader(name, value) {
return function(headers) {
return headers[name] == value;
};
}
it('should have get()', function() {
$httpBackend.expect('GET', '/url').respond('');
$http.get('/url');
});
it('get() should allow config param', function() {
$httpBackend.expect('GET', '/url', undefined, checkHeader('Custom', 'Header')).respond('');
$http.get('/url', {headers: {'Custom': 'Header'}});
});
it('should handle empty response header', function() {
$httpBackend.expect('GET', '/url', undefined)
.respond(200, '', { 'Custom-Empty-Response-Header': '', 'Constructor': '' });
$http.get('/url').then(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
var headers = callback.mostRecentCall.args[0].headers;
expect(headers('custom-empty-response-Header')).toEqual('');
expect(headers('ToString')).toBe(null);
expect(headers('Constructor')).toBe('');
});
it('should have delete()', function() {
$httpBackend.expect('DELETE', '/url').respond('');
$http['delete']('/url');
});
it('delete() should allow config param', function() {
$httpBackend.expect('DELETE', '/url', undefined, checkHeader('Custom', 'Header')).respond('');
$http['delete']('/url', {headers: {'Custom': 'Header'}});
});
it('should have head()', function() {
$httpBackend.expect('HEAD', '/url').respond('');
$http.head('/url');
});
it('head() should allow config param', function() {
$httpBackend.expect('HEAD', '/url', undefined, checkHeader('Custom', 'Header')).respond('');
$http.head('/url', {headers: {'Custom': 'Header'}});
});
it('should have post()', function() {
$httpBackend.expect('POST', '/url', 'some-data').respond('');
$http.post('/url', 'some-data');
});
it('post() should allow config param', function() {
$httpBackend.expect('POST', '/url', 'some-data', checkHeader('Custom', 'Header')).respond('');
$http.post('/url', 'some-data', {headers: {'Custom': 'Header'}});
});
it('should have put()', function() {
$httpBackend.expect('PUT', '/url', 'some-data').respond('');
$http.put('/url', 'some-data');
});
it('put() should allow config param', function() {
$httpBackend.expect('PUT', '/url', 'some-data', checkHeader('Custom', 'Header')).respond('');
$http.put('/url', 'some-data', {headers: {'Custom': 'Header'}});
});
it('should have patch()', function() {
$httpBackend.expect('PATCH', '/url', 'some-data').respond('');
$http.patch('/url', 'some-data');
});
it('patch() should allow config param', function() {
$httpBackend.expect('PATCH', '/url', 'some-data', checkHeader('Custom', 'Header')).respond('');
$http.patch('/url', 'some-data', {headers: {'Custom': 'Header'}});
});
it('should have jsonp()', function() {
$httpBackend.expect('JSONP', '/url').respond('');
$http.jsonp('/url');
});
it('jsonp() should allow config param', function() {
$httpBackend.expect('JSONP', '/url', undefined, checkHeader('Custom', 'Header')).respond('');
$http.jsonp('/url', {headers: {'Custom': 'Header'}});
});
});
describe('scope.$apply', function() {
it('should $apply after success callback', function() {
$httpBackend.when('GET').respond(200);
$http({method: 'GET', url: '/some'});
$httpBackend.flush();
expect($rootScope.$apply).toHaveBeenCalledOnce();
});
it('should $apply after error callback', function() {
$httpBackend.when('GET').respond(404);
$http({method: 'GET', url: '/some'});
$httpBackend.flush();
expect($rootScope.$apply).toHaveBeenCalledOnce();
});
it('should $apply even if exception thrown during callback', inject(function($exceptionHandler) {
$httpBackend.when('GET').respond(200);
callback.andThrow('error in callback');
$http({method: 'GET', url: '/some'}).then(callback);
$httpBackend.flush();
expect($rootScope.$apply).toHaveBeenCalledOnce();
$exceptionHandler.errors = [];
}));
});
describe('transformData', function() {
describe('request', function() {
describe('default', function() {
it('should transform object into json', function() {
$httpBackend.expect('POST', '/url', '{"one":"two"}').respond('');
$http({method: 'POST', url: '/url', data: {one: 'two'}});
});
it('should transform object with date into json', function() {
$httpBackend.expect('POST', '/url', {"date": new Date(Date.UTC(2013, 11, 25))}).respond('');
$http({method: 'POST', url: '/url', data: {date: new Date(Date.UTC(2013, 11, 25))}});
});
it('should ignore strings', function() {
$httpBackend.expect('POST', '/url', 'string-data').respond('');
$http({method: 'POST', url: '/url', data: 'string-data'});
});
it('should ignore File objects', function() {
var file = {
some: true,
// $httpBackend compares toJson values by default,
// we need to be sure it's not serialized into json string
test: function(actualValue) {
return this === actualValue;
}
};
// I'm really sorry for doing this :-D
// Unfortunatelly I don't know how to trick toString.apply(obj) comparison
spyOn(window, 'isFile').andReturn(true);
$httpBackend.expect('POST', '/some', file).respond('');
$http({method: 'POST', url: '/some', data: file});
});
});
it('should ignore Blob objects', function() {
if (!window.Blob) return;
var blob = new Blob(['blob!'], { type: 'text/plain' });
$httpBackend.expect('POST', '/url', '[object Blob]').respond('');
$http({ method: 'POST', url: '/url', data: blob });
});
it('should ignore FormData objects', function() {
if (!window.FormData) return;
var formData = new FormData();
formData.append('angular', 'is great');
$httpBackend.expect('POST', '/url', '[object FormData]').respond('');
$http({ method: 'POST', url: '/url', data: formData });
});
it('should have access to request headers', function() {
$httpBackend.expect('POST', '/url', 'header1').respond(200);
$http.post('/url', 'req', {
headers: {h1: 'header1'},
transformRequest: function(data, headers) {
return headers('h1');
}
}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
it('should have access to request headers with mixed case', function() {
$httpBackend.expect('POST', '/url', 'header1').respond(200);
$http.post('/url', 'req', {
headers: {H1: 'header1'},
transformRequest: function(data, headers) {
return headers('H1');
}
}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
it('should not allow modifications to headers in a transform functions', function() {
var config = {
headers: {'Accept': 'bar'},
transformRequest: function(data, headers) {
angular.extend(headers(), {
'Accept': 'foo'
});
}
};
$httpBackend.expect('GET', '/url', undefined, {Accept: 'bar'}).respond(200);
$http.get('/url', config).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
it('should pipeline more functions', function() {
function first(d, h) {return d + '-first' + ':' + h('h1');}
function second(d) {return uppercase(d);}
$httpBackend.expect('POST', '/url', 'REQ-FIRST:V1').respond(200);
$http.post('/url', 'req', {
headers: {h1: 'v1'},
transformRequest: [first, second]
}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
});
describe('response', function() {
describe('default', function() {
it('should deserialize json objects', function() {
$httpBackend.expect('GET', '/url').respond('{"foo":"bar","baz":23}');
$http({method: 'GET', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual({foo: 'bar', baz: 23});
});
it('should deserialize json arrays', function() {
$httpBackend.expect('GET', '/url').respond('[1, "abc", {"foo":"bar"}]');
$http({method: 'GET', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual([1, 'abc', {foo: 'bar'}]);
});
it('should ignore leading/trailing whitespace', function() {
$httpBackend.expect('GET', '/url').respond(' \n {"foo":"bar","baz":23} \r\n \n ');
$http({method: 'GET', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual({foo: 'bar', baz: 23});
});
it('should deserialize json numbers when response header contains application/json',
function() {
$httpBackend.expect('GET', '/url').respond('123', {'Content-Type': 'application/json'});
$http({method: 'GET', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual(123);
});
it('should deserialize json strings when response header contains application/json',
function() {
$httpBackend.expect('GET', '/url').respond('"asdf"', {'Content-Type': 'application/json'});
$http({method: 'GET', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual('asdf');
});
it('should deserialize json nulls when response header contains application/json',
function() {
$httpBackend.expect('GET', '/url').respond('null', {'Content-Type': 'application/json'});
$http({method: 'GET', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual(null);
});
it('should deserialize json true when response header contains application/json',
function() {
$httpBackend.expect('GET', '/url').respond('true', {'Content-Type': 'application/json'});
$http({method: 'GET', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual(true);
});
it('should deserialize json false when response header contains application/json',
function() {
$httpBackend.expect('GET', '/url').respond('false', {'Content-Type': 'application/json'});
$http({method: 'GET', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual(false);
});
it('should deserialize json empty string when response header contains application/json',
function() {
$httpBackend.expect('GET', '/url').respond('""', {'Content-Type': 'application/json'});
$http({method: 'GET', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual('');
});
it('should deserialize json with security prefix', function() {
$httpBackend.expect('GET', '/url').respond(')]}\',\n[1, "abc", {"foo":"bar"}]');
$http({method: 'GET', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual([1, 'abc', {foo:'bar'}]);
});
it('should deserialize json with security prefix ")]}\'"', function() {
$httpBackend.expect('GET', '/url').respond(')]}\'\n\n[1, "abc", {"foo":"bar"}]');
$http({method: 'GET', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual([1, 'abc', {foo:'bar'}]);
});
it('should retain security prefix if response is not json', function() {
$httpBackend.expect('GET', '/url').respond(')]}\',\n This is not JSON !');
$http({method: 'GET', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual(')]}\',\n This is not JSON !');
});
it('should not attempt to deserialize json when HEAD request', function() {
//per http spec for Content-Type, HEAD request should return a Content-Type header
//set to what the content type would have been if a get was sent
$httpBackend.expect('HEAD', '/url').respond('', {'Content-Type': 'application/json'});
$http({method: 'HEAD', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual('');
});
it('should not attempt to deserialize json for an empty response whose header contains application/json', function() {
//per http spec for Content-Type, HEAD request should return a Content-Type header
//set to what the content type would have been if a get was sent
$httpBackend.expect('GET', '/url').respond('', {'Content-Type': 'application/json'});
$http({method: 'GET', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual('');
});
it('should not attempt to deserialize json for a blank response whose header contains application/json', function() {
//per http spec for Content-Type, HEAD request should return a Content-Type header
//set to what the content type would have been if a get was sent
$httpBackend.expect('GET', '/url').respond(' ', {'Content-Type': 'application/json'});
$http({method: 'GET', url: '/url'}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual(' ');
});
it('should not deserialize tpl beginning with ng expression', function() {
$httpBackend.expect('GET', '/url').respond('{{some}}');
$http.get('/url').success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual('{{some}}');
});
it('should not deserialize json when the opening and closing brackets do not match',
function() {
$httpBackend.expect('GET', '/url1').respond('[Code](url): function() {}');
$httpBackend.expect('GET', '/url2').respond('{"is": "not"} ["json"]');
$http.get('/url1').success(callback);
$http.get('/url2').success(callback);
$httpBackend.flush();
expect(callback.calls.length).toBe(2);
expect(callback.calls[0].args[0]).toEqual('[Code](url): function() {}');
expect(callback.calls[1].args[0]).toEqual('{"is": "not"} ["json"]');
}
);
});
it('should have access to response headers', function() {
$httpBackend.expect('GET', '/url').respond(200, 'response', {h1: 'header1'});
$http.get('/url', {
transformResponse: function(data, headers) {
return headers('h1');
}
}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toBe('header1');
});
it('should have access to response status', function() {
$httpBackend.expect('GET', '/url').respond(200, 'response', {h1: 'header1'});
$http.get('/url', {
transformResponse: function(data, headers, status) {
return status;
}
}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toBe(200);
});
it('should pipeline more functions', function() {
function first(d, h) {return d + '-first' + ':' + h('h1');}
function second(d) {return uppercase(d);}
$httpBackend.expect('POST', '/url').respond(200, 'resp', {h1: 'v1'});
$http.post('/url', '', {transformResponse: [first, second]}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toBe('RESP-FIRST:V1');
});
it('should apply `transformResponse` even if the response data is empty', function(data) {
var callback = jasmine.createSpy('transformResponse');
var config = {transformResponse: callback};
$httpBackend.expect('GET', '/url1').respond(200, undefined);
$httpBackend.expect('GET', '/url2').respond(200, null);
$httpBackend.expect('GET', '/url3').respond(200, '');
$http.get('/url1', config);
$http.get('/url2', config);
$http.get('/url3', config);
$httpBackend.flush();
expect(callback.callCount).toBe(3);
expect(callback.calls[0].args[0]).toBe(undefined);
expect(callback.calls[1].args[0]).toBe(null);
expect(callback.calls[2].args[0]).toBe('');
});
});
});
describe('cache', function() {
var cache;
beforeEach(inject(function($cacheFactory) {
cache = $cacheFactory('testCache');
}));
function doFirstCacheRequest(method, respStatus, headers) {
$httpBackend.expect(method || 'GET', '/url').respond(respStatus || 200, 'content', headers);
$http({method: method || 'GET', url: '/url', cache: cache});
$httpBackend.flush();
}
it('should cache GET request when cache is provided', inject(function($rootScope) {
doFirstCacheRequest();
$http({method: 'get', url: '/url', cache: cache}).success(callback);
$rootScope.$digest();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toBe('content');
}));
it('should cache JSONP request when cache is provided', inject(function($rootScope) {
$httpBackend.expect('JSONP', '/url?cb=JSON_CALLBACK').respond('content');
$http({method: 'JSONP', url: '/url?cb=JSON_CALLBACK', cache: cache});
$httpBackend.flush();
$http({method: 'JSONP', url: '/url?cb=JSON_CALLBACK', cache: cache}).success(callback);
$rootScope.$digest();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toBe('content');
}));
it('should cache request when cache is provided and no method specified', function() {
doFirstCacheRequest();
$http({url: '/url', cache: cache}).success(callback);
$rootScope.$digest();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toBe('content');
});
it('should not cache when cache is not provided', function() {
doFirstCacheRequest();
$httpBackend.expect('GET', '/url').respond();
$http({method: 'GET', url: '/url'});
});
it('should perform request when cache cleared', function() {
doFirstCacheRequest();
cache.removeAll();
$httpBackend.expect('GET', '/url').respond();
$http({method: 'GET', url: '/url', cache: cache});
});
it('should always call callback asynchronously', function() {
doFirstCacheRequest();
$http({method: 'get', url: '/url', cache: cache}).then(callback);
expect(callback).not.toHaveBeenCalled();
});
it('should not cache POST request', function() {
doFirstCacheRequest('POST');
$httpBackend.expect('POST', '/url').respond('content2');
$http({method: 'POST', url: '/url', cache: cache}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toBe('content2');
});
it('should not cache PUT request', function() {
doFirstCacheRequest('PUT');
$httpBackend.expect('PUT', '/url').respond('content2');
$http({method: 'PUT', url: '/url', cache: cache}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toBe('content2');
});
it('should not cache DELETE request', function() {
doFirstCacheRequest('DELETE');
$httpBackend.expect('DELETE', '/url').respond(206);
$http({method: 'DELETE', url: '/url', cache: cache}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
});
it('should not cache non 2xx responses', function() {
doFirstCacheRequest('GET', 404);
$httpBackend.expect('GET', '/url').respond('content2');
$http({method: 'GET', url: '/url', cache: cache}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toBe('content2');
});
it('should cache the headers as well', inject(function($rootScope) {
doFirstCacheRequest('GET', 200, {'content-encoding': 'gzip', 'server': 'Apache'});
callback.andCallFake(function(r, s, headers) {
expect(headers()).toEqual({'content-encoding': 'gzip', 'server': 'Apache'});
expect(headers('server')).toBe('Apache');
});
$http({method: 'GET', url: '/url', cache: cache}).success(callback);
$rootScope.$digest();
expect(callback).toHaveBeenCalledOnce();
}));
it('should not share the cached headers object instance', inject(function($rootScope) {
doFirstCacheRequest('GET', 200, {'content-encoding': 'gzip', 'server': 'Apache'});
callback.andCallFake(function(r, s, headers) {
expect(headers()).toEqual(cache.get('/url')[2]);
expect(headers()).not.toBe(cache.get('/url')[2]);
});
$http({method: 'GET', url: '/url', cache: cache}).success(callback);
$rootScope.$digest();
expect(callback).toHaveBeenCalledOnce();
}));
it('should not share the pending cached headers object instance', inject(function($rootScope) {
var firstResult;
callback.andCallFake(function(result) {
expect(result.headers()).toEqual(firstResult.headers());
expect(result.headers()).not.toBe(firstResult.headers());
});
$httpBackend.expect('GET', '/url').respond(200, 'content', {'content-encoding': 'gzip', 'server': 'Apache'});
$http({method: 'GET', url: '/url', cache: cache}).then(function(result) {
firstResult = result;
});
$http({method: 'GET', url: '/url', cache: cache}).then(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalledOnce();
}));
it('should cache status code as well', inject(function($rootScope) {
doFirstCacheRequest('GET', 201);
callback.andCallFake(function(r, status, h) {
expect(status).toBe(201);
});
$http({method: 'get', url: '/url', cache: cache}).success(callback);
$rootScope.$digest();
expect(callback).toHaveBeenCalledOnce();
}));
it('should use cache even if second request was made before the first returned', function() {
$httpBackend.expect('GET', '/url').respond(201, 'fake-response');
callback.andCallFake(function(response, status, headers) {
expect(response).toBe('fake-response');
expect(status).toBe(201);
});
$http({method: 'GET', url: '/url', cache: cache}).success(callback);
$http({method: 'GET', url: '/url', cache: cache}).success(callback);
$httpBackend.flush();
expect(callback).toHaveBeenCalled();
expect(callback.callCount).toBe(2);
});
it('should preserve config object when resolving from cache', function() {
$httpBackend.expect('GET', '/url').respond(200, 'content');
$http({method: 'GET', url: '/url', cache: cache, headers: {foo: 'bar'}});
$httpBackend.flush();
$http({method: 'GET', url: '/url', cache: cache, headers: {foo: 'baz'}}).then(callback);
$rootScope.$digest();
expect(callback.mostRecentCall.args[0].config.headers.foo).toBe('baz');
});
it('should preserve config object when resolving from pending cache', function() {
$httpBackend.expect('GET', '/url').respond(200, 'content');
$http({method: 'GET', url: '/url', cache: cache, headers: {foo: 'bar'}});
$http({method: 'GET', url: '/url', cache: cache, headers: {foo: 'baz'}}).then(callback);
$httpBackend.flush();
expect(callback.mostRecentCall.args[0].config.headers.foo).toBe('baz');
});
it('should preserve config object when rejecting from pending cache', function() {
$httpBackend.expect('GET', '/url').respond(404, 'content');
$http({method: 'GET', url: '/url', cache: cache, headers: {foo: 'bar'}});
$http({method: 'GET', url: '/url', cache: cache, headers: {foo: 'baz'}}).catch(callback);
$httpBackend.flush();
expect(callback.mostRecentCall.args[0].config.headers.foo).toBe('baz');
});
it('should allow the cached value to be an empty string', function() {
cache.put('/abc', '');
callback.andCallFake(function(response, status, headers) {
expect(response).toBe('');
expect(status).toBe(200);
});
$http({method: 'GET', url: '/abc', cache: cache}).success(callback);
$rootScope.$digest();
expect(callback).toHaveBeenCalled();
});
it('should default to status code 200 and empty headers if cache contains a non-array element',
inject(function($rootScope) {
cache.put('/myurl', 'simple response');
$http.get('/myurl', {cache: cache}).success(function(data, status, headers) {
expect(data).toBe('simple response');
expect(status).toBe(200);
expect(headers()).toEqual({});
callback();
});
$rootScope.$digest();
expect(callback).toHaveBeenCalledOnce();
})
);
describe('$http.defaults.cache', function() {
it('should be undefined by default', function() {
expect($http.defaults.cache).toBeUndefined();
});
it('should cache requests when no cache given in request config', function() {
$http.defaults.cache = cache;
// First request fills the cache from server response.
$httpBackend.expect('GET', '/url').respond(200, 'content');
$http({method: 'GET', url: '/url'}); // Notice no cache given in config.
$httpBackend.flush();
// Second should be served from cache, without sending request to server.
$http({method: 'get', url: '/url'}).success(callback);
$rootScope.$digest();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toBe('content');
// Invalidate cache entry.
$http.defaults.cache.remove("/url");
// After cache entry removed, a request should be sent to server.
$httpBackend.expect('GET', '/url').respond(200, 'content');
$http({method: 'GET', url: '/url'});
$httpBackend.flush();
});
it('should have less priority than explicitly given cache', inject(function($cacheFactory) {
var localCache = $cacheFactory('localCache');
$http.defaults.cache = cache;
// Fill local cache.
$httpBackend.expect('GET', '/url').respond(200, 'content-local-cache');
$http({method: 'GET', url: '/url', cache: localCache});
$httpBackend.flush();
// Fill default cache.
$httpBackend.expect('GET', '/url').respond(200, 'content-default-cache');
$http({method: 'GET', url: '/url'});
$httpBackend.flush();
// Serve request from default cache when no local given.
$http({method: 'get', url: '/url'}).success(callback);
$rootScope.$digest();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toBe('content-default-cache');
callback.reset();
// Serve request from local cache when it is given (but default filled too).
$http({method: 'get', url: '/url', cache: localCache}).success(callback);
$rootScope.$digest();
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toBe('content-local-cache');
}));
it('should be skipped if {cache: false} is passed in request config', function() {
$http.defaults.cache = cache;
$httpBackend.expect('GET', '/url').respond(200, 'content');
$http({method: 'GET', url: '/url'});
$httpBackend.flush();
$httpBackend.expect('GET', '/url').respond();
$http({method: 'GET', url: '/url', cache: false});
$httpBackend.flush();
});
});
});
describe('timeout', function() {
it('should abort requests when timeout promise resolves', inject(function($q) {
var canceler = $q.defer();
$httpBackend.expect('GET', '/some').respond(200);
$http({method: 'GET', url: '/some', timeout: canceler.promise}).catch(
function(response) {
expect(response.data).toBeUndefined();
expect(response.status).toBe(-1);
expect(response.headers()).toEqual({});
expect(response.config.url).toBe('/some');
callback();
});
$rootScope.$apply(function() {
canceler.resolve();
});
expect(callback).toHaveBeenCalled();
$httpBackend.verifyNoOutstandingExpectation();
$httpBackend.verifyNoOutstandingRequest();
}));
it('should reject promise when timeout promise resolves', inject(function($timeout) {
var onFulfilled = jasmine.createSpy('onFulfilled');
var onRejected = jasmine.createSpy('onRejected');
$httpBackend.expect('GET', '/some').respond(200);
$http({method: 'GET', url: '/some', timeout: $timeout(noop, 10)}).then(onFulfilled, onRejected);
$timeout.flush(100);
expect(onFulfilled).not.toHaveBeenCalled();
expect(onRejected).toHaveBeenCalledOnce();
}));
});
describe('pendingRequests', function() {
it('should be an array of pending requests', function() {
$httpBackend.when('GET').respond(200);
expect($http.pendingRequests.length).toBe(0);
$http({method: 'get', url: '/some'});
$rootScope.$digest();
expect($http.pendingRequests.length).toBe(1);
$httpBackend.flush();
expect($http.pendingRequests.length).toBe(0);
});
it('should update pending requests even when served from cache', inject(function($rootScope) {
$httpBackend.when('GET').respond(200);
$http({method: 'get', url: '/cached', cache: true});
$http({method: 'get', url: '/cached', cache: true});
$rootScope.$digest();
expect($http.pendingRequests.length).toBe(2);
$httpBackend.flush();
expect($http.pendingRequests.length).toBe(0);
$http({method: 'get', url: '/cached', cache: true});
spyOn($http.pendingRequests, 'push').andCallThrough();
$rootScope.$digest();
expect($http.pendingRequests.push).toHaveBeenCalledOnce();
$rootScope.$apply();
expect($http.pendingRequests.length).toBe(0);
}));
it('should remove the request before firing callbacks', function() {
$httpBackend.when('GET').respond(200);
$http({method: 'get', url: '/url'}).success(function() {
expect($http.pendingRequests.length).toBe(0);
});
$rootScope.$digest();
expect($http.pendingRequests.length).toBe(1);
$httpBackend.flush();
});
});
describe('defaults', function() {
it('should expose the defaults object at runtime', function() {
expect($http.defaults).toBeDefined();
$http.defaults.headers.common.foo = 'bar';
$httpBackend.expect('GET', '/url', undefined, function(headers) {
return headers['foo'] == 'bar';
}).respond('');
$http.get('/url');
$httpBackend.flush();
});
it('should have separate objects for defaults PUT and POST', function() {
expect($http.defaults.headers.post).not.toBe($http.defaults.headers.put);
expect($http.defaults.headers.post).not.toBe($http.defaults.headers.patch);
expect($http.defaults.headers.put).not.toBe($http.defaults.headers.patch);
});
it('should expose default param serializer at runtime', function() {
var paramSerializer = $http.defaults.paramSerializer;
expect(paramSerializer({foo: 'foo', bar: ['bar', 'baz']})).toEqual('bar=bar&bar=baz&foo=foo');
});
});
});
it('should pass timeout, withCredentials and responseType', function() {
var $httpBackend = jasmine.createSpy('$httpBackend');
$httpBackend.andCallFake(function(m, u, d, c, h, timeout, withCredentials, responseType) {
expect(timeout).toBe(12345);
expect(withCredentials).toBe(true);
expect(responseType).toBe('json');
});
module(function($provide) {
$provide.value('$httpBackend', $httpBackend);
});
inject(function($http, $rootScope) {
$http({
method: 'GET',
url: 'some.html',
timeout: 12345,
withCredentials: true,
responseType: 'json'
});
$rootScope.$digest();
expect($httpBackend).toHaveBeenCalledOnce();
});
$httpBackend.verifyNoOutstandingExpectation = noop;
});
it('should use withCredentials from default', function() {
var $httpBackend = jasmine.createSpy('$httpBackend');
$httpBackend.andCallFake(function(m, u, d, c, h, timeout, withCredentials, responseType) {
expect(withCredentials).toBe(true);
});
module(function($provide) {
$provide.value('$httpBackend', $httpBackend);
});
inject(function($http, $rootScope) {
$http.defaults.withCredentials = true;
$http({
method: 'GET',
url: 'some.html',
timeout: 12345,
responseType: 'json'
});
$rootScope.$digest();
expect($httpBackend).toHaveBeenCalledOnce();
});
$httpBackend.verifyNoOutstandingExpectation = noop;
});
});
describe('$http with $applyAsync', function() {
var $http, $httpBackend, $rootScope, $browser, log;
beforeEach(module(function($httpProvider) {
$httpProvider.useApplyAsync(true);
}, provideLog));
beforeEach(inject(['$http', '$httpBackend', '$rootScope', '$browser', 'log', function(http, backend, scope, browser, logger) {
$http = http;
$httpBackend = backend;
$rootScope = scope;
$browser = browser;
spyOn($rootScope, '$apply').andCallThrough();
spyOn($rootScope, '$applyAsync').andCallThrough();
spyOn($rootScope, '$digest').andCallThrough();
spyOn($browser.defer, 'cancel').andCallThrough();
log = logger;
}]));
it('should schedule coalesced apply on response', function() {
var handler = jasmine.createSpy('handler');
$httpBackend.expect('GET', '/template1.html').respond(200, '<h1>Header!</h1>', {});
$http.get('/template1.html').then(handler);
// Ensure requests are sent
$rootScope.$digest();
$httpBackend.flush(null, false);
expect($rootScope.$applyAsync).toHaveBeenCalledOnce();
expect(handler).not.toHaveBeenCalled();
$browser.defer.flush();
expect(handler).toHaveBeenCalledOnce();
});
it('should combine multiple responses within short time frame into a single $apply', function() {
$httpBackend.expect('GET', '/template1.html').respond(200, '<h1>Header!</h1>', {});
$httpBackend.expect('GET', '/template2.html').respond(200, '<p>Body!</p>', {});
$http.get('/template1.html').then(log.fn('response 1'));
$http.get('/template2.html').then(log.fn('response 2'));
// Ensure requests are sent
$rootScope.$digest();
$httpBackend.flush(null, false);
expect(log).toEqual([]);
$browser.defer.flush();
expect(log).toEqual(['response 1', 'response 2']);
});
it('should handle pending responses immediately if a digest occurs on $rootScope', function() {
$httpBackend.expect('GET', '/template1.html').respond(200, '<h1>Header!</h1>', {});
$httpBackend.expect('GET', '/template2.html').respond(200, '<p>Body!</p>', {});
$httpBackend.expect('GET', '/template3.html').respond(200, '<p>Body!</p>', {});
$http.get('/template1.html').then(log.fn('response 1'));
$http.get('/template2.html').then(log.fn('response 2'));
$http.get('/template3.html').then(log.fn('response 3'));
// Ensure requests are sent
$rootScope.$digest();
// Intermediate $digest occurs before 3rd response is received, assert that pending responses
/// are handled
$httpBackend.flush(2);
expect(log).toEqual(['response 1', 'response 2']);
// Finally, third response is received, and a second coalesced $apply is started
$httpBackend.flush(null, false);
$browser.defer.flush();
expect(log).toEqual(['response 1', 'response 2', 'response 3']);
});
});
describe('$http without useLegacyPromiseExtensions', function() {
var $httpBackend, $http;
beforeEach(module(function($httpProvider) {
$httpProvider.useLegacyPromiseExtensions(false);
}, provideLog));
beforeEach(inject(['$httpBackend', '$http', '$rootScope', function($hb, $h, $rs) {
$httpBackend = $hb;
$http = $h;
}]));
it('should throw when the success or error methods are called if useLegacyPromiseExtensions is false', function() {
$httpBackend.expect('GET', '/url').respond('');
var promise = $http({url: '/url'});
function callSucess() {
promise.success();
}
function callError() {
promise.error();
}
expect(callSucess).toThrowMinErr(
'$http', 'legacy', 'The method `success` on the promise returned from `$http` has been disabled.');
expect(callError).toThrowMinErr(
'$http', 'legacy', 'The method `error` on the promise returned from `$http` has been disabled.');
});
});
describe('$http param serializers', function() {
var defSer, jqrSer;
beforeEach(inject(function($httpParamSerializer, $httpParamSerializerJQLike) {
defSer = $httpParamSerializer;
jqrSer = $httpParamSerializerJQLike;
}));
describe('common functionality', function() {
it('should return empty string for null or undefined params', function() {
expect(defSer(undefined)).toEqual('');
expect(jqrSer(undefined)).toEqual('');
expect(defSer(null)).toEqual('');
expect(jqrSer(null)).toEqual('');
});
it('should serialize objects', function() {
expect(defSer({foo: 'foov', bar: 'barv'})).toEqual('bar=barv&foo=foov');
expect(jqrSer({foo: 'foov', bar: 'barv'})).toEqual('bar=barv&foo=foov');
expect(defSer({someDate: new Date('2014-07-15T17:30:00.000Z')})).toEqual('someDate=2014-07-15T17:30:00.000Z');
expect(jqrSer({someDate: new Date('2014-07-15T17:30:00.000Z')})).toEqual('someDate=2014-07-15T17:30:00.000Z');
});
});
describe('default array serialization', function() {
it('should serialize arrays by repeating param name', function() {
expect(defSer({a: 'b', foo: ['bar', 'baz']})).toEqual('a=b&foo=bar&foo=baz');
});
});
describe('jquery array and objects serialization', function() {
it('should serialize arrays by repeating param name with [] suffix', function() {
expect(jqrSer({a: 'b', foo: ['bar', 'baz']})).toEqual('a=b&foo%5B%5D=bar&foo%5B%5D=baz');
expect(decodeURIComponent(jqrSer({a: 'b', foo: ['bar', 'baz']}))).toEqual('a=b&foo[]=bar&foo[]=baz');
});
it('should serialize objects by repeating param name with [key] suffix', function() {
expect(jqrSer({a: 'b', foo: {'bar': 'barv', 'baz': 'bazv'}})).toEqual('a=b&foo%5Bbar%5D=barv&foo%5Bbaz%5D=bazv');
//a=b&foo[bar]=barv&foo[baz]=bazv
});
it('should serialize nested objects by repeating param name with [key] suffix', function() {
expect(jqrSer({a: ['b', {c: 'd'}], e: {f: 'g', 'h': ['i', 'j']}})).toEqual(
'a%5B%5D=b&a%5B1%5D%5Bc%5D=d&e%5Bf%5D=g&e%5Bh%5D%5B%5D=i&e%5Bh%5D%5B%5D=j');
//a[]=b&a[1][c]=d&e[f]=g&e[h][]=i&e[h][]=j
});
it('should serialize objects inside array elements using their index', function() {
expect(jqrSer({a: ['b', 'c'], d: [{e: 'f', g: 'h'}, 'i', {j: 'k'}]})).toEqual(
'a%5B%5D=b&a%5B%5D=c&d%5B0%5D%5Be%5D=f&d%5B0%5D%5Bg%5D=h&d%5B%5D=i&d%5B2%5D%5Bj%5D=k');
//a[]=b&a[]=c&d[0][e]=f&d[0][g]=h&d[]=i&d[2][j]=k
});
});
});
|
class Wall {
constructor(x1, y1, x2, y2, color) {
this.start = new Vector(x1, y1);
this.end = new Vector(x2, y2);
this.color = color;
}
drawWall(context) {
context.beginPath();
context.moveTo(this.start.x, this.start.y);
context.lineTo(this.end.x, this.end.y);
context.strokeStyle = this.color;
context.lineWidth = 5;
context.stroke();
}
wallUnit() {
return this.end.sub(this.start).unit();
}
}
|
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['en-au']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Browse Server","url":"URL","protocol":"Protocol","upload":"Upload","uploadSubmit":"Send it to the Server","image":"Image","flash":"Flash","form":"Form","checkbox":"Checkbox","radio":"Radio Button","textField":"Text Field","textarea":"Textarea","hiddenField":"Hidden Field","button":"Button","select":"Selection Field","imageButton":"Image Button","notSet":"<not set>","id":"Id","name":"Name","langDir":"Language Direction","langDirLtr":"Left to Right (LTR)","langDirRtl":"Right to Left (RTL)","langCode":"Language Code","longDescr":"Long Description URL","cssClass":"Stylesheet Classes","advisoryTitle":"Advisory Title","cssStyle":"Style","ok":"OK","cancel":"Cancel","close":"Close","preview":"Preview","resize":"Resize","generalTab":"General","advancedTab":"Advanced","validateNumberFailed":"This value is not a number.","confirmNewPage":"Any unsaved changes to this content will be lost. Are you sure you want to load new page?","confirmCancel":"You have changed some options. Are you sure you want to close the dialog window?","options":"Options","target":"Target","targetNew":"New Window (_blank)","targetTop":"Topmost Window (_top)","targetSelf":"Same Window (_self)","targetParent":"Parent Window (_parent)","langDirLTR":"Left to Right (LTR)","langDirRTL":"Right to Left (RTL)","styles":"Style","cssClasses":"Stylesheet Classes","width":"Width","height":"Height","align":"Align","alignLeft":"Left","alignRight":"Right","alignCenter":"Centre","alignTop":"Top","alignMiddle":"Middle","alignBottom":"Bottom","invalidValue":"Invalid value.","invalidHeight":"Height must be a number.","invalidWidth":"Width must be a number.","invalidCssLength":"Value specified for the \"%1\" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).","invalidHtmlLength":"Value specified for the \"%1\" field must be a positive number with or without a valid HTML measurement unit (px or %).","invalidInlineStyle":"Value specified for the inline style must consist of one or more tuples with the format of \"name : value\", separated by semi-colons.","cssLengthTooltip":"Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).","unavailable":"%1<span class=\"cke_accessibility\">, unavailable</span>"},"about":{"copy":"Copyright © $1. All rights reserved.","dlgTitle":"About CKEditor","help":"Check $1 for help.","moreInfo":"For licensing information please visit our web site:","title":"About CKEditor","userGuide":"CKEditor User's Guide"},"basicstyles":{"bold":"Bold","italic":"Italic","strike":"Strike Through","subscript":"Subscript","superscript":"Superscript","underline":"Underline"},"bidi":{"ltr":"Text direction from left to right","rtl":"Text direction from right to left"},"blockquote":{"toolbar":"Block Quote"},"clipboard":{"copy":"Copy","copyError":"Your browser security settings don't permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).","cut":"Cut","cutError":"Your browser security settings don't permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).","paste":"Paste","pasteArea":"Paste Area","pasteMsg":"Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK","securityMsg":"Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.","title":"Paste"},"button":{"selectedLabel":"%1 (Selected)"},"colorbutton":{"auto":"Automatic","bgColorTitle":"Background Colour","colors":{"000":"Black","800000":"Maroon","8B4513":"Saddle Brown","2F4F4F":"Dark Slate Gray","008080":"Teal","000080":"Navy","4B0082":"Indigo","696969":"Dark Gray","B22222":"Fire Brick","A52A2A":"Brown","DAA520":"Golden Rod","006400":"Dark Green","40E0D0":"Turquoise","0000CD":"Medium Blue","800080":"Purple","808080":"Gray","F00":"Red","FF8C00":"Dark Orange","FFD700":"Gold","008000":"Green","0FF":"Cyan","00F":"Blue","EE82EE":"Violet","A9A9A9":"Dim Gray","FFA07A":"Light Salmon","FFA500":"Orange","FFFF00":"Yellow","00FF00":"Lime","AFEEEE":"Pale Turquoise","ADD8E6":"Light Blue","DDA0DD":"Plum","D3D3D3":"Light Grey","FFF0F5":"Lavender Blush","FAEBD7":"Antique White","FFFFE0":"Light Yellow","F0FFF0":"Honeydew","F0FFFF":"Azure","F0F8FF":"Alice Blue","E6E6FA":"Lavender","FFF":"White"},"more":"More Colours...","panelTitle":"Colors","textColorTitle":"Text Colour"},"colordialog":{"clear":"Clear","highlight":"Highlight","options":"Color Options","selected":"Selected Color","title":"Select color"},"templates":{"button":"Templates","emptyListMsg":"(No templates defined)","insertOption":"Replace actual contents","options":"Template Options","selectPromptMsg":"Please select the template to open in the editor","title":"Content Templates"},"contextmenu":{"options":"Context Menu Options"},"div":{"IdInputLabel":"Id","advisoryTitleInputLabel":"Advisory Title","cssClassInputLabel":"Stylesheet Classes","edit":"Edit Div","inlineStyleInputLabel":"Inline Style","langDirLTRLabel":"Left to Right (LTR)","langDirLabel":"Language Direction","langDirRTLLabel":"Right to Left (RTL)","languageCodeInputLabel":" Language Code","remove":"Remove Div","styleSelectLabel":"Style","title":"Create Div Container","toolbar":"Create Div Container"},"toolbar":{"toolbarCollapse":"Collapse Toolbar","toolbarExpand":"Expand Toolbar","toolbarGroups":{"document":"Document","clipboard":"Clipboard/Undo","editing":"Editing","forms":"Forms","basicstyles":"Basic Styles","paragraph":"Paragraph","links":"Links","insert":"Insert","styles":"Styles","colors":"Colors","tools":"Tools"},"toolbars":"Editor toolbars"},"elementspath":{"eleLabel":"Elements path","eleTitle":"%1 element"},"find":{"find":"Find","findOptions":"Find Options","findWhat":"Find what:","matchCase":"Match case","matchCyclic":"Match cyclic","matchWord":"Match whole word","notFoundMsg":"The specified text was not found.","replace":"Replace","replaceAll":"Replace All","replaceSuccessMsg":"%1 occurrence(s) replaced.","replaceWith":"Replace with:","title":"Find and Replace"},"fakeobjects":{"anchor":"Anchor","flash":"Flash Animation","hiddenfield":"Hidden Field","iframe":"IFrame","unknown":"Unknown Object"},"flash":{"access":"Script Access","accessAlways":"Always","accessNever":"Never","accessSameDomain":"Same domain","alignAbsBottom":"Abs Bottom","alignAbsMiddle":"Abs Middle","alignBaseline":"Baseline","alignTextTop":"Text Top","bgcolor":"Background colour","chkFull":"Allow Fullscreen","chkLoop":"Loop","chkMenu":"Enable Flash Menu","chkPlay":"Auto Play","flashvars":"Variables for Flash","hSpace":"HSpace","properties":"Flash Properties","propertiesTab":"Properties","quality":"Quality","qualityAutoHigh":"Auto High","qualityAutoLow":"Auto Low","qualityBest":"Best","qualityHigh":"High","qualityLow":"Low","qualityMedium":"Medium","scale":"Scale","scaleAll":"Show all","scaleFit":"Exact Fit","scaleNoBorder":"No Border","title":"Flash Properties","vSpace":"VSpace","validateHSpace":"HSpace must be a number.","validateSrc":"URL must not be empty.","validateVSpace":"VSpace must be a number.","windowMode":"Window mode","windowModeOpaque":"Opaque","windowModeTransparent":"Transparent","windowModeWindow":"Window"},"font":{"fontSize":{"label":"Size","voiceLabel":"Font Size","panelTitle":"Font Size"},"label":"Font","panelTitle":"Font Name","voiceLabel":"Font"},"forms":{"button":{"title":"Button Properties","text":"Text (Value)","type":"Type","typeBtn":"Button","typeSbm":"Submit","typeRst":"Reset"},"checkboxAndRadio":{"checkboxTitle":"Checkbox Properties","radioTitle":"Radio Button Properties","value":"Value","selected":"Selected"},"form":{"title":"Form Properties","menu":"Form Properties","action":"Action","method":"Method","encoding":"Encoding"},"hidden":{"title":"Hidden Field Properties","name":"Name","value":"Value"},"select":{"title":"Selection Field Properties","selectInfo":"Select Info","opAvail":"Available Options","value":"Value","size":"Size","lines":"lines","chkMulti":"Allow multiple selections","opText":"Text","opValue":"Value","btnAdd":"Add","btnModify":"Modify","btnUp":"Up","btnDown":"Down","btnSetValue":"Set as selected value","btnDelete":"Delete"},"textarea":{"title":"Textarea Properties","cols":"Columns","rows":"Rows"},"textfield":{"title":"Text Field Properties","name":"Name","value":"Value","charWidth":"Character Width","maxChars":"Maximum Characters","type":"Type","typeText":"Text","typePass":"Password","typeEmail":"Email","typeSearch":"Search","typeTel":"Telephone Number","typeUrl":"URL"}},"format":{"label":"Format","panelTitle":"Paragraph Format","tag_address":"Address","tag_div":"Normal (DIV)","tag_h1":"Heading 1","tag_h2":"Heading 2","tag_h3":"Heading 3","tag_h4":"Heading 4","tag_h5":"Heading 5","tag_h6":"Heading 6","tag_p":"Normal","tag_pre":"Formatted"},"horizontalrule":{"toolbar":"Insert Horizontal Line"},"iframe":{"border":"Show frame border","noUrl":"Please type the iframe URL","scrolling":"Enable scrollbars","title":"IFrame Properties","toolbar":"IFrame"},"image":{"alertUrl":"Please type the image URL","alt":"Alternative Text","border":"Border","btnUpload":"Send it to the Server","button2Img":"Do you want to transform the selected image button on a simple image?","hSpace":"HSpace","img2Button":"Do you want to transform the selected image on a image button?","infoTab":"Image Info","linkTab":"Link","lockRatio":"Lock Ratio","menu":"Image Properties","resetSize":"Reset Size","title":"Image Properties","titleButton":"Image Button Properties","upload":"Upload","urlMissing":"Image source URL is missing.","vSpace":"VSpace","validateBorder":"Border must be a whole number.","validateHSpace":"HSpace must be a whole number.","validateVSpace":"VSpace must be a whole number."},"indent":{"indent":"Increase Indent","outdent":"Decrease Indent"},"smiley":{"options":"Smiley Options","title":"Insert a Smiley","toolbar":"Smiley"},"justify":{"block":"Justify","center":"Centre","left":"Align Left","right":"Align Right"},"language":{"button":"Set language","remove":"Remove language"},"link":{"acccessKey":"Access Key","advanced":"Advanced","advisoryContentType":"Advisory Content Type","advisoryTitle":"Advisory Title","anchor":{"toolbar":"Anchor","menu":"Edit Anchor","title":"Anchor Properties","name":"Anchor Name","errorName":"Please type the anchor name","remove":"Remove Anchor"},"anchorId":"By Element Id","anchorName":"By Anchor Name","charset":"Linked Resource Charset","cssClasses":"Stylesheet Classes","emailAddress":"E-Mail Address","emailBody":"Message Body","emailSubject":"Message Subject","id":"Id","info":"Link Info","langCode":"Language Code","langDir":"Language Direction","langDirLTR":"Left to Right (LTR)","langDirRTL":"Right to Left (RTL)","menu":"Edit Link","name":"Name","noAnchors":"(No anchors available in the document)","noEmail":"Please type the e-mail address","noUrl":"Please type the link URL","other":"<other>","popupDependent":"Dependent (Netscape)","popupFeatures":"Popup Window Features","popupFullScreen":"Full Screen (IE)","popupLeft":"Left Position","popupLocationBar":"Location Bar","popupMenuBar":"Menu Bar","popupResizable":"Resizable","popupScrollBars":"Scroll Bars","popupStatusBar":"Status Bar","popupToolbar":"Toolbar","popupTop":"Top Position","rel":"Relationship","selectAnchor":"Select an Anchor","styles":"Style","tabIndex":"Tab Index","target":"Target","targetFrame":"<frame>","targetFrameName":"Target Frame Name","targetPopup":"<popup window>","targetPopupName":"Popup Window Name","title":"Link","toAnchor":"Link to anchor in the text","toEmail":"E-mail","toUrl":"URL","toolbar":"Link","type":"Link Type","unlink":"Unlink","upload":"Upload"},"list":{"bulletedlist":"Insert/Remove Bulleted List","numberedlist":"Insert/Remove Numbered List"},"liststyle":{"armenian":"Armenian numbering","bulletedTitle":"Bulleted List Properties","circle":"Circle","decimal":"Decimal (1, 2, 3, etc.)","decimalLeadingZero":"Decimal leading zero (01, 02, 03, etc.)","disc":"Disc","georgian":"Georgian numbering (an, ban, gan, etc.)","lowerAlpha":"Lower Alpha (a, b, c, d, e, etc.)","lowerGreek":"Lower Greek (alpha, beta, gamma, etc.)","lowerRoman":"Lower Roman (i, ii, iii, iv, v, etc.)","none":"None","notset":"<not set>","numberedTitle":"Numbered List Properties","square":"Square","start":"Start","type":"Type","upperAlpha":"Upper Alpha (A, B, C, D, E, etc.)","upperRoman":"Upper Roman (I, II, III, IV, V, etc.)","validateStartNumber":"List start number must be a whole number."},"magicline":{"title":"Insert paragraph here"},"maximize":{"maximize":"Maximize","minimize":"Minimize"},"newpage":{"toolbar":"New Page"},"pagebreak":{"alt":"Page Break","toolbar":"Insert Page Break for Printing"},"pastetext":{"button":"Paste as plain text","title":"Paste as Plain Text"},"pastefromword":{"confirmCleanup":"The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?","error":"It was not possible to clean up the pasted data due to an internal error","title":"Paste from Word","toolbar":"Paste from Word"},"preview":{"preview":"Preview"},"print":{"toolbar":"Print"},"removeformat":{"toolbar":"Remove Format"},"save":{"toolbar":"Save"},"selectall":{"toolbar":"Select All"},"showblocks":{"toolbar":"Show Blocks"},"sourcearea":{"toolbar":"Source"},"specialchar":{"options":"Special Character Options","title":"Select Special Character","toolbar":"Insert Special Character"},"scayt":{"about":"About SCAYT","aboutTab":"About","addWord":"Add Word","allCaps":"Ignore All-Caps Words","dic_create":"Create","dic_delete":"Delete","dic_field_name":"Dictionary name","dic_info":"Initially the User Dictionary is stored in a Cookie. However, Cookies are limited in size. When the User Dictionary grows to a point where it cannot be stored in a Cookie, then the dictionary may be stored on our server. To store your personal dictionary on our server you should specify a name for your dictionary. If you already have a stored dictionary, please type its name and click the Restore button.","dic_rename":"Rename","dic_restore":"Restore","dictionariesTab":"Dictionaries","disable":"Disable SCAYT","emptyDic":"Dictionary name should not be empty.","enable":"Enable SCAYT","ignore":"Ignore","ignoreAll":"Ignore All","ignoreDomainNames":"Ignore Domain Names","langs":"Languages","languagesTab":"Languages","mixedCase":"Ignore Words with Mixed Case","mixedWithDigits":"Ignore Words with Numbers","moreSuggestions":"More suggestions","opera_title":"Not supported by Opera","options":"Options","optionsTab":"Options","title":"Spell Check As You Type","toggle":"Toggle SCAYT","noSuggestions":"No suggestion"},"stylescombo":{"label":"Styles","panelTitle":"Formatting Styles","panelTitle1":"Block Styles","panelTitle2":"Inline Styles","panelTitle3":"Object Styles"},"table":{"border":"Border size","caption":"Caption","cell":{"menu":"Cell","insertBefore":"Insert Cell Before","insertAfter":"Insert Cell After","deleteCell":"Delete Cells","merge":"Merge Cells","mergeRight":"Merge Right","mergeDown":"Merge Down","splitHorizontal":"Split Cell Horizontally","splitVertical":"Split Cell Vertically","title":"Cell Properties","cellType":"Cell Type","rowSpan":"Rows Span","colSpan":"Columns Span","wordWrap":"Word Wrap","hAlign":"Horizontal Alignment","vAlign":"Vertical Alignment","alignBaseline":"Baseline","bgColor":"Background Color","borderColor":"Border Color","data":"Data","header":"Header","yes":"Yes","no":"No","invalidWidth":"Cell width must be a number.","invalidHeight":"Cell height must be a number.","invalidRowSpan":"Rows span must be a whole number.","invalidColSpan":"Columns span must be a whole number.","chooseColor":"Choose"},"cellPad":"Cell padding","cellSpace":"Cell spacing","column":{"menu":"Column","insertBefore":"Insert Column Before","insertAfter":"Insert Column After","deleteColumn":"Delete Columns"},"columns":"Columns","deleteTable":"Delete Table","headers":"Headers","headersBoth":"Both","headersColumn":"First column","headersNone":"None","headersRow":"First Row","invalidBorder":"Border size must be a number.","invalidCellPadding":"Cell padding must be a number.","invalidCellSpacing":"Cell spacing must be a number.","invalidCols":"Number of columns must be a number greater than 0.","invalidHeight":"Table height must be a number.","invalidRows":"Number of rows must be a number greater than 0.","invalidWidth":"Table width must be a number.","menu":"Table Properties","row":{"menu":"Row","insertBefore":"Insert Row Before","insertAfter":"Insert Row After","deleteRow":"Delete Rows"},"rows":"Rows","summary":"Summary","title":"Table Properties","toolbar":"Table","widthPc":"percent","widthPx":"pixels","widthUnit":"width unit"},"undo":{"redo":"Redo","undo":"Undo"},"wsc":{"btnIgnore":"Ignore","btnIgnoreAll":"Ignore All","btnReplace":"Replace","btnReplaceAll":"Replace All","btnUndo":"Undo","changeTo":"Change to","errorLoading":"Error loading application service host: %s.","ieSpellDownload":"Spell checker not installed. Do you want to download it now?","manyChanges":"Spell check complete: %1 words changed","noChanges":"Spell check complete: No words changed","noMispell":"Spell check complete: No misspellings found","noSuggestions":"- No suggestions -","notAvailable":"Sorry, but service is unavailable now.","notInDic":"Not in dictionary","oneChange":"Spell check complete: One word changed","progress":"Spell check in progress...","title":"Spell Check","toolbar":"Check Spelling"}};
|
const webpack = require('webpack');
const writeFilePlugin = require('write-file-webpack-plugin');
const webpackMerge = require('webpack-merge');
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
const SimpleProgressWebpackPlugin = require('simple-progress-webpack-plugin');
const WebpackNotifierPlugin = require('webpack-notifier');
const path = require('path');
const sass = require('sass');
const utils = require('./utils.js');
const commonConfig = require('./webpack.common.js');
const ENV = 'development';
module.exports = (options) => webpackMerge(commonConfig({ env: ENV }), {
devtool: 'eval-source-map',
devServer: {
contentBase: './build/www',
proxy: [{
context: [
/* jhipster-needle-add-entity-to-webpack - JHipster will add entity api paths here */
'/api',
'/management',
'/swagger-resources',
'/v2/api-docs',
'/h2-console',
'/login',
'/auth'
],
target: `http${options.tls ? 's' : ''}://127.0.0.1:8080`,
secure: false,
changeOrigin: options.tls,
headers: { host: 'localhost:9000' }
}],
stats: options.stats,
watchOptions: {
ignored: /node_modules/
}
},
entry: {
polyfills: './src/main/webapp/app/polyfills',
global: './src/main/webapp/content/scss/global.scss',
main: './src/main/webapp/app/app.main'
},
output: {
path: utils.root('build/www'),
filename: 'app/[name].bundle.js',
chunkFilename: 'app/[id].chunk.js'
},
module: {
rules: [{
test: /\.ts$/,
enforce: 'pre',
loader: 'tslint-loader',
exclude: [/(node_modules)/, new RegExp('reflect-metadata\\' + path.sep + 'Reflect\\.ts')]
},
{
test: /\.ts$/,
use: [
'angular2-template-loader',
{
loader: 'cache-loader',
options: {
cacheDirectory: path.resolve('build/cache-loader')
}
},
{
loader: 'thread-loader',
options: {
// there should be 1 cpu for the fork-ts-checker-webpack-plugin
workers: require('os').cpus().length - 1
}
},
{
loader: 'ts-loader',
options: {
transpileOnly: true,
happyPackMode: true
}
},
'angular-router-loader'
],
exclude: /(node_modules)/
},
{
test: /\.scss$/,
use: ['to-string-loader', 'css-loader', {
loader: 'sass-loader',
options: { implementation: sass }
}],
exclude: /(vendor\.scss|global\.scss)/
},
{
test: /(vendor\.scss|global\.scss)/,
use: ['style-loader', 'css-loader', 'postcss-loader', {
loader: 'sass-loader',
options: { implementation: sass }
}]
},
{
test: /\.css$/,
use: ['to-string-loader', 'css-loader'],
exclude: /(vendor\.css|global\.css)/
},
{
test: /(vendor\.css|global\.css)/,
use: ['style-loader', 'css-loader']
}]
},
stats: process.env.JHI_DISABLE_WEBPACK_LOGS ? 'none' : options.stats,
plugins: [
process.env.JHI_DISABLE_WEBPACK_LOGS
? null
: new SimpleProgressWebpackPlugin({
format: options.stats === 'minimal' ? 'compact' : 'expanded'
}),
new FriendlyErrorsWebpackPlugin(),
new ForkTsCheckerWebpackPlugin(),
new BrowserSyncPlugin({
host: 'localhost',
port: 9000,
proxy: {
target: 'http://localhost:9060'
},
socket: {
clients: {
heartbeatTimeout: 60000
}
}
}, {
reload: false
}),
new webpack.ContextReplacementPlugin(
/angular(\\|\/)core(\\|\/)/,
path.resolve(__dirname, './src/main/webapp')
),
new writeFilePlugin(),
new webpack.WatchIgnorePlugin([
utils.root('src/test'),
]),
new WebpackNotifierPlugin({
title: 'JHipster',
contentImage: path.join(__dirname, 'logo-jhipster.png')
})
].filter(Boolean),
mode: 'development'
});
|
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import * as tslib_1 from "tslib";
import { Injector } from './injector';
import { THROW_IF_NOT_FOUND } from './injector_compatibility';
import { Self, SkipSelf } from './metadata';
import { cyclicDependencyError, instantiationError, noProviderError, outOfBoundsError } from './reflective_errors';
import { ReflectiveKey } from './reflective_key';
import { resolveReflectiveProviders } from './reflective_provider';
// Threshold for the dynamic version
var UNDEFINED = new Object();
/**
* A ReflectiveDependency injection container used for instantiating objects and resolving
* dependencies.
*
* An `Injector` is a replacement for a `new` operator, which can automatically resolve the
* constructor dependencies.
*
* In typical use, application code asks for the dependencies in the constructor and they are
* resolved by the `Injector`.
*
* @usageNotes
* ### Example
*
* The following example creates an `Injector` configured to create `Engine` and `Car`.
*
* ```typescript
* @Injectable()
* class Engine {
* }
*
* @Injectable()
* class Car {
* constructor(public engine:Engine) {}
* }
*
* var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);
* var car = injector.get(Car);
* expect(car instanceof Car).toBe(true);
* expect(car.engine instanceof Engine).toBe(true);
* ```
*
* Notice, we don't use the `new` operator because we explicitly want to have the `Injector`
* resolve all of the object's dependencies automatically.
*
* @deprecated from v5 - slow and brings in a lot of code, Use `Injector.create` instead.
* @publicApi
*/
var ReflectiveInjector = /** @class */ (function () {
function ReflectiveInjector() {
}
/**
* Turns an array of provider definitions into an array of resolved providers.
*
* A resolution is a process of flattening multiple nested arrays and converting individual
* providers into an array of `ResolvedReflectiveProvider`s.
*
* @usageNotes
* ### Example
*
* ```typescript
* @Injectable()
* class Engine {
* }
*
* @Injectable()
* class Car {
* constructor(public engine:Engine) {}
* }
*
* var providers = ReflectiveInjector.resolve([Car, [[Engine]]]);
*
* expect(providers.length).toEqual(2);
*
* expect(providers[0] instanceof ResolvedReflectiveProvider).toBe(true);
* expect(providers[0].key.displayName).toBe("Car");
* expect(providers[0].dependencies.length).toEqual(1);
* expect(providers[0].factory).toBeDefined();
*
* expect(providers[1].key.displayName).toBe("Engine");
* });
* ```
*
*/
ReflectiveInjector.resolve = function (providers) {
return resolveReflectiveProviders(providers);
};
/**
* Resolves an array of providers and creates an injector from those providers.
*
* The passed-in providers can be an array of `Type`, `Provider`,
* or a recursive array of more providers.
*
* @usageNotes
* ### Example
*
* ```typescript
* @Injectable()
* class Engine {
* }
*
* @Injectable()
* class Car {
* constructor(public engine:Engine) {}
* }
*
* var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);
* expect(injector.get(Car) instanceof Car).toBe(true);
* ```
*/
ReflectiveInjector.resolveAndCreate = function (providers, parent) {
var ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);
return ReflectiveInjector.fromResolvedProviders(ResolvedReflectiveProviders, parent);
};
/**
* Creates an injector from previously resolved providers.
*
* This API is the recommended way to construct injectors in performance-sensitive parts.
*
* @usageNotes
* ### Example
*
* ```typescript
* @Injectable()
* class Engine {
* }
*
* @Injectable()
* class Car {
* constructor(public engine:Engine) {}
* }
*
* var providers = ReflectiveInjector.resolve([Car, Engine]);
* var injector = ReflectiveInjector.fromResolvedProviders(providers);
* expect(injector.get(Car) instanceof Car).toBe(true);
* ```
*/
ReflectiveInjector.fromResolvedProviders = function (providers, parent) {
return new ReflectiveInjector_(providers, parent);
};
return ReflectiveInjector;
}());
export { ReflectiveInjector };
var ReflectiveInjector_ = /** @class */ (function () {
/**
* Private
*/
function ReflectiveInjector_(_providers, _parent) {
/** @internal */
this._constructionCounter = 0;
this._providers = _providers;
this.parent = _parent || null;
var len = _providers.length;
this.keyIds = new Array(len);
this.objs = new Array(len);
for (var i = 0; i < len; i++) {
this.keyIds[i] = _providers[i].key.id;
this.objs[i] = UNDEFINED;
}
}
ReflectiveInjector_.prototype.get = function (token, notFoundValue) {
if (notFoundValue === void 0) { notFoundValue = THROW_IF_NOT_FOUND; }
return this._getByKey(ReflectiveKey.get(token), null, notFoundValue);
};
ReflectiveInjector_.prototype.resolveAndCreateChild = function (providers) {
var ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);
return this.createChildFromResolved(ResolvedReflectiveProviders);
};
ReflectiveInjector_.prototype.createChildFromResolved = function (providers) {
var inj = new ReflectiveInjector_(providers);
inj.parent = this;
return inj;
};
ReflectiveInjector_.prototype.resolveAndInstantiate = function (provider) {
return this.instantiateResolved(ReflectiveInjector.resolve([provider])[0]);
};
ReflectiveInjector_.prototype.instantiateResolved = function (provider) {
return this._instantiateProvider(provider);
};
ReflectiveInjector_.prototype.getProviderAtIndex = function (index) {
if (index < 0 || index >= this._providers.length) {
throw outOfBoundsError(index);
}
return this._providers[index];
};
/** @internal */
ReflectiveInjector_.prototype._new = function (provider) {
if (this._constructionCounter++ > this._getMaxNumberOfObjects()) {
throw cyclicDependencyError(this, provider.key);
}
return this._instantiateProvider(provider);
};
ReflectiveInjector_.prototype._getMaxNumberOfObjects = function () { return this.objs.length; };
ReflectiveInjector_.prototype._instantiateProvider = function (provider) {
if (provider.multiProvider) {
var res = new Array(provider.resolvedFactories.length);
for (var i = 0; i < provider.resolvedFactories.length; ++i) {
res[i] = this._instantiate(provider, provider.resolvedFactories[i]);
}
return res;
}
else {
return this._instantiate(provider, provider.resolvedFactories[0]);
}
};
ReflectiveInjector_.prototype._instantiate = function (provider, ResolvedReflectiveFactory) {
var _this = this;
var factory = ResolvedReflectiveFactory.factory;
var deps;
try {
deps =
ResolvedReflectiveFactory.dependencies.map(function (dep) { return _this._getByReflectiveDependency(dep); });
}
catch (e) {
if (e.addKey) {
e.addKey(this, provider.key);
}
throw e;
}
var obj;
try {
obj = factory.apply(void 0, tslib_1.__spread(deps));
}
catch (e) {
throw instantiationError(this, e, e.stack, provider.key);
}
return obj;
};
ReflectiveInjector_.prototype._getByReflectiveDependency = function (dep) {
return this._getByKey(dep.key, dep.visibility, dep.optional ? null : THROW_IF_NOT_FOUND);
};
ReflectiveInjector_.prototype._getByKey = function (key, visibility, notFoundValue) {
if (key === ReflectiveInjector_.INJECTOR_KEY) {
return this;
}
if (visibility instanceof Self) {
return this._getByKeySelf(key, notFoundValue);
}
else {
return this._getByKeyDefault(key, notFoundValue, visibility);
}
};
ReflectiveInjector_.prototype._getObjByKeyId = function (keyId) {
for (var i = 0; i < this.keyIds.length; i++) {
if (this.keyIds[i] === keyId) {
if (this.objs[i] === UNDEFINED) {
this.objs[i] = this._new(this._providers[i]);
}
return this.objs[i];
}
}
return UNDEFINED;
};
/** @internal */
ReflectiveInjector_.prototype._throwOrNull = function (key, notFoundValue) {
if (notFoundValue !== THROW_IF_NOT_FOUND) {
return notFoundValue;
}
else {
throw noProviderError(this, key);
}
};
/** @internal */
ReflectiveInjector_.prototype._getByKeySelf = function (key, notFoundValue) {
var obj = this._getObjByKeyId(key.id);
return (obj !== UNDEFINED) ? obj : this._throwOrNull(key, notFoundValue);
};
/** @internal */
ReflectiveInjector_.prototype._getByKeyDefault = function (key, notFoundValue, visibility) {
var inj;
if (visibility instanceof SkipSelf) {
inj = this.parent;
}
else {
inj = this;
}
while (inj instanceof ReflectiveInjector_) {
var inj_ = inj;
var obj = inj_._getObjByKeyId(key.id);
if (obj !== UNDEFINED)
return obj;
inj = inj_.parent;
}
if (inj !== null) {
return inj.get(key.token, notFoundValue);
}
else {
return this._throwOrNull(key, notFoundValue);
}
};
Object.defineProperty(ReflectiveInjector_.prototype, "displayName", {
get: function () {
var providers = _mapProviders(this, function (b) { return ' "' + b.key.displayName + '" '; })
.join(', ');
return "ReflectiveInjector(providers: [" + providers + "])";
},
enumerable: true,
configurable: true
});
ReflectiveInjector_.prototype.toString = function () { return this.displayName; };
ReflectiveInjector_.INJECTOR_KEY = ReflectiveKey.get(Injector);
return ReflectiveInjector_;
}());
export { ReflectiveInjector_ };
function _mapProviders(injector, fn) {
var res = new Array(injector._providers.length);
for (var i = 0; i < injector._providers.length; ++i) {
res[i] = fn(injector.getProviderAtIndex(i));
}
return res;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdGl2ZV9pbmplY3Rvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvcmUvc3JjL2RpL3JlZmxlY3RpdmVfaW5qZWN0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HOztBQUVILE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxZQUFZLENBQUM7QUFDcEMsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sMEJBQTBCLENBQUM7QUFFNUQsT0FBTyxFQUFDLElBQUksRUFBRSxRQUFRLEVBQUMsTUFBTSxZQUFZLENBQUM7QUFDMUMsT0FBTyxFQUFDLHFCQUFxQixFQUFFLGtCQUFrQixFQUFFLGVBQWUsRUFBRSxnQkFBZ0IsRUFBQyxNQUFNLHFCQUFxQixDQUFDO0FBQ2pILE9BQU8sRUFBQyxhQUFhLEVBQUMsTUFBTSxrQkFBa0IsQ0FBQztBQUMvQyxPQUFPLEVBQThFLDBCQUEwQixFQUFDLE1BQU0sdUJBQXVCLENBQUM7QUFHOUksb0NBQW9DO0FBQ3BDLElBQU0sU0FBUyxHQUFHLElBQUksTUFBTSxFQUFFLENBQUM7QUFFL0I7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQW9DRztBQUNIO0lBQUE7SUFvTkEsQ0FBQztJQW5OQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7T0FnQ0c7SUFDSSwwQkFBTyxHQUFkLFVBQWUsU0FBcUI7UUFDbEMsT0FBTywwQkFBMEIsQ0FBQyxTQUFTLENBQUMsQ0FBQztJQUMvQyxDQUFDO0lBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7T0FzQkc7SUFDSSxtQ0FBZ0IsR0FBdkIsVUFBd0IsU0FBcUIsRUFBRSxNQUFpQjtRQUM5RCxJQUFNLDJCQUEyQixHQUFHLGtCQUFrQixDQUFDLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQztRQUMxRSxPQUFPLGtCQUFrQixDQUFDLHFCQUFxQixDQUFDLDJCQUEyQixFQUFFLE1BQU0sQ0FBQyxDQUFDO0lBQ3ZGLENBQUM7SUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztPQXNCRztJQUNJLHdDQUFxQixHQUE1QixVQUE2QixTQUF1QyxFQUFFLE1BQWlCO1FBRXJGLE9BQU8sSUFBSSxtQkFBbUIsQ0FBQyxTQUFTLEVBQUUsTUFBTSxDQUFDLENBQUM7SUFDcEQsQ0FBQztJQXdISCx5QkFBQztBQUFELENBQUMsQUFwTkQsSUFvTkM7O0FBRUQ7SUFVRTs7T0FFRztJQUNILDZCQUFZLFVBQXdDLEVBQUUsT0FBa0I7UUFYeEUsZ0JBQWdCO1FBQ2hCLHlCQUFvQixHQUFXLENBQUMsQ0FBQztRQVcvQixJQUFJLENBQUMsVUFBVSxHQUFHLFVBQVUsQ0FBQztRQUM3QixJQUFJLENBQUMsTUFBTSxHQUFHLE9BQU8sSUFBSSxJQUFJLENBQUM7UUFFOUIsSUFBTSxHQUFHLEdBQUcsVUFBVSxDQUFDLE1BQU0sQ0FBQztRQUU5QixJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDO1FBQzdCLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUM7UUFFM0IsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLEdBQUcsRUFBRSxDQUFDLEVBQUUsRUFBRTtZQUM1QixJQUFJLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxHQUFHLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDO1lBQ3RDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEdBQUcsU0FBUyxDQUFDO1NBQzFCO0lBQ0gsQ0FBQztJQUVELGlDQUFHLEdBQUgsVUFBSSxLQUFVLEVBQUUsYUFBdUM7UUFBdkMsOEJBQUEsRUFBQSxrQ0FBdUM7UUFDckQsT0FBTyxJQUFJLENBQUMsU0FBUyxDQUFDLGFBQWEsQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLEVBQUUsSUFBSSxFQUFFLGFBQWEsQ0FBQyxDQUFDO0lBQ3ZFLENBQUM7SUFFRCxtREFBcUIsR0FBckIsVUFBc0IsU0FBcUI7UUFDekMsSUFBTSwyQkFBMkIsR0FBRyxrQkFBa0IsQ0FBQyxPQUFPLENBQUMsU0FBUyxDQUFDLENBQUM7UUFDMUUsT0FBTyxJQUFJLENBQUMsdUJBQXVCLENBQUMsMkJBQTJCLENBQUMsQ0FBQztJQUNuRSxDQUFDO0lBRUQscURBQXVCLEdBQXZCLFVBQXdCLFNBQXVDO1FBQzdELElBQU0sR0FBRyxHQUFHLElBQUksbUJBQW1CLENBQUMsU0FBUyxDQUFDLENBQUM7UUFDOUMsR0FBZ0MsQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDO1FBQ2hELE9BQU8sR0FBRyxDQUFDO0lBQ2IsQ0FBQztJQUVELG1EQUFxQixHQUFyQixVQUFzQixRQUFrQjtRQUN0QyxPQUFPLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxrQkFBa0IsQ0FBQyxPQUFPLENBQUMsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDN0UsQ0FBQztJQUVELGlEQUFtQixHQUFuQixVQUFvQixRQUFvQztRQUN0RCxPQUFPLElBQUksQ0FBQyxvQkFBb0IsQ0FBQyxRQUFRLENBQUMsQ0FBQztJQUM3QyxDQUFDO0lBRUQsZ0RBQWtCLEdBQWxCLFVBQW1CLEtBQWE7UUFDOUIsSUFBSSxLQUFLLEdBQUcsQ0FBQyxJQUFJLEtBQUssSUFBSSxJQUFJLENBQUMsVUFBVSxDQUFDLE1BQU0sRUFBRTtZQUNoRCxNQUFNLGdCQUFnQixDQUFDLEtBQUssQ0FBQyxDQUFDO1NBQy9CO1FBQ0QsT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQ2hDLENBQUM7SUFFRCxnQkFBZ0I7SUFDaEIsa0NBQUksR0FBSixVQUFLLFFBQW9DO1FBQ3ZDLElBQUksSUFBSSxDQUFDLG9CQUFvQixFQUFFLEdBQUcsSUFBSSxDQUFDLHNCQUFzQixFQUFFLEVBQUU7WUFDL0QsTUFBTSxxQkFBcUIsQ0FBQyxJQUFJLEVBQUUsUUFBUSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1NBQ2pEO1FBQ0QsT0FBTyxJQUFJLENBQUMsb0JBQW9CLENBQUMsUUFBUSxDQUFDLENBQUM7SUFDN0MsQ0FBQztJQUVPLG9EQUFzQixHQUE5QixjQUEyQyxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQztJQUU3RCxrREFBb0IsR0FBNUIsVUFBNkIsUUFBb0M7UUFDL0QsSUFBSSxRQUFRLENBQUMsYUFBYSxFQUFFO1lBQzFCLElBQU0sR0FBRyxHQUFHLElBQUksS0FBSyxDQUFDLFFBQVEsQ0FBQyxpQkFBaUIsQ0FBQyxNQUFNLENBQUMsQ0FBQztZQUN6RCxLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsUUFBUSxDQUFDLGlCQUFpQixDQUFDLE1BQU0sRUFBRSxFQUFFLENBQUMsRUFBRTtnQkFDMUQsR0FBRyxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQyxZQUFZLENBQUMsUUFBUSxFQUFFLFFBQVEsQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO2FBQ3JFO1lBQ0QsT0FBTyxHQUFHLENBQUM7U0FDWjthQUFNO1lBQ0wsT0FBTyxJQUFJLENBQUMsWUFBWSxDQUFDLFFBQVEsRUFBRSxRQUFRLENBQUMsaUJBQWlCLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztTQUNuRTtJQUNILENBQUM7SUFFTywwQ0FBWSxHQUFwQixVQUNJLFFBQW9DLEVBQ3BDLHlCQUFvRDtRQUZ4RCxpQkF3QkM7UUFyQkMsSUFBTSxPQUFPLEdBQUcseUJBQXlCLENBQUMsT0FBTyxDQUFDO1FBRWxELElBQUksSUFBVyxDQUFDO1FBQ2hCLElBQUk7WUFDRixJQUFJO2dCQUNBLHlCQUF5QixDQUFDLFlBQVksQ0FBQyxHQUFHLENBQUMsVUFBQSxHQUFHLElBQUksT0FBQSxLQUFJLENBQUMsMEJBQTBCLENBQUMsR0FBRyxDQUFDLEVBQXBDLENBQW9DLENBQUMsQ0FBQztTQUM3RjtRQUFDLE9BQU8sQ0FBQyxFQUFFO1lBQ1YsSUFBSSxDQUFDLENBQUMsTUFBTSxFQUFFO2dCQUNaLENBQUMsQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLFFBQVEsQ0FBQyxHQUFHLENBQUMsQ0FBQzthQUM5QjtZQUNELE1BQU0sQ0FBQyxDQUFDO1NBQ1Q7UUFFRCxJQUFJLEdBQVEsQ0FBQztRQUNiLElBQUk7WUFDRixHQUFHLEdBQUcsT0FBTyxnQ0FBSSxJQUFJLEVBQUMsQ0FBQztTQUN4QjtRQUFDLE9BQU8sQ0FBQyxFQUFFO1lBQ1YsTUFBTSxrQkFBa0IsQ0FBQyxJQUFJLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxLQUFLLEVBQUUsUUFBUSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1NBQzFEO1FBRUQsT0FBTyxHQUFHLENBQUM7SUFDYixDQUFDO0lBRU8sd0RBQTBCLEdBQWxDLFVBQW1DLEdBQXlCO1FBQzFELE9BQU8sSUFBSSxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsR0FBRyxFQUFFLEdBQUcsQ0FBQyxVQUFVLEVBQUUsR0FBRyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDO0lBQzNGLENBQUM7SUFFTyx1Q0FBUyxHQUFqQixVQUFrQixHQUFrQixFQUFFLFVBQThCLEVBQUUsYUFBa0I7UUFDdEYsSUFBSSxHQUFHLEtBQUssbUJBQW1CLENBQUMsWUFBWSxFQUFFO1lBQzVDLE9BQU8sSUFBSSxDQUFDO1NBQ2I7UUFFRCxJQUFJLFVBQVUsWUFBWSxJQUFJLEVBQUU7WUFDOUIsT0FBTyxJQUFJLENBQUMsYUFBYSxDQUFDLEdBQUcsRUFBRSxhQUFhLENBQUMsQ0FBQztTQUUvQzthQUFNO1lBQ0wsT0FBTyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsR0FBRyxFQUFFLGFBQWEsRUFBRSxVQUFVLENBQUMsQ0FBQztTQUM5RDtJQUNILENBQUM7SUFFTyw0Q0FBYyxHQUF0QixVQUF1QixLQUFhO1FBQ2xDLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDLE1BQU0sRUFBRSxDQUFDLEVBQUUsRUFBRTtZQUMzQyxJQUFJLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLEtBQUssS0FBSyxFQUFFO2dCQUM1QixJQUFJLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEtBQUssU0FBUyxFQUFFO29CQUM5QixJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO2lCQUM5QztnQkFFRCxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7YUFDckI7U0FDRjtRQUVELE9BQU8sU0FBUyxDQUFDO0lBQ25CLENBQUM7SUFFRCxnQkFBZ0I7SUFDaEIsMENBQVksR0FBWixVQUFhLEdBQWtCLEVBQUUsYUFBa0I7UUFDakQsSUFBSSxhQUFhLEtBQUssa0JBQWtCLEVBQUU7WUFDeEMsT0FBTyxhQUFhLENBQUM7U0FDdEI7YUFBTTtZQUNMLE1BQU0sZUFBZSxDQUFDLElBQUksRUFBRSxHQUFHLENBQUMsQ0FBQztTQUNsQztJQUNILENBQUM7SUFFRCxnQkFBZ0I7SUFDaEIsMkNBQWEsR0FBYixVQUFjLEdBQWtCLEVBQUUsYUFBa0I7UUFDbEQsSUFBTSxHQUFHLEdBQUcsSUFBSSxDQUFDLGNBQWMsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLENBQUM7UUFDeEMsT0FBTyxDQUFDLEdBQUcsS0FBSyxTQUFTLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLEdBQUcsRUFBRSxhQUFhLENBQUMsQ0FBQztJQUMzRSxDQUFDO0lBRUQsZ0JBQWdCO0lBQ2hCLDhDQUFnQixHQUFoQixVQUFpQixHQUFrQixFQUFFLGFBQWtCLEVBQUUsVUFBOEI7UUFDckYsSUFBSSxHQUFrQixDQUFDO1FBRXZCLElBQUksVUFBVSxZQUFZLFFBQVEsRUFBRTtZQUNsQyxHQUFHLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQztTQUNuQjthQUFNO1lBQ0wsR0FBRyxHQUFHLElBQUksQ0FBQztTQUNaO1FBRUQsT0FBTyxHQUFHLFlBQVksbUJBQW1CLEVBQUU7WUFDekMsSUFBTSxJQUFJLEdBQXdCLEdBQUcsQ0FBQztZQUN0QyxJQUFNLEdBQUcsR0FBRyxJQUFJLENBQUMsY0FBYyxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsQ0FBQztZQUN4QyxJQUFJLEdBQUcsS0FBSyxTQUFTO2dCQUFFLE9BQU8sR0FBRyxDQUFDO1lBQ2xDLEdBQUcsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDO1NBQ25CO1FBQ0QsSUFBSSxHQUFHLEtBQUssSUFBSSxFQUFFO1lBQ2hCLE9BQU8sR0FBRyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLGFBQWEsQ0FBQyxDQUFDO1NBQzFDO2FBQU07WUFDTCxPQUFPLElBQUksQ0FBQyxZQUFZLENBQUMsR0FBRyxFQUFFLGFBQWEsQ0FBQyxDQUFDO1NBQzlDO0lBQ0gsQ0FBQztJQUVELHNCQUFJLDRDQUFXO2FBQWY7WUFDRSxJQUFNLFNBQVMsR0FDWCxhQUFhLENBQUMsSUFBSSxFQUFFLFVBQUMsQ0FBNkIsSUFBSyxPQUFBLElBQUksR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLFdBQVcsR0FBRyxJQUFJLEVBQS9CLENBQStCLENBQUM7aUJBQ2xGLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztZQUNwQixPQUFPLG9DQUFrQyxTQUFTLE9BQUksQ0FBQztRQUN6RCxDQUFDOzs7T0FBQTtJQUVELHNDQUFRLEdBQVIsY0FBcUIsT0FBTyxJQUFJLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQztJQXJMaEMsZ0NBQVksR0FBRyxhQUFhLENBQUMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBc0w1RCwwQkFBQztDQUFBLEFBdkxELElBdUxDO1NBdkxZLG1CQUFtQjtBQXlMaEMsU0FBUyxhQUFhLENBQUMsUUFBNkIsRUFBRSxFQUFZO0lBQ2hFLElBQU0sR0FBRyxHQUFVLElBQUksS0FBSyxDQUFDLFFBQVEsQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDekQsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLFFBQVEsQ0FBQyxVQUFVLENBQUMsTUFBTSxFQUFFLEVBQUUsQ0FBQyxFQUFFO1FBQ25ELEdBQUcsQ0FBQyxDQUFDLENBQUMsR0FBRyxFQUFFLENBQUMsUUFBUSxDQUFDLGtCQUFrQixDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7S0FDN0M7SUFDRCxPQUFPLEdBQUcsQ0FBQztBQUNiLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIEluYy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbmltcG9ydCB7SW5qZWN0b3J9IGZyb20gJy4vaW5qZWN0b3InO1xuaW1wb3J0IHtUSFJPV19JRl9OT1RfRk9VTkR9IGZyb20gJy4vaW5qZWN0b3JfY29tcGF0aWJpbGl0eSc7XG5pbXBvcnQge1Byb3ZpZGVyfSBmcm9tICcuL2ludGVyZmFjZS9wcm92aWRlcic7XG5pbXBvcnQge1NlbGYsIFNraXBTZWxmfSBmcm9tICcuL21ldGFkYXRhJztcbmltcG9ydCB7Y3ljbGljRGVwZW5kZW5jeUVycm9yLCBpbnN0YW50aWF0aW9uRXJyb3IsIG5vUHJvdmlkZXJFcnJvciwgb3V0T2ZCb3VuZHNFcnJvcn0gZnJvbSAnLi9yZWZsZWN0aXZlX2Vycm9ycyc7XG5pbXBvcnQge1JlZmxlY3RpdmVLZXl9IGZyb20gJy4vcmVmbGVjdGl2ZV9rZXknO1xuaW1wb3J0IHtSZWZsZWN0aXZlRGVwZW5kZW5jeSwgUmVzb2x2ZWRSZWZsZWN0aXZlRmFjdG9yeSwgUmVzb2x2ZWRSZWZsZWN0aXZlUHJvdmlkZXIsIHJlc29sdmVSZWZsZWN0aXZlUHJvdmlkZXJzfSBmcm9tICcuL3JlZmxlY3RpdmVfcHJvdmlkZXInO1xuXG5cbi8vIFRocmVzaG9sZCBmb3IgdGhlIGR5bmFtaWMgdmVyc2lvblxuY29uc3QgVU5ERUZJTkVEID0gbmV3IE9iamVjdCgpO1xuXG4vKipcbiAqIEEgUmVmbGVjdGl2ZURlcGVuZGVuY3kgaW5qZWN0aW9uIGNvbnRhaW5lciB1c2VkIGZvciBpbnN0YW50aWF0aW5nIG9iamVjdHMgYW5kIHJlc29sdmluZ1xuICogZGVwZW5kZW5jaWVzLlxuICpcbiAqIEFuIGBJbmplY3RvcmAgaXMgYSByZXBsYWNlbWVudCBmb3IgYSBgbmV3YCBvcGVyYXRvciwgd2hpY2ggY2FuIGF1dG9tYXRpY2FsbHkgcmVzb2x2ZSB0aGVcbiAqIGNvbnN0cnVjdG9yIGRlcGVuZGVuY2llcy5cbiAqXG4gKiBJbiB0eXBpY2FsIHVzZSwgYXBwbGljYXRpb24gY29kZSBhc2tzIGZvciB0aGUgZGVwZW5kZW5jaWVzIGluIHRoZSBjb25zdHJ1Y3RvciBhbmQgdGhleSBhcmVcbiAqIHJlc29sdmVkIGJ5IHRoZSBgSW5qZWN0b3JgLlxuICpcbiAqIEB1c2FnZU5vdGVzXG4gKiAjIyMgRXhhbXBsZVxuICpcbiAqIFRoZSBmb2xsb3dpbmcgZXhhbXBsZSBjcmVhdGVzIGFuIGBJbmplY3RvcmAgY29uZmlndXJlZCB0byBjcmVhdGUgYEVuZ2luZWAgYW5kIGBDYXJgLlxuICpcbiAqIGBgYHR5cGVzY3JpcHRcbiAqIEBJbmplY3RhYmxlKClcbiAqIGNsYXNzIEVuZ2luZSB7XG4gKiB9XG4gKlxuICogQEluamVjdGFibGUoKVxuICogY2xhc3MgQ2FyIHtcbiAqICAgY29uc3RydWN0b3IocHVibGljIGVuZ2luZTpFbmdpbmUpIHt9XG4gKiB9XG4gKlxuICogdmFyIGluamVjdG9yID0gUmVmbGVjdGl2ZUluamVjdG9yLnJlc29sdmVBbmRDcmVhdGUoW0NhciwgRW5naW5lXSk7XG4gKiB2YXIgY2FyID0gaW5qZWN0b3IuZ2V0KENhcik7XG4gKiBleHBlY3QoY2FyIGluc3RhbmNlb2YgQ2FyKS50b0JlKHRydWUpO1xuICogZXhwZWN0KGNhci5lbmdpbmUgaW5zdGFuY2VvZiBFbmdpbmUpLnRvQmUodHJ1ZSk7XG4gKiBgYGBcbiAqXG4gKiBOb3RpY2UsIHdlIGRvbid0IHVzZSB0aGUgYG5ld2Agb3BlcmF0b3IgYmVjYXVzZSB3ZSBleHBsaWNpdGx5IHdhbnQgdG8gaGF2ZSB0aGUgYEluamVjdG9yYFxuICogcmVzb2x2ZSBhbGwgb2YgdGhlIG9iamVjdCdzIGRlcGVuZGVuY2llcyBhdXRvbWF0aWNhbGx5LlxuICpcbiAqIEBkZXByZWNhdGVkIGZyb20gdjUgLSBzbG93IGFuZCBicmluZ3MgaW4gYSBsb3Qgb2YgY29kZSwgVXNlIGBJbmplY3Rvci5jcmVhdGVgIGluc3RlYWQuXG4gKiBAcHVibGljQXBpXG4gKi9cbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBSZWZsZWN0aXZlSW5qZWN0b3IgaW1wbGVtZW50cyBJbmplY3RvciB7XG4gIC8qKlxuICAgKiBUdXJucyBhbiBhcnJheSBvZiBwcm92aWRlciBkZWZpbml0aW9ucyBpbnRvIGFuIGFycmF5IG9mIHJlc29sdmVkIHByb3ZpZGVycy5cbiAgICpcbiAgICogQSByZXNvbHV0aW9uIGlzIGEgcHJvY2VzcyBvZiBmbGF0dGVuaW5nIG11bHRpcGxlIG5lc3RlZCBhcnJheXMgYW5kIGNvbnZlcnRpbmcgaW5kaXZpZHVhbFxuICAgKiBwcm92aWRlcnMgaW50byBhbiBhcnJheSBvZiBgUmVzb2x2ZWRSZWZsZWN0aXZlUHJvdmlkZXJgcy5cbiAgICpcbiAgICogQHVzYWdlTm90ZXNcbiAgICogIyMjIEV4YW1wbGVcbiAgICpcbiAgICogYGBgdHlwZXNjcmlwdFxuICAgKiBASW5qZWN0YWJsZSgpXG4gICAqIGNsYXNzIEVuZ2luZSB7XG4gICAqIH1cbiAgICpcbiAgICogQEluamVjdGFibGUoKVxuICAgKiBjbGFzcyBDYXIge1xuICAgKiAgIGNvbnN0cnVjdG9yKHB1YmxpYyBlbmdpbmU6RW5naW5lKSB7fVxuICAgKiB9XG4gICAqXG4gICAqIHZhciBwcm92aWRlcnMgPSBSZWZsZWN0aXZlSW5qZWN0b3IucmVzb2x2ZShbQ2FyLCBbW0VuZ2luZV1dXSk7XG4gICAqXG4gICAqIGV4cGVjdChwcm92aWRlcnMubGVuZ3RoKS50b0VxdWFsKDIpO1xuICAgKlxuICAgKiBleHBlY3QocHJvdmlkZXJzWzBdIGluc3RhbmNlb2YgUmVzb2x2ZWRSZWZsZWN0aXZlUHJvdmlkZXIpLnRvQmUodHJ1ZSk7XG4gICAqIGV4cGVjdChwcm92aWRlcnNbMF0ua2V5LmRpc3BsYXlOYW1lKS50b0JlKFwiQ2FyXCIpO1xuICAgKiBleHBlY3QocHJvdmlkZXJzWzBdLmRlcGVuZGVuY2llcy5sZW5ndGgpLnRvRXF1YWwoMSk7XG4gICAqIGV4cGVjdChwcm92aWRlcnNbMF0uZmFjdG9yeSkudG9CZURlZmluZWQoKTtcbiAgICpcbiAgICogZXhwZWN0KHByb3ZpZGVyc1sxXS5rZXkuZGlzcGxheU5hbWUpLnRvQmUoXCJFbmdpbmVcIik7XG4gICAqIH0pO1xuICAgKiBgYGBcbiAgICpcbiAgICovXG4gIHN0YXRpYyByZXNvbHZlKHByb3ZpZGVyczogUHJvdmlkZXJbXSk6IFJlc29sdmVkUmVmbGVjdGl2ZVByb3ZpZGVyW10ge1xuICAgIHJldHVybiByZXNvbHZlUmVmbGVjdGl2ZVByb3ZpZGVycyhwcm92aWRlcnMpO1xuICB9XG5cbiAgLyoqXG4gICAqIFJlc29sdmVzIGFuIGFycmF5IG9mIHByb3ZpZGVycyBhbmQgY3JlYXRlcyBhbiBpbmplY3RvciBmcm9tIHRob3NlIHByb3ZpZGVycy5cbiAgICpcbiAgICogVGhlIHBhc3NlZC1pbiBwcm92aWRlcnMgY2FuIGJlIGFuIGFycmF5IG9mIGBUeXBlYCwgYFByb3ZpZGVyYCxcbiAgICogb3IgYSByZWN1cnNpdmUgYXJyYXkgb2YgbW9yZSBwcm92aWRlcnMuXG4gICAqXG4gICAqIEB1c2FnZU5vdGVzXG4gICAqICMjIyBFeGFtcGxlXG4gICAqXG4gICAqIGBgYHR5cGVzY3JpcHRcbiAgICogQEluamVjdGFibGUoKVxuICAgKiBjbGFzcyBFbmdpbmUge1xuICAgKiB9XG4gICAqXG4gICAqIEBJbmplY3RhYmxlKClcbiAgICogY2xhc3MgQ2FyIHtcbiAgICogICBjb25zdHJ1Y3RvcihwdWJsaWMgZW5naW5lOkVuZ2luZSkge31cbiAgICogfVxuICAgKlxuICAgKiB2YXIgaW5qZWN0b3IgPSBSZWZsZWN0aXZlSW5qZWN0b3IucmVzb2x2ZUFuZENyZWF0ZShbQ2FyLCBFbmdpbmVdKTtcbiAgICogZXhwZWN0KGluamVjdG9yLmdldChDYXIpIGluc3RhbmNlb2YgQ2FyKS50b0JlKHRydWUpO1xuICAgKiBgYGBcbiAgICovXG4gIHN0YXRpYyByZXNvbHZlQW5kQ3JlYXRlKHByb3ZpZGVyczogUHJvdmlkZXJbXSwgcGFyZW50PzogSW5qZWN0b3IpOiBSZWZsZWN0aXZlSW5qZWN0b3Ige1xuICAgIGNvbnN0IFJlc29sdmVkUmVmbGVjdGl2ZVByb3ZpZGVycyA9IFJlZmxlY3RpdmVJbmplY3Rvci5yZXNvbHZlKHByb3ZpZGVycyk7XG4gICAgcmV0dXJuIFJlZmxlY3RpdmVJbmplY3Rvci5mcm9tUmVzb2x2ZWRQcm92aWRlcnMoUmVzb2x2ZWRSZWZsZWN0aXZlUHJvdmlkZXJzLCBwYXJlbnQpO1xuICB9XG5cbiAgLyoqXG4gICAqIENyZWF0ZXMgYW4gaW5qZWN0b3IgZnJvbSBwcmV2aW91c2x5IHJlc29sdmVkIHByb3ZpZGVycy5cbiAgICpcbiAgICogVGhpcyBBUEkgaXMgdGhlIHJlY29tbWVuZGVkIHdheSB0byBjb25zdHJ1Y3QgaW5qZWN0b3JzIGluIHBlcmZvcm1hbmNlLXNlbnNpdGl2ZSBwYXJ0cy5cbiAgICpcbiAgICogQHVzYWdlTm90ZXNcbiAgICogIyMjIEV4YW1wbGVcbiAgICpcbiAgICogYGBgdHlwZXNjcmlwdFxuICAgKiBASW5qZWN0YWJsZSgpXG4gICAqIGNsYXNzIEVuZ2luZSB7XG4gICAqIH1cbiAgICpcbiAgICogQEluamVjdGFibGUoKVxuICAgKiBjbGFzcyBDYXIge1xuICAgKiAgIGNvbnN0cnVjdG9yKHB1YmxpYyBlbmdpbmU6RW5naW5lKSB7fVxuICAgKiB9XG4gICAqXG4gICAqIHZhciBwcm92aWRlcnMgPSBSZWZsZWN0aXZlSW5qZWN0b3IucmVzb2x2ZShbQ2FyLCBFbmdpbmVdKTtcbiAgICogdmFyIGluamVjdG9yID0gUmVmbGVjdGl2ZUluamVjdG9yLmZyb21SZXNvbHZlZFByb3ZpZGVycyhwcm92aWRlcnMpO1xuICAgKiBleHBlY3QoaW5qZWN0b3IuZ2V0KENhcikgaW5zdGFuY2VvZiBDYXIpLnRvQmUodHJ1ZSk7XG4gICAqIGBgYFxuICAgKi9cbiAgc3RhdGljIGZyb21SZXNvbHZlZFByb3ZpZGVycyhwcm92aWRlcnM6IFJlc29sdmVkUmVmbGVjdGl2ZVByb3ZpZGVyW10sIHBhcmVudD86IEluamVjdG9yKTpcbiAgICAgIFJlZmxlY3RpdmVJbmplY3RvciB7XG4gICAgcmV0dXJuIG5ldyBSZWZsZWN0aXZlSW5qZWN0b3JfKHByb3ZpZGVycywgcGFyZW50KTtcbiAgfVxuXG5cbiAgLyoqXG4gICAqIFBhcmVudCBvZiB0aGlzIGluamVjdG9yLlxuICAgKlxuICAgKiA8IS0tIFRPRE86IEFkZCBhIGxpbmsgdG8gdGhlIHNlY3Rpb24gb2YgdGhlIHVzZXIgZ3VpZGUgdGFsa2luZyBhYm91dCBoaWVyYXJjaGljYWwgaW5qZWN0aW9uLlxuICAgKiAtLT5cbiAgICovXG4gIGFic3RyYWN0IGdldCBwYXJlbnQoKTogSW5qZWN0b3J8bnVsbDtcblxuICAvKipcbiAgICogUmVzb2x2ZXMgYW4gYXJyYXkgb2YgcHJvdmlkZXJzIGFuZCBjcmVhdGVzIGEgY2hpbGQgaW5qZWN0b3IgZnJvbSB0aG9zZSBwcm92aWRlcnMuXG4gICAqXG4gICAqIDwhLS0gVE9ETzogQWRkIGEgbGluayB0byB0aGUgc2VjdGlvbiBvZiB0aGUgdXNlciBndWlkZSB0YWxraW5nIGFib3V0IGhpZXJhcmNoaWNhbCBpbmplY3Rpb24uXG4gICAqIC0tPlxuICAgKlxuICAgKiBUaGUgcGFzc2VkLWluIHByb3ZpZGVycyBjYW4gYmUgYW4gYXJyYXkgb2YgYFR5cGVgLCBgUHJvdmlkZXJgLFxuICAgKiBvciBhIHJlY3Vyc2l2ZSBhcnJheSBvZiBtb3JlIHByb3ZpZGVycy5cbiAgICpcbiAgICogQHVzYWdlTm90ZXNcbiAgICogIyMjIEV4YW1wbGVcbiAgICpcbiAgICogYGBgdHlwZXNjcmlwdFxuICAgKiBjbGFzcyBQYXJlbnRQcm92aWRlciB7fVxuICAgKiBjbGFzcyBDaGlsZFByb3ZpZGVyIHt9XG4gICAqXG4gICAqIHZhciBwYXJlbnQgPSBSZWZsZWN0aXZlSW5qZWN0b3IucmVzb2x2ZUFuZENyZWF0ZShbUGFyZW50UHJvdmlkZXJdKTtcbiAgICogdmFyIGNoaWxkID0gcGFyZW50LnJlc29sdmVBbmRDcmVhdGVDaGlsZChbQ2hpbGRQcm92aWRlcl0pO1xuICAgKlxuICAgKiBleHBlY3QoY2hpbGQuZ2V0KFBhcmVudFByb3ZpZGVyKSBpbnN0YW5jZW9mIFBhcmVudFByb3ZpZGVyKS50b0JlKHRydWUpO1xuICAgKiBleHBlY3QoY2hpbGQuZ2V0KENoaWxkUHJvdmlkZXIpIGluc3RhbmNlb2YgQ2hpbGRQcm92aWRlcikudG9CZSh0cnVlKTtcbiAgICogZXhwZWN0KGNoaWxkLmdldChQYXJlbnRQcm92aWRlcikpLnRvQmUocGFyZW50LmdldChQYXJlbnRQcm92aWRlcikpO1xuICAgKiBgYGBcbiAgICovXG4gIGFic3RyYWN0IHJlc29sdmVBbmRDcmVhdGVDaGlsZChwcm92aWRlcnM6IFByb3ZpZGVyW10pOiBSZWZsZWN0aXZlSW5qZWN0b3I7XG5cbiAgLyoqXG4gICAqIENyZWF0ZXMgYSBjaGlsZCBpbmplY3RvciBmcm9tIHByZXZpb3VzbHkgcmVzb2x2ZWQgcHJvdmlkZXJzLlxuICAgKlxuICAgKiA8IS0tIFRPRE86IEFkZCBhIGxpbmsgdG8gdGhlIHNlY3Rpb24gb2YgdGhlIHVzZXIgZ3VpZGUgdGFsa2luZyBhYm91dCBoaWVyYXJjaGljYWwgaW5qZWN0aW9uLlxuICAgKiAtLT5cbiAgICpcbiAgICogVGhpcyBBUEkgaXMgdGhlIHJlY29tbWVuZGVkIHdheSB0byBjb25zdHJ1Y3QgaW5qZWN0b3JzIGluIHBlcmZvcm1hbmNlLXNlbnNpdGl2ZSBwYXJ0cy5cbiAgICpcbiAgICogQHVzYWdlTm90ZXNcbiAgICogIyMjIEV4YW1wbGVcbiAgICpcbiAgICogYGBgdHlwZXNjcmlwdFxuICAgKiBjbGFzcyBQYXJlbnRQcm92aWRlciB7fVxuICAgKiBjbGFzcyBDaGlsZFByb3ZpZGVyIHt9XG4gICAqXG4gICAqIHZhciBwYXJlbnRQcm92aWRlcnMgPSBSZWZsZWN0aXZlSW5qZWN0b3IucmVzb2x2ZShbUGFyZW50UHJvdmlkZXJdKTtcbiAgICogdmFyIGNoaWxkUHJvdmlkZXJzID0gUmVmbGVjdGl2ZUluamVjdG9yLnJlc29sdmUoW0NoaWxkUHJvdmlkZXJdKTtcbiAgICpcbiAgICogdmFyIHBhcmVudCA9IFJlZmxlY3RpdmVJbmplY3Rvci5mcm9tUmVzb2x2ZWRQcm92aWRlcnMocGFyZW50UHJvdmlkZXJzKTtcbiAgICogdmFyIGNoaWxkID0gcGFyZW50LmNyZWF0ZUNoaWxkRnJvbVJlc29sdmVkKGNoaWxkUHJvdmlkZXJzKTtcbiAgICpcbiAgICogZXhwZWN0KGNoaWxkLmdldChQYXJlbnRQcm92aWRlcikgaW5zdGFuY2VvZiBQYXJlbnRQcm92aWRlcikudG9CZSh0cnVlKTtcbiAgICogZXhwZWN0KGNoaWxkLmdldChDaGlsZFByb3ZpZGVyKSBpbnN0YW5jZW9mIENoaWxkUHJvdmlkZXIpLnRvQmUodHJ1ZSk7XG4gICAqIGV4cGVjdChjaGlsZC5nZXQoUGFyZW50UHJvdmlkZXIpKS50b0JlKHBhcmVudC5nZXQoUGFyZW50UHJvdmlkZXIpKTtcbiAgICogYGBgXG4gICAqL1xuICBhYnN0cmFjdCBjcmVhdGVDaGlsZEZyb21SZXNvbHZlZChwcm92aWRlcnM6IFJlc29sdmVkUmVmbGVjdGl2ZVByb3ZpZGVyW10pOiBSZWZsZWN0aXZlSW5qZWN0b3I7XG5cbiAgLyoqXG4gICAqIFJlc29sdmVzIGEgcHJvdmlkZXIgYW5kIGluc3RhbnRpYXRlcyBhbiBvYmplY3QgaW4gdGhlIGNvbnRleHQgb2YgdGhlIGluamVjdG9yLlxuICAgKlxuICAgKiBUaGUgY3JlYXRlZCBvYmplY3QgZG9lcyBub3QgZ2V0IGNhY2hlZCBieSB0aGUgaW5qZWN0b3IuXG4gICAqXG4gICAqIEB1c2FnZU5vdGVzXG4gICAqICMjIyBFeGFtcGxlXG4gICAqXG4gICAqIGBgYHR5cGVzY3JpcHRcbiAgICogQEluamVjdGFibGUoKVxuICAgKiBjbGFzcyBFbmdpbmUge1xuICAgKiB9XG4gICAqXG4gICAqIEBJbmplY3RhYmxlKClcbiAgICogY2xhc3MgQ2FyIHtcbiAgICogICBjb25zdHJ1Y3RvcihwdWJsaWMgZW5naW5lOkVuZ2luZSkge31cbiAgICogfVxuICAgKlxuICAgKiB2YXIgaW5qZWN0b3IgPSBSZWZsZWN0aXZlSW5qZWN0b3IucmVzb2x2ZUFuZENyZWF0ZShbRW5naW5lXSk7XG4gICAqXG4gICAqIHZhciBjYXIgPSBpbmplY3Rvci5yZXNvbHZlQW5kSW5zdGFudGlhdGUoQ2FyKTtcbiAgICogZXhwZWN0KGNhci5lbmdpbmUpLnRvQmUoaW5qZWN0b3IuZ2V0KEVuZ2luZSkpO1xuICAgKiBleHBlY3QoY2FyKS5ub3QudG9CZShpbmplY3Rvci5yZXNvbHZlQW5kSW5zdGFudGlhdGUoQ2FyKSk7XG4gICAqIGBgYFxuICAgKi9cbiAgYWJzdHJhY3QgcmVzb2x2ZUFuZEluc3RhbnRpYXRlKHByb3ZpZGVyOiBQcm92aWRlcik6IGFueTtcblxuICAvKipcbiAgICogSW5zdGFudGlhdGVzIGFuIG9iamVjdCB1c2luZyBhIHJlc29sdmVkIHByb3ZpZGVyIGluIHRoZSBjb250ZXh0IG9mIHRoZSBpbmplY3Rvci5cbiAgICpcbiAgICogVGhlIGNyZWF0ZWQgb2JqZWN0IGRvZXMgbm90IGdldCBjYWNoZWQgYnkgdGhlIGluamVjdG9yLlxuICAgKlxuICAgKiBAdXNhZ2VOb3Rlc1xuICAgKiAjIyMgRXhhbXBsZVxuICAgKlxuICAgKiBgYGB0eXBlc2NyaXB0XG4gICAqIEBJbmplY3RhYmxlKClcbiAgICogY2xhc3MgRW5naW5lIHtcbiAgICogfVxuICAgKlxuICAgKiBASW5qZWN0YWJsZSgpXG4gICAqIGNsYXNzIENhciB7XG4gICAqICAgY29uc3RydWN0b3IocHVibGljIGVuZ2luZTpFbmdpbmUpIHt9XG4gICAqIH1cbiAgICpcbiAgICogdmFyIGluamVjdG9yID0gUmVmbGVjdGl2ZUluamVjdG9yLnJlc29sdmVBbmRDcmVhdGUoW0VuZ2luZV0pO1xuICAgKiB2YXIgY2FyUHJvdmlkZXIgPSBSZWZsZWN0aXZlSW5qZWN0b3IucmVzb2x2ZShbQ2FyXSlbMF07XG4gICAqIHZhciBjYXIgPSBpbmplY3Rvci5pbnN0YW50aWF0ZVJlc29sdmVkKGNhclByb3ZpZGVyKTtcbiAgICogZXhwZWN0KGNhci5lbmdpbmUpLnRvQmUoaW5qZWN0b3IuZ2V0KEVuZ2luZSkpO1xuICAgKiBleHBlY3QoY2FyKS5ub3QudG9CZShpbmplY3Rvci5pbnN0YW50aWF0ZVJlc29sdmVkKGNhclByb3ZpZGVyKSk7XG4gICAqIGBgYFxuICAgKi9cbiAgYWJzdHJhY3QgaW5zdGFudGlhdGVSZXNvbHZlZChwcm92aWRlcjogUmVzb2x2ZWRSZWZsZWN0aXZlUHJvdmlkZXIpOiBhbnk7XG5cbiAgYWJzdHJhY3QgZ2V0KHRva2VuOiBhbnksIG5vdEZvdW5kVmFsdWU/OiBhbnkpOiBhbnk7XG59XG5cbmV4cG9ydCBjbGFzcyBSZWZsZWN0aXZlSW5qZWN0b3JfIGltcGxlbWVudHMgUmVmbGVjdGl2ZUluamVjdG9yIHtcbiAgcHJpdmF0ZSBzdGF0aWMgSU5KRUNUT1JfS0VZID0gUmVmbGVjdGl2ZUtleS5nZXQoSW5qZWN0b3IpO1xuICAvKiogQGludGVybmFsICovXG4gIF9jb25zdHJ1Y3Rpb25Db3VudGVyOiBudW1iZXIgPSAwO1xuICAvKiogQGludGVybmFsICovXG4gIHB1YmxpYyBfcHJvdmlkZXJzOiBSZXNvbHZlZFJlZmxlY3RpdmVQcm92aWRlcltdO1xuICBwdWJsaWMgcmVhZG9ubHkgcGFyZW50OiBJbmplY3RvcnxudWxsO1xuXG4gIGtleUlkczogbnVtYmVyW107XG4gIG9ianM6IGFueVtdO1xuICAvKipcbiAgICogUHJpdmF0ZVxuICAgKi9cbiAgY29uc3RydWN0b3IoX3Byb3ZpZGVyczogUmVzb2x2ZWRSZWZsZWN0aXZlUHJvdmlkZXJbXSwgX3BhcmVudD86IEluamVjdG9yKSB7XG4gICAgdGhpcy5fcHJvdmlkZXJzID0gX3Byb3ZpZGVycztcbiAgICB0aGlzLnBhcmVudCA9IF9wYXJlbnQgfHwgbnVsbDtcblxuICAgIGNvbnN0IGxlbiA9IF9wcm92aWRlcnMubGVuZ3RoO1xuXG4gICAgdGhpcy5rZXlJZHMgPSBuZXcgQXJyYXkobGVuKTtcbiAgICB0aGlzLm9ianMgPSBuZXcgQXJyYXkobGVuKTtcblxuICAgIGZvciAobGV0IGkgPSAwOyBpIDwgbGVuOyBpKyspIHtcbiAgICAgIHRoaXMua2V5SWRzW2ldID0gX3Byb3ZpZGVyc1tpXS5rZXkuaWQ7XG4gICAgICB0aGlzLm9ianNbaV0gPSBVTkRFRklORUQ7XG4gICAgfVxuICB9XG5cbiAgZ2V0KHRva2VuOiBhbnksIG5vdEZvdW5kVmFsdWU6IGFueSA9IFRIUk9XX0lGX05PVF9GT1VORCk6IGFueSB7XG4gICAgcmV0dXJuIHRoaXMuX2dldEJ5S2V5KFJlZmxlY3RpdmVLZXkuZ2V0KHRva2VuKSwgbnVsbCwgbm90Rm91bmRWYWx1ZSk7XG4gIH1cblxuICByZXNvbHZlQW5kQ3JlYXRlQ2hpbGQocHJvdmlkZXJzOiBQcm92aWRlcltdKTogUmVmbGVjdGl2ZUluamVjdG9yIHtcbiAgICBjb25zdCBSZXNvbHZlZFJlZmxlY3RpdmVQcm92aWRlcnMgPSBSZWZsZWN0aXZlSW5qZWN0b3IucmVzb2x2ZShwcm92aWRlcnMpO1xuICAgIHJldHVybiB0aGlzLmNyZWF0ZUNoaWxkRnJvbVJlc29sdmVkKFJlc29sdmVkUmVmbGVjdGl2ZVByb3ZpZGVycyk7XG4gIH1cblxuICBjcmVhdGVDaGlsZEZyb21SZXNvbHZlZChwcm92aWRlcnM6IFJlc29sdmVkUmVmbGVjdGl2ZVByb3ZpZGVyW10pOiBSZWZsZWN0aXZlSW5qZWN0b3Ige1xuICAgIGNvbnN0IGluaiA9IG5ldyBSZWZsZWN0aXZlSW5qZWN0b3JfKHByb3ZpZGVycyk7XG4gICAgKGluaiBhc3twYXJlbnQ6IEluamVjdG9yIHwgbnVsbH0pLnBhcmVudCA9IHRoaXM7XG4gICAgcmV0dXJuIGluajtcbiAgfVxuXG4gIHJlc29sdmVBbmRJbnN0YW50aWF0ZShwcm92aWRlcjogUHJvdmlkZXIpOiBhbnkge1xuICAgIHJldHVybiB0aGlzLmluc3RhbnRpYXRlUmVzb2x2ZWQoUmVmbGVjdGl2ZUluamVjdG9yLnJlc29sdmUoW3Byb3ZpZGVyXSlbMF0pO1xuICB9XG5cbiAgaW5zdGFudGlhdGVSZXNvbHZlZChwcm92aWRlcjogUmVzb2x2ZWRSZWZsZWN0aXZlUHJvdmlkZXIpOiBhbnkge1xuICAgIHJldHVybiB0aGlzLl9pbnN0YW50aWF0ZVByb3ZpZGVyKHByb3ZpZGVyKTtcbiAgfVxuXG4gIGdldFByb3ZpZGVyQXRJbmRleChpbmRleDogbnVtYmVyKTogUmVzb2x2ZWRSZWZsZWN0aXZlUHJvdmlkZXIge1xuICAgIGlmIChpbmRleCA8IDAgfHwgaW5kZXggPj0gdGhpcy5fcHJvdmlkZXJzLmxlbmd0aCkge1xuICAgICAgdGhyb3cgb3V0T2ZCb3VuZHNFcnJvcihpbmRleCk7XG4gICAgfVxuICAgIHJldHVybiB0aGlzLl9wcm92aWRlcnNbaW5kZXhdO1xuICB9XG5cbiAgLyoqIEBpbnRlcm5hbCAqL1xuICBfbmV3KHByb3ZpZGVyOiBSZXNvbHZlZFJlZmxlY3RpdmVQcm92aWRlcik6IGFueSB7XG4gICAgaWYgKHRoaXMuX2NvbnN0cnVjdGlvbkNvdW50ZXIrKyA+IHRoaXMuX2dldE1heE51bWJlck9mT2JqZWN0cygpKSB7XG4gICAgICB0aHJvdyBjeWNsaWNEZXBlbmRlbmN5RXJyb3IodGhpcywgcHJvdmlkZXIua2V5KTtcbiAgICB9XG4gICAgcmV0dXJuIHRoaXMuX2luc3RhbnRpYXRlUHJvdmlkZXIocHJvdmlkZXIpO1xuICB9XG5cbiAgcHJpdmF0ZSBfZ2V0TWF4TnVtYmVyT2ZPYmplY3RzKCk6IG51bWJlciB7IHJldHVybiB0aGlzLm9ianMubGVuZ3RoOyB9XG5cbiAgcHJpdmF0ZSBfaW5zdGFudGlhdGVQcm92aWRlcihwcm92aWRlcjogUmVzb2x2ZWRSZWZsZWN0aXZlUHJvdmlkZXIpOiBhbnkge1xuICAgIGlmIChwcm92aWRlci5tdWx0aVByb3ZpZGVyKSB7XG4gICAgICBjb25zdCByZXMgPSBuZXcgQXJyYXkocHJvdmlkZXIucmVzb2x2ZWRGYWN0b3JpZXMubGVuZ3RoKTtcbiAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgcHJvdmlkZXIucmVzb2x2ZWRGYWN0b3JpZXMubGVuZ3RoOyArK2kpIHtcbiAgICAgICAgcmVzW2ldID0gdGhpcy5faW5zdGFudGlhdGUocHJvdmlkZXIsIHByb3ZpZGVyLnJlc29sdmVkRmFjdG9yaWVzW2ldKTtcbiAgICAgIH1cbiAgICAgIHJldHVybiByZXM7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiB0aGlzLl9pbnN0YW50aWF0ZShwcm92aWRlciwgcHJvdmlkZXIucmVzb2x2ZWRGYWN0b3JpZXNbMF0pO1xuICAgIH1cbiAgfVxuXG4gIHByaXZhdGUgX2luc3RhbnRpYXRlKFxuICAgICAgcHJvdmlkZXI6IFJlc29sdmVkUmVmbGVjdGl2ZVByb3ZpZGVyLFxuICAgICAgUmVzb2x2ZWRSZWZsZWN0aXZlRmFjdG9yeTogUmVzb2x2ZWRSZWZsZWN0aXZlRmFjdG9yeSk6IGFueSB7XG4gICAgY29uc3QgZmFjdG9yeSA9IFJlc29sdmVkUmVmbGVjdGl2ZUZhY3RvcnkuZmFjdG9yeTtcblxuICAgIGxldCBkZXBzOiBhbnlbXTtcbiAgICB0cnkge1xuICAgICAgZGVwcyA9XG4gICAgICAgICAgUmVzb2x2ZWRSZWZsZWN0aXZlRmFjdG9yeS5kZXBlbmRlbmNpZXMubWFwKGRlcCA9PiB0aGlzLl9nZXRCeVJlZmxlY3RpdmVEZXBlbmRlbmN5KGRlcCkpO1xuICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgIGlmIChlLmFkZEtleSkge1xuICAgICAgICBlLmFkZEtleSh0aGlzLCBwcm92aWRlci5rZXkpO1xuICAgICAgfVxuICAgICAgdGhyb3cgZTtcbiAgICB9XG5cbiAgICBsZXQgb2JqOiBhbnk7XG4gICAgdHJ5IHtcbiAgICAgIG9iaiA9IGZhY3RvcnkoLi4uZGVwcyk7XG4gICAgfSBjYXRjaCAoZSkge1xuICAgICAgdGhyb3cgaW5zdGFudGlhdGlvbkVycm9yKHRoaXMsIGUsIGUuc3RhY2ssIHByb3ZpZGVyLmtleSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIG9iajtcbiAgfVxuXG4gIHByaXZhdGUgX2dldEJ5UmVmbGVjdGl2ZURlcGVuZGVuY3koZGVwOiBSZWZsZWN0aXZlRGVwZW5kZW5jeSk6IGFueSB7XG4gICAgcmV0dXJuIHRoaXMuX2dldEJ5S2V5KGRlcC5rZXksIGRlcC52aXNpYmlsaXR5LCBkZXAub3B0aW9uYWwgPyBudWxsIDogVEhST1dfSUZfTk9UX0ZPVU5EKTtcbiAgfVxuXG4gIHByaXZhdGUgX2dldEJ5S2V5KGtleTogUmVmbGVjdGl2ZUtleSwgdmlzaWJpbGl0eTogU2VsZnxTa2lwU2VsZnxudWxsLCBub3RGb3VuZFZhbHVlOiBhbnkpOiBhbnkge1xuICAgIGlmIChrZXkgPT09IFJlZmxlY3RpdmVJbmplY3Rvcl8uSU5KRUNUT1JfS0VZKSB7XG4gICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICBpZiAodmlzaWJpbGl0eSBpbnN0YW5jZW9mIFNlbGYpIHtcbiAgICAgIHJldHVybiB0aGlzLl9nZXRCeUtleVNlbGYoa2V5LCBub3RGb3VuZFZhbHVlKTtcblxuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gdGhpcy5fZ2V0QnlLZXlEZWZhdWx0KGtleSwgbm90Rm91bmRWYWx1ZSwgdmlzaWJpbGl0eSk7XG4gICAgfVxuICB9XG5cbiAgcHJpdmF0ZSBfZ2V0T2JqQnlLZXlJZChrZXlJZDogbnVtYmVyKTogYW55IHtcbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IHRoaXMua2V5SWRzLmxlbmd0aDsgaSsrKSB7XG4gICAgICBpZiAodGhpcy5rZXlJZHNbaV0gPT09IGtleUlkKSB7XG4gICAgICAgIGlmICh0aGlzLm9ianNbaV0gPT09IFVOREVGSU5FRCkge1xuICAgICAgICAgIHRoaXMub2Jqc1tpXSA9IHRoaXMuX25ldyh0aGlzLl9wcm92aWRlcnNbaV0pO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXMub2Jqc1tpXTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gVU5ERUZJTkVEO1xuICB9XG5cbiAgLyoqIEBpbnRlcm5hbCAqL1xuICBfdGhyb3dPck51bGwoa2V5OiBSZWZsZWN0aXZlS2V5LCBub3RGb3VuZFZhbHVlOiBhbnkpOiBhbnkge1xuICAgIGlmIChub3RGb3VuZFZhbHVlICE9PSBUSFJPV19JRl9OT1RfRk9VTkQpIHtcbiAgICAgIHJldHVybiBub3RGb3VuZFZhbHVlO1xuICAgIH0gZWxzZSB7XG4gICAgICB0aHJvdyBub1Byb3ZpZGVyRXJyb3IodGhpcywga2V5KTtcbiAgICB9XG4gIH1cblxuICAvKiogQGludGVybmFsICovXG4gIF9nZXRCeUtleVNlbGYoa2V5OiBSZWZsZWN0aXZlS2V5LCBub3RGb3VuZFZhbHVlOiBhbnkpOiBhbnkge1xuICAgIGNvbnN0IG9iaiA9IHRoaXMuX2dldE9iakJ5S2V5SWQoa2V5LmlkKTtcbiAgICByZXR1cm4gKG9iaiAhPT0gVU5ERUZJTkVEKSA/IG9iaiA6IHRoaXMuX3Rocm93T3JOdWxsKGtleSwgbm90Rm91bmRWYWx1ZSk7XG4gIH1cblxuICAvKiogQGludGVybmFsICovXG4gIF9nZXRCeUtleURlZmF1bHQoa2V5OiBSZWZsZWN0aXZlS2V5LCBub3RGb3VuZFZhbHVlOiBhbnksIHZpc2liaWxpdHk6IFNlbGZ8U2tpcFNlbGZ8bnVsbCk6IGFueSB7XG4gICAgbGV0IGluajogSW5qZWN0b3J8bnVsbDtcblxuICAgIGlmICh2aXNpYmlsaXR5IGluc3RhbmNlb2YgU2tpcFNlbGYpIHtcbiAgICAgIGluaiA9IHRoaXMucGFyZW50O1xuICAgIH0gZWxzZSB7XG4gICAgICBpbmogPSB0aGlzO1xuICAgIH1cblxuICAgIHdoaWxlIChpbmogaW5zdGFuY2VvZiBSZWZsZWN0aXZlSW5qZWN0b3JfKSB7XG4gICAgICBjb25zdCBpbmpfID0gPFJlZmxlY3RpdmVJbmplY3Rvcl8+aW5qO1xuICAgICAgY29uc3Qgb2JqID0gaW5qXy5fZ2V0T2JqQnlLZXlJZChrZXkuaWQpO1xuICAgICAgaWYgKG9iaiAhPT0gVU5ERUZJTkVEKSByZXR1cm4gb2JqO1xuICAgICAgaW5qID0gaW5qXy5wYXJlbnQ7XG4gICAgfVxuICAgIGlmIChpbmogIT09IG51bGwpIHtcbiAgICAgIHJldHVybiBpbmouZ2V0KGtleS50b2tlbiwgbm90Rm91bmRWYWx1ZSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiB0aGlzLl90aHJvd09yTnVsbChrZXksIG5vdEZvdW5kVmFsdWUpO1xuICAgIH1cbiAgfVxuXG4gIGdldCBkaXNwbGF5TmFtZSgpOiBzdHJpbmcge1xuICAgIGNvbnN0IHByb3ZpZGVycyA9XG4gICAgICAgIF9tYXBQcm92aWRlcnModGhpcywgKGI6IFJlc29sdmVkUmVmbGVjdGl2ZVByb3ZpZGVyKSA9PiAnIFwiJyArIGIua2V5LmRpc3BsYXlOYW1lICsgJ1wiICcpXG4gICAgICAgICAgICAuam9pbignLCAnKTtcbiAgICByZXR1cm4gYFJlZmxlY3RpdmVJbmplY3Rvcihwcm92aWRlcnM6IFske3Byb3ZpZGVyc31dKWA7XG4gIH1cblxuICB0b1N0cmluZygpOiBzdHJpbmcgeyByZXR1cm4gdGhpcy5kaXNwbGF5TmFtZTsgfVxufVxuXG5mdW5jdGlvbiBfbWFwUHJvdmlkZXJzKGluamVjdG9yOiBSZWZsZWN0aXZlSW5qZWN0b3JfLCBmbjogRnVuY3Rpb24pOiBhbnlbXSB7XG4gIGNvbnN0IHJlczogYW55W10gPSBuZXcgQXJyYXkoaW5qZWN0b3IuX3Byb3ZpZGVycy5sZW5ndGgpO1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGluamVjdG9yLl9wcm92aWRlcnMubGVuZ3RoOyArK2kpIHtcbiAgICByZXNbaV0gPSBmbihpbmplY3Rvci5nZXRQcm92aWRlckF0SW5kZXgoaSkpO1xuICB9XG4gIHJldHVybiByZXM7XG59XG4iXX0=
|
import React, { forwardRef } from 'react';
import { StyledIcon } from '../StyledIcon';
const AppleAppStore = forwardRef((props, ref) => (
<StyledIcon ref={ref} viewBox="0 0 24 24" a11yTitle="AppleAppStore" {...props}>
<path fill="#1D81F3" d="M3 17a1 1 0 0 1 0-2h10.5c1 0 2 2 1.5 2H3zm14 0a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2h-4zM12.633 3.501a1 1 0 0 1 1.734.998L7.46 16.495a1 1 0 0 1-1.734-.997L12.633 3.5zM4 18.5c.5-1 3.5-2 2.5-.28A852.88 852.88 0 0 1 4.867 21a1 1 0 0 1-1.734-.998L4 18.5zM9.133 4.499a1 1 0 1 1 1.734-.998L12.61 6.53a1 1 0 1 1-1.733.998L9.133 4.499zM13 11.5c-.898-1.5 0-4.5.716-3.004L20.366 20a1 1 0 0 1-1.733.998L13 11.5z" />
</StyledIcon>
));
AppleAppStore.displayName = 'AppleAppStore';
export { AppleAppStore };
|
export const PaymentChargeSpecification = {
label: "PaymentChargeSpecification",
description: `The costs of settling the payment using a particular payment method.`,
_id: {
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
type: String,
optional: true,
},
createdAt: {
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
type: Date,
optional: true,
viewableBy: ["guests"],
onInsert: (document, context) => {
return new Date()
},
},
userId: {
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
type: String,
optional: true,
resolveAs: {
fieldName: "user",
type: "User",
resolver: (document, args, context) => {
return context.Users.findOne(
{ _id: document.userId },
{
fields: context.Users.getViewableFields(
context.currentUser,
context.Users
),
}
)
},
optional: true,
},
},
appliesToPaymentMethod: {
label: "appliesToPaymentMethod",
description: `The payment method(s) to which the payment charge specification applies.`,
resolveAs: {
fieldName: "PaymentMethodResolved",
type: "PaymentMethod",
resolver: (document, args, context) => {
return context.PaymentMethod.findOne(
{ _id: document.PaymentMethod },
{
fields: context.PaymentMethod.getViewableFields(
context.currentUser,
context.PaymentMethod
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
appliesToDeliveryMethod: {
label: "appliesToDeliveryMethod",
description: `The delivery method(s) to which the delivery charge or payment charge
specification applies.`,
resolveAs: {
fieldName: "DeliveryMethodResolved",
type: "DeliveryMethod",
resolver: (document, args, context) => {
return context.DeliveryMethod.findOne(
{ _id: document.DeliveryMethod },
{
fields: context.DeliveryMethod.getViewableFields(
context.currentUser,
context.DeliveryMethod
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
identifierObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"identifierObject.$": {
isbn: {
label: "isbn",
description: `The ISBN of the book.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
sku: {
label: "sku",
description: `The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product
or service, or the product to which the offer refers.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
serialNumber: {
label: "serialNumber",
description: `The serial number or any alphanumeric identifier of a particular product. When
attached to an offer, it is a shortcut for the serial number of the product
included in the offer.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
orderNumber: {
label: "orderNumber",
description: `The identifier of the transaction.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
gtin8: {
label: "gtin8",
description: `The GTIN-8 code of the product, or the product to which the offer refers. This
code is also known as EAN/UCC-8 or 8-digit EAN. See GS1 GTIN Summary for more
details.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
flightNumber: {
label: "flightNumber",
description: `The unique identifier for a flight including the airline IATA code. For example,
if describing United flight 110, where the IATA code for United is 'UA', the
flightNumber is 'UA110'.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
globalLocationNumber: {
label: "globalLocationNumber",
description: `The Global Location Number (GLN, sometimes also referred to as International
Location Number or ILN) of the respective organization, person, or place. The
GLN is a 13-digit number used to identify parties and physical locations.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
confirmationNumber: {
label: "confirmationNumber",
description: `A number that confirms the given order or payment has been received.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
duns: {
label: "duns",
description: `The Dun & Bradstreet DUNS number for identifying an organization or business
person.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
taxID: {
label: "taxID",
description: `The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the
CIF/NIF in Spain.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
issn: {
label: "issn",
description: `The International Standard Serial Number (ISSN) that identifies this serial
publication. You can repeat this property to identify different formats of, or
the linking ISSN (ISSN-L) for, this serial publication.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
leiCode: {
label: "leiCode",
description: `An organization identifier that uniquely identifies a legal entity as defined in
ISO 17442.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
gtin14: {
label: "gtin14",
description: `The GTIN-14 code of the product, or the product to which the offer refers. See
GS1 GTIN Summary for more details.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
gtin13: {
label: "gtin13",
description: `The GTIN-13 code of the product, or the product to which the offer refers. This
is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes
can be converted into a GTIN-13 code by simply adding a preceeding zero. See GS1
GTIN Summary for more details.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
gtin12: {
label: "gtin12",
description: `The GTIN-12 code of the product, or the product to which the offer refers. The
GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company
Prefix, Item Reference, and Check Digit used to identify trade items. See GS1
GTIN Summary for more details.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
productID: {
label: "productID",
description: `The product identifier, such as ISBN. For example: meta itemprop="productID"
content="isbn:123-456-789".`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
accountId: {
label: "accountId",
description: `The identifier for the account the payment will be applied to.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
instrumentObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"instrumentObject.$": {
query: {
label: "query",
description: `A sub property of instrument. The query used on this action.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
recipe: {
label: "recipe",
description: `A sub property of instrument. The recipe/instructions used to perform the
action.`,
resolveAs: {
fieldName: "RecipeResolved",
type: "Recipe",
resolver: (document, args, context) => {
return context.Recipe.findOne(
{ _id: document.Recipe },
{
fields: context.Recipe.getViewableFields(
context.currentUser,
context.Recipe
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
deliveryMethod: {
label: "deliveryMethod",
description: `A sub property of instrument. The method of delivery.`,
resolveAs: {
fieldName: "DeliveryMethodResolved",
type: "DeliveryMethod",
resolver: (document, args, context) => {
return context.DeliveryMethod.findOne(
{ _id: document.DeliveryMethod },
{
fields: context.DeliveryMethod.getViewableFields(
context.currentUser,
context.DeliveryMethod
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
language: {
label: "language",
description: `A sub property of instrument. The language used on this action.`,
resolveAs: {
fieldName: "LanguageResolved",
type: "Language",
resolver: (document, args, context) => {
return context.Language.findOne(
{ _id: document.Language },
{
fields: context.Language.getViewableFields(
context.currentUser,
context.Language
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
supply: {
label: "supply",
description: `A sub-property of instrument. A supply consumed when performing instructions or
a direction.`,
resolveAs: {
fieldName: "HowToSupplyResolved",
type: "HowToSupply",
resolver: (document, args, context) => {
return context.HowToSupply.findOne(
{ _id: document.HowToSupply },
{
fields: context.HowToSupply.getViewableFields(
context.currentUser,
context.HowToSupply
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
tool: {
label: "tool",
description: `A sub property of instrument. An object used (but not consumed) when performing
instructions or a direction.`,
resolveAs: {
fieldName: "HowToToolResolved",
type: "HowToTool",
resolver: (document, args, context) => {
return context.HowToTool.findOne(
{ _id: document.HowToTool },
{
fields: context.HowToTool.getViewableFields(
context.currentUser,
context.HowToTool
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
sponsorObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"sponsorObject.$": {
funder: {
label: "funder",
description: `A person or organization that supports (sponsors) something through some kind of
financial contribution.`,
resolveAs: {
fieldName: "PersonResolved",
type: "Person",
resolver: (document, args, context) => {
return context.Person.findOne(
{ _id: document.Person },
{
fields: context.Person.getViewableFields(
context.currentUser,
context.Person
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
yieldObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"yieldObject.$": {
recipeYield: {
label: "recipeYield",
description: `The quantity produced by the recipe (for example, number of people served,
number of servings, etc).`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
participantObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"participantObject.$": {
buyer: {
label: "buyer",
description: `A sub property of participant. The participant/person/organization that bought
the object.`,
resolveAs: {
fieldName: "PersonResolved",
type: "Person",
resolver: (document, args, context) => {
return context.Person.findOne(
{ _id: document.Person },
{
fields: context.Person.getViewableFields(
context.currentUser,
context.Person
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
landlord: {
label: "landlord",
description: `A sub property of participant. The owner of the real estate property.`,
resolveAs: {
fieldName: "PersonResolved",
type: "Person",
resolver: (document, args, context) => {
return context.Person.findOne(
{ _id: document.Person },
{
fields: context.Person.getViewableFields(
context.currentUser,
context.Person
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
loser: {
label: "loser",
description: `A sub property of participant. The loser of the action.`,
resolveAs: {
fieldName: "PersonResolved",
type: "Person",
resolver: (document, args, context) => {
return context.Person.findOne(
{ _id: document.Person },
{
fields: context.Person.getViewableFields(
context.currentUser,
context.Person
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
sportsTeam: {
label: "sportsTeam",
description: `A sub property of participant. The sports team that participated on this action.`,
resolveAs: {
fieldName: "SportsTeamResolved",
type: "SportsTeam",
resolver: (document, args, context) => {
return context.SportsTeam.findOne(
{ _id: document.SportsTeam },
{
fields: context.SportsTeam.getViewableFields(
context.currentUser,
context.SportsTeam
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
opponent: {
label: "opponent",
description: `A sub property of participant. The opponent on this action.`,
resolveAs: {
fieldName: "PersonResolved",
type: "Person",
resolver: (document, args, context) => {
return context.Person.findOne(
{ _id: document.Person },
{
fields: context.Person.getViewableFields(
context.currentUser,
context.Person
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
vendor: {
label: "vendor",
description: `'vendor' is an earlier term for 'seller'.`,
resolveAs: {
fieldName: "OrganizationResolved",
type: "Organization",
resolver: (document, args, context) => {
return context.Organization.findOne(
{ _id: document.Organization },
{
fields: context.Organization.getViewableFields(
context.currentUser,
context.Organization
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
winner: {
label: "winner",
description: `A sub property of participant. The winner of the action.`,
resolveAs: {
fieldName: "PersonResolved",
type: "Person",
resolver: (document, args, context) => {
return context.Person.findOne(
{ _id: document.Person },
{
fields: context.Person.getViewableFields(
context.currentUser,
context.Person
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
recipient: {
label: "recipient",
description: `A sub property of participant. The participant who is at the receiving end of
the action.`,
resolveAs: {
fieldName: "ContactPointResolved",
type: "ContactPoint",
resolver: (document, args, context) => {
return context.ContactPoint.findOne(
{ _id: document.ContactPoint },
{
fields: context.ContactPoint.getViewableFields(
context.currentUser,
context.ContactPoint
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
realEstateAgent: {
label: "realEstateAgent",
description: `A sub property of participant. The real estate agent involved in the action.`,
resolveAs: {
fieldName: "RealEstateAgentResolved",
type: "RealEstateAgent",
resolver: (document, args, context) => {
return context.RealEstateAgent.findOne(
{ _id: document.RealEstateAgent },
{
fields: context.RealEstateAgent.getViewableFields(
context.currentUser,
context.RealEstateAgent
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
endorsee: {
label: "endorsee",
description: `A sub property of participant. The person/organization being supported.`,
resolveAs: {
fieldName: "PersonResolved",
type: "Person",
resolver: (document, args, context) => {
return context.Person.findOne(
{ _id: document.Person },
{
fields: context.Person.getViewableFields(
context.currentUser,
context.Person
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
sender: {
label: "sender",
description: `A sub property of participant. The participant who is at the sending end of the
action.`,
resolveAs: {
fieldName: "OrganizationResolved",
type: "Organization",
resolver: (document, args, context) => {
return context.Organization.findOne(
{ _id: document.Organization },
{
fields: context.Organization.getViewableFields(
context.currentUser,
context.Organization
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
seller: {
label: "seller",
description: `An entity which offers (sells / leases / lends / loans) the services / goods. A
seller may also be a provider.`,
resolveAs: {
fieldName: "OrganizationResolved",
type: "Organization",
resolver: (document, args, context) => {
return context.Organization.findOne(
{ _id: document.Organization },
{
fields: context.Organization.getViewableFields(
context.currentUser,
context.Organization
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
lender: {
label: "lender",
description: `A sub property of participant. The person that lends the object being borrowed.`,
resolveAs: {
fieldName: "PersonResolved",
type: "Person",
resolver: (document, args, context) => {
return context.Person.findOne(
{ _id: document.Person },
{
fields: context.Person.getViewableFields(
context.currentUser,
context.Person
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
borrower: {
label: "borrower",
description: `A sub property of participant. The person that borrows the object being lent.`,
resolveAs: {
fieldName: "PersonResolved",
type: "Person",
resolver: (document, args, context) => {
return context.Person.findOne(
{ _id: document.Person },
{
fields: context.Person.getViewableFields(
context.currentUser,
context.Person
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
competitorObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"competitorObject.$": {
awayTeam: {
label: "awayTeam",
description: `The away team in a sports event.`,
resolveAs: {
fieldName: "SportsTeamResolved",
type: "SportsTeam",
resolver: (document, args, context) => {
return context.SportsTeam.findOne(
{ _id: document.SportsTeam },
{
fields: context.SportsTeam.getViewableFields(
context.currentUser,
context.SportsTeam
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
homeTeam: {
label: "homeTeam",
description: `The home team in a sports event.`,
resolveAs: {
fieldName: "PersonResolved",
type: "Person",
resolver: (document, args, context) => {
return context.Person.findOne(
{ _id: document.Person },
{
fields: context.Person.getViewableFields(
context.currentUser,
context.Person
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
objectObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"objectObject.$": {
actionOption: {
label: "actionOption",
description: `A sub property of object. The options subject to this action.`,
resolveAs: {
fieldName: "ThingResolved",
type: "Thing",
resolver: (document, args, context) => {
return context.Thing.findOne(
{ _id: document.Thing },
{
fields: context.Thing.getViewableFields(
context.currentUser,
context.Thing
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
option: {
label: "option",
description: `A sub property of object. The options subject to this action.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
followee: {
label: "followee",
description: `A sub property of object. The person or organization being followed.`,
resolveAs: {
fieldName: "PersonResolved",
type: "Person",
resolver: (document, args, context) => {
return context.Person.findOne(
{ _id: document.Person },
{
fields: context.Person.getViewableFields(
context.currentUser,
context.Person
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
replacee: {
label: "replacee",
description: `A sub property of object. The object that is being replaced.`,
resolveAs: {
fieldName: "ThingResolved",
type: "Thing",
resolver: (document, args, context) => {
return context.Thing.findOne(
{ _id: document.Thing },
{
fields: context.Thing.getViewableFields(
context.currentUser,
context.Thing
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
replacer: {
label: "replacer",
description: `A sub property of object. The object that replaces.`,
resolveAs: {
fieldName: "ThingResolved",
type: "Thing",
resolver: (document, args, context) => {
return context.Thing.findOne(
{ _id: document.Thing },
{
fields: context.Thing.getViewableFields(
context.currentUser,
context.Thing
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
question: {
label: "question",
description: `A sub property of object. A question.`,
resolveAs: {
fieldName: "QuestionResolved",
type: "Question",
resolver: (document, args, context) => {
return context.Question.findOne(
{ _id: document.Question },
{
fields: context.Question.getViewableFields(
context.currentUser,
context.Question
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
collection: {
label: "collection",
description: `A sub property of object. The collection target of the action.`,
resolveAs: {
fieldName: "ThingResolved",
type: "Thing",
resolver: (document, args, context) => {
return context.Thing.findOne(
{ _id: document.Thing },
{
fields: context.Thing.getViewableFields(
context.currentUser,
context.Thing
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
targetCollection: {
label: "targetCollection",
description: `A sub property of object. The collection target of the action.`,
resolveAs: {
fieldName: "ThingResolved",
type: "Thing",
resolver: (document, args, context) => {
return context.Thing.findOne(
{ _id: document.Thing },
{
fields: context.Thing.getViewableFields(
context.currentUser,
context.Thing
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
candidate: {
label: "candidate",
description: `A sub property of object. The candidate subject of this action.`,
resolveAs: {
fieldName: "PersonResolved",
type: "Person",
resolver: (document, args, context) => {
return context.Person.findOne(
{ _id: document.Person },
{
fields: context.Person.getViewableFields(
context.currentUser,
context.Person
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
locationObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"locationObject.$": {
workLocation: {
label: "workLocation",
description: `A contact location for a person's place of work.`,
resolveAs: {
fieldName: "ContactPointResolved",
type: "ContactPoint",
resolver: (document, args, context) => {
return context.ContactPoint.findOne(
{ _id: document.ContactPoint },
{
fields: context.ContactPoint.getViewableFields(
context.currentUser,
context.ContactPoint
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
course: {
label: "course",
description: `A sub property of location. The course where this action was taken.`,
resolveAs: {
fieldName: "PlaceResolved",
type: "Place",
resolver: (document, args, context) => {
return context.Place.findOne(
{ _id: document.Place },
{
fields: context.Place.getViewableFields(
context.currentUser,
context.Place
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
homeLocation: {
label: "homeLocation",
description: `A contact location for a person's residence.`,
resolveAs: {
fieldName: "ContactPointResolved",
type: "ContactPoint",
resolver: (document, args, context) => {
return context.ContactPoint.findOne(
{ _id: document.ContactPoint },
{
fields: context.ContactPoint.getViewableFields(
context.currentUser,
context.ContactPoint
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
sportsEvent: {
label: "sportsEvent",
description: `A sub property of location. The sports event where this action occurred.`,
resolveAs: {
fieldName: "SportsEventResolved",
type: "SportsEvent",
resolver: (document, args, context) => {
return context.SportsEvent.findOne(
{ _id: document.SportsEvent },
{
fields: context.SportsEvent.getViewableFields(
context.currentUser,
context.SportsEvent
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
sportsActivityLocation: {
label: "sportsActivityLocation",
description: `A sub property of location. The sports activity location where this action
occurred.`,
resolveAs: {
fieldName: "SportsActivityLocationResolved",
type: "SportsActivityLocation",
resolver: (document, args, context) => {
return context.SportsActivityLocation.findOne(
{ _id: document.SportsActivityLocation },
{
fields: context.SportsActivityLocation.getViewableFields(
context.currentUser,
context.SportsActivityLocation
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
foodEvent: {
label: "foodEvent",
description: `A sub property of location. The specific food event where the action occurred.`,
resolveAs: {
fieldName: "FoodEventResolved",
type: "FoodEvent",
resolver: (document, args, context) => {
return context.FoodEvent.findOne(
{ _id: document.FoodEvent },
{
fields: context.FoodEvent.getViewableFields(
context.currentUser,
context.FoodEvent
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
toLocation: {
label: "toLocation",
description: `A sub property of location. The final location of the object or the agent after
the action.`,
resolveAs: {
fieldName: "PlaceResolved",
type: "Place",
resolver: (document, args, context) => {
return context.Place.findOne(
{ _id: document.Place },
{
fields: context.Place.getViewableFields(
context.currentUser,
context.Place
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
fromLocation: {
label: "fromLocation",
description: `A sub property of location. The original location of the object or the agent
before the action.`,
resolveAs: {
fieldName: "PlaceResolved",
type: "Place",
resolver: (document, args, context) => {
return context.Place.findOne(
{ _id: document.Place },
{
fields: context.Place.getViewableFields(
context.currentUser,
context.Place
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
foodEstablishment: {
label: "foodEstablishment",
description: `A sub property of location. The specific food establishment where the action
occurred.`,
resolveAs: {
fieldName: "PlaceResolved",
type: "Place",
resolver: (document, args, context) => {
return context.Place.findOne(
{ _id: document.Place },
{
fields: context.Place.getViewableFields(
context.currentUser,
context.Place
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
entertainmentBusiness: {
label: "entertainmentBusiness",
description: `A sub property of location. The entertainment business where the action
occurred.`,
resolveAs: {
fieldName: "EntertainmentBusinessResolved",
type: "EntertainmentBusiness",
resolver: (document, args, context) => {
return context.EntertainmentBusiness.findOne(
{ _id: document.EntertainmentBusiness },
{
fields: context.EntertainmentBusiness.getViewableFields(
context.currentUser,
context.EntertainmentBusiness
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
exerciseCourse: {
label: "exerciseCourse",
description: `A sub property of location. The course where this action was taken.`,
resolveAs: {
fieldName: "PlaceResolved",
type: "Place",
resolver: (document, args, context) => {
return context.Place.findOne(
{ _id: document.Place },
{
fields: context.Place.getViewableFields(
context.currentUser,
context.Place
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
durationObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"durationObject.$": {
loanTerm: {
label: "loanTerm",
description: `The duration of the loan or credit agreement.`,
resolveAs: {
fieldName: "QuantitativeValueResolved",
type: "QuantitativeValue",
resolver: (document, args, context) => {
return context.QuantitativeValue.findOne(
{ _id: document.QuantitativeValue },
{
fields: context.QuantitativeValue.getViewableFields(
context.currentUser,
context.QuantitativeValue
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
hasPartObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"hasPartObject.$": {
season: {
label: "season",
description: `A season in a media series.`,
resolveAs: {
fieldName: "CreativeWorkSeasonResolved",
type: "CreativeWorkSeason",
resolver: (document, args, context) => {
return context.CreativeWorkSeason.findOne(
{ _id: document.CreativeWorkSeason },
{
fields: context.CreativeWorkSeason.getViewableFields(
context.currentUser,
context.CreativeWorkSeason
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
containsSeason: {
label: "containsSeason",
description: `A season that is part of the media series.`,
resolveAs: {
fieldName: "CreativeWorkSeasonResolved",
type: "CreativeWorkSeason",
resolver: (document, args, context) => {
return context.CreativeWorkSeason.findOne(
{ _id: document.CreativeWorkSeason },
{
fields: context.CreativeWorkSeason.getViewableFields(
context.currentUser,
context.CreativeWorkSeason
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
episode: {
label: "episode",
description: `An episode of a tv, radio or game media within a series or season.`,
resolveAs: {
fieldName: "EpisodeResolved",
type: "Episode",
resolver: (document, args, context) => {
return context.Episode.findOne(
{ _id: document.Episode },
{
fields: context.Episode.getViewableFields(
context.currentUser,
context.Episode
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
materialObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"materialObject.$": {
artMedium: {
label: "artMedium",
description: `The material used. (e.g. Oil, Watercolour, Acrylic, Linoprint, Marble,
Cyanotype, Digital, Lithograph, DryPoint, Intaglio, Pastel, Woodcut, Pencil,
Mixed Media, etc.)`,
type: String,
input: "url",
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
surface: {
label: "surface",
description: `A material used as a surface in some artwork, e.g. Canvas, Paper, Wood, Board,
etc.`,
type: String,
input: "url",
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
isPartOfObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"isPartOfObject.$": {
partOfEpisode: {
label: "partOfEpisode",
description: `The episode to which this clip belongs.`,
resolveAs: {
fieldName: "EpisodeResolved",
type: "Episode",
resolver: (document, args, context) => {
return context.Episode.findOne(
{ _id: document.Episode },
{
fields: context.Episode.getViewableFields(
context.currentUser,
context.Episode
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
partOfSeries: {
label: "partOfSeries",
description: `The series to which this episode or season belongs.`,
resolveAs: {
fieldName: "CreativeWorkSeriesResolved",
type: "CreativeWorkSeries",
resolver: (document, args, context) => {
return context.CreativeWorkSeries.findOne(
{ _id: document.CreativeWorkSeries },
{
fields: context.CreativeWorkSeries.getViewableFields(
context.currentUser,
context.CreativeWorkSeries
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
partOfTVSeries: {
label: "partOfTVSeries",
description: `The TV series to which this episode or season belongs.`,
resolveAs: {
fieldName: "TVSeriesResolved",
type: "TVSeries",
resolver: (document, args, context) => {
return context.TVSeries.findOne(
{ _id: document.TVSeries },
{
fields: context.TVSeries.getViewableFields(
context.currentUser,
context.TVSeries
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
partOfSeason: {
label: "partOfSeason",
description: `The season to which this episode belongs.`,
resolveAs: {
fieldName: "CreativeWorkSeasonResolved",
type: "CreativeWorkSeason",
resolver: (document, args, context) => {
return context.CreativeWorkSeason.findOne(
{ _id: document.CreativeWorkSeason },
{
fields: context.CreativeWorkSeason.getViewableFields(
context.currentUser,
context.CreativeWorkSeason
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
imageObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"imageObject.$": {
photo: {
label: "photo",
description: `A photograph of this place.`,
resolveAs: {
fieldName: "ImageObjectResolved",
type: "ImageObject",
resolver: (document, args, context) => {
return context.ImageObject.findOne(
{ _id: document.ImageObject },
{
fields: context.ImageObject.getViewableFields(
context.currentUser,
context.ImageObject
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
logo: {
label: "logo",
description: `An associated logo.`,
type: String,
input: "url",
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
"rdf:typeObject": {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"rdf:typeObject.$": {
additionalType: {
label: "additionalType",
description: `An additional type for the item, typically used for adding more specific types
from external vocabularies in microdata syntax. This is a relationship between
something and a class that the thing is in. In RDFa syntax, it is better to use
the native RDFa syntax - the 'typeof' attribute - for multiple types. Schema.org
tools may have only weaker understanding of extra types, in particular those
defined externally.`,
type: String,
input: "url",
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
"rdfs:labelObject": {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"rdfs:labelObject.$": {
name: {
label: "name",
description: `The name of the item.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
resultObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"resultObject.$": {
resultReview: {
label: "resultReview",
description: `A sub property of result. The review that resulted in the performing of the
action.`,
resolveAs: {
fieldName: "ReviewResolved",
type: "Review",
resolver: (document, args, context) => {
return context.Review.findOne(
{ _id: document.Review },
{
fields: context.Review.getViewableFields(
context.currentUser,
context.Review
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
resultComment: {
label: "resultComment",
description: `A sub property of result. The Comment created or sent as a result of this
action.`,
resolveAs: {
fieldName: "CommentResolved",
type: "Comment",
resolver: (document, args, context) => {
return context.Comment.findOne(
{ _id: document.Comment },
{
fields: context.Comment.getViewableFields(
context.currentUser,
context.Comment
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
recipientObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"recipientObject.$": {
bccRecipient: {
label: "bccRecipient",
description: `A sub property of recipient. The recipient blind copied on a message.`,
resolveAs: {
fieldName: "PersonResolved",
type: "Person",
resolver: (document, args, context) => {
return context.Person.findOne(
{ _id: document.Person },
{
fields: context.Person.getViewableFields(
context.currentUser,
context.Person
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
ccRecipient: {
label: "ccRecipient",
description: `A sub property of recipient. The recipient copied on a message.`,
resolveAs: {
fieldName: "ContactPointResolved",
type: "ContactPoint",
resolver: (document, args, context) => {
return context.ContactPoint.findOne(
{ _id: document.ContactPoint },
{
fields: context.ContactPoint.getViewableFields(
context.currentUser,
context.ContactPoint
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
toRecipient: {
label: "toRecipient",
description: `A sub property of recipient. The recipient who was directly sent the message.`,
resolveAs: {
fieldName: "OrganizationResolved",
type: "Organization",
resolver: (document, args, context) => {
return context.Organization.findOne(
{ _id: document.Organization },
{
fields: context.Organization.getViewableFields(
context.currentUser,
context.Organization
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
serialNumberObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"serialNumberObject.$": {
vehicleIdentificationNumber: {
label: "vehicleIdentificationNumber",
description: `The Vehicle Identification Number (VIN) is a unique serial number used by the
automotive industry to identify individual motor vehicles.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
supplyObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"supplyObject.$": {
recipeIngredient: {
label: "recipeIngredient",
description: `A single ingredient used in the recipe, e.g. sugar, flour or garlic.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
ingredients: {
label: "ingredients",
description: `A single ingredient used in the recipe, e.g. sugar, flour or garlic.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
stepObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"stepObject.$": {
recipeInstructions: {
label: "recipeInstructions",
description: `A step in making the recipe, in the form of a single item (document, video,
etc.) or an ordered list with HowToStep and/or HowToSection items.`,
resolveAs: {
fieldName: "ItemListResolved",
type: "ItemList",
resolver: (document, args, context) => {
return context.ItemList.findOne(
{ _id: document.ItemList },
{
fields: context.ItemList.getViewableFields(
context.currentUser,
context.ItemList
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
areaServedObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"areaServedObject.$": {
availableAtOrFrom: {
label: "availableAtOrFrom",
description: `The place(s) from which the offer can be obtained (e.g. store locations).`,
resolveAs: {
fieldName: "PlaceResolved",
type: "Place",
resolver: (document, args, context) => {
return context.Place.findOne(
{ _id: document.Place },
{
fields: context.Place.getViewableFields(
context.currentUser,
context.Place
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
eligibleRegion: {
label: "eligibleRegion",
description: `The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the
GeoShape for the geo-political region(s) for which the offer or delivery charge
specification is valid.
See also ineligibleRegion.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
contentLocationObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"contentLocationObject.$": {
spatialCoverage: {
label: "spatialCoverage",
description: `The spatialCoverage of a CreativeWork indicates the place(s) which are the focus
of the content. It is a subproperty of contentLocation intended primarily for
more technical and detailed materials. For example with a Dataset, it indicates
areas that the dataset describes: a dataset of New York weather would have
spatialCoverage which was the place: the state of New York.`,
resolveAs: {
fieldName: "PlaceResolved",
type: "Place",
resolver: (document, args, context) => {
return context.Place.findOne(
{ _id: document.Place },
{
fields: context.Place.getViewableFields(
context.currentUser,
context.Place
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
positionObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"positionObject.$": {
issueNumber: {
label: "issueNumber",
description: `Identifies the issue of publication; for example, "iii" or "2".`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
episodeNumber: {
label: "episodeNumber",
description: `Position of the episode within an ordered group of episodes.`,
resolveAs: {
fieldName: "IntegerResolved",
type: "Integer",
resolver: (document, args, context) => {
return context.Integer.findOne(
{ _id: document.Integer },
{
fields: context.Integer.getViewableFields(
context.currentUser,
context.Integer
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
volumeNumber: {
label: "volumeNumber",
description: `Identifies the volume of publication or multi-part work; for example, "iii" or
"2".`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
seasonNumber: {
label: "seasonNumber",
description: `Position of the season within an ordered group of seasons.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
clipNumber: {
label: "clipNumber",
description: `Position of the clip within an ordered group of clips.`,
resolveAs: {
fieldName: "IntegerResolved",
type: "Integer",
resolver: (document, args, context) => {
return context.Integer.findOne(
{ _id: document.Integer },
{
fields: context.Integer.getViewableFields(
context.currentUser,
context.Integer
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
workFeaturedObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"workFeaturedObject.$": {
workPerformed: {
label: "workPerformed",
description: `A work performed in some event, for example a play performed in a TheaterEvent.`,
resolveAs: {
fieldName: "CreativeWorkResolved",
type: "CreativeWork",
resolver: (document, args, context) => {
return context.CreativeWork.findOne(
{ _id: document.CreativeWork },
{
fields: context.CreativeWork.getViewableFields(
context.currentUser,
context.CreativeWork
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
workPresented: {
label: "workPresented",
description: `The movie presented during this event.`,
resolveAs: {
fieldName: "MovieResolved",
type: "Movie",
resolver: (document, args, context) => {
return context.Movie.findOne(
{ _id: document.Movie },
{
fields: context.Movie.getViewableFields(
context.currentUser,
context.Movie
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
suggestedAnswerObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"suggestedAnswerObject.$": {
acceptedAnswer: {
label: "acceptedAnswer",
description: `The answer(s) that has been accepted as best, typically on a Question/Answer
site. Sites vary in their selection mechanisms, e.g. drawing on community
opinion and/or the view of the Question author.`,
resolveAs: {
fieldName: "ItemListResolved",
type: "ItemList",
resolver: (document, args, context) => {
return context.ItemList.findOne(
{ _id: document.ItemList },
{
fields: context.ItemList.getViewableFields(
context.currentUser,
context.ItemList
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
aboutObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"aboutObject.$": {
mainEntity: {
label: "mainEntity",
description: `Indicates the primary entity described in some page or other CreativeWork.`,
resolveAs: {
fieldName: "ThingResolved",
type: "Thing",
resolver: (document, args, context) => {
return context.Thing.findOne(
{ _id: document.Thing },
{
fields: context.Thing.getViewableFields(
context.currentUser,
context.Thing
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
performTimeObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"performTimeObject.$": {
cookTime: {
label: "cookTime",
description: `The time it takes to actually cook the dish, in ISO 8601 duration format.`,
resolveAs: {
fieldName: "DurationResolved",
type: "Duration",
resolver: (document, args, context) => {
return context.Duration.findOne(
{ _id: document.Duration },
{
fields: context.Duration.getViewableFields(
context.currentUser,
context.Duration
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
descriptionObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"descriptionObject.$": {
disambiguatingDescription: {
label: "disambiguatingDescription",
description: `A sub property of description. A short description of the item used to
disambiguate from other, similar items. Information from other properties (in
particular, name) may be necessary for the description to be useful for
disambiguation.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
memberOfObject: {
label: "",
description: ``,
type: Object,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
"memberOfObject.$": {
affiliation: {
label: "affiliation",
description: `An organization that this person is affiliated with. For example, a
school/university, a club, or a team.`,
resolveAs: {
fieldName: "OrganizationResolved",
type: "Organization",
resolver: (document, args, context) => {
return context.Organization.findOne(
{ _id: document.Organization },
{
fields: context.Organization.getViewableFields(
context.currentUser,
context.Organization
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
},
minPrice: {
label: "minPrice",
description: `The lowest price if the price is a range.`,
type: Number,
input: "number",
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
eligibleTransactionVolume: {
label: "eligibleTransactionVolume",
description: `The transaction volume, in a monetary unit, for which the offer or price
specification is valid, e.g. for indicating a minimal purchasing volume, to
express free shipping above a certain order volume, or to limit the acceptance
of credit cards to purchases to a certain minimal amount.`,
resolveAs: {
fieldName: "PriceSpecificationResolved",
type: "PriceSpecification",
resolver: (document, args, context) => {
return context.PriceSpecification.findOne(
{ _id: document.PriceSpecification },
{
fields: context.PriceSpecification.getViewableFields(
context.currentUser,
context.PriceSpecification
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
maxPrice: {
label: "maxPrice",
description: `The highest price if the price is a range.`,
type: Number,
input: "number",
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
priceCurrency: {
label: "priceCurrency",
description: `The currency of the price, or a price component when attached to
PriceSpecification and its subtypes.
Use standard formats: ISO 4217 currency format e.g. "USD"; Ticker symbol for
cryptocurrencies e.g. "BTC"; well known names for Local Exchange Tradings
Systems (LETS) and other currency types e.g. "Ithaca HOUR".`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
eligibleQuantity: {
label: "eligibleQuantity",
description: `The interval and unit of measurement of ordering quantities for which the offer
or price specification is valid. This allows e.g. specifying that a certain
freight charge is valid only for a certain quantity.`,
resolveAs: {
fieldName: "QuantitativeValueResolved",
type: "QuantitativeValue",
resolver: (document, args, context) => {
return context.QuantitativeValue.findOne(
{ _id: document.QuantitativeValue },
{
fields: context.QuantitativeValue.getViewableFields(
context.currentUser,
context.QuantitativeValue
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
validFrom: {
label: "validFrom",
description: `The date when the item becomes valid.`,
type: Date,
input: "datetime",
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
validThrough: {
label: "validThrough",
description: `The date after when the item is not valid. For example the end of an offer,
salary period, or a period of opening hours.`,
type: Date,
input: "datetime",
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
price: {
label: "price",
description: `The offer price of a product, or of a price component when attached to
PriceSpecification and its subtypes.
Usage guidelines:
* Use the priceCurrency property (with standard formats: ISO 4217 currency
format e.g. "USD"; Ticker symbol for cryptocurrencies e.g. "BTC"; well known
names for Local Exchange Tradings Systems (LETS) and other currency types
e.g. "Ithaca HOUR") instead of including ambiguous symbols such as '$' in the
value.
* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal
point. Avoid using these symbols as a readability separator.
* Note that both RDFa and Microdata syntax allow the use of a "content="
attribute for publishing simple machine-readable values alongside more
human-friendly formatting.
* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE'
(U+0039)) rather than superficially similiar Unicode symbols.`,
type: Number,
input: "number",
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
valueAddedTaxIncluded: {
label: "valueAddedTaxIncluded",
description: `Specifies whether the applicable value-added tax (VAT) is included in the price
specification or not.`,
type: Boolean,
input: "checkbox",
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
sameAs: {
label: "sameAs",
description: `URL of a reference Web page that unambiguously indicates the item's identity.
E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website.`,
type: String,
input: "url",
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
alternateName: {
label: "alternateName",
description: `An alias for the item.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
image: {
label: "image",
description: `An image of the item. This can be a URL or a fully described ImageObject.`,
resolveAs: {
fieldName: "ImageObjectResolved",
type: "ImageObject",
resolver: (document, args, context) => {
return context.ImageObject.findOne(
{ _id: document.ImageObject },
{
fields: context.ImageObject.getViewableFields(
context.currentUser,
context.ImageObject
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
identifier: {
label: "identifier",
description: `The identifier property represents any kind of identifier for any kind of Thing,
such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties
for representing many of these, either as textual strings or as URL (URI) links.
See background notes for more details.`,
type: String,
input: "url",
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
mainEntityOfPage: {
label: "mainEntityOfPage",
description: `Indicates a page (or other CreativeWork) for which this thing is the main entity
being described. See background notes for details.`,
type: String,
input: "url",
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
url: {
label: "url",
description: `URL of the item.`,
type: String,
input: "url",
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
potentialAction: {
label: "potentialAction",
description: `Indicates a potential Action, which describes an idealized action in which this
thing would play an 'object' role.`,
resolveAs: {
fieldName: "ActionResolved",
type: "Action",
resolver: (document, args, context) => {
return context.Action.findOne(
{ _id: document.Action },
{
fields: context.Action.getViewableFields(
context.currentUser,
context.Action
),
}
)
},
optional: true,
},
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
description: {
label: "description",
description: `A description of the item.`,
type: String,
viewableBy: ["guests"],
editableBy: ["members"],
insertableBy: ["members"],
},
}
export default PaymentChargeSpecification
|
/** PURE_IMPORTS_START ._Subject,._Subscription PURE_IMPORTS_END */
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 __());
};
import { Subject } from './Subject';
import { Subscription } from './Subscription';
/**
* @class AsyncSubject<T>
*/
export var AsyncSubject = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
__extends(AsyncSubject, _super);
function AsyncSubject() {
_super.apply(this, arguments);
this.value = null;
this.hasNext = false;
this.hasCompleted = false;
}
AsyncSubject.prototype._subscribe = function (subscriber) {
if (this.hasError) {
subscriber.error(this.thrownError);
return Subscription.EMPTY;
}
else if (this.hasCompleted && this.hasNext) {
subscriber.next(this.value);
subscriber.complete();
return Subscription.EMPTY;
}
return _super.prototype._subscribe.call(this, subscriber);
};
AsyncSubject.prototype.next = function (value) {
if (!this.hasCompleted) {
this.value = value;
this.hasNext = true;
}
};
AsyncSubject.prototype.error = function (error) {
if (!this.hasCompleted) {
_super.prototype.error.call(this, error);
}
};
AsyncSubject.prototype.complete = function () {
this.hasCompleted = true;
if (this.hasNext) {
_super.prototype.next.call(this, this.value);
}
_super.prototype.complete.call(this);
};
return AsyncSubject;
}(Subject));
//# sourceMappingURL=AsyncSubject.js.map
|
import React from 'react';
import PropTypes from 'prop-types';
const PlayerDetail = ({selectedPlayer}) => {
if( selectedPlayer ){
return (
<div>
<h3>{ selectedPlayer.name }</h3>
<ul>
<li>
<span>Score: </span>
{ selectedPlayer.score }
</li>
<li>
<span>Created: </span>
{ selectedPlayer.created }
</li>
<li>
<span>Updated: </span>
{ selectedPlayer.updated }
</li>
</ul>
</div>
);
}
else {
return (<p>Click on a player to see more details</p>);
}
};
PlayerDetail.propTypes = {
selectedPlayer: PropTypes.object
}
export default PlayerDetail;
|
const knex = require('../data/db-config.js');
const getCampaigns = () => knex('campaigns');
//create campaign
const addCampaign = campaign => knex('campaigns').insert(campaign).returning('id');
//get all campaigns for organization
const getCampaignsByOrg = organization_id => knex('campaigns').where({organization_id});
//get campaign by id
const getCampaignById = id => knex('campaigns').where({id});
//get campaign by name
const getCampaignByName = name => knex('campaigns').whereRaw('LOWER(name) LIKE ?', '%'+name.toLowerCase()+'%');
//update campaign
const updateCampaign = (id, changes) => knex('campaigns').where({id}).update(changes).returning('id');
//delete campaign
const deleteCampaign = id => knex('campaigns').where({id}).delete().returning('id');
//get total for amount raised
const totalRaised = id => knex('donations').sum('amount').where('campaign_id', '=', `${id}`);
module.exports = {getCampaigns, addCampaign, getCampaignByName, getCampaignsByOrg, getCampaignById, updateCampaign, deleteCampaign, totalRaised}
|
export default [
{
name: 'Competition',
description: '',
structure: [
{
field: 'id',
type: 'integer',
description: "The competition's unique id."
},
{
field: 'title',
type: 'string',
description: 'The title of the competition (1-50 characters)'
},
{
field: 'metric',
type: 'string',
description: "The competition's metric. (See accepted values below)"
},
{
field: 'score',
type: 'integer',
description:
"The competition's ranking score (Essentially this competition's relevance on searches)."
},
{
field: 'verificationHash',
type: 'string',
description: "The competition's verification code. Used for authorization."
},
{
field: 'startsAt',
type: 'date',
description: "The competition's start date."
},
{
field: 'endsAt',
type: 'date',
description: "The competition's end date."
},
{
field: 'createdAt',
type: 'date',
description: "The competition's creation date."
},
{
field: 'updatedAt',
type: 'date',
description: "The competition's last update date."
}
]
},
{
name: 'Participation',
description: "Represents a player's participation in a specific competition.",
structure: [
{
field: 'playerId',
type: 'integer',
description: "The participant's player id."
},
{
field: 'competitionId',
type: 'integer',
description: "The competition's id."
},
{
field: 'startSnapshotId',
type: 'integer',
description: "The start snapshot's id."
},
{
field: 'endSnapshotId',
type: 'integer',
description: "The end snapshot's id."
}
]
},
{
name: 'Status',
description:
'All the possible values for the "status" query parameter of the competition endpoints.',
values: ['upcoming', 'ongoing', 'finished']
},
{
name: 'Type',
description: 'All the possible values for the "type" property of the Competition model.',
values: ['classic', 'team']
},
{
name: 'Metrics',
description: 'All the possible values for the "metric" field of the competition model.',
values: [
'overall',
'attack',
'defence',
'strength',
'hitpoints',
'ranged',
'prayer',
'magic',
'cooking',
'woodcutting',
'fletching',
'fishing',
'firemaking',
'crafting',
'smithing',
'mining',
'herblore',
'agility',
'thieving',
'slayer',
'farming',
'runecrafting',
'hunter',
'construction',
'league_points',
'bounty_hunter_hunter',
'bounty_hunter_rogue',
'clue_scrolls_all',
'clue_scrolls_beginner',
'clue_scrolls_easy',
'clue_scrolls_medium',
'clue_scrolls_hard',
'clue_scrolls_elite',
'clue_scrolls_master',
'last_man_standing',
'soul_wars_zeal',
'abyssal_sire',
'alchemical_hydra',
'barrows_chests',
'bryophyta',
'callisto',
'cerberus',
'chambers_of_xeric',
'chambers_of_xeric_challenge_mode',
'chaos_elemental',
'chaos_fanatic',
'commander_zilyana',
'corporeal_beast',
'crazy_archaeologist',
'dagannoth_prime',
'dagannoth_rex',
'dagannoth_supreme',
'deranged_archaeologist',
'general_graardor',
'giant_mole',
'grotesque_guardians',
'hespori',
'kalphite_queen',
'king_black_dragon',
'kraken',
'kreearra',
'kril_tsutsaroth',
'mimic',
'nightmare',
'obor',
'sarachnis',
'scorpia',
'skotizo',
'the_gauntlet',
'the_corrupted_gauntlet',
'theatre_of_blood',
'thermonuclear_smoke_devil',
'tzkal_zuk',
'tztok_jad',
'venenatis',
'vetion',
'vorkath',
'wintertodt',
'zalcano',
'zulrah',
'ehp',
'ehb'
]
}
];
|
/**
* FactSet Terms & Conditions API
* The FactSet Terms & Conditions API exposes Terms & Conditions data for Fixed Income Corporate, Governement & Agency securities. The FactSet Corporate Government & Agency Terms & Conditions library provides descriptive data on the issue level, such as offering details, redemption information, and coupon schedules. Issuer level data is also available. Coverage is global and includes corporate, sovereign, and agency issues.
*
* The version of the OpenAPI document: 1.0.0
* Contact: api@factset.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The TermsAndConditionsScalarRequest model module.
* @module model/TermsAndConditionsScalarRequest
* @version 0.20.0
*/
class TermsAndConditionsScalarRequest {
/**
* Constructs a new <code>TermsAndConditionsScalarRequest</code>.
* @alias module:model/TermsAndConditionsScalarRequest
* @param ids {Array.<String>} List of Fixed Income Security identifiers. Supported symbol types include CUSIP, SEDOL, ISIN, and FactSet Security Permanent Identifier (-S). **ID LIMIT = 250** *per request*.
*/
constructor(ids) {
TermsAndConditionsScalarRequest.initialize(this, ids);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, ids) {
obj['ids'] = ids;
}
/**
* Constructs a <code>TermsAndConditionsScalarRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/TermsAndConditionsScalarRequest} obj Optional instance to populate.
* @return {module:model/TermsAndConditionsScalarRequest} The populated <code>TermsAndConditionsScalarRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new TermsAndConditionsScalarRequest();
if (data.hasOwnProperty('ids')) {
obj['ids'] = ApiClient.convertToType(data['ids'], ['String']);
}
}
return obj;
}
}
/**
* List of Fixed Income Security identifiers. Supported symbol types include CUSIP, SEDOL, ISIN, and FactSet Security Permanent Identifier (-S). **ID LIMIT = 250** *per request*.
* @member {Array.<String>} ids
*/
TermsAndConditionsScalarRequest.prototype['ids'] = undefined;
export default TermsAndConditionsScalarRequest;
|
import React from 'react'
const Service_Content = (props) => {
return(
<div className="service_content">
<div className="service_sec_info">
<h2>About</h2>
{props.content}
{props.content}
{props.content}
</div>
</div>
)
}
export default Service_Content
|
var gulp = require('gulp');
var runSequence = require('run-sequence');
function task_A(done) {
console.log('task_A');
done();
}
function task_B(done) {
setTimeout(function() {
console.log('task_B');
done();
}, 3000);
}
function task_C(done) {
setTimeout(function() {
console.log('task_C');
done();
}, 1000);
}
function task_D(done) {
setTimeout(function() {
console.log('task_D');
done();
}, 2000);
}
function task_E(done) {
console.log('task_E');
done();
}
gulp.task('task_A', task_A);
gulp.task('task_B', task_B);
gulp.task('task_C', task_C);
gulp.task('task_D', task_D);
gulp.task('task_E', task_E);
gulp.task('default', function(done) {
runSequence('task_A', // Run A first
['task_B', 'task_C', 'task_D'], // B, C and D in parallel
'task_E', // then E
done); // Don't forget callback
});
|
import styled from 'styled-components'
const DialogBox = styled.div`
padding-top: 20px;
position: relative;
background-color: ${props => props.theme.color.grey5};
`
export default DialogBox
|
module.exports = {
name: 'save',
aliases: ['sv'],
utilisation: '{prefix}save',
voiceChannel: true,
category: 'music',
async execute(client, message) {
const queue = player.getQueue(message.guild.id);
if (!queue || !queue.playing) return message.channel.send(`No music currently playing ${message.author}... try again ? ❌`);
message.author.send(`You saved the track ${queue.current.title} | ${queue.current.author} from the server ${message.guild.name} ✅`).then(() => {
message.channel.send(`I have sent you the title of the music by private messages ✅`);
}).catch(error => {
message.channel.send(`Unable to send you a private message ${message.author}... try again ? ❌`);
});
},
};
|
// Copyright 2016 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.
window.onload = () => {
const FILES_APP_ORIGIN =
'chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj';
let messageSource;
const content = document.querySelector('#content');
window.addEventListener('message', event => {
if (event.origin !== FILES_APP_ORIGIN) {
console.error('Unknown origin: ' + event.origin);
return;
}
messageSource = event.source;
switch (event.data.type) {
case 'html':
content.textContent = '';
contentChanged(null);
fetch(event.data.src)
.then((response) => {
return response.text();
})
.then((text) => {
content.textContent = text;
contentChanged(text);
});
break;
case 'audio':
case 'video':
content.onloadeddata = (e) => contentChanged(e.target.src);
content.src = event.data.src;
break;
case 'image':
content.remove();
content.src = '';
const image = new Image();
image.onload = (e) => {
contentChanged(e.target.src);
document.body.appendChild(content);
content.src = e.target.src;
};
image.onerror = (e) => {
contentDecodeFailed();
};
image.src = event.data.src;
break;
default:
content.onload = (e) => contentChanged(e.target.src);
content.src = event.data.src;
break;
}
});
document.addEventListener('contextmenu', e => {
e.preventDefault();
return false;
});
document.addEventListener('click', e => {
sendMessage((e.target === content) ? 'tap-inside' : 'tap-outside');
});
function contentChanged(src) {
sendMessage(src ? 'webview-loaded' : 'webview-cleared');
}
function contentDecodeFailed() {
sendMessage('content-decode-failed');
}
function sendMessage(message) {
if (messageSource) {
messageSource.postMessage(message, FILES_APP_ORIGIN);
}
}
// TODO(oka): This is a workaround to fix FOUC problem, where sometimes
// immature view with smaller window size than outer window is rendered for a
// moment. Remove this after the root cause is fixed. http://crbug.com/640525
window.addEventListener('resize', () => {
// Remove hidden attribute on event of resize to avoid FOUC. The window's
// initial size is 100 x 100 and it's fit into the outer window size after a
// moment. Due to Files App's window size constraint, resized window must be
// larger than 100 x 100. So this event is always invoked.
content.removeAttribute('hidden');
});
// Fallback for the case of webview bug is fixed and above code is not
// executed.
setTimeout(() => {
content.removeAttribute('hidden');
}, 500);
};
//# sourceURL=//ui/file_manager/file_manager/foreground/elements/files_safe_media_webview_content.js
|
'use strict';
var Marionette = require('backbone.marionette');
var toggleClass = require('../../../utils/toggle-class');
var _ = require('underscore');
module.exports = Marionette.LayoutView.extend({
template: false,
ui: {
nextStep: '.js-community-create-step-next',
backStep: '.js-community-create-step-back'
},
modelEvents: {
'change:active': 'onActiveChange',
'change': 'onChange'
},
events: {
'click @ui.nextStep': 'onStepNext',
'click @ui.backStep': 'onStepBack',
},
initialize: function(options) {
this.model = options.model;
this.communityCreateModel = options.communityCreateModel;
this.listenTo(this.communityCreateModel, 'change', this.onChange, this);
},
onActiveChange: function() {
toggleClass(this.$el[0], 'active', this.model.get('active'));
},
onChange: function() {
this.applyValidMessages();
},
applyValidMessages: function() {
var isValid = this.model.isValid();
toggleClass(this.ui.nextStep[0], 'disabled', !isValid);
},
onRender: function() {
this.onActiveChange();
this.model.isValid();
this.applyValidMessages();
},
onStepNext: function(e) {
var next = _.result(this, 'nextStep', null);
if (next) {
if (e) {
e.preventDefault();
}
this.communityCreateModel.set('stepState', next);
return false;
}
},
onStepBack: function(e) {
if (e) {
e.preventDefault();
}
var prev = _.result(this, 'prevStep', null);
if (prev) {
this.communityCreateModel.set('stepState', prev);
}
return false;
}
});
|
var Login = function() {
var handleLogin = function() {
$('.adminlogin-form').validate({
errorElement: 'span', //default input error message container
errorClass: 'help-block', // default input error message class
focusInvalid: false, // do not focus the last invalid input
rules: {
username: {
required: true
},
password: {
required: true
},
remember: {
required: false
}
},
messages: {
username: {
required: "Username is required."
},
password: {
required: "Password is required."
}
},
invalidHandler: function(event, validator) { //display error alert on form submit
$('.alert-danger', $('.adminlogin-form')).show();
},
highlight: function(element) { // hightlight error inputs
$(element)
.closest('.form-group').addClass('has-error'); // set error class to the control group
},
success: function(label) {
label.closest('.form-group').removeClass('has-error');
label.remove();
},
errorPlacement: function(error, element) {
error.insertAfter(element.closest('.input-icon'));
},
submitHandler: function(form) {
form.submit(); // form validation success, call ajax form submit
}
});
$('.adminlogin-form input').keypress(function(e) {
if (e.which == 13) {
if ($('.adminlogin-form').validate().form()) {
$('.adminlogin-form').submit(); //form validation success, call ajax form submit
}
return false;
}
});
}
var handleForgetPassword = function() {
$('.forget-form').validate({
errorElement: 'span', //default input error message container
errorClass: 'help-block', // default input error message class
focusInvalid: false, // do not focus the last invalid input
ignore: "",
rules: {
email: {
required: true,
email: true
}
},
messages: {
email: {
required: "Email is required."
}
},
invalidHandler: function(event, validator) { //display error alert on form submit
},
highlight: function(element) { // hightlight error inputs
$(element)
.closest('.form-group').addClass('has-error'); // set error class to the control group
},
success: function(label) {
label.closest('.form-group').removeClass('has-error');
label.remove();
},
errorPlacement: function(error, element) {
error.insertAfter(element.closest('.input-icon'));
},
submitHandler: function(form) {
form.submit();
}
});
$('.forget-form input').keypress(function(e) {
if (e.which == 13) {
if ($('.forget-form').validate().form()) {
$('.forget-form').submit();
}
return false;
}
});
jQuery('#forget-password').click(function() {
jQuery('.adminlogin-form').hide();
jQuery('.forget-form').show();
});
jQuery('#back-btn').click(function() {
jQuery('.adminlogin-form').show();
jQuery('.forget-form').hide();
});
}
var handleRegister = function() {
function format(state) {
if (!state.id) { return state.text; }
var $state = $(
'<span><img src="../assets/global/img/flags/' + state.element.value.toLowerCase() + '.png" class="img-flag" /> ' + state.text + '</span>'
);
return $state;
}
if (jQuery().select2 && $('#country_list').size() > 0) {
$("#country_list").select2({
placeholder: '<i class="fa fa-map-marker"></i> Select a Country',
templateResult: format,
templateSelection: format,
width: 'auto',
escapeMarkup: function(m) {
return m;
}
});
$('#country_list').change(function() {
$('.register-form').validate().element($(this)); //revalidate the chosen dropdown value and show error or success message for the input
});
}
$('.register-form').validate({
errorElement: 'span', //default input error message container
errorClass: 'help-block', // default input error message class
focusInvalid: false, // do not focus the last invalid input
ignore: "",
rules: {
fullname: {
required: true
},
email: {
required: true,
email: true
},
address: {
required: true
},
city: {
required: true
},
country: {
required: true
},
username: {
required: true
},
password: {
required: true
},
rpassword: {
equalTo: "#register_password"
},
tnc: {
required: true
}
},
messages: { // custom messages for radio buttons and checkboxes
tnc: {
required: "Please accept TNC first."
}
},
invalidHandler: function(event, validator) { //display error alert on form submit
},
highlight: function(element) { // hightlight error inputs
$(element)
.closest('.form-group').addClass('has-error'); // set error class to the control group
},
success: function(label) {
label.closest('.form-group').removeClass('has-error');
label.remove();
},
errorPlacement: function(error, element) {
if (element.attr("name") == "tnc") { // insert checkbox errors after the container
error.insertAfter($('#register_tnc_error'));
} else if (element.closest('.input-icon').size() === 1) {
error.insertAfter(element.closest('.input-icon'));
} else {
error.insertAfter(element);
}
},
submitHandler: function(form) {
form.submit();
}
});
$('.register-form input').keypress(function(e) {
if (e.which == 13) {
if ($('.register-form').validate().form()) {
$('.register-form').submit();
}
return false;
}
});
jQuery('#register-btn').click(function() {
jQuery('.adminlogin-form').hide();
jQuery('.register-form').show();
});
jQuery('#register-back-btn').click(function() {
jQuery('.adminlogin-form').show();
jQuery('.register-form').hide();
});
}
return {
//main function to initiate the module
init: function() {
handleLogin();
handleForgetPassword();
handleRegister();
}
};
}();
jQuery(document).ready(function() {
Login.init();
});
|
// This file was generated by silverstripe/cow from client/lang/src/zh.js.
// See https://github.com/tractorcow/cow for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defined'); // eslint-disable-line no-console
}
} else {
ss.i18n.addDictionary('zh', {
"Workflow.DeleteQuestion": "您确定要永久删除这项吗?",
"Workflow.EMBARGOMESSAGEDATE": "这个页面已保存的草稿会在<a>%s</a>自动发布",
"Workflow.EMBARGOMESSAGEDATETIME": "这个页面已保存的草稿会在<a>%s %s</a>自动发布",
"Workflow.EMBARGOMESSAGETIME": "这个页面已保存的草稿会在今天<a>%s</a>自动发布",
"Workflow.ProcessError": "无法处理工作流程"
});
}
|
import React, { Component } from 'react';
class Books extends Component {
render() {
const { book, optionChange, currentShelf, rating, changeRating } = this.props;
return (
<div className="book">
<div className="book-top">
<div
className="book-cover"
style={{
width: 120,
height: 180,
backgroundImage:`url("${book.imageLinks.smallThumbnail}")`
}}/>
<div className="book-shelf-changer">
<select
onChange= {(event) => optionChange(book, event.target.value)}
value={currentShelf}>
<option value="move" disabled> Move to...</option>
<option value="currentlyReading">Curently Reading</option>
<option value="wantToRead">Want To Read</option>
<option value="read">Read</option>
<option value="none">none</option>
</select>
</div>
</div>
<p className="book-title">{book.title}</p>
<p className="book-authors">{book.authors}</p>
{/* {console.log(book.id, rating.bookId)} */}
{rating.filter(r => r.bookId === book.id)
.map((rate, index) => (
<p className="book-authors" key={index}>Rating: {rate.rate}</p>
))
}
<select onChange={(event) => changeRating(book, event.target.value)} value={book.id === rating.bookId && rating.rate}>
<option value="Select"> Select ...</option>
<option value="4.0">4.0</option>
<option value="4.5">4.5</option>
<option value="5.0">5.0</option>
<option value="3.5">3.5</option>
</select>
</div>
);
}
}
export default Books
|
function displayNextSlide(slider) {
var currentImage = slider.find(".currentImage"),
nextSlide = (currentImage.next().length === 0) ? slider.children(':first') : currentImage.next();
currentImage.delay(1500).hide("slide", {direction: "left"}, 500, function () {
$(this).removeClass("currentImage");
nextSlide.show("slide", {direction: "right"}, 500, function () {
$(this).addClass("currentImage");
displayNextSlide(slider);
});
});
}
function initSlider(slider) {
var images = slider.find('img');
images.first().fadeIn(function () {
$(this).addClass("currentImage");
displayNextSlide(slider);
});
}
$(".slider").each(function () {
initSlider($(this));
});
|
define({
_widgetLabel: 'Eilutė',
widgetProperties: 'Valdiklio savybės',
widgetFunctions: 'Valdiklio funkcijos',
widgetName: 'valdiklio pavadinimas:',
widgetProps: 'valdiklio savybės:',
tips: 'Eilutė'
});
|
self["webpackHotUpdate_N_E"]("webpack",{},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ "use strict";
/******/
/******/ /* webpack/runtime/getFullHash */
/******/ !function() {
/******/ __webpack_require__.h = function() { return "2ee997f0931773a7218a"; }
/******/ }();
/******/
/******/ }
);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9fTl9FL3dlYnBhY2svcnVudGltZS9nZXRGdWxsSGFzaCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7VUFBQSxvQ0FBb0MsK0JBQStCLEUiLCJmaWxlIjoic3RhdGljL3dlYnBhY2svd2VicGFjay44ZDc5NzNlMGYzNjU4ZTEzMzE5My5ob3QtdXBkYXRlLmpzIiwic291cmNlc0NvbnRlbnQiOlsiX193ZWJwYWNrX3JlcXVpcmVfXy5oID0gZnVuY3Rpb24oKSB7IHJldHVybiBcIjJlZTk5N2YwOTMxNzczYTcyMThhXCI7IH0iXSwic291cmNlUm9vdCI6IiJ9
|
$(function(){
/*-------------------------------------------------------------------*/
/* Home Text Slider
/*-------------------------------------------------------------------*/
$('#text-slider').carousel({
interval: 3000,
pause: false
});
});
|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime");
var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
d: "M18 10.48V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4.48l4 3.98v-11l-4 3.98zM10 8c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8H6v-.57c0-.81.48-1.53 1.22-1.85.85-.37 1.79-.58 2.78-.58.99 0 1.93.21 2.78.58.74.32 1.22 1.04 1.22 1.85V16z"
}), 'VideoCameraFront');
exports.default = _default;
|
'use strict';
module.exports = {
friendlyName: 'File filter',
description: 'Filter nodes by a glob',
inputs: {
nodes: {
type: 'ref',
required: true,
description: 'Nodes to filter'
},
name: {
type: 'string',
required: true,
description: 'Name with wildcards',
},
},
exits: {
},
fn: async function (inputs, exits) {
let reString = '';
for (let chr of inputs.name) {
if (chr === '*')
reString += '.*';
else if (chr === '?')
reString += '.?';
else
reString += _.replace(chr, /[-[\]/{}()*+?.\\^$|]/g, '\\$&');
}
let re = new RegExp(`^${reString}$`);
let result = [];
for (let item of inputs.nodes) {
if (re.test(item.name))
result.push(item);
}
return exits.success(result);
}
};
|
import{n as e}from"./calfSystem-ebf4b17d.js"
function r(r){return e("label",r)}export{r as c}
//# sourceMappingURL=createLabel-c7d42264.js.map
|
module.exports={A:{A:{"2":"K C G E YB","129":"A B"},B:{"129":"D w Z I M H"},C:{"2":"WB AB UB OB","129":"0 1 3 5 6 7 8 F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r s t u v z x"},D:{"1":"0 1 3 5 6 7 8 V W X Y y a b c d e f L h i j k l m n o p q r s t u v z x BB IB DB FB ZB GB","16":"F J K C G E A B D w Z Q R S T U","129":"I M H N O P"},E:{"1":"K C G E A B JB KB LB MB NB g PB","16":"F J HB CB"},F:{"1":"4 D I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r s t u v VB","2":"E QB RB SB TB","16":"9 B g"},G:{"1":"G EB aB bB cB dB eB fB gB hB iB","16":"2 CB XB"},H:{"129":"jB"},I:{"1":"BB oB pB","16":"kB lB","129":"2 AB F mB nB"},J:{"1":"C","129":"A"},K:{"1":"D","2":"A","16":"9 B g","129":"4 L"},L:{"1":"DB"},M:{"129":"x"},N:{"129":"A B"},O:{"1":"qB"},P:{"1":"F J rB"},Q:{"1":"sB"},R:{"1":"tB"}},B:1,C:"Search input type"};
|
const parse = require('./parser');
module.exports = parse;
|
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
],
plugins: [ // element官方教程
// [
// 'component',
// {
// libraryName: 'asp-smart-ui',
// style: false
// // styleLibraryName: 'theme-chalk'
// }
// ]
]
}
|
"use strict";
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
t[p[i]] = s[p[i]];
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });
function jsonFormatter(data) {
let { name } = data, rest = __rest(data, ["name"]);
name = name === 'default' ? undefined : name;
return JSON.stringify(Object.assign({ name }, rest));
}
exports.jsonFormatter = jsonFormatter;
|
'use strict';
/**
* File used to configure Karma for unit testing
*/
const webpackConfig = require('./webpack.test');
const os = require('os');
console.log(`Starting Karma with isCI=${!!isCI()}`);
function isCI() {
return process.env.CI || process.env.APPVEYOR || process.env.TRAVIS;
}
function getBrowsers() {
if (process.env.CI) {
if (process.env.APPVEYOR) { // variable defined by APPVEYOR itself
// only for AppVeyor
return ['Chrome', 'Firefox' /*, 'IE'*/];
} else if (process.env.TRAVIS) { // variable defined by TRAVIS itself
return ['ChromeHeadless', 'Chrome', 'Firefox'];
} else if (process.env.CIRCLECI) { // variable defined by CIRCLECI itself
return ['ChromeHeadless', 'Chrome', 'Firefox'];
}
} else {
switch(os.platform()) {
case 'win32': // Windows
return ['ChromeHeadless', 'Chrome', 'Firefox' /*'IE'*/];
case 'darwin': // macOS
return ['ChromeHeadless', 'Chrome', 'Firefox'/*, 'Safari'*/];
default: // other (linux, freebsd, openbsd, sunos, aix)
return ['ChromeHeadless', 'Chrome', 'Firefox'];
}
}
}
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
{ pattern: './config/karma-test-runner.js', watched: false },
{ pattern: './assets/**/*', watched: false, included: false, served: true, nocache: false }
],
// /**
// * By default all assets are served at http://localhost:[PORT]/base/
// */
// proxies: {
// "/assets/": "/base/src/assets/"
// },
exclude: [],
preprocessors: {
'./config/karma-test-runner.js': ['coverage', 'webpack', 'sourcemap']
},
webpack: webpackConfig,
webpackMiddleware: {
stats: {
chunks: false
}
// stats: 'errors-only'
},
reporters: ['progress', 'mocha', 'kjhtml', 'coverage', 'remap-coverage', 'sonarqubeUnit'],
// webpackServer: {noInfo: true},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: getBrowsers(),
// It's ok, but I'm forcing --single-run, at the moment, so this value will be ignored
singleRun: !!isCI(),
coverageReporter: {
type: 'in-memory'
},
sonarQubeUnitReporter: {
sonarQubeVersion: '5.x',
outputFile: 'reports/ut_report.xml',
overrideTestDescription: true,
testPath: 'src',
testFilePattern: '.spec.ts',
useBrowserName: false
},
remapCoverageReporter: {
'text-summary': null,
'json': './coverage/coverage.json',
'html': './coverage/html',
'lcovonly': './coverage/lcov.info'
},
jasmineDiffReporter: {
multiline: true
},
customLaunchers: {
ChromeHeadless: {
base: 'Chrome',
flags: [
'--no-sandbox',
// See https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
'--headless',
'--disable-gpu',
// Without a remote debugging port, Google Chrome exits immediately.
' --remote-debugging-port=9222',
]
}
},
// For AppVeyor and TravisCI to prevent timeouts
browserNoActivityTimeout: 60000,
//browserDisconnectTimeout: 60000,
//browserDisconnectTolerance: 10
});
};
|
// @flow
import { Trans } from '@lingui/macro';
import * as React from 'react';
import Dialog from '../../UI/Dialog';
import FlatButton from '../../UI/FlatButton';
import {
type ResourceSource,
type ChooseResourceFunction,
} from '../../ResourcesList/ResourceSource.flow';
import { type ResourceExternalEditor } from '../../ResourcesList/ResourceExternalEditor.flow';
import InstructionParametersEditor from './InstructionParametersEditor';
import InstructionOrObjectSelector, {
type TabName,
} from './InstructionOrObjectSelector';
import { Column } from '../../UI/Grid';
import InstructionOrExpressionSelector from './InstructionOrExpressionSelector';
import HelpButton from '../../UI/HelpButton';
import Background from '../../UI/Background';
import { type EventsScope } from '../../InstructionOrExpression/EventsScope.flow';
import { SelectColumns } from '../../UI/Reponsive/SelectColumns';
import {
ResponsiveWidthMeasurer,
type WidthType,
} from '../../UI/Reponsive/ResponsiveWidthMeasurer';
import {
useNewInstructionEditor,
getInstructionMetadata,
} from './NewInstructionEditor';
import useForceUpdate from '../../Utils/UseForceUpdate';
const styles = {
fullHeightSelector: {
flex: 1,
display: 'flex',
flexDirection: 'column',
},
};
type StepName =
| 'object-or-free-instructions'
| 'object-instructions'
| 'parameters';
type Props = {|
project: gdProject,
scope: EventsScope,
globalObjectsContainer: gdObjectsContainer,
objectsContainer: gdObjectsContainer,
instruction: gdInstruction,
isCondition: boolean,
resourceSources: Array<ResourceSource>,
onChooseResource: ChooseResourceFunction,
resourceExternalEditors: Array<ResourceExternalEditor>,
style?: Object,
isNewInstruction: boolean,
onCancel: () => void,
onSubmit: () => void,
open: boolean,
openInstructionOrExpression: (
extension: gdPlatformExtension,
type: string
) => void,
anchorEl?: any, // Unused
|};
const getInitialStepName = (isNewInstruction: boolean): StepName => {
if (isNewInstruction) return 'object-or-free-instructions';
return 'parameters';
};
const getInitialTab = (
isNewInstruction: boolean,
hasObjectChosen: boolean
): TabName => {
if (isNewInstruction) return 'objects';
return hasObjectChosen ? 'objects' : 'free-instructions';
};
/**
* A responsive instruction editor in a dialog, showing InstructionParametersEditor
* at the end.
*/
export default function NewInstructionEditorDialog({
project,
globalObjectsContainer,
objectsContainer,
onCancel,
open,
instruction,
isCondition,
isNewInstruction,
scope,
onSubmit,
resourceSources,
onChooseResource,
resourceExternalEditors,
openInstructionOrExpression,
}: Props) {
const forceUpdate = useForceUpdate();
const [
newInstructionEditorState,
newInstructionEditorSetters,
] = useNewInstructionEditor({
instruction,
isCondition,
project,
isNewInstruction,
scope,
globalObjectsContainer,
objectsContainer,
});
const {
chosenObjectName,
chosenObjectInstructionsInfo,
chosenObjectInstructionsInfoTree,
} = newInstructionEditorState;
const {
chooseFreeInstruction,
chooseObject,
chooseObjectInstruction,
} = newInstructionEditorSetters;
const hasObjectChosen =
!!chosenObjectInstructionsInfo && !!chosenObjectInstructionsInfoTree;
const [step, setStep] = React.useState(() =>
getInitialStepName(isNewInstruction)
);
const [
currentInstructionOrObjectSelectorTab,
setCurrentInstructionOrObjectSelectorTab,
] = React.useState(() => getInitialTab(isNewInstruction, hasObjectChosen));
const instructionType: string = instruction.getType();
// Handle the back button
const stepBackFrom = (origin: StepName, width: WidthType) => {
if (origin === 'parameters' && chosenObjectName) {
setStep(
// "medium" displays 2 columns, so "Back" button should go back to the first screen.
width === 'medium'
? 'object-or-free-instructions'
: 'object-instructions'
);
} else {
setStep('object-or-free-instructions');
}
};
// Focus the parameters when showing them
const instructionParametersEditor = React.useRef(
(null: ?InstructionParametersEditor)
);
React.useEffect(
() => {
if (step === 'parameters') {
if (instructionParametersEditor.current) {
instructionParametersEditor.current.focus();
}
}
},
[step]
);
const instructionMetadata = getInstructionMetadata({
instructionType,
isCondition,
project,
});
const instructionHelpPage = instructionMetadata
? instructionMetadata.getHelpPath()
: undefined;
const renderInstructionOrObjectSelector = () => (
<Background noFullHeight key="instruction-or-object-selector">
<InstructionOrObjectSelector
style={styles.fullHeightSelector}
project={project}
currentTab={currentInstructionOrObjectSelectorTab}
onChangeTab={setCurrentInstructionOrObjectSelectorTab}
globalObjectsContainer={globalObjectsContainer}
objectsContainer={objectsContainer}
isCondition={isCondition}
chosenInstructionType={!chosenObjectName ? instructionType : undefined}
onChooseInstruction={(instructionType: string) => {
chooseFreeInstruction(instructionType);
setStep('parameters');
}}
chosenObjectName={chosenObjectName}
onChooseObject={(chosenObjectName: string) => {
chooseObject(chosenObjectName);
setStep('object-instructions');
}}
focusOnMount={!instructionType}
onSearchStartOrReset={forceUpdate}
/>
</Background>
);
const renderParameters = () => (
<Column expand justifyContent="center" key="parameters">
<InstructionParametersEditor
project={project}
scope={scope}
globalObjectsContainer={globalObjectsContainer}
objectsContainer={objectsContainer}
objectName={chosenObjectName}
isCondition={isCondition}
instruction={instruction}
resourceSources={resourceSources}
onChooseResource={onChooseResource}
resourceExternalEditors={resourceExternalEditors}
openInstructionOrExpression={openInstructionOrExpression}
ref={instructionParametersEditor}
focusOnMount={!!instructionType}
noHelpButton
/>
</Column>
);
const renderObjectInstructionSelector = () =>
chosenObjectInstructionsInfoTree && chosenObjectInstructionsInfo ? (
<InstructionOrExpressionSelector
key="object-instruction-selector"
style={styles.fullHeightSelector}
instructionsInfo={chosenObjectInstructionsInfo}
instructionsInfoTree={chosenObjectInstructionsInfoTree}
iconSize={24}
onChoose={(instructionType: string) => {
chooseObjectInstruction(instructionType);
setStep('parameters');
}}
selectedType={instructionType}
useSubheaders
focusOnMount={!instructionType}
searchPlaceholderObjectName={chosenObjectName}
searchPlaceholderIsCondition={isCondition}
/>
) : null;
return (
<ResponsiveWidthMeasurer>
{width => (
<Dialog
actions={[
<FlatButton
label={<Trans>Cancel</Trans>}
primary={false}
onClick={onCancel}
key="cancel"
/>,
<FlatButton
label={<Trans>Ok</Trans>}
primary={true}
keyboardFocused={false}
disabled={!instructionType}
onClick={onSubmit}
key="ok"
/>,
]}
secondaryActions={[
width !== 'large' && step !== 'object-or-free-instructions' ? (
<FlatButton
label={<Trans>Back</Trans>}
primary={false}
onClick={() => stepBackFrom(step, width)}
key="back"
/>
) : null,
<HelpButton
key="help"
helpPagePath={instructionHelpPage || '/events'}
label={
!instructionHelpPage ||
(width === 'small' ||
step === 'object-or-free-instructions') ? (
<Trans>Help</Trans>
) : isCondition ? (
<Trans>Help for this condition</Trans>
) : (
<Trans>Help for this action</Trans>
)
}
/>,
]}
open={open}
onRequestClose={onCancel}
cannotBeDismissed={true}
maxWidth={false}
noMargin
flexRowBody
>
<SelectColumns
columnsRenderer={{
'instruction-or-object-selector': renderInstructionOrObjectSelector,
'object-instruction-selector': renderObjectInstructionSelector,
parameters: renderParameters,
}}
getColumns={() => {
if (width === 'large') {
if (chosenObjectName) {
return [
'instruction-or-object-selector',
'object-instruction-selector',
'parameters',
];
} else {
return ['instruction-or-object-selector', 'parameters'];
}
} else if (width === 'medium') {
if (step === 'object-or-free-instructions') {
return ['instruction-or-object-selector'];
} else {
if (chosenObjectName) {
return ['object-instruction-selector', 'parameters'];
} else {
return ['parameters'];
}
}
} else {
if (step === 'object-or-free-instructions') {
return ['instruction-or-object-selector'];
} else if (step === 'object-instructions') {
return ['object-instruction-selector'];
} else {
return ['parameters'];
}
}
}}
/>
</Dialog>
)}
</ResponsiveWidthMeasurer>
);
}
|
// javascript-astar
// http://github.com/bgrins/javascript-astar
// Freely distributable under the MIT License.
// Implements the astar search algorithm in javascript using a binary heap.
var astar = {
init: function(grid) {
for(var x = 0, xl = grid.length; x < xl; x++) {
for(var y = 0, yl = grid[x].length; y < yl; y++) {
var node = grid[x][y];
node.f = 0;
node.g = 0;
node.h = 0;
node.cost = node.type;
node.visited = false;
node.closed = false;
node.parent = null;
}
}
},
heap: function() {
return new BinaryHeap(function(node) {
return node.f;
});
},
search: function(grid, start, end, diagonal, heuristic) {
astar.init(grid);
heuristic = heuristic || astar.manhattan;
diagonal = !!diagonal;
var openHeap = astar.heap();
openHeap.push(start);
while(openHeap.size() > 0) {
// Grab the lowest f(x) to process next. Heap keeps this sorted for us.
var currentNode = openHeap.pop();
// End case -- result has been found, return the traced path.
if(currentNode === end) {
var curr = currentNode;
var ret = [];
while(curr.parent) {
ret.push(curr);
curr = curr.parent;
}
return ret.reverse();
}
// Normal case -- move currentNode from open to closed, process each of its neighbors.
currentNode.closed = true;
// Find all neighbors for the current node. Optionally find diagonal neighbors as well (false by default).
var neighbors = astar.neighbors(grid, currentNode, diagonal);
for(var i=0, il = neighbors.length; i < il; i++) {
var neighbor = neighbors[i];
if(neighbor.closed || neighbor.isWall()) {
// Not a valid node to process, skip to next neighbor.
continue;
}
// The g score is the shortest distance from start to current node.
// We need to check if the path we have arrived at this neighbor is the shortest one we have seen yet.
var gScore = currentNode.g + neighbor.cost;
var beenVisited = neighbor.visited;
if(!beenVisited || gScore < neighbor.g) {
// Found an optimal (so far) path to this node. Take score for node to see how good it is.
neighbor.visited = true;
neighbor.parent = currentNode;
neighbor.h = neighbor.h || heuristic(neighbor.pos, end.pos);
neighbor.g = gScore;
neighbor.f = neighbor.g + neighbor.h;
if (!beenVisited) {
// Pushing to heap will put it in proper place based on the 'f' value.
openHeap.push(neighbor);
}
else {
// Already seen the node, but since it has been rescored we need to reorder it in the heap
openHeap.rescoreElement(neighbor);
}
}
}
}
// No result was found - empty array signifies failure to find path.
return [];
},
manhattan: function(pos0, pos1) {
// See list of heuristics: http://theory.stanford.edu/~amitp/GameProgramming/Heuristics.html
var d1 = Math.abs (pos1.x - pos0.x);
var d2 = Math.abs (pos1.y - pos0.y);
return d1 + d2;
},
neighbors: function(grid, node, diagonals) {
var ret = [];
var x = node.x;
var y = node.y;
// West
if(grid[x-1] && grid[x-1][y]) {
ret.push(grid[x-1][y]);
}
// East
if(grid[x+1] && grid[x+1][y]) {
ret.push(grid[x+1][y]);
}
// South
if(grid[x] && grid[x][y-1]) {
ret.push(grid[x][y-1]);
}
// North
if(grid[x] && grid[x][y+1]) {
ret.push(grid[x][y+1]);
}
if (diagonals) {
// Southwest
if(grid[x-1] && grid[x-1][y-1]) {
ret.push(grid[x-1][y-1]);
}
// Southeast
if(grid[x+1] && grid[x+1][y-1]) {
ret.push(grid[x+1][y-1]);
}
// Northwest
if(grid[x-1] && grid[x-1][y+1]) {
ret.push(grid[x-1][y+1]);
}
// Northeast
if(grid[x+1] && grid[x+1][y+1]) {
ret.push(grid[x+1][y+1]);
}
}
return ret;
}
};
|
import React from 'react';
const strong = (props) => {
const { children } = props;
return (
<strong>{ children }</strong>
);
};
export default strong;
|
{
"sessions": [
{
"title": "Introduction",
"speaker": "Dev Around the Sun Team",
"start": "2020-05-12T12:00:00.000Z"
},
{
"title": "Static generated sites === great performance. What are you waiting for?",
"speaker": "Debbie O'Brien",
"start": "2020-05-12T12:10:00.000Z"
},
{
"title": "Stack Overflow Podcast",
"speaker": "Stack Overflow Team",
"start": "2020-05-12T12:45:00.000Z"
},
{
"title": "Bridge to Newthingia: How to answer 'why will yours succeed, when X, Y, and Z have failed?'",
"speaker": "Herb Sutter",
"start": "2020-05-12T13:20:00.000Z"
},
{
"title": "The Evolution of Computing",
"speaker": "Mark Rendle",
"start": "2020-05-12T13:55:00.000Z"
},
{
"title": "When you think there is no time for learning or coding",
"speaker": "Eleftheria Batsou",
"start": "2020-05-12T14:30:00.000Z"
},
{
"title": "Manipulating Webpages using DevTools (for a better web experience)",
"speaker": "Jemima Abu",
"start": "2020-05-12T15:05:00.000Z"
},
{
"title": "Wibbly-Wobbly, Timey-Wimey Stuff",
"speaker": "Kevlin Henney",
"start": "2020-05-12T15:40:00.000Z"
},
{
"title": "Social distancing and technology",
"speaker": "Nenne Adaora (Adora) Nwodo",
"start": "2020-05-12T16:15:00.000Z"
},
{
"title": "Q&A with DHH",
"speaker": "David Heinemeier Hansson",
"start": "2020-05-12T16:50:00.000Z"
},
{
"title": "Making a Shiny Linux Environment in Windows",
"speaker": "Scott Hanselman",
"start": "2020-05-12T17:25:00.000Z"
},
{
"title": "Polytechnical Careering",
"speaker": "Ted Neward",
"start": "2020-05-12T18:00:00.000Z"
},
{
"title": "Battling Ants in Your Pants - If You're Wearing Any",
"speaker": "Sanja Bonic",
"start": "2020-05-12T18:35:00.000Z"
},
{
"title": "Keeping Up...",
"speaker": "Jonathan Mills",
"start": "2020-05-12T19:10:00.000Z"
},
{
"title": "Watching a Leopard change its spots; Microsoft and Open Source",
"speaker": "Danese Cooper",
"start": "2020-05-12T19:45:00.000Z"
},
{
"title": "Colonizing Venus",
"speaker": "Richard Campbell",
"start": "2020-05-12T20:20:00.000Z"
},
{
"title": "I Spent Millions On Video Game Development So You Don't Have To",
"speaker": "Heather Wilde",
"start": "2020-05-12T20:55:00.000Z"
},
{
"title": "Low-Context DevOps: Helping DevOps find answers faster",
"speaker": "Thomas Limoncelli",
"start": "2020-05-12T21:30:00.000Z"
},
{
"title": "Essential Tips for Building Developer Libraries",
"speaker": "Laura Rodriguez",
"start": "2020-05-12T22:05:00.000Z"
},
{
"title": "A Few Ways to Improve Code Quality",
"speaker": "Venkat Subramaniam",
"start": "2020-05-12T22:40:00.000Z"
},
{
"title": "How NOT to Restore a VW Bus",
"speaker": "Matt Raible",
"start": "2020-05-12T23:15:00.000Z"
},
{
"title": "What C++ is and Why?",
"speaker": "Bjarne Stroustrup",
"start": "2020-05-12T23:50:00.000Z"
},
{
"title": "What do developers build? We build change",
"speaker": "Bill Wagner",
"start": "2020-05-13T00:25:00.000Z"
},
{
"title": "5 Ways Moving to a Farm in the Middle of Nowhere Has Made Me a Better Developer",
"speaker": "Todd Sharp",
"start": "2020-05-13T01:00:00.000Z"
},
{
"title": "A Banjo Made Me a Better Developer",
"speaker": "Jeremy Clark",
"start": "2020-05-13T01:35:00.000Z"
},
{
"title": "Unlock Your Potential",
"speaker": "David Neal",
"start": "2020-05-13T02:10:00.000Z"
},
{
"title": "Our data, our databases and AI: Elements of a better future",
"speaker": "Dani Monteiro",
"start": "2020-05-13T02:45:00.000Z"
},
{
"title": "How Machine Learning Learns",
"speaker": "Nick Larsen",
"start": "2020-05-13T03:20:00.000Z"
},
{
"title": "Granny was a Hacker",
"speaker": "Kris Howard",
"start": "2020-05-13T03:55:00.000Z"
},
{
"title": "Breach Around the Sun",
"speaker": "Troy Hunt",
"start": "2020-05-13T04:30:00.000Z"
},
{
"title": "Hey, where is my country? Make all your end users happy.",
"speaker": "Renato Losio",
"start": "2020-05-13T05:05:00.000Z"
},
{
"title": "Fear of shipping and the last mile problem",
"speaker": "Leena S N",
"start": "2020-05-13T05:40:00.000Z"
},
{
"title": "Data is Obnoxiously Pleasant - SQL as Calculator",
"speaker": "Pinal Dave",
"start": "2020-05-13T06:15:00.000Z"
},
{
"title": "Beer and IoT is a never ending story.",
"speaker": "Samuel Adranyi",
"start": "2020-05-13T06:50:00.000Z"
},
{
"title": "Life set No Limits Mode On & Covid19 Initiatives WorldWide",
"speaker": "Viviane Ribeiro",
"start": "2020-05-13T07:25:00.000Z"
},
{
"title": "Best Practices for writing a remote friendly resume",
"speaker": "Edem Kumodzi",
"start": "2020-05-13T08:00:00.000Z"
},
{
"title": "Machine Learning in 25min",
"speaker": "Heli Helskyaho",
"start": "2020-05-13T08:35:00.000Z"
},
{
"title": "Mr. Potato Head Branding",
"speaker": "Christina Aldan",
"start": "2020-05-13T09:10:00.000Z"
},
{
"title": "Democratising Technology Education",
"speaker": "Nyari Samushonga",
"start": "2020-05-13T09:45:00.000Z"
},
{
"title": "Simplifying JavaScript for Every Developer",
"speaker": "Dhananjay Kumar",
"start": "2020-05-13T10:20:00.000Z"
},
{
"title": "I don't want to talk to you. Can I talk to the chatbot?",
"speaker": "Patricio Cofre",
"start": "2020-05-13T10:55:00.000Z"
},
{
"title": "Dates, time zones and calendar systems - oh my!",
"speaker": "Jon Skeet",
"start": "2020-05-13T11:30:00.000Z"
},
{
"title": "Wrap Up and Thank You!",
"speaker": "Dev Around the Sun Team",
"start": "2020-05-13T11:55:00.000Z"
}
]
}
|
import getNewId from "./common/getNewId";
export const MovieHistoryFactory = (sequelize, DataTypes) => {
const attributes = {
id: {
type: DataTypes.STRING,
defaultValue: getNewId,
primaryKey: true
},
movie_id: {
type: DataTypes.STRING,
defaultValue: ""
},
movie_poster: {
type: DataTypes.STRING,
defaultValue: ""
},
movie_trailer_img: {
type: DataTypes.STRING,
defaultValue: ""
},
movie_title: {
type: DataTypes.STRING,
defaultValue: ""
},
movie_description: {
type: DataTypes.STRING,
defaultValue: ""
},
movie_rating: {
type: DataTypes.FLOAT,
defaultValue: 0.0
},
movie_rating_count: {
type: DataTypes.INTEGER,
defaultValue: 0
}
};
const MovieHistory = sequelize.define("movie_history", attributes);
MovieHistory.associate = models => {
MovieHistory.belongsTo(models.User, {
foreignKey: {
name: "user_id",
field: "user_id"
}
});
};
return MovieHistory;
};
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopRequireDefault(_createClass2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
var _inherits2 = require('babel-runtime/helpers/inherits');
var _inherits3 = _interopRequireDefault(_inherits2);
var _simpleAssign = require('simple-assign');
var _simpleAssign2 = _interopRequireDefault(_simpleAssign);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _Avatar = require('../Avatar');
var _Avatar2 = _interopRequireDefault(_Avatar);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function getStyles(props, context) {
var card = context.muiTheme.card;
return {
root: {
padding: 16,
fontWeight: card.fontWeight,
boxSizing: 'border-box',
position: 'relative',
whiteSpace: 'nowrap'
},
text: {
display: 'inline-block',
verticalAlign: 'top',
whiteSpace: 'normal',
paddingRight: '90px'
},
avatar: {
marginRight: 16
},
title: {
color: props.titleColor || card.titleColor,
display: 'block',
fontSize: 15
},
subtitle: {
color: props.subtitleColor || card.subtitleColor,
display: 'block',
fontSize: 14
}
};
}
var CardHeader = function (_Component) {
(0, _inherits3.default)(CardHeader, _Component);
function CardHeader() {
(0, _classCallCheck3.default)(this, CardHeader);
return (0, _possibleConstructorReturn3.default)(this, (CardHeader.__proto__ || (0, _getPrototypeOf2.default)(CardHeader)).apply(this, arguments));
}
(0, _createClass3.default)(CardHeader, [{
key: 'render',
value: function render() {
var _props = this.props,
actAsExpander = _props.actAsExpander,
avatarProp = _props.avatar,
children = _props.children,
closeIcon = _props.closeIcon,
expandable = _props.expandable,
openIcon = _props.openIcon,
showExpandableButton = _props.showExpandableButton,
style = _props.style,
subtitle = _props.subtitle,
subtitleColor = _props.subtitleColor,
subtitleStyle = _props.subtitleStyle,
textStyle = _props.textStyle,
title = _props.title,
titleColor = _props.titleColor,
titleStyle = _props.titleStyle,
other = (0, _objectWithoutProperties3.default)(_props, ['actAsExpander', 'avatar', 'children', 'closeIcon', 'expandable', 'openIcon', 'showExpandableButton', 'style', 'subtitle', 'subtitleColor', 'subtitleStyle', 'textStyle', 'title', 'titleColor', 'titleStyle']);
var prepareStyles = this.context.muiTheme.prepareStyles;
var styles = getStyles(this.props, this.context);
var avatar = avatarProp;
if ((0, _react.isValidElement)(avatarProp)) {
avatar = _react2.default.cloneElement(avatar, {
style: (0, _simpleAssign2.default)(styles.avatar, avatar.props.style)
});
} else if (avatar !== null) {
avatar = _react2.default.createElement(_Avatar2.default, { src: avatarProp, style: styles.avatar });
}
return _react2.default.createElement(
'div',
(0, _extends3.default)({}, other, { style: prepareStyles((0, _simpleAssign2.default)(styles.root, style)) }),
avatar,
_react2.default.createElement(
'div',
{ style: prepareStyles((0, _simpleAssign2.default)(styles.text, textStyle)) },
_react2.default.createElement(
'span',
{ style: prepareStyles((0, _simpleAssign2.default)(styles.title, titleStyle)) },
title
),
_react2.default.createElement(
'span',
{ style: prepareStyles((0, _simpleAssign2.default)(styles.subtitle, subtitleStyle)) },
subtitle
)
),
children
);
}
}]);
return CardHeader;
}(_react.Component);
CardHeader.muiName = 'CardHeader';
CardHeader.defaultProps = {
avatar: null
};
CardHeader.contextTypes = {
muiTheme: _propTypes2.default.object.isRequired
};
CardHeader.propTypes = process.env.NODE_ENV !== "production" ? {
/**
* If true, a click on this card component expands the card.
*/
actAsExpander: _propTypes2.default.bool,
/**
* This is the [Avatar](/#/components/avatar) element to be displayed on the Card Header.
* If `avatar` is an `Avatar` or other element, it will be rendered.
* If `avatar` is a string, it will be used as the image `src` for an `Avatar`.
*/
avatar: _propTypes2.default.node,
/**
* Can be used to render elements inside the Card Header.
*/
children: _propTypes2.default.node,
/**
* Can be used to pass a closeIcon if you don't like the default expandable close Icon.
*/
closeIcon: _propTypes2.default.node,
/**
* If true, this card component is expandable.
*/
expandable: _propTypes2.default.bool,
/**
* Can be used to pass a openIcon if you don't like the default expandable open Icon.
*/
openIcon: _propTypes2.default.node,
/**
* If true, this card component will include a button to expand the card.
*/
showExpandableButton: _propTypes2.default.bool,
/**
* Override the inline-styles of the root element.
*/
style: _propTypes2.default.object,
/**
* Can be used to render a subtitle in Card Header.
*/
subtitle: _propTypes2.default.node,
/**
* Override the subtitle color.
*/
subtitleColor: _propTypes2.default.string,
/**
* Override the inline-styles of the subtitle.
*/
subtitleStyle: _propTypes2.default.object,
/**
* Override the inline-styles of the text.
*/
textStyle: _propTypes2.default.object,
/**
* Can be used to render a title in Card Header.
*/
title: _propTypes2.default.node,
/**
* Override the title color.
*/
titleColor: _propTypes2.default.string,
/**
* Override the inline-styles of the title.
*/
titleStyle: _propTypes2.default.object
} : {};
exports.default = CardHeader;
|
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=33)}([function(e,t,n){"use strict";e.exports=n(16)},function(e,t,n){e.exports=n(25)()},function(e,t,n){var r=n(27);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(29);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){var r;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),l=function(e,t){return t?t.querySelector(e):document.querySelector(e)},u=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=l.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),c=null,s=0,f=[],p=n(23);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(v(r.parts[a],t))}else{var l=[];for(a=0;a<r.parts.length;a++)l.push(v(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:l}}}}function m(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],l={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}function b(e,t){var n=u(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=f[f.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),f.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=u(e.insertAt.before,n);n.insertBefore(t,o)}}function h(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=f.indexOf(e);t>=0&&f.splice(t,1)}function g(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return y(t,e.attrs),b(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function v(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var a=s++;n=c||(c=g(t)),r=k.bind(null,n,a,!1),o=k.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),b(e,t),t}(t),r=E.bind(null,n,t),o=function(){h(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=x.bind(null,n),o=function(){h(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=m(e,t);return d(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(l=i[a.id]).refs--,r.push(l)}e&&d(m(e,t),t);for(o=0;o<r.length;o++){var l;if(0===(l=r[o]).refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete i[l.id]}}}};var w,_=(w=[],function(e,t){return w[e]=t,w.filter(Boolean).join("\n")});function k(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function x(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function E(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=p(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(17)},function(e,t,n){var r=n(31);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(24);function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"PrismCode",{enumerable:!0,get:function(){return o(r).default}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o(r).default}})},function(e,t,n){var r=n(30);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(function(t){var n=/^\[object .+?Constructor\]$/,r="object"==typeof t&&t&&t.Object===Object&&t,o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();var a,l=Array.prototype,u=Function.prototype,c=Object.prototype,s=i["__core-js_shared__"],f=(a=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"",p=u.toString,d=c.hasOwnProperty,m=c.toString,b=RegExp("^"+p.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),h=l.splice,g=S(i,"Map"),y=S(Object,"create");function v(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function w(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function k(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function x(e){return!(!O(e)||(t=e,f&&f in t))&&(function(e){var t=O(e)?m.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?b:n).test(function(e){if(null!=e){try{return p.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function E(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function S(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return x(n)?n:void 0}function T(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(T.Cache||_),n}function O(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}v.prototype.clear=function(){this.__data__=y?y(null):{}},v.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},v.prototype.get=function(e){var t=this.__data__;if(y){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return d.call(t,e)?t[e]:void 0},v.prototype.has=function(e){var t=this.__data__;return y?void 0!==t[e]:d.call(t,e)},v.prototype.set=function(e,t){return this.__data__[e]=y&&void 0===t?"__lodash_hash_undefined__":t,this},w.prototype.clear=function(){this.__data__=[]},w.prototype.delete=function(e){var t=this.__data__,n=k(t,e);return!(n<0)&&(n==t.length-1?t.pop():h.call(t,n,1),!0)},w.prototype.get=function(e){var t=this.__data__,n=k(t,e);return n<0?void 0:t[n][1]},w.prototype.has=function(e){return k(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,r=k(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},_.prototype.clear=function(){this.__data__={hash:new v,map:new(g||w),string:new v}},_.prototype.delete=function(e){return E(this,e).delete(e)},_.prototype.get=function(e){return E(this,e).get(e)},_.prototype.has=function(e){return E(this,e).has(e)},_.prototype.set=function(e,t){return E(this,e).set(e,t),this},T.Cache=_,e.exports=T}).call(this,n(13))},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,u=a(e),c=1;c<arguments.length;c++){for(var s in n=Object(arguments[c]))o.call(n,s)&&(u[s]=n[s]);if(r){l=r(n);for(var f=0;f<l.length;f++)i.call(n,l[f])&&(u[l[f]]=n[l[f]])}}return u}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(28);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(32);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";
/** @license React v16.12.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(12),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.forward_ref"):60112,d=o?Symbol.for("react.suspense"):60113;o&&Symbol.for("react.suspense_list");var m=o?Symbol.for("react.memo"):60115,b=o?Symbol.for("react.lazy"):60116;o&&Symbol.for("react.fundamental"),o&&Symbol.for("react.responder"),o&&Symbol.for("react.scope");var h="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function w(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||y}function _(){}function k(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=w.prototype;var x=k.prototype=new _;x.constructor=k,r(x,w.prototype),x.isPureReactComponent=!0;var E={current:null},S={current:null},T=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var r,o={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!O.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];o.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:S.current}}function z(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var C=/\/+/g,j=[];function N(e,t,n,r){if(j.length){var o=j.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function R(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>j.length&&j.push(e)}function I(e,t,n){return null==e?0:function e(t,n,r,o){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case a:u=!0}}if(u)return r(o,t,""===n?"."+F(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var s=n+F(l=t[c],c);u+=e(l,s,r,o)}else if(null===t||"object"!=typeof t?s=null:s="function"==typeof(s=h&&t[h]||t["@@iterator"])?s:null,"function"==typeof s)for(t=s.call(t),c=0;!(l=t.next()).done;)u+=e(l=l.value,s=n+F(l,c++),r,o);else if("object"===l)throw r=""+t,Error(g(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return u}(e,"",t,n)}function F(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function D(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?M(e,r,n,(function(e){return e})):null!=e&&(z(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(C,"$&/")+"/")+n)),r.push(e))}function M(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(C,"$&/")+"/"),I(e,L,t=N(t,i,r,o)),R(t)}function A(){var e=E.current;if(null===e)throw Error(g(321));return e}var B={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return M(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;I(e,D,t=N(null,null,t,n)),R(t)},count:function(e){return I(e,(function(){return null}),null)},toArray:function(e){var t=[];return M(e,t,null,(function(e){return e})),t},only:function(e){if(!z(e))throw Error(g(143));return e}},createRef:function(){return{current:null}},Component:w,PureComponent:k,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:p,render:e}},lazy:function(e){return{$$typeof:b,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return A().useCallback(e,t)},useContext:function(e,t){return A().useContext(e,t)},useEffect:function(e,t){return A().useEffect(e,t)},useImperativeHandle:function(e,t,n){return A().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return A().useLayoutEffect(e,t)},useMemo:function(e,t){return A().useMemo(e,t)},useReducer:function(e,t,n){return A().useReducer(e,t,n)},useRef:function(e){return A().useRef(e)},useState:function(e){return A().useState(e)},Fragment:l,Profiler:c,StrictMode:u,Suspense:d,createElement:P,cloneElement:function(e,t,n){if(null==e)throw Error(g(267,e));var o=r({},e.props),a=e.key,l=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,u=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)T.call(t,s)&&!O.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){c=Array(s);for(var f=0;f<s;f++)c[f]=arguments[f+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:l,props:o,_owner:u}},createFactory:function(e){var t=P.bind(null,e);return t.type=e,t},isValidElement:z,version:"16.12.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:E,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r}},U={default:B},V=U&&B||U;e.exports=V.default||V},function(e,t,n){"use strict";
/** @license React v16.12.0
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(0),o=n(12),i=n(18);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=null,u={};function c(){if(l)for(var e in u){var t=u[e],n=l.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!f[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in f[n]=t,n=t.eventTypes){var o=void 0,i=n[r],c=t,d=r;if(p.hasOwnProperty(d))throw Error(a(99,d));p[d]=i;var m=i.phasedRegistrationNames;if(m){for(o in m)m.hasOwnProperty(o)&&s(m[o],c,d);o=!0}else i.registrationName?(s(i.registrationName,c,d),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function s(e,t,n){if(d[e])throw Error(a(100,e));d[e]=t,m[e]=t.eventTypes[n].dependencies}var f=[],p={},d={},m={};function b(e,t,n,r,o,i,a,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var h=!1,g=null,y=!1,v=null,w={onError:function(e){h=!0,g=e}};function _(e,t,n,r,o,i,a,l,u){h=!1,g=null,b.apply(w,arguments)}var k=null,x=null,E=null;function S(e,t,n){var r=e.type||"unknown-event";e.currentTarget=E(n),function(e,t,n,r,o,i,l,u,c){if(_.apply(this,arguments),h){if(!h)throw Error(a(198));var s=g;h=!1,g=null,y||(y=!0,v=s)}}(r,t,void 0,e),e.currentTarget=null}function T(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function O(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var P=null;function z(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)S(e,t[r],n[r]);else t&&S(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function C(e){if(null!==e&&(P=T(P,e)),e=P,P=null,e){if(O(e,z),P)throw Error(a(95));if(y)throw e=v,y=!1,v=null,e}}var j={injectEventPluginOrder:function(e){if(l)throw Error(a(101));l=Array.prototype.slice.call(e),c()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!u.hasOwnProperty(t)||u[t]!==r){if(u[t])throw Error(a(102,t));u[t]=r,n=!0}}n&&c()}};function N(e,t){var n=e.stateNode;if(!n)return null;var r=k(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var R=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;R.hasOwnProperty("ReactCurrentDispatcher")||(R.ReactCurrentDispatcher={current:null}),R.hasOwnProperty("ReactCurrentBatchConfig")||(R.ReactCurrentBatchConfig={suspense:null});var I=/^(.*)[\\\/]/,F="function"==typeof Symbol&&Symbol.for,D=F?Symbol.for("react.element"):60103,L=F?Symbol.for("react.portal"):60106,M=F?Symbol.for("react.fragment"):60107,A=F?Symbol.for("react.strict_mode"):60108,B=F?Symbol.for("react.profiler"):60114,U=F?Symbol.for("react.provider"):60109,V=F?Symbol.for("react.context"):60110,H=F?Symbol.for("react.concurrent_mode"):60111,W=F?Symbol.for("react.forward_ref"):60112,$=F?Symbol.for("react.suspense"):60113,X=F?Symbol.for("react.suspense_list"):60120,K=F?Symbol.for("react.memo"):60115,G=F?Symbol.for("react.lazy"):60116;F&&Symbol.for("react.fundamental"),F&&Symbol.for("react.responder"),F&&Symbol.for("react.scope");var Q="function"==typeof Symbol&&Symbol.iterator;function q(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Q&&e[Q]||e["@@iterator"])?e:null}function Y(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case M:return"Fragment";case L:return"Portal";case B:return"Profiler";case A:return"StrictMode";case $:return"Suspense";case X:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case V:return"Context.Consumer";case U:return"Context.Provider";case W:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case K:return Y(e.type);case G:if(e=1===e._status?e._result:null)return Y(e)}return null}function Z(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=Y(e.type);n=null,r&&(n=Y(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(I,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}var J=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ee=null,te=null,ne=null;function re(e){if(e=x(e)){if("function"!=typeof ee)throw Error(a(280));var t=k(e.stateNode);ee(e.stateNode,e.type,t)}}function oe(e){te?ne?ne.push(e):ne=[e]:te=e}function ie(){if(te){var e=te,t=ne;if(ne=te=null,re(e),t)for(e=0;e<t.length;e++)re(t[e])}}function ae(e,t){return e(t)}function le(e,t,n,r){return e(t,n,r)}function ue(){}var ce=ae,se=!1,fe=!1;function pe(){null===te&&null===ne||(ue(),ie())}new Map;var de=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,me=Object.prototype.hasOwnProperty,be={},he={};function ge(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ye[e]=new ge(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ye[t]=new ge(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ye[e]=new ge(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ye[e]=new ge(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){ye[e]=new ge(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ye[e]=new ge(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){ye[e]=new ge(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){ye[e]=new ge(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){ye[e]=new ge(e,5,!1,e.toLowerCase(),null,!1)}));var ve=/[\-:]([a-z])/g;function we(e){return e[1].toUpperCase()}function _e(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ke(e,t,n,r){var o=ye.hasOwnProperty(t)?ye[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!me.call(he,e)||!me.call(be,e)&&(de.test(e)?he[e]=!0:(be[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function xe(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ee(e){e._valueTracker||(e._valueTracker=function(e){var t=xe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Se(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=xe(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Te(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Oe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=_e(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Pe(e,t){null!=(t=t.checked)&&ke(e,"checked",t,!1)}function ze(e,t){Pe(e,t);var n=_e(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?je(e,t.type,n):t.hasOwnProperty("defaultValue")&&je(e,t.type,_e(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function je(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ne(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Re(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+_e(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fe(e,t){var n=t.value;if(null==n){if(n=t.defaultValue,null!=(t=t.children)){if(null!=n)throw Error(a(92));if(Array.isArray(t)){if(!(1>=t.length))throw Error(a(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:_e(n)}}function De(e,t){var n=_e(t.value),r=_e(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ve,we);ye[t]=new ge(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ve,we);ye[t]=new ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ve,we);ye[t]=new ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){ye[e]=new ge(e,1,!1,e.toLowerCase(),null,!1)})),ye.xlinkHref=new ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){ye[e]=new ge(e,1,!1,e.toLowerCase(),null,!0)}));var Me="http://www.w3.org/1999/xhtml",Ae="http://www.w3.org/2000/svg";function Be(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Be(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ve,He=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Ae||"innerHTML"in e)e.innerHTML=t;else{for((Ve=Ve||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ve.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function We(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function $e(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xe={animationend:$e("Animation","AnimationEnd"),animationiteration:$e("Animation","AnimationIteration"),animationstart:$e("Animation","AnimationStart"),transitionend:$e("Transition","TransitionEnd")},Ke={},Ge={};function Qe(e){if(Ke[e])return Ke[e];if(!Xe[e])return e;var t,n=Xe[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ge)return Ke[e]=n[t];return e}J&&(Ge=document.createElement("div").style,"AnimationEvent"in window||(delete Xe.animationend.animation,delete Xe.animationiteration.animation,delete Xe.animationstart.animation),"TransitionEvent"in window||delete Xe.transitionend.transition);var qe=Qe("animationend"),Ye=Qe("animationiteration"),Ze=Qe("animationstart"),Je=Qe("transitionend"),et="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" ");function tt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function nt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function rt(e){if(tt(e)!==e)throw Error(a(188))}function ot(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=tt(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return rt(o),e;if(i===r)return rt(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var it,at,lt,ut=!1,ct=[],st=null,ft=null,pt=null,dt=new Map,mt=new Map,bt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),gt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function yt(e,t,n,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r}}function vt(e,t){switch(e){case"focus":case"blur":st=null;break;case"dragenter":case"dragleave":ft=null;break;case"mouseover":case"mouseout":pt=null;break;case"pointerover":case"pointerout":dt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mt.delete(t.pointerId)}}function wt(e,t,n,r,o){return null===e||e.nativeEvent!==o?(e=yt(t,n,r,o),null!==t&&(null!==(t=cr(t))&&at(t)),e):(e.eventSystemFlags|=r,e)}function _t(e){var t=ur(e.target);if(null!==t){var n=tt(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=nt(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){lt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function kt(e){if(null!==e.blockedOn)return!1;var t=jn(e.topLevelType,e.eventSystemFlags,e.nativeEvent);if(null!==t){var n=cr(t);return null!==n&&at(n),e.blockedOn=t,!1}return!0}function xt(e,t,n){kt(e)&&n.delete(t)}function Et(){for(ut=!1;0<ct.length;){var e=ct[0];if(null!==e.blockedOn){null!==(e=cr(e.blockedOn))&&it(e);break}var t=jn(e.topLevelType,e.eventSystemFlags,e.nativeEvent);null!==t?e.blockedOn=t:ct.shift()}null!==st&&kt(st)&&(st=null),null!==ft&&kt(ft)&&(ft=null),null!==pt&&kt(pt)&&(pt=null),dt.forEach(xt),mt.forEach(xt)}function St(e,t){e.blockedOn===t&&(e.blockedOn=null,ut||(ut=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Et)))}function Tt(e){function t(t){return St(t,e)}if(0<ct.length){St(ct[0],e);for(var n=1;n<ct.length;n++){var r=ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&St(st,e),null!==ft&&St(ft,e),null!==pt&&St(pt,e),dt.forEach(t),mt.forEach(t),n=0;n<bt.length;n++)(r=bt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<bt.length&&null===(n=bt[0]).blockedOn;)_t(n),null===n.blockedOn&&bt.shift()}function Ot(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Pt(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function zt(e,t,n){(t=N(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=T(n._dispatchListeners,t),n._dispatchInstances=T(n._dispatchInstances,e))}function Ct(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Pt(t);for(t=n.length;0<t--;)zt(n[t],"captured",e);for(t=0;t<n.length;t++)zt(n[t],"bubbled",e)}}function jt(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=N(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=T(n._dispatchListeners,t),n._dispatchInstances=T(n._dispatchInstances,e))}function Nt(e){e&&e.dispatchConfig.registrationName&&jt(e._targetInst,null,e)}function Rt(e){O(e,Ct)}function It(){return!0}function Ft(){return!1}function Dt(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?It:Ft,this.isPropagationStopped=Ft,this}function Lt(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Mt(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function At(e){e.eventPool=[],e.getPooled=Lt,e.release=Mt}o(Dt.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=It)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=It)},persist:function(){this.isPersistent=It},isPersistent:Ft,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Ft,this._dispatchInstances=this._dispatchListeners=null}}),Dt.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Dt.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,At(n),n},At(Dt);var Bt=Dt.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Ut=Dt.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vt=Dt.extend({view:null,detail:null}),Ht=Vt.extend({relatedTarget:null});function Wt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var $t={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xt={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Kt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Kt[e])&&!!t[e]}function Qt(){return Gt}for(var qt=Vt.extend({key:function(e){if(e.key){var t=$t[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Wt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Xt[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Qt,charCode:function(e){return"keypress"===e.type?Wt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Wt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Yt=0,Zt=0,Jt=!1,en=!1,tn=Vt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Qt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Yt;return Yt=e.screenX,Jt?"mousemove"===e.type?e.screenX-t:0:(Jt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Zt;return Zt=e.screenY,en?"mousemove"===e.type?e.screenY-t:0:(en=!0,0)}}),nn=tn.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),rn=tn.extend({dataTransfer:null}),on=Vt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Qt}),an=Dt.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ln=tn.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),un=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[qe,"animationEnd",2],[Ye,"animationIteration",2],[Ze,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[Je,"transitionEnd",2],["waiting","waiting",2]],cn={},sn={},fn=0;fn<un.length;fn++){var pn=un[fn],dn=pn[0],mn=pn[1],bn=pn[2],hn="on"+(mn[0].toUpperCase()+mn.slice(1)),gn={phasedRegistrationNames:{bubbled:hn,captured:hn+"Capture"},dependencies:[dn],eventPriority:bn};cn[mn]=gn,sn[dn]=gn}var yn={eventTypes:cn,getEventPriority:function(e){return void 0!==(e=sn[e])?e.eventPriority:2},extractEvents:function(e,t,n,r){var o=sn[e];if(!o)return null;switch(e){case"keypress":if(0===Wt(n))return null;case"keydown":case"keyup":e=qt;break;case"blur":case"focus":e=Ht;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=tn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=rn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=on;break;case qe:case Ye:case Ze:e=Bt;break;case Je:e=an;break;case"scroll":e=Vt;break;case"wheel":e=ln;break;case"copy":case"cut":case"paste":e=Ut;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=nn;break;default:e=Dt}return Rt(t=e.getPooled(o,t,n,r)),t}},vn=i.unstable_UserBlockingPriority,wn=i.unstable_runWithPriority,_n=yn.getEventPriority,kn=[];function xn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=ur(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=Ot(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,a=e.eventSystemFlags,l=null,u=0;u<f.length;u++){var c=f[u];c&&(c=c.extractEvents(r,t,i,o,a))&&(l=T(l,c))}C(l)}}var En=!0;function Sn(e,t){Tn(t,e,!1)}function Tn(e,t,n){switch(_n(t)){case 0:var r=On.bind(null,t,1);break;case 1:r=Pn.bind(null,t,1);break;default:r=Cn.bind(null,t,1)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function On(e,t,n){se||ue();var r=Cn,o=se;se=!0;try{le(r,e,t,n)}finally{(se=o)||pe()}}function Pn(e,t,n){wn(vn,Cn.bind(null,e,t,n))}function zn(e,t,n,r){if(kn.length){var o=kn.pop();o.topLevelType=e,o.eventSystemFlags=t,o.nativeEvent=n,o.targetInst=r,e=o}else e={topLevelType:e,eventSystemFlags:t,nativeEvent:n,targetInst:r,ancestors:[]};try{if(t=xn,n=e,fe)t(n,void 0);else{fe=!0;try{ce(t,n,void 0)}finally{fe=!1,pe()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,kn.length<10&&kn.push(e)}}function Cn(e,t,n){if(En)if(0<ct.length&&-1<ht.indexOf(e))e=yt(null,e,t,n),ct.push(e);else{var r=jn(e,t,n);null===r?vt(e,n):-1<ht.indexOf(e)?(e=yt(r,e,t,n),ct.push(e)):function(e,t,n,r){switch(t){case"focus":return st=wt(st,e,t,n,r),!0;case"dragenter":return ft=wt(ft,e,t,n,r),!0;case"mouseover":return pt=wt(pt,e,t,n,r),!0;case"pointerover":var o=r.pointerId;return dt.set(o,wt(dt.get(o)||null,e,t,n,r)),!0;case"gotpointercapture":return o=r.pointerId,mt.set(o,wt(mt.get(o)||null,e,t,n,r)),!0}return!1}(r,e,t,n)||(vt(e,n),zn(e,t,n,null))}}function jn(e,t,n){var r=Ot(n);if(null!==(r=ur(r))){var o=tt(r);if(null===o)r=null;else{var i=o.tag;if(13===i){if(null!==(r=nt(o)))return r;r=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null)}}return zn(e,t,n,r),null}function Nn(e){if(!J)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var Rn=new("function"==typeof WeakMap?WeakMap:Map);function In(e){var t=Rn.get(e);return void 0===t&&(t=new Set,Rn.set(e,t)),t}function Fn(e,t,n){if(!n.has(e)){switch(e){case"scroll":Tn(t,"scroll",!0);break;case"focus":case"blur":Tn(t,"focus",!0),Tn(t,"blur",!0),n.add("blur"),n.add("focus");break;case"cancel":case"close":Nn(e)&&Tn(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===et.indexOf(e)&&Sn(e,t)}n.add(e)}}var Dn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ln=["Webkit","ms","Moz","O"];function Mn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Dn.hasOwnProperty(e)&&Dn[e]?(""+t).trim():t+"px"}function An(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Mn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Dn).forEach((function(e){Ln.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dn[t]=Dn[e]}))}));var Bn=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Un(e,t){if(t){if(Bn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function Vn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Hn(e,t){var n=In(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=m[t];for(var r=0;r<t.length;r++)Fn(t[r],e,n)}function Wn(){}function $n(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Xn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kn(e,t){var n,r=Xn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Xn(r)}}function Gn(){for(var e=window,t=$n();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=$n((e=t.contentWindow).document)}return t}function Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var qn=null,Yn=null;function Zn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Jn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var er="function"==typeof setTimeout?setTimeout:void 0,tr="function"==typeof clearTimeout?clearTimeout:void 0;function nr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function rr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var or=Math.random().toString(36).slice(2),ir="__reactInternalInstance$"+or,ar="__reactEventHandlers$"+or,lr="__reactContainere$"+or;function ur(e){var t=e[ir];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lr]||n[ir]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=rr(e);null!==e;){if(n=e[ir])return n;e=rr(e)}return t}n=(e=n).parentNode}return null}function cr(e){return!(e=e[ir]||e[lr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function sr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function fr(e){return e[ar]||null}var pr=null,dr=null,mr=null;function br(){if(mr)return mr;var e,t,n=dr,r=n.length,o="value"in pr?pr.value:pr.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return mr=o.slice(e,1<t?1-t:void 0)}var hr=Dt.extend({data:null}),gr=Dt.extend({data:null}),yr=[9,13,27,32],vr=J&&"CompositionEvent"in window,wr=null;J&&"documentMode"in document&&(wr=document.documentMode);var _r=J&&"TextEvent"in window&&!wr,kr=J&&(!vr||wr&&8<wr&&11>=wr),xr=String.fromCharCode(32),Er={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Sr=!1;function Tr(e,t){switch(e){case"keyup":return-1!==yr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Or(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Pr=!1;var zr={eventTypes:Er,extractEvents:function(e,t,n,r){var o;if(vr)e:{switch(e){case"compositionstart":var i=Er.compositionStart;break e;case"compositionend":i=Er.compositionEnd;break e;case"compositionupdate":i=Er.compositionUpdate;break e}i=void 0}else Pr?Tr(e,n)&&(i=Er.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=Er.compositionStart);return i?(kr&&"ko"!==n.locale&&(Pr||i!==Er.compositionStart?i===Er.compositionEnd&&Pr&&(o=br()):(dr="value"in(pr=r)?pr.value:pr.textContent,Pr=!0)),i=hr.getPooled(i,t,n,r),o?i.data=o:null!==(o=Or(n))&&(i.data=o),Rt(i),o=i):o=null,(e=_r?function(e,t){switch(e){case"compositionend":return Or(t);case"keypress":return 32!==t.which?null:(Sr=!0,xr);case"textInput":return(e=t.data)===xr&&Sr?null:e;default:return null}}(e,n):function(e,t){if(Pr)return"compositionend"===e||!vr&&Tr(e,t)?(e=br(),mr=dr=pr=null,Pr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kr&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=gr.getPooled(Er.beforeInput,t,n,r)).data=e,Rt(t)):t=null,null===o?t:null===t?o:[o,t]}},Cr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Cr[e.type]:"textarea"===t}var Nr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Rr(e,t,n){return(e=Dt.getPooled(Nr.change,e,t,n)).type="change",oe(n),Rt(e),e}var Ir=null,Fr=null;function Dr(e){C(e)}function Lr(e){if(Se(sr(e)))return e}function Mr(e,t){if("change"===e)return t}var Ar=!1;function Br(){Ir&&(Ir.detachEvent("onpropertychange",Ur),Fr=Ir=null)}function Ur(e){if("value"===e.propertyName&&Lr(Fr))if(e=Rr(Fr,e,Ot(e)),se)C(e);else{se=!0;try{ae(Dr,e)}finally{se=!1,pe()}}}function Vr(e,t,n){"focus"===e?(Br(),Fr=n,(Ir=t).attachEvent("onpropertychange",Ur)):"blur"===e&&Br()}function Hr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Lr(Fr)}function Wr(e,t){if("click"===e)return Lr(t)}function $r(e,t){if("input"===e||"change"===e)return Lr(t)}J&&(Ar=Nn("input")&&(!document.documentMode||9<document.documentMode));var Xr,Kr={eventTypes:Nr,_isInputEventSupported:Ar,extractEvents:function(e,t,n,r){var o=t?sr(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=Mr;else if(jr(o))if(Ar)a=$r;else{a=Hr;var l=Vr}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=Wr);if(a&&(a=a(e,t)))return Rr(a,n,r);l&&l(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&je(o,"number",o.value)}},Gr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Qr={eventTypes:Gr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?ur(t):null)&&(t!==(i=tt(t))||5!==t.tag&&6!==t.tag)&&(t=null)):a=null,a===t)return null;if("mouseout"===e||"mouseover"===e)var l=tn,u=Gr.mouseLeave,c=Gr.mouseEnter,s="mouse";else"pointerout"!==e&&"pointerover"!==e||(l=nn,u=Gr.pointerLeave,c=Gr.pointerEnter,s="pointer");if(e=null==a?o:sr(a),o=null==t?o:sr(t),(u=l.getPooled(u,a,n,r)).type=s+"leave",u.target=e,u.relatedTarget=o,(r=l.getPooled(c,t,n,r)).type=s+"enter",r.target=o,r.relatedTarget=e,s=t,(l=a)&&s)e:{for(e=s,a=0,t=c=l;t;t=Pt(t))a++;for(t=0,o=e;o;o=Pt(o))t++;for(;0<a-t;)c=Pt(c),a--;for(;0<t-a;)e=Pt(e),t--;for(;a--;){if(c===e||c===e.alternate)break e;c=Pt(c),e=Pt(e)}c=null}else c=null;for(e=c,c=[];l&&l!==e&&(null===(a=l.alternate)||a!==e);)c.push(l),l=Pt(l);for(l=[];s&&s!==e&&(null===(a=s.alternate)||a!==e);)l.push(s),s=Pt(s);for(s=0;s<c.length;s++)jt(c[s],"bubbled",u);for(s=l.length;0<s--;)jt(l[s],"captured",r);return n===Xr?(Xr=null,[u]):(Xr=n,[u,r])}};var qr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Yr=Object.prototype.hasOwnProperty;function Zr(e,t){if(qr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Yr.call(t,n[r])||!qr(e[n[r]],t[n[r]]))return!1;return!0}var Jr=J&&"documentMode"in document&&11>=document.documentMode,eo={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},to=null,no=null,ro=null,oo=!1;function io(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return oo||null==to||to!==$n(n)?null:("selectionStart"in(n=to)&&Qn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},ro&&Zr(ro,n)?null:(ro=n,(e=Dt.getPooled(eo.select,no,e,t)).type="select",e.target=to,Rt(e),e))}var ao={eventTypes:eo,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=In(i),o=m.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?sr(t):window,e){case"focus":(jr(i)||"true"===i.contentEditable)&&(to=i,no=t,ro=null);break;case"blur":ro=no=to=null;break;case"mousedown":oo=!0;break;case"contextmenu":case"mouseup":case"dragend":return oo=!1,io(n,r);case"selectionchange":if(Jr)break;case"keydown":case"keyup":return io(n,r)}return null}};j.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),k=fr,x=cr,E=sr,j.injectEventPluginsByName({SimpleEventPlugin:yn,EnterLeaveEventPlugin:Qr,ChangeEventPlugin:Kr,SelectEventPlugin:ao,BeforeInputEventPlugin:zr}),new Set;var lo=[],uo=-1;function co(e){0>uo||(e.current=lo[uo],lo[uo]=null,uo--)}function so(e,t){uo++,lo[uo]=e.current,e.current=t}var fo={},po={current:fo},mo={current:!1},bo=fo;function ho(e,t){var n=e.type.contextTypes;if(!n)return fo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function go(e){return null!=(e=e.childContextTypes)}function yo(e){co(mo),co(po)}function vo(e){co(mo),co(po)}function wo(e,t,n){if(po.current!==fo)throw Error(a(168));so(po,t),so(mo,n)}function _o(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,Y(t)||"Unknown",i));return o({},n,{},r)}function ko(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||fo,bo=po.current,so(po,t),so(mo,mo.current),!0}function xo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(t=_o(e,t,bo),r.__reactInternalMemoizedMergedChildContext=t,co(mo),co(po),so(po,t)):co(mo),so(mo,n)}var Eo=i.unstable_runWithPriority,So=i.unstable_scheduleCallback,To=i.unstable_cancelCallback,Oo=i.unstable_shouldYield,Po=i.unstable_requestPaint,zo=i.unstable_now,Co=i.unstable_getCurrentPriorityLevel,jo=i.unstable_ImmediatePriority,No=i.unstable_UserBlockingPriority,Ro=i.unstable_NormalPriority,Io=i.unstable_LowPriority,Fo=i.unstable_IdlePriority,Do={},Lo=void 0!==Po?Po:function(){},Mo=null,Ao=null,Bo=!1,Uo=zo(),Vo=1e4>Uo?zo:function(){return zo()-Uo};function Ho(){switch(Co()){case jo:return 99;case No:return 98;case Ro:return 97;case Io:return 96;case Fo:return 95;default:throw Error(a(332))}}function Wo(e){switch(e){case 99:return jo;case 98:return No;case 97:return Ro;case 96:return Io;case 95:return Fo;default:throw Error(a(332))}}function $o(e,t){return e=Wo(e),Eo(e,t)}function Xo(e,t,n){return e=Wo(e),So(e,t,n)}function Ko(e){return null===Mo?(Mo=[e],Ao=So(jo,Qo)):Mo.push(e),Do}function Go(){if(null!==Ao){var e=Ao;Ao=null,To(e)}Qo()}function Qo(){if(!Bo&&null!==Mo){Bo=!0;var e=0;try{var t=Mo;$o(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Mo=null}catch(t){throw null!==Mo&&(Mo=Mo.slice(e+1)),So(jo,Go),t}finally{Bo=!1}}}var qo=3;function Yo(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Zo(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Jo={current:null},ei=null,ti=null,ni=null;function ri(){ni=ti=ei=null}function oi(e,t){var n=e.type._context;so(Jo,n._currentValue),n._currentValue=t}function ii(e){var t=Jo.current;co(Jo),e.type._context._currentValue=t}function ai(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function li(e,t){ei=e,ni=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ua=!0),e.firstContext=null)}function ui(e,t){if(ni!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ni=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(a(308));ti=t,ei.dependencies={expirationTime:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var ci=!1;function si(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function fi(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function pi(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function di(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function mi(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=si(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=si(e.memoizedState),o=n.updateQueue=si(n.memoizedState)):r=e.updateQueue=fi(o):null===o&&(o=n.updateQueue=fi(r));null===o||r===o?di(r,t):null===r.lastUpdate||null===o.lastUpdate?(di(r,t),di(o,t)):(di(r,t),o.lastUpdate=t)}function bi(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=si(e.memoizedState):hi(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function hi(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=fi(t)),t}function gi(e,t,n,r,i,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,i):e;case 3:e.effectTag=-4097&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(a,r,i):e))break;return o({},r,i);case 2:ci=!0}return r}function yi(e,t,n,r,o){ci=!1;for(var i=(t=hi(e,t)).baseState,a=null,l=0,u=t.firstUpdate,c=i;null!==u;){var s=u.expirationTime;s<o?(null===a&&(a=u,i=c),l<s&&(l=s)):(fu(s,u.suspenseConfig),c=gi(e,0,u,c,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=u:(t.lastEffect.nextEffect=u,t.lastEffect=u))),u=u.next}for(s=null,u=t.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f<o?(null===s&&(s=u,null===a&&(i=c)),l<f&&(l=f)):(c=gi(e,0,u,c,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=u:(t.lastCapturedEffect.nextEffect=u,t.lastCapturedEffect=u))),u=u.next}null===a&&(t.lastUpdate=null),null===s?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===s&&(i=c),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=s,pu(l),e.expirationTime=l,e.memoizedState=c}function vi(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),wi(t.firstEffect,n),t.firstEffect=t.lastEffect=null,wi(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function wi(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;if("function"!=typeof n)throw Error(a(191,n));n.call(r)}e=e.nextEffect}}var _i=R.ReactCurrentBatchConfig,ki=(new r.Component).refs;function xi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var Ei={isMounted:function(e){return!!(e=e._reactInternalFiber)&&tt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Zl(),o=_i.suspense;(o=pi(r=Jl(r,e,o),o)).payload=t,null!=n&&(o.callback=n),mi(e,o),eu(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Zl(),o=_i.suspense;(o=pi(r=Jl(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),mi(e,o),eu(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Zl(),r=_i.suspense;(r=pi(n=Jl(n,e,r),r)).tag=2,null!=t&&(r.callback=t),mi(e,r),eu(e,n)}};function Si(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Zr(n,r)||!Zr(o,i))}function Ti(e,t,n){var r=!1,o=fo,i=t.contextType;return"object"==typeof i&&null!==i?i=ui(i):(o=go(t)?bo:po.current,i=(r=null!=(r=t.contextTypes))?ho(e,o):fo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ei,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Oi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ei.enqueueReplaceState(t,t.state,null)}function Pi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ki;var i=t.contextType;"object"==typeof i&&null!==i?o.context=ui(i):(i=go(t)?bo:po.current,o.context=ho(e,i)),null!==(i=e.updateQueue)&&(yi(e,i,n,o,r),o.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(xi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ei.enqueueReplaceState(o,o.state,null),null!==(i=e.updateQueue)&&(yi(e,i,n,o,r),o.state=e.memoizedState)),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var zi=Array.isArray;function Ci(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===ki&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ji(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ni(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t,n){return(e=Nu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Fu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ci(e,t,n),r.return=e,r):((r=Ru(n.type,n.key,n.props,null,e.mode,r)).ref=Ci(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Du(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Iu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Fu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case D:return(n=Ru(t.type,t.key,t.props,null,e.mode,n)).ref=Ci(e,null,t),n.return=e,n;case L:return(t=Du(t,e.mode,n)).return=e,t}if(zi(t)||q(t))return(t=Iu(t,e.mode,n,null)).return=e,t;ji(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case D:return n.key===o?n.type===M?f(e,t,n.props.children,r,o):c(e,t,n,r):null;case L:return n.key===o?s(e,t,n,r):null}if(zi(n)||q(n))return null!==o?null:f(e,t,n,r,null);ji(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case D:return e=e.get(null===r.key?n:r.key)||null,r.type===M?f(t,e,r.props.children,o,r.key):c(t,e,r,o);case L:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(zi(r)||q(r))return f(t,e=e.get(n)||null,r,o,null);ji(t,r)}return null}function b(o,a,l,u){for(var c=null,s=null,f=a,b=a=0,h=null;null!==f&&b<l.length;b++){f.index>b?(h=f,f=null):h=f.sibling;var g=d(o,f,l[b],u);if(null===g){null===f&&(f=h);break}e&&f&&null===g.alternate&&t(o,f),a=i(g,a,b),null===s?c=g:s.sibling=g,s=g,f=h}if(b===l.length)return n(o,f),c;if(null===f){for(;b<l.length;b++)null!==(f=p(o,l[b],u))&&(a=i(f,a,b),null===s?c=f:s.sibling=f,s=f);return c}for(f=r(o,f);b<l.length;b++)null!==(h=m(f,o,b,l[b],u))&&(e&&null!==h.alternate&&f.delete(null===h.key?b:h.key),a=i(h,a,b),null===s?c=h:s.sibling=h,s=h);return e&&f.forEach((function(e){return t(o,e)})),c}function h(o,l,u,c){var s=q(u);if("function"!=typeof s)throw Error(a(150));if(null==(u=s.call(u)))throw Error(a(151));for(var f=s=null,b=l,h=l=0,g=null,y=u.next();null!==b&&!y.done;h++,y=u.next()){b.index>h?(g=b,b=null):g=b.sibling;var v=d(o,b,y.value,c);if(null===v){null===b&&(b=g);break}e&&b&&null===v.alternate&&t(o,b),l=i(v,l,h),null===f?s=v:f.sibling=v,f=v,b=g}if(y.done)return n(o,b),s;if(null===b){for(;!y.done;h++,y=u.next())null!==(y=p(o,y.value,c))&&(l=i(y,l,h),null===f?s=y:f.sibling=y,f=y);return s}for(b=r(o,b);!y.done;h++,y=u.next())null!==(y=m(b,o,h,y.value,c))&&(e&&null!==y.alternate&&b.delete(null===y.key?h:y.key),l=i(y,l,h),null===f?s=y:f.sibling=y,f=y);return e&&b.forEach((function(e){return t(o,e)})),s}return function(e,r,i,u){var c="object"==typeof i&&null!==i&&i.type===M&&null===i.key;c&&(i=i.props.children);var s="object"==typeof i&&null!==i;if(s)switch(i.$$typeof){case D:e:{for(s=i.key,c=r;null!==c;){if(c.key===s){if(7===c.tag?i.type===M:c.elementType===i.type){n(e,c.sibling),(r=o(c,i.type===M?i.props.children:i.props)).ref=Ci(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===M?((r=Iu(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Ru(i.type,i.key,i.props,null,e.mode,u)).ref=Ci(e,r,i),u.return=e,e=u)}return l(e);case L:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Du(i,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Fu(i,e.mode,u)).return=e,e=r),l(e);if(zi(i))return b(e,r,i,u);if(q(i))return h(e,r,i,u);if(s&&ji(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Ri=Ni(!0),Ii=Ni(!1),Fi={},Di={current:Fi},Li={current:Fi},Mi={current:Fi};function Ai(e){if(e===Fi)throw Error(a(174));return e}function Bi(e,t){so(Mi,t),so(Li,e),so(Di,Fi);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ue(null,"");break;default:t=Ue(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}co(Di),so(Di,t)}function Ui(e){co(Di),co(Li),co(Mi)}function Vi(e){Ai(Mi.current);var t=Ai(Di.current),n=Ue(t,e.type);t!==n&&(so(Li,e),so(Di,n))}function Hi(e){Li.current===e&&(co(Di),co(Li))}var Wi={current:0};function $i(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Xi(e,t){return{responder:e,props:t}}var Ki=R.ReactCurrentDispatcher,Gi=R.ReactCurrentBatchConfig,Qi=0,qi=null,Yi=null,Zi=null,Ji=null,ea=null,ta=null,na=0,ra=null,oa=0,ia=!1,aa=null,la=0;function ua(){throw Error(a(321))}function ca(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qr(e[n],t[n]))return!1;return!0}function sa(e,t,n,r,o,i){if(Qi=i,qi=t,Zi=null!==e?e.memoizedState:null,Ki.current=null===Zi?za:Ca,t=n(r,o),ia){do{ia=!1,la+=1,Zi=null!==e?e.memoizedState:null,ta=Ji,ra=ea=Yi=null,Ki.current=Ca,t=n(r,o)}while(ia);aa=null,la=0}if(Ki.current=Pa,(e=qi).memoizedState=Ji,e.expirationTime=na,e.updateQueue=ra,e.effectTag|=oa,e=null!==Yi&&null!==Yi.next,Qi=0,ta=ea=Ji=Zi=Yi=qi=null,na=0,ra=null,oa=0,e)throw Error(a(300));return t}function fa(){Ki.current=Pa,Qi=0,ta=ea=Ji=Zi=Yi=qi=null,na=0,ra=null,oa=0,ia=!1,aa=null,la=0}function pa(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===ea?Ji=ea=e:ea=ea.next=e,ea}function da(){if(null!==ta)ta=(ea=ta).next,Zi=null!==(Yi=Zi)?Yi.next:null;else{if(null===Zi)throw Error(a(310));var e={memoizedState:(Yi=Zi).memoizedState,baseState:Yi.baseState,queue:Yi.queue,baseUpdate:Yi.baseUpdate,next:null};ea=null===ea?Ji=e:ea.next=e,Zi=Yi.next}return ea}function ma(e,t){return"function"==typeof t?t(e):t}function ba(e){var t=da(),n=t.queue;if(null===n)throw Error(a(311));if(n.lastRenderedReducer=e,0<la){var r=n.dispatch;if(null!==aa){var o=aa.get(n);if(void 0!==o){aa.delete(n);var i=t.memoizedState;do{i=e(i,o.action),o=o.next}while(null!==o);return qr(i,t.memoizedState)||(Ua=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.lastRenderedState=i,[i,r]}}return[t.memoizedState,r]}r=n.last;var l=t.baseUpdate;if(i=t.baseState,null!==l?(null!==r&&(r.next=null),r=l.next):r=null!==r?r.next:null,null!==r){var u=o=null,c=r,s=!1;do{var f=c.expirationTime;f<Qi?(s||(s=!0,u=l,o=i),f>na&&pu(na=f)):(fu(f,c.suspenseConfig),i=c.eagerReducer===e?c.eagerState:e(i,c.action)),l=c,c=c.next}while(null!==c&&c!==r);s||(u=l,o=i),qr(i,t.memoizedState)||(Ua=!0),t.memoizedState=i,t.baseUpdate=u,t.baseState=o,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function ha(e){var t=pa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:ma,lastRenderedState:e}).dispatch=Oa.bind(null,qi,e),[t.memoizedState,e]}function ga(e){return ba(ma)}function ya(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===ra?(ra={lastEffect:null}).lastEffect=e.next=e:null===(t=ra.lastEffect)?ra.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,ra.lastEffect=e),e}function va(e,t,n,r){var o=pa();oa|=e,o.memoizedState=ya(t,n,void 0,void 0===r?null:r)}function wa(e,t,n,r){var o=da();r=void 0===r?null:r;var i=void 0;if(null!==Yi){var a=Yi.memoizedState;if(i=a.destroy,null!==r&&ca(r,a.deps))return void ya(0,n,i,r)}oa|=e,o.memoizedState=ya(t,n,i,r)}function _a(e,t){return va(516,192,e,t)}function ka(e,t){return wa(516,192,e,t)}function xa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ea(){}function Sa(e,t){return pa().memoizedState=[e,void 0===t?null:t],e}function Ta(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ca(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Oa(e,t,n){if(!(25>la))throw Error(a(301));var r=e.alternate;if(e===qi||null!==r&&r===qi)if(ia=!0,e={expirationTime:Qi,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===aa&&(aa=new Map),void 0===(n=aa.get(t)))aa.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var o=Zl(),i=_i.suspense;i={expirationTime:o=Jl(o,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var l=t.last;if(null===l)i.next=i;else{var u=l.next;null!==u&&(i.next=u),l.next=i}if(t.last=i,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var c=t.lastRenderedState,s=r(c,n);if(i.eagerReducer=r,i.eagerState=s,qr(s,c))return}catch(e){}eu(e,o)}}var Pa={readContext:ui,useCallback:ua,useContext:ua,useEffect:ua,useImperativeHandle:ua,useLayoutEffect:ua,useMemo:ua,useReducer:ua,useRef:ua,useState:ua,useDebugValue:ua,useResponder:ua,useDeferredValue:ua,useTransition:ua},za={readContext:ui,useCallback:Sa,useContext:ui,useEffect:_a,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,va(4,36,xa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return va(4,36,e,t)},useMemo:function(e,t){var n=pa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Oa.bind(null,qi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},pa().memoizedState=e},useState:ha,useDebugValue:Ea,useResponder:Xi,useDeferredValue:function(e,t){var n=ha(e),r=n[0],o=n[1];return _a((function(){i.unstable_next((function(){var n=Gi.suspense;Gi.suspense=void 0===t?null:t;try{o(e)}finally{Gi.suspense=n}}))}),[e,t]),r},useTransition:function(e){var t=ha(!1),n=t[0],r=t[1];return[Sa((function(t){r(!0),i.unstable_next((function(){var n=Gi.suspense;Gi.suspense=void 0===e?null:e;try{r(!1),t()}finally{Gi.suspense=n}}))}),[e,n]),n]}},Ca={readContext:ui,useCallback:Ta,useContext:ui,useEffect:ka,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wa(4,36,xa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(4,36,e,t)},useMemo:function(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ca(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:ba,useRef:function(){return da().memoizedState},useState:ga,useDebugValue:Ea,useResponder:Xi,useDeferredValue:function(e,t){var n=ga(),r=n[0],o=n[1];return ka((function(){i.unstable_next((function(){var n=Gi.suspense;Gi.suspense=void 0===t?null:t;try{o(e)}finally{Gi.suspense=n}}))}),[e,t]),r},useTransition:function(e){var t=ga(),n=t[0],r=t[1];return[Ta((function(t){r(!0),i.unstable_next((function(){var n=Gi.suspense;Gi.suspense=void 0===e?null:e;try{r(!1),t()}finally{Gi.suspense=n}}))}),[e,n]),n]}},ja=null,Na=null,Ra=!1;function Ia(e,t){var n=Cu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Fa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Da(e){if(Ra){var t=Na;if(t){var n=t;if(!Fa(e,t)){if(!(t=nr(n.nextSibling))||!Fa(e,t))return e.effectTag=-1025&e.effectTag|2,Ra=!1,void(ja=e);Ia(ja,n)}ja=e,Na=nr(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ra=!1,ja=e}}function La(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ja=e}function Ma(e){if(e!==ja)return!1;if(!Ra)return La(e),Ra=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Jn(t,e.memoizedProps))for(t=Na;t;)Ia(e,t),t=nr(t.nextSibling);if(La(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Na=nr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Na=null}}else Na=ja?nr(e.stateNode.nextSibling):null;return!0}function Aa(){Na=ja=null,Ra=!1}var Ba=R.ReactCurrentOwner,Ua=!1;function Va(e,t,n,r){t.child=null===e?Ii(t,null,n,r):Ri(t,e.child,n,r)}function Ha(e,t,n,r,o){n=n.render;var i=t.ref;return li(t,o),r=sa(e,t,n,r,i,o),null===e||Ua?(t.effectTag|=1,Va(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),il(e,t,o))}function Wa(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||ju(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ru(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,$a(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Zr)(o,r)&&e.ref===t.ref)?il(e,t,i):(t.effectTag|=1,(e=Nu(a,r)).ref=t.ref,e.return=t,t.child=e)}function $a(e,t,n,r,o,i){return null!==e&&Zr(e.memoizedProps,r)&&e.ref===t.ref&&(Ua=!1,o<i)?il(e,t,i):Ka(e,t,n,r,i)}function Xa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ka(e,t,n,r,o){var i=go(n)?bo:po.current;return i=ho(t,i),li(t,o),n=sa(e,t,n,r,i,o),null===e||Ua?(t.effectTag|=1,Va(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),il(e,t,o))}function Ga(e,t,n,r,o){if(go(n)){var i=!0;ko(t)}else i=!1;if(li(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Ti(t,n,r),Pi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=ui(c):c=ho(t,c=go(n)?bo:po.current);var s=n.getDerivedStateFromProps,f="function"==typeof s||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==c)&&Oi(t,a,r,c),ci=!1;var p=t.memoizedState;u=a.state=p;var d=t.updateQueue;null!==d&&(yi(t,d,r,a,o),u=t.memoizedState),l!==r||p!==u||mo.current||ci?("function"==typeof s&&(xi(t,n,s,r),u=t.memoizedState),(l=ci||Si(t,n,l,r,p,u,c))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,l=t.memoizedProps,a.props=t.type===t.elementType?l:Zo(t.type,l),u=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=ui(c):c=ho(t,c=go(n)?bo:po.current),(f="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==c)&&Oi(t,a,r,c),ci=!1,u=t.memoizedState,p=a.state=u,null!==(d=t.updateQueue)&&(yi(t,d,r,a,o),p=t.memoizedState),l!==r||u!==p||mo.current||ci?("function"==typeof s&&(xi(t,n,s,r),p=t.memoizedState),(s=ci||Si(t,n,l,r,u,p,c))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Qa(e,t,n,r,i,o)}function Qa(e,t,n,r,o,i){Xa(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&xo(t,n,!1),il(e,t,i);r=t.stateNode,Ba.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Ri(t,e.child,null,i),t.child=Ri(t,null,l,i)):Va(e,t,l,i),t.memoizedState=r.state,o&&xo(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?wo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wo(0,t.context,!1),Bi(e,t.containerInfo)}var Ya,Za,Ja,el={dehydrated:null,retryTime:0};function tl(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Wi.current,l=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),so(Wi,1&a),null===e){if(void 0!==i.fallback&&Da(t),l){if(l=i.fallback,(i=Iu(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Iu(l,o,n,null)).return=t,i.sibling=n,t.memoizedState=el,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=Ii(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,l){if(i=i.fallback,(n=Nu(e,e.pendingProps)).return=t,0==(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=l;null!==l;)l.return=n,l=l.sibling;return(o=Nu(o,i,o.expirationTime)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=el,t.child=n,o}return n=Ri(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,l){if(l=i.fallback,(i=Iu(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Iu(l,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=el,t.child=i,n}return t.memoizedState=null,t.child=Ri(t,e,i.children,n)}function nl(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ai(e.return,t)}function rl(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function ol(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Va(e,t,r.children,n),0!=(2&(r=Wi.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&nl(e,n);else if(19===e.tag)nl(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(so(Wi,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===$i(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rl(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===$i(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rl(t,!0,n,null,i,t.lastEffect);break;case"together":rl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function il(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&pu(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Nu(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Nu(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function al(e){e.effectTag|=4}function ll(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ul(e){switch(e.tag){case 1:go(e.type)&&yo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ui(),vo(),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Hi(e),null;case 13:return co(Wi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return co(Wi),null;case 4:return Ui(),null;case 10:return ii(e),null;default:return null}}function cl(e,t){return{value:e,source:t,stack:Z(t)}}Ya=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Za=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var l,u,c=t.stateNode;switch(Ai(Di.current),e=null,n){case"input":a=Te(c,a),r=Te(c,r),e=[];break;case"option":a=Ne(c,a),r=Ne(c,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Ie(c,a),r=Ie(c,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(c.onclick=Wn)}for(l in Un(n,r),n=null,a)if(!r.hasOwnProperty(l)&&a.hasOwnProperty(l)&&null!=a[l])if("style"===l)for(u in c=a[l])c.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(d.hasOwnProperty(l)?e||(e=[]):(e=e||[]).push(l,null));for(l in r){var s=r[l];if(c=null!=a?a[l]:void 0,r.hasOwnProperty(l)&&s!==c&&(null!=s||null!=c))if("style"===l)if(c){for(u in c)!c.hasOwnProperty(u)||s&&s.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in s)s.hasOwnProperty(u)&&c[u]!==s[u]&&(n||(n={}),n[u]=s[u])}else n||(e||(e=[]),e.push(l,n)),n=s;else"dangerouslySetInnerHTML"===l?(s=s?s.__html:void 0,c=c?c.__html:void 0,null!=s&&c!==s&&(e=e||[]).push(l,""+s)):"children"===l?c===s||"string"!=typeof s&&"number"!=typeof s||(e=e||[]).push(l,""+s):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(d.hasOwnProperty(l)?(null!=s&&Hn(i,l),e||c===s||(e=[])):(e=e||[]).push(l,s))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&al(t)}},Ja=function(e,t,n,r){n!==r&&al(t)};var sl="function"==typeof WeakSet?WeakSet:Set;function fl(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=Z(n)),null!==n&&Y(n.type),t=t.value,null!==e&&1===e.tag&&Y(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function pl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Eu(e,t)}else t.current=null}function dl(e,t){switch(t.tag){case 0:case 11:case 15:ml(2,0,t);break;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Zo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break;case 3:case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}function ml(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if(0!=(r.tag&e)){var o=r.destroy;r.destroy=void 0,void 0!==o&&o()}0!=(r.tag&t)&&(o=r.create,r.destroy=o()),r=r.next}while(r!==n)}}function bl(e,t,n){switch("function"==typeof Pu&&Pu(t),t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;$o(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){Eu(o,e)}}e=e.next}while(e!==r)}))}break;case 1:pl(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Eu(e,t)}}(t,n);break;case 5:pl(t);break;case 4:vl(e,t,n)}}function hl(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,null!==t&&hl(t)}function gl(e){return 5===e.tag||3===e.tag||4===e.tag}function yl(e){e:{for(var t=e.return;null!==t;){if(gl(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(We(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){var i=5===o.tag||6===o.tag;if(i){var l=i?o.stateNode:o.stateNode.instance;if(n)if(r){var u=l;l=n,8===(i=t).nodeType?i.parentNode.insertBefore(u,l):i.insertBefore(u,l)}else t.insertBefore(l,n);else r?(8===(u=t).nodeType?(i=u.parentNode).insertBefore(l,u):(i=u).appendChild(l),null!=(u=u._reactRootContainer)||null!==i.onclick||(i.onclick=Wn)):t.appendChild(l)}else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function vl(e,t,n){for(var r,o,i=t,l=!1;;){if(!l){l=i.return;e:for(;;){if(null===l)throw Error(a(160));switch(r=l.stateNode,l.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}l=l.return}l=!0}if(5===i.tag||6===i.tag){e:for(var u=e,c=i,s=n,f=c;;)if(bl(u,f,s),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break;for(;null===f.sibling;){if(null===f.return||f.return===c)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}o?(u=r,c=i.stateNode,8===u.nodeType?u.parentNode.removeChild(c):u.removeChild(c)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(bl(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(l=!1)}i.sibling.return=i.return,i=i.sibling}}function wl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:ml(4,8,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[ar]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Pe(n,r),Vn(e,o),t=Vn(e,r),o=0;o<i.length;o+=2){var l=i[o],u=i[o+1];"style"===l?An(n,u):"dangerouslySetInnerHTML"===l?He(n,u):"children"===l?We(n,u):ke(n,l,u,t)}switch(e){case"input":ze(n,r);break;case"textarea":De(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Re(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Re(n,!!r.multiple,r.defaultValue,!0):Re(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw Error(a(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:(t=t.stateNode).hydrate&&(t.hydrate=!1,Tt(t.containerInfo));break;case 12:break;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Bl=Vo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=Mn("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}_l(t);break;case 19:_l(t);break;case 17:case 20:case 21:break;default:throw Error(a(163))}}function _l(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new sl),t.forEach((function(t){var r=Tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var kl="function"==typeof WeakMap?WeakMap:Map;function xl(e,t,n){(n=pi(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vl||(Vl=!0,Hl=r),fl(e,t)},n}function El(e,t,n){(n=pi(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return fl(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this),fl(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Sl,Tl=Math.ceil,Ol=R.ReactCurrentDispatcher,Pl=R.ReactCurrentOwner,zl=0,Cl=null,jl=null,Nl=0,Rl=0,Il=null,Fl=1073741823,Dl=1073741823,Ll=null,Ml=0,Al=!1,Bl=0,Ul=null,Vl=!1,Hl=null,Wl=null,$l=!1,Xl=null,Kl=90,Gl=null,Ql=0,ql=null,Yl=0;function Zl(){return 0!=(48&zl)?1073741821-(Vo()/10|0):0!==Yl?Yl:Yl=1073741821-(Vo()/10|0)}function Jl(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Ho();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&zl))return Nl;if(null!==n)e=Yo(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Yo(e,150,100);break;case 97:case 96:e=Yo(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Cl&&e===Nl&&--e,e}function eu(e,t){if(50<Ql)throw Ql=0,ql=null,Error(a(185));if(null!==(e=tu(e,t))){var n=Ho();1073741823===t?0!=(8&zl)&&0==(48&zl)?iu(e):(ru(e),0===zl&&Go()):ru(e),0==(4&zl)||98!==n&&99!==n||(null===Gl?Gl=new Map([[e,t]]):(void 0===(n=Gl.get(e))||n>t)&&Gl.set(e,t))}}function tu(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(Cl===o&&(pu(t),4===Rl&&Au(o,Nl)),Bu(o,t)),o}function nu(e){var t=e.lastExpiredTime;return 0!==t?t:Mu(e,t=e.firstPendingTime)?(t=e.lastPingedTime)>(e=e.nextKnownPendingLevel)?t:e:t}function ru(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Ko(iu.bind(null,e));else{var t=nu(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Zl();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Do&&To(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Ko(iu.bind(null,e)):Xo(r,ou.bind(null,e),{timeout:10*(1073741821-t)-Vo()}),e.callbackNode=t}}}function ou(e,t){if(Yl=0,t)return Uu(e,t=Zl()),ru(e),null;var n=nu(e);if(0!==n){if(t=e.callbackNode,0!=(48&zl))throw Error(a(327));if(_u(),e===Cl&&n===Nl||uu(e,n),null!==jl){var r=zl;zl|=16;for(var o=su();;)try{mu();break}catch(t){cu(e,t)}if(ri(),zl=r,Ol.current=o,1===Rl)throw t=Il,uu(e,n),Au(e,n),ru(e),t;if(null===jl)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Rl,Cl=null,r){case 0:case 1:throw Error(a(345));case 2:Uu(e,2<n?2:n);break;case 3:if(Au(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=gu(o)),1073741823===Fl&&10<(o=Bl+500-Vo())){if(Al){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,uu(e,n);break}}if(0!==(i=nu(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=er(yu.bind(null,e),o);break}yu(e);break;case 4:if(Au(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=gu(o)),Al&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,uu(e,n);break}if(0!==(o=nu(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Dl?r=10*(1073741821-Dl)-Vo():1073741823===Fl?r=0:(r=10*(1073741821-Fl)-5e3,0>(r=(o=Vo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Tl(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=er(yu.bind(null,e),r);break}yu(e);break;case 5:if(1073741823!==Fl&&null!==Ll){i=Fl;var l=Ll;if(0>=(r=0|l.busyMinDurationMs)?r=0:(o=0|l.busyDelayMs,r=(i=Vo()-(10*(1073741821-i)-(0|l.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Au(e,n),e.timeoutHandle=er(yu.bind(null,e),r);break}}yu(e);break;default:throw Error(a(329))}if(ru(e),e.callbackNode===t)return ou.bind(null,e)}}return null}function iu(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,e.finishedExpirationTime===t)yu(e);else{if(0!=(48&zl))throw Error(a(327));if(_u(),e===Cl&&t===Nl||uu(e,t),null!==jl){var n=zl;zl|=16;for(var r=su();;)try{du();break}catch(t){cu(e,t)}if(ri(),zl=n,Ol.current=r,1===Rl)throw n=Il,uu(e,t),Au(e,t),ru(e),n;if(null!==jl)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Cl=null,yu(e),ru(e)}}return null}function au(e,t){var n=zl;zl|=1;try{return e(t)}finally{0===(zl=n)&&Go()}}function lu(e,t){var n=zl;zl&=-2,zl|=8;try{return e(t)}finally{0===(zl=n)&&Go()}}function uu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,tr(n)),null!==jl)for(n=jl.return;null!==n;){var r=n;switch(r.tag){case 1:var o=r.type.childContextTypes;null!=o&&yo();break;case 3:Ui(),vo();break;case 5:Hi(r);break;case 4:Ui();break;case 13:case 19:co(Wi);break;case 10:ii(r)}n=n.return}Cl=e,jl=Nu(e.current,null),Nl=t,Rl=0,Il=null,Dl=Fl=1073741823,Ll=null,Ml=0,Al=!1}function cu(e,t){for(;;){try{if(ri(),fa(),null===jl||null===jl.return)return Rl=1,Il=t,null;e:{var n=e,r=jl.return,o=jl,i=t;if(t=Nl,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,null!==i&&"object"==typeof i&&"function"==typeof i.then){var a=i,l=0!=(1&Wi.current),u=r;do{var c;if(c=13===u.tag){var s=u.memoizedState;if(null!==s)c=null!==s.dehydrated;else{var f=u.memoizedProps;c=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!l)}}if(c){var p=u.updateQueue;if(null===p){var d=new Set;d.add(a),u.updateQueue=d}else p.add(a);if(0==(2&u.mode)){if(u.effectTag|=64,o.effectTag&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var m=pi(1073741823,null);m.tag=2,mi(o,m)}o.expirationTime=1073741823;break e}i=void 0,o=t;var b=n.pingCache;if(null===b?(b=n.pingCache=new kl,i=new Set,b.set(a,i)):void 0===(i=b.get(a))&&(i=new Set,b.set(a,i)),!i.has(o)){i.add(o);var h=Su.bind(null,n,a,o);a.then(h,h)}u.effectTag|=4096,u.expirationTime=t;break e}u=u.return}while(null!==u);i=Error((Y(o.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+Z(o))}5!==Rl&&(Rl=2),i=cl(i,o),u=r;do{switch(u.tag){case 3:a=i,u.effectTag|=4096,u.expirationTime=t,bi(u,xl(u,a,t));break e;case 1:a=i;var g=u.type,y=u.stateNode;if(0==(64&u.effectTag)&&("function"==typeof g.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Wl||!Wl.has(y)))){u.effectTag|=4096,u.expirationTime=t,bi(u,El(u,a,t));break e}}u=u.return}while(null!==u)}jl=hu(jl)}catch(e){t=e;continue}break}}function su(){var e=Ol.current;return Ol.current=Pa,null===e?Pa:e}function fu(e,t){e<Fl&&2<e&&(Fl=e),null!==t&&e<Dl&&2<e&&(Dl=e,Ll=t)}function pu(e){e>Ml&&(Ml=e)}function du(){for(;null!==jl;)jl=bu(jl)}function mu(){for(;null!==jl&&!Oo();)jl=bu(jl)}function bu(e){var t=Sl(e.alternate,e,Nl);return e.memoizedProps=e.pendingProps,null===t&&(t=hu(e)),Pl.current=null,t}function hu(e){jl=e;do{var t=jl.alternate;if(e=jl.return,0==(2048&jl.effectTag)){e:{var n=t,r=Nl,i=(t=jl).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:go(t.type)&&yo();break;case 3:Ui(),vo(),(i=t.stateNode).pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===n||null===n.child)&&Ma(t)&&al(t);break;case 5:Hi(t),r=Ai(Mi.current);var l=t.type;if(null!==n&&null!=t.stateNode)Za(n,t,l,i,r),n.ref!==t.ref&&(t.effectTag|=128);else if(i){var u=Ai(Di.current);if(Ma(t)){var c=(i=t).stateNode;n=i.type;var s=i.memoizedProps,f=r;switch(c[ir]=i,c[ar]=s,l=void 0,r=c,n){case"iframe":case"object":case"embed":Sn("load",r);break;case"video":case"audio":for(c=0;c<et.length;c++)Sn(et[c],r);break;case"source":Sn("error",r);break;case"img":case"image":case"link":Sn("error",r),Sn("load",r);break;case"form":Sn("reset",r),Sn("submit",r);break;case"details":Sn("toggle",r);break;case"input":Oe(r,s),Sn("invalid",r),Hn(f,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Sn("invalid",r),Hn(f,"onChange");break;case"textarea":Fe(r,s),Sn("invalid",r),Hn(f,"onChange")}for(l in Un(n,s),c=null,s)s.hasOwnProperty(l)&&(u=s[l],"children"===l?"string"==typeof u?r.textContent!==u&&(c=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(c=["children",""+u]):d.hasOwnProperty(l)&&null!=u&&Hn(f,l));switch(n){case"input":Ee(r),Ce(r,s,!0);break;case"textarea":Ee(r),Le(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Wn)}l=c,i.updateQueue=l,(i=null!==l)&&al(t)}else{n=t,f=l,s=i,c=9===r.nodeType?r:r.ownerDocument,u===Me&&(u=Be(f)),u===Me?"script"===f?((s=c.createElement("div")).innerHTML="<script><\/script>",c=s.removeChild(s.firstChild)):"string"==typeof s.is?c=c.createElement(f,{is:s.is}):(c=c.createElement(f),"select"===f&&(f=c,s.multiple?f.multiple=!0:s.size&&(f.size=s.size))):c=c.createElementNS(u,f),(s=c)[ir]=n,s[ar]=i,Ya(s,t),t.stateNode=s;var p=r,m=Vn(f=l,n=i);switch(f){case"iframe":case"object":case"embed":Sn("load",s),r=n;break;case"video":case"audio":for(r=0;r<et.length;r++)Sn(et[r],s);r=n;break;case"source":Sn("error",s),r=n;break;case"img":case"image":case"link":Sn("error",s),Sn("load",s),r=n;break;case"form":Sn("reset",s),Sn("submit",s),r=n;break;case"details":Sn("toggle",s),r=n;break;case"input":Oe(s,n),r=Te(s,n),Sn("invalid",s),Hn(p,"onChange");break;case"option":r=Ne(s,n);break;case"select":s._wrapperState={wasMultiple:!!n.multiple},r=o({},n,{value:void 0}),Sn("invalid",s),Hn(p,"onChange");break;case"textarea":Fe(s,n),r=Ie(s,n),Sn("invalid",s),Hn(p,"onChange");break;default:r=n}Un(f,r),c=void 0,u=f;var b=s,h=r;for(c in h)if(h.hasOwnProperty(c)){var g=h[c];"style"===c?An(b,g):"dangerouslySetInnerHTML"===c?null!=(g=g?g.__html:void 0)&&He(b,g):"children"===c?"string"==typeof g?("textarea"!==u||""!==g)&&We(b,g):"number"==typeof g&&We(b,""+g):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(d.hasOwnProperty(c)?null!=g&&Hn(p,c):null!=g&&ke(b,c,g,m))}switch(f){case"input":Ee(s),Ce(s,n,!1);break;case"textarea":Ee(s),Le(s);break;case"option":null!=n.value&&s.setAttribute("value",""+_e(n.value));break;case"select":(r=s).multiple=!!n.multiple,null!=(s=n.value)?Re(r,!!n.multiple,s,!1):null!=n.defaultValue&&Re(r,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof r.onClick&&(s.onclick=Wn)}(i=Zn(l,i))&&al(t)}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw Error(a(166));break;case 6:if(n&&null!=t.stateNode)Ja(0,t,n.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(a(166));r=Ai(Mi.current),Ai(Di.current),Ma(t)?(l=(i=t).stateNode,r=i.memoizedProps,l[ir]=i,(i=l.nodeValue!==r)&&al(t)):(l=t,(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[ir]=l,t.stateNode=i)}break;case 11:break;case 13:if(co(Wi),i=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=r;break e}i=null!==i,l=!1,null===n?void 0!==t.memoizedProps.fallback&&Ma(t):(l=null!==(r=n.memoizedState),i||null===r||null!==(r=n.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=r,r.nextEffect=s):(t.firstEffect=t.lastEffect=r,r.nextEffect=null),r.effectTag=8)),i&&!l&&0!=(2&t.mode)&&(null===n&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Wi.current)?0===Rl&&(Rl=3):(0!==Rl&&3!==Rl||(Rl=4),0!==Ml&&null!==Cl&&(Au(Cl,Nl),Bu(Cl,Ml)))),(i||l)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:Ui();break;case 10:ii(t);break;case 9:case 14:break;case 17:go(t.type)&&yo();break;case 19:if(co(Wi),null===(i=t.memoizedState))break;if(l=0!=(64&t.effectTag),null===(s=i.rendering)){if(l)ll(i,!1);else if(0!==Rl||null!==n&&0!=(64&n.effectTag))for(n=t.child;null!==n;){if(null!==(s=$i(n))){for(t.effectTag|=64,ll(i,!1),null!==(l=s.updateQueue)&&(t.updateQueue=l,t.effectTag|=4),null===i.lastEffect&&(t.firstEffect=null),t.lastEffect=i.lastEffect,i=r,l=t.child;null!==l;)n=i,(r=l).effectTag&=2,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null,null===(s=r.alternate)?(r.childExpirationTime=0,r.expirationTime=n,r.child=null,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null):(r.childExpirationTime=s.childExpirationTime,r.expirationTime=s.expirationTime,r.child=s.child,r.memoizedProps=s.memoizedProps,r.memoizedState=s.memoizedState,r.updateQueue=s.updateQueue,n=s.dependencies,r.dependencies=null===n?null:{expirationTime:n.expirationTime,firstContext:n.firstContext,responders:n.responders}),l=l.sibling;so(Wi,1&Wi.current|2),t=t.child;break e}n=n.sibling}}else{if(!l)if(null!==(n=$i(s))){if(t.effectTag|=64,l=!0,null!==(r=n.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),ll(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate){null!==(t=t.lastEffect=i.lastEffect)&&(t.nextEffect=null);break}}else Vo()>i.tailExpiration&&1<r&&(t.effectTag|=64,l=!0,ll(i,!1),t.expirationTime=t.childExpirationTime=r-1);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=i.last)?r.sibling=s:t.child=s,i.last=s)}if(null!==i.tail){0===i.tailExpiration&&(i.tailExpiration=Vo()+500),r=i.tail,i.rendering=r,i.tail=r.sibling,i.lastEffect=t.lastEffect,r.sibling=null,i=Wi.current,so(Wi,i=l?1&i|2:1&i),t=r;break e}break;case 20:case 21:break;default:throw Error(a(156,t.tag))}t=null}if(i=jl,1===Nl||1!==i.childExpirationTime){for(l=0,r=i.child;null!==r;)(n=r.expirationTime)>l&&(l=n),(s=r.childExpirationTime)>l&&(l=s),r=r.sibling;i.childExpirationTime=l}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=jl.firstEffect),null!==jl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=jl.firstEffect),e.lastEffect=jl.lastEffect),1<jl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=jl:e.firstEffect=jl,e.lastEffect=jl))}else{if(null!==(t=ul(jl)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=jl.sibling))return t;jl=e}while(null!==jl);return 0===Rl&&(Rl=5),null}function gu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function yu(e){var t=Ho();return $o(99,vu.bind(null,e,t)),null}function vu(e,t){do{_u()}while(null!==Xl);if(0!=(48&zl))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=gu(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Cl&&(jl=Cl=null,Nl=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=zl;zl|=32,Pl.current=null,qn=En;var l=Gn();if(Qn(l)){if("selectionStart"in l)var u={start:l.selectionStart,end:l.selectionEnd};else e:{var c=(u=(u=l.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(c&&0!==c.rangeCount){u=c.anchorNode;var s=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{u.nodeType,f.nodeType}catch(e){u=null;break e}var p=0,d=-1,m=-1,b=0,h=0,g=l,y=null;t:for(;;){for(var v;g!==u||0!==s&&3!==g.nodeType||(d=p+s),g!==f||0!==c&&3!==g.nodeType||(m=p+c),3===g.nodeType&&(p+=g.nodeValue.length),null!==(v=g.firstChild);)y=g,g=v;for(;;){if(g===l)break t;if(y===u&&++b===s&&(d=p),y===f&&++h===c&&(m=p),null!==(v=g.nextSibling))break;y=(g=y).parentNode}g=v}u=-1===d||-1===m?null:{start:d,end:m}}else u=null}u=u||{start:0,end:0}}else u=null;Yn={focusedElem:l,selectionRange:u},En=!1,Ul=o;do{try{wu()}catch(e){if(null===Ul)throw Error(a(330));Eu(Ul,e),Ul=Ul.nextEffect}}while(null!==Ul);Ul=o;do{try{for(l=e,u=t;null!==Ul;){var w=Ul.effectTag;if(16&w&&We(Ul.stateNode,""),128&w){var _=Ul.alternate;if(null!==_){var k=_.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(1038&w){case 2:yl(Ul),Ul.effectTag&=-3;break;case 6:yl(Ul),Ul.effectTag&=-3,wl(Ul.alternate,Ul);break;case 1024:Ul.effectTag&=-1025;break;case 1028:Ul.effectTag&=-1025,wl(Ul.alternate,Ul);break;case 4:wl(Ul.alternate,Ul);break;case 8:vl(l,s=Ul,u),hl(s)}Ul=Ul.nextEffect}}catch(e){if(null===Ul)throw Error(a(330));Eu(Ul,e),Ul=Ul.nextEffect}}while(null!==Ul);if(k=Yn,_=Gn(),w=k.focusedElem,u=k.selectionRange,_!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==u&&Qn(w)&&(_=u.start,void 0===(k=u.end)&&(k=_),"selectionStart"in w?(w.selectionStart=_,w.selectionEnd=Math.min(k,w.value.length)):(k=(_=w.ownerDocument||document)&&_.defaultView||window).getSelection&&(k=k.getSelection(),s=w.textContent.length,l=Math.min(u.start,s),u=void 0===u.end?l:Math.min(u.end,s),!k.extend&&l>u&&(s=u,u=l,l=s),s=Kn(w,l),f=Kn(w,u),s&&f&&(1!==k.rangeCount||k.anchorNode!==s.node||k.anchorOffset!==s.offset||k.focusNode!==f.node||k.focusOffset!==f.offset)&&((_=_.createRange()).setStart(s.node,s.offset),k.removeAllRanges(),l>u?(k.addRange(_),k.extend(f.node,f.offset)):(_.setEnd(f.node,f.offset),k.addRange(_))))),_=[];for(k=w;k=k.parentNode;)1===k.nodeType&&_.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<_.length;w++)(k=_[w]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Yn=null,En=!!qn,qn=null,e.current=n,Ul=o;do{try{for(w=r;null!==Ul;){var x=Ul.effectTag;if(36&x){var E=Ul.alternate;switch(k=w,(_=Ul).tag){case 0:case 11:case 15:ml(16,32,_);break;case 1:var S=_.stateNode;if(4&_.effectTag)if(null===E)S.componentDidMount();else{var T=_.elementType===_.type?E.memoizedProps:Zo(_.type,E.memoizedProps);S.componentDidUpdate(T,E.memoizedState,S.__reactInternalSnapshotBeforeUpdate)}var O=_.updateQueue;null!==O&&vi(0,O,S);break;case 3:var P=_.updateQueue;if(null!==P){if(l=null,null!==_.child)switch(_.child.tag){case 5:l=_.child.stateNode;break;case 1:l=_.child.stateNode}vi(0,P,l)}break;case 5:var z=_.stateNode;null===E&&4&_.effectTag&&Zn(_.type,_.memoizedProps)&&z.focus();break;case 6:case 4:case 12:break;case 13:if(null===_.memoizedState){var C=_.alternate;if(null!==C){var j=C.memoizedState;if(null!==j){var N=j.dehydrated;null!==N&&Tt(N)}}}break;case 19:case 17:case 20:case 21:break;default:throw Error(a(163))}}if(128&x){_=void 0;var R=Ul.ref;if(null!==R){var I=Ul.stateNode;switch(Ul.tag){case 5:_=I;break;default:_=I}"function"==typeof R?R(_):R.current=_}}Ul=Ul.nextEffect}}catch(e){if(null===Ul)throw Error(a(330));Eu(Ul,e),Ul=Ul.nextEffect}}while(null!==Ul);Ul=null,Lo(),zl=i}else e.current=n;if($l)$l=!1,Xl=e,Kl=t;else for(Ul=o;null!==Ul;)t=Ul.nextEffect,Ul.nextEffect=null,Ul=t;if(0===(t=e.firstPendingTime)&&(Wl=null),1073741823===t?e===ql?Ql++:(Ql=0,ql=e):Ql=0,"function"==typeof Ou&&Ou(n.stateNode,r),ru(e),Vl)throw Vl=!1,e=Hl,Hl=null,e;return 0!=(8&zl)?null:(Go(),null)}function wu(){for(;null!==Ul;){var e=Ul.effectTag;0!=(256&e)&&dl(Ul.alternate,Ul),0==(512&e)||$l||($l=!0,Xo(97,(function(){return _u(),null}))),Ul=Ul.nextEffect}}function _u(){if(90!==Kl){var e=97<Kl?97:Kl;return Kl=90,$o(e,ku)}}function ku(){if(null===Xl)return!1;var e=Xl;if(Xl=null,0!=(48&zl))throw Error(a(331));var t=zl;for(zl|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:ml(128,0,n),ml(0,64,n)}}catch(t){if(null===e)throw Error(a(330));Eu(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return zl=t,Go(),!0}function xu(e,t,n){mi(e,t=xl(e,t=cl(n,t),1073741823)),null!==(e=tu(e,1073741823))&&ru(e)}function Eu(e,t){if(3===e.tag)xu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){xu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){mi(n,e=El(n,e=cl(t,e),1073741823)),null!==(n=tu(n,1073741823))&&ru(n);break}}n=n.return}}function Su(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Cl===e&&Nl===n?4===Rl||3===Rl&&1073741823===Fl&&Vo()-Bl<500?uu(e,Nl):Al=!0:Mu(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),ru(e)))}function Tu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Jl(t=Zl(),e,null)),null!==(e=tu(e,t))&&ru(e)}Sl=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||mo.current)Ua=!0;else{if(r<n){switch(Ua=!1,t.tag){case 3:qa(t),Aa();break;case 5:if(Vi(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:go(t.type)&&ko(t);break;case 4:Bi(t,t.stateNode.containerInfo);break;case 10:oi(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?tl(e,t,n):(so(Wi,1&Wi.current),null!==(t=il(e,t,n))?t.sibling:null);so(Wi,1&Wi.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return ol(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),so(Wi,Wi.current),!r)return null}return il(e,t,n)}Ua=!1}}else Ua=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=ho(t,po.current),li(t,n),o=sa(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,fa(),go(r)){var i=!0;ko(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var l=r.getDerivedStateFromProps;"function"==typeof l&&xi(t,r,l,e),o.updater=Ei,t.stateNode=o,o._reactInternalFiber=t,Pi(t,r,e,n),t=Qa(null,t,r,!0,i,n)}else t.tag=0,Va(null,t,o,n),t=t.child;return t;case 16:if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return ju(e)?1:0;if(null!=e){if((e=e.$$typeof)===W)return 11;if(e===K)return 14}return 2}(o),e=Zo(o,e),i){case 0:t=Ka(null,t,o,e,n);break;case 1:t=Ga(null,t,o,e,n);break;case 11:t=Ha(null,t,o,e,n);break;case 14:t=Wa(null,t,o,Zo(o.type,e),r,n);break;default:throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ka(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ga(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 3:if(qa(t),null===(r=t.updateQueue))throw Error(a(282));if(o=null!==(o=t.memoizedState)?o.element:null,yi(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===o)Aa(),t=il(e,t,n);else{if((o=t.stateNode.hydrate)&&(Na=nr(t.stateNode.containerInfo.firstChild),ja=t,o=Ra=!0),o)for(n=Ii(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Va(e,t,r,n),Aa();t=t.child}return t;case 5:return Vi(t),null===e&&Da(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,Jn(r,o)?l=null:null!==i&&Jn(r,i)&&(t.effectTag|=16),Xa(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Va(e,t,l,n),t=t.child),t;case 6:return null===e&&Da(t),null;case 13:return tl(e,t,n);case 4:return Bi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ri(t,null,r,n):Va(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ha(e,t,r,o=t.elementType===r?o:Zo(r,o),n);case 7:return Va(e,t,t.pendingProps,n),t.child;case 8:case 12:return Va(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,oi(t,i=o.value),null!==l){var u=l.value;if(0===(i=qr(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(l.children===o.children&&!mo.current){t=il(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){l=u.child;for(var s=c.firstContext;null!==s;){if(s.context===r&&0!=(s.observedBits&i)){1===u.tag&&((s=pi(n,null)).tag=2,mi(u,s)),u.expirationTime<n&&(u.expirationTime=n),null!==(s=u.alternate)&&s.expirationTime<n&&(s.expirationTime=n),ai(u.return,n),c.expirationTime<n&&(c.expirationTime=n);break}s=s.next}}else l=10===u.tag&&u.type===t.type?null:u.child;if(null!==l)l.return=u;else for(l=u;null!==l;){if(l===t){l=null;break}if(null!==(u=l.sibling)){u.return=l.return,l=u;break}l=l.return}u=l}}Va(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,li(t,n),r=r(o=ui(o,i.unstable_observedBits)),t.effectTag|=1,Va(e,t,r,n),t.child;case 14:return i=Zo(o=t.type,t.pendingProps),Wa(e,t,o,i=Zo(o.type,i),r,n);case 15:return $a(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Zo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,go(r)?(e=!0,ko(t)):e=!1,li(t,n),Ti(t,r,o),Pi(t,r,o,n),Qa(null,t,r,!0,e,n);case 19:return ol(e,t,n)}throw Error(a(156,t.tag))};var Ou=null,Pu=null;function zu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Cu(e,t,n,r){return new zu(e,t,n,r)}function ju(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nu(e,t){var n=e.alternate;return null===n?((n=Cu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ru(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)ju(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case M:return Iu(n.children,o,i,t);case H:l=8,o|=7;break;case A:l=8,o|=1;break;case B:return(e=Cu(12,n,t,8|o)).elementType=B,e.type=B,e.expirationTime=i,e;case $:return(e=Cu(13,n,t,o)).type=$,e.elementType=$,e.expirationTime=i,e;case X:return(e=Cu(19,n,t,o)).elementType=X,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case U:l=10;break e;case V:l=9;break e;case W:l=11;break e;case K:l=14;break e;case G:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Cu(l,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Iu(e,t,n,r){return(e=Cu(7,e,r,t)).expirationTime=n,e}function Fu(e,t,n){return(e=Cu(6,e,null,t)).expirationTime=n,e}function Du(e,t,n){return(t=Cu(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lu(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Mu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Au(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Bu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Uu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Vu(e,t,n,r){var o=t.current,i=Zl(),l=_i.suspense;i=Jl(i,o,l);e:if(n){t:{if(tt(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(go(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var c=n.type;if(go(c)){n=_o(n,c,u);break e}}n=u}else n=fo;return null===t.context?t.context=n:t.pendingContext=n,(t=pi(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),mi(o,t),eu(o,i),i}function Hu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Wu(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function $u(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}function Xu(e,t,n){var r=new Lu(e,t,n=null!=n&&!0===n.hydrate),o=Cu(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,e[lr]=r.current,n&&0!==t&&function(e){var t=In(e);ht.forEach((function(n){Fn(n,e,t)})),gt.forEach((function(n){Fn(n,e,t)}))}(9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Gu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var l=o;o=function(){var e=Hu(a);l.call(e)}}Vu(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Xu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var u=o;o=function(){var e=Hu(a);u.call(e)}}lu((function(){Vu(t,a,e,o)}))}return Hu(a)}function Qu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:L,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function qu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ku(t))throw Error(a(200));return Qu(e,t,null,n)}Xu.prototype.render=function(e,t){Vu(e,this._internalRoot,null,void 0===t?null:t)},Xu.prototype.unmount=function(e){var t=this._internalRoot,n=void 0===e?null:e,r=t.containerInfo;Vu(null,t,null,(function(){r[lr]=null,null!==n&&n()}))},it=function(e){if(13===e.tag){var t=Yo(Zl(),150,100);eu(e,t),$u(e,t)}},at=function(e){if(13===e.tag){Zl();var t=qo++;eu(e,t),$u(e,t)}},lt=function(e){if(13===e.tag){var t=Zl();eu(e,t=Jl(t,e,null)),$u(e,t)}},ee=function(e,t,n){switch(t){case"input":if(ze(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=fr(r);if(!o)throw Error(a(90));Se(r),ze(r,o)}}}break;case"textarea":De(e,n);break;case"select":null!=(t=n.value)&&Re(e,!!n.multiple,t,!1)}},ae=au,le=function(e,t,n,r){var o=zl;zl|=4;try{return $o(98,e.bind(null,t,n,r))}finally{0===(zl=o)&&Go()}},ue=function(){0==(49&zl)&&(function(){if(null!==Gl){var e=Gl;Gl=null,e.forEach((function(e,t){Uu(t,e),ru(t)})),Go()}}(),_u())},ce=function(e,t){var n=zl;zl|=2;try{return e(t)}finally{0===(zl=n)&&Go()}};var Yu,Zu,Ju={createPortal:qu,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=ot(t))?null:e.stateNode},hydrate:function(e,t,n){if(!Ku(t))throw Error(a(200));return Gu(null,e,t,!0,n)},render:function(e,t,n){if(!Ku(t))throw Error(a(200));return Gu(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!Ku(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Gu(e,t,n,!1,r)},unmountComponentAtNode:function(e){if(!Ku(e))throw Error(a(40));return!!e._reactRootContainer&&(lu((function(){Gu(null,null,e,!1,(function(){e._reactRootContainer=null,e[lr]=null}))})),!0)},unstable_createPortal:function(){return qu.apply(void 0,arguments)},unstable_batchedUpdates:au,flushSync:function(e,t){if(0!=(48&zl))throw Error(a(187));var n=zl;zl|=1;try{return $o(99,e.bind(null,t))}finally{zl=n,Go()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[cr,sr,fr,j.injectEventPluginsByName,p,Rt,function(e){O(e,Nt)},oe,ie,Cn,C,_u,{current:!1}]}};Zu=(Yu={findFiberByHostInstance:ur,bundleType:0,version:"16.12.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ou=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Pu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},Yu,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ot(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Zu?Zu(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var ec={default:Ju},tc=ec&&Ju||ec;e.exports=tc.default||tc},function(e,t,n){"use strict";e.exports=n(19)},function(e,t,n){"use strict";
/** @license React v0.18.0
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r,o,i,a,l;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,s=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(s,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(s,0))},o=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},a=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,m=window.setTimeout,b=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var g=d.now();t.unstable_now=function(){return d.now()-g}}var y=!1,v=null,w=-1,_=5,k=0;a=function(){return t.unstable_now()>=k},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):_=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,E=x.port2;x.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();k=e+_;try{v(!0,e)?E.postMessage(null):(y=!1,v=null)}catch(e){throw E.postMessage(null),e}}else y=!1},r=function(e){v=e,y||(y=!0,E.postMessage(null))},o=function(e,n){w=m((function(){e(t.unstable_now())}),n)},i=function(){b(w),w=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),o=e[r];if(!(void 0!==o&&0<P(o,t)))break e;e[r]=t,e[n]=o,n=r}}function T(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,u=e[l];if(void 0!==a&&0>P(a,n))void 0!==u&&0>P(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>P(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var z=[],C=[],j=1,N=null,R=3,I=!1,F=!1,D=!1;function L(e){for(var t=T(C);null!==t;){if(null===t.callback)O(C);else{if(!(t.startTime<=e))break;O(C),t.sortIndex=t.expirationTime,S(z,t)}t=T(C)}}function M(e){if(D=!1,L(e),!F)if(null!==T(z))F=!0,r(A);else{var t=T(C);null!==t&&o(M,t.startTime-e)}}function A(e,n){F=!1,D&&(D=!1,i()),I=!0;var r=R;try{for(L(n),N=T(z);null!==N&&(!(N.expirationTime>n)||e&&!a());){var l=N.callback;if(null!==l){N.callback=null,R=N.priorityLevel;var u=l(N.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?N.callback=u:N===T(z)&&O(z),L(n)}else O(z);N=T(z)}if(null!==N)var c=!0;else{var s=T(C);null!==s&&o(M,s.startTime-n),c=!1}return c}finally{N=null,R=r,I=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=l;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();if("object"==typeof a&&null!==a){var u=a.delay;u="number"==typeof u&&0<u?l+u:l,a="number"==typeof a.timeout?a.timeout:B(e)}else a=B(e),u=l;return e={id:j++,callback:n,priorityLevel:e,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>l?(e.sortIndex=u,S(C,e),null===T(z)&&e===T(C)&&(D?i():D=!0,o(M,u-l))):(e.sortIndex=a,S(z,e),F||I||(F=!0,r(A))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=T(z);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<N.expirationTime||a()},t.unstable_requestPaint=U,t.unstable_continueExecution=function(){F||I||(F=!0,r(A))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return T(z)},t.unstable_Profiling=null},function(e,t,n){(function(t){var n=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof o?new o(e.type,r.util.encode(e.content),e.alias):Array.isArray(e)?e.map(r.util.encode):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var o,i,a=r.util.type(t);switch(n=n||{},a){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var l in o={},n[i]=o,t)t.hasOwnProperty(l)&&(o[l]=e(t[l],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}}},languages:{extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var l in i)if(i.hasOwnProperty(l)){if(l==t)for(var u in n)n.hasOwnProperty(u)&&(a[u]=n[u]);n.hasOwnProperty(l)||(a[l]=i[l])}var c=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],o||l);var u=t[l],c=r.util.type(u);"Object"!==c||i[a(u)]?"Array"!==c||i[a(u)]||(i[a(u)]=!0,e(u,n,l,i)):(i[a(u)]=!0,e(u,n,null,i))}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var o={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",o),o.elements=Array.prototype.slice.apply(o.container.querySelectorAll(o.selector)),r.hooks.run("before-all-elements-highlight",o);for(var i,a=0;i=o.elements[a++];)r.highlightElement(i,!0===t,o.callback)},highlightElement:function(n,o,i){var a=r.util.getLanguage(n),l=r.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var u=n.parentNode;u&&"pre"===u.nodeName.toLowerCase()&&(u.className=u.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var c={element:n,language:a,grammar:l,code:n.textContent};function s(e){c.highlightedCode=e,r.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,r.hooks.run("after-highlight",c),r.hooks.run("complete",c),i&&i.call(c.element)}if(r.hooks.run("before-sanity-check",c),!c.code)return r.hooks.run("complete",c),void(i&&i.call(c.element));if(r.hooks.run("before-highlight",c),c.grammar)if(o&&e.Worker){var f=new Worker(r.filename);f.onmessage=function(e){s(e.data)},f.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else s(r.highlight(c.code,c.grammar,c.language));else s(r.util.encode(c.code))},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",i),i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},matchGrammar:function(e,t,n,i,a,l,u){for(var c in n)if(n.hasOwnProperty(c)&&n[c]){var s=n[c];s=Array.isArray(s)?s:[s];for(var f=0;f<s.length;++f){if(u&&u==c+","+f)return;var p=s[f],d=p.inside,m=!!p.lookbehind,b=!!p.greedy,h=0,g=p.alias;if(b&&!p.pattern.global){var y=p.pattern.toString().match(/[imsuy]*$/)[0];p.pattern=RegExp(p.pattern.source,y+"g")}p=p.pattern||p;for(var v=i,w=a;v<t.length;w+=t[v].length,++v){var _=t[v];if(t.length>e.length)return;if(!(_ instanceof o)){if(b&&v!=t.length-1){if(p.lastIndex=w,!(O=p.exec(e)))break;for(var k=O.index+(m&&O[1]?O[1].length:0),x=O.index+O[0].length,E=v,S=w,T=t.length;E<T&&(S<x||!t[E].type&&!t[E-1].greedy);++E)k>=(S+=t[E].length)&&(++v,w=S);if(t[v]instanceof o)continue;P=E-v,_=e.slice(w,S),O.index-=w}else{p.lastIndex=0;var O=p.exec(_),P=1}if(O){m&&(h=O[1]?O[1].length:0);x=(k=O.index+h)+(O=O[0].slice(h)).length;var z=_.slice(0,k),C=_.slice(x),j=[v,P];z&&(++v,w+=z.length,j.push(z));var N=new o(c,d?r.tokenize(O,d):O,g,O,b);if(j.push(N),C&&j.push(C),Array.prototype.splice.apply(t,j),1!=P&&r.matchGrammar(e,t,n,v,w,!0,c+","+f),l)break}else if(l)break}}}}},tokenize:function(e,t){var n=[e],o=t.rest;if(o){for(var i in o)t[i]=o[i];delete t.rest}return r.matchGrammar(e,n,t,0,0,!1),n},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r,o){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!o}if(e.Prism=r,o.stringify=function(e,t){if("string"==typeof e)return e;if(Array.isArray(e))return e.map((function(e){return o.stringify(e,t)})).join("");var n={type:e.type,content:o.stringify(e.content,t),tag:"span",classes:["token",e.type],attributes:{},language:t};if(e.alias){var i=Array.isArray(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(n.classes,i)}r.hooks.run("wrap",n);var a=Object.keys(n.attributes).map((function(e){return e+'="'+(n.attributes[e]||"").replace(/"/g,""")+'"'})).join(" ");return"<"+n.tag+' class="'+n.classes.join(" ")+'"'+(a?" "+a:"")+">"+n.content+"</"+n.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),o=n.language,i=n.code,a=n.immediateClose;e.postMessage(r.highlight(i,r.languages[o],o)),a&&e.close()}),!1),r):r;var i=r.util.currentScript();if(i&&(r.filename=i.src,i.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){function a(){r.manual||r.highlightAll()}var l=document.readyState;"loading"===l||"interactive"===l&&i&&i.defer?document.addEventListener("DOMContentLoaded",a):window.requestAnimationFrame?window.requestAnimationFrame(a):window.setTimeout(a,16)}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==t&&(t.Prism=n),n.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:(?!<!--)[^"'\]]|"[^"]*"|'[^']*'|<!--[\s\S]*?-->)*\]\s*)?>/i,greedy:!0},cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,e),"i"),lookbehind:!0,greedy:!0,inside:o},n.languages.insertBefore("markup","cdata",i)}}),n.languages.xml=n.languages.extend("markup",{}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/@[\w-]+/}},url:{pattern:RegExp("url\\((?:"+t.source+"|[^\n\r()]*)\\)","i"),inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+t.source+")*?(?=\\s*\\{)"),string:{pattern:t,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),e.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:n.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:e.languages.css}},alias:"language-css"}},n.tag))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&|\|\||[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?[.?]?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*(?:$|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}}}),n.languages.markup&&n.languages.markup.tag.addInlined("script","javascript"),n.languages.js=n.languages.javascript,"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(e){e=e||document;var t={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(e.querySelectorAll("pre[data-src]")).forEach((function(e){if(!e.hasAttribute("data-src-loaded")){for(var r,o=e.getAttribute("data-src"),i=e,a=/\blang(?:uage)?-([\w-]+)\b/i;i&&!a.test(i.className);)i=i.parentNode;if(i&&(r=(e.className.match(a)||[,""])[1]),!r){var l=(o.match(/\.(\w+)$/)||[,""])[1];r=t[l]||l}var u=document.createElement("code");u.className="language-"+r,e.textContent="",u.textContent="Loading…",e.appendChild(u);var c=new XMLHttpRequest;c.open("GET",o,!0),c.onreadystatechange=function(){4==c.readyState&&(c.status<400&&c.responseText?(u.textContent=c.responseText,n.highlightElement(u),e.setAttribute("data-src-loaded","")):c.status>=400?u.textContent="✖ Error "+c.status+" while fetching file: "+c.statusText:u.textContent="✖ Error: File does not exist or is empty")},c.send(null)}}))},document.addEventListener("DOMContentLoaded",(function(){self.Prism.fileHighlight()})))}).call(this,n(13))},function(e,t,n){var r=n(22);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,'/**\n * prism.js default theme for JavaScript, CSS and HTML\n * Based on dabblet (http://dabblet.com)\n * @author Lea Verou\n */\n\ncode[class*="language-"],\npre[class*="language-"] {\n\tcolor: black;\n\tbackground: none;\n\ttext-shadow: 0 1px white;\n\tfont-family: Consolas, Monaco, \'Andale Mono\', \'Ubuntu Mono\', monospace;\n\tfont-size: 1em;\n\ttext-align: left;\n\twhite-space: pre;\n\tword-spacing: normal;\n\tword-break: normal;\n\tword-wrap: normal;\n\tline-height: 1.5;\n\n\t-moz-tab-size: 4;\n\t-o-tab-size: 4;\n\ttab-size: 4;\n\n\t-webkit-hyphens: none;\n\t-ms-hyphens: none;\n\thyphens: none;\n}\n\npre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,\ncode[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {\n\ttext-shadow: none;\n\tbackground: #b3d4fc;\n}\n\npre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection, code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {\n\ttext-shadow: none;\n\tbackground: #b3d4fc;\n}\n\npre[class*="language-"]::selection, pre[class*="language-"] ::selection,\ncode[class*="language-"]::selection, code[class*="language-"] ::selection {\n\ttext-shadow: none;\n\tbackground: #b3d4fc;\n}\n\n@media print {\n\tcode[class*="language-"],\n\tpre[class*="language-"] {\n\t\ttext-shadow: none;\n\t}\n}\n\n/* Code blocks */\npre[class*="language-"] {\n\tpadding: 1em;\n\tmargin: .5em 0;\n\toverflow: auto;\n}\n\n:not(pre) > code[class*="language-"],\npre[class*="language-"] {\n\tbackground: #f5f2f0;\n}\n\n/* Inline code */\n:not(pre) > code[class*="language-"] {\n\tpadding: .1em;\n\tborder-radius: .3em;\n\twhite-space: normal;\n}\n\n.token.comment,\n.token.prolog,\n.token.doctype,\n.token.cdata {\n\tcolor: slategray;\n}\n\n.token.punctuation {\n\tcolor: #999;\n}\n\n.namespace {\n\topacity: .7;\n}\n\n.token.property,\n.token.tag,\n.token.boolean,\n.token.number,\n.token.constant,\n.token.symbol,\n.token.deleted {\n\tcolor: #905;\n}\n\n.token.selector,\n.token.attr-name,\n.token.string,\n.token.char,\n.token.builtin,\n.token.inserted {\n\tcolor: #690;\n}\n\n.token.operator,\n.token.entity,\n.token.url,\n.language-css .token.string,\n.style .token.string {\n\tcolor: #9a6e3a;\n\tbackground: hsla(0, 0%, 100%, .5);\n}\n\n.token.atrule,\n.token.attr-value,\n.token.keyword {\n\tcolor: #07a;\n}\n\n.token.function,\n.token.class-name {\n\tcolor: #DD4A68;\n}\n\n.token.regex,\n.token.important,\n.token.variable {\n\tcolor: #e90;\n}\n\n.token.important,\n.token.bold {\n\tfont-weight: bold;\n}\n.token.italic {\n\tfont-style: italic;\n}\n\n.token.entity {\n\tcursor: help;\n}\n',""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=(r=i)&&r.__esModule?r:{default:r},l=n(1);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){var e,n,r;u(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._handleRefMount=function(e){r._domNode=e},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this._hightlight()}},{key:"componentDidUpdate",value:function(){this._hightlight()}},{key:"_hightlight",value:function(){Prism.highlightElement(this._domNode,this.props.async)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.component,r=e.children;return a.default.createElement(n,{ref:this._handleRefMount,className:t},r)}}]),t}(i.PureComponent);s.propTypes={async:l.PropTypes.bool,className:l.PropTypes.string,children:l.PropTypes.any,component:l.PropTypes.node},s.defaultProps={component:"code"},t.default=s},function(e,t,n){"use strict";var r=n(26);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,'*,\n*:before,\n*:after {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-family: "Ubuntu", "Helvetica Neue", "Luxi Sans", "DejaVu Sans", Tahoma, "Hiragino Sans GB", "Microsoft Yahei", sans-serif !important;\n}\nbody {\n margin: 0;\n padding: 0;\n}\nh1 {\n line-height: 6rem;\n font-size: 4.5rem;\n font-weight: normal;\n margin: -0.5em 0 0.4rem;\n color: rgba(0, 0, 0, 0.9);\n}\nh2 {\n margin: 0 0 30px;\n font-size: 2.2rem;\n font-weight: normal;\n color: rgba(0, 0, 0, 0.8);\n}\nh3 {\n font-size: 1rem;\n font-weight: normal;\n color: rgba(0, 0, 0, 0.6);\n}\na {\n text-align: center;\n font-size: 0.58rem;\n color: #999;\n display: inline-block;\n margin: 14px 4px;\n}\nspan {\n font-size: 0.78rem;\n}\np {\n font-size: 1.05rem;\n color: #666;\n}\npre {\n margin: 30px 0;\n padding: 0.8rem 1rem;\n border-left: 4px solid #808080;\n color: #717682;\n background-color: #f9f9f9 !important;\n}\ncode,\nkbd,\nsamp {\n font-size: 0.8rem;\n}\nspan.string {\n color: #c083de !important;\n}\n.image__2aFUz {\n width: 100%;\n -webkit-transition: -webkit-transform 0.3s;\n transition: -webkit-transform 0.3s;\n transition: transform 0.3s;\n transition: transform 0.3s, -webkit-transform 0.3s;\n}\n.tag__1DpJ9 {\n cursor: pointer;\n display: inline-block;\n padding: 6px 10px;\n color: white;\n font-weight: bold;\n border-radius: 4px;\n line-height: 1;\n margin: 4px;\n vertical-align: baseline;\n background-color: #1b1c1e;\n font-family: Lato, \'Helvetica Neue\', Arial, Helvetica, sans-serif;\n}\n.button__11F0w {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n display: inline-block;\n border: 1px solid black;\n border-radius: 6px;\n font-size: 1.3rem;\n padding: 12px 20px;\n text-decoration: none;\n margin: 25px 10px;\n -webkit-transition: all 0.1s;\n transition: all 0.1s;\n}\n.button__11F0w:hover {\n color: white;\n background-color: black;\n}\n.button__11F0w:active {\n color: white;\n background-color: black;\n}\n.github__hRnNp {\n -webkit-transition: all 0.1s;\n transition: all 0.1s;\n}\n.github__hRnNp svg {\n width: 24px;\n height: 24px;\n fill: #999;\n}\n.github__hRnNp:hover svg {\n fill: #666;\n}\n.github__hRnNp:active svg {\n fill: #333;\n}\n.pageContainer__2Xep0 {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.pageContainer__2Xep0 .page__2H632 {\n position: relative;\n height: 100vh;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.pageContainer__2Xep0 .page__2H632 > div {\n margin: auto;\n}\n.pageContainer__2Xep0 .page__2H632 h4 {\n font-weight: lighter;\n}\n.pageContainer__2Xep0 .page__2H632 a > img {\n width: 150px;\n height: auto;\n margin-bottom: 30px;\n}\n@media only screen and (max-width: 1080px) {\n .pageContainer__2Xep0 .page__2H632 h1 {\n font-size: 3rem;\n }\n .pageContainer__2Xep0 .page__2H632 h4 {\n padding: 0 10%;\n margin-top: -10px;\n font-weight: lighter;\n }\n}\n.pageContainer__2Xep0 .page__2H632 .github__hRnNp {\n position: absolute;\n top: 20px;\n right: 20px;\n}\n.pageContainer__2Xep0 .horizon__3_F-b {\n border-top: 1px solid #eeefee;\n margin: auto;\n max-width: 1080px;\n padding-top: 80px;\n padding-bottom: 80px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.pageContainer__2Xep0 .horizon__3_F-b:nth-child(odd) {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n}\n.pageContainer__2Xep0 .horizon__3_F-b > div {\n max-width: 50%;\n padding: 30px 40px;\n}\n@media only screen and (max-width: 1080px) {\n .pageContainer__2Xep0 .horizon__3_F-b:nth-child(odd) {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n }\n .pageContainer__2Xep0 .horizon__3_F-b > div {\n max-width: 100%;\n padding: 20px;\n }\n .pageContainer__2Xep0 .horizon__3_F-b > div:last-of-type {\n width: 100%;\n padding: 0;\n }\n .pageContainer__2Xep0 .horizon__3_F-b > div:last-of-type img {\n border-radius: 0;\n }\n}\n.pageContainer__2Xep0 .horizon__3_F-b .clickable__A-FXu {\n position: relative;\n cursor: pointer;\n}\n.pageContainer__2Xep0 .horizon__3_F-b .clickable__A-FXu:after {\n content: "";\n display: block;\n position: absolute;\n left: -4px;\n bottom: -2px;\n width: 0;\n height: 0.5rem;\n background-color: rgba(0, 136, 255, 0.51);\n -webkit-transition: all 0.3s;\n transition: all 0.3s;\n}\n.pageContainer__2Xep0 .horizon__3_F-b .clickable__A-FXu:hover:after {\n width: 113%;\n height: 0.5rem;\n}\n.pageContainer__2Xep0 .horizon__3_F-b .helpBox__3Kr4_ a {\n font-size: 1.05rem;\n text-decoration: underline;\n position: relative;\n cursor: pointer;\n}\n.pageContainer__2Xep0 .horizon__3_F-b .helpBox__3Kr4_ a:after {\n content: "";\n display: block;\n position: absolute;\n left: -4px;\n bottom: -2px;\n width: 0;\n height: 0.5rem;\n background-color: rgba(0, 136, 255, 0.51);\n -webkit-transition: all 0.3s;\n transition: all 0.3s;\n}\n.pageContainer__2Xep0 .horizon__3_F-b .helpBox__3Kr4_ a:hover:after {\n width: 113%;\n height: 0.5rem;\n}\n.pageContainer__2Xep0 .horizon__3_F-b .imageBox__2rliT a {\n text-align: center;\n width: 100%;\n}\n.pageContainer__2Xep0 .project__3Ij8A {\n cursor: default;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n text-align: center;\n}\n.pageContainer__2Xep0 .project__3Ij8A .button__11F0w {\n margin-top: 20px;\n}\n.pageContainer__2Xep0 .scrollDownHint__1Xd9q {\n position: absolute;\n left: 50vw;\n bottom: 26px;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.pageContainer__2Xep0 .scrollDownHint__1Xd9q span {\n color: #999;\n}\n.pageContainer__2Xep0 .scrollDownHint__1Xd9q img {\n -webkit-transform: scale(0.45);\n transform: scale(0.45);\n margin: -10px 0 -28px;\n -webkit-animation-name: blink__2H2dx;\n animation-name: blink__2H2dx;\n -webkit-animation-duration: 1s;\n animation-duration: 1s;\n -webkit-animation-direction: alternate;\n animation-direction: alternate;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n}\n.pageContainer__2Xep0 .scrollDownHint__1Xd9q img:first-of-type {\n -webkit-animation-delay: 0s;\n animation-delay: 0s;\n opacity: 0;\n}\n.pageContainer__2Xep0 .scrollDownHint__1Xd9q img:last-of-type {\n -webkit-animation-delay: 0.5s;\n animation-delay: 0.5s;\n opacity: 0;\n}\n.pageContainer__2Xep0 .bottomBanner__I34Gi {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n background-color: #f2f3f5;\n}\n.pageContainer__2Xep0 .bottomBanner__I34Gi > div {\n padding: 60px;\n margin: auto;\n}\n.pageContainer__2Xep0 .bottomBanner__I34Gi > div h2 {\n margin: 20px 0 10px;\n}\n.pageContainer__2Xep0 .footer__UpbGw {\n padding: 40px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.pageContainer__2Xep0 .footer__UpbGw > div {\n margin-top: 10px;\n width: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n.pageContainer__2Xep0 .footer__UpbGw > div a {\n margin: 0 6px;\n width: auto;\n}\n.pageContainer__2Xep0 .footer__UpbGw span {\n color: #999999;\n}\n.pageContainer__2Xep0 .footer__UpbGw .hr__3IBp7 {\n margin-top: 0;\n background-color: #eeefee;\n width: 1px;\n height: 50px;\n}\n@-webkit-keyframes blink__2H2dx {\n 0% {\n opacity: 0;\n -webkit-transform: scale(0.45);\n transform: scale(0.45);\n }\n 100% {\n opacity: 1;\n -webkit-transform: scale(0.55);\n transform: scale(0.55);\n }\n}\n@keyframes blink__2H2dx {\n 0% {\n opacity: 0;\n -webkit-transform: scale(0.45);\n transform: scale(0.45);\n }\n 100% {\n opacity: 1;\n -webkit-transform: scale(0.55);\n transform: scale(0.55);\n }\n}\n',""]),t.locals={image:"image__2aFUz",tag:"tag__1DpJ9",button:"button__11F0w",github:"github__hRnNp",pageContainer:"pageContainer__2Xep0",page:"page__2H632",horizon:"horizon__3_F-b",clickable:"clickable__A-FXu",helpBox:"helpBox__3Kr4_",imageBox:"imageBox__2rliT",project:"project__3Ij8A",scrollDownHint:"scrollDownHint__1Xd9q",blink:"blink__2H2dx",bottomBanner:"bottomBanner__I34Gi",footer:"footer__UpbGw",hr:"hr__3IBp7"}},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,".wrapperLayer__z_PKn {\n position: fixed;\n margin: 0;\n padding: 0;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 999;\n}\n",""]),t.locals={wrapperLayer:"wrapperLayer__z_PKn"}},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* 与 anim.js 同步 */\n.baseButton__2AV5J {\n z-index: 1000;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n}\n.baseButton__2AV5J > svg {\n display: block;\n width: 2rem;\n height: 2rem;\n}\n.controls__NTVNu {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: absolute;\n top: 0.6rem;\n right: 0.6rem;\n opacity: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n z-index: 1000;\n border-radius: 5rem;\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n -webkit-transition: opacity 350ms, -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms, -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms;\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms, -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.controls__NTVNu.show__2Pu4e {\n opacity: 0.8;\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n.controls__NTVNu .pinButton__pLhHH {\n z-index: 1000;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n margin: 0.4em 0;\n width: 2rem;\n height: 2rem;\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.controls__NTVNu .pinButton__pLhHH > svg {\n display: block;\n width: 2rem;\n height: 2rem;\n}\n.controls__NTVNu .pinButton__pLhHH:hover {\n opacity: 0.8 !important;\n -webkit-transform: scale(1.1) !important;\n transform: scale(1.1) !important;\n}\n.controls__NTVNu .pinButton__pLhHH:active {\n opacity: 1 !important;\n -webkit-transform: scale(1) !important;\n transform: scale(1) !important;\n}\n.controls__NTVNu .pinButton__pLhHH:first-of-type {\n margin-left: 0.4rem;\n}\n.controls__NTVNu .pinButton__pLhHH:last-of-type {\n margin-right: 0.4rem;\n}\n.controls__NTVNu .rotate__18SVA {\n z-index: 1000;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n margin: 0.4em 0;\n width: 2rem;\n height: 2rem;\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.controls__NTVNu .rotate__18SVA > svg {\n display: block;\n width: 2rem;\n height: 2rem;\n}\n.controls__NTVNu .rotate__18SVA:hover {\n opacity: 0.8 !important;\n -webkit-transform: scale(1.1) !important;\n transform: scale(1.1) !important;\n}\n.controls__NTVNu .rotate__18SVA:active {\n opacity: 1 !important;\n -webkit-transform: scale(1) !important;\n transform: scale(1) !important;\n}\n.controls__NTVNu .rotate__18SVA:first-of-type {\n margin-left: 0.4rem;\n}\n.controls__NTVNu .rotate__18SVA:last-of-type {\n margin-right: 0.4rem;\n}\n.controls__NTVNu .rotate__18SVA svg {\n width: 1.75rem;\n -webkit-transition: -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.controls__NTVNu .rotateLeft__1y4kO {\n z-index: 1000;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n margin: 0.4em 0;\n width: 2rem;\n height: 2rem;\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.controls__NTVNu .rotateLeft__1y4kO > svg {\n display: block;\n width: 2rem;\n height: 2rem;\n}\n.controls__NTVNu .rotateLeft__1y4kO:hover {\n opacity: 0.8 !important;\n -webkit-transform: scale(1.1) !important;\n transform: scale(1.1) !important;\n}\n.controls__NTVNu .rotateLeft__1y4kO:active {\n opacity: 1 !important;\n -webkit-transform: scale(1) !important;\n transform: scale(1) !important;\n}\n.controls__NTVNu .rotateLeft__1y4kO:first-of-type {\n margin-left: 0.4rem;\n}\n.controls__NTVNu .rotateLeft__1y4kO:last-of-type {\n margin-right: 0.4rem;\n}\n.controls__NTVNu .rotateLeft__1y4kO svg {\n width: 1.75rem;\n -webkit-transition: -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.controls__NTVNu .rotateLeft__1y4kO:hover svg {\n -webkit-transform: rotate(-30deg);\n transform: rotate(-30deg);\n}\n.controls__NTVNu .rotateRight__1GeTD {\n z-index: 1000;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n margin: 0.4em 0;\n width: 2rem;\n height: 2rem;\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.controls__NTVNu .rotateRight__1GeTD > svg {\n display: block;\n width: 2rem;\n height: 2rem;\n}\n.controls__NTVNu .rotateRight__1GeTD:hover {\n opacity: 0.8 !important;\n -webkit-transform: scale(1.1) !important;\n transform: scale(1.1) !important;\n}\n.controls__NTVNu .rotateRight__1GeTD:active {\n opacity: 1 !important;\n -webkit-transform: scale(1) !important;\n transform: scale(1) !important;\n}\n.controls__NTVNu .rotateRight__1GeTD:first-of-type {\n margin-left: 0.4rem;\n}\n.controls__NTVNu .rotateRight__1GeTD:last-of-type {\n margin-right: 0.4rem;\n}\n.controls__NTVNu .rotateRight__1GeTD svg {\n width: 1.75rem;\n -webkit-transition: -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.controls__NTVNu .rotateRight__1GeTD:hover svg {\n -webkit-transform: rotate(30deg);\n transform: rotate(30deg);\n}\n.controls__NTVNu .download__TnaVI {\n z-index: 1000;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n margin: 0.4em 0;\n width: 2rem;\n height: 2rem;\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.controls__NTVNu .download__TnaVI > svg {\n display: block;\n width: 2rem;\n height: 2rem;\n}\n.controls__NTVNu .download__TnaVI:hover {\n opacity: 0.8 !important;\n -webkit-transform: scale(1.1) !important;\n transform: scale(1.1) !important;\n}\n.controls__NTVNu .download__TnaVI:active {\n opacity: 1 !important;\n -webkit-transform: scale(1) !important;\n transform: scale(1) !important;\n}\n.controls__NTVNu .download__TnaVI:first-of-type {\n margin-left: 0.4rem;\n}\n.controls__NTVNu .download__TnaVI:last-of-type {\n margin-right: 0.4rem;\n}\n.controls__NTVNu .download__TnaVI svg {\n margin-top: -0.06rem;\n width: 1.75rem;\n}\n.controls__NTVNu .zoom__1W2_u {\n z-index: 1000;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n margin: 0.4em 0;\n width: 2rem;\n height: 2rem;\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.controls__NTVNu .zoom__1W2_u > svg {\n display: block;\n width: 2rem;\n height: 2rem;\n}\n.controls__NTVNu .zoom__1W2_u:hover {\n opacity: 0.8 !important;\n -webkit-transform: scale(1.1) !important;\n transform: scale(1.1) !important;\n}\n.controls__NTVNu .zoom__1W2_u:active {\n opacity: 1 !important;\n -webkit-transform: scale(1) !important;\n transform: scale(1) !important;\n}\n.controls__NTVNu .zoom__1W2_u:first-of-type {\n margin-left: 0.4rem;\n}\n.controls__NTVNu .zoom__1W2_u:last-of-type {\n margin-right: 0.4rem;\n}\n.controls__NTVNu .close__h79Tx {\n z-index: 1000;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n margin: 0.4em 0;\n width: 2rem;\n height: 2rem;\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.controls__NTVNu .close__h79Tx > svg {\n display: block;\n width: 2rem;\n height: 2rem;\n}\n.controls__NTVNu .close__h79Tx:hover {\n opacity: 0.8 !important;\n -webkit-transform: scale(1.1) !important;\n transform: scale(1.1) !important;\n}\n.controls__NTVNu .close__h79Tx:active {\n opacity: 1 !important;\n -webkit-transform: scale(1) !important;\n transform: scale(1) !important;\n}\n.controls__NTVNu .close__h79Tx:first-of-type {\n margin-left: 0.4rem;\n}\n.controls__NTVNu .close__h79Tx:last-of-type {\n margin-right: 0.4rem;\n}\n.sideButton__25vo1 {\n z-index: 1000;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n opacity: 0;\n position: absolute;\n top: 50%;\n padding: 0.4rem;\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.sideButton__25vo1 > svg {\n display: block;\n width: 2rem;\n height: 2rem;\n}\n.sideButton__25vo1:hover {\n opacity: 0.8 !important;\n -webkit-transform: translateX(0) translateY(-50%) !important;\n transform: translateX(0) translateY(-50%) !important;\n}\n.sideButton__25vo1:active {\n opacity: 1 !important;\n}\n.sideButton__25vo1.show__2Pu4e {\n opacity: 0.8;\n}\n.flipLeft__fhip_ {\n z-index: 1000;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n opacity: 0;\n position: absolute;\n top: 50%;\n padding: 0.4rem;\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n left: 0;\n padding-left: 0.6rem;\n border-radius: 0 0.5em 0.5em 0;\n -webkit-transform: translateX(-100%) translateY(-50%);\n transform: translateX(-100%) translateY(-50%);\n}\n.flipLeft__fhip_ > svg {\n display: block;\n width: 2rem;\n height: 2rem;\n}\n.flipLeft__fhip_:hover {\n opacity: 0.8 !important;\n -webkit-transform: translateX(0) translateY(-50%) !important;\n transform: translateX(0) translateY(-50%) !important;\n}\n.flipLeft__fhip_:active {\n opacity: 1 !important;\n}\n.flipLeft__fhip_.show__2Pu4e {\n opacity: 0.8;\n}\n.flipLeft__fhip_:active {\n -webkit-transform: translate(-0.2em) translateY(-50%) !important;\n transform: translate(-0.2em) translateY(-50%) !important;\n}\n.flipLeft__fhip_.show__2Pu4e {\n opacity: 0.8;\n -webkit-transform: translate(-0.2em) translateY(-50%);\n transform: translate(-0.2em) translateY(-50%);\n}\n.flipRight__2T92B {\n z-index: 1000;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: pointer;\n opacity: 0;\n position: absolute;\n top: 50%;\n padding: 0.4rem;\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 175ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 175ms cubic-bezier(0.6, 0, 0.1, 1);\n right: 0;\n padding-right: 0.6rem;\n border-radius: 0.5rem 0 0 0.5rem;\n -webkit-transform: translateX(100%) translateY(-50%);\n transform: translateX(100%) translateY(-50%);\n}\n.flipRight__2T92B > svg {\n display: block;\n width: 2rem;\n height: 2rem;\n}\n.flipRight__2T92B:hover {\n opacity: 0.8 !important;\n -webkit-transform: translateX(0) translateY(-50%) !important;\n transform: translateX(0) translateY(-50%) !important;\n}\n.flipRight__2T92B:active {\n opacity: 1 !important;\n}\n.flipRight__2T92B.show__2Pu4e {\n opacity: 0.8;\n}\n.flipRight__2T92B:active {\n -webkit-transform: translate(0.2em) translateY(-50%) !important;\n transform: translate(0.2em) translateY(-50%) !important;\n}\n.flipRight__2T92B.show__2Pu4e {\n opacity: 0.8;\n -webkit-transform: translate(0.2em) translateY(-50%);\n transform: translate(0.2em) translateY(-50%);\n}\n.pages__2jlej {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n left: 50%;\n bottom: 0.6rem;\n z-index: 110;\n opacity: 0;\n border-radius: 2rem;\n -webkit-transform: translate(-50%, 100px);\n transform: translate(-50%, 100px);\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.pages__2jlej.show__2Pu4e {\n opacity: 0.8;\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n}\n.pages__2jlej.mobile__3HB5p {\n bottom: 2rem;\n}\n.pages__2jlej .dot__p50eg {\n cursor: pointer;\n margin: 0.45rem 0.25rem;\n display: block;\n width: 0.6rem;\n height: 0.6rem;\n border-radius: 1.2rem;\n background: black;\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), width 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), width 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), width 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), width 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.pages__2jlej .dot__p50eg:first-of-type {\n margin-left: 0.6rem;\n}\n.pages__2jlej .dot__p50eg:last-of-type {\n margin-right: 0.6rem;\n}\n.pages__2jlej .blackDot__TTF7k {\n cursor: pointer;\n margin: 0.45rem 0.25rem;\n display: block;\n width: 0.6rem;\n height: 0.6rem;\n border-radius: 1.2rem;\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), width 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), width 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), width 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), width 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n cursor: initial;\n width: 1rem;\n background: black;\n}\n.pages__2jlej .blackDot__TTF7k:first-of-type {\n margin-left: 0.6rem;\n}\n.pages__2jlej .blackDot__TTF7k:last-of-type {\n margin-right: 0.6rem;\n}\n.pages__2jlej .whiteDot__3iAb5 {\n cursor: pointer;\n margin: 0.45rem 0.25rem;\n display: block;\n width: 0.6rem;\n height: 0.6rem;\n border-radius: 1.2rem;\n background: black;\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), width 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), width 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), width 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), width 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n background: #999;\n}\n.pages__2jlej .whiteDot__3iAb5:first-of-type {\n margin-left: 0.6rem;\n}\n.pages__2jlej .whiteDot__3iAb5:last-of-type {\n margin-right: 0.6rem;\n}\n.pages__2jlej .whiteDot__3iAb5:hover {\n opacity: 0.8 !important;\n -webkit-transform: scale(1.1) !important;\n transform: scale(1.1) !important;\n}\n.pages__2jlej .whiteDot__3iAb5:active {\n opacity: 1 !important;\n -webkit-transform: scale(1) !important;\n transform: scale(1) !important;\n}\n",""]),t.locals={baseButton:"baseButton__2AV5J",controls:"controls__NTVNu",show:"show__2Pu4e",pinButton:"pinButton__pLhHH",rotate:"rotate__18SVA",rotateLeft:"rotateLeft__1y4kO",rotateRight:"rotateRight__1GeTD",download:"download__TnaVI",zoom:"zoom__1W2_u",close:"close__h79Tx",sideButton:"sideButton__25vo1",flipLeft:"flipLeft__fhip_",flipRight:"flipRight__2T92B",pages:"pages__2jlej",mobile:"mobile__3HB5p",dot:"dot__p50eg",blackDot:"blackDot__TTF7k",whiteDot:"whiteDot__3iAb5"}},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* 与 anim.js 同步 */\n.imageLayer__1NyU2 {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-clip-path 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-clip-path 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), clip-path 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), opacity 350ms cubic-bezier(0.6, 0, 0.1, 1), clip-path 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-clip-path 350ms cubic-bezier(0.6, 0, 0.1, 1);\n position: absolute;\n left: 50%;\n top: 50%;\n will-change: transform, top, opacity, clip-path;\n}\n.imageLayer__1NyU2.zooming__3TFmo {\n -webkit-transition-timing-function: cubic-bezier(0, 0.1, 0.1, 1);\n transition-timing-function: cubic-bezier(0, 0.1, 0.1, 1);\n -ms-transition-duration: 0ms;\n}\n.imageLayer__1NyU2.invalidate__1wygJ {\n opacity: 0 !important;\n pointer-events: none;\n}\n",""]),t.locals={imageLayer:"imageLayer__1NyU2",zooming:"zooming__3TFmo",invalidate:"invalidate__1wygJ"}},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* 与 anim.js 同步 */\n.loadingContainer__33QBo {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: absolute;\n left: 50%;\n top: 50%;\n opacity: 0;\n -webkit-transition: opacity cubic-bezier(0.6, 0, 0.1, 1) 175ms;\n transition: opacity cubic-bezier(0.6, 0, 0.1, 1) 175ms;\n}\n.loadingContainer__33QBo.show__1Bu8R {\n opacity: 1;\n}\n.loadingContainer__33QBo .reload__3KDuO {\n border: 2px solid;\n border-radius: 5px;\n font-size: 1rem;\n padding: 0.5rem;\n cursor: pointer;\n outline: none;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n.loadingContainer__33QBo .reload__3KDuO:hover {\n opacity: 0.8;\n}\n.loadingContainer__33QBo .reload__3KDuO:hover svg {\n -webkit-transform: rotate(30deg);\n transform: rotate(30deg);\n}\n.loadingContainer__33QBo .reload__3KDuO:active {\n opacity: 1;\n}\n.loadingContainer__33QBo .reload__3KDuO svg {\n display: block;\n -webkit-transition: -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n transition: transform 350ms cubic-bezier(0.6, 0, 0.1, 1), -webkit-transform 350ms cubic-bezier(0.6, 0, 0.1, 1);\n}\n.loadingContainer__33QBo .loading__3UcNS {\n width: 24px;\n height: 24px;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-animation: spin__2VDbe 1s linear infinite;\n animation: spin__2VDbe 1s linear infinite;\n}\n@-webkit-keyframes fadeIn__3TpcC {\n 0% {\n opacity: 0;\n }\n 50% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes fadeIn__3TpcC {\n 0% {\n opacity: 0;\n }\n 50% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@-webkit-keyframes fadeOut__9PHOR {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n }\n}\n@keyframes fadeOut__9PHOR {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n }\n}\n@-webkit-keyframes spin__2VDbe {\n 0% {\n -webkit-transform: translate(-50%, -50%) rotate(0deg);\n transform: translate(-50%, -50%) rotate(0deg);\n }\n 100% {\n -webkit-transform: translate(-50%, -50%) rotate(360deg);\n transform: translate(-50%, -50%) rotate(360deg);\n }\n}\n@keyframes spin__2VDbe {\n 0% {\n -webkit-transform: translate(-50%, -50%) rotate(0deg);\n transform: translate(-50%, -50%) rotate(0deg);\n }\n 100% {\n -webkit-transform: translate(-50%, -50%) rotate(360deg);\n transform: translate(-50%, -50%) rotate(360deg);\n }\n}\n",""]),t.locals={loadingContainer:"loadingContainer__33QBo",show:"show__1Bu8R",reload:"reload__3KDuO",loading:"loading__3UcNS",spin:"spin__2VDbe",fadeIn:"fadeIn__3TpcC",fadeOut:"fadeOut__9PHOR"}},function(e,t,n){(t=e.exports=n(5)(!1)).push([e.i,"/* 与 anim.js 同步 */\n.backgroundLayer__36t43 {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n cursor: -webkit-zoom-out;\n cursor: zoom-out;\n background-color: #ffffff;\n -webkit-transition: opacity 0.2s;\n transition: opacity 0.2s;\n will-change: opacity;\n -webkit-tap-highlight-color: transparent;\n}\n",""]),t.locals={backgroundLayer:"backgroundLayer__36t43"}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(7),a=n.n(i),l=(n(20),n(21),n(9)),u=n.n(l),c=n(2),s=n.n(c),f=n(14),p=n.n(f),d=n(1),m=n.n(d);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.set,n=e.src,r=e.alt,o=e.txt,i=e.restProps;return Array.isArray(t)&&t.length>0?t:[h({src:n,alt:r,txt:o},i)]};function v(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x={src:m.a.string,alt:m.a.string,txt:m.a.string,set:m.a.oneOfType([m.a.arrayOf(m.a.shape({src:m.a.string,alt:m.a.string,text:m.a.string})),m.a.shape({src:m.a.string,alt:m.a.string,text:m.a.string})]),defaultPage:m.a.number,preset:m.a.oneOf(["","desktop","mobile"]),controller:m.a.oneOfType([m.a.bool,m.a.shape({pagination:m.a.bool,rotate:m.a.bool,zoom:m.a.bool,download:m.a.bool,close:m.a.bool,flip:m.a.bool})]),hotKey:m.a.oneOfType([m.a.bool,m.a.shape({close:m.a.bool,zoom:m.a.bool,flip:m.a.bool})]),animate:m.a.shape({browsing:m.a.bool,flip:m.a.oneOf(["fade","crossFade","swipe","zoom"])}),hideOnScroll:m.a.bool,coverVisible:m.a.bool,backdrop:m.a.string,zIndex:m.a.number,radius:m.a.number,edge:m.a.number,loop:m.a.bool,onBrowsing:m.a.func,onZooming:m.a.func,onSwitching:m.a.func,onRotating:m.a.func,browsing:m.a.bool},E={src:"",alt:"",txt:"",set:[],defaultPage:0,preset:"",controller:{},hotKey:{},animate:{},hideOnScroll:!0,coverVisible:!1,backdrop:"#FFFFFF",zIndex:1e3,radius:0,edge:0,loop:!0,onBrowsing:function(){},onZooming:function(){},onSwitching:function(){},onRotating:function(){}},S={controller:{pagination:!0,rotate:!1,zoom:!1,download:!1,close:!0,flip:!1},hotKey:{close:!1,zoom:!1,flip:!1},animate:{browsing:!0,flip:"swipe"}},T=!1,O=_({},E,{},{controller:{pagination:!0,rotate:!0,zoom:!0,download:!1,close:!0,flip:!0},hotKey:{close:!0,zoom:!0,flip:!0},animate:{browsing:!0,flip:"fade"}}),P=_({},E,{},S),z=function(e){var t=e.className,n=e.style,r=e.onClick,o=e.forwardedRef,i=e.coverRef,a=e.destroyer,l=e.src,u=e.alt,c=e.txt,s=e.set,f=e.defaultPage,p=e.preset,d=e.controller,m=e.hotKey,b=e.animate,h=e.hideOnScroll,g=e.coverVisible,w=e.backdrop,_=e.zIndex,k=e.radius,x=e.edge,E=e.loop,S=e.onBrowsing,T=e.onZooming,O=e.onSwitching,P=e.onRotating,z=e.browsing,C=v(e,["className","style","onClick","forwardedRef","coverRef","destroyer","src","alt","txt","set","defaultPage","preset","controller","hotKey","animate","hideOnScroll","coverVisible","backdrop","zIndex","radius","edge","loop","onBrowsing","onZooming","onSwitching","onRotating","browsing"]);return{coverProps:{className:t,style:n,onClick:r,forwardedRef:o,src:l,alt:u,txt:c},calleeProps:{coverRef:i,destroyer:a},stateProps:{controlledBrowsing:z},configProps:{defaultPage:f,set:y({set:s,src:l,alt:u,txt:c}),preset:p,controller:d,hotKey:m,animate:b,hideOnScroll:h,coverVisible:g,backdrop:w,zIndex:_,radius:k,edge:x,loop:E,onBrowsing:S,onZooming:T,onSwitching:O,onRotating:P},restProps:C}};function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var F=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=N(this,R(t).call(this,e))).target=e.target||document.body,n.container=document.createElement("figure"),n.container.id=e.id,n.container.className=e.className,n.container.style.zIndex=e.zIndex,n.target.appendChild(n.container),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(t,e),n=t,(r=[{key:"componentWillUnmount",value:function(){this.target.removeChild(this.container)}},{key:"render",value:function(){var e=this.props.children;return a.a.createPortal(e,this.container)}}])&&j(n.prototype,r),o&&j(n,o),t}(o.a.PureComponent);F.defaultProps={zIndex:E.zIndex},F.propTypes={id:m.a.string,className:m.a.string,zIndex:x.zIndex};var D=n(4),L=n.n(D),M=n(3),A=n.n(M);function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function H(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $(e,t){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var X=function(e){function t(){return U(this,t),H(this,W(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},o.a.createElement("path",{d:"M14.71 15.88L10.83 12l3.88-3.88c.39-.39.39-1.02 0-1.41-.39-.39-1.02-.39-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0 .38-.39.39-1.03 0-1.42z"}))}}])&&V(n.prototype,r),i&&V(n,i),t}(o.a.PureComponent);function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q(e,t){return!t||"object"!==K(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var J=function(e){function t(){return G(this,t),q(this,Y(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Z(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},o.a.createElement("path",{d:"M9.29 15.88L13.17 12 9.29 8.12c-.39-.39-.39-1.02 0-1.41.39-.39 1.02-.39 1.41 0l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3c-.39.39-1.02.39-1.41 0-.38-.39-.39-1.03 0-1.42z"}))}}])&&Q(n.prototype,r),i&&Q(n,i),t}(o.a.PureComponent);function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function re(e,t){return!t||"object"!==ee(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ie(e,t){return(ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ae=function(e){function t(){return te(this,t),re(this,oe(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ie(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},o.a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.a.createElement("path",{d:"M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}))}}])&&ne(n.prototype,r),i&&ne(n,i),t}(o.a.PureComponent);function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function se(e,t){return!t||"object"!==le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pe(e,t){return(pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var de=function(e){function t(){return ue(this,t),se(this,fe(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pe(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},o.a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.a.createElement("path",{d:"M19 13v5c0 .55-.45 1-1 1H6c-.55 0-1-.45-1-1v-5c0-.55-.45-1-1-1s-1 .45-1 1v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6c0-.55-.45-1-1-1s-1 .45-1 1zm-6-.33l1.88-1.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-3.59 3.59c-.39.39-1.02.39-1.41 0L7.7 12.2c-.39-.39-.39-1.02 0-1.41.39-.39 1.02-.39 1.41 0L11 12.67V4c0-.55.45-1 1-1s1 .45 1 1v8.67z"}))}}])&&ce(n.prototype,r),i&&ce(n,i),t}(o.a.PureComponent);function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ge(e,t){return!t||"object"!==me(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ve(e,t){return(ve=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var we=function(e){function t(){return be(this,t),ge(this,ye(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ve(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return o.a.createElement("svg",{xmlns:"http://www.w3.org/1999/xlink",width:"24",height:"24",viewBox:"0 0 200 200",preserveAspectRatio:"xMinYMin meet"},o.a.createElement("defs",null,o.a.createElement("linearGradient",{id:"spinner-1552570621916",x1:"0%",y1:"0%",x2:"65%",y2:"0%"},o.a.createElement("stop",{offset:"0%",className:"Spinner-blue-3_W"}),o.a.createElement("stop",{offset:"100%",stopOpacity:"0"}))),o.a.createElement("circle",{cx:"100",cy:"100",r:"90",fill:"transparent",stroke:"url(#spinner-1552570621916)",strokeWidth:"20"}))}}])&&he(n.prototype,r),i&&he(n,i),t}(o.a.PureComponent);function _e(e){return(_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ee(e,t){return!t||"object"!==_e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Te(e,t){return(Te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Oe=function(e){function t(){return ke(this,t),Ee(this,Se(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Te(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},o.a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.a.createElement("path",{d:"M12 6v1.79c0 .45.54.67.85.35l2.79-2.79c.2-.2.2-.51 0-.71l-2.79-2.79c-.31-.31-.85-.09-.85.36V4c-4.42 0-8 3.58-8 8 0 1.04.2 2.04.57 2.95.27.67 1.13.85 1.64.34.27-.27.38-.68.23-1.04C6.15 13.56 6 12.79 6 12c0-3.31 2.69-6 6-6zm5.79 2.71c-.27.27-.38.69-.23 1.04.28.7.44 1.46.44 2.25 0 3.31-2.69 6-6 6v-1.79c0-.45-.54-.67-.85-.35l-2.79 2.79c-.2.2-.2.51 0 .71l2.79 2.79c.31.31.85.09.85-.35V20c4.42 0 8-3.58 8-8 0-1.04-.2-2.04-.57-2.95-.27-.67-1.13-.85-1.64-.34z"}))}}])&&xe(n.prototype,r),i&&xe(n,i),t}(o.a.PureComponent);function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function je(e,t){return!t||"object"!==Pe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Re(e,t){return(Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ie=function(e){function t(){return ze(this,t),je(this,Ne(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Re(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},o.a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.a.createElement("path",{d:"M6.56 7.98C6.1 7.52 5.31 7.6 5 8.17c-.28.51-.5 1.03-.67 1.58-.19.63.31 1.25.96 1.25h.01c.43 0 .82-.28.94-.7.12-.4.28-.79.48-1.17.22-.37.15-.84-.16-1.15zM5.31 13h-.02c-.65 0-1.15.62-.96 1.25.16.54.38 1.07.66 1.58.31.57 1.11.66 1.57.2.3-.31.38-.77.17-1.15-.2-.37-.36-.76-.48-1.16-.12-.44-.51-.72-.94-.72zm2.85 6.02c.51.28 1.04.5 1.59.66.62.18 1.24-.32 1.24-.96v-.03c0-.43-.28-.82-.7-.94-.4-.12-.78-.28-1.15-.48-.38-.21-.86-.14-1.16.17l-.03.03c-.45.45-.36 1.24.21 1.55zM13 4.07v-.66c0-.89-1.08-1.34-1.71-.71L9.17 4.83c-.4.4-.4 1.04 0 1.43l2.13 2.08c.63.62 1.7.17 1.7-.72V6.09c2.84.48 5 2.94 5 5.91 0 2.73-1.82 5.02-4.32 5.75-.41.12-.68.51-.68.94v.02c0 .65.61 1.14 1.23.96C17.57 18.71 20 15.64 20 12c0-4.08-3.05-7.44-7-7.93z"}))}}])&&Ce(n.prototype,r),i&&Ce(n,i),t}(o.a.PureComponent);function Fe(e){return(Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Me(e,t){return!t||"object"!==Fe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ue=function(e){function t(){return De(this,t),Me(this,Ae(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Be(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},o.a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.a.createElement("path",{d:"M14.83 4.83L12.7 2.7c-.62-.62-1.7-.18-1.7.71v.66C7.06 4.56 4 7.92 4 12c0 3.64 2.43 6.71 5.77 7.68.62.18 1.23-.32 1.23-.96v-.03c0-.43-.27-.82-.68-.94C7.82 17.03 6 14.73 6 12c0-2.97 2.16-5.43 5-5.91v1.53c0 .89 1.07 1.33 1.7.71l2.13-2.08c.4-.38.4-1.02 0-1.42zm4.84 4.93c-.16-.55-.38-1.08-.66-1.59-.31-.57-1.1-.66-1.56-.2l-.01.01c-.31.31-.38.78-.17 1.16.2.37.36.76.48 1.16.12.42.51.7.94.7h.02c.65 0 1.15-.62.96-1.24zM13 18.68v.02c0 .65.62 1.14 1.24.96.55-.16 1.08-.38 1.59-.66.57-.31.66-1.1.2-1.56l-.02-.02c-.31-.31-.78-.38-1.16-.17-.37.21-.76.37-1.16.49-.41.12-.69.51-.69.94zm4.44-2.65c.46.46 1.25.37 1.56-.2.28-.51.5-1.04.67-1.59.18-.62-.31-1.24-.96-1.24h-.02c-.44 0-.82.28-.94.7-.12.4-.28.79-.48 1.17-.21.38-.13.86.17 1.16z"}))}}])&&Le(n.prototype,r),i&&Le(n,i),t}(o.a.PureComponent);function Ve(e){return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $e(e,t){return!t||"object"!==Ve(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xe(e){return(Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ke(e,t){return(Ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ge=function(e){function t(){return He(this,t),$e(this,Xe(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ke(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return o.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},o.a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.a.createElement("path",{d:"M6 14c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3c.55 0 1-.45 1-1s-.45-1-1-1H7v-2c0-.55-.45-1-1-1zm0-4c.55 0 1-.45 1-1V7h2c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm11 7h-2c-.55 0-1 .45-1 1s.45 1 1 1h3c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1s-1 .45-1 1v2zM14 6c0 .55.45 1 1 1h2v2c0 .55.45 1 1 1s1-.45 1-1V6c0-.55-.45-1-1-1h-3c-.55 0-1 .45-1 1z"}))}}])&&We(n.prototype,r),i&&We(n,i),t}(o.a.PureComponent),Qe=Object(r.createContext)(),qe=window.require("electron").ipcRenderer;function Ye(e){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tt(e,t){return!t||"object"!==Ye(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nt(e){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rt(e,t){return(rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ot=function(e){function t(){return Je(this,t),tt(this,nt(t).apply(this,arguments))}var n,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rt(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e,t=this,n=this.context,i=n.set,a=(n.preset,n.presetIsMobile),l=(n.presetIsDesktop,n.controller),u=n.backdrop,c=n.loop,s=n.show,f=n.zoom,p=n.page,d=n.outBrowsing,m=n.toPage,b=n.toPrevPage,h=n.toNextPage,g=n.toggleZoom,y=n.toggleRotate;return o.a.createElement(r.Fragment,null,o.a.createElement("div",{id:"zmageControl",className:L()(A.a.controls,Ze({},A.a.show,!f&&s)),style:{backgroundColor:u}},l.rotate&&o.a.createElement("div",{id:"zmageControlRotateLeft",className:L()(A.a.rotateLeft,Ze({},A.a.show,!f&&s)),onClick:y("left")},o.a.createElement(Ie,null)),l.rotate&&o.a.createElement("div",{id:"zmageControlRotateRight",className:L()(A.a.rotateRight,Ze({},A.a.show,!f&&s)),onClick:y("right")},o.a.createElement(Ue,null)),l.download&&o.a.createElement("div",{id:"zmageControlDownload",className:L()(A.a.download,Ze({},A.a.show,!f&&s)),onClick:function(){var e,n;console.log(t.context.set[t.context.page]),e=t.context.set[t.context.page].src,n=(n=t.context.set[t.context.page].alt)||"IRP_".concat(Math.random().toString().substring(2,7),".png"),qe.send("downloadFile",{url:e,name:n,extensions:".png",isBase64:e.startsWith("data:")})}},o.a.createElement(de,null)),l.zoom&&o.a.createElement("div",{id:"zmageControlZoom",className:L()(A.a.zoom,Ze({},A.a.show,!f&&s)),onClick:a?function(){return window.open(i[p].src)}:g},o.a.createElement(Ge,null)),l.close&&o.a.createElement("div",{id:"zmageControlClose",className:L()(A.a.close,Ze({},A.a.show,!f&&s)),onClick:f?g:d},o.a.createElement(ae,null))),Array.isArray(i)&&i.length>1&&l.flip&&o.a.createElement(r.Fragment,null,(c||0!==p)&&o.a.createElement("div",{id:"zmageControlFlipLeft",className:L()(A.a.flipLeft,Ze({},A.a.show,!f&&s)),style:{backgroundColor:u},onClick:b},o.a.createElement(X,null)),(c||p!==i.length-1)&&o.a.createElement("div",{id:"zmageControlFlipRight",className:L()(A.a.flipRight,Ze({},A.a.show,!f&&s)),style:{backgroundColor:u},onClick:h},o.a.createElement(J,null))),Array.isArray(i)&&i.length>1&&l.pagination&&o.a.createElement("div",{id:"zmageControlPagination",className:L()(A.a.pages,(e={},Ze(e,A.a.show,!f&&s),Ze(e,A.a.mobile,a),e)),style:{backgroundColor:u}},i.map((function(e,t){return t===p?o.a.createElement("span",{key:t,id:"zmageControlPaginationActive",className:A.a.blackDot}):o.a.createElement("span",{key:t,className:A.a.whiteDot,onClick:function(){return m(t)}})}))))}}])&&et(n.prototype,i),a&&et(n,a),t}(o.a.PureComponent);ot.contextType=Qe;var it=n(10),at=n.n(it),lt=n(8),ut=n.n(lt);function ct(e){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ft(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pt(e,t){return!t||"object"!==ct(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function dt(e){return(dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mt(e,t){return(mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var bt=function(e){function t(){return st(this,t),pt(this,dt(t).apply(this,arguments))}var n,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mt(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e,t,n,i=this.props,a=i.show,l=i.load,u=i.invalidate,c=i.onReload,s=i.backdrop;return o.a.createElement(r.Fragment,null,(l||u)&&o.a.createElement("div",{id:"zmageLoading",className:L()(ut.a.loadingContainer,(e={},t=ut.a.show,n=a,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e))},l&&o.a.createElement("div",{className:ut.a.loading},o.a.createElement(we,null)),u&&o.a.createElement("button",{className:ut.a.reload,onClick:c,style:{background:s}},o.a.createElement(Oe,null))))}}])&&ft(n.prototype,i),a&&ft(n,a),t}(o.a.PureComponent);bt.contextType=Qe;var ht=n(11),gt=n.n(ht);function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _t=function(){return document.body.scrollWidth},kt=function(){return document.documentElement.clientWidth},xt=function(){return window.innerHeight},Et=function(){return document.documentElement.clientHeight},St={html:{},body:{}},Tt=function(){document.documentElement.style.overflow=St.html.overflow,document.body.style.overflow=St.body.overflow,document.body.style.position=St.body.position},Ot=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.keys(t).reduce((function(e,n){return t[n]?e.concat("".concat(n,"=").concat(t[n])):e}),[]).join("&");return n?"".concat(e).concat(e.includes("?")?"&":"?").concat(n):e},Pt=gt()((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ref,r=void 0===n?100:n;return e?e.includes("%")?r*Number(e.substring(0,e.length-1))/100:Number(e.substring(0,e.length-2)):e})),zt=gt()((function(e){var t=["Webkit","Moz","Ms","O"];return Object.keys(e).reduce((function(n,r){var o=t.reduce((function(t,n){return vt({},t,wt({},"".concat(n).concat((o=r).charAt(0).toUpperCase()+o.slice(1)),e[r]));var o}),{});return vt({},n,{},o)}),e)})),Ct=function(e){return(0^e)===e},jt=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{loop:!0};return 0===t?0:0===n?e:e<0||e>t-1?void 0:r.loop?Math.abs(t+n+e)%t:e+n<0||e+n>t-1?void 0:e+n},Nt={0:[0],1:[-1,0,1],2:[-2,-1,0,1,2],3:[-3,-2,-1,0,1,2,3]},Rt="cubic-bezier(0.60, 0.0, 0.10, 1.0)",It=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return"transform ".concat(350*e,"ms ").concat(Rt,", opacity ").concat(350*e,"ms ").concat(Rt,", clip-path ").concat(350*e,"ms ").concat(Rt)},Ft=function(e,t,n,r){var o=t.coverRef,i=t.coverPos,a=t.rotate,l=t.pageIsCover;if(r&&r.phase===Ut.END)return{_type:"cover",_behavior:"merge",y:r.getCurrentOffset().y>0?xt():-xt()};if(o.current){var u=o.current.naturalWidth,c=o.current.getBoundingClientRect(),s=c.top,f=c.left,p=c.width,d=c.height,m=window.getComputedStyle(o.current),b=m.opacity,h=m.borderRadius;return l?{_type:"cover",x:-_t()/2+f+p/2,y:-xt()/2+s+d/2,opacity:Number(b)||1,scale:u?p/u:1,rotate:a-a%360,radius:Pt(h,{ref:p})}:{_type:"cover",x:0,y:-xt(),opacity:0,scale:u?p/u:1,rotate:a-a%360,radius:Pt(h,{ref:p})}}return i?{_type:"cover",x:i.x?i.x-_t()/2:0,y:i.y?i.y-xt()/2:0,opacity:0,scale:0,rotate:0,radius:0}:{_type:"cover",x:0,y:0,opacity:0,scale:0,rotate:0,radius:0}},Dt=function(e,t,n){var r=t.radius,o=t.edge,i=t.rotate,a=n.current,l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=kt(),o=Et(),i=e+2*n,a=t+2*n,l=i>r?r/(e+2*n):1,u=a>o?o/(t+2*n):1;return Math.min(l,u)+.002}(a.naturalWidth,a.naturalHeight,o);return console.log("getBrowsingStyle",l),{_type:"browsing",x:0,y:0,opacity:1,scale:l,rotate:i,radius:r}},Lt=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.clientX,i=void 0===o?_t()/2:o,a=r.clientY,l=void 0===a?xt()/2:a,u=t.radius,c=t.edge,s=t.rotate,f=n.current,p=f.naturalWidth,d=f.naturalHeight,m=c||50,b=_t(),h=xt(),g=p-b+2*m,y=d-h+2*m,v=p>b?(p-b)/2+m-g*(i/b):0,w=d>h?(d-h)/2+m-y*(l/h):0;return{_type:"zooming",x:v,y:w,opacity:1,scale:1,rotate:s,radius:u}},Mt=function(e){var t=0,n=0,r=1;switch(e){case"fade":r=0;break;case"crossFade":t=30,r=0;break;case"swipe":t=_t()+10;break;case"zoom":n=.08,r=0}return{offset:t,overflow:n,opacity:r}},At=120,Bt=80,Ut={BEGIN:"BEGIN",MOVING:"MOVING",END:"END"},Vt="SWIPING",Ht="LIVING",Wt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin;return{updateCounter:0,phase:Ut.BEGIN,behavior:void 0,begin:{time:(new Date).getTime(),origin:t||{x:0,y:0},offset:{x:0,y:0}},current:{origin:t||{x:0,y:0},offset:{x:0,y:0}},getCurrentOffset:function(){return{x:this.current.origin.x-this.begin.origin.x,y:this.current.origin.y-this.begin.origin.y}},getCurrentDistance:function(){var e=this.getCurrentOffset();return{x:Math.abs(e.x),y:Math.abs(e.y)}},update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin;if(this.phase=Ut.MOVING,this.current.origin=t,!this.behavior){var n=this.getCurrentDistance();n.x>n.y?n.x>5&&(this.behavior=Vt):n.y>5&&(this.behavior=Ht)}return this},end:function(){this.phase=Ut.END;var e=(new Date).getTime()-this.begin.time,t=this.getCurrentDistance();return(this.behavior===Vt&&t.x/e<.35&&t.x<At||this.behavior===Ht&&t.y/e<.35&&t.y<Bt)&&(this.behavior=void 0),this}}};function $t(e){return($t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xt(){return(Xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach((function(t){Jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qt(e){return(qt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zt(e,t){return(Zt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var en=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==$t(t)&&"function"!=typeof t?Yt(e):t}(this,qt(t).call(this,e)),Jt(Yt(r),"updateZoomEventListenerWithState",(function(){var e=r.context,t=e.show,n=e.zoom;t&&n&&!r.listeningMouseMove?(window.addEventListener("mousemove",r.handleMouseMove),r.listeningMouseMove=!0):(window.removeEventListener("mousemove",r.handleMouseMove),r.listeningMouseMove=!1)})),Jt(Yt(r),"updateCurrentImageStyle",(function(){var e=r.state.touchProfile,t=function(e,t,n,r){var o=e.show,i=t.zoom;return o?i?Lt(e,t,n):Dt(e,t,n):Ft(e,t,n,r)}(r.props,r.context,r.imageRef,e);r.setCurrentStyle(t)})),Jt(Yt(r),"handleResize",(function(){r.updateCurrentImageStyle()})),Jt(Yt(r),"handleScroll",(function(){if(r.imageRef.current){var e=r.context.show;r.imageRef.current.style.top="calc(50% + ".concat(e?0:r.initialPageOffset-window.pageYOffset,"px)")}})),Jt(Yt(r),"handleClick",(function(){var e=r.context,t=e.zoom,n=e.toggleZoom;t&&n()})),Jt(Yt(r),"handleTouchStart",(function(e){var t=e.touches[0],n=t.clientX,o=t.clientY;r.setTouchProfile(new Wt({origin:{x:n,y:o}}))})),Jt(Yt(r),"handleTouchMove",(function(e){var t=r.state.touchProfile,n=e.touches[0],o=n.clientX,i=n.clientY;r.setTouchProfile(t.update({origin:{x:o,y:i}}))})),Jt(Yt(r),"handleTouchEnd",(function(e){var t=r.state.touchProfile;r.setTouchProfile(t.end())})),Jt(Yt(r),"handleMouseMove",(function(e){var t=Lt(r.props,r.context,r.imageRef,e);r.setCurrentStyle(t)})),Jt(Yt(r),"handleImageLoadStart",(function(){r.setState({isFetching:!0,invalidate:!1},r.handleDetectImageLoadComplete)})),Jt(Yt(r),"handleDetectImageLoadComplete",(function(){var e,t,n;clearInterval(r.imageLoadingTimer),r.imageLoadingTimer=(e=r.imageRef.current,t=r.handleImageLoadEnd,n=setInterval((function(){e&&!e.complete||(clearInterval(n),t&&t())}),500))})),Jt(Yt(r),"handleImageLoadEnd",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.invalidate;clearInterval(r.imageLoadingTimer),r.setState({isFetching:!1,invalidate:void 0===t?r.state.invalidate:t})})),Jt(Yt(r),"handleImageLoad",(function(){r.updateCurrentImageStyle()})),Jt(Yt(r),"handleImageError",(function(){r.handleImageLoadEnd({invalidate:!0})})),Jt(Yt(r),"handleImageAbort",(function(){r.handleImageLoadEnd({invalidate:!0})})),Jt(Yt(r),"handleImageReload",(function(){var e=r.context.page;r.handleSetTimestamp(e)})),Jt(Yt(r),"handleSetTimestamp",(function(e){var t=r.context.set,n=r.state.timestamp;r.setState({timestamp:Gt({},n,Jt({},t[e].src,(new Date).getTime()))})})),Jt(Yt(r),"handleGetTimestamp",(function(e){var t=r.context.set;return r.state.timestamp[t[e].src]})),Jt(Yt(r),"setCurrentStyle",(function(e){var t=r.context.animate,n=r.state.currentStyle;r.setState({currentStyle:"merge"===e._behavior?Gt({},n,{},e):e,animateConfig:Mt(t.flip)})})),Jt(Yt(r),"setTouchProfile",(function(e){e&&r.setState({touchProfile:Gt({},e)},(function(){var e=r.context,t=e.outBrowsing,n=e.toPrevPage,o=e.toNextPage,i=r.state.touchProfile;i.phase===Ut.END&&(i.behavior===Vt?i.getCurrentOffset().x<0?o():n():i.behavior===Ht&&t())}))})),Jt(Yt(r),"getStyle",(function(e,t,n){var o,i,a,l=r.context,u=l.set,c=l.zoom,s=l.page,f=r.state,p=f.invalidate,d=f.currentStyle,m=f.touchProfile,b=f.animateConfig,h=b.offset,g=b.overflow,y=b.opacity,v=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.enableSwiping,o=n.enableLiving,i={x:0,y:0};if(e&&e.phase===Ut.MOVING){var a=e.getCurrentOffset();e.behavior===Vt&&r?(i.x=a.x,t="none"):e.behavior===Ht&&o&&(i.y=a.y,t="none")}return e&&e.phase===Ut.END&&(t=It(2)),{touch:i,transition:t}}(m,{enableSwiping:u.length>1,enableLiving:!0}),w=v.touch,_=v.transition;if(n){var k=1===t?d.x+w.x+h*e:d.x+h*e,x=d.y;o="translate3d(-50%, -50%, 0) translate3d(".concat(k,"px, ").concat(x,"px, 0px) scale3d(").concat(d.scale+g,", ").concat(d.scale+g,", 1) rotate3d(0, 0, 1, 0deg)"),i=10*t,a="none"}else{var E=d.x+w.x,S=d.y+w.y;o="translate3d(-50%, -50%, 0) translate3d(".concat(E,"px, ").concat(S,"px, 0px) scale3d(").concat(d.scale,", ").concat(d.scale,", 1) rotate3d(0, 0, 1, ").concat(d.rotate,"deg)"),y=d.opacity,i=10}return Gt({},zt({transform:o}),{cursor:c?"zoom-out":"initial",zIndex:i,opacity:p?0:y,pointerEvents:a,transition:_},u[s].style)})),Jt(Yt(r),"buildImageSeries",(function(e){var t=r.context,n=t.loop,o=t.set,i=t.page;return o.length>1?function(e){return Nt[e]}(e).reduce((function(e,t){var a=jt(i,o.length,t,{loop:n});return Ct(a)&&e.push(r.buildImage({step:t,imageIndex:a})),e}),[]):r.buildImage({step:0,imageIndex:i})})),Jt(Yt(r),"buildImage",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.step,i=t.imageIndex,a=r.context,l=a.set,u=a.show,c=a.zoom,s=a.page,f=a.pageWithStep,p=r.state.invalidate,d=Math.abs(n),m=d>0,b=f+n,h=r.getStyle(n,d,m),g=L()(at.a.imageLayer,l[i].className,(Jt(e={},at.a.zooming,c),Jt(e,at.a.invalidate,p),e)),y={key:"".concat(b,"-").concat(l[i].src),style:h,className:g,src:Ot(l[i].src,{t:r.handleGetTimestamp(s)}),alt:l[i].alt},v={id:"zmageImage",ref:r.imageRef,onLoad:r.handleImageLoad,onError:r.handleImageError,onAbort:r.handleImageAbort,onClick:r.handleClick};if(m){var w=u&&!c;return w&&o.a.createElement("img",y)}return o.a.createElement("img",Xt({},y,v))})),r.imageRef=o.a.createRef(),r.initialPageOffset=window.pageYOffset,r.listeningMouseMove=!1,r.imageLoadingTimer=null,r.state={isFetching:!0,invalidate:!1,currentStyle:Ft(e,n),animateConfig:Mt(n.animate.flip),touchProfile:new Wt,timestamp:{}},r}var n,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zt(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){var e=this,t=this.context,n=t.presetIsMobile,r=t.presetIsDesktop;window.addEventListener("resize",this.handleResize),n&&window.requestAnimationFrame((function(){window.addEventListener("touchstart",e.handleTouchStart),window.addEventListener("touchmove",e.handleTouchMove),window.addEventListener("touchend",e.handleTouchEnd)})),r&&window.requestAnimationFrame((function(){window.addEventListener("scroll",e.handleScroll)}))}},{key:"componentDidUpdate",value:function(e){var t=e.show,n=e.zoom,r=e.rotate,o=e.page,i=this.props,a=i.show,l=i.zoom,u=i.rotate,c=i.page,s=this.context.presetIsMobile;t===a&&n===l&&r===u||(t?this.updateCurrentImageStyle():(this.updateCurrentImageStyle(),this.handleDetectImageLoadComplete(),s&&(St.html.overflow=document.documentElement.style.overflow,St.body.overflow=document.body.style.overflow,St.body.position=document.body.style.position,document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden",document.body.style.position="relative")),this.updateZoomEventListenerWithState()),o!==c&&this.handleImageLoadStart()}},{key:"componentWillUnmount",value:function(){var e=this.context,t=e.presetIsMobile,n=e.presetIsDesktop;t&&(window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd)),n&&window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize),window.removeEventListener("mousemove",this.handleMouseMove),clearInterval(this.imageLoadingTimer)}},{key:"render",value:function(){var e=this.context,t=(e.set,e.show),n=(e.zoom,e.page,e.pageIsCover),i=(e.pageWithStep,this.state),a=i.isFetching,l=i.invalidate;return o.a.createElement(r.Fragment,null,o.a.createElement(bt,{show:t&&(!n||l),load:a,invalidate:l,onReload:this.handleImageReload}),this.buildImageSeries(2))}}])&&Qt(n.prototype,i),a&&Qt(n,a),t}(o.a.PureComponent);en.contextType=Qe;var tn=n(15),nn=n.n(tn);function rn(e){return(rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function on(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function an(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ln(e,t){return!t||"object"!==rn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function un(e){return(un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cn(e,t){return(cn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var sn=function(e){function t(){return on(this,t),ln(this,un(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cn(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.show,n=e.zoom,r=this.context,i=r.backdrop,a=r.outBrowsing,l=r.toggleZoom,u=r.presetIsDesktop;return o.a.createElement("div",{id:"zmageBackground",className:nn.a.backgroundLayer,onClick:n?l:a,style:{opacity:t?1:0,background:i||"",transitionDelay:u?t?".15s":"0s":t?"0s":".35s"}})}}])&&an(n.prototype,r),i&&an(n,i),t}(o.a.Component);sn.contextType=Qe;var fn=function(e,t,n){return 0===n||e&&e.current&&e.current.getAttribute("src")===t[n].src},pn=function(e,t,n){var r=function(e,t){return Ct(e)&&e<t.length-1?e:t.length-1}(t,n);return{page:r,pageIsCover:fn(e,n,r)}},dn=function(e){e&&e.current&&(e.current.style.visibility="visible")};function mn(e){return(mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(n),!0).forEach((function(t){_n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yn(e){return(yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wn(e,t){return(wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kn=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==mn(t)&&"function"!=typeof t?vn(e):t}(this,yn(t).call(this,e)),_n(vn(n),"getPropsWithEnv",(function(){var e=n.props,t=e.preset,r=e.controller,o=e.hotKey,i=e.animate,a=function(e){switch(e){case"desktop":return O;case"mobile":return P;case"auto":return T||(console.warn("Zmage: The value 'auto' for the props 'preset' has been deprecated, replace with one of 'Desktop' or 'Mobile', the value 'auto' will be fallback to 'desktop'"),T=!0),O;default:return O}}(t);return hn({},n.props,{presetIsMobile:"mobile"===t,presetIsDesktop:"mobile"!==t,controller:hn({},a.controller,{},r),hotKey:hn({},a.hotKey,{},o),animate:hn({},a.animate,{},i)})})),_n(vn(n),"init",(function(){var e=n.getPropsWithEnv(),t=e.isBrowsingControlled,r=e.coverRef,o=(e.set,e.onBrowsing),i=e.hideOnScroll,a=e.coverVisible,l=e.presetIsDesktop,u=n.state,c=u.show,s=(u.page,u.pageIsCover);c||(window.addEventListener("keydown",n.handleKeyDown),i&&window.addEventListener("scroll",n.handleScroll),window.requestAnimationFrame((function(){n.setState({show:!0,zoom:!1,rotate:0},(function(){l&&s&&!a&&function(e){setTimeout((function(){e&&e.current&&(e.current.style.visibility="hidden")}),100)}(r),!t&&"function"==typeof o&&o(!0)}))})))})),_n(vn(n),"unInit",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.force,r=n.getPropsWithEnv(),o=r.isBrowsingControlled,i=r.coverRef,a=(r.set,r.onBrowsing),l=r.hideOnScroll,u=r.coverVisible,c=r.presetIsMobile,s=r.presetIsDesktop,f=n.state,p=f.show,d=(f.page,f.pageIsCover);(p||t)&&(window.removeEventListener("keydown",n.handleKeyDown),l&&window.removeEventListener("scroll",n.handleScroll),!d&&!u&&dn(i),n.setState({show:!1,zoom:!1,rotate:0},(function(){return setTimeout((function(){n.setState({mounted:!1},(function(){c&&Tt(),s&&d&&!u&&dn(i),!o&&"function"==typeof a&&a(!1)}))}),s?340:690)})))})),_n(vn(n),"handleKeyDown",(function(e){var t=n.getPropsWithEnv(),r=t.set,o=t.hotKey,i=t.loop,a=t.outBrowsing,l=n.state,u=l.zoom,c=l.page;switch(e.keyCode){case 27:e.preventDefault(),o.close&&(u?n.handleToggleZoom():a());break;case 32:e.preventDefault(),o.zoom&&n.handleToggleZoom();break;case 37:e.preventDefault(),(i||0!==c)&&!u&&o.flip&&n.handleToPrevPage();break;case 39:e.preventDefault(),(i||c!==r.length-1)&&!u&&o.flip&&n.handleToNextPage();break;default:return}})),_n(vn(n),"handleScroll",(function(){var e=n.props.outBrowsing;n.state.show&&e()})),_n(vn(n),"handleToPage",(function(e){var t=n.state.page;n.handleSwitchPages(e-t)()})),_n(vn(n),"handleSwitchPages",(function(e){var t=n.props,r=t.coverRef,o=t.onSwitching,i=t.loop;return function(){var t=n.props.set;if(t.length>1){var a=n.state,l=a.page,u=a.pageWithStep,c=jt(l,t.length,e,{loop:i});"number"==typeof c&&n.setState({page:c,pageIsCover:fn(r,t,c),pageWithStep:u+e,zoom:!1,rotate:0},(function(){"function"==typeof o&&o(c)}))}}})),_n(vn(n),"handleToPrevPage",n.handleSwitchPages(-1)),_n(vn(n),"handleToNextPage",n.handleSwitchPages(1)),_n(vn(n),"handleToggleZoom",(function(){var e=n.props.onZooming;n.setState({zoom:!n.state.zoom},(function(){"function"==typeof e&&e(n.state.zoom)}))})),_n(vn(n),"handleToggleRotate",(function(e){var t=n.props.onRotating;switch(e){case"left":return function(){return n.setState({rotate:n.state.rotate-90},(function(){"function"==typeof t&&t(n.state.rotate)}))};case"right":return function(){return n.setState({rotate:n.state.rotate+90},(function(){"function"==typeof t&&t(n.state.rotate)}))};default:return function(){return n.setState({rotate:0},(function(){"function"==typeof t&&t(0)}))}}}));var r=pn(e.coverRef,e.defaultPage,e.set),o=r.page,i=r.pageIsCover;return n.state={mounted:!1,show:!1,zoom:!1,rotate:0,page:o,pageIsCover:i,pageWithStep:o},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wn(e,t)}(t,e),n=t,i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.browsing?hn({mounted:!0},t.show?{}:pn(e.coverRef,e.defaultPage,e.set)):null}}],(r=[{key:"componentDidMount",value:function(){this.props.browsing&&this.init()}},{key:"componentDidUpdate",value:function(e){e.browsing!==this.props.browsing&&(this.props.browsing?this.init():this.unInit())}},{key:"componentWillUnmount",value:function(){this.unInit({force:!0})}},{key:"render",value:function(){var e=this.getPropsWithEnv(),t=e.coverRef,n=e.coverPos,r=e.outBrowsing,i=e.set,a=e.preset,l=e.presetIsMobile,u=e.presetIsDesktop,c=e.controller,s=e.hotKey,f=e.animate,d=e.hideOnScroll,m=e.coverVisible,b=e.backdrop,h=e.zIndex,g=e.radius,y=e.edge,v=e.loop,w=this.state,_=w.mounted,k={show:w.show,zoom:w.zoom,rotate:w.rotate,page:w.page,pageIsCover:w.pageIsCover,pageWithStep:w.pageWithStep},x=hn({coverRef:t,coverPos:n,outBrowsing:r,set:i,preset:a,presetIsMobile:l,presetIsDesktop:u,controller:c,hotKey:s,animate:f,hideOnScroll:d,coverVisible:m,backdrop:b,radius:g,edge:y,loop:v},k,{toPage:this.handleToPage,toPrevPage:this.handleToPrevPage,toNextPage:this.handleToNextPage,toggleZoom:this.handleToggleZoom,toggleRotate:this.handleToggleRotate});return o.a.createElement(Qe.Provider,{value:x},_&&o.a.createElement(F,{id:"zmage",zIndex:h,className:p.a.wrapperLayer},o.a.createElement(sn,k),o.a.createElement(ot,k),o.a.createElement(en,k)))}}])&&gn(n.prototype,r),i&&gn(n,i),t}(o.a.PureComponent);function xn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function En(e){return(En="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sn(){return(Sn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function On(e){return(On=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zn(e,t){return(zn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}kn.contextType=Qe,kn.defaultProps={isBrowsingControlled:!1,browsing:!1,coverRef:o.a.createRef(),outBrowsing:function(){},defaultPage:0,set:[]};var Cn={x:0,y:0},jn={x:0,y:0};"undefined"!=typeof window&&window.document&&window.document.documentElement&&document.documentElement.addEventListener("click",(function(e){jn={x:e.clientX,y:e.clientY},setTimeout((function(){return jn={x:0,y:0}}),100)}));var Nn=function(e){function t(e){var n,r,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==En(t)&&"function"!=typeof t?Pn(e):t}(this,On(t).call(this,e)),r=Pn(n),i=function(){var e=n.props.destroyer;n.setState({browsing:!1}),setTimeout(e,350)},(o="outBrowsing")in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n.state={browsing:!0},Cn=jn,n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zn(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=z(this.props),t=e.calleeProps,n=e.configProps,r=this.state.browsing,i=t.coverRef?{coverRef:t.coverRef}:{coverPos:r?jn:Cn};return o.a.createElement(kn,Sn({browsing:r},i,{outBrowsing:this.outBrowsing},n))}}])&&Tn(n.prototype,r),i&&Tn(n,i),t}(o.a.PureComponent);Nn.propTypes=x,Nn.defaultProps=E;var Rn={REF:o.a.createRef(),CONTAINER:null,PORTAL:null},In=function(e){var t=e.coverRef,n=xn(e,["coverRef"]);return Rn.PORTAL=document.createElement("div"),Rn.PORTAL.id="zmagePortal",Rn.CONTAINER=document.body,Rn.CONTAINER.appendChild(Rn.PORTAL),a.a.render(o.a.createElement(Nn,Sn({ref:Rn.REF,coverRef:t,destroyer:function(){return Rn.CONTAINER.removeChild(Rn.PORTAL)}},n)),Rn.PORTAL),Rn.REF.current.outBrowsing};function Fn(e){return(Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ln(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function An(e){return(An=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Un(e,t){return(Un=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hn=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Fn(t)&&"function"!=typeof t?Bn(e):t}(this,An(t).call(this,e)),Vn(Bn(n),"attachBrowserToImage",(function(){var e=n.props,t=(e.children,Ln(e,["children"]));n.contentRef.current&&n.contentRef.current.querySelectorAll("img").forEach((function(e){!e.getAttribute("zmage")&&e.getAttribute("src")&&(e.style.cursor="zoom-in",e.setAttribute("zmage",Date.now()),e.addEventListener("click",(function(){return In(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach((function(t){Vn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{coverRef:{current:e},src:e.getAttribute("src")}))})))}))})),n.contentRef=o.a.createRef(),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Un(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){window.__ZMAGE_BROWSER__=In,this.attachBrowserToImage()}},{key:"componentDidUpdate",value:function(e,t,n){this.attachBrowserToImage()}},{key:"render",value:function(){var e=this.props.children;return o.a.createElement("div",{ref:this.contentRef},e)}}])&&Mn(n.prototype,r),i&&Mn(n,i),t}(o.a.PureComponent);Hn.propTypes=x,Hn.defaultProps=E;var Wn=Hn;function $n(e){return($n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xn(){return(Xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){Jn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qn(e){return(qn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zn(e,t){return(Zn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var er=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==$n(t)&&"function"!=typeof t?Yn(e):t}(this,qn(t).call(this,e)),Jn(Yn(n),"inBrowsing",(function(){n.isBrowsingControlled?n.props.onBrowsing(!0):n.setState({browsing:!0})})),Jn(Yn(n),"outBrowsing",(function(){n.isBrowsingControlled?n.props.onBrowsing(!1):n.setState({browsing:!1})})),n.coverRef=o.a.createRef(),n.isBrowsingControlled=n.props.hasOwnProperty("browsing"),n.state={browsing:!1},n}var n,i,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zn(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this,t=z(this.props),n=t.coverProps,i=t.stateProps,a=t.configProps,l=t.restProps,u=this.state.browsing;return o.a.createElement(r.Fragment,null,o.a.createElement("img",Xn({className:n.className,style:Gn({cursor:"zoom-in"},n.style),src:n.src,alt:n.alt,onClick:function(t){e.inBrowsing(),"function"==typeof n.onClick&&n.onClick(t)},ref:function(t){n.forwardedRef&&(n.forwardedRef.current=t),e.coverRef&&(e.coverRef.current=t)}},l)),o.a.createElement(kn,Xn({isBrowsingControlled:this.isBrowsingControlled,browsing:this.isBrowsingControlled?i.controlledBrowsing:u,coverRef:this.coverRef,outBrowsing:this.outBrowsing},a)))}}])&&Qn(n.prototype,i),a&&Qn(n,a),t}(o.a.PureComponent);er.propTypes=x,er.defaultProps=E;var tr=o.a.forwardRef((function(e,t){return o.a.createElement(er,Xn({},e,{forwardedRef:t}))}));tr.browsing=In,tr.Browsing=In,tr.wrapper=Wn,tr.Wrapper=Wn;var nr=tr;function rr(e){return(rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ir(e,t){return!t||"object"!==rr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ar(e){return(ar=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lr(e,t){return(lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ur=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=ir(this,ar(t).call(this,e))).state={browsing:!1},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lr(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:s.a.pageContainer},o.a.createElement("div",{className:s.a.page},o.a.createElement("a",{className:s.a.github,href:"https://github.com/Caldis/react-zmage"},o.a.createElement("div",{"aria-label":"Github"},o.a.createElement("svg",{focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true"},o.a.createElement("path",{d:"M12.007 0C6.12 0 1.1 4.27.157 10.08c-.944 5.813 2.468 11.45 8.054 13.312.19.064.397.033.555-.084.16-.117.25-.304.244-.5v-2.042c-3.33.735-4.037-1.56-4.037-1.56-.22-.726-.694-1.35-1.334-1.756-1.096-.75.074-.735.074-.735.773.103 1.454.557 1.846 1.23.694 1.21 2.23 1.638 3.45.96.056-.61.327-1.178.766-1.605-2.67-.3-5.462-1.335-5.462-6.002-.02-1.193.42-2.35 1.23-3.226-.327-1.015-.27-2.116.166-3.09 0 0 1.006-.33 3.3 1.23 1.966-.538 4.04-.538 6.003 0 2.295-1.5 3.3-1.23 3.3-1.23.445 1.006.49 2.144.12 3.18.81.877 1.25 2.033 1.23 3.226 0 4.607-2.805 5.627-5.476 5.927.578.583.88 1.386.825 2.206v3.29c-.005.2.092.393.26.507.164.115.377.14.565.063 5.568-1.88 8.956-7.514 8.007-13.313C22.892 4.267 17.884.007 12.008 0z"})))),o.a.createElement("div",{className:s.a.project},o.a.createElement("div",{align:"center"},o.a.createElement("a",{href:"https://github.com/Caldis/react-zmage"},o.a.createElement("img",{src:"logo.png"}))),o.a.createElement("h1",null,"react-zmage"),o.a.createElement("h4",null,"一个基于 React 的可缩放图片控件, 您可以用这个控件替代原生的 img 标签, 令其附带图片缩放功能"),o.a.createElement("div",{className:s.a.button,onClick:function(){return window.open("https://github.com/Caldis/react-zmage")}},"马上开始")),o.a.createElement("div",{className:s.a.scrollDownHint},o.a.createElement("span",null,"向下滚动查看更多示例"))),o.a.createElement("div",{className:s.a.horizon},o.a.createElement("div",{className:s.a.helpBox},o.a.createElement("h2",null,"轻松使用"),o.a.createElement("p",null,"一如原生的 ","<img/>"," 标签, 只需要直接替换 img 为 Zmage 即可, 您依旧可以使用 style, className 等原生属性"),o.a.createElement("p",null,"现在, 点击图片, 您即可进入",o.a.createElement("b",null,"查看模式")),o.a.createElement("pre",null,o.a.createElement(u.a,{className:"language-javascript"},'<Zmage\n src="https://your.image.link.jpg"\n alt="最简单的使用方式"\n/>'))),o.a.createElement("div",{className:s.a.imageBox},o.a.createElement(nr,{className:s.a.image,src:"imgSet/childsDream/1.jpg",alt:"最简单的使用方式"}),o.a.createElement("a",{href:"https://www.behance.net/gallery/56119387/_"},"via. sslololss Guihuahuzi on behance"))),o.a.createElement("div",{className:s.a.horizon},o.a.createElement("div",{className:s.a.helpBox},o.a.createElement("h2",null,"图片放大"),o.a.createElement("p",null,"点击右上角的放大图标, 即可进入放大模式。"),o.a.createElement("p",null,"滑动鼠标则可以浏览超出屏幕的部分, 对浏览大尺寸图片时尤为方便"),o.a.createElement("p",null,"在",o.a.createElement("b",null,"放大模式"),"中, 图片会设置为 100%放大, 确保不会有任何失真"),o.a.createElement("p",null,"再次点击屏幕即可退出",o.a.createElement("b",null,"放大模式")),o.a.createElement("pre",null,o.a.createElement(u.a,{className:"language-javascript"},'<Zmage\n src="https://your.image.link.jpg"\n alt="放大图片并并滑动预览"\n/>'))),o.a.createElement("div",{className:s.a.imageBox},o.a.createElement(nr,{className:s.a.image,src:"imgSet/childsDream/2.jpg",alt:"放大图片并并滑动预览"}),o.a.createElement("a",{href:"https://www.behance.net/gallery/56119387/_"},"via. sslololss Guihuahuzi on behance"))),o.a.createElement("div",{className:s.a.horizon},o.a.createElement("div",{className:s.a.helpBox},o.a.createElement("h2",null,"展示序列图片"),o.a.createElement("p",null,"您可以传入一系列图片来显示一系列幻灯片, 使用 ",o.a.createElement("b",null,"set")," 来包裹它们"),o.a.createElement("p",null,"点击放大后使用键盘的 ",o.a.createElement("b",null,"←")," 或 ",o.a.createElement("b",null,"→")," 即可切换图片"),o.a.createElement("pre",null,o.a.createElement(u.a,{className:"language-javascript"},'<Zmage\n src="your.cover.image.link.jpg"\n alt="展示序列图片"\n set={[{\n src: "your.cover.image.link.jpg",\n alt: "First image description"\n },{\n src: "your.another.image.link.jpg",\n alt: "Second image description"\n }]}\n/>'))),o.a.createElement("div",{className:s.a.imageBox},o.a.createElement(nr,{className:s.a.image,src:"imgSet/childsDream/3.jpg",alt:"展示序列图片",set:[{src:"imgSet/childsDream/3.jpg",alt:"童夢 · THREE"},{src:"imgSet/childsDream/4.jpg",alt:"童夢 · FOUR"}]}),o.a.createElement("a",{href:"https://www.behance.net/gallery/56119387/_"},"via. sslololss Guihuahuzi on behance"))),o.a.createElement("div",{className:s.a.horizon},o.a.createElement("div",{className:s.a.helpBox},o.a.createElement("h2",null,"快捷操作"),o.a.createElement("p",null,"您可以使用键盘来快捷操作"),o.a.createElement("p",null,"除了在展示序列图片时使用键盘的 ",o.a.createElement("b",null,"←")," 或 ",o.a.createElement("b",null,"→")," 来切换页面, 你可以可以使用 ",o.a.createElement("b",null,"SPACE|空格键"),", 来激活",o.a.createElement("b",null,"放大模式")),o.a.createElement("p",null,"处于放大模式时, 点击 ",o.a.createElement("b",null,"退出|ESC")," 可以退出",o.a.createElement("b",null,"放大模式"),", 再次点击即可退出",o.a.createElement("b",null,"查看模式")),o.a.createElement("p",null,"滚动页面同样也可以退出",o.a.createElement("b",null,"查看模式"))),o.a.createElement("div",{className:s.a.imageBox},o.a.createElement(nr,{className:s.a.image,src:"imgSet/childsDream/5.jpg",alt:"使用键盘进行快捷操作",set:[{src:"imgSet/childsDream/5.jpg",alt:"童夢 · SIX"},{src:"imgSet/childsDream/6.jpg",alt:"童夢 · SEVEN"}],onBrowsing:function(e){console.info("Browsing State: ",e)},onZooming:function(e){console.info("Zooming State: ",e)},onSwitching:function(e){console.info("Switching page: ",e)},onRotating:function(e){console.info("Rotating State: ",e,"deg")}}),o.a.createElement("a",{href:"https://www.behance.net/gallery/56119387/_"},"via. sslololss Guihuahuzi on behance"))),o.a.createElement("div",{className:s.a.horizon},o.a.createElement("div",{className:s.a.helpBox},o.a.createElement("h2",null,"受控属性与命令式调用"),o.a.createElement("p",null,"即使在文本中,您也可以为 ",o.a.createElement("a",{onClick:function(){return nr.browsing({src:"imgSet/childsDream/5.jpg"})}},"任意元素")," 绑定一个事件, 以直接显示一个不存在的图片"),o.a.createElement("p",null,"也可以使用 ",o.a.createElement("a",{onClick:function(){return e.setState({browsing:!e.state.browsing})}},"browsing")," 属性来直接操作右侧的图片状态")),o.a.createElement("div",{className:s.a.imageBox},o.a.createElement(nr,{className:s.a.image,src:"imgSet/childsDream/7.jpg",browsing:this.state.browsing,onBrowsing:function(t){return e.setState({browsing:t})},set:[{src:"imgSet/childsDream/7.jpg",alt:"童夢 · SIX"},{src:"imgSet/childsDream/8.jpg",alt:"童夢 · SEVEN"}]}),o.a.createElement("a",{href:"https://www.behance.net/gallery/56119387/_"},"via. sslololss Guihuahuzi on behance"))),o.a.createElement("div",{className:s.a.horizon,style:{display:"none"}},o.a.createElement("div",{className:s.a.helpBox},o.a.createElement("h2",null,"预设配置 (beta)"),o.a.createElement("p",null,"我们自带了两套默认配置项"),o.a.createElement("p",null,"分别是 ",o.a.createElement("b",null,"桌面端(DESKTOP)")," 以及 ",o.a.createElement("b",null,"移动端 (MOBILE)")),o.a.createElement("p",null,"处于桌面端配置时, 即为您先前所见"),o.a.createElement("p",null,"而移动端配置则不包含任何多余的操作项, 样式也会有些许变化")),o.a.createElement("div",{className:s.a.imageBox},o.a.createElement(nr,{className:s.a.image,src:"imgSet/childsDream/7.jpg",alt:"使用键盘进行快捷操作",preset:"mobile",set:[{src:"imgSet/childsDream/7.jpg",alt:"童夢 · SIX"},{src:"imgSet/childsDream/8.jpg",alt:"童夢 · SEVEN"}]}),o.a.createElement("a",{href:"https://www.behance.net/gallery/56119387/_"},"via. sslololss Guihuahuzi on behance"))),o.a.createElement("div",{className:s.a.bottomBanner,style:{textAlign:"center"}},o.a.createElement("div",null,o.a.createElement("h2",{style:{textAlign:"center"}},"您已经准备好了"),o.a.createElement("div",{className:s.a.button,onClick:function(){return window.open("https://github.com/Caldis/react-zmage")}},"查看文档"),o.a.createElement("div",{className:s.a.button,onClick:function(){return window.open("https://github.com/Caldis/react-zmage/issues")}},"反馈建议"))),o.a.createElement("div",{className:s.a.footer},o.a.createElement("div",null,o.a.createElement("span",null,"react-zmage")),o.a.createElement("div",null,o.a.createElement("span",null,"Create & Design by "),o.a.createElement("a",{href:"https://github.com/Caldis"},"Caldis "),o.a.createElement("span",null,", Power by "),o.a.createElement("a",{href:"https://reactjs.org/"},"React")),o.a.createElement("div",null,o.a.createElement("span",null,"Illustrator from "),o.a.createElement("a",{href:"https://www.behance.net/gallery/56119387/_"},"sslololss Guihuahuzi "),o.a.createElement("span",null,"on "),o.a.createElement("a",{href:"https://www.behance.net"},"behance")),o.a.createElement("a",{className:s.a.github,href:"https://github.com/Caldis/react-zmage"},o.a.createElement("div",{"aria-label":"Github"},o.a.createElement("svg",{focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true"},o.a.createElement("path",{d:"M12.007 0C6.12 0 1.1 4.27.157 10.08c-.944 5.813 2.468 11.45 8.054 13.312.19.064.397.033.555-.084.16-.117.25-.304.244-.5v-2.042c-3.33.735-4.037-1.56-4.037-1.56-.22-.726-.694-1.35-1.334-1.756-1.096-.75.074-.735.074-.735.773.103 1.454.557 1.846 1.23.694 1.21 2.23 1.638 3.45.96.056-.61.327-1.178.766-1.605-2.67-.3-5.462-1.335-5.462-6.002-.02-1.193.42-2.35 1.23-3.226-.327-1.015-.27-2.116.166-3.09 0 0 1.006-.33 3.3 1.23 1.966-.538 4.04-.538 6.003 0 2.295-1.5 3.3-1.23 3.3-1.23.445 1.006.49 2.144.12 3.18.81.877 1.25 2.033 1.23 3.226 0 4.607-2.805 5.627-5.476 5.927.578.583.88 1.386.825 2.206v3.29c-.005.2.092.393.26.507.164.115.377.14.565.063 5.568-1.88 8.956-7.514 8.007-13.313C22.892 4.267 17.884.007 12.008 0z"}))))))}}])&&or(n.prototype,r),i&&or(n,i),t}(o.a.Component);a.a.render(o.a.createElement(ur,null),document.querySelector("#app"))}]);
|
var users = []
var i = 0
var getData = (function ($) {
var URL = 'https://api.github.com/repos/techhub-community/Hackbook/contents/data'
$.get(URL, function (data, status) {
data.forEach(function (d) {
if (d.name == null) {
return true
}
if (users.indexOf(d.name) == -1) {
$.get('https://api.github.com/users/'+d.name+'',function(data,status){
if(data.name==null)
{
return true;
}
var userinfo=data;
// console.log(userinfo)
$.get('https://api.github.com/repos/techhub-community/Hackbook/contents/data/'+d.name+'/'+d.name+'.md',function(readmedata,status){
if(readmedata.content==null)
{
return true;
}
var inputdata=atob(readmedata.content);
const obj = JSON.parse('{'+inputdata+'}');
var template =
"<div id='project-card'><div>" +
"<a target='_blank' href='" + userinfo.html_url + "'>" +
"<img src='" + userinfo.avatar_url + "' alt='' id='userimg'>" +
'</a>' +
"<div>" +
'<strong>' + obj["name"] + '</strong>' +
'<p>'+obj["quote"]+'<br>'+obj["tech_stack"]+'</p>'+
'<p>'+'</p>'+
'</div></div></div>'
$('#contributors').append(template)
users[i] = d.name
i = i + 1
})
})
}
})
})
})($)
|
var SpecFuncGamma__mod_8f90 =
[
[ "SpecFuncGamma_mod::getLogFactorial", "interfaceSpecFuncGamma__mod_1_1getLogFactorial.html", null ],
[ "genLogFactorial_RK128", "SpecFuncGamma__mod_8f90.html#aea3ffb733987e638ed60697208d50e0f", null ],
[ "genLogFactorial_RK32", "SpecFuncGamma__mod_8f90.html#a82c33bb51e00faf1bbfce26d91cff672", null ],
[ "genLogFactorial_RK64", "SpecFuncGamma__mod_8f90.html#a7ed3aab37082ae966d237da05fbd669c", null ],
[ "getFactorial", "SpecFuncGamma__mod_8f90.html#ad11e02c3bd449990e5deab8d8d73cd5f", null ],
[ "getGammaContFrac", "SpecFuncGamma__mod_8f90.html#a1bbbf9acf23da378f4588664dc2440bf", null ],
[ "getGammaHalfInt", "SpecFuncGamma__mod_8f90.html#a1da3aa1b2e62bf36b03cc932d4db28c8", null ],
[ "getGammaSeries", "SpecFuncGamma__mod_8f90.html#aec95a1b2530bd80be0685884d62b8763", null ],
[ "getLogGammaHalfInt", "SpecFuncGamma__mod_8f90.html#a9afd80843f2ade97fa2973f8b1ac6d58", null ],
[ "getLowerGamma", "SpecFuncGamma__mod_8f90.html#ae02df81ca69c0b676ee10af7fecdba68", null ],
[ "getUpperGamma", "SpecFuncGamma__mod_8f90.html#ad068ce4ede63f06aedc4d64ffde05fba", null ],
[ "MODULE_NAME", "SpecFuncGamma__mod_8f90.html#a8bfd73d8964e6aef3cd9fe441b9c78b6", null ]
];
|
// Camera slideshow v1.4.0 - a jQuery slideshow with many effects, transitions, easy to customize, using canvas and mobile ready, based on jQuery 1.4+
// Copyright (c) 2012 by Manuel Masia - www.pixedelic.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
(function(a){a.fn.camera=function(H,V){var N={alignment:"center",autoAdvance:true,mobileAutoAdvance:true,barDirection:"leftToRight",barPosition:"bottom",cols:6,easing:"easeInOutExpo",mobileEasing:"",fx:"random",mobileFx:"",gridDifference:250,height:"50%",imagePath:"images/",hover:true,loader:"pie",loaderColor:"#eeeeee",loaderBgColor:"#222222",loaderOpacity:0.8,loaderPadding:2,loaderStroke:7,minHeight:"200px",navigation:true,navigationHover:true,mobileNavHover:true,opacityOnGrid:false,overlayer:true,pagination:true,playPause:true,pauseOnClick:true,pieDiameter:38,piePosition:"rightTop",portrait:false,rows:4,slicedCols:12,slicedRows:8,slideOn:"random",thumbnails:false,time:7000,transPeriod:1500,onEndTransition:function(){},onLoaded:function(){},onStartLoading:function(){},onStartTransition:function(){}};function L(){if(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)){return true}}a.support.borderRadius=false;a.each(["borderRadius","BorderRadius","MozBorderRadius","WebkitBorderRadius","OBorderRadius","KhtmlBorderRadius"],function(){if(document.body.style[this]!==undefined){a.support.borderRadius=true}});var H=a.extend({},N,H);var ae=a(this).addClass("camera_wrap");ae.wrapInner('<div class="camera_src" />').wrapInner('<div class="camera_fakehover" />');var D=a(".camera_fakehover",ae);var W=(".camera_fakehover",ae);D.append('<div class="camera_target"></div>');if(H.overlayer==true){D.append('<div class="camera_overlayer"></div>')}D.append('<div class="camera_target_content"></div>');var C;if(H.loader=="pie"&&!a.support.borderRadius){C="bar"}else{C=H.loader}if(C=="pie"){D.append('<div class="camera_pie"></div>')}else{if(C=="bar"){D.append('<div class="camera_bar"></div>')}else{D.append('<div class="camera_bar" style="display:none"></div>')}}if(H.playPause==true){D.append('<div class="camera_commands"></div>')}if(H.navigation==true){D.append('<div class="camera_prev"><span></span></div>').append('<div class="camera_next"><span></span></div>')}if(H.thumbnails==true){ae.append('<div class="camera_thumbs_cont" />')}if(H.thumbnails==true&&H.pagination!=true){a(".camera_thumbs_cont",ae).wrap("<div />").wrap('<div class="camera_thumbs" />').wrap("<div />").wrap('<div class="camera_command_wrap" />')}if(H.pagination==true){ae.append('<div class="camera_pag"></div>')}ae.append('<div class="camera_loader"></div>');a(".camera_caption",ae).each(function(){a(this).wrapInner("<div />")});var q="pie_"+ae.index(),ag=a(".camera_src",ae),b=a(".camera_target",ae),s=a(".camera_target_content",ae),p=a(".camera_pie",ae),ah=a(".camera_bar",ae),am=a(".camera_prev",ae),r=a(".camera_next",ae),R=a(".camera_commands",ae),n=a(".camera_pag",ae),M=a(".camera_thumbs_cont",ae);var Z,aj;var X=new Array();a("> div",ag).each(function(){X.push(a(this).attr("data-src"))});var c=new Array();a("> div",ag).each(function(){if(a(this).attr("data-link")){c.push(a(this).attr("data-link"))}else{c.push("")}});var m=new Array();a("> div",ag).each(function(){if(a(this).attr("data-target")){m.push(a(this).attr("data-target"))}else{m.push("")}});var k=new Array();a("> div",ag).each(function(){if(a(this).attr("data-portrait")){k.push(a(this).attr("data-portrait"))}else{k.push("")}});var o=new Array();a("> div",ag).each(function(){if(a(this).attr("data-alignment")){o.push(a(this).attr("data-alignment"))}else{o.push("")}});var j=new Array();a("> div",ag).each(function(){if(a(this).attr("data-thumb")){j.push(a(this).attr("data-thumb"))}else{j.push("")}});var y=X.length;a(s).append('<div class="cameraContents" />');var J;for(J=0;J<y;J++){a(".cameraContents",s).append('<div class="cameraContent" />');if(c[J]!=""){var t=a("> div ",ag).eq(J).attr("data-box");if(typeof t!=="undefined"&&t!==false&&t!=""){t='data-box="'+a("> div ",ag).eq(J).attr("data-box")+'"'}else{t=""}a(".camera_target_content .cameraContent:eq("+J+")",ae).append('<a class="camera_link" href="'+c[J]+'" '+t+' target="'+m[J]+'"></a>')}}a(".camera_caption",ae).each(function(){var u=a(this).parent().index(),h=ae.find(".cameraContent").eq(u);a(this).appendTo(h)});b.append('<div class="cameraCont" />');var F=a(".cameraCont",ae);var e;for(e=0;e<y;e++){F.append('<div class="cameraSlide cameraSlide_'+e+'" />');var ak=a("> div:eq("+e+")",ag);b.find(".cameraSlide_"+e).clone(ak)}function z(){var h=a(M).width();a("li",M).removeClass("camera_visThumb");a("li",M).each(function(){var au=a(this).position(),u=a("ul",M).outerWidth(),w=a("ul",M).offset().left,aq=a("> div",M).offset().left,at=aq-w;if(at>0){a(".camera_prevThumbs",U).removeClass("hideNav")}else{a(".camera_prevThumbs",U).addClass("hideNav")}if((u-at)>h){a(".camera_nextThumbs",U).removeClass("hideNav")}else{a(".camera_nextThumbs",U).addClass("hideNav")}var ar=au.left,ap=au.left+(a(this).width());if(ap-at<=h&&ar-at>=0){a(this).addClass("camera_visThumb")}})}a(window).bind("load resize pageshow",function(){I();z()});F.append('<div class="cameraSlide cameraSlide_'+e+'" />');
var an;ae.show();var Z=b.width();var aj=b.height();var ai;a(window).bind("resize pageshow",function(){if(an==true){v()}a("ul",M).animate({"margin-top":0},0,I);if(!ag.hasClass("paused")){ag.addClass("paused");if(a(".camera_stop",U).length){a(".camera_stop",U).hide();a(".camera_play",U).show();if(C!="none"){a("#"+q).hide()}}else{if(C!="none"){a("#"+q).hide()}}clearTimeout(ai);ai=setTimeout(function(){ag.removeClass("paused");if(a(".camera_play",U).length){a(".camera_play",U).hide();a(".camera_stop",U).show();if(C!="none"){a("#"+q).fadeIn()}}else{if(C!="none"){a("#"+q).fadeIn()}}},1500)}});function v(){var h;function u(){Z=ae.width();if(H.height.indexOf("%")!=-1){var w=Math.round(Z/(100/parseFloat(H.height)));if(H.minHeight!=""&&w<parseFloat(H.minHeight)){aj=parseFloat(H.minHeight)}else{aj=w}ae.css({height:aj})}else{if(H.height=="auto"){aj=ae.height()}else{aj=parseFloat(H.height);ae.css({height:aj})}}a(".camerarelative",b).css({width:Z,height:aj});a(".imgLoaded",b).each(function(){var az=a(this),ay=az.attr("width"),ar=az.attr("height"),au=az.index(),at,aq,aw=az.attr("data-alignment"),ax=az.attr("data-portrait");if(typeof aw==="undefined"||aw===false||aw===""){aw=H.alignment}if(typeof ax==="undefined"||ax===false||ax===""){ax=H.portrait}if(ax==false||ax=="false"){if((ay/ar)<(Z/aj)){var ap=Z/ay;var av=(Math.abs(aj-(ar*ap)))*0.5;switch(aw){case"topLeft":at=0;break;case"topCenter":at=0;break;case"topRight":at=0;break;case"centerLeft":at="-"+av+"px";break;case"center":at="-"+av+"px";break;case"centerRight":at="-"+av+"px";break;case"bottomLeft":at="-"+av*2+"px";break;case"bottomCenter":at="-"+av*2+"px";break;case"bottomRight":at="-"+av*2+"px";break}az.css({height:ar*ap,"margin-left":0,"margin-right":0,"margin-top":at,position:"absolute",visibility:"visible",width:Z})}else{var ap=aj/ar;var av=(Math.abs(Z-(ay*ap)))*0.5;switch(aw){case"topLeft":aq=0;break;case"topCenter":aq="-"+av+"px";break;case"topRight":aq="-"+av*2+"px";break;case"centerLeft":aq=0;break;case"center":aq="-"+av+"px";break;case"centerRight":aq="-"+av*2+"px";break;case"bottomLeft":aq=0;break;case"bottomCenter":aq="-"+av+"px";break;case"bottomRight":aq="-"+av*2+"px";break}az.css({height:aj,"margin-left":aq,"margin-right":aq,"margin-top":0,position:"absolute",visibility:"visible",width:ay*ap})}}else{if((ay/ar)<(Z/aj)){var ap=aj/ar;var av=(Math.abs(Z-(ay*ap)))*0.5;switch(aw){case"topLeft":aq=0;break;case"topCenter":aq=av+"px";break;case"topRight":aq=av*2+"px";break;case"centerLeft":aq=0;break;case"center":aq=av+"px";break;case"centerRight":aq=av*2+"px";break;case"bottomLeft":aq=0;break;case"bottomCenter":aq=av+"px";break;case"bottomRight":aq=av*2+"px";break}az.css({height:aj,"margin-left":aq,"margin-right":aq,"margin-top":0,position:"absolute",visibility:"visible",width:ay*ap})}else{var ap=Z/ay;var av=(Math.abs(aj-(ar*ap)))*0.5;switch(aw){case"topLeft":at=0;break;case"topCenter":at=0;break;case"topRight":at=0;break;case"centerLeft":at=av+"px";break;case"center":at=av+"px";break;case"centerRight":at=av+"px";break;case"bottomLeft":at=av*2+"px";break;case"bottomCenter":at=av*2+"px";break;case"bottomRight":at=av*2+"px";break}az.css({height:ar*ap,"margin-left":0,"margin-right":0,"margin-top":at,position:"absolute",visibility:"visible",width:Z})}}})}if(an==true){clearTimeout(h);h=setTimeout(u,200)}else{u()}an=true}var aa,ac;var Y,d,ab,R,n;var P,S;if(L()&&H.mobileAutoAdvance!=""){d=H.mobileAutoAdvance}else{d=H.autoAdvance}if(d==false){ag.addClass("paused")}if(L()&&H.mobileNavHover!=""){ab=H.mobileNavHover}else{ab=H.navigationHover}if(ag.length!=0){var i=a(".cameraSlide",b);i.wrapInner('<div class="camerarelative" />');var E;var A=H.barDirection;var U=ae;a("iframe",D).each(function(){var h=a(this);var w=h.attr("src");h.attr("data-src",w);var u=h.parent().index(".camera_src > div");a(".camera_target_content .cameraContent:eq("+u+")",ae).append(h)});function af(){a("iframe",D).each(function(){a(".camera_caption",D).show();var w=a(this);var u=w.attr("data-src");w.attr("src",u);var aq=H.imagePath+"blank.gif";var h=new Image();h.src=aq;if(H.height.indexOf("%")!=-1){var ap=Math.round(Z/(100/parseFloat(H.height)));if(H.minHeight!=""&&ap<parseFloat(H.minHeight)){aj=parseFloat(H.minHeight)}else{aj=ap}}else{if(H.height=="auto"){aj=ae.height()}else{aj=parseFloat(H.height)}}w.after(a(h).attr({"class":"imgFake",width:Z,height:aj}));var ar=w.clone();w.remove();a(h).bind("click",function(){if(a(this).css("position")=="absolute"){a(this).remove();if(u.indexOf("vimeo")!=-1||u.indexOf("youtube")!=-1){if(u.indexOf("?")!=-1){autoplay="&autoplay=1"}else{autoplay="?autoplay=1"}}else{if(u.indexOf("dailymotion")!=-1){if(u.indexOf("?")!=-1){autoplay="&autoPlay=1"}else{autoplay="?autoPlay=1"}}}ar.attr("src",u+autoplay);S=true}else{a(this).css({position:"absolute",top:0,left:0,zIndex:10}).after(ar);ar.css({position:"absolute",top:0,left:0,zIndex:9})}})})}af();if(H.hover==true){if(!L()){D.hover(function(){ag.addClass("hovered")},function(){ag.removeClass("hovered")})}}if(ab==true){a(am,ae).animate({opacity:0},0);
a(r,ae).animate({opacity:0},0);a(R,ae).animate({opacity:0},0);if(L()){a(document).on("vmouseover",W,function(){a(am,ae).animate({opacity:1},200);a(r,ae).animate({opacity:1},200);a(R,ae).animate({opacity:1},200)});a(document).on("vmouseout",W,function(){a(am,ae).delay(500).animate({opacity:0},200);a(r,ae).delay(500).animate({opacity:0},200);a(R,ae).delay(500).animate({opacity:0},200)})}else{D.hover(function(){a(am,ae).animate({opacity:1},200);a(r,ae).animate({opacity:1},200);a(R,ae).animate({opacity:1},200)},function(){a(am,ae).animate({opacity:0},200);a(r,ae).animate({opacity:0},200);a(R,ae).animate({opacity:0},200)})}}U.on("click",".camera_stop",function(){d=false;ag.addClass("paused");if(a(".camera_stop",U).length){a(".camera_stop",U).hide();a(".camera_play",U).show();if(C!="none"){a("#"+q).hide()}}else{if(C!="none"){a("#"+q).hide()}}});U.on("click",".camera_play",function(){d=true;ag.removeClass("paused");if(a(".camera_play",U).length){a(".camera_play",U).hide();a(".camera_stop",U).show();if(C!="none"){a("#"+q).show()}}else{if(C!="none"){a("#"+q).show()}}});if(H.pauseOnClick==true){a(".camera_target_content",D).mouseup(function(){d=false;ag.addClass("paused");a(".camera_stop",U).hide();a(".camera_play",U).show();a("#"+q).hide()})}a(".cameraContent, .imgFake",D).hover(function(){P=true},function(){P=false});a(".cameraContent, .imgFake",D).bind("click",function(){if(S==true&&P==true){d=false;a(".camera_caption",D).hide();ag.addClass("paused");a(".camera_stop",U).hide();a(".camera_play",U).show();a("#"+q).hide()}})}function Q(u){for(var w,h,ap=u.length;ap;w=parseInt(Math.random()*ap),h=u[--ap],u[ap]=u[w],u[w]=h){}return u}function x(h){return Math.ceil(h)==Math.floor(h)}if(C!="pie"){ah.append('<span class="camera_bar_cont" />');a(".camera_bar_cont",ah).animate({opacity:H.loaderOpacity},0).css({position:"absolute",left:0,right:0,top:0,bottom:0,"background-color":H.loaderBgColor}).append('<span id="'+q+'" />');a("#"+q).animate({opacity:0},0);var l=a("#"+q);l.css({position:"absolute","background-color":H.loaderColor});switch(H.barPosition){case"left":ah.css({right:"auto",width:H.loaderStroke});break;case"right":ah.css({left:"auto",width:H.loaderStroke});break;case"top":ah.css({bottom:"auto",height:H.loaderStroke});break;case"bottom":ah.css({top:"auto",height:H.loaderStroke});break}switch(A){case"leftToRight":l.css({left:0,right:0,top:H.loaderPadding,bottom:H.loaderPadding});break;case"rightToLeft":l.css({left:0,right:0,top:H.loaderPadding,bottom:H.loaderPadding});break;case"topToBottom":l.css({left:H.loaderPadding,right:H.loaderPadding,top:0,bottom:0});break;case"bottomToTop":l.css({left:H.loaderPadding,right:H.loaderPadding,top:0,bottom:0});break}}else{p.append('<canvas id="'+q+'"></canvas>');var ad;var l=document.getElementById(q);l.setAttribute("width",H.pieDiameter);l.setAttribute("height",H.pieDiameter);var ao;switch(H.piePosition){case"leftTop":ao="left:0; top:0;";break;case"rightTop":ao="right:0; top:0;";break;case"leftBottom":ao="left:0; bottom:0;";break;case"rightBottom":ao="right:0; bottom:0;";break}l.setAttribute("style","position:absolute; z-index:1002; "+ao);var g;var f;if(l&&l.getContext){var B=l.getContext("2d");B.rotate(Math.PI*(3/2));B.translate(-H.pieDiameter,0)}}if(C=="none"||d==false){a("#"+q).hide();a(".camera_canvas_wrap",U).hide()}if(a(n).length){a(n).append('<ul class="camera_pag_ul" />');var O;for(O=0;O<y;O++){a(".camera_pag_ul",ae).append('<li class="pag_nav_'+O+'" style="position:relative; z-index:1002"><span><span>'+O+"</span></span></li>")}a(".camera_pag_ul li",ae).hover(function(){a(this).addClass("camera_hover");if(a(".camera_thumb",this).length){var u=a(".camera_thumb",this).outerWidth(),w=a(".camera_thumb",this).outerHeight(),h=a(this).outerWidth();a(".camera_thumb",this).show().css({top:"-"+w+"px",left:"-"+(u-h)/2+"px"}).animate({opacity:1,"margin-top":"-3px"},200);a(".thumb_arrow",this).show().animate({opacity:1,"margin-top":"-3px"},200)}},function(){a(this).removeClass("camera_hover");a(".camera_thumb",this).animate({"margin-top":"-20px",opacity:0},200,function(){a(this).css({marginTop:"5px"}).hide()});a(".thumb_arrow",this).animate({"margin-top":"-20px",opacity:0},200,function(){a(this).css({marginTop:"5px"}).hide()})})}if(a(M).length){var al;if(!a(n).length){a(M).append("<div />");a(M).before('<div class="camera_prevThumbs hideNav"><div></div></div>').before('<div class="camera_nextThumbs hideNav"><div></div></div>');a("> div",M).append("<ul />");a.each(j,function(h,w){if(a("> div",ag).eq(h).attr("data-thumb")!=""){var ap=a("> div",ag).eq(h).attr("data-thumb"),u=new Image();u.src=ap;a("ul",M).append('<li class="pix_thumb pix_thumb_'+h+'" />');a("li.pix_thumb_"+h,M).append(a(u).attr("class","camera_thumb"))}})}else{a.each(j,function(h,w){if(a("> div",ag).eq(h).attr("data-thumb")!=""){var ap=a("> div",ag).eq(h).attr("data-thumb"),u=new Image();u.src=ap;a("li.pag_nav_"+h,n).append(a(u).attr("class","camera_thumb").css({position:"absolute"}).animate({opacity:0},0));a("li.pag_nav_"+h+" > img",n).after('<div class="thumb_arrow" />');
a("li.pag_nav_"+h+" > .thumb_arrow",n).animate({opacity:0},0)}});ae.css({marginBottom:a(n).outerHeight()})}}else{if(!a(M).length&&a(n).length){ae.css({marginBottom:a(n).outerHeight()})}}var G=true;function I(){if(a(M).length&&!a(n).length){var w=a(M).outerWidth(),ap=a("ul > li",M).outerWidth(),au=a("li.cameracurrent",M).length?a("li.cameracurrent",M).position():"",u=(a("ul > li",M).length*a("ul > li",M).outerWidth()),ar=a("ul",M).offset().left,at=a("> div",M).offset().left,h;if(ar<0){h="-"+(at-ar)}else{h=at-ar}if(G==true){a("ul",M).width(a("ul > li",M).length*a("ul > li",M).outerWidth());if(a(M).length&&!a(n).lenght){ae.css({marginBottom:a(M).outerHeight()})}z();a("ul",M).width(a("ul > li",M).length*a("ul > li",M).outerWidth());if(a(M).length&&!a(n).lenght){ae.css({marginBottom:a(M).outerHeight()})}}G=false;var aq=a("li.cameracurrent",M).length?au.left:"",av=a("li.cameracurrent",M).length?au.left+(a("li.cameracurrent",M).outerWidth()):"";if(aq<a("li.cameracurrent",M).outerWidth()){aq=0}if(av-h>w){if((aq+w)<u){a("ul",M).animate({"margin-left":"-"+(aq)+"px"},500,z)}else{a("ul",M).animate({"margin-left":"-"+(a("ul",M).outerWidth()-w)+"px"},500,z)}}else{if(aq-h<0){a("ul",M).animate({"margin-left":"-"+(aq)+"px"},500,z)}else{a("ul",M).css({"margin-left":"auto","margin-right":"auto"});setTimeout(z,100)}}}}if(a(R).length){a(R).append('<div class="camera_play"></div>').append('<div class="camera_stop"></div>');if(d==true){a(".camera_play",U).hide();a(".camera_stop",U).show()}else{a(".camera_stop",U).hide();a(".camera_play",U).show()}}function K(){g=0;var h=a(".camera_bar_cont",U).width(),u=a(".camera_bar_cont",U).height();if(C!="pie"){switch(A){case"leftToRight":a("#"+q).css({right:h});break;case"rightToLeft":a("#"+q).css({left:h});break;case"topToBottom":a("#"+q).css({bottom:u});break;case"bottomToTop":a("#"+q).css({top:u});break}}else{B.clearRect(0,0,H.pieDiameter,H.pieDiameter)}}K();a(".moveFromLeft, .moveFromRight, .moveFromTop, .moveFromBottom, .fadeIn, .fadeFromLeft, .fadeFromRight, .fadeFromTop, .fadeFromBottom",D).each(function(){a(this).css("visibility","hidden")});H.onStartLoading.call(this);T();function T(aF){ag.addClass("camerasliding");S=false;var aZ=parseFloat(a("div.cameraSlide.cameracurrent",b).index());if(aF>0){var aK=aF-1}else{if(aZ==y-1){var aK=0}else{var aK=aZ+1}}var u=a(".cameraSlide:eq("+aK+")",b);var aL=a(".cameraSlide:eq("+(aK+1)+")",b).addClass("cameranext");if(aZ!=aK+1){aL.hide()}a(".cameraContent",D).fadeOut(600);a(".camera_caption",D).show();a(".camerarelative",u).append(a("> div ",ag).eq(aK).find("> div.camera_effected"));a(".camera_target_content .cameraContent:eq("+aK+")",ae).append(a("> div ",ag).eq(aK).find("> div"));if(!a(".imgLoaded",u).length){var aC=X[aK];var aJ=new Image();aJ.src=aC+"?"+new Date().getTime();u.css("visibility","hidden");u.prepend(a(aJ).attr("class","imgLoaded").css("visibility","hidden"));var au,ar;if(!a(aJ).get(0).complete||au=="0"||ar=="0"||typeof au==="undefined"||au===false||typeof ar==="undefined"||ar===false){a(".camera_loader",ae).delay(500).fadeIn(400);aJ.onload=function(){au=aJ.naturalWidth;ar=aJ.naturalHeight;a(aJ).attr("data-alignment",o[aK]).attr("data-portrait",k[aK]);a(aJ).attr("width",au);a(aJ).attr("height",ar);b.find(".cameraSlide_"+aK).hide().css("visibility","visible");v();T(aK+1)}}}else{if(X.length>(aK+1)&&!a(".imgLoaded",aL).length){var at=X[(aK+1)];var aA=new Image();aA.src=at+"?"+new Date().getTime();aL.prepend(a(aA).attr("class","imgLoaded").css("visibility","hidden"));aA.onload=function(){au=aA.naturalWidth;ar=aA.naturalHeight;a(aA).attr("data-alignment",o[aK+1]).attr("data-portrait",k[aK+1]);a(aA).attr("width",au);a(aA).attr("height",ar);v()}}H.onLoaded.call(this);if(a(".camera_loader",ae).is(":visible")){a(".camera_loader",ae).fadeOut(400)}else{a(".camera_loader",ae).css({visibility:"hidden"});a(".camera_loader",ae).fadeOut(400,function(){a(".camera_loader",ae).css({visibility:"visible"})})}var a0=H.rows,av=H.cols,aW=1,h=0,aD,aX,aI,aB,aN,az=new Array("simpleFade","curtainTopLeft","curtainTopRight","curtainBottomLeft","curtainBottomRight","curtainSliceLeft","curtainSliceRight","blindCurtainTopLeft","blindCurtainTopRight","blindCurtainBottomLeft","blindCurtainBottomRight","blindCurtainSliceBottom","blindCurtainSliceTop","stampede","mosaic","mosaicReverse","mosaicRandom","mosaicSpiral","mosaicSpiralReverse","topLeftBottomRight","bottomRightTopLeft","bottomLeftTopRight","topRightBottomLeft","scrollLeft","scrollRight","scrollTop","scrollBottom","scrollHorz");marginLeft=0,marginTop=0,opacityOnGrid=0;if(H.opacityOnGrid==true){opacityOnGrid=0}else{opacityOnGrid=1}var aw=a(" > div",ag).eq(aK).attr("data-fx");if(L()&&H.mobileFx!=""&&H.mobileFx!="default"){aB=H.mobileFx}else{if(typeof aw!=="undefined"&&aw!==false&&aw!=="default"){aB=aw}else{aB=H.fx}}if(aB=="random"){aB=Q(az);aB=aB[0]}else{aB=aB;if(aB.indexOf(",")>0){aB=aB.replace(/ /g,"");aB=aB.split(",");aB=Q(aB);aB=aB[0]}}dataEasing=a(" > div",ag).eq(aK).attr("data-easing");mobileEasing=a(" > div",ag).eq(aK).attr("data-mobileEasing");
if(L()&&H.mobileEasing!=""&&H.mobileEasing!="default"){if(typeof mobileEasing!=="undefined"&&mobileEasing!==false&&mobileEasing!=="default"){aN=mobileEasing}else{aN=H.mobileEasing}}else{if(typeof dataEasing!=="undefined"&&dataEasing!==false&&dataEasing!=="default"){aN=dataEasing}else{aN=H.easing}}aD=a(" > div",ag).eq(aK).attr("data-slideOn");if(typeof aD!=="undefined"&&aD!==false){aT=aD}else{if(H.slideOn=="random"){var aT=new Array("next","prev");aT=Q(aT);aT=aT[0]}else{aT=H.slideOn}}var aq=a(" > div",ag).eq(aK).attr("data-time");if(typeof aq!=="undefined"&&aq!==false&&aq!==""){aX=parseFloat(aq)}else{aX=H.time}var ap=a(" > div",ag).eq(aK).attr("data-transPeriod");if(typeof ap!=="undefined"&&ap!==false&&ap!==""){aI=parseFloat(ap)}else{aI=H.transPeriod}if(!a(ag).hasClass("camerastarted")){aB="simpleFade";aT="next";aN="";aI=400;a(ag).addClass("camerastarted")}switch(aB){case"simpleFade":av=1;a0=1;break;case"curtainTopLeft":if(H.slicedCols==0){av=H.cols}else{av=H.slicedCols}a0=1;break;case"curtainTopRight":if(H.slicedCols==0){av=H.cols}else{av=H.slicedCols}a0=1;break;case"curtainBottomLeft":if(H.slicedCols==0){av=H.cols}else{av=H.slicedCols}a0=1;break;case"curtainBottomRight":if(H.slicedCols==0){av=H.cols}else{av=H.slicedCols}a0=1;break;case"curtainSliceLeft":if(H.slicedCols==0){av=H.cols}else{av=H.slicedCols}a0=1;break;case"curtainSliceRight":if(H.slicedCols==0){av=H.cols}else{av=H.slicedCols}a0=1;break;case"blindCurtainTopLeft":if(H.slicedRows==0){a0=H.rows}else{a0=H.slicedRows}av=1;break;case"blindCurtainTopRight":if(H.slicedRows==0){a0=H.rows}else{a0=H.slicedRows}av=1;break;case"blindCurtainBottomLeft":if(H.slicedRows==0){a0=H.rows}else{a0=H.slicedRows}av=1;break;case"blindCurtainBottomRight":if(H.slicedRows==0){a0=H.rows}else{a0=H.slicedRows}av=1;break;case"blindCurtainSliceTop":if(H.slicedRows==0){a0=H.rows}else{a0=H.slicedRows}av=1;break;case"blindCurtainSliceBottom":if(H.slicedRows==0){a0=H.rows}else{a0=H.slicedRows}av=1;break;case"stampede":h="-"+aI;break;case"mosaic":h=H.gridDifference;break;case"mosaicReverse":h=H.gridDifference;break;case"mosaicRandom":break;case"mosaicSpiral":h=H.gridDifference;aW=1.7;break;case"mosaicSpiralReverse":h=H.gridDifference;aW=1.7;break;case"topLeftBottomRight":h=H.gridDifference;aW=6;break;case"bottomRightTopLeft":h=H.gridDifference;aW=6;break;case"bottomLeftTopRight":h=H.gridDifference;aW=6;break;case"topRightBottomLeft":h=H.gridDifference;aW=6;break;case"scrollLeft":av=1;a0=1;break;case"scrollRight":av=1;a0=1;break;case"scrollTop":av=1;a0=1;break;case"scrollBottom":av=1;a0=1;break;case"scrollHorz":av=1;a0=1;break}var aV=0;var a2=a0*av;var a1=Z-(Math.floor(Z/av)*av);var w=aj-(Math.floor(aj/a0)*a0);var aE;var aM;var aG=0;var aP=0;var ay=new Array();var aO=new Array();var aQ=new Array();while(aV<a2){ay.push(aV);aO.push(aV);F.append('<div class="cameraappended" style="display:none; overflow:hidden; position:absolute; z-index:1000" />');var ax=a(".cameraappended:eq("+aV+")",b);if(aB=="scrollLeft"||aB=="scrollRight"||aB=="scrollTop"||aB=="scrollBottom"||aB=="scrollHorz"){i.eq(aK).clone().show().appendTo(ax)}else{if(aT=="next"){i.eq(aK).clone().show().appendTo(ax)}else{i.eq(aZ).clone().show().appendTo(ax)}}if(aV%av<a1){aE=1}else{aE=0}if(aV%av==0){aG=0}if(Math.floor(aV/av)<w){aM=1}else{aM=0}ax.css({height:Math.floor((aj/a0)+aM+1),left:aG,top:aP,width:Math.floor((Z/av)+aE+1)});a("> .cameraSlide",ax).css({height:aj,"margin-left":"-"+aG+"px","margin-top":"-"+aP+"px",width:Z});aG=aG+ax.width()-1;if(aV%av==av-1){aP=aP+ax.height()-1}aV++}switch(aB){case"curtainTopLeft":break;case"curtainBottomLeft":break;case"curtainSliceLeft":break;case"curtainTopRight":ay=ay.reverse();break;case"curtainBottomRight":ay=ay.reverse();break;case"curtainSliceRight":ay=ay.reverse();break;case"blindCurtainTopLeft":break;case"blindCurtainBottomLeft":ay=ay.reverse();break;case"blindCurtainSliceTop":break;case"blindCurtainTopRight":break;case"blindCurtainBottomRight":ay=ay.reverse();break;case"blindCurtainSliceBottom":ay=ay.reverse();break;case"stampede":ay=Q(ay);break;case"mosaic":break;case"mosaicReverse":ay=ay.reverse();break;case"mosaicRandom":ay=Q(ay);break;case"mosaicSpiral":var aH=a0/2,aU,aS,aR,aY=0;for(aR=0;aR<aH;aR++){aS=aR;for(aU=aR;aU<av-aR-1;aU++){aQ[aY++]=aS*av+aU}aU=av-aR-1;for(aS=aR;aS<a0-aR-1;aS++){aQ[aY++]=aS*av+aU}aS=a0-aR-1;for(aU=av-aR-1;aU>aR;aU--){aQ[aY++]=aS*av+aU}aU=aR;for(aS=a0-aR-1;aS>aR;aS--){aQ[aY++]=aS*av+aU}}ay=aQ;break;case"mosaicSpiralReverse":var aH=a0/2,aU,aS,aR,aY=a2-1;for(aR=0;aR<aH;aR++){aS=aR;for(aU=aR;aU<av-aR-1;aU++){aQ[aY--]=aS*av+aU}aU=av-aR-1;for(aS=aR;aS<a0-aR-1;aS++){aQ[aY--]=aS*av+aU}aS=a0-aR-1;for(aU=av-aR-1;aU>aR;aU--){aQ[aY--]=aS*av+aU}aU=aR;for(aS=a0-aR-1;aS>aR;aS--){aQ[aY--]=aS*av+aU}}ay=aQ;break;case"topLeftBottomRight":for(var aS=0;aS<a0;aS++){for(var aU=0;aU<av;aU++){aQ.push(aU+aS)}}aO=aQ;break;case"bottomRightTopLeft":for(var aS=0;aS<a0;aS++){for(var aU=0;aU<av;aU++){aQ.push(aU+aS)}}aO=aQ.reverse();break;case"bottomLeftTopRight":for(var aS=a0;aS>0;aS--){for(var aU=0;
aU<av;aU++){aQ.push(aU+aS)}}aO=aQ;break;case"topRightBottomLeft":for(var aS=0;aS<a0;aS++){for(var aU=av;aU>0;aU--){aQ.push(aU+aS)}}aO=aQ;break}a.each(ay,function(a3,a5){if(a5%av<a1){aE=1}else{aE=0}if(a5%av==0){aG=0}if(Math.floor(a5/av)<w){aM=1}else{aM=0}switch(aB){case"simpleFade":height=aj;width=Z;opacityOnGrid=0;break;case"curtainTopLeft":height=0,width=Math.floor((Z/av)+aE+1),marginTop="-"+Math.floor((aj/a0)+aM+1)+"px";break;case"curtainTopRight":height=0,width=Math.floor((Z/av)+aE+1),marginTop="-"+Math.floor((aj/a0)+aM+1)+"px";break;case"curtainBottomLeft":height=0,width=Math.floor((Z/av)+aE+1),marginTop=Math.floor((aj/a0)+aM+1)+"px";break;case"curtainBottomRight":height=0,width=Math.floor((Z/av)+aE+1),marginTop=Math.floor((aj/a0)+aM+1)+"px";break;case"curtainSliceLeft":height=0,width=Math.floor((Z/av)+aE+1);if(a5%2==0){marginTop=Math.floor((aj/a0)+aM+1)+"px"}else{marginTop="-"+Math.floor((aj/a0)+aM+1)+"px"}break;case"curtainSliceRight":height=0,width=Math.floor((Z/av)+aE+1);if(a5%2==0){marginTop=Math.floor((aj/a0)+aM+1)+"px"}else{marginTop="-"+Math.floor((aj/a0)+aM+1)+"px"}break;case"blindCurtainTopLeft":height=Math.floor((aj/a0)+aM+1),width=0,marginLeft="-"+Math.floor((Z/av)+aE+1)+"px";break;case"blindCurtainTopRight":height=Math.floor((aj/a0)+aM+1),width=0,marginLeft=Math.floor((Z/av)+aE+1)+"px";break;case"blindCurtainBottomLeft":height=Math.floor((aj/a0)+aM+1),width=0,marginLeft="-"+Math.floor((Z/av)+aE+1)+"px";break;case"blindCurtainBottomRight":height=Math.floor((aj/a0)+aM+1),width=0,marginLeft=Math.floor((Z/av)+aE+1)+"px";break;case"blindCurtainSliceBottom":height=Math.floor((aj/a0)+aM+1),width=0;if(a5%2==0){marginLeft="-"+Math.floor((Z/av)+aE+1)+"px"}else{marginLeft=Math.floor((Z/av)+aE+1)+"px"}break;case"blindCurtainSliceTop":height=Math.floor((aj/a0)+aM+1),width=0;if(a5%2==0){marginLeft="-"+Math.floor((Z/av)+aE+1)+"px"}else{marginLeft=Math.floor((Z/av)+aE+1)+"px"}break;case"stampede":height=0;width=0;marginLeft=(Z*0.2)*(((a3)%av)-(av-(Math.floor(av/2))))+"px";marginTop=(aj*0.2)*((Math.floor(a3/av)+1)-(a0-(Math.floor(a0/2))))+"px";break;case"mosaic":height=0;width=0;break;case"mosaicReverse":height=0;width=0;marginLeft=Math.floor((Z/av)+aE+1)+"px";marginTop=Math.floor((aj/a0)+aM+1)+"px";break;case"mosaicRandom":height=0;width=0;marginLeft=Math.floor((Z/av)+aE+1)*0.5+"px";marginTop=Math.floor((aj/a0)+aM+1)*0.5+"px";break;case"mosaicSpiral":height=0;width=0;marginLeft=Math.floor((Z/av)+aE+1)*0.5+"px";marginTop=Math.floor((aj/a0)+aM+1)*0.5+"px";break;case"mosaicSpiralReverse":height=0;width=0;marginLeft=Math.floor((Z/av)+aE+1)*0.5+"px";marginTop=Math.floor((aj/a0)+aM+1)*0.5+"px";break;case"topLeftBottomRight":height=0;width=0;break;case"bottomRightTopLeft":height=0;width=0;marginLeft=Math.floor((Z/av)+aE+1)+"px";marginTop=Math.floor((aj/a0)+aM+1)+"px";break;case"bottomLeftTopRight":height=0;width=0;marginLeft=0;marginTop=Math.floor((aj/a0)+aM+1)+"px";break;case"topRightBottomLeft":height=0;width=0;marginLeft=Math.floor((Z/av)+aE+1)+"px";marginTop=0;break;case"scrollRight":height=aj;width=Z;marginLeft=-Z;break;case"scrollLeft":height=aj;width=Z;marginLeft=Z;break;case"scrollTop":height=aj;width=Z;marginTop=aj;break;case"scrollBottom":height=aj;width=Z;marginTop=-aj;break;case"scrollHorz":height=aj;width=Z;if(aZ==0&&aK==y-1){marginLeft=-Z}else{if(aZ<aK||(aZ==y-1&&aK==0)){marginLeft=Z}else{marginLeft=-Z}}break}var a6=a(".cameraappended:eq("+a5+")",b);if(typeof aa!=="undefined"){clearInterval(aa);clearTimeout(ac);ac=setTimeout(K,aI+h)}if(a(n).length){a(".camera_pag li",ae).removeClass("cameracurrent");a(".camera_pag li",ae).eq(aK).addClass("cameracurrent")}if(a(M).length){a("li",M).removeClass("cameracurrent");a("li",M).eq(aK).addClass("cameracurrent");a("li",M).not(".cameracurrent").find("img").animate({opacity:0.5},0);a("li.cameracurrent img",M).animate({opacity:1},0);a("li",M).hover(function(){a("img",this).stop(true,false).animate({opacity:1},150)},function(){if(!a(this).hasClass("cameracurrent")){a("img",this).stop(true,false).animate({opacity:0.5},150)}})}var a7=parseFloat(aI)+parseFloat(h);function a4(){a(this).addClass("cameraeased");if(a(".cameraeased",b).length>=0){a(M).css({visibility:"visible"})}if(a(".cameraeased",b).length==a2){I();a(".moveFromLeft, .moveFromRight, .moveFromTop, .moveFromBottom, .fadeIn, .fadeFromLeft, .fadeFromRight, .fadeFromTop, .fadeFromBottom",D).each(function(){a(this).css("visibility","hidden")});i.eq(aK).show().css("z-index","999").removeClass("cameranext").addClass("cameracurrent");i.eq(aZ).css("z-index","1").removeClass("cameracurrent");a(".cameraContent",D).eq(aK).addClass("cameracurrent");if(aZ>=0){a(".cameraContent",D).eq(aZ).removeClass("cameracurrent")}H.onEndTransition.call(this);if(a("> div",ag).eq(aK).attr("data-video")!="hide"&&a(".cameraContent.cameracurrent .imgFake",D).length){a(".cameraContent.cameracurrent .imgFake",D).click()}var bb=i.eq(aK).find(".fadeIn").length;var a8=a(".cameraContent",D).eq(aK).find(".moveFromLeft, .moveFromRight, .moveFromTop, .moveFromBottom, .fadeIn, .fadeFromLeft, .fadeFromRight, .fadeFromTop, .fadeFromBottom").length;
if(bb!=0){a(".cameraSlide.cameracurrent .fadeIn",D).each(function(){if(a(this).attr("data-easing")!=""){var bh=a(this).attr("data-easing")}else{var bh=aN}var bn=a(this);if(typeof bn.attr("data-outerWidth")==="undefined"||bn.attr("data-outerWidth")===false||bn.attr("data-outerWidth")===""){var bg=bn.outerWidth();bn.attr("data-outerWidth",bg)}else{var bg=bn.attr("data-outerWidth")}if(typeof bn.attr("data-outerHeight")==="undefined"||bn.attr("data-outerHeight")===false||bn.attr("data-outerHeight")===""){var bf=bn.outerHeight();bn.attr("data-outerHeight",bf)}else{var bf=bn.attr("data-outerHeight")}var bj=bn.position();var be=bj.left;var bk=bj.top;var bi=bn.attr("class");var bd=bn.index();var bl=bn.parents(".camerarelative").outerHeight();var bm=bn.parents(".camerarelative").outerWidth();if(bi.indexOf("fadeIn")!=-1){bn.animate({opacity:0},0).css("visibility","visible").delay((aX/bb)*(0.1*(bd-1))).animate({opacity:1},(aX/bb)*0.15,bh)}else{bn.css("visibility","visible")}})}a(".cameraContent.cameracurrent",D).show();if(a8!=0){a(".cameraContent.cameracurrent .moveFromLeft, .cameraContent.cameracurrent .moveFromRight, .cameraContent.cameracurrent .moveFromTop, .cameraContent.cameracurrent .moveFromBottom, .cameraContent.cameracurrent .fadeIn, .cameraContent.cameracurrent .fadeFromLeft, .cameraContent.cameracurrent .fadeFromRight, .cameraContent.cameracurrent .fadeFromTop, .cameraContent.cameracurrent .fadeFromBottom",D).each(function(){if(a(this).attr("data-easing")!=""){var be=a(this).attr("data-easing")}else{var be=aN}var bf=a(this);var bk=bf.position();var bi=bk.left;var bh=bk.top;var bj=bf.attr("class");var bg=bf.index();var bd=bf.outerHeight();if(bj.indexOf("moveFromLeft")!=-1){bf.css({left:"-"+(Z)+"px",right:"auto"});bf.css("visibility","visible").delay((aX/a8)*(0.1*(bg-1))).animate({left:bk.left},(aX/a8)*0.15,be)}else{if(bj.indexOf("moveFromRight")!=-1){bf.css({left:Z+"px",right:"auto"});bf.css("visibility","visible").delay((aX/a8)*(0.1*(bg-1))).animate({left:bk.left},(aX/a8)*0.15,be)}else{if(bj.indexOf("moveFromTop")!=-1){bf.css({top:"-"+aj+"px",bottom:"auto"});bf.css("visibility","visible").delay((aX/a8)*(0.1*(bg-1))).animate({top:bk.top},(aX/a8)*0.15,be,function(){bf.css({top:"auto",bottom:0})})}else{if(bj.indexOf("moveFromBottom")!=-1){bf.css({top:aj+"px",bottom:"auto"});bf.css("visibility","visible").delay((aX/a8)*(0.1*(bg-1))).animate({top:bk.top},(aX/a8)*0.15,be)}else{if(bj.indexOf("fadeFromLeft")!=-1){bf.animate({opacity:0},0).css({left:"-"+(Z)+"px",right:"auto"});bf.css("visibility","visible").delay((aX/a8)*(0.1*(bg-1))).animate({left:bk.left,opacity:1},(aX/a8)*0.15,be)}else{if(bj.indexOf("fadeFromRight")!=-1){bf.animate({opacity:0},0).css({left:(Z)+"px",right:"auto"});bf.css("visibility","visible").delay((aX/a8)*(0.1*(bg-1))).animate({left:bk.left,opacity:1},(aX/a8)*0.15,be)}else{if(bj.indexOf("fadeFromTop")!=-1){bf.animate({opacity:0},0).css({top:"-"+(aj)+"px",bottom:"auto"});bf.css("visibility","visible").delay((aX/a8)*(0.1*(bg-1))).animate({top:bk.top,opacity:1},(aX/a8)*0.15,be,function(){bf.css({top:"auto",bottom:0})})}else{if(bj.indexOf("fadeFromBottom")!=-1){bf.animate({opacity:0},0).css({bottom:"-"+bd+"px"});bf.css("visibility","visible").delay((aX/a8)*(0.1*(bg-1))).animate({bottom:"0",opacity:1},(aX/a8)*0.15,be)}else{if(bj.indexOf("fadeIn")!=-1){bf.animate({opacity:0},0).css("visibility","visible").delay((aX/a8)*(0.1*(bg-1))).animate({opacity:1},(aX/a8)*0.15,be)}else{bf.css("visibility","visible")}}}}}}}}}})}a(".cameraappended",b).remove();ag.removeClass("camerasliding");i.eq(aZ).hide();var a9=a(".camera_bar_cont",U).width(),bc=a(".camera_bar_cont",U).height(),ba;if(C!="pie"){ba=0.05}else{ba=0.005}a("#"+q).animate({opacity:H.loaderOpacity},200);aa=setInterval(function(){if(ag.hasClass("stopped")){clearInterval(aa)}if(C!="pie"){if(g<=1.002&&!ag.hasClass("stopped")&&!ag.hasClass("paused")&&!ag.hasClass("hovered")){g=(g+ba)}else{if(g<=1&&(ag.hasClass("stopped")||ag.hasClass("paused")||ag.hasClass("stopped")||ag.hasClass("hovered"))){g=g}else{if(!ag.hasClass("stopped")&&!ag.hasClass("paused")&&!ag.hasClass("hovered")){clearInterval(aa);af();a("#"+q).animate({opacity:0},200,function(){clearTimeout(ac);ac=setTimeout(K,a7);T();H.onStartLoading.call(this)})}}}switch(A){case"leftToRight":a("#"+q).animate({right:a9-(a9*g)},(aX*ba),"linear");break;case"rightToLeft":a("#"+q).animate({left:a9-(a9*g)},(aX*ba),"linear");break;case"topToBottom":a("#"+q).animate({bottom:bc-(bc*g)},(aX*ba),"linear");break;case"bottomToTop":a("#"+q).animate({bottom:bc-(bc*g)},(aX*ba),"linear");break}}else{f=g;B.clearRect(0,0,H.pieDiameter,H.pieDiameter);B.globalCompositeOperation="destination-over";B.beginPath();B.arc((H.pieDiameter)/2,(H.pieDiameter)/2,(H.pieDiameter)/2-H.loaderStroke,0,Math.PI*2,false);B.lineWidth=H.loaderStroke;B.strokeStyle=H.loaderBgColor;B.stroke();B.closePath();B.globalCompositeOperation="source-over";B.beginPath();B.arc((H.pieDiameter)/2,(H.pieDiameter)/2,(H.pieDiameter)/2-H.loaderStroke,0,Math.PI*2*f,false);
B.lineWidth=H.loaderStroke-(H.loaderPadding*2);B.strokeStyle=H.loaderColor;B.stroke();B.closePath();if(g<=1.002&&!ag.hasClass("stopped")&&!ag.hasClass("paused")&&!ag.hasClass("hovered")){g=(g+ba)}else{if(g<=1&&(ag.hasClass("stopped")||ag.hasClass("paused")||ag.hasClass("hovered"))){g=g}else{if(!ag.hasClass("stopped")&&!ag.hasClass("paused")&&!ag.hasClass("hovered")){clearInterval(aa);af();a("#"+q+", .camera_canvas_wrap",U).animate({opacity:0},200,function(){clearTimeout(ac);ac=setTimeout(K,a7);T();H.onStartLoading.call(this)})}}}}},aX*ba)}}if(aB=="scrollLeft"||aB=="scrollRight"||aB=="scrollTop"||aB=="scrollBottom"||aB=="scrollHorz"){H.onStartTransition.call(this);a7=0;a6.delay((((aI+h)/a2)*aO[a3]*aW)*0.5).css({display:"block",height:height,"margin-left":marginLeft,"margin-top":marginTop,width:width}).animate({height:Math.floor((aj/a0)+aM+1),"margin-top":0,"margin-left":0,width:Math.floor((Z/av)+aE+1)},(aI-h),aN,a4);i.eq(aZ).delay((((aI+h)/a2)*aO[a3]*aW)*0.5).animate({"margin-left":marginLeft*(-1),"margin-top":marginTop*(-1)},(aI-h),aN,function(){a(this).css({"margin-top":0,"margin-left":0})})}else{H.onStartTransition.call(this);a7=parseFloat(aI)+parseFloat(h);if(aT=="next"){a6.delay((((aI+h)/a2)*aO[a3]*aW)*0.5).css({display:"block",height:height,"margin-left":marginLeft,"margin-top":marginTop,width:width,opacity:opacityOnGrid}).animate({height:Math.floor((aj/a0)+aM+1),"margin-top":0,"margin-left":0,opacity:1,width:Math.floor((Z/av)+aE+1)},(aI-h),aN,a4)}else{i.eq(aK).show().css("z-index","999").addClass("cameracurrent");i.eq(aZ).css("z-index","1").removeClass("cameracurrent");a(".cameraContent",D).eq(aK).addClass("cameracurrent");a(".cameraContent",D).eq(aZ).removeClass("cameracurrent");a6.delay((((aI+h)/a2)*aO[a3]*aW)*0.5).css({display:"block",height:Math.floor((aj/a0)+aM+1),"margin-top":0,"margin-left":0,opacity:1,width:Math.floor((Z/av)+aE+1)}).animate({height:height,"margin-left":marginLeft,"margin-top":marginTop,width:width,opacity:opacityOnGrid},(aI-h),aN,a4)}}})}}if(a(am).length){a(am).click(function(){if(!ag.hasClass("camerasliding")){var h=parseFloat(a(".cameraSlide.cameracurrent",b).index());clearInterval(aa);af();a("#"+q+", .camera_canvas_wrap",ae).animate({opacity:0},0);K();if(h!=0){T(h)}else{T(y)}H.onStartLoading.call(this)}})}if(a(r).length){a(r).click(function(){if(!ag.hasClass("camerasliding")){var h=parseFloat(a(".cameraSlide.cameracurrent",b).index());clearInterval(aa);af();a("#"+q+", .camera_canvas_wrap",U).animate({opacity:0},0);K();if(h==y-1){T(1)}else{T(h+2)}H.onStartLoading.call(this)}})}if(L()){D.bind("swipeleft",function(h){if(!ag.hasClass("camerasliding")){var u=parseFloat(a(".cameraSlide.cameracurrent",b).index());clearInterval(aa);af();a("#"+q+", .camera_canvas_wrap",U).animate({opacity:0},0);K();if(u==y-1){T(1)}else{T(u+2)}H.onStartLoading.call(this)}});D.bind("swiperight",function(h){if(!ag.hasClass("camerasliding")){var u=parseFloat(a(".cameraSlide.cameracurrent",b).index());clearInterval(aa);af();a("#"+q+", .camera_canvas_wrap",U).animate({opacity:0},0);K();if(u!=0){T(u)}else{T(y)}H.onStartLoading.call(this)}})}if(a(n).length){a(".camera_pag li",ae).click(function(){if(!ag.hasClass("camerasliding")){var u=parseFloat(a(this).index());var h=parseFloat(a(".cameraSlide.cameracurrent",b).index());if(u!=h){clearInterval(aa);af();a("#"+q+", .camera_canvas_wrap",U).animate({opacity:0},0);K();T(u+1);H.onStartLoading.call(this)}}})}if(a(M).length){a(".pix_thumb img",M).click(function(){if(!ag.hasClass("camerasliding")){var u=parseFloat(a(this).parents("li").index());var h=parseFloat(a(".cameracurrent",b).index());if(u!=h){clearInterval(aa);af();a("#"+q+", .camera_canvas_wrap",U).animate({opacity:0},0);a(".pix_thumb",M).removeClass("cameracurrent");a(this).parents("li").addClass("cameracurrent");K();T(u+1);I();H.onStartLoading.call(this)}}});a(".camera_thumbs_cont .camera_prevThumbs",U).hover(function(){a(this).stop(true,false).animate({opacity:1},250)},function(){a(this).stop(true,false).animate({opacity:0.7},250)});a(".camera_prevThumbs",U).click(function(){var ap=0,w=a(M).outerWidth(),h=a("ul",M).offset().left,u=a("> div",M).offset().left,aq=u-h;a(".camera_visThumb",M).each(function(){var ar=a(this).outerWidth();ap=ap+ar});if(aq-ap>0){a("ul",M).animate({"margin-left":"-"+(aq-ap)+"px"},500,z)}else{a("ul",M).animate({"margin-left":0},500,z)}});a(".camera_thumbs_cont .camera_nextThumbs",U).hover(function(){a(this).stop(true,false).animate({opacity:1},250)},function(){a(this).stop(true,false).animate({opacity:0.7},250)});a(".camera_nextThumbs",U).click(function(){var aq=0,ap=a(M).outerWidth(),h=a("ul",M).outerWidth(),u=a("ul",M).offset().left,w=a("> div",M).offset().left,ar=w-u;a(".camera_visThumb",M).each(function(){var at=a(this).outerWidth();aq=aq+at});if(ar+aq+aq<h){a("ul",M).animate({"margin-left":"-"+(ar+aq)+"px"},500,z)}else{a("ul",M).animate({"margin-left":"-"+(h-ap)+"px"},500,z)}})}}})(jQuery);(function(a){a.fn.cameraStop=function(){var b=a(this),c=a(".camera_src",b),e="pie_"+b.index();
c.addClass("stopped");if(a(".camera_showcommands").length){var d=a(".camera_thumbs_wrap",b)}else{var d=b}}})(jQuery);(function(a){a.fn.cameraPause=function(){var b=a(this);var c=a(".camera_src",b);c.addClass("paused")}})(jQuery);(function(a){a.fn.cameraResume=function(){var b=a(this);var c=a(".camera_src",b);if(typeof autoAdv==="undefined"||autoAdv!==true){c.removeClass("paused")}}})(jQuery);
/*! jQuery Mobile v1.3.0 | Copyright 2010, 2013 jQuery Foundation, Inc. | jquery.org/license */
(function(a,b,c){typeof define=="function"&&define.amd?define(["jquery"],function(d){return c(d,a,b),d.mobile}):c(a.jQuery,a,b)})(this,document,function(a,b,c,d){(function(a,b,d){function k(a){return a=a||location.href,"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}var e="hashchange",f=c,g,h=a.event.special,i=f.documentMode,j="on"+e in b&&(i===d||i>7);a.fn[e]=function(a){return a?this.bind(e,a):this.trigger(e)},a.fn[e].delay=50,h[e]=a.extend(h[e],{setup:function(){if(j)return!1;a(g.start)},teardown:function(){if(j)return!1;a(g.stop)}}),g=function(){function n(){var c=k(),d=m(h);c!==h?(l(h=c,d),a(b).trigger(e)):d!==h&&(location.href=location.href.replace(/#.*/,"")+d),g=setTimeout(n,a.fn[e].delay)}var c={},g,h=k(),i=function(a){return a},l=i,m=i;return c.start=function(){g||n()},c.stop=function(){g&&clearTimeout(g),g=d},b.attachEvent&&!b.addEventListener&&!j&&function(){var b,d;c.start=function(){b||(d=a.fn[e].src,d=d&&d+k(),b=a('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){d||l(k()),n()}).attr("src",d||"javascript:0").insertAfter("body")[0].contentWindow,f.onpropertychange=function(){try{event.propertyName==="title"&&(b.document.title=f.title)}catch(a){}})},c.stop=i,m=function(){return k(b.location.href)},l=function(c,d){var g=b.document,h=a.fn[e].domain;c!==d&&(g.title=f.title,g.open(),h&&g.write('<script>document.domain="'+h+'"</script>'),g.close(),b.location.hash=c)}}(),c}()})(a,this),function(a){a.event.special.throttledresize={setup:function(){a(this).bind("resize",c)},teardown:function(){a(this).unbind("resize",c)}};var b=250,c=function(){f=(new Date).getTime(),g=f-d,g>=b?(d=f,a(this).trigger("throttledresize")):(e&&clearTimeout(e),e=setTimeout(c,b-g))},d=0,e,f,g}(a),function(a,b){a.fn.fieldcontain=function(a){return this.addClass("ui-field-contain ui-body ui-br").contents().filter(function(){return this.nodeType===3&&!/\S/.test(this.nodeValue)}).remove()},a(c).bind("pagecreate create",function(b){a(":jqmData(role='fieldcontain')",b.target).jqmEnhanceable().fieldcontain()})}(a),function(a,b){a.fn.grid=function(b){return this.each(function(){var c=a(this),d=a.extend({grid:null},b),e=c.children(),f={solo:1,a:2,b:3,c:4,d:5},g=d.grid,h;if(!g)if(e.length<=5)for(var i in f)f[i]===e.length&&(g=i);else g="a",c.addClass("ui-grid-duo");h=f[g],c.addClass("ui-grid-"+g),e.filter(":nth-child("+h+"n+1)").addClass("ui-block-a"),h>1&&e.filter(":nth-child("+h+"n+2)").addClass("ui-block-b"),h>2&&e.filter(":nth-child("+h+"n+3)").addClass("ui-block-c"),h>3&&e.filter(":nth-child("+h+"n+4)").addClass("ui-block-d"),h>4&&e.filter(":nth-child("+h+"n+5)").addClass("ui-block-e")})}}(a),function(a){a.mobile={}}(a),function(a,b,d){var e={};a.mobile=a.extend(a.mobile,{version:"1.3.0",ns:"",subPageUrlKey:"ui-page",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",focusClass:"ui-focus",ajaxEnabled:!0,hashListeningEnabled:!0,linkBindingEnabled:!0,defaultPageTransition:"fade",maxTransitionWidth:!1,minScrollBack:250,touchOverflowEnabled:!1,defaultDialogTransition:"pop",pageLoadErrorMessage:"Error Loading Page",pageLoadErrorMessageTheme:"e",phonegapNavigationEnabled:!1,autoInitializePage:!0,pushStateEnabled:!0,ignoreContentEnabled:!1,orientationChangeEnabled:!0,buttonMarkup:{hoverDelay:200},window:a(b),document:a(c),keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},behaviors:{},silentScroll:function(c){a.type(c)!=="number"&&(c=a.mobile.defaultHomeScroll),a.event.special.scrollstart.enabled=!1,setTimeout(function(){b.scrollTo(0,c),a.mobile.document.trigger("silentscroll",{x:0,y:c})},20),setTimeout(function(){a.event.special.scrollstart.enabled=!0},150)},nsNormalizeDict:e,nsNormalize:function(b){if(!b)return;return e[b]||(e[b]=a.camelCase(a.mobile.ns+b))},getInheritedTheme:function(a,b){var c=a[0],d="",e=/ui-(bar|body|overlay)-([a-z])\b/,f,g;while(c){f=c.className||"";if(f&&(g=e.exec(f))&&(d=g[2]))break;c=c.parentNode}return d||b||"a"},closestPageData:function(a){return a.closest(':jqmData(role="page"), :jqmData(role="dialog")').data("mobile-page")},enhanceable:function(a){return this.haveParents(a,"enhance")},hijackable:function(a){return this.haveParents(a,"ajax")},haveParents:function(b,c){if(!a.mobile.ignoreContentEnabled)return b;var d=b.length,e=a(),f,g,h;for(var i=0;i<d;i++){g=b.eq(i),h=!1,f=b[i];while(f){var j=f.getAttribute?f.getAttribute("data-"+a.mobile.ns+c):"";if(j==="false"){h=!0;break}f=f.parentNode}h||(e=e.add(g))}return e},getScreenHeight:function(){return b.innerHeight||a.mobile.window.height()}},a.mobile),a.fn.jqmData=function(b,c){var e;return typeof b!="undefined"&&(b&&(b=a.mobile.nsNormalize(b)),arguments.length<2||c===d?e=this.data(b):e=this.data(b,c)),e},a.jqmData=function(b,c,d){var e;return typeof c!="undefined"&&(e=a.data(b,c?a.mobile.nsNormalize(c):c,d)),e},a.fn.jqmRemoveData=function(b){return this.removeData(a.mobile.nsNormalize(b))},a.jqmRemoveData=function(b,c){return a.removeData(b,a.mobile.nsNormalize(c))},a.fn.removeWithDependents=function(){a.removeWithDependents(this)},a.removeWithDependents=function(b){var c=a(b);(c.jqmData("dependents")||a()).remove(),c.remove()},a.fn.addDependents=function(b){a.addDependents(a(this),b)},a.addDependents=function(b,c){var d=a(b).jqmData("dependents")||a();a(b).jqmData("dependents",a.merge(d,c))},a.fn.getEncodedText=function(){return a("<div/>").text(a(this).text()).html()},a.fn.jqmEnhanceable=function(){return a.mobile.enhanceable(this)},a.fn.jqmHijackable=function(){return a.mobile.hijackable(this)};var f=a.find,g=/:jqmData\(([^)]*)\)/g;a.find=function(b,c,d,e){return b=b.replace(g,"[data-"+(a.mobile.ns||"")+"$1]"),f.call(this,b,c,d,e)},a.extend(a.find,f),a.find.matches=function(b,c){return a.find(b,null,null,c)},a.find.matchesSelector=function(b,c){return a.find(c,null,null,[b]).length>0}}(a,this),function(a,d){b.matchMedia=b.matchMedia||function(a,b){var c,d=a.documentElement,e=d.firstElementChild||d.firstChild,f=a.createElement("body"),g=a.createElement("div");return g.id="mq-test-1",g.style.cssText="position:absolute;top:-100em",f.style.background="none",f.appendChild(g),function(a){return g.innerHTML='­<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',d.insertBefore(f,e),c=g.offsetWidth===42,d.removeChild(f),{matches:c,media:a}}}(c),a.mobile.media=function(a){return b.matchMedia(a).matches}}(a),function(a,c){a.extend(a.support,{orientation:"orientation"in b&&"onorientationchange"in b})}(a),function(a,b){function o(){var a=g();a!==h&&(h=a,d.trigger(e))}var d=a(b),e="orientationchange",f,g,h,i,j,k={0:!0,180:!0};if(a.support.orientation){var l=b.innerWidth||d.width(),m=b.innerHeight||d.height(),n=50;i=l>m&&l-m>n,j=k[b.orientation];if(i&&j||!i&&!j)k={"-90":!0,90:!0}}a.event.special.orientationchange=a.extend({},a.event.special.orientationchange,{setup:function(){if(a.support.orientation&&!a.event.special.orientationchange.disabled)return!1;h=g(),d.bind("throttledresize",o)},teardown:function(){if(a.support.orientation&&!a.event.special.orientationchange.disabled)return!1;d.unbind("throttledresize",o)},add:function(a){var b=a.handler;a.handler=function(a){return a.orientation=g(),b.apply(this,arguments)}}}),a.event.special.orientationchange.orientation=g=function(){var d=!0,e=c.documentElement;return a.support.orientation?d=k[b.orientation]:d=e&&e.clientWidth/e.clientHeight<1.1,d?"portrait":"landscape"},a.fn[e]=function(a){return a?this.bind(e,a):this.trigger(e)},a.attrFn&&(a.attrFn[e]=!0)}(a,this),function(a,b){var d={touch:"ontouchend"in c};a.mobile.support=a.mobile.support||{},a.extend(a.support,d),a.extend(a.mobile.support,d)}(a),function(a,d){function e(a){var b=a.charAt(0).toUpperCase()+a.substr(1),c=(a+" "+h.join(b+" ")+b).split(" ");for(var e in c)if(g[c[e]]!==d)return!0}function m(a,b,d){var e=c.createElement("div"),f=function(a){return a.charAt(0).toUpperCase()+a.substr(1)},g=function(a){return a===""?"":"-"+a.charAt(0).toLowerCase()+a.substr(1)+"-"},i=function(c){var d=g(c)+a+": "+b+";",h=f(c),i=h+(h===""?a:f(a));e.setAttribute("style",d),!e.style[i]||(k=!0)},j=d?d:h,k;for(var l=0;l<j.length;l++)i(j[l]);return!!k}function n(){var e="transform-3d",g=a.mobile.media("(-"+h.join("-"+e+"),(-")+"-"+e+"),("+e+")");if(g)return!!g;var i=c.createElement("div"),j={MozTransform:"-moz-transform",transform:"transform"};f.append(i);for(var k in j)i.style[k]!==d&&(i.style[k]="translate3d( 100px, 1px, 1px )",g=b.getComputedStyle(i).getPropertyValue(j[k]));return!!g&&g!=="none"}function o(){var b=location.protocol+"//"+location.host+location.pathname+"ui-dir/",c=a("head base"),d=null,e="",g,h;return c.length?e=c.attr("href"):c=d=a("<base>",{href:b}).appendTo("head"),g=a("<a href='testurl' />").prependTo(f),h=g[0].href,c[0].href=e||location.pathname,d&&d.remove(),h.indexOf(b)===0}function p(){var a=c.createElement("x"),d=c.documentElement,e=b.getComputedStyle,f;return"pointerEvents"in a.style?(a.style.pointerEvents="auto",a.style.pointerEvents="x",d.appendChild(a),f=e&&e(a,"").pointerEvents==="auto",d.removeChild(a),!!f):!1}function q(){var a=c.createElement("div");return typeof a.getBoundingClientRect!="undefined"}function r(){var a=b,c=navigator.userAgent,d=navigator.platform,e=c.match(/AppleWebKit\/([0-9]+)/),f=!!e&&e[1],g=c.match(/Fennec\/([0-9]+)/),h=!!g&&g[1],i=c.match(/Opera Mobi\/([0-9]+)/),j=!!i&&i[1];return(d.indexOf("iPhone")>-1||d.indexOf("iPad")>-1||d.indexOf("iPod")>-1)&&f&&f<534||a.operamini&&{}.toString.call(a.operamini)==="[object OperaMini]"||i&&j<7458||c.indexOf("Android")>-1&&f&&f<533||h&&h<6||"palmGetResource"in b&&f&&f<534||c.indexOf("MeeGo")>-1&&c.indexOf("NokiaBrowser/8.5.0")>-1?!1:!0}var f=a("<body>").prependTo("html"),g=f[0].style,h=["Webkit","Moz","O"],i="palmGetResource"in b,j=b.opera,k=b.operamini&&{}.toString.call(b.operamini)==="[object OperaMini]",l=b.blackberry&&!e("-webkit-transform");a.extend(a.mobile,{browser:{}}),a.mobile.browser.oldIE=function(){var a=3,b=c.createElement("div"),d=b.all||[];do b.innerHTML="<!--[if gt IE "+ ++a+"]><br><![endif]-->";while(d[0]);return a>4?a:!a}(),a.extend(a.support,{cssTransitions:"WebKitTransitionEvent"in b||m("transition","height 100ms linear",["Webkit","Moz",""])&&!a.mobile.browser.oldIE&&!j,pushState:"pushState"in history&&"replaceState"in history&&b.navigator.userAgent.search(/CriOS/)===-1,mediaquery:a.mobile.media("only all"),cssPseudoElement:!!e("content"),touchOverflow:!!e("overflowScrolling"),cssTransform3d:n(),boxShadow:!!e("boxShadow")&&!l,fixedPosition:r(),scrollTop:("pageXOffset"in b||"scrollTop"in c.documentElement||"scrollTop"in f[0])&&!i&&!k,dynamicBaseTag:o(),cssPointerEvents:p(),boundingRect:q()}),f.remove();var s=function(){var a=b.navigator.userAgent;return a.indexOf("Nokia")>-1&&(a.indexOf("Symbian/3")>-1||a.indexOf("Series60/5")>-1)&&a.indexOf("AppleWebKit")>-1&&a.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)}();a.mobile.gradeA=function(){return(a.support.mediaquery||a.mobile.browser.oldIE&&a.mobile.browser.oldIE>=7)&&(a.support.boundingRect||a.fn.jquery.match(/1\.[0-7+]\.[0-9+]?/)!==null)},a.mobile.ajaxBlacklist=b.blackberry&&!b.WebKitPoint||k||s,s&&a(function(){a("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")}),a.support.boxShadow||a("html").addClass("ui-mobile-nosupport-boxshadow")}(a),function(a,b){var c=a.mobile.window,d,e;a.event.special.navigate=d={bound:!1,pushStateEnabled:!0,originalEventName:b,isPushStateEnabled:function(){return a.support.pushState&&a.mobile.pushStateEnabled===!0&&this.isHashChangeEnabled()},isHashChangeEnabled:function(){return a.mobile.hashListeningEnabled===!0},popstate:function(b){var d=new a.Event("navigate"),e=new a.Event("beforenavigate"),f=b.originalEvent.state||{},g=location.href;c.trigger(e);if(e.isDefaultPrevented())return;b.historyState&&a.extend(f,b.historyState),d.originalEvent=b,setTimeout(function(){c.trigger(d,{state:f})},0)},hashchange:function(b,d){var e=new a.Event("navigate"),f=new a.Event("beforenavigate");c.trigger(f);if(f.isDefaultPrevented())return;e.originalEvent=b,c.trigger(e,{state:b.hashchangeState||{}})},setup:function(a,b){if(d.bound)return;d.bound=!0,d.isPushStateEnabled()?(d.originalEventName="popstate",c.bind("popstate.navigate",d.popstate)):d.isHashChangeEnabled()&&(d.originalEventName="hashchange",c.bind("hashchange.navigate",d.hashchange))}}}(a),function(a,b,c){var d=function(d){return d===c&&(d=!0),function(c,e,f,g){var h=new a.Deferred,i=e?" reverse":"",j=a.mobile.urlHistory.getActive(),k=j.lastScroll||a.mobile.defaultHomeScroll,l=a.mobile.getScreenHeight(),m=a.mobile.maxTransitionWidth!==!1&&a.mobile.window.width()>a.mobile.maxTransitionWidth,n=!a.support.cssTransitions||m||!c||c==="none"||Math.max(a.mobile.window.scrollTop(),k)>a.mobile.getMaxScrollForTransition(),o=" ui-page-pre-in",p=function(){a.mobile.pageContainer.toggleClass("ui-mobile-viewport-transitioning viewport-"+c)},q=function(){a.event.special.scrollstart.enabled=!1,b.scrollTo(0,k),setTimeout(function(){a.event.special.scrollstart.enabled=!0},150)},r=function(){g.removeClass(a.mobile.activePageClass+" out in reverse "+c).height("")},s=function(){d?g.animationComplete(t):t(),g.height(l+a.mobile.window.scrollTop()).addClass(c+" out"+i)},t=function(){g&&d&&r(),u()},u=function(){f.css("z-index",-10),f.addClass(a.mobile.activePageClass+o),a.mobile.focusPage(f),f.height(l+k),q(),f.css("z-index",""),n||f.animationComplete(v),f.removeClass(o).addClass(c+" in"+i),n&&v()},v=function(){d||g&&r(),f.removeClass("out in reverse "+c).height(""),p(),a.mobile.window.scrollTop()!==k&&q(),h.resolve(c,e,f,g,!0)};return p(),g&&!n?s():t(),h.promise()}},e=d(),f=d(!1),g=function(){return a.mobile.getScreenHeight()*3};a.mobile.defaultTransitionHandler=e,a.mobile.transitionHandlers={"default":a.mobile.defaultTransitionHandler,sequential:e,simultaneous:f},a.mobile.transitionFallbacks={},a.mobile._maybeDegradeTransition=function(b){return b&&!a.support.cssTransform3d&&a.mobile.transitionFallbacks[b]&&(b=a.mobile.transitionFallbacks[b]),b},a.mobile.getMaxScrollForTransition=a.mobile.getMaxScrollForTransition||g}(a,this),function(a,b,c,d){function x(a){while(a&&typeof a.originalEvent!="undefined")a=a.originalEvent;return a}function y(b,c){var e=b.type,f,g,i,k,l,m,n,o,p;b=a.Event(b),b.type=c,f=b.originalEvent,g=a.event.props,e.search(/^(mouse|click)/)>-1&&(g=j);if(f)for(n=g.length,k;n;)k=g[--n],b[k]=f[k];e.search(/mouse(down|up)|click/)>-1&&!b.which&&(b.which=1);if(e.search(/^touch/)!==-1){i=x(f),e=i.touches,l=i.changedTouches,m=e&&e.length?e[0]:l&&l.length?l[0]:d;if(m)for(o=0,p=h.length;o<p;o++)k=h[o],b[k]=m[k]}return b}function z(b){var c={},d,f;while(b){d=a.data(b,e);for(f in d)d[f]&&(c[f]=c.hasVirtualBinding=!0);b=b.parentNode}return c}function A(b,c){var d;while(b){d=a.data(b,e);if(d&&(!c||d[c]))return b;b=b.parentNode}return null}function B(){r=!1}function C(){r=!0}function D(){v=0,p.length=0,q=!1,C()}function E(){B()}function F(){G(),l=setTimeout(function(){l=0,D()},a.vmouse.resetTimerDuration)}function G(){l&&(clearTimeout(l),l=0)}function H(b,c,d){var e;if(d&&d[b]||!d&&A(c.target,b))e=y(c,b),a(c.target).trigger(e);return e}function I(b){var c=a.data(b.target,f);if(!q&&(!v||v!==c)){var d=H("v"+b.type,b);d&&(d.isDefaultPrevented()&&b.preventDefault(),d.isPropagationStopped()&&b.stopPropagation(),d.isImmediatePropagationStopped()&&b.stopImmediatePropagation())}}function J(b){var c=x(b).touches,d,e;if(c&&c.length===1){d=b.target,e=z(d);if(e.hasVirtualBinding){v=u++,a.data(d,f,v),G(),E(),o=!1;var g=x(b).touches[0];m=g.pageX,n=g.pageY,H("vmouseover",b,e),H("vmousedown",b,e)}}}function K(a){if(r)return;o||H("vmousecancel",a,z(a.target)),o=!0,F()}function L(b){if(r)return;var c=x(b).touches[0],d=o,e=a.vmouse.moveDistanceThreshold,f=z(b.target);o=o||Math.abs(c.pageX-m)>e||Math.abs(c.pageY-n)>e,o&&!d&&H("vmousecancel",b,f),H("vmousemove",b,f),F()}function M(a){if(r)return;C();var b=z(a.target),c;H("vmouseup",a,b);if(!o){var d=H("vclick",a,b);d&&d.isDefaultPrevented()&&(c=x(a).changedTouches[0],p.push({touchID:v,x:c.clientX,y:c.clientY}),q=!0)}H("vmouseout",a,b),o=!1,F()}function N(b){var c=a.data(b,e),d;if(c)for(d in c)if(c[d])return!0;return!1}function O(){}function P(b){var c=b.substr(1);return{setup:function(d,f){N(this)||a.data(this,e,{});var g=a.data(this,e);g[b]=!0,k[b]=(k[b]||0)+1,k[b]===1&&t.bind(c,I),a(this).bind(c,O),s&&(k.touchstart=(k.touchstart||0)+1,k.touchstart===1&&t.bind("touchstart",J).bind("touchend",M).bind("touchmove",L).bind("scroll",K))},teardown:function(d,f){--k[b],k[b]||t.unbind(c,I),s&&(--k.touchstart,k.touchstart||t.unbind("touchstart",J).unbind("touchmove",L).unbind("touchend",M).unbind("scroll",K));var g=a(this),h=a.data(this,e);h&&(h[b]=!1),g.unbind(c,O),N(this)||g.removeData(e)}}}var e="virtualMouseBindings",f="virtualTouchID",g="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),h="clientX clientY pageX pageY screenX screenY".split(" "),i=a.event.mouseHooks?a.event.mouseHooks.props:[],j=a.event.props.concat(i),k={},l=0,m=0,n=0,o=!1,p=[],q=!1,r=!1,s="addEventListener"in c,t=a(c),u=1,v=0,w;a.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var Q=0;Q<g.length;Q++)a.event.special[g[Q]]=P(g[Q]);s&&c.addEventListener("click",function(b){var c=p.length,d=b.target,e,g,h,i,j,k;if(c){e=b.clientX,g=b.clientY,w=a.vmouse.clickDistanceThreshold,h=d;while(h){for(i=0;i<c;i++){j=p[i],k=0;if(h===d&&Math.abs(j.x-e)<w&&Math.abs(j.y-g)<w||a.data(h,f)===j.touchID){b.preventDefault(),b.stopPropagation();return}}h=h.parentNode}}},!0)}(a,b,c),function(a,b,d){function k(b,c,d){var e=d.type;d.type=c,a.event.dispatch.call(b,d),d.type=e}var e=a(c);a.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(b,c){a.fn[c]=function(a){return a?this.bind(c,a):this.trigger(c)},a.attrFn&&(a.attrFn[c]=!0)});var f=a.mobile.support.touch,g="touchmove scroll",h=f?"touchstart":"mousedown",i=f?"touchend":"mouseup",j=f?"touchmove":"mousemove";a.event.special.scrollstart={enabled:!0,setup:function(){function f(a,c){d=c,k(b,d?"scrollstart":"scrollstop",a)}var b=this,c=a(b),d,e;c.bind(g,function(b){if(!a.event.special.scrollstart.enabled)return;d||f(b,!0),clearTimeout(e),e=setTimeout(function(){f(b,!1)},50)})}},a.event.special.tap={tapholdThreshold:750,setup:function(){var b=this,c=a(b);c.bind("vmousedown",function(d){function i(){clearTimeout(h)}function j(){i(),c.unbind("vclick",l).unbind("vmouseup",i),e.unbind("vmousecancel",j)}function l(a){j(),f===a.target&&k(b,"tap",a)}if(d.which&&d.which!==1)return!1;var f=d.target,g=d.originalEvent,h;c.bind("vmouseup",i).bind("vclick",l),e.bind("vmousecancel",j),h=setTimeout(function(){k(b,"taphold",a.Event("taphold",{target:f}))},a.event.special.tap.tapholdThreshold)})}},a.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,start:function(b){var c=b.originalEvent.touches?b.originalEvent.touches[0]:b;return{time:(new Date).getTime(),coords:[c.pageX,c.pageY],origin:a(b.target)}},stop:function(a){var b=a.originalEvent.touches?a.originalEvent.touches[0]:a;return{time:(new Date).getTime(),coords:[b.pageX,b.pageY]}},handleSwipe:function(b,c){c.time-b.time<a.event.special.swipe.durationThreshold&&Math.abs(b.coords[0]-c.coords[0])>a.event.special.swipe.horizontalDistanceThreshold&&Math.abs(b.coords[1]-c.coords[1])<a.event.special.swipe.verticalDistanceThreshold&&b.origin.trigger("swipe").trigger(b.coords[0]>c.coords[0]?"swipeleft":"swiperight")},setup:function(){var b=this,c=a(b);c.bind(h,function(b){function g(b){if(!e)return;f=a.event.special.swipe.stop(b),Math.abs(e.coords[0]-f.coords[0])>a.event.special.swipe.scrollSupressionThreshold&&b.preventDefault()}var e=a.event.special.swipe.start(b),f;c.bind(j,g).one(i,function(){c.unbind(j,g),e&&f&&a.event.special.swipe.handleSwipe(e,f),e=f=d})})}},a.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(b,c){a.event.special[b]={setup:function(){a(this).bind(c,a.noop)}}})}(a,this),function(a,b){function e(a){var b;while(a){b=typeof a.className=="string"&&a.className+" ";if(b&&b.indexOf("ui-btn ")>-1&&b.indexOf("ui-disabled ")<0)break;a=a.parentNode}return a}function f(d,e,f,g,h){var i=a.data(d[0],"buttonElements");d.removeClass(e).addClass(f),i&&(i.bcls=a(c.createElement("div")).addClass(i.bcls+" "+f).removeClass(e).attr("class"),g!==b&&(i.hover=g),i.state=h)}var d=function(a,c){var d=a.getAttribute(c);return d==="true"?!0:d==="false"?!1:d===null?b:d};a.fn.buttonMarkup=function(e){var f=this,h="data-"+a.mobile.ns,i;e=e&&a.type(e)==="object"?e:{};for(var j=0;j<f.length;j++){var k=f.eq(j),l=k[0],m=a.extend({},a.fn.buttonMarkup.defaults,{icon:e.icon!==b?e.icon:d(l,h+"icon"),iconpos:e.iconpos!==b?e.iconpos:d(l,h+"iconpos"),theme:e.theme!==b?e.theme:d(l,h+"theme")||a.mobile.getInheritedTheme(k,"c"),inline:e.inline!==b?e.inline:d(l,h+"inline"),shadow:e.shadow!==b?e.shadow:d(l,h+"shadow"),corners:e.corners!==b?e.corners:d(l,h+"corners"),iconshadow:e.iconshadow!==b?e.iconshadow:d(l,h+"iconshadow"),mini:e.mini!==b?e.mini:d(l,h+"mini")},e),n="ui-btn-inner",o="ui-btn-text",p,q,r=!1,s="up",t,u,v,w;for(i in m)l.setAttribute(h+i,m[i]);d(l,h+"rel")==="popup"&&k.attr("href")&&(l.setAttribute("aria-haspopup",!0),l.setAttribute("aria-owns",k.attr("href"))),w=a.data(l.tagName==="INPUT"||l.tagName==="BUTTON"?l.parentNode:l,"buttonElements"),w?(l=w.outer,k=a(l),t=w.inner,u=w.text,a(w.icon).remove(),w.icon=null,r=w.hover,s=w.state):(t=c.createElement(m.wrapperEls),u=c.createElement(m.wrapperEls)),v=m.icon?c.createElement("span"):null,g&&!w&&g(),m.theme||(m.theme=a.mobile.getInheritedTheme(k,"c")),p="ui-btn ",p+=r?"ui-btn-hover-"+m.theme:"",p+=s?" ui-btn-"+s+"-"+m.theme:"",p+=m.shadow?" ui-shadow":"",p+=m.corners?" ui-btn-corner-all":"",m.mini!==b&&(p+=m.mini===!0?" ui-mini":" ui-fullsize"),m.inline!==b&&(p+=m.inline===!0?" ui-btn-inline":" ui-btn-block"),m.icon&&(m.icon="ui-icon-"+m.icon,m.iconpos=m.iconpos||"left",q="ui-icon "+m.icon,m.iconshadow&&(q+=" ui-icon-shadow")),m.iconpos&&(p+=" ui-btn-icon-"+m.iconpos,m.iconpos==="notext"&&!k.attr("title")&&k.attr("title",k.getEncodedText())),m.iconpos&&m.iconpos==="notext"&&!k.attr("title")&&k.attr("title",k.getEncodedText()),w&&k.removeClass(w.bcls||""),k.removeClass("ui-link").addClass(p),t.className=n,u.className=o,w||t.appendChild(u);if(v){v.className=q;if(!w||!w.icon)v.innerHTML=" ",t.appendChild(v)}while(l.firstChild&&!w)u.appendChild(l.firstChild);w||l.appendChild(t),w={hover:r,state:s,bcls:p,outer:l,inner:t,text:u,icon:v},a.data(l,"buttonElements",w),a.data(t,"buttonElements",w),a.data(u,"buttonElements",w),v&&a.data(v,"buttonElements",w)}return this},a.fn.buttonMarkup.defaults={corners:!0,shadow:!0,iconshadow:!0,wrapperEls:"span"};var g=function(){var c=a.mobile.buttonMarkup.hoverDelay,d,h;a.mobile.document.bind({"vmousedown vmousecancel vmouseup vmouseover vmouseout focus blur scrollstart":function(g){var i,j=a(e(g.target)),k=g.originalEvent&&/^touch/.test(g.originalEvent.type),l=g.type;if(j.length){i=j.attr("data-"+a.mobile.ns+"theme");if(l==="vmousedown")k?d=setTimeout(function(){f(j,"ui-btn-up-"+i,"ui-btn-down-"+i,b,"down")},c):f(j,"ui-btn-up-"+i,"ui-btn-down-"+i,b,"down");else if(l==="vmousecancel"||l==="vmouseup")f(j,"ui-btn-down-"+i,"ui-btn-up-"+i,b,"up");else if(l==="vmouseover"||l==="focus")k?h=setTimeout(function(){f(j,"ui-btn-up-"+i,"ui-btn-hover-"+i,!0,"")},c):f(j,"ui-btn-up-"+i,"ui-btn-hover-"+i,!0,"");else if(l==="vmouseout"||l==="blur"||l==="scrollstart")f(j,"ui-btn-hover-"+i+" ui-btn-down-"+i,"ui-btn-up-"+i,!1,"up"),d&&clearTimeout(d),h&&clearTimeout(h)}},"focusin focus":function(b){a(e(b.target)).addClass(a.mobile.focusClass)},"focusout blur":function(b){a(e(b.target)).removeClass(a.mobile.focusClass)}}),g=null};a.mobile.document.bind("pagecreate create",function(b){a(":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a, .ui-bar > :jqmData(role='controlgroup') > a",b.target).jqmEnhanceable().not("button, input, .ui-btn, :jqmData(role='none'), :jqmData(role='nojs')").buttonMarkup()})}(a),function(a,b){var c=0,d=Array.prototype.slice,e=a.cleanData;a.cleanData=function(b){for(var c=0,d;(d=b[c])!=null;c++)try{a(d).triggerHandler("remove")}catch(f){}e(b)},a.widget=function(b,c,d){var e,f,g,h,i=b.split(".")[0];b=b.split(".")[1],e=i+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][e.toLowerCase()]=function(b){return!!a.data(b,e)},a[i]=a[i]||{},f=a[i][b],g=a[i][b]=function(a,b){if(!this._createWidget)return new g(a,b);arguments.length&&this._createWidget(a,b)},a.extend(g,f,{version:d.version,_proto:a.extend({},d),_childConstructors:[]}),h=new c,h.options=a.widget.extend({},h.options),a.each(d,function(b,e){a.isFunction(e)&&(d[b]=function(){var a=function(){return c.prototype[b].apply(this,arguments)},d=function(a){return c.prototype[b].apply(this,a)};return function(){var b=this._super,c=this._superApply,f;return this._super=a,this._superApply=d,f=e.apply(this,arguments),this._super=b,this._superApply=c,f}}())}),g.prototype=a.widget.extend(h,{widgetEventPrefix:f?h.widgetEventPrefix:b},d,{constructor:g,namespace:i,widgetName:b,widgetFullName:e}),f?(a.each(f._childConstructors,function(b,c){var d=c.prototype;a.widget(d.namespace+"."+d.widgetName,g,c._proto)}),delete f._childConstructors):c._childConstructors.push(g),a.widget.bridge(b,g)},a.widget.extend=function(c){var e=d.call(arguments,1),f=0,g=e.length,h,i;for(;f<g;f++)for(h in e[f])i=e[f][h],e[f].hasOwnProperty(h)&&i!==b&&(a.isPlainObject(i)?c[h]=a.isPlainObject(c[h])?a.widget.extend({},c[h],i):a.widget.extend({},i):c[h]=i);return c},a.widget.bridge=function(c,e){var f=e.prototype.widgetFullName||c;a.fn[c]=function(g){var h=typeof g=="string",i=d.call(arguments,1),j=this;return g=!h&&i.length?a.widget.extend.apply(null,[g].concat(i)):g,h?this.each(function(){var d,e=a.data(this,f);if(!e)return a.error("cannot call methods on "+c+" prior to initialization; "+"attempted to call method '"+g+"'");if(!a.isFunction(e[g])||g.charAt(0)==="_")return a.error("no such method '"+g+"' for "+c+" widget instance");d=e[g].apply(e,i);if(d!==e&&d!==b)return j=d&&d.jquery?j.pushStack(d.get()):d,!1}):this.each(function(){var b=a.data(this,f);b?b.option(g||{})._init():a.data(this,f,new e(g,this))}),j}},a.Widget=function(){},a.Widget._childConstructors=[],a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(b,d){d=a(d||this.defaultElement||this)[0],this.element=a(d),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=a.widget.extend({},this.options,this._getCreateOptions(),b),this.bindings=a(),this.hoverable=a(),this.focusable=a(),d!==this&&(a.data(d,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:a.noop,widget:function(){return this.element},option:function(c,d){var e=c,f,g,h;if(arguments.length===0)return a.widget.extend({},this.options);if(typeof c=="string"){e={},f=c.split("."),c=f.shift();if(f.length){g=e[c]=a.widget.extend({},this.options[c]);for(h=0;h<f.length-1;h++)g[f[h]]=g[f[h]]||{},g=g[f[h]];c=f.pop();if(d===b)return g[c]===b?null:g[c];g[c]=d}else{if(d===b)return this.options[c]===b?null:this.options[c];e[c]=d}}return this._setOptions(e),this},_setOptions:function(a){var b;for(b in a)this._setOption(b,a[b]);return this},_setOption:function(a,b){return this.options[a]=b,a==="disabled"&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!b).attr("aria-disabled",b),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(b,c,d){var e,f=this;typeof b!="boolean"&&(d=c,c=b,b=!1),d?(c=e=a(c),this.bindings=this.bindings.add(c)):(d=c,c=this.element,e=this.widget()),a.each(d,function(d,g){function h(){if(!b&&(f.options.disabled===!0||a(this).hasClass("ui-state-disabled")))return;return(typeof g=="string"?f[g]:g).apply(f,arguments)}typeof g!="string"&&(h.guid=g.guid=g.guid||h.guid||a.guid++);var i=d.match(/^(\w+)\s*(.*)$/),j=i[1]+f.eventNamespace,k=i[2];k?e.delegate(k,j,h):c.bind(j,h)})},_off:function(a,b){b=(b||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,a.unbind(b).undelegate(b)},_delay:function(a,b){function c(){return(typeof a=="string"?d[a]:a).apply(d,arguments)}var d=this;return setTimeout(c,b||0)},_hoverable:function(b){this.hoverable=this.hoverable.add(b),this._on(b,{mouseenter:function(b){a(b.currentTarget).addClass("ui-state-hover")},mouseleave:function(b){a(b.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(b){this.focusable=this.focusable.add(b),this._on(b,{focusin:function(b){a(b.currentTarget).addClass("ui-state-focus")},focusout:function(b){a(b.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(b,c,d){var e,f,g=this.options[b];d=d||{},c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),c.target=this.element[0],f=c.originalEvent;if(f)for(e in f)e in c||(c[e]=f[e]);return this.element.trigger(c,d),!(a.isFunction(g)&&g.apply(this.element[0],[c].concat(d))===!1||c.isDefaultPrevented())}},a.each({show:"fadeIn",hide:"fadeOut"},function(b,c){a.Widget.prototype["_"+b]=function(d,e,f){typeof e=="string"&&(e={effect:e});var g,h=e?e===!0||typeof e=="number"?c:e.effect||c:b;e=e||{},typeof e=="number"&&(e={duration:e}),g=!a.isEmptyObject(e),e.complete=f,e.delay&&d.delay(e.delay),g&&a.effects&&a.effects.effect[h]?d[b](e):h!==b&&d[h]?d[h](e.duration,e.easing,f):d.queue(function(c){a(this)[b](),f&&f.call(d[0]),c()})}})}(a),function(a,b){a.widget("mobile.widget",{_createWidget:function(){a.Widget.prototype._createWidget.apply(this,arguments),this._trigger("init")},_getCreateOptions:function(){var c=this.element,d={};return a.each(this.options,function(a){var e=c.jqmData(a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}));e!==b&&(d[a]=e)}),d},enhanceWithin:function(b,c){this.enhance(a(this.options.initSelector,a(b)),c)},enhance:function(b,c){var d,e,f=a(b),g=this;f=a.mobile.enhanceable(f),c&&f.length&&(d=a.mobile.closestPageData(f),e=d&&d.keepNativeSelector()||"",f=f.not(e)),f[this.widgetName]()},raise:function(a){throw"Widget ["+this.widgetName+"]: "+a}})}(a),function(a){var b=a("meta[name=viewport]"),c=b.attr("content"),d=c+",maximum-scale=1, user-scalable=no",e=c+",maximum-scale=10, user-scalable=yes",f=/(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test(c);a.mobile.zoom=a.extend({},{enabled:!f,locked:!1,disable:function(c){!f&&!a.mobile.zoom.locked&&(b.attr("content",d),a.mobile.zoom.enabled=!1,a.mobile.zoom.locked=c||!1)},enable:function(c){!f&&(!a.mobile.zoom.locked||c===!0)&&(b.attr("content",e),a.mobile.zoom.enabled=!0,a.mobile.zoom.locked=!1)},restore:function(){f||(b.attr("content",c),a.mobile.zoom.enabled=!0)}})}(a),function(a,c){var d,e,f,g="&ui-state=dialog";a.mobile.path=d={uiStateKey:"&ui-state",urlParseRE:/^\s*(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,getLocation:function(a){var b=a?this.parseUrl(a):location,c=this.parseUrl(a||location.href).hash;return c=c==="#"?"":c,b.protocol+"//"+b.host+b.pathname+b.search+c},parseLocation:function(){return this.parseUrl(this.getLocation())},parseUrl:function(b){if(a.type(b)==="object")return b;var c=d.urlParseRE.exec(b||"")||[];return{href:c[0]||"",hrefNoHash:c[1]||"",hrefNoSearch:c[2]||"",domain:c[3]||"",protocol:c[4]||"",doubleSlash:c[5]||"",authority:c[6]||"",username:c[8]||"",password:c[9]||"",host:c[10]||"",hostname:c[11]||"",port:c[12]||"",pathname:c[13]||"",directory:c[14]||"",filename:c[15]||"",search:c[16]||"",hash:c[17]||""}},makePathAbsolute:function(a,b){if(a&&a.charAt(0)==="/")return a;a=a||"",b=b?b.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,""):"";var c=b?b.split("/"):[],d=a.split("/");for(var e=0;e<d.length;e++){var f=d[e];switch(f){case".":break;case"..":c.length&&c.pop();break;default:c.push(f)}}return"/"+c.join("/")},isSameDomain:function(a,b){return d.parseUrl(a).domain===d.parseUrl(b).domain},isRelativeUrl:function(a){return d.parseUrl(a).protocol===""},isAbsoluteUrl:function(a){return d.parseUrl(a).protocol!==""},makeUrlAbsolute:function(a,b){if(!d.isRelativeUrl(a))return a;b===c&&(b=this.documentBase);var e=d.parseUrl(a),f=d.parseUrl(b),g=e.protocol||f.protocol,h=e.protocol?e.doubleSlash:e.doubleSlash||f.doubleSlash,i=e.authority||f.authority,j=e.pathname!=="",k=d.makePathAbsolute(e.pathname||f.filename,f.pathname),l=e.search||!j&&f.search||"",m=e.hash;return g+h+i+k+l+m},addSearchParams:function(b,c){var e=d.parseUrl(b),f=typeof c=="object"?a.param(c):c,g=e.search||"?";return e.hrefNoSearch+g+(g.charAt(g.length-1)!=="?"?"&":"")+f+(e.hash||"")},convertUrlToDataUrl:function(a){var c=d.parseUrl(a);return d.isEmbeddedPage(c)?c.hash.split(g)[0].replace(/^#/,"").replace(/\?.*$/,""):d.isSameDomain(c,this.documentBase)?c.hrefNoHash.replace(this.documentBase.domain,"").split(g)[0]:b.decodeURIComponent(a)},get:function(a){return a===c&&(a=d.parseLocation().hash),d.stripHash(a).replace(/[^\/]*\.[^\/*]+$/,"")},set:function(a){location.hash=a},isPath:function(a){return/\//.test(a)},clean:function(a){return a.replace(this.documentBase.domain,"")},stripHash:function(a){return a.replace(/^#/,"")},stripQueryParams:function(a){return a.replace(/\?.*$/,"")},cleanHash:function(a){return d.stripHash(a.replace(/\?.*$/,"").replace(g,""))},isHashValid:function(a){return/^#[^#]+$/.test(a)},isExternal:function(a){var b=d.parseUrl(a);return b.protocol&&b.domain!==this.documentUrl.domain?!0:!1},hasProtocol:function(a){return/^(:?\w+:)/.test(a)},isEmbeddedPage:function(a){var b=d.parseUrl(a);return b.protocol!==""?!this.isPath(b.hash)&&b.hash&&(b.hrefNoHash===this.documentUrl.hrefNoHash||this.documentBaseDiffers&&b.hrefNoHash===this.documentBase.hrefNoHash):/^#/.test(b.href)},squash:function(a,b){var c,e,f,g,h,i=this.isPath(a),j=this.parseUrl(a),k=j.hash,l="";b=b||(d.isPath(a)?d.getLocation():d.getDocumentUrl()),f=i?d.stripHash(a):a,f=d.isPath(j.hash)?d.stripHash(j.hash):f,h=f.indexOf(this.uiStateKey),h>-1&&(l=f.slice(h),f=f.slice(0,h)),e=d.makeUrlAbsolute(f,b),g=this.parseUrl(e).search;if(i){if(d.isPath(k)||k.replace("#","").indexOf(this.uiStateKey)===0)k="";l&&k.indexOf(this.uiStateKey)===-1&&(k+=l),k.indexOf("#")===-1&&k!==""&&(k="#"+k),e=d.parseUrl(e),e=e.protocol+"//"+e.host+e.pathname+g+k}else e+=e.indexOf("#")>-1?l:"#"+l;return e},isPreservableHash:function(a){return a.replace("#","").indexOf(this.uiStateKey)===0}},d.documentUrl=d.parseLocation(),f=a("head").find("base"),d.documentBase=f.length?d.parseUrl(d.makeUrlAbsolute(f.attr("href"),d.documentUrl.href)):d.documentUrl,d.documentBaseDiffers=d.documentUrl.hrefNoHash!==d.documentBase.hrefNoHash,d.getDocumentUrl=function(b){return b?a.extend({},d.documentUrl):d.documentUrl.href},d.getDocumentBase=function(b){return b?a.extend({},d.documentBase):d.documentBase.href}}(a),function(a,b){var c=a.mobile.path;a.mobile.History=function(a,b){this.stack=a||[],this.activeIndex=b||0},a.extend(a.mobile.History.prototype,{getActive:function(){return this.stack[this.activeIndex]},getLast:function(){return this.stack[this.previousIndex]},getNext:function(){return this.stack[this.activeIndex+1]},getPrev:function(){return this.stack[this.activeIndex-1]},add:function(a,b){b=b||{},this.getNext()&&this.clearForward(),b.hash&&b.hash.indexOf("#")===-1&&(b.hash="#"+b.hash),b.url=a,this.stack.push(b),this.activeIndex=this.stack.length-1},clearForward:function(){this.stack=this.stack.slice(0,this.activeIndex+1)},find:function(a,b,c){b=b||this.stack;var d,e,f=b.length,g;for(e=0;e<f;e++){d=b[e];if(decodeURIComponent(a)===decodeURIComponent(d.url)||decodeURIComponent(a)===decodeURIComponent(d.hash)){g=e;if(c)return g}}return g},closest:function(a){var c,d=this.activeIndex;return c=this.find(a,this.stack.slice(0,d)),c===b&&(c=this.find(a,this.stack.slice(d),!0),c=c===b?c:c+d),c},direct:function(c){var d=this.closest(c.url),e=this.activeIndex;d!==b&&(this.activeIndex=d,this.previousIndex=e),d<e?(c.present||c.back||a.noop)(this.getActive(),"back"):d>e?(c.present||c.forward||a.noop)(this.getActive(),"forward"):d===b&&c.missing&&c.missing(this.getActive())}})}(a),function(a,d){var e=a.mobile.path;a.mobile.Navigator=function(b){this.history=b,this.ignoreInitialHashChange=!0,setTimeout(a.proxy(function(){this.ignoreInitialHashChange=!1},this),200),a.mobile.window.bind({"popstate.history":a.proxy(this.popstate,this),"hashchange.history":a.proxy(this.hashchange,this)})},a.extend(a.mobile.Navigator.prototype,{squash:function(d,f){var g,h,i=e.isPath(d)?e.stripHash(d):d;return h=e.squash(d),g=a.extend({hash:i,url:h},f),b.history.replaceState(g,g.title||c.title,h),g},hash:function(a,b){var c,d,f;c=e.parseUrl(a),d=e.parseLocation();if(d.pathname+d.search===c.pathname+c.search)f=c.hash?c.hash:c.pathname+c.search;else if(e.isPath(a)){var g=e.parseUrl(b);f=g.pathname+g.search+(e.isPreservableHash(g.hash)?g.hash.replace("#",""):"")}else f=a;return f},go:function(d,f,g){var h,i,j,k,l=a.event.special.navigate.isPushStateEnabled();i=e.squash(d),j=this.hash(d,i),g&&j!==e.stripHash(e.parseLocation().hash)&&(this.preventNextHashChange=g),this.preventHashAssignPopState=!0,b.location.hash=j,this.preventHashAssignPopState=!1,h=a.extend({url:i,hash:j,title:c.title},f),l&&(k=new a.Event("popstate"),k.originalEvent={type:"popstate",state:null},this.squash(d,h),g||(this.ignorePopState=!0,a.mobile.window.trigger(k))),this.history.add(h.url,h)},popstate:function(b){var c,d,f,g;if(!a.event.special.navigate.isPushStateEnabled())return;if(this.preventHashAssignPopState){this.preventHashAssignPopState=!1,b.stopImmediatePropagation();return}if(this.ignorePopState){this.ignorePopState=!1;return}if(!b.originalEvent.state&&this.history.stack.length===1&&this.ignoreInitialHashChange){this.ignoreInitialHashChange=!1;return}d=e.parseLocation().hash;if(!b.originalEvent.state&&d){f=this.squash(d),this.history.add(f.url,f),b.historyState=f;return}this.history.direct({url:(b.originalEvent.state||{}).url||d,present:function(c,d){b.historyState=a.extend({},c),b.historyState.direction=d}})},hashchange:function(b){var d,f;if(!a.event.special.navigate.isHashChangeEnabled()||a.event.special.navigate.isPushStateEnabled())return;if(this.preventNextHashChange){this.preventNextHashChange=!1,b.stopImmediatePropagation();return}d=this.history,f=e.parseLocation().hash,this.history.direct({url:f,present:function(c,d){b.hashchangeState=a.extend({},c),b.hashchangeState.direction=d},missing:function(){d.add(f,{hash:f,title:c.title})}})}})}(a),function(a,b){a.mobile.navigate=function(b,c,d){a.mobile.navigate.navigator.go(b,c,d)},a.mobile.navigate.history=new a.mobile.History,a.mobile.navigate.navigator=new a.mobile.Navigator(a.mobile.navigate.history);var c=a.mobile.path.parseLocation();a.mobile.navigate.history.add(c.href,{hash:c.hash})}(a),function(a,b){a.mobile.behaviors.addFirstLastClasses={_getVisibles:function(a,b){var c;return b?c=a.not(".ui-screen-hidden"):(c=a.filter(":visible"),c.length===0&&(c=a.not(".ui-screen-hidden"))),c},_addFirstLastClasses:function(a,b,c){a.removeClass("ui-first-child ui-last-child"),b.eq(0).addClass("ui-first-child").end().last().addClass("ui-last-child"),c||this.element.trigger("updatelayout")}}}(a),function(a,b){a.widget("mobile.collapsible",a.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:!0,heading:"h1,h2,h3,h4,h5,h6,legend",collapsedIcon:"plus",expandedIcon:"minus",iconpos:"left",theme:null,contentTheme:null,inset:!0,corners:!0,mini:!1,initSelector:":jqmData(role='collapsible')"},_create:function(){var c=this.element,d=this.options,e=c.addClass("ui-collapsible"),f=c.children(d.heading).first(),g=e.wrapInner("<div class='ui-collapsible-content'></div>").children(".ui-collapsible-content"),h=c.closest(":jqmData(role='collapsible-set')").addClass("ui-collapsible-set"),i="";f.is("legend")&&(f=a("<div role='heading'>"+f.html()+"</div>").insertBefore(f),f.next().remove()),h.length?(d.theme||(d.theme=h.jqmData("theme")||a.mobile.getInheritedTheme(h,"c")),d.contentTheme||(d.contentTheme=h.jqmData("content-theme")),d.collapsedIcon=c.jqmData("collapsed-icon")||h.jqmData("collapsed-icon")||d.collapsedIcon,d.expandedIcon=c.jqmData("expanded-icon")||h.jqmData("expanded-icon")||d.expandedIcon,d.iconpos=c.jqmData("iconpos")||h.jqmData("iconpos")||d.iconpos,h.jqmData("inset")!==b?d.inset=h.jqmData("inset"):d.inset=!0,d.corners=!1,d.mini||(d.mini=h.jqmData("mini"))):d.theme||(d.theme=a.mobile.getInheritedTheme(c,"c")),!d.inset||(i+=" ui-collapsible-inset",!d.corners||(i+=" ui-corner-all")),d.contentTheme&&(i+=" ui-collapsible-themed-content",g.addClass("ui-body-"+d.contentTheme)),i!==""&&e.addClass(i),f.insertBefore(g).addClass("ui-collapsible-heading").append("<span class='ui-collapsible-heading-status'></span>").wrapInner("<a href='#' class='ui-collapsible-heading-toggle'></a>").find("a").first().buttonMarkup({shadow:!1,corners:!1,iconpos:d.iconpos,icon:d.collapsedIcon,mini:d.mini,theme:d.theme}),e.bind("expand collapse",function(b){if(!b.isDefaultPrevented()){var c=a(this),e=b.type==="collapse";b.preventDefault(),f.toggleClass("ui-collapsible-heading-collapsed",e).find(".ui-collapsible-heading-status").text(e?d.expandCueText:d.collapseCueText).end().find(".ui-icon").toggleClass("ui-icon-"+d.expandedIcon,!e).toggleClass("ui-icon-"+d.collapsedIcon,e||d.expandedIcon===d.collapsedIcon).end().find("a").first().removeClass(a.mobile.activeBtnClass),c.toggleClass("ui-collapsible-collapsed",e),g.toggleClass("ui-collapsible-content-collapsed",e).attr("aria-hidden",e),g.trigger("updatelayout")}}).trigger(d.collapsed?"collapse":"expand"),f.bind("tap",function(b){f.find("a").first().addClass(a.mobile.activeBtnClass)}).bind("click",function(a){var b=f.is(".ui-collapsible-heading-collapsed")?"expand":"collapse";e.trigger(b),a.preventDefault(),a.stopPropagation()})}}),a.mobile.document.bind("pagecreate create",function(b){a.mobile.collapsible.prototype.enhanceWithin(b.target)})}(a),function(a,b){a.widget("mobile.collapsibleset",a.mobile.widget,{options:{initSelector:":jqmData(role='collapsible-set')"},_create:function(){var c=this.element.addClass("ui-collapsible-set"),d=this.options;d.theme||(d.theme=a.mobile.getInheritedTheme(c,"c")),d.contentTheme||(d.contentTheme=c.jqmData("content-theme")),d.corners||(d.corners=c.jqmData("corners")),c.jqmData("inset")!==b&&(d.inset=c.jqmData("inset")),d.inset=d.inset!==b?d.inset:!0,d.corners=d.corners!==b?d.corners:!0,!!d.corners&&!!d.inset&&c.addClass("ui-corner-all"),c.jqmData("collapsiblebound")||c.jqmData("collapsiblebound",!0).bind("expand",function(b){var c=a(b.target).closest(".ui-collapsible");c.parent().is(":jqmData(role='collapsible-set')")&&c.siblings(".ui-collapsible").trigger("collapse")})},_init:function(){var a=this.element,b=a.children(":jqmData(role='collapsible')"),c=b.filter(":jqmData(collapsed='false')");this._refresh("true"),c.trigger("expand")},_refresh:function(b){var c=this.element.children(":jqmData(role='collapsible')");a.mobile.collapsible.prototype.enhance(c.not(".ui-collapsible")),this._addFirstLastClasses(c,this._getVisibles(c,b),b)},refresh:function(){this._refresh(!1)}}),a.widget("mobile.collapsibleset",a.mobile.collapsibleset,a.mobile.behaviors.addFirstLastClasses),a.mobile.document.bind("pagecreate create",function(b){a.mobile.collapsibleset.prototype.enhanceWithin(b.target)})}(a),function(a,b){a.extend(a.mobile,{loadingMessageTextVisible:d,loadingMessageTheme:d,loadingMessage:d,showPageLoadingMsg:function(b,c,d){a.mobile.loading("show",b,c,d)},hidePageLoadingMsg:function(){a.mobile.loading("hide")},loading:function(){this.loaderWidget.loader.apply(this.loaderWidget,arguments)}});var c="ui-loader",e=a("html"),f=a.mobile.window;a.widget("mobile.loader",{options:{theme:"a",textVisible:!1,html:"",text:"loading"},defaultHtml:"<div class='"+c+"'>"+"<span class='ui-icon ui-icon-loading'></span>"+"<h1></h1>"+"</div>",fakeFixLoader:function(){var b=a("."+a.mobile.activeBtnClass).first();this.element.css({top:a.support.scrollTop&&f.scrollTop()+f.height()/2||b.length&&b.offset().top||100})},checkLoaderPosition:function(){var b=this.element.offset(),c=f.scrollTop(),d=a.mobile.getScreenHeight();if(b.top<c||b.top-c>d)this.element.addClass("ui-loader-fakefix"),this.fakeFixLoader(),f.unbind("scroll",this.checkLoaderPosition).bind("scroll",a.proxy(this.fakeFixLoader,this))},resetHtml:function(){this.element.html(a(this.defaultHtml).html())},show:function(b,g,h){var i,j,k,l;this.resetHtml(),a.type(b)==="object"?(l=a.extend({},this.options,b),b=l.theme||a.mobile.loadingMessageTheme):(l=this.options,b=b||a.mobile.loadingMessageTheme||l.theme),j=g||a.mobile.loadingMessage||l.text,e.addClass("ui-loading");if(a.mobile.loadingMessage!==!1||l.html)a.mobile.loadingMessageTextVisible!==d?i=a.mobile.loadingMessageTextVisible:i=l.textVisible,this.element.attr("class",c+" ui-corner-all ui-body-"+b+" ui-loader-"+(i||g||b.text?"verbose":"default")+(l.textonly||h?" ui-loader-textonly":"")),l.html?this.element.html(l.html):this.element.find("h1").text(j),this.element.appendTo(a.mobile.pageContainer),this.checkLoaderPosition(),f.bind("scroll",a.proxy(this.checkLoaderPosition,this))},hide:function(){e.removeClass("ui-loading"),a.mobile.loadingMessage&&this.element.removeClass("ui-loader-fakefix"),a.mobile.window.unbind("scroll",this.fakeFixLoader),a.mobile.window.unbind("scroll",this.checkLoaderPosition)}}),f.bind("pagecontainercreate",function(){a.mobile.loaderWidget=a.mobile.loaderWidget||a(a.mobile.loader.prototype.defaultHtml).loader()})}(a,this),function(a,b){a.widget("mobile.navbar",a.mobile.widget,{options:{iconpos:"top",grid:null,initSelector:":jqmData(role='navbar')"},_create:function(){var d=this.element,e=d.find("a"),f=e.filter(":jqmData(icon)").length?this.options.iconpos:b;d.addClass("ui-navbar ui-mini").attr("role","navigation").find("ul").jqmEnhanceable().grid({grid:this.options.grid}),e.buttonMarkup({corners:!1,shadow:!1,inline:!0,iconpos:f}),d.delegate("a","vclick",function(b){if(!a(b.target).hasClass("ui-disabled")){e.removeClass(a.mobile.activeBtnClass),a(this).addClass(a.mobile.activeBtnClass);var d=a(this);a(c).one("pagechange",function(b){d.removeClass(a.mobile.activeBtnClass)})}}),d.closest(".ui-page").bind("pagebeforeshow",function(){e.filter(".ui-state-persist").addClass(a.mobile.activeBtnClass)})}}),a.mobile.document.bind("pagecreate create",function(b){a.mobile.navbar.prototype.enhanceWithin(b.target)})}(a),function(a,b){a.widget("mobile.page",a.mobile.widget,{options:{theme:"c",domCache:!1,keepNativeDefault:":jqmData(role='none'), :jqmData(role='nojs')"},_create:function(){if(this._trigger("beforecreate")===!1)return!1;this.element.attr("tabindex","0").addClass("ui-page ui-body-"+this.options.theme),this._on(this.element,{pagebeforehide:"removeContainerBackground",pagebeforeshow:"_handlePageBeforeShow"})},_handlePageBeforeShow:function(a){this.setContainerBackground()},removeContainerBackground:function(){a.mobile.pageContainer.removeClass("ui-overlay-"+a.mobile.getInheritedTheme(this.element.parent()))},setContainerBackground:function(b){this.options.theme&&a.mobile.pageContainer.addClass("ui-overlay-"+(b||this.options.theme))},keepNativeSelector:function(){var b=this.options,c=b.keepNative&&a.trim(b.keepNative);return c&&b.keepNative!==b.keepNativeDefault?[b.keepNative,b.keepNativeDefault].join(", "):b.keepNativeDefault}})}(a),function(a,b){a.mobile.page.prototype.options.degradeInputs={color:!1,date:!1,datetime:!1,"datetime-local":!1,email:!1,month:!1,number:!1,range:"number",search:"text",tel:!1,time:!1,url:!1,week:!1},a.mobile.document.bind("pagecreate create",function(b){var c=a.mobile.closestPageData(a(b.target)),d;if(!c)return;d=c.options,a(b.target).find("input").not(c.keepNativeSelector()).each(function(){var b=a(this),c=this.getAttribute("type"),e=d.degradeInputs[c]||"text";if(d.degradeInputs[c]){var f=a("<div>").html(b.clone()).html(),g=f.indexOf(" type=")>-1,h=g?/\s+type=["']?\w+['"]?/:/\/?>/,i=' type="'+e+'" data-'+a.mobile.ns+'type="'+c+'"'+(g?"":">");b.replaceWith(f.replace(h,i))}})})}(a),function(a,b){a.widget("mobile.textinput",a.mobile.widget,{options:{theme:null,mini:!1,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1,initSelector:"input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type]), input[type='file']",clearBtn:!1,clearSearchButtonText:null,clearBtnText:"clear text",disabled:!1},_create:function(){function o(){setTimeout(function(){j.toggleClass("ui-input-clear-hidden",!c.val())},0)}var b=this,c=this.element,d=this.options,e=d.theme||a.mobile.getInheritedTheme(this.element,"c"),f=" ui-body-"+e,g=d.mini?" ui-mini":"",h=c.is("[type='search'], :jqmData(type='search')"),i,j,k=d.clearSearchButtonText||d.clearBtnText,l=c.is("textarea, :jqmData(type='range')"),m=!!d.clearBtn&&!l,n=c.is("input")&&!c.is(":jqmData(type='range')");a("label[for='"+c.attr("id")+"']").addClass("ui-input-text"),i=c.addClass("ui-input-text ui-body-"+e),typeof c[0].autocorrect!="undefined"&&!a.support.touchOverflow&&(c[0].setAttribute("autocorrect","off"),c[0].setAttribute("autocomplete","off")),h?i=c.wrap("<div class='ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield"+f+g+"'></div>").parent():n&&(i=c.wrap("<div class='ui-input-text ui-shadow-inset ui-corner-all ui-btn-shadow"+f+g+"'></div>").parent()),m||h?(j=a("<a href='#' class='ui-input-clear' title='"+k+"'>"+k+"</a>").bind("click",function(a){c.val("").focus().trigger("change"),j.addClass("ui-input-clear-hidden"),a.preventDefault()}).appendTo(i).buttonMarkup({icon:"delete",iconpos:"notext",corners:!0,shadow:!0,mini:d.mini}),h||i.addClass("ui-input-has-clear"),o(),c.bind("paste cut keyup input focus change blur",o)):!n&&!h&&c.addClass("ui-corner-all ui-shadow-inset"+f+g),c.focus(function(){d.preventFocusZoom&&a.mobile.zoom.disable(!0),i.addClass(a.mobile.focusClass)}).blur(function(){i.removeClass(a.mobile.focusClass),d.preventFocusZoom&&a.mobile.zoom.enable(!0)});if(c.is("textarea")){var p=15,q=100,r;this._keyup=function(){var a=c[0].scrollHeight,b=c[0].clientHeight;b<a&&c.height(a+p)},c.on("keyup change input paste",function(){clearTimeout(r),r=setTimeout(b._keyup,q)}),this._on(a.mobile.document,{pagechange:"_keyup"}),a.trim(c.val())&&this._on(a.mobile.window,{load:"_keyup"})}c.attr("disabled")&&this.disable()},disable:function(){var a,b=this.element.is("[type='search'], :jqmData(type='search')"),c=this.element.is("input")&&!this.element.is(":jqmData(type='range')"),d=this.element.attr("disabled",!0)&&(c||b);return d?a=this.element.parent():a=this.element,a.addClass("ui-disabled"),this._setOption("disabled",!0)},enable:function(){var a,b=this.element.is("[type='search'], :jqmData(type='search')"),c=this.element.is("input")&&!this.element.is(":jqmData(type='range')"),d=this.element.attr("disabled",!1)&&(c||b);return d?a=this.element.parent():a=this.element,a.removeClass("ui-disabled"),this._setOption("disabled",!1)}}),a.mobile.document.bind("pagecreate create",function(b){a.mobile.textinput.prototype.enhanceWithin(b.target,!0)})}(a),function(a,d){function w(b){!!j&&(!j.closest("."+a.mobile.activePageClass).length||b)&&j.removeClass(a.mobile.activeBtnClass),j=null}function x(){o=!1,n.length>0&&a.mobile.changePage.apply(null,n.pop())}function B(b,c,d,e){c&&c.data("mobile-page")._trigger("beforehide",null,{nextPage:b}),b.data("mobile-page")._trigger("beforeshow",null,{prevPage:c||a("")}),a.mobile.hidePageLoadingMsg(),d=a.mobile._maybeDegradeTransition(d);var f=a.mobile.transitionHandlers[d||"default"]||a.mobile.defaultTransitionHandler,g=f(d,e,b,c);return g.done(function(){c&&c.data("mobile-page")._trigger("hide",null,{nextPage:b}),b.data("mobile-page")._trigger("show",null,{prevPage:c||a("")})}),g}function C(b,c){c&&b.attr("data-"+a.mobile.ns+"role",c),b.page()}function D(){var b=a.mobile.activePage&&F(a.mobile.activePage);return b||s.hrefNoHash}function E(a){while(a){if(typeof a.nodeName=="string"&&a.nodeName.toLowerCase()==="a")break;a=a.parentNode}return a}function F(b){var c=a(b).closest(".ui-page").jqmData("url"),d=s.hrefNoHash;if(!c||!h.isPath(c))c=d;return h.makeUrlAbsolute(c,d)}var e=a.mobile.window,f=a("html"),g=a("head"),h=a.extend(a.mobile.path,{getFilePath:function(b){var c="&"+a.mobile.subPageUrlKey;return b&&b.split(c)[0].split(p)[0]},isFirstPageUrl:function(b){var c=h.parseUrl(h.makeUrlAbsolute(b,this.documentBase)),e=c.hrefNoHash===this.documentUrl.hrefNoHash||this.documentBaseDiffers&&c.hrefNoHash===this.documentBase.hrefNoHash,f=a.mobile.firstPage,g=f&&f[0]?f[0].id:d;return e&&(!c.hash||c.hash==="#"||g&&c.hash.replace(/^#/,"")===g)},isPermittedCrossDomainRequest:function(b,c){return a.mobile.allowCrossDomainPages&&b.protocol==="file:"&&c.search(/^https?:/)!==-1}}),i=null,j=null,k=a.Deferred(),l=a.mobile.navigate.history,m="[tabindex],a,button:visible,select:visible,input",n=[],o=!1,p="&ui-state=dialog",q=g.children("base"),r=h.documentUrl,s=h.documentBase,t=h.documentBaseDiffers,u=a.mobile.getScreenHeight,v=a.support.dynamicBaseTag?{element:q.length?q:a("<base>",{href:s.hrefNoHash}).prependTo(g),set:function(a){a=h.parseUrl(a).hrefNoHash,v.element.attr("href",h.makeUrlAbsolute(a,s))},reset:function(){v.element.attr("href",s.hrefNoSearch)}}:d;a.mobile.getDocumentUrl=h.getDocumentUrl,a.mobile.getDocumentBase=h.getDocumentBase,a.mobile.back=function(){var a=b.navigator;this.phonegapNavigationEnabled&&a&&a.app&&a.app.backHistory?a.app.backHistory():b.history.back()},a.mobile.focusPage=function(a){var b=a.find("[autofocus]"),c=a.find(".ui-title:eq(0)");if(b.length){b.focus();return}c.length?c.focus():a.focus()};var y=!0,z,A;z=function(){if(!y)return;var b=a.mobile.urlHistory.getActive();if(b){var c=e.scrollTop();b.lastScroll=c<a.mobile.minScrollBack?a.mobile.defaultHomeScroll:c}},A=function(){setTimeout(z,100)},e.bind(a.support.pushState?"popstate":"hashchange",function(){y=!1}),e.one(a.support.pushState?"popstate":"hashchange",function(){y=!0}),e.one("pagecontainercreate",function(){a.mobile.pageContainer.bind("pagechange",function(){y=!0,e.unbind("scrollstop",A),e.bind("scrollstop",A)})}),e.bind("scrollstop",A),a.mobile._maybeDegradeTransition=a.mobile._maybeDegradeTransition||function(a){return a},a.mobile.resetActivePageHeight=function(c){var d=a("."+a.mobile.activePageClass),e=parseFloat(d.css("padding-top")),f=parseFloat(d.css("padding-bottom")),g=parseFloat(d.css("border-top-width")),h=parseFloat(d.css("border-bottom-width"));c=typeof c=="number"?c:u(),d.css("min-height",c-e-f-g-h)},a.fn.animationComplete=function(b){return a.support.cssTransitions?a(this).one("webkitAnimationEnd animationend",b):(setTimeout(b,0),a(this))},a.mobile.path=h,a.mobile.base=v,a.mobile.urlHistory=l,a.mobile.dialogHashKey=p,a.mobile.allowCrossDomainPages=!1,a.mobile._bindPageRemove=function(){var b=a(this);!b.data("mobile-page").options.domCache&&b.is(":jqmData(external-page='true')")&&b.bind("pagehide.remove",function(b){var c=a(this),d=new a.Event("pageremove");c.trigger(d),d.isDefaultPrevented()||c.removeWithDependents()})},a.mobile.loadPage=function(b,c){var e=a.Deferred(),f=a.extend({},a.mobile.loadPage.defaults,c),g=null,i=null,j=h.makeUrlAbsolute(b,D());f.data&&f.type==="get"&&(j=h.addSearchParams(j,f.data),f.data=d),f.data&&f.type==="post"&&(f.reloadPage=!0);var k=h.getFilePath(j),l=h.convertUrlToDataUrl(j);f.pageContainer=f.pageContainer||a.mobile.pageContainer,g=f.pageContainer.children("[data-"+a.mobile.ns+"url='"+l+"']"),g.length===0&&l&&!h.isPath(l)&&(g=f.pageContainer.children("#"+l).attr("data-"+a.mobile.ns+"url",l).jqmData("url",l));if(g.length===0)if(a.mobile.firstPage&&h.isFirstPageUrl(k))a.mobile.firstPage.parent().length&&(g=a(a.mobile.firstPage));else if(h.isEmbeddedPage(k))return e.reject(j,c),e.promise();if(g.length){if(!f.reloadPage)return C(g,f.role),e.resolve(j,c,g),e.promise();i=g}var m=f.pageContainer,n=new a.Event("pagebeforeload"),o={url:b,absUrl:j,dataUrl:l,deferred:e,options:f};m.trigger(n,o);if(n.isDefaultPrevented())return e.promise();if(f.showLoadMsg)var p=setTimeout(function(){a.mobile.showPageLoadingMsg()},f.loadMsgDelay),q=function(){clearTimeout(p),a.mobile.hidePageLoadingMsg()};return v&&v.reset(),!a.mobile.allowCrossDomainPages&&!h.isSameDomain(r,j)?e.reject(j,c):a.ajax({url:k,type:f.type,data:f.data,dataType:"html",success:function(d,m,n){var p=a("<div></div>"),r=d.match(/<title[^>]*>([^<]*)/)&&RegExp.$1,s=new RegExp("(<[^>]+\\bdata-"+a.mobile.ns+"role=[\"']?page[\"']?[^>]*>)"),t=new RegExp("\\bdata-"+a.mobile.ns+"url=[\"']?([^\"'>]*)[\"']?");s.test(d)&&RegExp.$1&&t.test(RegExp.$1)&&RegExp.$1&&(b=k=h.getFilePath(a("<div>"+RegExp.$1+"</div>").text())),v&&v.set(k),p.get(0).innerHTML=d,g=p.find(":jqmData(role='page'), :jqmData(role='dialog')").first(),g.length||(g=a("<div data-"+a.mobile.ns+"role='page'>"+(d.split(/<\/?body[^>]*>/gmi)[1]||"")+"</div>")),r&&!g.jqmData("title")&&(~r.indexOf("&")&&(r=a("<div>"+r+"</div>").text()),g.jqmData("title",r));if(!a.support.dynamicBaseTag){var u=h.get(k);g.find("[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]").each(function(){var b=a(this).is("[href]")?"href":a(this).is("[src]")?"src":"action",c=a(this).attr(b);c=c.replace(location.protocol+"//"+location.host+location.pathname,""),/^(\w+:|#|\/)/.test(c)||a(this).attr(b,u+c)})}g.attr("data-"+a.mobile.ns+"url",h.convertUrlToDataUrl(k)).attr("data-"+a.mobile.ns+"external-page",!0).appendTo(f.pageContainer),g.one("pagecreate",a.mobile._bindPageRemove),C(g,f.role),j.indexOf("&"+a.mobile.subPageUrlKey)>-1&&(g=f.pageContainer.children("[data-"+a.mobile.ns+"url='"+l+"']")),f.showLoadMsg&&q(),o.xhr=n,o.textStatus=m,o.page=g,f.pageContainer.trigger("pageload",o),e.resolve(j,c,g,i)},error:function(b,d,g){v&&v.set(h.get()),o.xhr=b,o.textStatus=d,o.errorThrown=g;var i=new a.Event("pageloadfailed");f.pageContainer.trigger(i,o);if(i.isDefaultPrevented())return;f.showLoadMsg&&(q(),a.mobile.showPageLoadingMsg(a.mobile.pageLoadErrorMessageTheme,a.mobile.pageLoadErrorMessage,!0),setTimeout(a.mobile.hidePageLoadingMsg,1500)),e.reject(j,c)}}),e.promise()},a.mobile.loadPage.defaults={type:"get",data:d,reloadPage:!1,role:d,showLoadMsg:!1,pageContainer:d,loadMsgDelay:50},a.mobile.changePage=function(b,e){if(o){n.unshift(arguments);return}var f=a.extend({},a.mobile.changePage.defaults,e),g;f.pageContainer=f.pageContainer||a.mobile.pageContainer,f.fromPage=f.fromPage||a.mobile.activePage,g=typeof b=="string";var i=f.pageContainer,j=new a.Event("pagebeforechange"),k={toPage:b,options:f};g?k.absUrl=h.makeUrlAbsolute(b,D()):k.absUrl=b.data("absUrl"),i.trigger(j,k);if(j.isDefaultPrevented())return;b=k.toPage,g=typeof b=="string",o=!0;if(g){f.target=b,a.mobile.loadPage(b,f).done(function(b,c,d,e){o=!1,c.duplicateCachedPage=e,d.data("absUrl",k.absUrl),a.mobile.changePage(d,c)}).fail(function(a,b){o=!1,w(!0),x(),f.pageContainer.trigger("pagechangefailed",k)});return}b[0]===a.mobile.firstPage[0]&&!f.dataUrl&&(f.dataUrl=r.hrefNoHash);var m=f.fromPage,q=f.dataUrl&&h.convertUrlToDataUrl(f.dataUrl)||b.jqmData("url"),s=q,t=h.getFilePath(q),u=l.getActive(),v=l.activeIndex===0,y=0,z=c.title,A=f.role==="dialog"||b.jqmData("role")==="dialog";if(m&&m[0]===b[0]&&!f.allowSamePageTransition){o=!1,i.trigger("pagechange",k),f.fromHashChange&&l.direct({url:q});return}C(b,f.role),f.fromHashChange&&(y=e.direction==="back"?-1:1);try{c.activeElement&&c.activeElement.nodeName.toLowerCase()!=="body"?a(c.activeElement).blur():a("input:focus, textarea:focus, select:focus").blur()}catch(E){}var F=!1;A&&u&&(u.url&&u.url.indexOf(p)>-1&&a.mobile.activePage&&!a.mobile.activePage.is(".ui-dialog")&&l.activeIndex>0&&(f.changeHash=!1,F=!0),q=u.url||"",!F&&q.indexOf("#")>-1?q+=p:q+="#"+p,l.activeIndex===0&&q===l.initialDst&&(q+=p));var G=u?b.jqmData("title")||b.children(":jqmData(role='header')").find(".ui-title").getEncodedText():z;!!G&&z===c.title&&(z=G),b.jqmData("title")||b.jqmData("title",z),f.transition=f.transition||(y&&!v?u.transition:d)||(A?a.mobile.defaultDialogTransition:a.mobile.defaultPageTransition),!y&&F&&(l.getActive().pageUrl=s);if(q&&!f.fromHashChange){var H;!h.isPath(q)&&q.indexOf("#")<0&&(q="#"+q),H={transition:f.transition,title:z,pageUrl:s,role:f.role},f.changeHash!==!1&&a.mobile.hashListeningEnabled?a.mobile.navigate(q,H,!0):b[0]!==a.mobile.firstPage[0]&&a.mobile.navigate.history.add(q,H)}c.title=z,a.mobile.activePage=b,f.reverse=f.reverse||y<0,B(b,m,f.transition,f.reverse).done(function(c,d,e,g,h){w(),f.duplicateCachedPage&&f.duplicateCachedPage.remove(),h||a.mobile.focusPage(b),x(),i.trigger("pagechange",k)})},a.mobile.changePage.defaults={transition:d,reverse:!1,changeHash:!0,fromHashChange:!1,role:d,duplicateCachedPage:d,pageContainer:d,showLoadMsg:!0,dataUrl:d,fromPage:d,allowSamePageTransition:!1},a.mobile.navreadyDeferred=a.Deferred(),a.mobile._registerInternalEvents=function(){var c=function(b,c){var d,e,f,g=!0,j,k;return!a.mobile.ajaxEnabled||b.is(":jqmData(ajax='false')")||!b.jqmHijackable().length?!1:(e=b.attr("target"),f=b.attr("action"),f||(f=F(b),f===s.hrefNoHash&&(f=r.hrefNoSearch)),f=h.makeUrlAbsolute(f,F(b)),h.isExternal(f)&&!h.isPermittedCrossDomainRequest(r,f)||e?!1:(c||(d=b.attr("method"),j=b.serializeArray(),i&&i[0].form===b[0]&&(k=i.attr("name"),k&&(a.each(j,function(a,b){if(b.name===k)return k="",!1}),k&&j.push({name:k,value:i.attr("value")}))),g={url:f,options:{type:d&&d.length&&d.toLowerCase()||"get",data:a.param(j),transition:b.jqmData("transition"),reverse:b.jqmData("direction")==="reverse",reloadPage:!0}}),g))};a.mobile.document.delegate("form","submit",function(b){var d=c(a(this));d&&(a.mobile.changePage(d.url,d.options),b.preventDefault())}),a.mobile.document.bind("vclick",function(b){var d,e,f=b.target,g=!1;if(b.which>1||!a.mobile.linkBindingEnabled)return;i=a(f);if(a.data(f,"mobile-button")){if(!c(a(f).closest("form"),!0))return;f.parentNode&&(f=f.parentNode)}else{f=E(f);if(!f||h.parseUrl(f.getAttribute("href")||"#").hash==="#")return;if(!a(f).jqmHijackable().length)return}~f.className.indexOf("ui-link-inherit")?f.parentNode&&(e=a.data(f.parentNode,"buttonElements")):e=a.data(f,"buttonElements"),e?f=e.outer:g=!0,d=a(f),g&&(d=d.closest(".ui-btn")),d.length>0&&!d.hasClass("ui-disabled")&&(w(!0),j=d,j.addClass(a.mobile.activeBtnClass))}),a.mobile.document.bind("click",function(c){if(!a.mobile.linkBindingEnabled||c.isDefaultPrevented())return;var e=E(c.target),f=a(e),g;if(!e||c.which>1||!f.jqmHijackable().length)return;g=function(){b.setTimeout(function(){w(!0)},200)};if(f.is(":jqmData(rel='back')"))return a.mobile.back(),!1;var i=F(f),j=h.makeUrlAbsolute(f.attr("href")||"#",i);if(!a.mobile.ajaxEnabled&&!h.isEmbeddedPage(j)){g();return}if(j.search("#")!==-1){j=j.replace(/[^#]*#/,"");if(!j){c.preventDefault();return}h.isPath(j)?j=h.makeUrlAbsolute(j,i):j=h.makeUrlAbsolute("#"+j,r.hrefNoHash)}var k=f.is("[rel='external']")||f.is(":jqmData(ajax='false')")||f.is("[target]"),l=k||h.isExternal(j)&&!h.isPermittedCrossDomainRequest(r,j);if(l){g();return}var m=f.jqmData("transition"),n=f.jqmData("direction")==="reverse"||f.jqmData("back"),o=f.attr("data-"+a.mobile.ns+"rel")||d;a.mobile.changePage(j,{transition:m,reverse:n,role:o,link:f}),c.preventDefault()}),a.mobile.document.delegate(".ui-page","pageshow.prefetch",function(){var b=[];a(this).find("a:jqmData(prefetch)").each(function(){var c=a(this),d=c.attr("href");d&&a.inArray(d,b)===-1&&(b.push(d),a.mobile.loadPage(d,{role:c.attr("data-"+a.mobile.ns+"rel")}))})}),a.mobile._handleHashChange=function(c,e){var f=h.stripHash(c),g=a.mobile.urlHistory.stack.length===0?"none":d,i={changeHash:!1,fromHashChange:!0,reverse:e.direction==="back"};a.extend(i,e,{transition:(l.getLast()||{}).transition||g});if(l.activeIndex>0&&f.indexOf(p)>-1&&l.initialDst!==f){if(a.mobile.activePage&&!a.mobile.activePage.is(".ui-dialog")){e.direction==="back"?a.mobile.back():b.history.forward();return}f=e.pageUrl;var j=a.mobile.urlHistory.getActive();a.extend(i,{role:j.role,transition:j.transition,reverse:e.direction==="back"})}f?(f=h.isPath(f)?f:h.makeUrlAbsolute("#"+f,s),f===h.makeUrlAbsolute("#"+l.initialDst,s)&&l.stack.length&&l.stack[0].url!==l.initialDst.replace(p,"")&&(f=a.mobile.firstPage),a.mobile.changePage(f,i)):a.mobile.changePage(a.mobile.firstPage,i)},e.bind("navigate",function(b,c){var d=a.event.special.navigate.originalEventName.indexOf("hashchange")>-1?c.state.hash:c.state.url;d||(d=a.mobile.path.parseLocation().hash);if(!d||d==="#"||d.indexOf("#"+a.mobile.path.uiStateKey)===0)d=location.href;a.mobile._handleHashChange(d,c.state)}),a.mobile.document.bind("pageshow",a.mobile.resetActivePageHeight),a.mobile.window.bind("throttledresize",a.mobile.resetActivePageHeight)},a(function(){k.resolve()}),a.when(k,a.mobile.navreadyDeferred).done(function(){a.mobile._registerInternalEvents()})}(a),function(a,b,c){a.widget("mobile.dialog",a.mobile.widget,{options:{closeBtn:"left",closeBtnText:"Close",overlayTheme:"a",corners:!0,initSelector:":jqmData(role='dialog')"},_handlePageBeforeShow:function(){this._isCloseable=!0,this.options.overlayTheme&&this.element.page("removeContainerBackground").page("setContainerBackground",this.options.overlayTheme)},_create:function(){var b=this,c=this.element,d=this.options.corners?" ui-corner-all":"",e=a("<div/>",{role:"dialog","class":"ui-dialog-contain ui-overlay-shadow"+d});c.addClass("ui-dialog ui-overlay-"+this.options.overlayTheme),c.wrapInner(e),c.bind("vclick submit",function(b){var c=a(b.target).closest(b.type==="vclick"?"a":"form"),d;c.length&&!c.jqmData("transition")&&(d=a.mobile.urlHistory.getActive()||{},c.attr("data-"+a.mobile.ns+"transition",d.transition||a.mobile.defaultDialogTransition).attr("data-"+a.mobile.ns+"direction","reverse"))}),this._on(c,{pagebeforeshow:"_handlePageBeforeShow"}),a.extend(this,{_createComplete:!1}),this._setCloseBtn(this.options.closeBtn)},_setCloseBtn:function(b){var c=this,d,e;this._headerCloseButton&&(this._headerCloseButton.remove(),this._headerCloseButton=null),b!=="none"&&(e=b==="left"?"left":"right",d=a("<a href='#' class='ui-btn-"+e+"' data-"+a.mobile.ns+"icon='delete' data-"+a.mobile.ns+"iconpos='notext'>"+this.options.closeBtnText+"</a>"),this.element.children().find(":jqmData(role='header')").first().prepend(d),this._createComplete&&a.fn.buttonMarkup&&d.buttonMarkup(),this._createComplete=!0,d.bind("click",function(){c.close()}),this._headerCloseButton=d)},_setOption:function(b,c){b==="closeBtn"&&(this._setCloseBtn(c),this._super(b,c),this.element.attr("data-"+(a.mobile.ns||"")+"close-btn",c))},close:function(){var b,c,d=a.mobile.navigate.history;this._isCloseable&&(this._isCloseable=!1,a.mobile.hashListeningEnabled&&d.activeIndex>0?a.mobile.back():(b=Math.max(0,d.activeIndex-1),c=d.stack[b].pageUrl||d.stack[b].url,d.previousIndex=d.activeIndex,d.activeIndex=b,a.mobile.path.isPath(c)||(c=a.mobile.path.makeUrlAbsolute("#"+c)),a.mobile.changePage(c,{direction:"back",changeHash:!1,fromHashChange:!0})))}}),a.mobile.document.delegate(a.mobile.dialog.prototype.options.initSelector,"pagecreate",function(){a.mobile.dialog.prototype.enhance(this)})}(a,this),function(a,b){a.mobile.page.prototype.options.backBtnText="Back",a.mobile.page.prototype.options.addBackBtn=!1,a.mobile.page.prototype.options.backBtnTheme=null,a.mobile.page.prototype.options.headerTheme="a",a.mobile.page.prototype.options.footerTheme="a",a.mobile.page.prototype.options.contentTheme=null,a.mobile.document.bind("pagecreate",function(b){var c=a(b.target),d=c.data("mobile-page").options,e=c.jqmData("role"),f=d.theme;a(":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')",c).jqmEnhanceable().each(function(){var b=a(this),g=b.jqmData("role"),h=b.jqmData("theme"),i=h||d.contentTheme||e==="dialog"&&f,j,k,l,m;b.addClass("ui-"+g);if(g==="header"||g==="footer"){var n=h||(g==="header"?d.headerTheme:d.footerTheme)||f;b.addClass("ui-bar-"+n).attr("role",g==="header"?"banner":"contentinfo"),g==="header"&&(j=b.children("a, button"),k=j.hasClass("ui-btn-left"),l=j.hasClass("ui-btn-right"),k=k||j.eq(0).not(".ui-btn-right").addClass("ui-btn-left").length,l=l||j.eq(1).addClass("ui-btn-right").length),d.addBackBtn&&g==="header"&&a(".ui-page").length>1&&c.jqmData("url")!==a.mobile.path.stripHash(location.hash)&&!k&&(m=a("<a href='javascript:void(0);' class='ui-btn-left' data-"+a.mobile.ns+"rel='back' data-"+a.mobile.ns+"icon='arrow-l'>"+d.backBtnText+"</a>").attr("data-"+a.mobile.ns+"theme",d.backBtnTheme||n).prependTo(b)),b.children("h1, h2, h3, h4, h5, h6").addClass("ui-title").attr({role:"heading","aria-level":"1"})}else g==="content"&&(i&&b.addClass("ui-body-"+i),b.attr("role","main"))})})}(a),function(a,b){a.widget("mobile.fixedtoolbar",a.mobile.widget,{options:{visibleOnPageShow:!0,disablePageZoom:!0,transition:"slide",fullscreen:!1,tapToggle:!0,tapToggleBlacklist:"a, button, input, select, textarea, .ui-header-fixed, .ui-footer-fixed, .ui-popup, .ui-panel, .ui-panel-dismiss-open",hideDuringFocus:"input, textarea, select",updatePagePadding:!0,trackPersistentToolbars:!0,supportBlacklist:function(){return!a.support.fixedPosition},initSelector:":jqmData(position='fixed')"},_create:function(){var b=this,c=b.options,d=b.element,e=d.is(":jqmData(role='header')")?"header":"footer",f=d.closest(".ui-page");if(c.supportBlacklist()){b.destroy();return}d.addClass("ui-"+e+"-fixed"),c.fullscreen?(d.addClass("ui-"+e+"-fullscreen"),f.addClass("ui-page-"+e+"-fullscreen")):f.addClass("ui-page-"+e+"-fixed"),a.extend(this,{_thisPage:null}),b._addTransitionClass(),b._bindPageEvents(),b._bindToggleHandlers()},_addTransitionClass:function(){var a=this.options.transition;a&&a!=="none"&&(a==="slide"&&(a=this.element.is(".ui-header")?"slidedown":"slideup"),this.element.addClass(a))},_bindPageEvents:function(){this._thisPage=this.element.closest(".ui-page"),this._on(this._thisPage,{pagebeforeshow:"_handlePageBeforeShow",webkitAnimationStart:"_handleAnimationStart",animationstart:"_handleAnimationStart",updatelayout:"_handleAnimationStart",pageshow:"_handlePageShow",pagebeforehide:"_handlePageBeforeHide"})},_handlePageBeforeShow:function(){var b=this.options;b.disablePageZoom&&a.mobile.zoom.disable(!0),b.visibleOnPageShow||this.hide(!0)},_handleAnimationStart:function(){this.options.updatePagePadding&&this.updatePagePadding(this._thisPage)},_handlePageShow:function(){this.updatePagePadding(this._thisPage),this.options.updatePagePadding&&this._on(a.mobile.window,{throttledresize:"updatePagePadding"})},_handlePageBeforeHide:function(b,c){var d=this.options;d.disablePageZoom&&a.mobile.zoom.enable(!0),d.updatePagePadding&&this._off(a.mobile.window,"throttledresize");if(d.trackPersistentToolbars){var e=a(".ui-footer-fixed:jqmData(id)",this._thisPage),f=a(".ui-header-fixed:jqmData(id)",this._thisPage),g=e.length&&c.nextPage&&a(".ui-footer-fixed:jqmData(id='"+e.jqmData("id")+"')",c.nextPage)||a(),h=f.length&&c.nextPage&&a(".ui-header-fixed:jqmData(id='"+f.jqmData("id")+"')",c.nextPage)||a();if(g.length||h.length)g.add(h).appendTo(a.mobile.pageContainer),c.nextPage.one("pageshow",function(){h.prependTo(this),g.appendTo(this)})}},_visible:!0,updatePagePadding:function(b){var c=this.element,d=c.is(".ui-header"),e=parseFloat(c.css(d?"top":"bottom"));if(this.options.fullscreen)return;b=b||this._thisPage||c.closest(".ui-page"),a(b).css("padding-"+(d?"top":"bottom"),c.outerHeight()+e)},_useTransition:function(b){var c=a.mobile.window,d=this.element,e=c.scrollTop(),f=d.height(),g=d.closest(".ui-page").height(),h=a.mobile.getScreenHeight(),i=d.is(":jqmData(role='header')")?"header":"footer";return!b&&(this.options.transition&&this.options.transition!=="none"&&(i==="header"&&!this.options.fullscreen&&e>f||i==="footer"&&!this.options.fullscreen&&e+h<g-f)||this.options.fullscreen)},show:function(a){var b="ui-fixed-hidden",c=this.element;this._useTransition(a)?c.removeClass("out "+b).addClass("in").animationComplete(function(){c.removeClass("in")}):c.removeClass(b),this._visible=!0},hide:function(a){var b="ui-fixed-hidden",c=this.element,d="out"+(this.options.transition==="slide"?" reverse":"");this._useTransition(a)?c.addClass(d).removeClass("in").animationComplete(function(){c.addClass(b).removeClass(d)}):c.addClass(b).removeClass(d),this._visible=!1},toggle:function(){this[this._visible?"hide":"show"]()},_bindToggleHandlers:function(){var b=this,c,d=b.options,e=b.element;e.closest(".ui-page").bind("vclick",function(c){d.tapToggle&&!a(c.target).closest(d.tapToggleBlacklist).length&&b.toggle()}).bind("focusin focusout",function(e){screen.width<1025&&a(e.target).is(d.hideDuringFocus)&&!a(e.target).closest(".ui-header-fixed, .ui-footer-fixed").length&&(e.type==="focusout"&&!b._visible?c=setTimeout(function(){b.show()},0):e.type==="focusin"&&b._visible&&(clearTimeout(c),b.hide()))})},_destroy:function(){var a=this.element,b=a.is(".ui-header");a.closest(".ui-page").css("padding-"+(b?"top":"bottom"),""),a.removeClass("ui-header-fixed ui-footer-fixed ui-header-fullscreen ui-footer-fullscreen in out fade slidedown slideup ui-fixed-hidden"),a.closest(".ui-page").removeClass("ui-page-header-fixed ui-page-footer-fixed ui-page-header-fullscreen ui-page-footer-fullscreen")}}),a.mobile.document.bind("pagecreate create",function(b){a(b.target).jqmData("fullscreen")&&a(a.mobile.fixedtoolbar.prototype.options.initSelector,b.target).not(":jqmData(fullscreen)").jqmData("fullscreen",!0),a.mobile.fixedtoolbar.prototype.enhanceWithin(b.target)})}(a),function(a,b){a.widget("mobile.fixedtoolbar",a.mobile.fixedtoolbar,{_create:function(){this._super(),this._workarounds()},_workarounds:function(){var a=navigator.userAgent,b=navigator.platform,c=a.match(/AppleWebKit\/([0-9]+)/),d=!!c&&c[1],e=null,f=this;if(b.indexOf("iPhone")>-1||b.indexOf("iPad")>-1||b.indexOf("iPod")>-1)e="ios";else{if(!(a.indexOf("Android")>-1))return;e="android"}if(e==="ios")f._bindScrollWorkaround();else{if(!(e==="android"&&d&&d<534))return;f._bindScrollWorkaround(),f._bindListThumbWorkaround()}},_viewportOffset:function(){var b=this.element,c=b.is(".ui-header"),d=Math.abs(b.offset().top-a.mobile.window.scrollTop());return c||(d=Math.round(d-a.mobile.window.height()+b.outerHeight())-60),d},_bindScrollWorkaround:function(){var b=this;this._on(a.mobile.window,{scrollstop:function(){var a=b._viewportOffset();a>2&&b._visible&&b._triggerRedraw()}})},_bindListThumbWorkaround:function(){this.element.closest(".ui-page").addClass("ui-android-2x-fixed")},_triggerRedraw:function(){var b=parseFloat(a(".ui-page-active").css("padding-bottom"));a(".ui-page-active").css("padding-bottom",b+1+"px"),setTimeout(function(){a(".ui-page-active").css("padding-bottom",b+"px")},0)},destroy:function(){this._super(),this.element.closest(".ui-page-active").removeClass("ui-android-2x-fix")}})}(a),function(a,b){var d={};a.widget("mobile.listview",a.mobile.widget,{options:{theme:null,countTheme:"c",headerTheme:"b",dividerTheme:"b",icon:"arrow-r",splitIcon:"arrow-r",splitTheme:"b",corners:!0,shadow:!0,inset:!1,initSelector:":jqmData(role='listview')"},_create:function(){var a=this,b="";b+=a.options.inset?" ui-listview-inset":"",!a.options.inset||(b+=a.options.corners?" ui-corner-all":"",b+=a.options.shadow?" ui-shadow":""),a.element.addClass(function(a,c){return c+" ui-listview"+b}),a.refresh(!0)},_findFirstElementByTagName:function(a,b,c,d){var e={};e[c]=e[d]=!0;while(a){if(e[a.nodeName])return a;a=a[b]}return null},_getChildrenByTagName:function(b,c,d){var e=[],f={};f[c]=f[d]=!0,b=b.firstChild;while(b)f[b.nodeName]&&e.push(b),b=b.nextSibling;return a(e)},_addThumbClasses:function(b){var c,d,e=b.length;for(c=0;c<e;c++)d=a(this._findFirstElementByTagName(b[c].firstChild,"nextSibling","img","IMG")),d.length&&(d.addClass("ui-li-thumb"),a(this._findFirstElementByTagName(d[0].parentNode,"parentNode","li","LI")).addClass(d.is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb"))},refresh:function(b){this.parentPage=this.element.closest(".ui-page"),this._createSubPages();var d=this.options,e=this.element,f=this,g=e.jqmData("dividertheme")||d.dividerTheme,h=e.jqmData("splittheme"),i=e.jqmData("spliticon"),j=e.jqmData("icon"),k=this._getChildrenByTagName(e[0],"li","LI"),l=!!a.nodeName(e[0],"ol"),m=!a.support.cssPseudoElement,n=e.attr("start"),o={},p,q,r,s,t,u,v,w,x,y,z,A,B,C;l&&m&&e.find(".ui-li-dec").remove(),l&&(n||n===0?m?v=parseInt(n,10):(w=parseInt(n,10)-1,e.css("counter-reset","listnumbering "+w)):m&&(v=1)),d.theme||(d.theme=a.mobile.getInheritedTheme(this.element,"c"));for(var D=0,E=k.length;D<E;D++){p=k.eq(D),q="ui-li";if(b||!p.hasClass("ui-li")){r=p.jqmData("theme")||d.theme,s=this._getChildrenByTagName(p[0],"a","A");var F=p.jqmData("role")==="list-divider";s.length&&!F?(z=p.jqmData("icon"),p.buttonMarkup({wrapperEls:"div",shadow:!1,corners:!1,iconpos:"right",icon:s.length>1||z===!1?!1:z||j||d.icon,theme:r}),z!==!1&&s.length===1&&p.addClass("ui-li-has-arrow"),s.first().removeClass("ui-link").addClass("ui-link-inherit"),s.length>1&&(q+=" ui-li-has-alt",t=s.last(),u=h||t.jqmData("theme")||d.splitTheme,C=t.jqmData("icon"),t.appendTo(p).attr("title",a.trim(t.getEncodedText())).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:!1,corners:!1,theme:r,icon:!1,iconpos:"notext"}).find(".ui-btn-inner").append(a(c.createElement("span")).buttonMarkup({shadow:!0,corners:!0,theme:u,iconpos:"notext",icon:C||z||i||d.splitIcon})))):F?(q+=" ui-li-divider ui-bar-"+(p.jqmData("theme")||g),p.attr("role","heading"),l&&(n||n===0?m?v=parseInt(n,10):(x=parseInt(n,10)-1,p.css("counter-reset","listnumbering "+x)):m&&(v=1))):q+=" ui-li-static ui-btn-up-"+r}l&&m&&q.indexOf("ui-li-divider")<0&&(y=q.indexOf("ui-li-static")>0?p:p.find(".ui-link-inherit"),y.addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+v++ +". </span>")),o[q]||(o[q]=[]),o[q].push(p[0])}for(q in o)a(o[q]).addClass(q).children(".ui-btn-inner").addClass(q);e.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading").end().find("p, dl").addClass("ui-li-desc").end().find(".ui-li-aside").each(function(){var b=a(this);b.prependTo(b.parent())}).end().find(".ui-li-count").each(function(){a(this).closest("li").addClass("ui-li-has-count")}).addClass("ui-btn-up-"+(e.jqmData("counttheme")||this.options.countTheme)+" ui-btn-corner-all"),this._addThumbClasses(k),this._addThumbClasses(e.find(".ui-link-inherit")),this._addFirstLastClasses(k,this._getVisibles(k,b),b),this._trigger("afterrefresh")},_idStringEscape:function(a){return a.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var b=this.element,c=b.closest(".ui-page"),e=c.jqmData("url"),f=e||c[0][a.expando],g=b.attr("id"),h=this.options,i="data-"+a.mobile.ns,j=this,k=c.find(":jqmData(role='footer')").jqmData("id"),l;typeof d[f]=="undefined"&&(d[f]=-1),g=g||++d[f],a(b.find("li>ul, li>ol").toArray().reverse()).each(function(c){var d=this,f=a(this),j=f.attr("id")||g+"-"+c,m=f.parent(),n=a(f.prevAll().toArray().reverse()),p=n.length?n:a("<span>"+a.trim(m.contents()[0].nodeValue)+"</span>"),q=p.first().getEncodedText(),r=(e||"")+"&"+a.mobile.subPageUrlKey+"="+j,s=f.jqmData("theme")||h.theme,t=f.jqmData("counttheme")||b.jqmData("counttheme")||h.countTheme,u,v;l=!0,u=f.detach().wrap("<div "+i+"role='page' "+i+"url='"+r+"' "+i+"theme='"+s+"' "+i+"count-theme='"+t+"'><div "+i+"role='content'></div></div>").parent().before("<div "+i+"role='header' "+i+"theme='"+h.headerTheme+"'><div class='ui-title'>"+q+"</div></div>").after(k?a("<div "+i+"role='footer' "+i+"id='"+k+"'>"):"").parent().appendTo(a.mobile.pageContainer),u.page(),v=m.find("a:first"),v.length||(v=a("<a/>").html(p||q).prependTo(m.empty())),v.attr("href","#"+r)}).listview();if(l&&c.is(":jqmData(external-page='true')")&&c.data("mobile-page").options.domCache===!1){var m=function(b,d){var f=d.nextPage,g,h=new a.Event("pageremove");d.nextPage&&(g=f.jqmData("url"),g.indexOf(e+"&"+a.mobile.subPageUrlKey)!==0&&(j.childPages().remove(),c.trigger(h),h.isDefaultPrevented()||c.removeWithDependents()))};c.unbind("pagehide.remove").bind("pagehide.remove",m)}},childPages:function(){var b=this.parentPage.jqmData("url");return a(":jqmData(url^='"+b+"&"+a.mobile.subPageUrlKey+"')")}}),a.widget("mobile.listview",a.mobile.listview,a.mobile.behaviors.addFirstLastClasses),a.mobile.document.bind("pagecreate create",function(b){a.mobile.listview.prototype.enhanceWithin(b.target)})}(a),function(a,b){a.mobile.listview.prototype.options.autodividers=!1,a.mobile.listview.prototype.options.autodividersSelector=function(b){var c=a.trim(b.text())||null;return c?(c=c.slice(0,1).toUpperCase(),c):null},a.mobile.document.delegate("ul,ol","listviewcreate",function(){var b=a(this),d=b.data("mobile-listview");if(!d||!d.options.autodividers)return;var e=function(){b.find("li:jqmData(role='list-divider')").remove();var e=b.find("li"),f=null,g,h;for(var i=0;i<e.length;i++){g=e[i],h=d.options.autodividersSelector(a(g));if(h&&f!==h){var j=c.createElement("li");j.appendChild(c.createTextNode(h)),j.setAttribute("data-"+a.mobile.ns+"role","list-divider"),g.parentNode.insertBefore(j,g)}f=h}},f=function(){b.unbind("listviewafterrefresh",f),e(),d.refresh(),b.bind("listviewafterrefresh",f)};f()})}(a),function(a,b){a.mobile.listview.prototype.options.filter=!1,a.mobile.listview.prototype.options.filterPlaceholder="Filter items...",a.mobile.listview.prototype.options.filterTheme="c",a.mobile.listview.prototype.options.filterReveal=!1;var c=function(a,b,c){return a.toString().toLowerCase().indexOf(b)===-1};a.mobile.listview.prototype.options.filterCallback=c,a.mobile.document.delegate("ul, ol","listviewcreate",function(){var b=a(this),d=b.data("mobile-listview");if(!d.options.filter)return;d.options.filterReveal&&b.children().addClass("ui-screen-hidden");var e=a("<form>",{"class":"ui-listview-filter ui-bar-"+d.options.filterTheme,role:"search"}).submit(function(a){a.preventDefault(),g.blur()}),f=function(e){var f=a(this),g=this.value.toLowerCase(),h=null,i=b.children(),j=f.jqmData("lastval")+"",k=!1,l="",m,n=d.options.filterCallback!==c;if(j&&j===g)return;d._trigger("beforefilter","beforefilter",{input:this}),f.jqmData("lastval",g),n||g.length<j.length||g.indexOf(j)!==0?h=b.children():(h=b.children(":not(.ui-screen-hidden)"),!h.length&&d.options.filterReveal&&(h=b.children(".ui-screen-hidden")));if(g){for(var o=h.length-1;o>=0;o--)m=a(h[o]),l=m.jqmData("filtertext")||m.text(),m.is("li:jqmData(role=list-divider)")?(m.toggleClass("ui-filter-hidequeue",!k),k=!1):d.options.filterCallback(l,g,m)?m.toggleClass("ui-filter-hidequeue",!0):k=!0;h.filter(":not(.ui-filter-hidequeue)").toggleClass("ui-screen-hidden",!1),h.filter(".ui-filter-hidequeue").toggleClass("ui-screen-hidden",!0).toggleClass("ui-filter-hidequeue",!1)}else h.toggleClass("ui-screen-hidden",!!d.options.filterReveal);d._addFirstLastClasses(i,d._getVisibles(i,!1),!1)},g=a("<input>",{placeholder:d.options.filterPlaceholder}).attr("data-"+a.mobile.ns+"type","search").jqmData("lastval","").bind("keyup change input",f).appendTo(e).textinput();d.options.inset&&e.addClass("ui-listview-filter-inset"),e.bind("submit",function(){return!1}).insertBefore(b)})}(a),function(a,d){a.widget("mobile.panel",a.mobile.widget,{options:{classes:{panel:"ui-panel",panelOpen:"ui-panel-open",panelClosed:"ui-panel-closed",panelFixed:"ui-panel-fixed",panelInner:"ui-panel-inner",modal:"ui-panel-dismiss",modalOpen:"ui-panel-dismiss-open",pagePanel:"ui-page-panel",pagePanelOpen:"ui-page-panel-open",contentWrap:"ui-panel-content-wrap",contentWrapOpen:"ui-panel-content-wrap-open",contentWrapClosed:"ui-panel-content-wrap-closed",contentFixedToolbar:"ui-panel-content-fixed-toolbar",contentFixedToolbarOpen:"ui-panel-content-fixed-toolbar-open",contentFixedToolbarClosed:"ui-panel-content-fixed-toolbar-closed",animate:"ui-panel-animate"},animate:!0,theme:"c",position:"left",dismissible:!0,display:"reveal",initSelector:":jqmData(role='panel')",swipeClose:!0,positionFixed:!1},_panelID:null,_closeLink:null,_page:null,_modal:null,_pannelInner:null,_wrapper:null,_fixedToolbar:null,_create:function(){var b=this,c=b.element,d=c.closest(":jqmData(role='page')"),e=function(){var b=a.data(d[0],"mobilePage").options.theme,c="ui-body-"+b;return c},f=function(){var a=c.find("."+b.options.classes.panelInner);return a.length===0&&(a=c.children().wrapAll('<div class="'+b.options.classes.panelInner+'" />').parent()),a},g=function(){var c=d.find("."+b.options.classes.contentWrap);return c.length===0&&(c=d.children(".ui-header:not(:jqmData(position='fixed')), .ui-content:not(:jqmData(role='popup')), .ui-footer:not(:jqmData(position='fixed'))").wrapAll('<div class="'+b.options.classes.contentWrap+" "+e()+'" />').parent(),a.support.cssTransform3d&&!!b.options.animate&&c.addClass(b.options.classes.animate)),c},h=function(){var c=d.find("."+b.options.classes.contentFixedToolbar);return c.length===0&&(c=d.find(".ui-header:jqmData(position='fixed'), .ui-footer:jqmData(position='fixed')").addClass(b.options.classes.contentFixedToolbar),a.support.cssTransform3d&&!!b.options.animate&&c.addClass(b.options.classes.animate)),c};a.extend(this,{_panelID:c.attr("id"),_closeLink:c.find(":jqmData(rel='close')"),_page:c.closest(":jqmData(role='page')"),_pageTheme:e(),_pannelInner:f(),_wrapper:g(),_fixedToolbar:h()}),b._addPanelClasses(),b._wrapper.addClass(this.options.classes.contentWrapClosed),b._fixedToolbar.addClass(this.options.classes.contentFixedToolbarClosed),b._page.addClass(b.options.classes.pagePanel),a.support.cssTransform3d&&!!b.options.animate&&this.element.addClass(b.options.classes.animate),b._bindUpdateLayout(),b._bindCloseEvents(),b._bindLinkListeners(),b._bindPageEvents(),!b.options.dismissible||b._createModal(),b._bindSwipeEvents()},_createModal:function(b){var c=this;c._modal=a("<div class='"+c.options.classes.modal+"' data-panelid='"+c._panelID+"'></div>").on("mousedown",function(){c.close()}).appendTo(this._page)},_getPosDisplayClasses:function(a){return a+"-position-"+this.options.position+" "+a+"-display-"+this.options.display},_getPanelClasses:function(){var a=this.options.classes.panel+" "+this._getPosDisplayClasses(this.options.classes.panel)+" "+this.options.classes.panelClosed;return this.options.theme&&(a+=" ui-body-"+this.options.theme),!this.options.positionFixed||(a+=" "+this.options.classes.panelFixed),a},_addPanelClasses:function(){this.element.addClass(this._getPanelClasses())},_bindCloseEvents:function(){var a=this;a._closeLink.on("click.panel",function(b){return b.preventDefault(),a.close(),!1}),a.element.on("click.panel","a:jqmData(ajax='false')",function(b){a.close()})},_positionPanel:function(){var b=this,c=b._pannelInner.outerHeight(),d=c>a.mobile.getScreenHeight();d||!b.options.positionFixed?(d&&(b._unfixPanel(),a.mobile.resetActivePageHeight(c)),b._scrollIntoView(c)):b._fixPanel()},_scrollIntoView:function(c){c<a(b).scrollTop()&&b.scrollTo(0,0)},_bindFixListener:function(){this._on(a(b),{throttledresize:"_positionPanel"})},_unbindFixListener:function(){this._off(a(b),"throttledresize")},_unfixPanel:function(){!!this.options.positionFixed&&a.support.fixedPosition&&this.element.removeClass(this.options.classes.panelFixed)},_fixPanel:function(){!!this.options.positionFixed&&a.support.fixedPosition&&this.element.addClass(this.options.classes.panelFixed)},_bindUpdateLayout:function(){var a=this;a.element.on("updatelayout",function(b){a._open&&a._positionPanel()})},_bindLinkListeners:function(){var b=this;b._page.on("click.panel","a",function(c){if(this.href.split("#")[1]===b._panelID&&b._panelID!==d){c.preventDefault();var e=a(this);return e.hasClass("ui-link")||(e.addClass(a.mobile.activeBtnClass),b.element.one("panelopen panelclose",function(){e.removeClass(a.mobile.activeBtnClass)})),b.toggle(),!1}})},_bindSwipeEvents:function(){var a=this,b=a._modal?a.element.add(a._modal):a.element;!a.options.swipeClose||(a.options.position==="left"?b.on("swipeleft.panel",function(b){a.close()}):b.on("swiperight.panel",function(b){a.close()}))},_bindPageEvents:function(){var a=this;a._page.on("panelbeforeopen",function(b){a._open&&b.target!==a.element[0]&&a.close()}).on("pagehide",function(b){a._open&&a.close(!0)}).on("keyup.panel",function(b){b.keyCode===27&&a._open&&a.close()})},_open:!1,_contentWrapOpenClasses:null,_fixedToolbarOpenClasses:null,_modalOpenClasses:null,open:function(b){if(!this._open){var c=this,d=c.options,e=function(){c._page.off("panelclose"),c._page.jqmData("panel","open"),!b&&a.support.cssTransform3d&&!!d.animate?c.element.add(c._wrapper).on(c._transitionEndEvents,f):setTimeout(f,0),c.options.theme&&c.options.display!=="overlay"&&c._page.removeClass(c._pageTheme).addClass("ui-body-"+c.options.theme),c.element.removeClass(d.classes.panelClosed).addClass(d.classes.panelOpen),c._contentWrapOpenClasses=c._getPosDisplayClasses(d.classes.contentWrap),c._wrapper.removeClass(d.classes.contentWrapClosed).addClass(c._contentWrapOpenClasses+" "+d.classes.contentWrapOpen),c._fixedToolbarOpenClasses=c._getPosDisplayClasses(d.classes.contentFixedToolbar),c._fixedToolbar.removeClass(d.classes.contentFixedToolbarClosed).addClass(c._fixedToolbarOpenClasses+" "+d.classes.contentFixedToolbarOpen),c._modalOpenClasses=c._getPosDisplayClasses(d.classes.modal)+" "+d.classes.modalOpen,c._modal&&c._modal.addClass(c._modalOpenClasses)},f=function(){c.element.add(c._wrapper).off(c._transitionEndEvents,f),c._page.addClass(d.classes.pagePanelOpen),c._positionPanel(),c._bindFixListener(),c._trigger("open")};this.element.closest(".ui-page-active").length<0&&(b=!0),c._trigger("beforeopen"),c._page.jqmData("panel")==="open"?c._page.on("panelclose",function(){e()}):e(),c._open=!0}},close:function(b){if(this._open){var c=this.options,d=this,e=function(){!b&&a.support.cssTransform3d&&!!c.animate?d.element.add(d._wrapper).on(d._transitionEndEvents,f):setTimeout(f,0),d._page.removeClass(c.classes.pagePanelOpen),d.element.removeClass(c.classes.panelOpen),d._wrapper.removeClass(c.classes.contentWrapOpen),d._fixedToolbar.removeClass(c.classes.contentFixedToolbarOpen),d._modal&&d._modal.removeClass(d._modalOpenClasses)},f=function(){d.options.theme&&d.options.display!=="overlay"&&d._page.removeClass("ui-body-"+d.options.theme).addClass(d._pageTheme),d.element.add(d._wrapper).off(d._transitionEndEvents,f),d.element.addClass(c.classes.panelClosed),d._wrapper.removeClass(d._contentWrapOpenClasses).addClass(c.classes.contentWrapClosed),d._fixedToolbar.removeClass(d._fixedToolbarOpenClasses).addClass(c.classes.contentFixedToolbarClosed),d._fixPanel(),d._unbindFixListener(),a.mobile.resetActivePageHeight(),d._page.jqmRemoveData("panel"),d._trigger("close")};this.element.closest(".ui-page-active").length<0&&(b=!0),d._trigger("beforeclose"),e(),d._open=!1}},toggle:function(a){this[this._open?"close":"open"]()},_transitionEndEvents:"webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd",_destroy:function(){var b=this.options.classes,c=this.options.theme,d=this.element.siblings("."+b.panel).length;d?this._open&&(this._wrapper.removeClass(b.contentWrapOpen),this._fixedToolbar.removeClass(b.contentFixedToolbarOpen),this._page.jqmRemoveData("panel"),this._page.removeClass(b.pagePanelOpen),c&&this._page.removeClass("ui-body-"+c).addClass(this._pageTheme)):(this._wrapper.children().unwrap(),this._page.find("a").unbind("panelopen panelclose"),this._page.removeClass(b.pagePanel),this._open&&(this._page.jqmRemoveData("panel"),this._page.removeClass(b.pagePanelOpen),c&&this._page.removeClass("ui-body-"+c).addClass(this._pageTheme),a.mobile.resetActivePageHeight())),this._pannelInner.children().unwrap(),this.element.removeClass([this._getPanelClasses(),b.panelAnimate].join(" ")).off("swipeleft.panel swiperight.panel").off("panelbeforeopen").off("panelhide").off("keyup.panel").off("updatelayout"),this._closeLink.off("click.panel"),this._modal&&this._modal.remove(),this.element.off(this._transitionEndEvents).removeClass([b.panelUnfixed,b.panelClosed,b.panelOpen].join(" "))}}),a(c).bind("pagecreate create",function(b){a.mobile.panel.prototype.enhanceWithin(b.target)})}(a),function(a,d){function e(a,b,c,d){var e=d;return a<b?e=c+(a-b)/2:e=Math.min(Math.max(c,d-b/2),c+a-b),e}function f(){var c=a.mobile.window;return{x:c.scrollLeft(),y:c.scrollTop(),cx:b.innerWidth||c.width(),cy:b.innerHeight||c.height()}}a.widget("mobile.popup",a.mobile.widget,{options:{theme:null,overlayTheme:null,shadow:!0,corners:!0,transition:"none",positionTo:"origin",tolerance:null,initSelector:":jqmData(role='popup')",closeLinkSelector:"a:jqmData(rel='back')",closeLinkEvents:"click.popup",navigateEvents:"navigate.popup",closeEvents:"navigate.popup pagebeforechange.popup",dismissible:!0,history:!a.mobile.browser.oldIE},_eatEventAndClose:function(a){return a.preventDefault(),a.stopImmediatePropagation(),this.options.dismissible&&this.close(),!1},_resizeScreen:function(){var a=this._ui.container.outerHeight(!0);this._ui.screen.removeAttr("style"),a>this._ui.screen.height()&&this._ui.screen.height(a)},_handleWindowKeyUp:function(b){if(this._isOpen&&b.keyCode===a.mobile.keyCode.ESCAPE)return this._eatEventAndClose(b)},_expectResizeEvent:function(){var b=f();if(this._resizeData){if(b.x===this._resizeData.winCoords.x&&b.y===this._resizeData.winCoords.y&&b.cx===this._resizeData.winCoords.cx&&b.cy===this._resizeData.winCoords.cy)return!1;clearTimeout(this._resizeData.timeoutId)}return this._resizeData={timeoutId:setTimeout(a.proxy(this,"_resizeTimeout"),200),winCoords:b},!0},_resizeTimeout:function(){this._isOpen?this._expectResizeEvent()||(this._ui.container.hasClass("ui-popup-hidden")&&(this._ui.container.removeClass("ui-popup-hidden"),this.reposition({positionTo:"window"}),this._ignoreResizeEvents()),this._resizeScreen(),this._resizeData=null,this._orientationchangeInProgress=!1):(this._resizeData=null,this._orientationchangeInProgress=!1)},_ignoreResizeEvents:function(){var a=this;this._ignoreResizeTo&&clearTimeout(this._ignoreResizeTo),this._ignoreResizeTo=setTimeout(function(){a._ignoreResizeTo=0},1e3)},_handleWindowResize:function(a){this._isOpen&&this._ignoreResizeTo===0&&(this._expectResizeEvent()||this._orientationchangeInProgress)&&!this._ui.container.hasClass("ui-popup-hidden")&&this._ui.container.addClass("ui-popup-hidden").removeAttr("style")},_handleWindowOrientationchange:function(a){!this._orientationchangeInProgress&&this._isOpen&&this._ignoreResizeTo===0&&(this._expectResizeEvent(),this._orientationchangeInProgress=!0)},_handleDocumentFocusIn:function(b){var d=b.target,e,f=this._ui;if(!this._isOpen)return;if(d!==f.container[0]){e=a(b.target);if(0===e.parents().filter(f.container[0]).length)return a(c.activeElement).one("focus",function(a){e.blur()}),f.focusElement.focus(),b.preventDefault(),b.stopImmediatePropagation(),!1;f.focusElement[0]===f.container[0]&&(f.focusElement=e)}else f.focusElement&&f.focusElement[0]!==f.container[0]&&(f.container.blur(),f.focusElement.focus());this._ignoreResizeEvents()},_create:function(){var b={screen:a("<div class='ui-screen-hidden ui-popup-screen'></div>"),placeholder:a("<div style='display: none;'><!-- placeholder --></div>"),container:a("<div class='ui-popup-container ui-popup-hidden'></div>")},c=this.element.closest(".ui-page"),e=this.element.attr("id"),f=this;this.options.history=this.options.history&&a.mobile.ajaxEnabled&&a.mobile.hashListeningEnabled,c.length===0&&(c=a("body")),this.options.container=this.options.container||a.mobile.pageContainer,c.append(b.screen),b.container.insertAfter(b.screen),b.placeholder.insertAfter(this.element),e&&(b.screen.attr("id",e+"-screen"),b.container.attr("id",e+"-popup"),b.placeholder.html("<!-- placeholder for "+e+" -->")),b.container.append(this.element),b.focusElement=b.container,this.element.addClass("ui-popup"),a.extend(this,{_scrollTop:0,_page:c,_ui:b,_fallbackTransition:"",_currentTransition:!1,_prereqs:null,_isOpen:!1,_tolerance:null,_resizeData:null,_ignoreResizeTo:0,_orientationchangeInProgress:!1}),a.each(this.options,function(a,b){f.options[a]=d,f._setOption(a,b,!0)}),b.screen.bind("vclick",a.proxy(this,"_eatEventAndClose")),this._on(a.mobile.window,{orientationchange:a.proxy(this,"_handleWindowOrientationchange"),resize:a.proxy(this,"_handleWindowResize"),keyup:a.proxy(this,"_handleWindowKeyUp")}),this._on(a.mobile.document,{focusin:a.proxy(this,"_handleDocumentFocusIn")})},_applyTheme:function(a,b,c){var d=(a.attr("class")||"").split(" "),e=!0,f=null,g,h=String(b);while(d.length>0){f=d.pop(),g=(new RegExp("^ui-"+c+"-([a-z])$")).exec(f);if(g&&g.length>1){f=g[1];break}f=null}b!==f&&(a.removeClass("ui-"+c+"-"+f),b!==null&&b!=="none"&&a.addClass("ui-"+c+"-"+h))},_setTheme:function(a){this._applyTheme(this.element,a,"body")},_setOverlayTheme:function(a){this._applyTheme(this._ui.screen,a,"overlay"),this._isOpen&&this._ui.screen.addClass("in")},_setShadow:function(a){this.element.toggleClass("ui-overlay-shadow",a)},_setCorners:function(a){this.element.toggleClass("ui-corner-all",a)},_applyTransition:function(b){this._ui.container.removeClass(this._fallbackTransition),b&&b!=="none"&&(this._fallbackTransition=a.mobile._maybeDegradeTransition(b),this._fallbackTransition==="none"&&(this._fallbackTransition=""),this._ui.container.addClass(this._fallbackTransition))},_setTransition:function(a){this._currentTransition||this._applyTransition(a)},_setTolerance:function(b){var c={t:30,r:15,b:30,l:15};if(b!==d){var e=String(b).split(",");a.each(e,function(a,b){e[a]=parseInt(b,10)});switch(e.length){case 1:isNaN(e[0])||(c.t=c.r=c.b=c.l=e[0]);break;case 2:isNaN(e[0])||(c.t=c.b=e[0]),isNaN(e[1])||(c.l=c.r=e[1]);break;case 4:isNaN(e[0])||(c.t=e[0]),isNaN(e[1])||(c.r=e[1]),isNaN(e[2])||(c.b=e[2]),isNaN(e[3])||(c.l=e[3]);break;default:}}this._tolerance=c},_setOption:function(b,c){var e,f="_set"+b.charAt(0).toUpperCase()+b.slice(1);this[f]!==d&&this[f](c),e=["initSelector","closeLinkSelector","closeLinkEvents","navigateEvents","closeEvents","history","container"],a.mobile.widget.prototype._setOption.apply(this,arguments),a.inArray(b,e)===-1&&this.element.attr("data-"+(a.mobile.ns||"")+b.replace(/([A-Z])/,"-$1").toLowerCase(),c)},_placementCoords:function(a){var b=f(),d={x:this._tolerance.l,y:b.y+this._tolerance.t,cx:b.cx-this._tolerance.l-this._tolerance.r,cy:b.cy-this._tolerance.t-this._tolerance.b},g,h;this._ui.container.css("max-width",d.cx),g={cx:this._ui.container.outerWidth(!0),cy:this._ui.container.outerHeight(!0)},h={x:e(d.cx,g.cx,d.x,a.x),y:e(d.cy,g.cy,d.y,a.y)},h.y=Math.max(0,h.y);var i=c.documentElement,j=c.body,k=Math.max(i.clientHeight,j.scrollHeight,j.offsetHeight,i.scrollHeight,i.offsetHeight);return h.y-=Math.min(h.y,Math.max(0,h.y+g.cy-k)),{left:h.x,top:h.y}},_createPrereqs:function(b,c,d){var e=this,f;f={screen:a.Deferred(),container:a.Deferred()},f.screen.then(function(){f===e._prereqs&&b()}),f.container.then(function(){f===e._prereqs&&c()}),a.when(f.screen,f.container).done(function(){f===e._prereqs&&(e._prereqs=null,d())}),e._prereqs=f},_animate:function(b){this._ui.screen.removeClass(b.classToRemove).addClass(b.screenClassToAdd),b.prereqs.screen.resolve();if(b.transition&&b.transition!=="none"){b.applyTransition&&this._applyTransition(b.transition);if(this._fallbackTransition){this._ui.container.animationComplete(a.proxy(b.prereqs.container,"resolve")).addClass(b.containerClassToAdd).removeClass(b.classToRemove);return}}this._ui.container.removeClass(b.classToRemove),b.prereqs.container.resolve()},_desiredCoords:function(b){var c=null,d,e=f(),g=b.x,h=b.y,i=b.positionTo;if(i&&i!=="origin")if(i==="window")g=e.cx/2+e.x,h=e.cy/2+e.y;else{try{c=a(i)}catch(j){c=null}c&&(c.filter(":visible"),c.length===0&&(c=null))}c&&(d=c.offset(),g=d.left+c.outerWidth()/2,h=d.top+c.outerHeight()/2);if(a.type(g)!=="number"||isNaN(g))g=e.cx/2+e.x;if(a.type(h)!=="number"||isNaN(h))h=e.cy/2+e.y;return{x:g,y:h}},_reposition:function(a){a={x:a.x,y:a.y,positionTo:a.positionTo},this._trigger("beforeposition",a),this._ui.container.offset(this._placementCoords(this._desiredCoords(a)))},reposition:function(a){this._isOpen&&this._reposition(a)},_openPrereqsComplete:function(){this._ui.container.addClass("ui-popup-active"),this._isOpen=!0,this._resizeScreen(),this._ui.container.attr("tabindex","0").focus(),this._ignoreResizeEvents(),this._trigger("afteropen")},_open:function(c){var d=a.extend({},this.options,c),e=function(){var a=b,c=navigator.userAgent,d=c.match(/AppleWebKit\/([0-9\.]+)/),e=!!d&&d[1],f=c.match(/Android (\d+(?:\.\d+))/),g=!!f&&f[1],h=c.indexOf("Chrome")>-1;return f!==null&&g==="4.0"&&e&&e>534.13&&!h?!0:!1}();this._createPrereqs(a.noop,a.noop,a.proxy(this,"_openPrereqsComplete")),this._currentTransition=d.transition,this._applyTransition(d.transition),this.options.theme||this._setTheme(this._page.jqmData("theme")||a.mobile.getInheritedTheme(this._page,"c")),this._ui.screen.removeClass("ui-screen-hidden"),this._ui.container.removeClass("ui-popup-hidden"),this._reposition(d),this.options.overlayTheme&&e&&this.element.closest(".ui-page").addClass("ui-popup-open"),this._animate({additionalCondition:!0,transition:d.transition,classToRemove:"",screenClassToAdd:"in",containerClassToAdd:"in",applyTransition:!1,prereqs:this._prereqs})},_closePrereqScreen:function(){this._ui.screen.removeClass("out").addClass("ui-screen-hidden")},_closePrereqContainer:function(){this._ui.container.removeClass("reverse out").addClass("ui-popup-hidden").removeAttr("style")},_closePrereqsDone:function(){var b=this.options;this._ui.container.removeAttr("tabindex"),a.mobile.popup.active=d,this._trigger("afterclose")},_close:function(b){this._ui.container.removeClass("ui-popup-active"),this._page.removeClass("ui-popup-open"),this._isOpen=!1,this._createPrereqs(a.proxy(this,"_closePrereqScreen"),a.proxy(this,"_closePrereqContainer"),a.proxy(this,"_closePrereqsDone")),this._animate({additionalCondition:this._ui.screen.hasClass("in"),transition:b?"none":this._currentTransition,classToRemove:"in",screenClassToAdd:"out",containerClassToAdd:"reverse out",applyTransition:!0,prereqs:this._prereqs})},_unenhance:function(){this._setTheme("none"),this.element.detach().insertAfter(this._ui.placeholder).removeClass("ui-popup ui-overlay-shadow ui-corner-all"),this._ui.screen.remove(),this._ui.container.remove(),this._ui.placeholder.remove()},_destroy:function(){a.mobile.popup.active===this?(this.element.one("popupafterclose",a.proxy(this,"_unenhance")),this.close()):this._unenhance()},_closePopup:function(c,d){var e,f,g=this.options,h=!1;b.scrollTo(0,this._scrollTop),c&&c.type==="pagebeforechange"&&d&&(typeof d.toPage=="string"?e=d.toPage:e=d.toPage.jqmData("url"),e=a.mobile.path.parseUrl(e),f=e.pathname+e.search+e.hash,this._myUrl!==a.mobile.path.makeUrlAbsolute(f)?h=!0:c.preventDefault()),g.container.unbind(g.closeEvents),this.element.undelegate(g.closeLinkSelector,g.closeLinkEvents),this._close(h)},_bindContainerClose:function(){this.options.container.one(this.options.closeEvents,a.proxy(this,"_closePopup"))},open:function(c){var d=this,e=this.options,f,g,h,i,j,k;if(a.mobile.popup.active)return;a.mobile.popup.active=this,this._scrollTop=a.mobile.window.scrollTop();if(!e.history){d._open(c),d._bindContainerClose(),d.element.delegate(e.closeLinkSelector,e.closeLinkEvents,function(a){d.close(),a.preventDefault()});return}k=a.mobile.urlHistory,g=a.mobile.dialogHashKey,h=a.mobile.activePage,i=h.is(".ui-dialog"),this._myUrl=f=k.getActive().url,j=f.indexOf(g)>-1&&!i&&k.activeIndex>0;if(j){d._open(c),d._bindContainerClose();return}f.indexOf(g)===-1&&!i?f+=f.indexOf("#")>-1?g:"#"+g:f=a.mobile.path.parseLocation().hash+g,k.activeIndex===0&&f===k.initialDst&&(f+=g),a(b).one("beforenavigate",function(a){a.preventDefault(),d._open(c),d._bindContainerClose()}),this.urlAltered=!0,a.mobile.navigate(f,{role:"dialog"})},close:function(){if(a.mobile.popup.active!==this)return;this._scrollTop=a.mobile.window.scrollTop(),this.options.history&&this.urlAltered?(a.mobile.back(),this.urlAltered=!1):this._closePopup()}}),a.mobile.popup.handleLink=function(b){var c=b.closest(":jqmData(role='page')"),d=c.length===0?a("body"):c,e=a(a.mobile.path.parseUrl(b.attr("href")).hash,d[0]),f;e.data("mobile-popup")&&(f=b.offset(),e.popup("open",{x:f.left+b.outerWidth()/2,y:f.top+b.outerHeight()/2,transition:b.jqmData("transition"),positionTo:b.jqmData("position-to")})),setTimeout(function(){var c=b.parent().parent();c.hasClass("ui-li")&&(b=c.parent()),b.removeClass(a.mobile.activeBtnClass)},300)},a.mobile.document.bind("pagebeforechange",function(b,c){c.options.role==="popup"&&(a.mobile.popup.handleLink(c.options.link),b.preventDefault())}),a.mobile.document.bind("pagecreate create",function(b){a.mobile.popup.prototype.enhanceWithin(b.target,!0)})}(a),function(a,b){a.widget("mobile.table",a.mobile.widget,{options:{classes:{table:"ui-table"},initSelector:":jqmData(role='table')"},_create:function(){var b=this,c=this.element.find("thead tr");this.element.addClass(this.options.classes.table),b.headers=this.element.find("tr:eq(0)").children(),b.allHeaders=b.headers.add(c.children()),c.each(function(){var d=0;a(this).children().each(function(e){var f=parseInt(a(this).attr("colspan"),10),g=":nth-child("+(d+1)+")";a(this).jqmData("colstart",d+1);if(f)for(var h=0;h<f-1;h++)d++,g+=", :nth-child("+(d+1)+")";a(this).jqmData("cells",b.element.find("tr").not(c.eq(0)).not(this).children(g)),d++})})}}),a.mobile.document.bind("pagecreate create",function(b){a.mobile.table.prototype.enhanceWithin(b.target)})}(a),function(a,b){a.widget("mobile.controlgroup",a.mobile.widget,{options:{shadow:!1,corners:!0,excludeInvisible:!0,type:"vertical",mini:!1,initSelector:":jqmData(role='controlgroup')"},_create:function(){var c=this.element,d={inner:a("<div class='ui-controlgroup-controls'></div>"),legend:a("<div role='heading' class='ui-controlgroup-label'></div>")},e=c.children("legend"),f=this;c.wrapInner(d.inner),e.length&&d.legend.append(e).insertBefore(c.children(0)),c.addClass("ui-corner-all ui-controlgroup"),a.extend(this,{_initialRefresh:!0}),a.each(this.options,function(a,c){f.options[a]=b,f._setOption(a,c,!0)})},_init:function(){this.refresh()},_setOption:function(c,d){var e="_set"+c.charAt(0).toUpperCase()+c.slice(1);this[e]!==b&&this[e](d),this._super(c,d),this.element.attr("data-"+(a.mobile.ns||"")+c.replace(/([A-Z])/,"-$1").toLowerCase(),d)},_setType:function(a){this.element.removeClass("ui-controlgroup-horizontal ui-controlgroup-vertical").addClass("ui-controlgroup-"+a),this.refresh()},_setCorners:function(a){this.element.toggleClass("ui-corner-all",a)},_setShadow:function(a){this.element.toggleClass("ui-shadow",a)},_setMini:function(a){this.element.toggleClass("ui-mini",a)},container:function(){return this.element.children(".ui-controlgroup-controls")},refresh:function(){var b=this.element.find(".ui-btn").not(".ui-slider-handle"),c=this._initialRefresh;a.mobile.checkboxradio&&this.element.find(":mobile-checkboxradio").checkboxradio("refresh"),this._addFirstLastClasses(b,this.options.excludeInvisible?this._getVisibles(b,c):b,c),this._initialRefresh=!1}}),a.widget("mobile.controlgroup",a.mobile.controlgroup,a.mobile.behaviors.addFirstLastClasses),a(function(){a.mobile.document.bind("pagecreate create",function(b){a.mobile.controlgroup.prototype.enhanceWithin(b.target,!0)})})}(a),function(a,b){a.mobile.behaviors.formReset={_handleFormReset:function(){this._on(this.element.closest("form"),{reset:function(){this._delay("_reset")}})}}}(a),function(a,b){a.widget("mobile.checkboxradio",a.mobile.widget,{options:{theme:null,mini:!1,initSelector:"input[type='checkbox'],input[type='radio']"},_create:function(){var b=this,d=this.element,e=this.options,f=function(a,b){return a.jqmData(b)||a.closest("form, fieldset").jqmData(b)},g=a(d).closest("label"),h=g.length?g:a(d).closest("form, fieldset, :jqmData(role='page'), :jqmData(role='dialog')").find("label").filter("[for='"+d[0].id+"']").first(),i=d[0].type,j=f(d,"mini")||e.mini,k=i+"-on",l=i+"-off",m=f(d,"iconpos"),n="ui-"+k,o="ui-"+l;if(i!=="checkbox"&&i!=="radio")return;a.extend(this,{label:h,inputtype:i,checkedClass:n,uncheckedClass:o,checkedicon:k,uncheckedicon:l}),e.theme||(e.theme=a.mobile.getInheritedTheme(this.element,"c")),h.buttonMarkup({theme:e.theme,icon:l,shadow:!1,mini:j,iconpos:m});var p=c.createElement("div");p.className="ui-"+i,d.add(h).wrapAll(p),h.bind({vmouseover:function(b){a(this).parent().is(".ui-disabled")&&b.stopPropagation()},vclick:function(a){if(d.is(":disabled")){a.preventDefault();return}return b._cacheVals(),d.prop("checked",i==="radio"&&!0||!d.prop("checked")),d.triggerHandler("click"),b._getInputSet().not(d).prop("checked",!1),b._updateAll(),!1}}),d.bind({vmousedown:function(){b._cacheVals()},vclick:function(){var c=a(this);c.is(":checked")?(c.prop("checked",!0),b._getInputSet().not(c).prop("checked",!1)):c.prop("checked",!1),b._updateAll()},focus:function(){h.addClass(a.mobile.focusClass)},blur:function(){h.removeClass(a.mobile.focusClass)}}),this._handleFormReset&&this._handleFormReset(),this.refresh()},_cacheVals:function(){this._getInputSet().each(function(){a(this).jqmData("cacheVal",this.checked)})},_getInputSet:function(){return this.inputtype==="checkbox"?this.element:this.element.closest("form, :jqmData(role='page'), :jqmData(role='dialog')").find("input[name='"+this.element[0].name+"'][type='"+this.inputtype+"']")},_updateAll:function(){var b=this;this._getInputSet().each(function(){var c=a(this);(this.checked||b.inputtype==="checkbox")&&c.trigger("change")}).checkboxradio("refresh")},_reset:function(){this.refresh()},refresh:function(){var b=this.element[0],c=" "+a.mobile.activeBtnClass,d=this.checkedClass+(this.element.parents(".ui-controlgroup-horizontal").length?c:""),e=this.label;b.checked?e.removeClass(this.uncheckedClass+c).addClass(d).buttonMarkup({icon:this.checkedicon}):e.removeClass(d).addClass(this.uncheckedClass).buttonMarkup({icon:this.uncheckedicon}),b.disabled?this.disable():this.enable()},disable:function(){this.element.prop("disabled",!0).parent().addClass("ui-disabled")},enable:function(){this.element.prop("disabled",!1).parent().removeClass("ui-disabled")}}),a.widget("mobile.checkboxradio",a.mobile.checkboxradio,a.mobile.behaviors.formReset),a.mobile.document.bind("pagecreate create",function(b){a.mobile.checkboxradio.prototype.enhanceWithin(b.target,!0)})}(a),function(a,b){a.mobile.table.prototype.options.mode="columntoggle",a.mobile.table.prototype.options.columnBtnTheme=null,a.mobile.table.prototype.options.columnPopupTheme=null,a.mobile.table.prototype.options.columnBtnText="Columns...",a.mobile.table.prototype.options.classes=a.extend(a.mobile.table.prototype.options.classes,{popup:"ui-table-columntoggle-popup",columnBtn:"ui-table-columntoggle-btn",priorityPrefix:"ui-table-priority-",columnToggleTable:"ui-table-columntoggle"}),a.mobile.document.delegate(":jqmData(role='table')","tablecreate",function(){var b=a(this),c=b.data("mobile-table"),d=c.options,e=a.mobile.ns;if(d.mode!=="columntoggle")return;c.element.addClass(d.classes.columnToggleTable);var f=(b.attr("id")||d.classes.popup)+"-popup",g=a("<a href='#"+f+"' class='"+d.classes.columnBtn+"' data-"+e+"rel='popup' data-"+e+"mini='true'>"+d.columnBtnText+"</a>"),h=a("<div data-"+e+"role='popup' data-"+e+"role='fieldcontain' class='"+d.classes.popup+"' id='"+f+"'></div>"),i=a("<fieldset data-"+e+"role='controlgroup'></fieldset>");c.headers.not("td").each(function(){var b=a(this).jqmData("priority"),c=a(this).add(a(this).jqmData("cells"));b&&(c.addClass(d.classes.priorityPrefix+b),a("<label><input type='checkbox' checked />"+a(this).text()+"</label>").appendTo(i).children(0).jqmData("cells",c).checkboxradio({theme:d.columnPopupTheme}))}),i.appendTo(h),i.on("change","input",function(b){this.checked?a(this).jqmData("cells").removeClass("ui-table-cell-hidden").addClass("ui-table-cell-visible"):a(this).jqmData("cells").removeClass("ui-table-cell-visible").addClass("ui-table-cell-hidden")}),g.insertBefore(b).buttonMarkup({theme:d.columnBtnTheme}),h.insertBefore(b).popup(),c.refresh=function(){i.find("input").each(function(){this.checked=a(this).jqmData("cells").eq(0).css("display")==="table-cell",a(this).checkboxradio("refresh")})},a.mobile.window.on("throttledresize",c.refresh),c.refresh()})}(a),function(a,b){a.mobile.table.prototype.options.mode="reflow",a.mobile.table.prototype.options.classes=a.extend(a.mobile.table.prototype.options.classes,{reflowTable:"ui-table-reflow",cellLabels:"ui-table-cell-label"}),a.mobile.document.delegate(":jqmData(role='table')","tablecreate",function(){var b=a(this),c=b.data("mobile-table"),d=c.options;if(d.mode!=="reflow")return;c.element.addClass(d.classes.reflowTable);var e=a(c.allHeaders.get().reverse());e.each(function(b){var c=a(this).jqmData("cells"),e=a(this).jqmData("colstart"),f=c.not(this).filter("thead th").length&&" ui-table-cell-label-top",g=a(this).text();if(g!=="")if(f){var h=parseInt(a(this).attr("colspan"),10),i="";h&&(i="td:nth-child("+h+"n + "+e+")"),c.filter(i).prepend("<b class='"+d.classes.cellLabels+f+"'>"+g+"</b>")}else c.prepend("<b class='"+d.classes.cellLabels+"'>"+g+"</b>")})})}(a)});
|
const {
experiment,
test,
beforeEach,
afterEach
} = exports.lab = require('@hapi/lab').script();
const { expect } = require('@hapi/code');
const sinon = require('sinon');
const sandbox = sinon.createSandbox();
const uuid = require('uuid/v4');
const twoPartTariffMatchingJob = require('../../../../src/modules/billing/jobs/two-part-tariff-matching');
const batchJob = require('../../../../src/modules/billing/jobs/lib/batch-job');
const { BATCH_TYPE, BATCH_STATUS } = require('../../../../src/lib/models/batch');
const batchService = require('../../../../src/modules/billing/services/batch-service');
const twoPartTariffService = require('../../../../src/modules/billing/services/two-part-tariff');
const billingVolumeService = require('../../../../src/modules/billing/services/billing-volumes-service');
const Batch = require('../../../../src/lib/models/batch');
const batchId = uuid();
const eventId = 'test-event-id';
experiment('modules/billing/jobs/two-part-tariff-matching', () => {
let batch, queueManager;
beforeEach(async () => {
batch = new Batch(batchId);
batch.type = BATCH_TYPE.twoPartTariff;
batch.status = BATCH_STATUS.processing;
sandbox.stub(batchJob, 'logHandling');
sandbox.stub(batchJob, 'logHandlingErrorAndSetBatchStatus');
sandbox.stub(batchJob, 'logOnCompleteError');
sandbox.stub(batchService, 'getBatchById');
sandbox.stub(batchService, 'setStatusToReview');
sandbox.stub(batchService, 'setErrorStatus');
sandbox.stub(twoPartTariffService, 'processBatch');
sandbox.stub(billingVolumeService, 'getUnapprovedVolumesForBatchCount');
queueManager = {
add: sandbox.stub()
};
});
afterEach(async () => {
sandbox.restore();
});
test('.jobName', async () => {
expect(twoPartTariffMatchingJob.jobName).to.equal('billing.two-part-tariff-matching');
});
experiment('.createMessage', () => {
let message;
beforeEach(async () => {
message = twoPartTariffMatchingJob.createMessage(batchId);
});
test('creates the expected message array', async () => {
expect(message).to.equal([
'billing.two-part-tariff-matching',
{
batchId
},
{
jobId: `billing.two-part-tariff-matching.${batchId}`
}
]);
});
});
experiment('.handler', () => {
let result;
const job = {
data: {
eventId,
batch: {
id: batchId
}
}
};
experiment('when the batch status is not "processing"', () => {
beforeEach(async () => {
batch.status = Batch.BATCH_STATUS.ready;
batchService.getBatchById.resolves(batch);
});
test('an error is logged an rethrown', async () => {
const func = () => twoPartTariffMatchingJob.handler(job);
const err = await expect(func()).to.reject();
expect(batchJob.logHandlingErrorAndSetBatchStatus.calledWith(
job,
err,
Batch.BATCH_ERROR_CODE.failedToProcessTwoPartTariff
)).to.be.true();
expect(err.message).to.equal('Expected processing batch status');
});
});
experiment('when the batch status is "processing" and there are TPT volumes to review', () => {
beforeEach(async () => {
billingVolumeService.getUnapprovedVolumesForBatchCount.resolves(5);
batch.status = Batch.BATCH_STATUS.processing;
batchService.getBatchById.resolves(batch);
result = await twoPartTariffMatchingJob.handler(job);
});
test('the two-part tariff matching is invoked', async () => {
expect(twoPartTariffService.processBatch.calledWith(batch)).to.be.true();
});
test('the batch is set to review', async () => {
expect(batchService.setStatusToReview.calledWith(batchId)).to.be.true();
});
test('a review is needed', async () => {
expect(result.isReviewNeeded).to.be.true();
});
});
experiment('when the batch status is "processing" and there are no TPT volumes to review', () => {
beforeEach(async () => {
billingVolumeService.getUnapprovedVolumesForBatchCount.resolves(0);
batch.status = Batch.BATCH_STATUS.processing;
batchService.getBatchById.resolves(batch);
result = await twoPartTariffMatchingJob.handler(job);
});
test('the two-part tariff matching is invoked', async () => {
expect(twoPartTariffService.processBatch.calledWith(batch)).to.be.true();
});
test('the batch is not set to review', async () => {
expect(batchService.setStatusToReview.called).to.be.false();
});
test('a review is not needed', async () => {
expect(result.isReviewNeeded).to.be.false();
});
});
});
experiment('.onComplete', async () => {
let job;
experiment('when review is needed', () => {
beforeEach(async () => {
job = {
data: {
batchId
},
returnvalue: {
isReviewNeeded: true
}
};
await twoPartTariffMatchingJob.onComplete(job, queueManager);
});
test('no jobs are added to the queue', async () => {
expect(queueManager.add.called).to.be.false();
});
});
experiment('when no review is needed', () => {
beforeEach(async () => {
job = {
data: {
batchId
},
returnvalue: {
isReviewNeeded: false
}
};
await twoPartTariffMatchingJob.onComplete(job, queueManager);
});
test('the process charge versions job is added to the queue', async () => {
expect(queueManager.add.calledWith(
'billing.process-charge-versions', batchId
)).to.be.true();
});
});
experiment('when there is an error', () => {
const err = new Error('oops!');
beforeEach(async () => {
job = {
data: {
batchId
},
returnvalue: {
isReviewNeeded: false
}
};
queueManager.add.rejects(err);
await twoPartTariffMatchingJob.onComplete(job, queueManager);
});
test('the error is logged', async () => {
expect(batchJob.logOnCompleteError.calledWith(
job, err
)).to.be.true();
});
});
});
});
|
var assert = require('assert');
var fakeRaf = require('fake-raf');
var snabbdom = require('../snabbdom');
fakeRaf.use();
var patch = snabbdom.init([
require('../modules/dataset').default,
]);
var h = require('../h').default;
describe('dataset', function() {
var elm, vnode0;
beforeEach(function() {
elm = document.createElement('div');
vnode0 = elm;
});
it('is set on initial element creation', function() {
elm = patch(vnode0, h('div', {dataset: {foo: 'foo'}})).elm;
assert.equal(elm.dataset.foo, 'foo');
});
it('updates dataset', function() {
var vnode1 = h('i', {dataset: {foo: 'foo', bar: 'bar'}});
var vnode2 = h('i', {dataset: {baz: 'baz'}});
elm = patch(vnode0, vnode1).elm;
assert.equal(elm.dataset.foo, 'foo');
assert.equal(elm.dataset.bar, 'bar');
elm = patch(vnode1, vnode2).elm;
assert.equal(elm.dataset.baz, 'baz');
assert.equal(elm.dataset.foo, undefined);
});
it('can be memoized', function() {
var cachedDataset = {foo: 'foo', bar: 'bar'};
var vnode1 = h('i', {dataset: cachedDataset});
var vnode2 = h('i', {dataset: cachedDataset});
elm = patch(vnode0, vnode1).elm;
assert.equal(elm.dataset.foo, 'foo');
assert.equal(elm.dataset.bar, 'bar');
elm = patch(vnode1, vnode2).elm;
assert.equal(elm.dataset.foo, 'foo');
assert.equal(elm.dataset.bar, 'bar');
});
it('handles string conversions', function() {
var vnode1 = h('i', {dataset: {empty: '', dash: '-', dashed:'foo-bar', camel: 'fooBar', integer:0, float:0.1}});
elm = patch(vnode0, vnode1).elm;
assert.equal(elm.dataset.empty, '');
assert.equal(elm.dataset.dash, '-');
assert.equal(elm.dataset.dashed, 'foo-bar');
assert.equal(elm.dataset.camel, 'fooBar');
assert.equal(elm.dataset.integer, '0');
assert.equal(elm.dataset.float, '0.1');
});
});
fakeRaf.restore();
|
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2018 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides class sap.ui.core.service.ServiceFactory
sap.ui.define(['jquery.sap.global', 'sap/ui/base/Object', 'sap/ui/core/service/Service'],
function(jQuery, BaseObject, Service) {
"use strict";
/**
* Creates a service factory.
* @param {function|object} [vService] A constructor function of a service or
* a structured object with information about the service which
* creates an anonymous service.
*
* @class
* A service factory is used to create service instances for a specific context.
* The service factory needs to be registered in a central
* {@link sap.ui.core.service.ServiceFactoryRegistry service factory registry}.
* Consumers of services require the service factory to create service instances.
*
* The service factory base class can be used in a generic way to act as a
* factory for any service:
* <pre>
* sap.ui.require([
* "sap/ui/core/service/ServiceFactoryRegistry",
* "sap/ui/core/service/ServiceFactory",
* "my/Service"
* ], function(ServiceFactoryRegistry, ServiceFactory, MyService) {
*
* ServiceFactoryRegistry.register(new ServiceFactory(MService));
*
* });
* </pre>
*
* Additionally a concrete service factory can be implemented by extending the
* service factory base class if additional functionality is needed when
* creating new instances for a specific context:
* <pre>
* sap.ui.define("my/ServiceFactory", [
* "sap/ui/core/service/ServiceFactoryRegistry",
* "sap/ui/core/service/ServiceFactory",
* "my/Service"
* ], function(ServiceFactoryRegistry, ServiceFactory, MyService) {
*
* return ServiceFactory.extend("my.ServiceFactory", {
* createInstance: function(oServiceContext) {
* return Promise.resolve(new MyService(oServiceContext));
* }
* });
*
* });
* </pre>
*
* Another option for the usage of the service factory is to provide a
* structured object with information about the service which will
* create an anonymous service internally:
* <pre>
* sap.ui.define("my/ServiceFactory", [
* "sap/ui/core/service/ServiceFactoryRegistry",
* "sap/ui/core/service/ServiceFactory",
* "my/Service"
* ], function(ServiceFactoryRegistry, ServiceFactory, MyService) {
*
* return new ServiceFactory({
*
* init: function() { ... },
* exit: function() { ... },
*
* doSomething: function() { ... }
*
* });
*
* });
* </pre>
*
* As <code>createInstance</code> returns a <code>Promise</code> e.g. the
* service module can also be loaded asynchronously and resolve once the
* module has been loaded and instantiated.
*
* @extends sap.ui.base.Object
* @author SAP SE
* @version 1.54.6
* @alias sap.ui.core.service.ServiceFactory
* @private
* @sap-restricted sap.ushell
* @since 1.37.0
*/
var ServiceFactory = BaseObject.extend("sap.ui.core.service.ServiceFactory", /** @lends sap.ui.service.ServiceFactory.prototype */ {
metadata: {
"library" : "sap.ui.core" // UI Library that contains this class
},
constructor : function(vService) {
BaseObject.apply(this);
var fnService = typeof vService === "object" ? Service.create(vService) : vService;
jQuery.sap.assert(!fnService || fnService && typeof fnService === "function", "The service constructor either should be undefined or a constructor function!");
this._fnService = fnService;
}
});
/**
* Lifecycle method to destroy the service factory instance.
*
* @protected
*/
ServiceFactory.prototype.destroy = function() {
BaseObject.prototype.destroy.apply(this, arguments);
delete this._fnService;
};
/**
* Creates a new instance of a service. When used as a generic service factory
* by providing a service constructor function it will create a new service
* instance otherwise the function will fail. For custom service factories
* this function has to be overridden and should return a <code>Promise</code>.
*
* @param {object} oServiceContext Context for which the service is created
* @param {object} oServiceContext.scopeObject Object that is in scope (e.g. component instance)
* @param {string} oServiceContext.scopeType Type of object that is in scope (e.g. component, ...)
* @param {string} oServiceContext.settings The service settings
* @return {Promise} Promise which resolves with the new Service instance.
* @protected
*/
ServiceFactory.prototype.createInstance = function(oServiceContext) {
if (typeof this._fnService === "function") {
return Promise.resolve(new this._fnService(oServiceContext));
} else {
return Promise.reject(new Error("Usage of sap.ui.core.service.ServiceFactory requires a service constructor function to create a new service instance or to override the createInstance function!"));
}
};
return ServiceFactory;
});
|
const Discord = require("discord.js")
module.exports.run = async (bot, message, args) => {
message.delete();
return message.channel.send(`:ping_pong: Pong! Latency is: **${new Date().getTime() - message.createdTimestamp}ms**`).then(msg => msg.delete(5000));
}
module.exports.help = {
name: "ping"
}
|
/**
* node-crc32-stream
*
* Copyright (c) 2014 Chris Talkington, contributors.
* Licensed under the MIT license.
* https://github.com/archiverjs/node-crc32-stream/blob/master/LICENSE-MIT
*/
'use strict';
const {Transform} = require('readable-stream');
const crc32 = require('crc-32');
class CRC32Stream extends Transform {
constructor(options) {
super(options);
this.checksum = Buffer.allocUnsafe(4);
this.checksum.writeInt32BE(0, 0);
this.rawSize = 0;
}
_transform(chunk, encoding, callback) {
if (chunk) {
this.checksum = crc32.buf(chunk, this.checksum) >>> 0;
this.rawSize += chunk.length;
}
callback(null, chunk);
}
digest(encoding) {
const checksum = Buffer.allocUnsafe(4);
checksum.writeUInt32BE(this.checksum >>> 0, 0);
return encoding ? checksum.toString(encoding) : checksum;
}
hex() {
return this.digest('hex').toUpperCase();
}
size() {
return this.rawSize;
}
}
module.exports = CRC32Stream;
|
// @flow
import React, { Component, Element } from 'react';
import Helmet from 'react-helmet';
import { prefixLink } from 'gatsby-helpers';
const BUILD_TIME = new Date().getTime();
// $FlowFixMe
const rawCss = require('!raw!./public/styles.css');
type Props = {
body: string
};
export default class Html extends Component<void, Props, void> {
render(): Element<any> {
const head = Helmet.rewind();
const { body } = this.props;
let css;
if (process.env.NODE_ENV === 'production') {
css = (
<style
dangerouslySetInnerHTML={{
__html: rawCss
}}
/>
);
}
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
{head.title.toComponent()}
{head.meta.toComponent()}
{css}
</head>
<body>
<div id="react-mount" dangerouslySetInnerHTML={{ __html: body }} />
<script src={prefixLink(`/bundle.js?t=${BUILD_TIME}`)} />
</body>
</html>
);
}
}
|
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),i=s[0],v0=!s[1];if(ord)return"other";return n==1&&v0?"one":i>=2&&i<=4&&v0?"few":!v0?"many":"other"}},messages:{"% of parent":"% z rodi\u010Dovsk\xE9ho prvku","% of total":"% z celku","(Events)":"(Ud\xE1losti)","(Extension)":"(Roz\u0161\xED\u0159en\xED)","(already installed)":"(ji\u017E nainstalov\xE1no)","(auto)":"(automaticky)","(on the desktop app only)":"(pouze na desktopu)","(or paste actions)":"(nebo vlo\u017Eit akce)","(or paste conditions)":"(nebo vlo\u017Eit podm\xEDnky)","* (multiply by)":"* (vyn\xE1sobit \u010D\xEDslem)","+ (add)":"+ (p\u0159i\u010D\xEDst)",", objects /*{parameterObjects}*/":function(a){return[", objects /*",a("parameterObjects"),"*/"]},"- (subtract)":"- (ode\u010D\xEDst)","/ (divide by)":"/ (vyd\u011Blit \u010D\xEDslem)","/* Click here to choose objects to pass to JavaScript */":"/* Click here to choose objects to pass to JavaScript */","1st secondary editor":"1. sekund\xE1rn\xED editor","2nd secondary editor":"2. sekund\xE1rn\xED editor","3rd secondary editor":"3. sekund\xE1rn\xED editor","8-bit Space Shooter":"8-bitov\xE1 vesm\xEDrn\xE1 st\u0159\xEDle\u010Dka","< (less than)":"< (m\xE9n\u011B ne\u017E)","<0>For every child in<1><2/>{0}</1>, store the child in variable<3><4/>{1}</3>, the child name in<5><6/>{2}</5>and do:</0>":function(a){return["<0>For every child in<1><2/>",a("0"),"</1>, store the child in variable<3><4/>",a("1"),"</3>, the child name in<5><6/>",a("2"),"</5>and do:</0>"]},"<Create a New Extension>":"<Vytvo\u0159it nov\xE9 roz\u0161\xED\u0159en\xED>","<Enter comment>":"<Vlo\u017Ete koment\xE1\u0159>","<Enter group name>":"<Zadejte jm\xE9no skupiny>","<Enter the name of external events>":"<Enter the name of external events>","<Select a variable>":"<Select a variable>","<Select a variable> (optional)":"<Select a variable> (optional)","= (equal to)":"= (rovn\xE1 se)","= (set to)":"= (nastavit na)","> (greater than)":"> (v\xEDce ne\u017E)","A beautiful, retro side-scrolling shooter where you must defeat incoming enemies with your mecha transforming spaceship. Huge boss included!":"Kr\xE1sn\xFD, retro side-scrolling shooter kde se mus\xED\u0161 br\xE1nit p\u0159ed p\u0159\xEDchoz\xEDmi protivn\xEDky, kte\u0159\xED transformuj\xED tvoj\xED lo\u010F. Zahrnuje obrovsk\xE9 boty!","A condition that can be used in other events sheet. You can define the conditions parameters: objects, texts, numbers, layers, etc...":"Podm\xEDnka, kter\xE1 m\u016F\u017Ee b\xFDt pou\u017Eita v jin\xE9m listu ud\xE1lost\xED. M\u016F\u017Eete definovat parametry podm\xEDnek: objekty, texty, \u010D\xEDsla, vrstvy, atd...","A demo of various high quality particle effects (fire, magic, snow, rune spell...) that you can try and use in your game.":"A demo of various high quality particle effects (fire, magic, snow, rune spell...) that you can try and use in your game.","A demo showing how to enhance the \"game feel\" of your project: VFX, shot trail, ambient sounds and SFX, screenshake, wobble...":"A demo showing how to enhance the \"game feel\" of your project: VFX, shot trail, ambient sounds and SFX, screenshake, wobble...","A hyper casual endless game where you have to collect shapes and avoid bombs, with a progressively increasing difficulty.":"Hyper z\xE1bavn\xE1 hra, kde mus\xEDte sb\xEDrat tvary a vyh\xFDbat se bomb\xE1m, s postupn\u011B rostouc\xED obt\xED\u017Enost\xED.","A lighting layer was created. Lights will be placed on it automatically. You can change the ambient light color in the properties of this layer":"A lighting layer was created. Lights will be placed on it automatically. You can change the ambient light color in the properties of this layer","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.":"Nov\xFD fyzik\xE1ln\xED model (Physics Engine 2.0) je nyn\xED dostupn\xFD. M\u011Bl by jsi jej pou\u017E\xEDt v nov\xE9 h\u0159e. V p\u0159\xEDpad\u011B ji\u017E existuj\xEDc\xEDch her ber v \xFAvahu, \u017Ee tyto dva modely nejsou spolu kompatibiln\xED, ve h\u0159e bys m\u011Bl pou\u017E\xEDt pouze jeden z nich.","A simple platform game, with coins to collect, moving platforms and enemies.":"Jednoduch\xE1 sk\xE1ka\u010Dka, ve kter\xE9 sb\xEDr\xE1te mince mezi pohybuj\xEDc\xEDmi se plo\u0161inami a protivn\xEDky.","A temporary image to help you visualize the shape/polygon":"Do\u010Dasn\xFD obr\xE1zek, kter\xFD v\xE1m pom\u016F\u017Ee si p\u0159edstavit tvar/polygon","Abandon":"Abandon","About GDevelop":"O GDevelop","Action":"Akce","Actions":"Akce","Add":"P\u0159idat","Add New Event Below":"P\u0159idat novou podud\xE1lost","Add Other":"P\u0159idat dal\u0161\xED","Add Sub Event":"P\u0159idat podud\xE1lost","Add a Long Description":"P\u0159idat dlouh\xFD popis","Add a behavior to the object":"P\u0159idat nov\xE9 chov\xE1n\xED objektu","Add a comment":"P\u0159idat koment\xE1\u0159","Add a layer":"P\u0159idat vrstvu","Add a new behavior":"P\u0159idej chov\xE1n\xED","Add a new behavior to the object":"P\u0159idat nov\xE9 chov\xE1n\xED objektu","Add a new empty event":"P\u0159idat novou pr\xE1zdnou ud\xE1lost","Add a new event":"P\u0159idat novou ud\xE1lost","Add a new function":"P\u0159idat novou funkci","Add a new object":"P\u0159idat nov\xFD objekt","Add a new object...":"P\u0159idat nov\xFD objekt...","Add a new option":"Add a new option","Add a parameter":"P\u0159idat parametr","Add a property":"P\u0159idat vlastnost","Add a sub-condition":"P\u0159idat pod\u0159\xEDzenou podm\xEDnku","Add a sub-event to the selected event":"P\u0159idat podud\xE1lost k vybran\xE9 ud\xE1losti","Add action":"P\u0159idat akci","Add an Instance of {0}":function(a){return["P\u0159idat ",a("0")]},"Add an animation":"P\u0159idat animaci","Add an effect":"P\u0159idat efekt","Add an object from the store":"Add an object from the store","Add child variable":"P\u0159idat pod\u0159\xEDzenou prom\u011Bnnou","Add condition":"P\u0159idat podm\xEDnku","Add lighting layer":"Add lighting layer","Add to the game":"Add to the game","Add your first event using the button \"Add a new event\".":"Add your first event using the button \"Add a new event\".","Add...":"P\u0159idat...","Add/update {0} tag(s)":function(a){return["P\u0159idat/aktualizovat ",a("0")," tag(y)"]},"Additive rendering":"P\u0159idan\xE9 vykreslen\xED","Advanced":"Pokro\u010Dil\xE9","Advanced preview options (debugger, network preview...)":"Roz\u0161\xED\u0159en\xFD n\xE1hled (lad\u011Bn\xED, s\xED\u0165ov\xFD n\xE1hled...)","All assets":"All assets","All behaviors being directly referenced in the events:":"Ve\u0161ker\xE9 chov\xE1n\xED bude p\u0159\xEDmo napojen\xE9 na ud\xE1losti:","All objects potentially used in events: {0}":function(a){return["V\u0161echny objekty potencion\xE1ln\u011B pou\u017Eity v ud\xE1lostech: ",a("0")]},"All your builds":"V\u0161echny tvoje buildy","Already have an account?":"M\xE1te ji\u017E sv\u016Fj \xFA\u010Det?","Ambient light color":"Ambient light color","An account allows you to access GDevelop services online.":"\xDA\u010Det ti umo\u017E\u0148uje p\u0159\xEDstup k GDevelop slu\u017Eb\xE1m online.","An action that can be used in other events sheet. You can define the action parameters: objects, texts, numbers, layers, etc...":"Akce, kter\xE1 m\u016F\u017Ee b\xFDt pou\u017Eita v jin\xE9m listu ud\xE1lost\xED. M\u016F\u017Eete definovat parametry akce: objekty, texty, \u010D\xEDsla, vrstvy, atd...","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.":"Akce, podm\xEDnka nebo v\xFDraz, kter\xFD m\u016F\u017Ee b\xFDt pou\u017Eit na objektech, kter\xE9 k nim maj\xED p\u0159ipojen\xE9 chov\xE1n\xED. Pou\u017E\xEDvejte ji z listu ud\xE1lost\xED jako jakoukoli jinou \u010Dinnost/podm\xEDnku/v\xFDraz.","An autosave file (backup made automatically by GDevelop) that is newer than the project file exists. Would you like to load it instead?":"Automaticky ulo\u017Een\xFD soubor (z\xE1loha automaticky vytvo\u0159en\xE1 z GDevelop), kter\xFD je nov\u011Bj\u0161\xED ne\u017E soubor projektu. Chcete jej m\xEDsto toho na\u010D\xEDst?","An error happened while loading this extension. Please check that it is a proper extension file and compatible with this version of GDevelop":"P\u0159i na\u010D\xEDt\xE1n\xED tohoto roz\u0161\xED\u0159en\xED do\u0161lo k chyb\u011B. Zkontrolujte, zda je to spr\xE1vn\xFD soubor roz\u0161\xED\u0159en\xED a je kompatibiln\xED s touto verz\xED GDevelop","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.":"B\u011Bhem generov\xE1n\xED funkc\xED do\u0161lo k chyb\u011B. Pokud je GDevelop nainstalov\xE1n, ov\u011B\u0159te, \u017Ee GDevelop m\xE1 pr\xE1vo z\xE1pisu na disk. Pokud pou\u017E\xEDv\xE1te GDevelop online, ov\u011B\u0159te sv\xE9 p\u0159ipojen\xED k internetu a obnovte funkce ze Spr\xE1vce projektu.","An example of a 2D physics based game, where players have to reach the end as fast as possible.":"P\u0159\xEDklad 2D fyzik\xE1ln\xED hry, kde mus\xED hr\xE1\u010Di dos\xE1hnout konce co nejrychleji.","An example of an isometric game where you can explore a map with your character.":"Uk\xE1zka izometrick\xE9 hry ve kter\xE9 objevujete mapu se svoj\xED postavou.","An expression that can be used in formulas. Can either return a number or a string, and take some parameters.":"V\xFDraz, kter\xFD lze pou\u017E\xEDt ve vzorc\xEDch. M\u016F\u017Ee bu\u010F vr\xE1tit \u010D\xEDslo, nebo \u0159et\u011Bzec a p\u0159evz\xEDt n\u011Bjak\xE9 parametry.","An extension with this name already exists in the project. Importing this extension will replace it: are you sure you want to continue?":"Roz\u0161\xED\u0159en\xED s t\xEDmto n\xE1zvem ji\u017E v projektu existuje. Importov\xE1n\xED tohoto roz\u0161\xED\u0159en\xED jej nahrad\xED: Jste si jisti, \u017Ee chcete pokra\u010Dovat?","Analytics":"Analytics","Analyze Objects Used in this Event":"Analyze Objects Used in this Event","Android (& iOS coming soon)":"Android (iOS ji\u017E brzy)","Android Build":"Android sestaven\xED","Android icons:":"Android ikony:","Angle":"\xDAhel","Animation":"Animace","Animation #{i} {0}":function(a){return["Animace #",a("i")," ",a("0")]},"Another extension with this name already exists (or you used a reserved extension name). Please choose another name.":"Another extension with this name already exists (or you used a reserved extension name). Please choose another name.","Another external layout with this name already exists.":"\u0160ablona s t\xEDmto jm\xE9nem ji\u017E existuje.","Another scene with this name already exists.":"Sc\xE9na s t\xEDmto jm\xE9nem u\u017E existuje.","Any additional properties will appear here if you add behaviors to objects, like Physics behavior.":"Ve\u0161ker\xE9 dal\u0161\xED vlastnosti se objev\xED zde, pokud p\u0159id\xE1te chov\xE1n\xED objekt\u016Fm, nap\u0159\xEDklad fyzick\xE9 chov\xE1n\xED.","Any object":"Libovoln\xFD objekt","Any unsaved changes in the project will be lost.":"Ve\u0161ker\xE9 neulo\u017Een\xE9 zm\u011Bny v projektu budou ztraceny.","Appearance":"Vzhled","Apply":"Aplikovat","Apply changes to preview":"Apply changes to preview","Apply changes to the running preview":"Apply changes to the running preview","Apply changes to the running preview, right click for more":"Apply changes to the running preview, right click for more","Are you sure you want to cancel your subscription?":"Opravdu chcete zru\u0161it sv\xE9 p\u0159edplatn\xE9?","Are you sure you want to quit GDevelop?":"Jste si jisti, \u017Ee chcete ukon\u010Dit GDevelop?","Are you sure you want to remove these external events? This can't be undone.":"Jsi si jist, \u017Ee chce\u0161 odebrat tyto vn\u011Bj\u0161\xED polo\u017Eky? Tento krok nelze vr\xE1tit zp\u011Bt!","Are you sure you want to remove this extension? This can't be undone.":"Jsi si jist, \u017Ee chce\u0161 odebrat toto roz\u0161\xED\u0159en\xED? Tento krok nelze vr\xE1tit zp\u011Bt!","Are you sure you want to remove this external layout? This can't be undone.":"Jsi si jist, \u017Ee chce\u0161 odstranit tento extern\xED \u0161ablonu? Tento krok nelze vr\xE1tit zp\u011Bt!","Are you sure you want to remove this scene? This can't be undone.":"Jsi si jist, \u017Ee chce\u0161 odebrat tuto sc\xE9nu? Tento krok nelze vr\xE1tit zp\u011Bt!","Are you sure you want to reset all shortcuts to their default values?":"Opravdu chcete nastavit v\u0161echny zkratky na p\u016Fvodn\xED hodnoty?","Are you sure you want to subscribe to this new plan?":"Jste si jisti, \u017Ee se chcete p\u0159ihl\xE1sit k odb\u011Bru tohoto nov\xE9ho pl\xE1nu?","Audio files":"Zvukov\xE9 soubory","Audio resource":"Zdroj zvuku","Author (Name, email or GitHub handle)":"Autor (Jm\xE9no, e-mail nebo GitHub)","Author name":"Jm\xE9no autora","Auto download and install updates (recommended)":"Automaticky st\xE1hnout a instalovat aktualizace (doporu\u010Den\xE9)","Auto-save project on Preview":"Prohl\xED\u017E\xEDte automaticky ukl\xE1dan\xFD projekt","Automatic creation of lighting layer":"Automatic creation of lighting layer","Automatically follow the base layer.":"Automatically follow the base layer.","Automatically re-open the project edited during last session":"Automatically re-open the project edited during last session","Back":"Zp\u011Bt","Background color":"Barva pozad\xED","Background color:":"Barva pozad\xED:","Base layer":"Z\xE1kladn\xED vrstva","Be careful with this action, you may have problems exiting the preview if you don't add a way to toggle it back.":"Be careful with this action, you may have problems exiting the preview if you don't add a way to toggle it back.","Behavior":"Chov\xE1n\xED","Behavior (for the previous object)":"Chov\xE1n\xED (p\u0159edchoz\xEDho objektu)","Behavior functions":"Funkce chov\xE1n\xED","Behavior name":"N\xE1zev chov\xE1n\xED","Behavior type":"Typ chov\xE1n\xED","Behaviors":"Chov\xE1n\xED","Behaviors of {objectOrGroupName}: {0} ;":function(a){return["Vlastnosti ",a("objectOrGroupName"),": ",a("0")," ;"]},"Bold":"Tu\u010Dn\u011B","Boolean (checkbox)":"Boolean (za\u0161krt\xE1vac\xED pol\xED\u010Dko)","Bottom margin":"Doln\xED okraj","Box":"Box","Breakout Tutorial":"P\u0159esko\u010Dit tutori\xE1l","Browse ready made objects in the Asset Store":"Browse ready made objects in the Asset Store","Build and download":"Sestavit a st\xE1hnout","Build could not start or errored. Please check your internet connection or try again later.":"Chyba sestaven\xED nebo internetov\xE9ho p\u0159ipojen\xED. Zkontrolujte pros\xEDm va\u0161e internetov\xE9 p\u0159ipojen\xED nebo akci opakujte pozd\u011Bji.","Build is starting...":"Buildov\xE1n\xED za\u010D\xEDn\xE1...","Build the game locally and export it manually to Windows, macOS or Linux with third-party developer tools.":"Vytvo\u0159it hru lok\xE1ln\u011B a exportovat ji ru\u010Dn\u011B do Windows, macOS nebo Linux pomoc\xED n\xE1stroj\u016F t\u0159et\xEDch stran.","Build the game locally as a Cordova project, and export it manually then to iOS or Android with Cordova developers tools.":"Vytvo\u0159 hru lok\xE1ln\u011B jako Cordova projekt a exportovat ji ru\u010Dn\u011B do iOS nebo Android pomoc\xED Cordovy.","Build the game locally as a Cordova project, and export it manually to iOS or Android with Cordova developers tools.":"Vytvo\u0159 hru lok\xE1ln\u011B jako Cordova projekt a exportovat ji ru\u010Dn\u011B do iOS nebo Android pomoc\xED Cordovy.","Build the game locally as a HTML5 game. You can then publish it on website like Kongregate, Game Jolt, itch.io, Poki...":"Vytvo\u0159it hru lok\xE1ln\u011B jako HTML5 projekt. M\u016F\u017Eete ji publikovat na webov\xFDch str\xE1nk\xE1ch, jako je Kongregate, Game Jolt, itch.io, Poki...","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!":"Vytvo\u0159en\xEDm \xFA\u010Dtu a pou\u017E\xEDv\xE1n\xEDm GDevelopu souhlas\xEDte s obchodn\xEDmi podm\xEDnkami. S u\u017Eivatelsk\xFDm \xFA\u010Dtem m\u016F\u017Eete exportovat va\u0161i hru na Android, jako desktopovou aplikaci a odemknout dal\u0161\xED slu\u017Eby pro v\xE1\u0161 projekt!","By:":"By:","Can't check if the game is registered online.":"Can't check if the game is registered online.","Can't load the extension registry. Verify your internet connection or try again later.":"Nelze na\u010D\xEDst registr roz\u0161\xED\u0159en\xED. Ov\u011B\u0159te p\u0159ipojen\xED k Internetu nebo opakujte akci pozd\u011Bji.","Can't load the games. Verify your internet connection or retry later.":"Can't load the games. Verify your internet connection or retry later.","Can't load the results. Verify your internet connection or retry later.":"Can't load the results. Verify your internet connection or retry later.","Can't properly export the game.":"Nelze spr\xE1vn\u011B exportovat hru.","Can't upload your game to the build service.":"Hru nelze nahr\xE1t do slu\u017Eby stav\u011Bn\xED.","Cancel":"Zru\u0161it","Cancel and close":"Zru\u0161it a zav\u0159\xEDt","Cancel your subscription":"Ukon\u010Dit p\u0159edplatn\xE9","Case insensitive":"Velk\xE1 a mal\xE1 p\xEDsmena se nerozli\u0161uj\xED","Cell height (in pixels)":"V\xFD\u0161ka bu\u0148ky (v pixelech)","Cell width (in pixels)":"\u0160\xED\u0159ka bu\u0148ky (v pixelech)","Center":"St\u0159ed","Center View":"Center View","Change editor zoom":"Zm\u011Bnit p\u0159ibl\xED\u017Een\xED editoru","Change height to fit the screen or window size":"Zm\u011Bnit v\xFD\u0161ku tak, aby se to ve\u0161lo na obrazovku nebo do okna","Change the content of {propertyLabel}":function(a){return["Zm\u011Bnit obsah ",a("propertyLabel")]},"Change the value of {propertyLabel}":function(a){return["Zm\u011Bnit hodnotu ",a("propertyLabel")]},"Change width to fit the screen or window size":"Zm\u011Bnit \u0161\xED\u0159ku tak, aby se to ve\u0161lo na obrazovku nebo do okna","Check that the file exists, that this file is a proper game created with GDevelop and that you have the authorizations to open it.":"Zkontrolujte, zda soubor existuje, zda soubor obsahuje hru vytvo\u0159enou v GDevelop a zda m\xE1te opr\xE1vn\u011Bn\xED k jeho otev\u0159en\xED.","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.":"Zkontrolujte, zda je cesta/URL spr\xE1vn\xE1, zda jste vybrali soubor, kter\xFD je vytvo\u0159en\xFD v GDevelop a kter\xFD nebyl odstran\u011Bn.","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.":"Zkontrolujte, \u017Ee nem\xE1te \u017E\xE1dn\xE9 blokovan\xE9 vyskakovac\xED okno (pokud ano, povolte je a zkuste to znovu) a m\xE1te opr\xE1vn\u011Bn\xED ke \u010Dten\xED souboru, ke kter\xE9mu se sna\u017E\xEDte p\u0159istupovat.","Check the logs to see if there is an explanation about what went wrong, or try again later.":"Zkontrolujte logy a zjist\u011Bte, zda existuje vysv\u011Btlen\xED toho, co se pokazilo, nebo opakujte akci pozd\u011Bji.","Check the value of {propertyLabel}":function(a){return["Zkontrolujte hodnotu ",a("propertyLabel")]},"Choose":"Vybrat","Choose GDevelop language":"Vybrat jazyk","Choose a Json File from the library":"Vyberte Json soubor z knihovny","Choose a category to display filters":"Choose a category to display filters","Choose a condition (or an object then a condition) on the left":"Choose a condition (or an object then a condition) on the left","Choose a file":"Vyberte soubor","Choose a file or folder":"Vyberte soubor nebo slo\u017Eku","Choose a folder for the new game":"Vyberte slo\u017Eku pro novou hru","Choose a font":"Vybrat font","Choose a font file":"Vyberte soubor p\xEDsma","Choose a font from the library":"Vyberte si font z knihovny","Choose a function, or a function of a behavior, to edit its events.":"Vyberte funkci nebo funkci chov\xE1n\xED a upravte jej\xED ud\xE1losti.","Choose a function, or a function of a behavior, to set the parameters that it accepts.":"Vyberte funkci nebo funkci chov\xE1n\xED a nastavte parametry, kter\xE9 p\u0159ij\xEDm\xE1.","Choose a game to use as a starter:":"Vyberte hru, kterou chcete pou\u017E\xEDt jako z\xE1klad:","Choose a json file":"Vyberte soubor Json","Choose a key":"Zvolte kl\xED\u010D","Choose a mouse button":"Zvolte tla\u010D\xEDtko my\u0161i","Choose a new behavior function (\"method\")":"Vyberte novou funkci chov\xE1n\xED (\"metoda\u201C)","Choose a new extension function":"Vyberte novou funkci roz\u0161\xED\u0159en\xED","Choose a subscription":"Vybrat p\u0159edplatn\xE9","Choose a video file":"Vyberte video soubor","Choose a video from the library":"Vybrat video z knihovny","Choose an action (or an object then an action) on the left":"Choose an action (or an object then an action) on the left","Choose an animation and frame to edit the collision masks":"Vyberte animaci a jej\xED sn\xEDmek pro \xFApravu masek koliz\xED","Choose an animation and frame to edit the points":"Vyberte animaci a sn\xEDmek pro \xFApravu bod\u016F","Choose an audio file":"Vyberte zvukov\xFD soubor","Choose an audio file from the library":"Vybrat audio soubor z knihovny","Choose an element to inspect in the list":"Vyberte prvek, kter\xFD chcete zkontrolovat v seznamu","Choose an export folder":"Vyberte slo\u017Eku pro export","Choose an icon for the extension":"Choose an icon for the extension","Choose an image":"Vyberte obr\xE1zek","Choose an image from the library":"Vybrat obr\xE1zek z knihovny","Choose an object":"Vybrat objekt","Choose an object to add to the group":"Vybrat objekt, kter\xFD bude p\u0159id\xE1n do skupiny","Choose an operator":"Zvolte oper\xE1tor","Choose an option":"Zvolte mo\u017Enost","Choose and add an event":"Vyberte a p\u0159idejte ud\xE1lost","Choose and add an event...":"Choose and add an event...","Choose folder":"Vybrat slo\u017Eku","Choose or search for an example to open:":"Vyberte, nebo vyhledejte, p\u0159\xEDklad pro otev\u0159en\xED:","Choose the associated scene":"Vybrat p\u0159idru\u017Eenou sc\xE9nu","Choose the audio file to use":"Vyberte videosoubor, kter\xFD chcete pou\u017E\xEDt","Choose the effect to apply":"Vyberte efekt, kter\xFD chcete pou\u017E\xEDt","Choose the json file to use":"Vyberte soubor JSON, kter\xFD chcete pou\u017E\xEDt","Choose the scene":"Vybrat sc\xE9nu","Choose the video file to use":"Vyberte si videosoubor, kter\xFD chcete pou\u017E\xEDt","Choose this plan":"Vybrat tento pl\xE1n","Choose where to create the game":"Vyberte si, kde vytvo\u0159it hru","Choose where to export the game":"Vyberte, kam chcete exportovat hru","Choose where to load the project from":"Vyberte, odkud se m\xE1 projekt na\u010D\xEDst","Choose where to save the project to":"Vyberte, kam chcete projekt ulo\u017Eit","Choose...":"Vyberte...","Circle":"Kruh","Clear the rendered image between each frame":"Clear the rendered image between each frame","Click here to test the link.":"Click here to test the link.","Click on an instance in the scene to display its properties":"Kliknut\xEDm na instanci ve sc\xE9n\u011B zobraz\xEDte jej\xED vlastnosti","Click to add a group":"P\u0159idejte skupinu","Click to add a scene":"Klikn\u011Bte pro p\u0159id\xE1n\xED sc\xE9ny","Click to add an external layout":"Klikn\u011Bte na p\u0159id\xE1n\xED extern\xEDho rozlo\u017Een\xED","Click to add external events":"Klikn\u011Bte na p\u0159id\xE1n\xED extern\xEDch ud\xE1lost\xED","Click to add functions and behaviors":"Kliknut\xEDm p\u0159id\xE1te funkce a chov\xE1n\xED","Click to choose":"Klikn\u011Bte pro v\xFDb\u011Br","Click to choose for which objects this event will be repeated":"Click to choose for which objects this event will be repeated","Click to choose how many times will be repeated":"Click to choose how many times will be repeated","Close":"Zav\u0159\xEDt","Close GDevelop":"Zav\u0159\xEDt GDevelop","Close Project":"Zav\u0159\xEDt projekt","Close all":"Zav\u0159\xEDt v\u0161e","Close and launch a new preview":"Zav\u0159\xEDt a otev\u0159\xEDt nov\xFD n\xE1hled","Close others":"Close others","Close project":"Zav\u0159\xEDt projekt","Close the project? Any changes that have not been saved will be lost.":"Zav\u0159\xEDt projekt? Jak\xE9koli zm\u011Bny, kter\xE9 nebyly ulo\u017Eeny, budou ztraceny.","Cocos2d-JS":"Cocos2d-JS","Code editor Theme":"T\xE9ma vzhledu editoru","Collisions handling with the Physics engine":"Zpracov\xE1n\xED koliz\xED fyzik\xE1ln\xEDm enginem","Color":"Barva","Color (text)":"Barva (text)","Color:":"Barva:","Command palette keyboard shortcut":"Command palette keyboard shortcut","Community Discord Chat":"Komunitn\xED discord chat","Community Forums":"Komunitn\xED f\xF3ra","Community Tutorials":"Komunitn\xED n\xE1vody","Community forum":"Komunitn\xED f\xF3rum","Compare the content of {propertyLabel}":function(a){return["Porovnat obsah ",a("propertyLabel")]},"Compare the value of {propertyLabel}":function(a){return["Porovnat hodnotu ",a("propertyLabel")]},"Compressing before upload...":"Komprimace p\u0159ed uploadem...","Condition":"Podm\xEDnka","Conditions":"Podm\xEDnky","Configuration":"Konfigurace","Confirm the opening":"Potvrdit otev\u0159en\xED","Congratulations, your new subscription is now active! nYou can now use the services unlocked with this plan.":"Gratulujeme, va\u0161e nov\xE9 p\u0159edplatn\xE9 je nyn\xED aktivn\xED! nNyn\xED m\u016F\u017Eete vyu\u017E\xEDvat slu\u017Eby odem\u010Den\xE9 t\xEDmto p\u0159edplatn\xFDm.","Continue anyway":"P\u0159esto pokra\u010Dovat","Contribute to GDevelop":"P\u0159isp\u011Bt k v\xFDvoji","Contributors":"P\u0159isp\xEDvaj\xEDc\xED","Contributors, in no particular order:":"P\u0159\xEDsp\u011Bvky, v \u017E\xE1dn\xE9m konkr\xE9tn\xEDm po\u0159ad\xED:","Copy":"Zkop\xEDrovat","Copy File Path":"Copy File Path","Could not launch the preview":"N\xE1hled nelze spustit","Create":"Vytvo\u0159it","Create Extensions for GDevelop":"Vytvo\u0159it dopl\u0148ky pro GDevelop","Create a 2D platform game where the player can shoot at enemies chasing him.":"Create a 2D platform game where the player can shoot at enemies chasing him.","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:":"Vytvo\u0159te GDevelop \xFA\u010Det, kter\xFD bude pokra\u010Dovat, je zdarma a budete m\xEDt mo\u017Enost p\u0159\xEDstupu k online slu\u017Eb\xE1m, jako je jeden-klikn\u011Bte pro build pro Android:","Create a New Project...":"Vytvo\u0159it nov\xFD projekt...","Create a new GDevelop account":"Vytvo\u0159it nov\xFD GDevelop \xFA\u010Det","Create a new game":"Vytvo\u0159it novou hru","Create a new instance on the scene (will be at position 0;0):":"Vytvo\u0159te nov\xFD p\u0159\xEDpad na sc\xE9n\u011B (bude v pozici 0;0):","Create a new project":"Vytvo\u0159it nov\xFD projekt","Create a simple breakout game where you must destroy all the bricks on the screen.":"Vytvo\u0159 jednoduchou hru, kde mus\xED\u0161 zni\u010Dit v\u0161echny cihly na obrazovce.","Create a simple game where you must dodge the cars on the road.":"Vytvo\u0159te jednoduchou hru, kde se mus\xEDte vyh\xFDbat aut\u016Fm na silnici.","Create a trampoline in your platformer game, making the player jump very high when stepped on.":"Create a trampoline in your platformer game, making the player jump very high when stepped on.","Create an account to register your games and to get access to metrics collected anonymously, like the number of daily players and retention of the players after a few days.":"Create an account to register your games and to get access to metrics collected anonymously, like the number of daily players and retention of the players after a few days.","Create animated buttons that can be shown in your game menus (main menu, selection screen, etc...).":"Create animated buttons that can be shown in your game menus (main menu, selection screen, etc...).","Create my account":"Vytvo\u0159it \xFA\u010Det","Create your own behavior":"Vytvo\u0159it si vlastn\xED chov\xE1n\xED","Custom":"Vlastn\xED","Custom (action, condition or expression)":"Vlastn\xED (akce, podm\xEDnka nebo vyj\xE1d\u0159en\xED)","Custom size":"Custom size","Custom size?":"Custom size?","Cut":"Vyjmout","Dashboard":"Dashboard","Day":"Day","Day {dayIndex} retained players":function(a){return["Day ",a("dayIndex")," retained players"]},"Debug mode (show FPS counter and stats in the bottom left)":"Re\u017Eim lad\u011Bn\xED (zobrazit po\u010Det FPS a statistiky v lev\xE9m doln\xEDm rohu)","Debugger":"Debugger (ladic\xED program)","Debugger is starting...":"Debugger se zap\xEDn\xE1...","Default height (in pixels)":"Z\xE1kladn\xED v\xFD\u0161ka (v pixelech)","Default value":"V\xFDchoz\xED hodnota","Default width (in pixels)":"Z\xE1kladn\xED \u0161\xEDrka (v pixelech)","Delete":"Vymazat","Delete option":"Delete option","Delete selection":"Odstranit v\xFDb\u011Br","Delete the layer":"Odstranit vrstvu","Delete the selected event(s)":"Odstranit vybran\xE9 ud\xE1losti","Delete the selected instances from the scene":"Odstranit vybran\xE9 instance ze sc\xE9ny","Delete the selected resource":"Odstranit vybran\xFD dokument","Delete when out of particles":"Odstranit p\u0159i ukon\u010Den\xED \u010D\xE1stic","Description":"Popis","Description (markdown supported)":"Popis (podporov\xE1no markdown)","Description, displayed in editor":"Popis, zobrazen\xFD v editoru","Desktop (Windows, macOS and Linux) icon:":"Syst\xE9m (Windows, macOS a Linux:","Details":"Details","Device orientation (for iOS and Android)":"Za\u0159\xEDzen\xED orientace (pro iOS a Android)","Direction":"Sm\u011Br","Direction #{i}":function(a){return["Sm\u011Br #",a("i")]},"Disable GDevelop splash at startup":"Vypnout GDevelop \xFAvodn\xED obrazovku p\u0159i spu\u0161t\u011Bn\xED","Display GDevelop splash at startup (in exported game)":"Zobrazit GDevelop \xFAvodn\xED obrazovku p\u0159i spu\u0161t\u011Bn\xED (v exportovan\xE9 h\u0159e)","Display What's New when a new version is launched (recommended)":"Zobrazit co je nov\xE9, kdy\u017E je spu\u0161t\u011Bna nov\xE1 verze (doporu\u010Deno)","Display assignment operators in Events Sheets":"Zobrazit oper\xE1tory (<>!=) v listech ud\xE1lost\xED","Display object thumbnails in Events Sheets":"Zobrazit n\xE1hledy objekt\u016F v listech ud\xE1lost\xED","Don't have an account yet?":"Nem\xE1te \xFA\u010Det?","Done":"Hotovo","Done!":"Hotovo!","Double click on a condition or action to edit it.":"Dvojit\xFDm kliknut\xEDm na podm\xEDnku nebo akci ji uprav\xEDte.","Double tap a condition or action to edit it. Long press to show more options.":"Dvojit\xFDm klepnut\xEDm na podm\xEDnku nebo akci ji uprav\xEDte. Dlouh\xFDm stisknut\xEDm zobraz\xEDte dal\u0161\xED mo\u017Enosti.","Download":"St\xE1hnout","Download GDevelop desktop app":"St\xE1hnout GDevelop desktopovou aplikaci","Download GDevelop desktop version":"St\xE1hnout GDevelop desktop verzi","Download GDevelop desktop version to generate the Android and iOS icons of your game.":"St\xE1hn\u011Bte si GDevelop desktopovou verzi pro vytvo\u0159en\xED Android a iOS z va\u0161\xED hry.","Download GDevelop to import your images":"Download GDevelop to import your images","Download a copy":"St\xE1hnout kopii","Download game file":"St\xE1hnout hern\xED soubor","Download the Instant Game archive":"St\xE1hnout FB Instant Game archiv","Download the exported game":"St\xE1hnout exportovanou hru","Download the full version of GDevelop on your desktop computer to create your own game without limits!":"St\xE1hn\u011Bte si plnou verzi GDevelop na sv\u016Fj po\u010D\xEDta\u010D a vytv\xE1\u0159ejte vlastn\xED hry bez hranic!","Downloading game resources...":"Stahuji data hry...","Drag and Drop the object icon to the scene or long press to show options to edit the object.":"P\u0159et\xE1hni ikonu objektu na sc\xE9nu nebo dlouze podr\u017E pro vyvol\xE1n\xED nab\xEDdky \xFAprav objektu.","Drag and Drop the object to the scene or use the right click menu to add an instance of it.":"P\u0159et\xE1hn\u011Bte objekt na sc\xE9nu nebo pou\u017Eijte kontextov\xE9 menu pro p\u0159id\xE1n\xED jeho instance.","Draw the shapes relative to the object position on the scene":"Nakresli tvary relativn\u011B vzhledem k pozici objektu na sc\xE9n\u011B","Dropbox (coming soon)":"Dropbox (ji\u017E brzy)","Duplicate":"Duplicate","Duplicate selection":"Duplicate selection","Dynamic":"Dynamick\xFD","Edge":"Hrana","Edit":"Upravit","Edit Extension Options":"Upravit mo\u017Enosti roz\u0161\xED\u0159en\xED","Edit Grid Options":"Edit Grid Options","Edit Layer Properties":"Edit Layer Properties","Edit Object Variables":"Upravit prom\u011Bnn\xE9 objektu","Edit Object {0}":function(a){return["Edit Object ",a("0")]},"Edit Scene Properties":"Edit Scene Properties","Edit Scene Variables":"Edit Scene Variables","Edit behavior properties":"Upravit vlastnosti chov\xE1n\xED","Edit behaviors ({eventsBasedBehaviorsCount})":function(a){return["Upravit chov\xE1n\xED (",a("eventsBasedBehaviorsCount"),")"]},"Edit effects ({effectsCount})":function(a){return["Upravit efekty (",a("effectsCount"),")"]},"Edit extension options":"Upravit mo\u017Enosti roz\u0161\xED\u0159en\xED","Edit functions (not attached to behaviors) ({eventsFunctionsCount})":function(a){return["Upravit funkce (nep\u0159ipojen\xE9 k chov\xE1n\xED) (",a("eventsFunctionsCount"),")"]},"Edit global variables":"Edit global variables","Edit group":"Edit group","Edit hitboxes":"Upravit hitboxy","Edit layer effects...":"Edit layer effects...","Edit layer...":"Edit layer...","Edit lighting properties":"Edit lighting properties","Edit object":"Edit object","Edit object group...":"Edit object group...","Edit object variables":"Edit object variables","Edit object variables...":"Edit object variables...","Edit object...":"Edit object...","Edit points":"Upravit body","Edit properties":"Edit properties","Edit scene variables":"Upravit prom\u011Bnn\xE9 sc\xE9ny","Edit shortcut":"Edit shortcut","Edit the behavior":"Upravit chov\xE1n\xED","Edit the event text":"Upravit text ud\xE1losti","Editor without transitions":"Editor bez p\u0159echod\u016F","Effect name:":"N\xE1zev efektu:","Effects":"Efekty","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.":"Efekty mohou zm\u011Bnit zp\u016Fsob vykreslov\xE1n\xED vrstvy na obrazovce. Po p\u0159id\xE1n\xED efektu nastavte jeho parametry. Spus\u0165te n\xE1hled pro zobrazen\xED v\xFDsledku. Pou\u017Eit\xEDm ud\xE1lost\xED a n\xE1zvu efektu m\u016F\u017Eete zm\u011Bnit parametry b\u011Bhem hry.","Email":"Email","Empty game":"Pr\xE1zdn\xE1 hra","End opacity (0-255)":"End opacity (0-255)","Endless Car Game Tutorial":"Nekone\u010Dn\xFD tutori\xE1l hry s autem","Endless Runner Tutorial":"Nekone\u010Dn\xFD b\u011B\u017Eeck\xFD tutori\xE1l","Enter the effect name":"Enter the effect name","Enter the expression parameters":"Enter the expression parameters","Enter the name of an object.":"Napi\u0161te jm\xE9no objektu.","Enter the name of the object":"Zadejte n\xE1zev objektu","Enter the parameter name (mandatory)":"Enter the parameter name (mandatory)","Enter the property name":"Napi\u0161te jm\xE9no vlastnosti","Enter the sentence that will be displayed in the events sheet":"Napi\u0161te v\u011Btu, kter\xE1 bude zobrazena v tabulce ud\xE1losti","Enter the text to be displayed":"Zadejte text, kter\xFD m\xE1 b\xFDt zobrazen","Enter the text to be displayed by the object":"Napi\u0161te text, kter\xFD tento objekt zobraz\xED","Enter what you want to build.":"Vlo\u017Ete co chcete vybuildovat.","Error while loading the asset. Verify your internet connection or try again later.":"Error while loading the asset. Verify your internet connection or try again later.","Events":"Events","Events Sheet":"List ud\xE1lost\xED","Events are composed of conditions (on the left of an event) and actions (on the right). When conditions are fulfilled, the actions are executed.":"Events are composed of conditions (on the left of an event) and actions (on the right). When conditions are fulfilled, the actions are executed.","Events that will be run at every frame (roughly 60 times per second), after the events from the events sheet of the scene.":"Ud\xE1losti, kter\xE9 budou spu\u0161t\u011Bny v ka\u017Ed\xE9m sn\xEDmku (zhruba 60kr\xE1t za sekundu), po ud\xE1lostech z listu ud\xE1lost\xED na sc\xE9n\u011B.","Events that will be run at every frame (roughly 60 times per second), before the events from the events sheet of the scene.":"Ud\xE1losti, kter\xE9 budou spu\u0161t\u011Bny v ka\u017Ed\xE9m sn\xEDmku (zhruba 60kr\xE1t za sekundu), p\u0159ed ud\xE1lostmi z listu ud\xE1lost\xED na sc\xE9n\u011B.","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.":"Ud\xE1losti, kter\xE9 budou prob\xEDhat ve v\u0161ech sn\xEDmk\u016F (zhruba 60 kr\xE1t za sekundu), pro ka\u017Ed\xFD objekt, kter\xFD m\xE1 chov\xE1n\xED p\u0159ipojeno, po ud\xE1lostech z\xA0ak\u010Dn\xEDch list\u016F.","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.":"Ud\xE1losti, kter\xE9 budou prob\xEDhat ve v\u0161ech sn\xEDmc\xEDch (zhruba 60 kr\xE1t za sekundu), pro ka\u017Ed\xFD objekt, kter\xFD m\xE1 chov\xE1n\xED p\u0159ipojeno, ne\u017E budou zah\xE1jeny ud\xE1losti z\xA0ak\u010Dn\xEDch list\u016F.","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.":"Ud\xE1losti, kter\xE9 budou spu\u0161t\u011Bny, jakmile bude sc\xE9na uvoln\u011Bna z pam\u011Bti. P\u0159edchoz\xED sc\xE9na, kter\xE1 byla pozastavena, bude pot\xE9 obnovena.","Events that will be run once when a scene is paused (another scene is run on top of it).":"Ud\xE1losti, kter\xE9 budou spu\u0161t\u011Bny jednou, kdy\u017E je sc\xE9na pozastavena (jin\xE1 sc\xE9na je spu\u0161t\u011Bna v pop\u0159ed\xED).","Events that will be run once when a scene is resumed (after it was previously paused).":"Ud\xE1losti, kter\xE9 budou spu\u0161t\u011Bny jednou p\u0159i obnoven\xED sc\xE9ny (pot\xE9, co byla p\u0159edt\xEDm pozastavena).","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).":"Ud\xE1losti, kter\xE9 prob\u011Bhnou jednou, a\u017E bude chov\xE1n\xED objektu deaktivov\xE1no (akce nebudou prob\xEDhat, dokud se chov\xE1n\xED znovu neaktivuje).","Events that will be run once when the behavior is re-activated on an object (after it was previously deactivated).":"Ud\xE1losti, kter\xE9 budou spu\u0161t\u011Bny jednou p\u0159i op\u011Btovn\xE9m aktivaci chov\xE1n\xED objektu (pot\xE9, co byl d\u0159\xEDve deaktivov\xE1n).","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.":"Ud\xE1losti, kter\xE9 budou spu\u0161t\u011Bny jednou, pot\xE9, co je objekt odstran\u011Bn ze sc\xE9ny a ne\u017E bude zcela odstran\u011Bn z pam\u011Bti.","Events that will be run once, when an object is created with this behavior being attached to it.":"Ud\xE1losti, kter\xE9 budou prob\xEDhat jedenkr\xE1t, kdy\u017E se vytvo\u0159\xED objekt s t\u011Bmito vlastnostmi.","Example: Check if the object is flashing.":"Example: Check if the object is flashing.","Example: Equipped shield name":"Example: Equipped shield name","Example: Flash the object":"Example: Flash the object","Example: Is flashing?":"Example: Is flashing?","Example: Life remaining":"P\u0159\xEDklad: Zb\xFDvaj\xEDc\xED \u017Eivoty","Example: Life remaining for the player.":"P\u0159\xEDklad: Hr\xE1\u010Dovi zb\xFDvaj\xEDc\xED \u017Eivoty.","Example: Make the object flash for 5 seconds.":"Example: Make the object flash for 5 seconds.","Example: Name of the shield equipped by the player.":"Example: Name of the shield equipped by the player.","Examples":"Uk\xE1zky","Examples:":"Uk\xE1zky:","Exit GDevelop":"Ukon\u010Dit GDevelop","Explanation after an object is installed from the store":"Explanation after an object is installed from the store","Explore video tutorials to learn how to make specific features in your game:":"Explore video tutorials to learn how to make specific features in your game:","Export":"Exportovat","Export (web, iOS, Android)...":"Exportovat (web, iOS, Android)...","Export as a HTML5 game":"Exportovat jako HTML5 hru","Export extension":"Roz\u0161\xED\u0159en\xED exportu","Export game":"Exportovat hru","Export in progress...":"Prob\xEDh\xE1 export...","Export project to a standalone game":"Exportovat projekt do samostatn\xE9 hry","Export the game (Web, Android, iOS...)":"Exportovat hru (Web, Android, iOS...)","Export to a file":"Exportovat do souboru","Export your game using Cocos2d-JS game engine. The game can be compiled for Android or iOS if you install Cocos2d-JS developer tools.":"Export your game using Cocos2d-JS game engine. The game can be compiled for Android or iOS if you install Cocos2d-JS developer tools.","Expression":"V\xFDraz","Extension (storing the function)":"Roz\u0161\xED\u0159en\xED (skladov\xE1n\xED funkce)","Extensions can provide functions (which can be actions, conditions or expressions) or new behaviors.":"Extensions can provide functions (which can be actions, conditions or expressions) or new behaviors.","External events":"Extern\xED ud\xE1losti","External layouts":"Extern\xED \u0161ablony","Extract Events to a Function":"Extract Events to a Function","Extract the events in a function":"Vlo\u017Ete ud\xE1losti do funkce","FPS:":"FPS:","Facebook Instant Games":"Facebook Instant Games","False":"Nepravda","False (not checked)":"Chyba (nen\xED ozna\u010Deno)","File":"Soubor","Fill color":"Barva v\xFDpln\u011B","Fill opacity (0-255)":"Ur\u010Dete pr\u016Fhlednost (0-255)","Find all matching pairs of cards in this relaxing game. Use tweens to create smooth, natural animations with a few events.":"V t\xE9to relaxa\u010Dn\xED h\u0159e najd\u011Bte v\u0161echny p\xE1ry karet. Pou\u017Eijte dopl\u0148ov\xE1n\xED na vytvo\u0159en\xED plynul\xFDch, p\u0159\xEDrodn\xEDch animac\xED s n\u011Bkolika ud\xE1lostmi.","First editor":"First editor","Flow of particles (particles/seconds)":"Tok \u010D\xE1stic (\u010D\xE1stice za sekundu)","Font files":"Soubory font\u016F","Font:":"Font (P\xEDsmo):","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).":"Pro p\u0159id\u011Blen\xFD zdroj videa bude pouze jedno video hr\xE1no v pam\u011Bti a zobrazno. Pokud d\xE1te objekt na sc\xE9nu v\xEDcekr\xE1t, v\u0161echny inscenace budou zobrazovat p\u0159esn\u011B to sam\xE9 video (se stejn\xFDm \u010Dasov\xE1n\xEDm, pauzov\xE1n\xEDm hran\xEDm a \u010Dasem zastaven\xED).","For example, you can have a variable called Life representing the health of the object.":"For example, you can have a variable called Life representing the health of the object.","For example, you can have a variable called Score representing the current score of the player.":"For example, you can have a variable called Score representing the current score of the player.","For example, you can have a variable called UnlockedLevelsCount representing the number of levels unlocked by the player.":"For example, you can have a variable called UnlockedLevelsCount representing the number of levels unlocked by the player.","For example: player, spaceship, inventory...":"Nap\u0159\xEDklad: hr\xE1\u010D, vesm\xEDrn\xE1 lo\u010F, invent\xE1\u0159...","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":"Sn\xEDmek","Frame #{i}":function(a){return["Frame #",a("i")]},"Free":"Zdarma","Friction on particles":"T\u0159en\xED \u010D\xE1stic","Full name displayed in editor":"Cel\xE9 jm\xE9no zobrazen\xE9 v editoru","Function Configuration":"Nastaven\xED funkc\xED","Function name":"N\xE1zev sekce","Function type":"Function type","Functions":"Funkce","Functions/Behaviors":"Funkce/spou\u0161ti","GDevelop 5":"GDevelop 5","GDevelop Forums":"GDevelop f\xF3ra","GDevelop Preferences":"P\u0159edvolby GDevelop","GDevelop Website":"GDevelop str\xE1nka","GDevelop is an easy-to-use game creator with no programming language to learn.":"GDevelop je lehce pou\u017Eiteln\xFD program na tvo\u0159en\xED her bez pot\u0159eby um\u011Bt programovat.","GDevelop on Discord":"GDevelop on Discord","GDevelop on Facebook":"GDevelop on Facebook","GDevelop on Reddit":"GDevelop on Reddit","GDevelop on Twitter":"GDevelop on Twitter","GDevelop was created by Florian \"4ian\" Rival.":"Autor GDevelop je Florian \"4ian\" Rival.","GDevelop was upgraded to a new version! Check out the changes.":"GDevelop byl aktualizov\xE1n na novou verzi! Zkontrolujte zm\u011Bny.","GDevelop website":"GDevelop str\xE1nka","GDevelop {0} based on GDevelop.js {1}":function(a){return["GDevelop ",a("0")," zalo\u017Een na GDevelop.js ",a("1")]},"Game Feel Demo":"Game Feel Demo","Game currently edited":"Game currently edited","Game export":"Export hry","Game name":"Jm\xE9no hry","Game preview #{id}":function(a){return["N\xE1hled hry #",a("id")]},"Game resolution height":"Game resolution height","Game resolution resize mode (fullscreen or window)":"Game resolution resize mode (fullscreen or window)","Game resolution width":"Game resolution width","Game settings":"Hern\xED nastaven\xED","Games Dashboard":"Games Dashboard","General":"General","General:":"Obecn\xE9:","Generate icons from a file":"Vygenerovat ikony z souboru","Geometry Monster":"Geometry Monster","Geometry Monster Tutorial":"Geometry Monster N\xE1vod","Get a subscription":"Z\xEDskat p\u0159edplatn\xE9","Get a subscription or login":"Z\xEDskat p\u0159edplatn\xE9 nebo se p\u0159ihl\xE1sit","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.":"Z\xEDskejte p\u0159edplatn\xE9 na bal\xED\u010Dky her pro Android, Windows, MacOS a Linux, pou\u017Eijte \u017Eiv\xFD n\xE1hled p\u0159es WiFi a dal\u0161\xED. D\xEDky p\u0159edplatn\xE9mu podporujete tak\xE9 v\xFDvoj GDevelop, kter\xFD pat\u0159\xED do kategorie open-source software.","Global Variables":"Glob\xE1ln\xED prom\u011Bnn\xE9","Global variable":"Glob\xE1ln\xED prom\u011Bnn\xE1","Global variables":"Glob\xE1ln\xED prom\u011Bnn\xE9","Global variables are variables that are persisted across the scenes during the game.":"Global variables are variables that are persisted across the scenes during the game.","Global variables are variables that are shared amongst all the scenes of the game.":"Global variables are variables that are shared amongst all the scenes of the game.","Google Drive":"Disk Google","Google Drive could not be loaded. Check that you are not offline and have a proper internet connection, then try again.":"Google Drive could not be loaded. Check that you are not offline and have a proper internet connection, then try again.","Google Drive folder or existing file to overwrite":"Slo\u017Eka Disku Google nebo existuj\xEDc\xED soubor k p\u0159eps\xE1n\xED","Got it":"Jasn\u011B","Gravity on particles on X axis":"Gravitace \u010D\xE1stic na ose X","Gravity on particles on Y axis":"Gravitace \u010D\xE1stic na ose Y","HTML5 game (zip)":"HTML5 hra (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!":"D\xEDk p\u0159edplatn\xE9mu m\u016F\u017Eete na jedno kliknut\xED exportovat pro Android, Windows, MacOS a Linux, spou\u0161t\u011Bt \u017Eiv\u011B n\xE1hledy p\u0159es wifi, b\u011Bhem na\u010D\xEDt\xE1n\xED deaktivujte \xFAvodn\xED obrazovku GDevelop a dal\u0161\xED!","Height":"V\xFD\u0161ka","Help":"N\xE1pov\u011Bda","Help and tutorials":"Pomoc a n\xE1vody","Help for this action":"N\xE1pov\u011Bda k t\xE9to akci","Help for this condition":"N\xE1pov\u011Bda k tomuto stavu","Help page URL":"Help page URL","Help to Translate GDevelop":"Pomozte p\u0159elo\u017Eit GDevelop","Help to translate GD in your language":"Pomozte s p\u0159ekladem GD do va\u0161eho jazyka","Help!":"Pomoc!","Hidden":"Skryt\xE9","Hide":"Skr\xFDt","Hide experimental exports":"Schovat experiment\xE1ln\xED exporty","Hide experimental objects":"Skr\xFDt experiment\xE1ln\xED objekty","Hide lifecycle functions (advanced)":"Hide lifecycle functions (advanced)","Hints & explanations":"Tipy a vysv\u011Btlen\xED","How to create a joystick displayed on screen, useful to control the player in mobile games.":"How to create a joystick displayed on screen, useful to control the player in mobile games.","How to edit instructions":"How to edit instructions","How to open a loot chest with a key that the player can find in the level":"How to open a loot chest with a key that the player can find in the level","How to show a health bar on screen and a potion to give back health to the player.":"How to show a health bar on screen and a potion to give back health to the player.","I forgot my password":"Zapom\u011Bl jsem moje heslo","IDE":"IDE","Icon URL":"Icon URL","Icons":"Ikony","Ideal for advanced game makers":"Ide\xE1ln\xED pro pokro\u010Dil\xE9 tv\u016Frce her","Ideal for beginners":"Doporu\u010Deno pro za\u010D\xE1te\u010Dn\xEDky","If the parameter is a string or a number, you probably want to use the expressions \"GetArgumentAsString\" or \"GetArgumentAsNumber\", along with the conditions \"Compare two strings\" or \"Compare two numbers\".":"If the parameter is a string or a number, you probably want to use the expressions \"GetArgumentAsString\" or \"GetArgumentAsNumber\", along with the conditions \"Compare two strings\" or \"Compare two numbers\".","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.":"Pokud zav\u0159ete toto okno v zat\xEDmco se stav\xED, m\u016F\u017Eete vid\u011Bt progres a st\xE1hnout hru pozd\u011Bji kliknut\xEDm n\xED\u017Ee na Vid\u011Bt v\u0161echny m\xE9 budovy.","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!":"Pokud nem\xE1te p\u0159edplatn\xE9, zva\u017Ete jeho z\xEDsk\xE1n\xED hned te\u010F. \xDA\u010Dty v\xE1m umo\u017E\u0148uj\xED p\u0159\xEDstup ke v\u0161em online slu\u017Eb\xE1m. Jedin\xFDm kliknut\xEDm m\u016F\u017Eete vytvo\u0159it svou hru pro Android, Windows, MacOS a Linux!","If you have a popup blocker interrupting the opening, allow the popups and try a second time to open the project.":"If you have a popup blocker interrupting the opening, allow the popups and try a second time to open the project.","Image files":"Soubory obr\xE1zk\u016F","Immerse your players by removing GDevelop logo when the game loads":"Immerse your players by removing GDevelop logo when the game loads","Immerse your players by removing GDevelop logo when the game loads.":"Immerse your players by removing GDevelop logo when the game loads.","Import extension":"Roz\u0161\xED\u0159en\xED importu","Include events from":"Zahrnout ud\xE1losti od","Initial text to display":"V\xFDchoz\xED text k zobrazen\xED","Insert a New Object":"Insert a New Object","Inspectors":"Inspektory","Install in project":"Prob\xEDh\xE1 instalace","Installed Behaviors":"Nainstalovan\xE9 chov\xE1n\xED","Instance Variables":"Instance prom\u011Bnn\xE9","Instance variables will override the default values of the variables of the object.":"Instance variables will override the default values of the variables of the object.","Instance variables:":"Instance prom\u011Bnn\xE9:","Instances list":"Instances list","Instances panel is already opened. You can search instances in the scene and click one to move the view to it.":"Instances panel is already opened. You can search instances in the scene and click one to move the view to it.","Instant or permanent force":"Instant or permanent force","Internal Name":"Intern\xED jm\xE9no","Internal files":"Internal files","Invert Condition":"Invert Condition","Invert condition":"Obr\xE1tit podm\xEDnku","Isometric game":"Isometrick\xE1 hra","It is recommended to use your own custom broker server. Read the wiki page for more info.":"It is recommended to use your own custom broker server. Read the wiki page for more info.","Italic":"Kurz\xEDva","JSON file":"Soubor JSON","JSON resource":"JSON resource","Keyboard Key (text)":"Kl\xE1vesa (text)","Keyboard Shortcuts":"Keyboard Shortcuts","Keyboard key":"Kl\xE1vesa","Kinematic":"Kinematick\xFD","Label":"Label","Label, shown in the editor":"Label, shown in the editor","Landscape":"Na \u0161\xED\u0159ku","Language":"Jazyk","Last run collected on {0} frames.":function(a){return["Last run collected on ",a("0")," frames."]},"Last updated on":"Naposledy aktualizov\xE1no","Launch a preview of the external layout inside the scene, right click for more":"Launch a preview of the external layout inside the scene, right click for more","Launch a preview of the scene, right click for more":"Launch a preview of the scene, right click for more","Launch another preview in a new window":"Launch another preview in a new window","Launch network preview over WiFi/LAN":"Launch network preview over WiFi/LAN","Launch new preview":"Launch new preview","Launch preview with debugger and profiler":"Launch preview with debugger and profiler","Launch the preview":"Spustit n\xE1hled","Layer":"Vrstva","Layer (text)":"Vrstva (text)","Layer visible":"Layer visible","Layers":"Vrstvy","Layers panel is already opened. You can add new layers and apply effects on them from this panel.":"Layers panel is already opened. You can add new layers and apply effects on them from this panel.","Layers:":"Vrstvy:","Layouts":"Layouts","Learn how to add a screen shake effect when the player falls from a very high platform in a platformer.":"Learn how to add a screen shake effect when the player falls from a very high platform in a platformer.","Learn how to add a selector to choose a character (or anything else) in your game.":"Learn how to add a selector to choose a character (or anything else) in your game.","Learn how to add responsive UI using anchors.":"Learn how to add responsive UI using anchors.","Learn how to create a dynamic light following the player, with a flickering effect.":"Learn how to create a dynamic light following the player, with a flickering effect.","Learn how to create a physics based car movement.":"Learn how to create a physics based car movement.","Learn how to make a melee/sword attack with a randomly triggered animation each time a key is pressed.":"Learn how to make a melee/sword attack with a randomly triggered animation each time a key is pressed.","Learn how to make a platformer game using the physics engine.":"Learn how to make a platformer game using the physics engine.","Learn how to make the camera follow the player in a smooth movement.":"Learn how to make the camera follow the player in a smooth movement.","Learn how to push objects, like a box, in a platform game.":"Learn how to push objects, like a box, in a platform game.","Learn how to save the player progress, and other information, and to load them again later.":"Learn how to save the player progress, and other information, and to load them again later.","Learn how to stop the time and make a pause menu.":"Learn how to stop the time and make a pause menu.","Learn how to use particle emitters in GDevelop to create effects like fire, explosion, magic beam, etc...":"Learn how to use particle emitters in GDevelop to create effects like fire, explosion, magic beam, etc...","Learn how to use the Tween Behavior and how it can be used to add more life and animation to you projects.":"Learn how to use the Tween Behavior and how it can be used to add more life and animation to you projects.","Learn more":"Zjistit v\xEDce","Learn more about Instant Games publication":"Learn more about Instant Games publication","Learn more about publishing":"Zjistit v\xEDc o publikaci","Left (primary)":"Left (primary)","Left margin":"Left margin","License: <0>{0}</0>":function(a){return["License: <0>",a("0"),"</0>"]},"Lifecycle functions (advanced)":"Lifecycle functions (advanced)","Lifecycle functions only included when extension used":"Lifecycle functions only included when extension used","Light object automatically put in lighting layer":"Light object automatically put in lighting layer","Lighting settings":"Lighting settings","Line":"\u010C\xE1ra","Line color":"Line color","Linear (antialiased rendering, good for most games)":"Linear (antialiased rendering, good for most games)","Lines length":"Lines length","Lines thickness":"Tlou\u0161\u0165ka \u010D\xE1ry","Linux (AppImage)":"Linux (AppImage)","Live preview (apply changes to the running preview)":"Live preview (apply changes to the running preview)","Loading...":"Na\u010D\xEDt\xE1n\xED...","Local file system":"M\xEDstn\xED souborov\xFD syst\xE9m","Local folder":"M\xEDstn\xED slo\u017Eka","Locate File":"Locate File","Lock position/angle in the editor":"Lock position/angle in the editor","Login":"P\u0159ihl\xE1sit se","Login to your GDevelop account":"P\u0159ihl\xE1sit se na v\xE1\u0161 GDevelop \xFA\u010Det","Logout":"Odhl\xE1sit se","Long description":"Podrobn\xFD popis","Loop":"Smy\u010Dka","Main lifecycle methods":"Main lifecycle methods","Main metrics":"Main metrics","Make a ghost like enemy floating toward the player.":"Make a ghost like enemy floating toward the player.","Make a hyper-casual mobile game where the player must grab shapes and avoid bombs.":"Make a hyper-casual mobile game where the player must grab shapes and avoid bombs.","Make a platform game from scratch.":"Vytvo\u0159te sk\xE1ka\u010Dku ze za\u010D\xE1tku.","Make a simple game where the player must jump on platforms for as long as possible.":"Vytvo\u0159te jednoduchou hru, kde mus\xED hr\xE1\u010D sk\xE1kat na platform\xE1ch co nejd\xE9le.","Make a simple tank shooter game from scratch.":"Ud\u011Blejte jednoduchou hru s tankama ze za\u010D\xE1tku.","Make a space shooter game from scratch.":"Make a space shooter game from scratch.","Make sure to verify all your events creating objects, and optionally add an action to set the Z order back to 0 if it's important for your game. Do you want to continue (recommened)?":"Make sure to verify all your events creating objects, and optionally add an action to set the Z order back to 0 if it's important for your game. Do you want to continue (recommened)?","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.":"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.","Maximum FPS (0 to disable)":"Maxim\xE1ln\xED FPS (napi\u0161te 0 k vypnut\xED)","Maximum Fps is too low":"Maxim\xE1ln\xED FPS je moc n\xEDzk\xE9","Maximum emitter force applied on particles":"Maxim\xE1ln\xED emisn\xED s\xEDla uplat\u0148ovan\xE1 na \u010D\xE1stice","Maximum number of particles displayed":"Maxim\xE1ln\xED po\u010Det pou\u017E\xEDvan\xFDch \u010D\xE1stic","Middle (Auxiliary button, usually the wheel button)":"Middle (Auxiliary button, usually the wheel button)","Minimize":"Minimize","Minimum FPS":"Minim\xE1ln\xED FPS","Minimum Fps is too low":"Minim\xE1ln\xED FPS je p\u0159\xEDli\u0161 n\xEDzk\xE9","Minimum emitter force applied on particles":"Minim\xE1ln\xED s\xEDla emitent\u016F p\u016Fsob\xEDc\xED na \u010D\xE1stice","Monetization":"Monetization","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.":"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.","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.":"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.","Mouse button":"Tla\u010D\xEDtko my\u0161i","Mouse button (text)":"Tla\u010D\xEDtko my\u0161i (text)","Move Events into a Group":"Move Events into a Group","Move down":"Move down","Move objects":"P\u0159esunout objekty","Move objects on layer {0} to:":function(a){return["P\u0159esun objekt\u016F na vrstv\u011B ",a("0")," k:"]},"Move up":"Move up","Multiple files, saved in folder next to the main file":"Multiple files, saved in folder next to the main file","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.":"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.","My Profile":"M\u016Fj Profil","My profile":"M\u016Fj profil","Name":"N\xE1zev","Name displayed in editor":"Jm\xE9no zobrazen\xE9 v editoru","Nearest (no antialiasing, good for pixel perfect games)":"Nearest (\u017E\xE1dn\xFD antialiasing, dobr\xE9 pro pixel perfect hry)","Need more power? You can upgrade to a new plan to increase the limit!":"Pot\u0159ebujete v\xEDce v\xFDkonu? M\u016F\u017Eete aktualizovat nov\xFD pl\xE1n pro zv\xFD\u0161en\xED limitu!","New extension name":"New extension name","New file name":"New file name","New object from scratch":"New object from scratch","New players count":"New players count","New value to set":"New value to set","No":"Ne","No behavior found for your search. Try another search, or search for new behaviors to install.":"No behavior found for your search. Try another search, or search for new behaviors to install.","No changes to the game size":"\u017D\xE1dn\xE1 zm\u011Bna velikosti hry","No effects applied.":"No effects applied.","No filters in this category.":"No filters in this category.","No inspector, choose another element in the list or toggle the raw data view.":"No inspector, choose another element in the list or toggle the raw data view.","No parameters for this function.":"\u017D\xE1dn\xE9 parametry pro tuto funkci.","No preview running. Run a preview and you will be able to inspect it with the debugger":"No preview running. Run a preview and you will be able to inspect it with the debugger","No properties for this behavior. Add one to store data inside this behavior (for example: health, ammo, speed, etc...)":"No properties for this behavior. Add one to store data inside this behavior (for example: health, ammo, speed, etc...)","No results returned for your search. Try something else or browse the categories.":"No results returned for your search. Try something else or browse the categories.","No results returned for your search. Try something else, browse the categories or create your object from scratch!":"No results returned for your search. Try something else, browse the categories or create your object from scratch!","No shortcut":"No shortcut","No tags - add a tag to an object first":"No tags - add a tag to an object first","Non-objects and other actions":"Non-objects and other actions","Non-objects and other conditions":"Non-objects and other conditions","Not compatible":"Not compatible","Not now, thanks":"Ne te\u010F, d\u011Bkuji","Not now, thanks!":"Ne te\u010F, d\u011Bkuji!","Note that the distinction between what is a mobile device and what is not is becoming blurry (with devices like iPad pro and other \"desktop-class\" tablets). If you use this for mobile controls, prefer to check if the device has touchscreen support.":"Note that the distinction between what is a mobile device and what is not is becoming blurry (with devices like iPad pro and other \"desktop-class\" tablets). If you use this for mobile controls, prefer to check if the device has touchscreen support.","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.":"Nothing corresponding to your search. Choose an object first or browse the list of actions/conditions.","Nothing corresponding to your search. Try browsing the list instead.":"Nothing corresponding to your search. Try browsing the list instead.","Number":"\u010C\xEDslo","Number of particles in tank (-1 for infinite)":"Number of particles in tank (-1 for infinite)","OK":"OK","Object":"Objekt","Object Groups":"Skupina objekt\u016F","Object Name":"N\xE1zev objektu","Object Variables":"Object Variables","Object groups":"Object groups","Object name":"N\xE1zev objektu","Object on which this behavior can be used":"Object on which this behavior can be used","Object type":"Typ objektu","Object variable":"Object variable","Objects":"Objekty","Objects on {0}":function(a){return["Objects on ",a("0")]},"Objects or groups being directly referenced in the events: {0}":function(a){return["Objects or groups being directly referenced in the events: ",a("0")]},"Objects panel is already opened: use it to add and edit objects.":"Panel Objects je ji\u017E otev\u0159en: pou\u017Eijte jej k p\u0159id\xE1n\xED a editaci objekt\u016F.","Ok":"Ok","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.":"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.","Once you're done, come back to GDevelop and your account will be upgraded automatically, unlocking the extra exports and online services.":"Once you're done, come back to GDevelop and your account will be upgraded automatically, unlocking the extra exports and online services.","One-click packaging for Windows, macOS and Linux up to 10 times a day (every 24 hours).":"One-click packaging for Windows, macOS and Linux up to 10 times a day (every 24 hours).","One-click packaging for Windows, macOS and Linux up to 70 times a day (every 24 hours).":"One-click packaging for Windows, macOS and Linux up to 70 times a day (every 24 hours).","OneDrive (coming soon)":"OneDrive (ji\u017E brzy)","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.":"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.","Open":"Otev\u0159\xEDt","Open Debugger":"Otev\u0159\xEDt Debugger","Open File":"Open File","Open My Games Dashboard":"Open My Games Dashboard","Open My Profile":"Open My Profile","Open Project Manager":"Otev\u0159\xEDt Spr\xE1vce Projekt\u016F","Open Recent":"Open Recent","Open a project":"Otev\u0159\xEDt projekt","Open advanced settings":"Otev\u0159\xEDt roz\u0161\xED\u0159en\xE9 nastaven\xED","Open command palette":"Open command palette","Open extension settings":"Open extension settings","Open extension...":"Open extension...","Open external events...":"Open external events...","Open external layout...":"Open external layout...","Open folder":"Otev\u0159\xEDt slo\u017Eku","Open project":"Open project","Open project icons":"Open project icons","Open project manager":"Open project manager","Open project properties":"Open project properties","Open project resources":"Open project resources","Open recent project...":"Open recent project...","Open scene properties":"Open scene properties","Open scene variables":"Open scene variables","Open scene...":"Open scene...","Open settings":"Open settings","Open start page":"Open start page","Open the exported game folder":"Open the exported game folder","Open the layers editor":"Open the layers editor","Open the list of instances":"Open the list of instances","Open the object groups editor":"Open the object groups editor","Open the objects editor":"Open the objects editor","Open the objects groups editor":"Open the objects groups editor","Open the performance profiler":"Open the performance profiler","Open the project":"Otev\u0159\xEDt projekt","Open the project folder":"Otev\u0159\xEDt slo\u017Eku projektu","Open the properties panel":"Otev\u0159\xEDt panel vlastnost\xED","Open...":"Otev\u0159\xEDt...","Operator":"Oper\xE1tor","Optional animation name":"Voliteln\xE9 jm\xE9no animace","Origin":"Origin","Other actions":"Dal\u0161\xED mo\u017Enosti","Other conditions":"Other conditions","Other external events with this name already exist.":"Dal\u0161\xED vn\u011Bj\u0161\xED ud\xE1losti s t\xEDmto n\xE1zvem ji\u017E existuj\xED.","Other lifecycle methods":"Other lifecycle methods","Outline color":"Barva obrysu","Outline opacity (0-255)":"Okrajov\xE1 pr\u016Fhlednost (0-255)","Outline size (in pixels)":"Outline size (in pixels)","Package":"Package","Package name (for iOS and Android)":"Package name (for iOS and Android)","Package your game as a Facebook Instant Games that can be played on Facebook Messenger.":"Package your game as a Facebook Instant Games that can be played on Facebook Messenger.","Package your game as an app for Windows, macOS or Linux directly from GDevelop.":"Package your game as an app for Windows, macOS or Linux directly from GDevelop.","Package your game for Android directly from GDevelop. iOS support is coming soon!":"Package your game for Android directly from GDevelop. iOS support is coming soon!","Package your game for Android up to 10 times a day (every 24 hours).":"Package your game for Android up to 10 times a day (every 24 hours).","Package your game for Android up to 70 times a day (every 24 hours).":"Package your game for Android up to 70 times a day (every 24 hours).","Packaging for Android":"Packaging for Android","Packaging your game for Android will create an APK file that can be installed on Android phones or published to the Play Store.":"Packaging your game for Android will create an APK file that can be installed on Android phones or published to the Play Store.","Parameter #{0}:":function(a){return["Parametr #",a("0"),":"]},"Parameter name in events: `{parameterName}`":function(a){return["Parameter name in events: `",a("parameterName"),"`"]},"Parameters":"Parametry","Particle Effects Demo":"Particle Effects Demo","Particle end size (in percents)":"Particle end size (in percents)","Particle maximum lifetime (in seconds)":"Particle maximum lifetime (in seconds)","Particle maximum rotation speed (degrees/second)":"Particle maximum rotation speed (degrees/second)","Particle minimum lifetime (in seconds)":"Particle minimum lifetime (in seconds)","Particle minimum rotation speed (degrees/second)":"Particle minimum rotation speed (degrees/second)","Particle start size (in percents)":"Particle start size (in percents)","Particles end color":"Particles end color","Particles kind":"Particles kind","Particles start color":"Po\u010D\xE1te\u010Dn\xED barva \u010D\xE1stic","Particles start height":"Particles start height","Particles start width":"Particles start width","Password":"Heslo","Paste":"Paste","Paste action(s)":"Paste action(s)","Paste condition(s)":"Paste condition(s)","Pause the game":"Pozastavit hru","Pause the game (from the toolbar) or hit refresh (on the left) to inspect the game":"Pause the game (from the toolbar) or hit refresh (on the left) to inspect the game","Peer to peer broker server recommendation":"Peer to peer broker server recommendation","Permanent":"Trvale","Platform default":"Platform default","Platformer":"Sk\xE1ka\u010Dka","Platformer Tutorial":"Platformer Tutorial","Play the game":"Hr\xE1t hru","Players count":"Players count","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.":"Please note that your device should be connected on the same network as this computer.","Please wait...":"Please wait...","Point":"Bod","Polygon":"Polygon","Portrait":"Portr\xE9t","Position":"Pozice","Preferences":"Preference","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.":"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.","Press a shortcut combination...":"Press a shortcut combination...","Preview":"N\xE1hled","Preview is overridden, right click for more":"Preview is overridden, right click for more","Preview over wifi":"N\xE1hled p\u0159es wifi","Profiler":"Profiler","Project":"Projekt","Project file type":"Project file type","Project files":"Soubory projektu","Project icons":"Ikona projektu","Project manager":"Spr\xE1vce projektu","Project properly saved":"Projekt \u0159\xE1dn\u011B ulo\u017Een","Project properties":"Project properties","Properties":"Vlastnosti","Properties panel is already opened. After selecting a resource, inspect and change its properties from this panel.":"Properties panel is already opened. After selecting a resource, inspect and change its properties from this panel.","Properties panel is already opened. After selecting an instance on the scene, inspect and change its properties from this panel.":"Properties panel is already opened. After selecting an instance on the scene, inspect and change its properties from this panel.","Property {propertyName} of _PARAM0_ is true":function(a){return["Property ",a("propertyName")," of _PARAM0_ is true"]},"Publish online":"Publikovat online","Publish your game on Game Jolt":"Publikovat hru na Game Jolt","Publish your game on Itch.io":"Publikovat svou hru na Itch.io","Publish your game on Kongregate":"Publikovat hru na Kongregate","Publish your game on Poki.com":"Publikovat hru na Poki.com","Published Games Dashboard":"Published Games Dashboard","Radius of the emitter":"Radius of the emitter","Re-install/update":"P\u0159einstalovat/aktualizovat","Read the tutorial":"Read the tutorial","Read the wiki page for more info about the dataloss mode.":"Read the wiki page for more info about the dataloss mode.","Redo":"Redo","Redo the last changes":"Redo the last changes","Refresh":"Obnovit","Register the project":"Register the project","Register to see the usage that you've made of the online services":"Register to see the usage that you've made of the online services","Registered on {0}":function(a){return["Registered on ",a("0")]},"Registered on {0}.":function(a){return["Registered on ",a("0"),"."]},"Relational operator":"Relational operator","Remove":"Remove","Remove Resources with Invalid Path":"Remove Resources with Invalid Path","Remove Unused Audio":"Remove Unused Audio","Remove Unused Fonts":"Remove Unused Fonts","Remove Unused Images":"Remove Unused Images","Remove all tags":"Odebrat ve\u0161ker\xE9 \u0161t\xEDtky","Remove objects":"Odstranit objekty","Remove shortcut":"Remove shortcut","Remove the Long Description":"Remove the Long Description","Rename":"Rename","Repeat borders and center textures (instead of stretching them)":"Repeat borders and center textures (instead of stretching them)","Repeat for each instance of {objectName}:":function(a){return["Repeat for each instance of ",a("objectName"),":"]},"Repeat these:":"Repeat these:","Repeat {expression} times:":function(a){return["Repeat ",a("expression")," times:"]},"Replace":"Nahradit","Replay":"P\u0159ehr\xE1t znovu","Report a wrong translation":"Nahl\xE1sit \u0161patn\xFD p\u0159eklad","Report the issue on GitHub":"Nahl\xE1sit chybu na GitHub","Reset":"Resetovat","Reset Debugger layout":"Reset Debugger layout","Reset Extension Editor layout":"Reset Extension Editor layout","Reset Resource Editor layout":"Reset Resource Editor layout","Reset Scene Editor (small window) layout":"Reset Scene Editor (small window) layout","Reset Scene Editor layout":"Reset Scene Editor layout","Reset all shortcuts to default":"Reset all shortcuts to default","Reset to default":"Reset to default","Reset your password":"Obnovit heslo","Resolution and rendering":"Resolution and rendering","Resources":"Zdroje","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.":"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.","Resources needed for the project are downloaded...":"Resources needed for the project are downloaded...","Restart":"Restartovat","Restarting the preview from scratch is required":"Restarting the preview from scratch is required","Restore original size":"Restore original size","Restore the default collision mask":"Obnovit v\xFDchoz\xED kolizn\xED masku","Retention of players":"Retention of players","Retry":"Znovu","Right (secondary)":"Right (secondary)","Right margin":"Right margin","Run a preview":"Run a preview","Run a preview and you will be able to inspect it with the debugger.":"Run a preview and you will be able to inspect it with the debugger.","Run on this computer":"Spustit na tomto po\u010D\xEDta\u010Di","Save":"Ulo\u017Eit","Save as...":"Ulo\u017Eit jako...","Save on Google Drive":"Ulo\u017Eit na Disk Google","Save project":"Ulo\u017Eit projekt","Save project as...":"Ulo\u017Eit projekt jako...","Saving...":"Ukl\xE1d\xE1n\xED...","Scale mode (also called \"Sampling\")":"Scale mode (also called \"Sampling\")","Scan for Audio":"Scan for Audio","Scan for Fonts":"Scan for Fonts","Scan for Images":"Scan for Images","Scan for Videos":"Scan for Videos","Scene":"Sc\xE9na","Scene Variables":"Scene Variables","Scene background color":"Barva poz\xE1d\xED sc\xE9ny","Scene name":"N\xE1zev sc\xE9ny","Scene name (text)":"N\xE1zev sc\xE9ny (text)","Scene properties":"Vlastnosti sc\xE9ny","Scene variable":"Prom\u011Bnn\xE1 sc\xE9ny","Scene variables can be used to store any value or text during the game.":"Scene variables can be used to store any value or text during the game.","Scenes":"Sc\xE9ny","Search":"Hledat","Search Asset Store":"Search Asset Store","Search New Behaviors":"Search New Behaviors","Search for New Extensions":"Search for New Extensions","Search for new extensions":"Search for new extensions","Search in events":"Vyhledat v ud\xE1lostech","Search in:":"Hledat v:","Search the documentation":"Hledat v dokumentaci","Search {searchPlaceholderObjectName} actions":function(a){return["Search ",a("searchPlaceholderObjectName")," actions"]},"Search {searchPlaceholderObjectName} conditions":function(a){return["Search ",a("searchPlaceholderObjectName")," conditions"]},"Section name":"N\xE1zev sekce","See all my builds":"See all my builds","See all the releases notes":"Pod\xEDvat se na v\u0161echny pozn\xE1mky o vyd\xE1n\xED","See details":"See details","See examples":"Pod\xEDvat se na uk\xE1zky","See logs":"Pod\xEDvat se na logy","See the releases notes online":"See the releases notes online","Select a behavior to display the functions inside this behavior.":"Select a behavior to display the functions inside this behavior.","Select an image":"Vybrat obr\xE1zek","Sentence in Events Sheet":"Sentence in Events Sheet","Services Usage":"Services Usage","Sessions count":"Sessions count","Set as Global group":"Set as Global group","Set as a global object":"Set as a global object","Set property {propertyName} of _PARAM0_ to _PARAM2_":function(a){return["Set property ",a("propertyName")," of _PARAM0_ to _PARAM2_"]},"Set shortcut":"Set shortcut","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.":"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.","Setup grid":"Setup grid","Share same collision masks for all animations":"Sd\xEDlet stejn\xE9 kolizn\xED masky pro v\u0161echny animace","Share same collision masks for all sprites of this animation":"Sd\xEDlet stejn\xE9 kolizn\xED masky pro v\u0161echny sprity z animac\xED","Share same points for all animations":"Sd\xEDlet stejn\xE9 body pro v\u0161echny animace","Share same points for all sprites of this animation":"Share same points for all sprites of this animation","Short description":"Short description","Should finish soon.":"M\u011Bl by brzy skon\u010Dit.","Show Mask":"Show Mask","Show Parameter Names":"Show Parameter Names","Show Project Manager":"Zobrazit spr\xE1vce projektu","Show Start Page":"Zobrazit startovac\xED str\xE1nku","Show deprecated (old) behaviors":"Zobrazit zastaral\xE9 chov\xE1n\xED","Show experimental exports":"Uk\xE1zat experiment\xE1ln\xED exporty","Show experimental objects":"Show experimental objects","Show grid":"Show grid","Show lifecycle functions (advanced)":"Show lifecycle functions (advanced)","Show link to tutorials:":"Show link to tutorials:","Single file (default)":"Single file (default)","Size":"Velikost","Size:":"Velikost:","Something wrong happened :(":"Something wrong happened :(","Space Shooter Tutorial":"Space Shooter Tutorial","Speech":"Mluva","Spray cone angle (in degrees)":"Spray cone angle (in degrees)","Start Network Preview (Preview over WiFi/LAN)":"Start Network Preview (Preview over WiFi/LAN)","Start Page":"\xDAvodn\xED str\xE1nka","Start Preview with Debugger and Performance Profiler":"Start Preview with Debugger and Performance Profiler","Start a new game from scratch.":"Za\u010D\xEDt novou hru od za\u010D\xE1tku.","Start all previews from external layout {0}":function(a){return["Start all previews from external layout ",a("0")]},"Start all previews from scene {0}":function(a){return["Start all previews from scene ",a("0")]},"Start opacity (0-255)":"Start opacity (0-255)","Start profiling":"Zah\xE1jit profilov\xE1n\xED","Start profiling and then stop it after a few seconds to see the results.":"Start profiling and then stop it after a few seconds to see the results.","Start typing a command...":"Start typing a command...","Start using GDevelop":"Start using GDevelop","Starters":"Startery","Static":"Static","Stop music and sounds on startup":"Zastavit hudbu a zvuky p\u0159i spu\u0161t\u011Bn\xED","Stop profiling":"Zastavit profilov\xE1n\xED","String":"String","String (text)":"\u0158\u011Bt\u011Bzec (text)","String Expression":"\u0158et\u011Bzcov\xFD v\xFDraz","String from a list of options (text)":"String from a list of options (text)","Submit extension to the community":"Submit extension to the community","Submit your example":"Poslat vlastn\xED uk\xE1zku","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!":"Support for translations is still new and in beta. GDevelop needs your help to be translated in your language!","Switch to create objects with the highest Z order of the layer":"Switch to create objects with the highest Z order of the layer","Tags":"Tags","Tags (comma separated)":"Tags (comma separated)","Tank Shooter Tutorial":"Tank Shooter Tutorial","Text color:":"Barva textu:","Text to replace in parameters":"Text to replace in parameters","Text to search in parameters":"Text to search in parameters","Texts":"Texty","Textured":"Textury","Thanks for getting a subscription and supporting GDevelop!":"D\u011Bkujeme, \u017Ee jste si koupili p\u0159edplatn\xE9 a podpo\u0159ili GDevelop!","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.":"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.","Thanks!":"D\u011Bkuji!","The behavior is not attached to this object. Please select another object or add this behavior.":"The behavior is not attached to this object. Please select another object or add this behavior.","The behavior was added to the project. You can now add it to your object.":"The behavior was added to the project. You can now add it to your object.","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 extension was added to the project. You can now use it in the list of actions/conditions and, if it's a behavior, in the list of behaviors for an object.":"The extension was added to the project. You can now use it in the list of actions/conditions and, if it's a behavior, in the list of behaviors for an object.","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 light object was automatically placed on the Lighting layer.":"The light object was automatically placed on the Lighting layer.","The lighting layer renders an ambient light on the scene. All lights should be placed on this layer so that shadows are properly rendered. By default, the layer follows the base layer camera. Uncheck this if you want to manually move the camera using events.":"The lighting layer renders an ambient light on the scene. All lights should be placed on this layer so that shadows are properly rendered. By default, the layer follows the base layer camera. Uncheck this if you want to manually move the camera using events.","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.":"The name of a property cannot be \"name\" or \"type\", as they are used by GDevelop internally.","The name of a property cannot be empty.":"The name of a property cannot be empty.","The object does not exist or can't be used here.":"The object does not exist or can't be used here.","The object was added to the list of objects. You can now use it on the scene, in events, and customize it.":"The object was added to the list of objects. You can now use it on the scene, in events, and customize it.","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):":"The sentence is probably missing this/these parameter(s):","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.":"There are no events here.","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 is no object in your game or in this scene. Start by adding an new object in the scene editor, using the objects list.":"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.","There is nothing to configure for this behavior. You can still use events to interact with the object and this behavior.":"There is nothing to configure for this behavior. You can still use events to interact with the object and this behavior.","There is nothing to configure for this object. You can still use events to interact with the object.":"There is nothing to configure for this object. You can still use events to interact with the object.","There is nothing to configure.":"Nen\xED co nakonfigurovat.","There was an error while making an auto-save of the project. Verify that you have permissions to write in the project folder.":"There was an error while making an auto-save of the project. Verify that you have permissions to write in the project folder.","There was an issue getting the game analytics.":"There was an issue getting the game analytics.","There were errors when fetching resources for the project.":"There were errors when fetching resources for the project.","There were no players or stored metrics for this day. Be sure to publish your game and get players to try it to see the collected anonymous analytics.":"There were no players or stored metrics for this day. Be sure to publish your game and get players to try it to see the collected anonymous analytics.","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.":"This build is old and the generated games can't be downloaded anymore.","This can either be a URL to a web page, or a path starting with a slash that will be opened in the GDevelop wiki. Leave empty if there is no help page, although it's recommended you eventually write one if you distribute the extension.":"This can either be a URL to a web page, or a path starting with a slash that will be opened in the GDevelop wiki. Leave empty if there is no help page, although it's recommended you eventually write one if you distribute the extension.","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.":"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.","This file is not recognized as a GDevelop 5 project. Be sure to open a file that was saved using GDevelop.":"This file is not recognized as a GDevelop 5 project. Be sure to open a file that was saved using GDevelop.","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.":"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.","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.":"This is a UI component dev environment for GDevelop.","This is a relative path that will open in the GDevelop wiki.":"This is a relative path that will open in the GDevelop wiki.","This is a version of GDevelop 5 that you can try online.":"This is a version of GDevelop 5 that you can try online.","This is link to a webpage.":"This is link to a webpage.","This is not a URL starting with \"http://\" or \"https://\".":"This is not a URL starting with \"http://\" or \"https://\".","This is the configuration of your behavior. Make sure to choose a proper internal name as it's hard to change it later. Enter a description explaining what the behavior is doing to the object.":"This is the configuration of your behavior. Make sure to choose a proper internal name as it's hard to change it later. Enter a description explaining what the behavior is doing to the object.","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":"To je v\xE1\u0161 sou\u010Dasn\xFD pl\xE1n","This name cannot be empty, please enter a new name.":"This name cannot be empty, please enter a new name.","This name is already taken":"N\xE1zev se u\u017E pou\u017E\xEDv\xE1","This name is already taken by another extension.":"Toto jm\xE9no u\u017E pou\u017E\xEDv\xE1 jin\xE9 roz\u0161\xED\u0159en\xED.","This name is already taken by another function. Choose another name.":"This name is already taken by another function. Choose another name.","This name is already used by another property. Choose a unique name for each property.":"This name is already used by another property. Choose a unique name for each property.","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.":"This name is not valid. Only use alphanumeric characters (0-9, a-z) and underscores.","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.":"This object has no animations containing images. Start by adding an animation.","This object has no behaviors: please add this behavior to the object first.":"This object has no behaviors: please add this behavior to the object first.","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 project is not registered online. Register it now to get access to metrics collected anonymously, like the number of daily players and retention of the players after a few days.":"This project is not registered online. Register it now to get access to metrics collected anonymously, like the number of daily players and retention of the players after a few days.","This project is registered online but you don't have access to it. Ask the original owner of the game to share it with you to get access to the game metrics.":"This project is registered online but you don't have access to it. Ask the original owner of the game to share it with you to get access to the game metrics.","This shortcut clashes with another action.":"This shortcut clashes with another action.","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.":"This sprite uses the default collision mask, a rectangle that is as large as the sprite.","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)":"\u010Cas (ms)","To begin, open or create a new project.":"To begin, open or create a new project.","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.":"To use this feature, we ask you to get a subscription to GDevelop.","Today (so far, in real time)":"Today (so far, in real time)","Toggle disabled":"Toggle disabled","Toggle grid":"Toggle grid","Toggle mask":"Toggle mask","Toggle/edit grid":"Toggle/edit grid","Top margin":"Top margin","Top-Left":"Top-Left","True":"Pravda","True (checked)":"True (checked)","True or False":"Pravda nebo Nepravda","True or false (boolean)":"True or false (boolean)","Tutorials":"Tutori\xE1ly","Tutorials are available on GDevelop wiki. Choose a tutorial to read:":"Tutorials are available on GDevelop wiki. Choose a tutorial to read:","Type":"Typ","Type:":"Typ:","UI Theme":"Vzhled UI","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["Unable to create the game in the specified folder. Check that you have permissions to write in this folder: ",a("outputPath")," or choose another folder."]},"Unable to download and install the extension. Verify that your internet connection is working or try again later.":"Unable to download and install the extension. Verify that your internet connection is working or try again later.","Unable to download the icon. Verify your internet connection or try again later.":"Unable to download the icon. Verify your internet connection or try again later.","Unable to load the code editor":"Nelze na\u010D\xEDst editor k\xF3du","Unable to load the image":"Nelze na\u010D\xEDst obr\xE1zek","Unable to load the information about the latest GDevelop releases. Verify your internet connection or retry later.":"Unable to load the information about the latest GDevelop releases. Verify your internet connection or retry later.","Unable to open the preview! Be sure that popup are allowed for this website.":"Unable to open the preview! Be sure that popup are allowed for this website.","Unable to open the project because this provider is unknown: {storageProviderName}. Try to open the project again from another location.":function(a){return["Unable to open the project because this provider is unknown: ",a("storageProviderName"),". Try to open the project again from another location."]},"Unable to open the project.":"Unable to open the project.","Unable to open this file.":"Unable to open this file.","Unable to save as the project! Please try again by choosing another location.":"Unable to save as the project! Please try again by choosing another location.","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.":"Unable to start the debugger server! Make sure that you are authorized to run servers on this computer.","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.":"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.","Undo":"Undo","Undo the last changes":"Undo the last changes","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":"Unknown behavior","Unknown status":"Nezn\xE1m\xFD status","Unregister this game":"Unregister this game","Update":"Update","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 game details from the project":"Update the game details from the project","Update the value of {propertyLabel}":function(a){return["Update the value of ",a("propertyLabel")]},"Updates":"Aktualizace","Upgrade my account":"Upgradovat \xFA\u010Det","Upgrade/change":"Upgrade/zm\u011Bna","Upload to build service":"Upload to build service","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":"Pou\u017E\xEDt vlastn\xED kolizn\xED masku","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":"Use the new action/condition editor","Use this external layout inside this scene to start all previews":"Use this external layout inside this scene to start all previews","Use this scene to start all previews":"Use this scene to start all previews","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 lighting layer":"Using lighting layer","Using non smoothed textures":"Using non smoothed textures","Using the instance properties panel":"Using the instance properties panel","Using the instances panel":"Using the instances panel","Using the layers panel":"Using the layers 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":"Validate these parameters","Verify that you have the authorizations for reading the file you're trying to access.":"Verify that you have the authorizations for reading the file you're trying to access.","Verify your internet connection or try again later.":"Verify your internet connection or try again later.","Version":"Verze","Version number (X.Y.Z)":"Verze (X,Y,Z)","Video files":"Video soubory","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","Videos":"Videos","View":"Zobrazit","Visible":"Viditeln\xE9","Visible in editor":"Viditeln\xE9 v editoru","Want to contribute to the examples?":"Chcete p\u0159isp\u011Bt k uk\xE1zk\xE1m?","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)","Watch the tutorial":"Watch the tutorial","Web (upload online)":"Web (upload online)","Web (upload online) Build":"Web (upload online) Build","Welcome to GDevelop":"V\xEDtejte v GDevelop","What's new in GDevelop?":"Co je nov\xE9ho v GDevelop?","What's new?":"Co je nov\xE9ho?","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.":"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.","When you create an object using an action, GDevelop now sets the Z order of the object to the maximum value that was found when starting the scene for each layer. This allow to make sure that objects that you create are in front of others. This game was created before this change, so GDevelop maintains the old behavior: newly created objects Z order is set to 0. It's recommended that you switch to the new behavior by clicking the following button.":"When you create an object using an action, GDevelop now sets the Z order of the object to the maximum value that was found when starting the scene for each layer. This allow to make sure that objects that you create are in front of others. This game was created before this change, so GDevelop maintains the old behavior: newly created objects Z order is set to 0. It's recommended that you switch to the new behavior by clicking the following button.","While these conditions are true:":"While these conditions are true:","Width":"\u0160\xED\u0159ka","Wiki":"Wiki","Window":"Window","Window title":"Titulek okna","Windows (auto-installer file)":"Windows (automatick\xFD-instaler)","Windows (exe)":"Windows (exe)","Windows (zip file)":"Windows (soubor zip)","Windows (zip)":"Windows (zip)","Windows/macOS/Linux":"Windows/macOS/Linux","Windows/macOS/Linux (manual)":"Windows/macOS/Linux (manu\xE1ln\xED)","Windows/macOS/Linux Build":"Windows/macOS/Linux Build","X":"X","X offset (in pixels)":"X offset (v pixelech)","Y":"Y","Y offset (in pixels)":"Y offset (v pixelech)","Yes":"Ano","Yes or No":"Ano nebo Ne","Yes or no (boolean)":"Yes or no (boolean)","Yesterday":"Yesterday","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!":"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!","You are not connected. Create an account to build your game for Android, Windows, macOS and Linux in one click, and get access to metrics for your game.":"You are not connected. Create an account to build your game for Android, Windows, macOS and Linux in one click, and get access to metrics for your game.","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["Jste p\u0159ihl\xE1\u0161eni k odb\u011Bru ",a("0"),". Gratulujeme! M\xE1te p\u0159\xEDstup k v\xEDce online slu\u017Eb\xE1m, v\u010Detn\u011B vytv\xE1\u0159en\xED hry pro Android, Windows, macOS a Linux jedn\xEDm kliknut\xEDm!"]},"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:":"You can download the file of your game to continue working on it using the full GDevelop version:","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.":"You can now upload the game to a web hosting to play to the game.","You can open the command palette by pressing":"You can open the command palette by pressing","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 (every 24 hours) 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 (every 24 hours) to avoid overloading the services.","You don't have a subscription. Get one to increase the limits!":"You don't have a subscription. Get one to increase the limits!","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":"You don't have any usage of the online services for now","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":"You must select a button","You must select a key.":"You must select a key.","You must select a valid key. \"{value}\" is not valid.":function(a){return["You must select a valid key. \"",a("value"),"\" is not valid."]},"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.":"M\u011Bl by v\xE1m b\xFDt doru\u010Den email obsahuj\xEDc\xED instrukce pro resetov\xE1n\xED a nastaven\xED nov\xE9ho hesla. Jakmile to bude hotov\xE9, m\u016F\u017Eete pou\u017E\xEDt nov\xE9 heslo v GDevelop.","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 (or re-open) a project. Click on \"Open the Project\" to continue.":"You're about to open (or re-open) a project. Click on \"Open the Project\" to continue.","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.":"Tak\xE9 podporujte v\xFDvoj GDevelop, open-source software! V budoucnosti bude v\xEDce online slu\u017Eeb pro u\u017Eivatele s p\u0159edplatn\xFDm.","You've made some changes here. Are you sure you want to discard them and open the function?":"You've made some changes here. Are you sure you want to discard them and open the function?","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 latest changes could not be applied to the preview(s) being run. You should start a new preview instead to make sure that all your changes are reflected in the game.":"Your latest changes could not be applied to the preview(s) being run. You should start a new preview instead to make sure that all your changes are reflected in the game.","Your name":"Va\u0161e jm\xE9no","Your new plan is now activated":"Your new plan is now activated","Your preview is ready! Click on the button to launch the preview.":"V\xE1\u0161 n\xE1hled je p\u0159ipraven! Klikn\u011Bte na tla\u010D\xEDtko pro spu\u0161t\u011Bn\xED n\xE1hledu.","Your preview is ready! On your mobile or tablet, open your browser and enter in the address bar:":"V\xE1\u0161 n\xE1hled je p\u0159ipraven! Na va\u0161em mobilu nebo tabletu, otev\u0159ete prohl\xED\u017Ee\u010D a zadejte tuto adresu:","Your project is registered online. This allows you to get access to metrics collected anonymously, like the number of daily players and retention of the players after a few days.":"Your project is registered online. This allows you to get access to metrics collected anonymously, like the number of daily players and retention of the players after a few days.","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":"YourGame.json","Z Order":"Z Order","Z Order of objects created from events":"Z Order of objects created from events","Zoom in":"Zoom in","Zoom in (you can also use Ctrl + Mouse wheel)":"Zoom in (you can also use Ctrl + Mouse wheel)","Zoom out":"Zoom out","Zoom out (you can also use Ctrl + Mouse wheel)":"Zoom out (you can also use Ctrl + Mouse wheel)","add":"p\u0159idat","divide by":"divide by","false":"nepravda","iOS & Android (manual)":"iOS a Android (manu\xE1ln\xED)","iOS (iPhone and iPad) icons:":"iOS (iPhone a iPad) ikony:","macOS (zip file)":"macOS (soubor zip)","macOS (zip)":"macOS (zip)","multiply by":"multiply by","no":"ne","or":"nebo","set to":"set to","subtract":"subtract","the property {propertyName}":function(a){return["the property ",a("propertyName")]},"true":"pravda","yes":"ano","{0}\u20AC/month":function(a){return[a("0"),"\u20AC/m\u011Bs\xEDc"]},"{propertyName} property":function(a){return[a("propertyName")," property"]},"~{0} minutes.":function(a){return["~",a("0")," minut."]},"\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":"P\u0159i exportu do\u0161lo k chyb\u011B! Nelze exportovat zdrojov\xE9 soubory:\n","Unable to write ":"Nelze zapisovat ","Could not copy external file":"Nelze kop\xEDrovat extern\xED soubor","Error during exporting! Unable to export events:\n":"P\u0159i exportu do\u0161lo k chyb\u011B! Nelze exportovat ud\xE1losti:\n","Error during export:\n":"Chyba p\u0159i exportu:\n","Storage":"Ulo\u017Ei\u0161t\u011B","Consider objects touching each other, but not overlapping, as in collision (default: no)":"Consider objects touching each other, but not overlapping, as in collision (default: no)","Javascript code":"K\xF3d v jazyce JavaScript","Insert some Javascript code into events":"Insert some Javascript code into events","HTML5 (Web and Android games)":"HTML5 (Web and Android games)","HTML5 and javascript based games for web browsers.":"HTML5 a javascript hry pro webov\xE9 prohl\xED\u017Ee\u010De.","Enables the creation of 2D games that can be played in web browsers. These can also be exported to Android with third-party tools.":"Enables the creation of 2D games that can be played in web browsers. These can also be exported to Android with third-party tools.","Linked objects":"Propojen\xE9 objekty","This Extension can virtually link two objects.":"Toto roz\u0161\xED\u0159en\xED m\u016F\u017Ee prakticky propojit dva objekty.","Link two objects":"Propojit dva objekty","Link two objects together, so as to be able to get one from the other.":"Link two objects together, so as to be able to get one from the other.","Link _PARAM1_ and _PARAM2_":"Spojit_PARAM1_and_PARAM2_","Object 1":"Objekt 1","Object 2":"Object 2","Unlink two objects":"Odpojit dva objekty","Unlink two objects.":"Unlink two objects.","Unlink _PARAM1_ and _PARAM2_":"Unlink _PARAM1_ and _PARAM2_","Unlink all objects from an object":"Unlink all objects from an object","Unlink all objects from an object.":"Unlink all objects from an object.","Unlink all objects from _PARAM1_":"Unlink all objects from _PARAM1_","Take into account linked objects":"Take into account linked objects","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.":"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.","Take into account all \"_PARAM1_\" linked to _PARAM2_":"Take into account all \"_PARAM1_\" linked to _PARAM2_","Pick these objects...":"Pick these objects...","...if they are linked to this object":"...if they are linked to this object","Take objects linked to the object into account for next actions.":"Take objects linked to the object into account for next actions.","Text object":"Text object","This Extension enables the use of an object that displays text.":"This Extension enables the use of an object that displays text.","Text":"Text","Displays a text":"Displays a text","Modify the text":"Modify the text","Modify the text of a Text object.":"Modify the text of a Text object.","the text":"the text","Compare the text":"Compare the text","Compare the text of a Text object.":"Compare the text of a Text object.","Font":"P\xEDsmo","Change the font of the text.":"Change the font of the text.","Change font of _PARAM0_ to _PARAM1_":"Change font of _PARAM0_ to _PARAM1_","Change the size of the text.":"Change the size of the text.","the size of the text":"the size of the text","Compare the size of the text":"Compare the size of the text","Scale on X axis":"Scale on X axis","Compare the scale of the text on the X axis":"Compare the scale of the text on the X axis","the scale on the X axis":"the scale on the X axis","Modify the scale of the text on the X axis (default scale is 1)":"Modify the scale of the text on the X axis (default scale is 1)","Scale":"Scale","Scale on Y axis":"Scale on Y axis","Compare the scale of the text on the Y axis":"Compare the scale of the text on the Y axis","the scale on the Y axis":"m\u011B\u0159\xEDtko na ose Y","Modify the scale of the text on the Y axis (default scale is 1)":"Upravit m\u011B\u0159\xEDtko textu v ose Y (v\xFDchoz\xED m\u011B\u0159\xEDtko je 1)","Modify the scale of the specified object (default scale is 1)":"Modify the scale of the specified object (default scale is 1)","the scale":"the scale","Change the color of the text. The color is white by default.":"Change the color of the text. The color is white by default.","Change color of _PARAM0_ to _PARAM1_":"Change color of _PARAM0_ to _PARAM1_","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":"First Color","Second Color":"Second Color","Third Color":"Third Color","Fourth Color":"Fourth Color","Outline":"Outline","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":"Thickness","Change Shadow":"Change Shadow","Change the shadow of the text.":"Change the shadow of the text.","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":"Effects/Shadow","Distance":"Distance","Blur":"Blur","Show Shadow":"Show Shadow","Show the shadow of the text.":"Show the shadow of the text.","Show the shadow of _PARAM0_: _PARAM1_":"Show the shadow of _PARAM0_: _PARAM1_","Show the shadow":"Show the shadow","Change text opacity":"Change text opacity","Change the opacity of a Text. 0 is fully transparent, 255 is opaque (default).":"Change the opacity of a Text. 0 is fully transparent, 255 is opaque (default).","the opacity":"the opacity","Opacity":"Pr\u016Fhlednost","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":"Vyhlazov\xE1n\xED","Activate or deactivate text smoothing.":"Aktivovat nebo deaktivovat, vyhlazov\xE1n\xED textu.","Smooth _PARAM0_: _PARAM1_":"Smooth _PARAM0_: _PARAM1_","Style":"Styl","Smooth the text":"Vyhlazen\xED textu","Check if an object is smoothed":"Check if an object is smoothed","_PARAM0_ is smoothed":"_PARAM0_ is smoothed","De/activate bold":"De/activate bold","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":"Podtr\u017Een\xE9","De/activate underlined style.":"De/activate underlined style.","Set underlined style of _PARAM0_: _PARAM1_":"Set underlined style of _PARAM0_: _PARAM1_","Underline":"Podtrhnout","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":"Rotace","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.":"Set the number of pixels around a text object. If the shadow or the outline around the text are getting cropped, raise this value.","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":"Pr\u016Fhlednost textov\xE9ho objektu","Font Size":"Velikost p\xEDsma","Physics Engine (deprecated)":"Fyzik\xE1ln\xED Engine (zastaral\xE9)","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":"Movement","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":"Fixed rotation","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":"Jin\xE9","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 position","Y position":"Y position","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":"Hodnota","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":"Gravity","Modify the gravity":"Modify the gravity","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":"Shape","Dynamic object":"Dynamic object","Consider as bullet (better collision handling)":"Consider as bullet (better collision handling)","Mass density":"Mass density","Friction":"Friction","Restitution (elasticity)":"Restitution (elasticity)","Linear Damping":"Linear Damping","Angular Damping":"Angular Damping","Gravity on X axis (in m/s\xB2)":"Gravity on X axis (in m/s\xB2)","Gravity on Y axis (in m/s\xB2)":"Gravity on Y axis (in 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":"Viditelnost","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","Tint color":"Tint color","Change the tint of a Panel Sprite. The default color is white.":"Change the tint of a Panel Sprite. The default color is white.","Change tint of _PARAM0_ to _PARAM1_":"Change tint of _PARAM0_ to _PARAM1_","Tint":"Tint","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.","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":"Obr\xE1zek","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.":"Test emission Y direction.","Emission Z direction":"Emission Z direction","Modify emission Z direction.":"Modify emission Z direction.","the emission Z direction":"the emission Z direction","Test emission Z direction.":"Test emission Z direction.","Emission angle":"Emission angle","Modify emission angle.":"Modify emission angle.","the emission angle":"the emission angle","Test the value of emission angle of the emitter.":"Test the value of emission angle of the emitter.","Emission angle 1":"Emission angle 1","Change emission angle #1":"Change emission angle #1","the 1st emission angle":"the 1st emission angle","Test the value of emission 1st angle of the emitter":"Test the value of emission 1st angle of the emitter","Emission angle 2":"Emission angle 2","Change emission angle #2":"Change emission angle #2","the 2nd emission angle":"the 2nd emission angle","Test the emission angle #2 of the emitter.":"Test the emission angle #2 of the emitter.","Angle of the spray cone":"Angle of the spray cone","Modify the angle of the spray cone.":"Modify the angle of the spray cone.","the angle of the spray cone":"the angle of the spray cone","Test the angle of the spray cone of the emitter":"Test the angle of the spray cone of the emitter","Modify friction applied to particles.":"Modify friction applied to particles.","the friction of particles":"the friction of particles","Test friction applied to particles.":"Test friction applied to particles.","Creation radius":"Creation radius","Modify creation radius of particles.\nParticles have to be recreated in order to take changes in account.":"Modify creation radius of particles.\nParticles have to be recreated in order to take changes in account.","the creation radius":"the creation radius","Test creation radius of particles.":"Test creation radius of particles.","Minimum lifetime":"Minimum lifetime","Modify particles minimum lifetime.Particles have to be recreated in order to take changes in account.":"Modify particles minimum lifetime.Particles have to be recreated in order to take changes in account.","the minimum lifetime of particles":"the minimum lifetime of particles","Test minimum lifetime of particles.":"Test minimum lifetime of particles.","Maximum lifetime":"Maximum lifetime","Modify particles maximum lifetime.\nParticles have to be recreated in order to take changes in account.":"Modify particles maximum lifetime.\nParticles have to be recreated in order to take changes in account.","the maximum lifetime of particles":"the maximum lifetime of particles","Test maximum lifetime of particles.":"Test maximum lifetime of particles.","Gravity value on X axis":"Gravity value on X axis","Change value of the gravity on X axis.":"Change value of the gravity on X axis.","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 Gravity","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":"Initial color","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":"Final color","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":"Test parameter 2 of blue color","Green color, parameter 1":"Green color, parameter 1","Modify parameter 1 of green color":"Modify parameter 1 of green color","the parameter 1 of green color":"the parameter 1 of green color","Test parameter 1 of green color":"Test parameter 1 of green color","Green color, parameter 2":"Green color, parameter 2","Modify the parameter 2 of the green color":"Modify the parameter 2 of the green color","the parameter 2 of green color":"the parameter 2 of green color","Test the parameter 2 of the green color":"Test the parameter 2 of the green color","SIze, parameter 1":"SIze, parameter 1","Modify parameter 1 of the size of particles":"Modify parameter 1 of the size of particles","the parameter 1 of size":"the parameter 1 of size","Size, parameter 1":"Size, parameter 1","Test parameter 1 of the size of particles":"Test parameter 1 of the size of particles","the parameter 1 of the size":"the parameter 1 of the size","Size, parameter 2":"Size, parameter 2","Modify parameter 2 of the size of particles":"Modify parameter 2 of the size of particles","the parameter 2 of size":"the parameter 2 of size","Test parameter 2 of the size of particles":"Test parameter 2 of the size of particles","the parameter 2 of the size":"the parameter 2 of the size","Angle, parameter 1":"Angle, parameter 1","Modify parameter 1 of the angle of particles":"Modify parameter 1 of the angle of particles","the parameter 1 of angle":"the parameter 1 of angle","Test parameter 1 of the angle of particles":"Test parameter 1 of the angle of particles","Angle, parameter 2":"Angle, parameter 2","Modify parameter 2 of the angle of particles":"Modify parameter 2 of the angle of particles","the parameter 2 of angle":"the parameter 2 of angle","Test parameter 2 of the angle of particles":"Test parameter 2 of the angle of particles","Transparency, parameter 1":"Transparency, parameter 1","Modify parameter 1 of the transparency of particles":"Modify parameter 1 of the transparency of particles","the parameter 1 of the transparency":"the parameter 1 of the transparency","Test parameter 1 of the transparency of particles":"Test parameter 1 of the transparency of particles","Transparency, parameter 2":"Transparency, parameter 2","Modify parameter 2 of the transparency of particles":"Modify parameter 2 of the transparency of particles","the parameter 2 of the transparency":"the parameter 2 of the transparency","Test parameter 2 of the transparency of particles":"Test parameter 2 of the transparency of particles","No more particles":"No more particles","Check if the object does not emit particles anylonger, so as to destroy it for example.":"Check if the object does not emit particles anylonger, so as to destroy it for example.","_PARAM0_ does not emit anylonger.":"_PARAM0_ does not emit anylonger.","Particles number":"Particles number","Recreate particles":"Recreate particles","Destroy and recreate particles, so as to take changes made to setup of the emitter in account.":"Destroy and recreate particles, so as to take changes made to setup of the emitter in account.","Recreate particles of _PARAM0_":"Recreate particles of _PARAM0_","Setup":"Setup","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":"Nov\xFD obr\xE1zek","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":"Pauza","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":"Bone","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":"Position Y","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","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":"Modification's sign","Check the bone angle (in degrees).":"Check the bone angle (in degrees).","the current angle :_PARAM1_":"the current angle :_PARAM1_","Sign of the test":"Sign of the test","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","Check the slot visibility.":"Check the slot visibility.","_PARAM0_:_PARAM1_ is visible":"_PARAM0_:_PARAM1_ is visible","Show":"Zobrazit","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","Is the game running as a preview":"Is the game running as a preview","Check if the game is currently being previewed in the editor. This can be used to enable a \"Debug mode\" or do some work only in previews.":"Check if the game is currently being previewed in the editor. This can be used to enable a \"Debug mode\" or do some work only in previews.","The game is being previewed in the editor":"The game is being previewed in the editor","Device has a touchscreen":"Device has a touchscreen","Check if the device running the game has a touchscreen (typically Android phones, iPhones, iPads, but also some laptops).":"Check if the device running the game has a touchscreen (typically Android phones, iPhones, iPads, but also some laptops).","The device has a touchscreen":"The device has a touchscreen","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 tint of a Tiled Sprite. The default color is white.":"Change the tint 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":"Controls","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":"Rychlost","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 movement of the object.":"Compare the angle of the top-down movement of the object.","the angle of movement":"the angle of movement","Speed on X axis":"Speed on X axis","Compare the velocity of the top-down movement of the object on the X axis.":"Compare the velocity of the top-down movement of the object on the X axis.","the speed of movement on X axis":"the speed of movement on X axis","Speed on Y axis":"Speed on Y axis","Compare the velocity of the top-down movement of the object on the Y axis.":"Compare the velocity of the top-down movement of the object on the Y axis.","the speed of movement on Y axis":"the speed of movement 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?","Check if the object is allowed to move diagonally":"Check 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","Check if the object is rotated while traveling on its path.":"Check 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","Check if a path has been found.":"Check if a path has been found.","A path has been found for _PARAM0_":"A path has been found for _PARAM0_","Destination reached":"Destination reached","Check if the destination was reached.":"Check 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_","Check if the object is allowed to move diagonally on the path":"Check 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_","Check if the object is rotated when traveling on its path.":"Check 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?","Check if the obstacle is impassable":"Check 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":"Nastaven\xED","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).","Ladder climbing speed":"Ladder climbing speed","Compare the ladder climbing speed (in pixels per second).":"Compare the ladder climbing speed (in pixels per second).","the ladder climbing speed":"the ladder climbing speed","Change the ladder climbing speed (in pixels per second).":"Change the ladder climbing speed (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).","Jump sustain time":"Jump sustain time","Compare the jump sustain time of the object (in seconds).":"Compare the jump sustain time of the object (in seconds).","the jump sustain time":"the jump sustain time","Change the jump sustain time of an object (in seconds).":"Change the jump sustain time of an object (in seconds).","Allow jumping again":"Allow jumping again","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","Can jump":"Can jump","Check if the object can jump.":"Check if the object can jump.","_PARAM0_ can jump":"_PARAM0_ can jump","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.","Platform grabbing":"Platform grabbing","Enable (or disable) the ability of the object to grab platforms when falling near to one.":"Enable (or disable) the ability of the object to grab platforms when falling near to one.","Allow _PARAM0_ to grab platforms: _PARAM2_":"Allow _PARAM0_ to grab platforms: _PARAM2_","Can grab platforms":"Can grab platforms","Check if the object can grab the platforms.":"Check if the object can grab the platforms.","_PARAM0_ can grab the platforms":"_PARAM0_ can grab the platforms","Current falling speed":"Current falling speed","Compare the current falling speed of the object (in pixels per second).":"Compare the current falling speed of the object (in pixels per second).","the current falling speed":"the current falling speed","Current jump speed":"Current jump speed","Compare the current jump speed of the object (in pixels per second).":"Compare the current jump speed of the object (in pixels per second).","the current jump speed":"the current jump speed","Current speed":"Current speed","Compare the current speed of the object (in pixels per second).":"Compare the current speed of the object (in pixels per second).","the current speed":"the current speed","Get the gravity applied on the object":"Get the gravity applied on the object","Get the maximum falling speed":"Get the maximum falling speed","Get the ladder climbing speed":"Get the ladder climbing speed","The time during which keeping the jump button held allow the initial jump speed to be maintained.":"The time during which keeping the jump button held allow the initial jump speed to be maintained.","Current fall speed":"Current fall speed","Platform":"Platforma","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","Maximum time (in seconds) during which the jump strength is sustained if the jump key is held - allowing variable height jumps.":"Maximum time (in seconds) during which the jump strength is sustained if the jump key is held - allowing variable height jumps.","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_ (start: _PARAM1_;_PARAM2_)":"Begins drawing filling of an advanced path with _PARAM0_ (start: _PARAM1_;_PARAM2_)","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_","Clear between frames":"Clear between frames","Activate (or deactivate) the clearing of the rendered shape at the beginning of each frame.":"Activate (or deactivate) the clearing of the rendered shape at the beginning of each frame.","Clear the rendered image of _PARAM0_ between each frame: _PARAM1_":"Clear the rendered image of _PARAM0_ between each frame: _PARAM1_","Clear between each frame":"Clear between each frame","Check if the rendered image is cleared between frames.":"Check if the rendered image is cleared between frames.","_PARAM0_ is clearing its rendered image between each frame":"_PARAM0_ is clearing its rendered image between each frame","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":"Obr\xE1zky","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":"Prom\u011Bnn\xE9","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 width tween":"Add object width tween","Add a tween animation for the object width.":"Add a tween animation for the object width.","Tween the width of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_":"Tween the width of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_","To width":"To width","Add object height tween":"Add object height tween","Add a tween animation for the object height.":"Add a tween animation for the object height.","Tween the height of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_":"Tween the height of _PARAM0_ to _PARAM3_ with easing _PARAM4_ over _PARAM5_ms as _PARAM2_","To height":"To height","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","AdMob":"AdMob","Allow the game to display AdMob banner, interstitial and reward video ads":"Allow the game to display AdMob banner, interstitial and reward video ads","AdMob App ID":"AdMob App ID","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":"Odstranit soubor","Delete a file from the filesystem.":"Delete a file from the filesystem.","Delete the file _PARAM0_":"Odstra\u0148te soubor _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.","Game executable file":"Game executable file","Get the path to this game executable file.":"Get the path to this game executable file.","Game executable folder":"Game executable folder","Get the path to this game executable folder.":"Get the path to this game 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).","User's Home folder":"User's Home folder","Get the path to the user home folder.":"Get the path to the user home folder.","Temp folder":"Temp folder","Get the path to temp folder.":"Get the path to temp folder.","Path delimiter":"Path delimiter","Get the operating system path delimiter.":"Get the operating system path delimiter.","Get directory name from a path":"Get directory name from a path","Returns the portion of the path that represents the directories, without the ending file name.":"Returns the portion of the path that represents the directories, without the ending file name.","File or folder path":"File or folder path","Get file name from a path":"Get file name from a path","Returns the name of the file with its extension, if any.":"Returns the name of the file with its extension, if any.","Get the extension from a file path":"Get the extension from a file path","Returns the extension of the file designated by the given path, including the extension period. For example: \".txt\".":"Returns the extension of the file designated by the given path, including the extension period. For example: \".txt\".","Advanced window management":"Advanced window management","Provides advanced features related to the game window positioning and interaction with the operating system.":"Provides advanced features related to the game window positioning and interaction with the operating system.","Change focus of the window":"Change focus of the window","Make the window gain or lose focus.":"Make the window gain or lose focus.","Focus the window: _PARAM0_":"Focus the window: _PARAM0_","Advanced window management/Windows, Linux, macOS":"Advanced window management/Windows, Linux, macOS","Focus the window?":"Focus the window?","Window focused":"Window focused","Checks if the window is focused.":"Checks if the window is focused.","The window is focused":"The window is focused","Change visibility of the window":"Change visibility of the window","Make the window visible or invisible.":"Make the window visible or invisible.","Window visible: _PARAM0_":"Window visible: _PARAM0_","Show window?":"Show window?","Window visible":"Window visible","Checks if the window is visible.":"Checks if the window is visible.","The window is visible":"The window is visible","Maximize the window":"Maximize the window","Maximize or unmaximize the window.":"Maximize or unmaximize the window.","Maximize window: _PARAM0_":"Maximize window: _PARAM0_","Maximize window?":"Maximize window?","Window maximized":"Window maximized","Checks if the window is maximized.":"Checks if the window is maximized.","The window is maximized":"The window is maximized","Minimize the window":"Minimize the window","Minimize or unminimize the window.":"Minimize or unminimize the window.","Minimize window: _PARAM0_":"Minimize window: _PARAM0_","Minimize window?":"Minimize window?","Window minimized":"Window minimized","Checks if the window is minimized.":"Checks if the window is minimized.","The window is minimized":"The window is minimized","Enable the window":"Enable the window","Enables or disables the window.":"Enables or disables the window.","Enable window: _PARAM0_":"Enable window: _PARAM0_","Enable window?":"Enable window?","Window enabled":"Window enabled","Checks if the window is enabled.":"Checks if the window is enabled.","The window is enabled":"The window is enabled","Allow resizing":"Allow resizing","Enables or disables resizing of the window by the user.":"Enables or disables resizing of the window by the user.","Enable window resizing: _PARAM0_":"Enable window resizing: _PARAM0_","Allow resizing?":"Allow resizing?","Window resizable":"Window resizable","Checks if the window can be resized.":"Checks if the window can be resized.","The window can be resized":"The window can be resized","Allow moving":"Allow moving","Enables or disables moving of the window by the user.":"Enables or disables moving of the window by the user.","Enable window moving: _PARAM0_":"Enable window moving: _PARAM0_","Allow moving?":"Allow moving?","Window movable":"Window movable","Checks if the window can be moved.":"Checks if the window can be moved.","The window can be moved":"The window can be moved","Allow maximizing":"Allow maximizing","Enables or disables maximizing of the window by the user.":"Enables or disables maximizing of the window by the user.","Enable window maximizing: _PARAM0_":"Enable window maximizing: _PARAM0_","Allow maximizing?":"Allow maximizing?","Window maximizable":"Window maximizable","Checks if the window can be maximized.":"Checks if the window can be maximized.","The window can be maximized":"The window can be maximized","Allow mimizing":"Allow mimizing","Enables or disables minimizing of the window by the user.":"Enables or disables minimizing of the window by the user.","Enable window minimizing: _PARAM0_":"Enable window minimizing: _PARAM0_","Allow minimizing?":"Allow minimizing?","Window minimizable":"Window minimizable","Checks if the window can be minimized.":"Checks if the window can be minimized.","The window can be minimized":"The window can be minimized","Allow full-screening":"Allow full-screening","Enables or disables full-screening of the window by the user.":"Enables or disables full-screening of the window by the user.","Enable window full-screening: _PARAM0_":"Enable window full-screening: _PARAM0_","Allow full-screening?":"Allow full-screening?","Window full-screenable":"Window full-screenable","Checks if the window can be full-screened.":"Checks if the window can be full-screened.","The window can be set in fullscreen":"The window can be set in fullscreen","Allow closing":"Allow closing","Enables or disables closing of the window by the user.":"Enables or disables closing of the window by the user.","Enable window closing: _PARAM0_":"Enable window closing: _PARAM0_","Allow closing?":"Allow closing?","Window closable":"Window closable","Checks if the window can be closed.":"Checks if the window can be closed.","The window can be closed":"The window can be closed","Make the windows always on top":"Make the windows always on top","Puts the window constantly above all other windows.":"Puts the window constantly above all other windows.","Make window always on top: _PARAM0_, level: _PARAM1_":"Make window always on top: _PARAM0_, level: _PARAM1_","Enable always on top?":"Enable always on top?","Level":"Level","Window always on top":"Window always on top","Checks if the window is always on top.":"Checks if the window is always on top.","The window is always on top":"The window is always on top","Enable kiosk mode":"Enable kiosk mode","Puts the window in kiosk mode. This prevents the user from exiting fullscreen.":"Puts the window in kiosk mode. This prevents the user from exiting fullscreen.","Enable kiosk mode: _PARAM0_":"Enable kiosk mode: _PARAM0_","Enable kiosk mode?":"Enable kiosk mode?","Kiosk mode":"Kiosk mode","Checks if the window is currently in kiosk mode.":"Checks if the window is currently in kiosk mode.","The window is in kiosk mode":"The window is in kiosk mode","Enable window shadow":"Enable window shadow","Enables or disables the window shadow.":"Enables or disables the window shadow.","Enable window shadow: _PARAM0_":"Enable window shadow: _PARAM0_","Enable shadow?":"Enable shadow?","Shadow enabled":"Shadow enabled","Checks if the window currently has it's shadow enabled.":"Checks if the window currently has it's shadow enabled.","The window has a shadow":"The window has a shadow","Enable content protection":"Enable content protection","Enables or disables the content protection mode. This should prevent screenshots of the game from being taken.":"Enables or disables the content protection mode. This should prevent screenshots of the game from being taken.","Enable content protection: _PARAM0_":"Enable content protection: _PARAM0_","Enable content protection?":"Enable content protection?","Allow focusing":"Allow focusing","Allow or disallow the user to focus the window.":"Allow or disallow the user to focus the window.","Allow to focus the window: _PARAM0_":"Allow to focus the window: _PARAM0_","Allow focus?":"Allow focus?","Flash the window":"Flash the window","Make the window flash or end flashing.":"Make the window flash or end flashing.","Make the window flash: _PARAM0_":"Make the window flash: _PARAM0_","Flash the window?":"Flash the window?","Set window opacity":"Set window opacity","Changes the window opacity.":"Changes the window opacity.","Set the window opacity to _PARAM0_":"Set the window opacity to _PARAM0_","New opacity":"New opacity","Set window position":"Set window position","Changes the window position.":"Changes the window position.","Set the window position to _PARAM0_;_PARAM1_":"Set the window position to _PARAM0_;_PARAM1_","Window X position":"Window X position","Returns the current window X position.":"Returns the current window X position.","Window Y position":"Window Y position","Returns the current window Y position.":"Returns the current window Y position.","Window opacity":"Window opacity","Returns the current window opacity (a number from 0 to 1, 1 being fully opaque).":"Returns the current window opacity (a number from 0 to 1, 1 being fully opaque).","Firebase":"Firebase","Use Google Firebase services (database, functions, storage...) in your game.":"Use Google Firebase services (database, functions, storage...) in your game.","Firebase configuration string":"Firebase configuration string","Enable analytics":"Enable analytics","Enables Analytics for that project.":"Enables Analytics for that project.","Firebase/Analytics":"Firebase/Analytics","Log an Event":"Log an Event","Triggers an Event/Conversion for the current user on the Analytics.Can also pass additional data to the Analytics":"Triggers an Event/Conversion for the current user on the Analytics.Can also pass additional data to the Analytics","Trigger Event _PARAM0_ with argument _PARAM1_":"Trigger Event _PARAM0_ with argument _PARAM1_","Event Name":"Event Name","Additional Data":"Additional Data","Change user UID":"Change user UID","Changes the current user's analytics identifier. This is what let Analytics differienciate user, so it should always be unique for each user. For advanced usage only.":"Changes the current user's analytics identifier. This is what let Analytics differienciate user, so it should always be unique for each user. For advanced usage only.","Set current user's ID to _PARAM0_":"Set current user's ID to _PARAM0_","New Unique ID":"New Unique ID","Set a user's property":"Set a user's property","Sets an user's properties.Can be used to classify user in Analytics.":"Sets an user's properties.Can be used to classify user in Analytics.","Set property _PARAM0_ of the current user to _PARAM1_":"Set property _PARAM0_ of the current user to _PARAM1_","Property Name":"Property Name","Property Data":"Property Data","Get Remote setting as String":"Get Remote setting as String","Get a setting from Firebase Remote Config as a string.":"Get a setting from Firebase Remote Config as a string.","Firebase/Remote Config":"Firebase/Remote Config","Setting Name":"Setting Name","Get Remote setting as Number":"Get Remote setting as Number","Get a setting from Firebase Remote Config as Number.":"Get a setting from Firebase Remote Config as Number.","Set Remote Config Auto Update Inteval":"Set Remote Config Auto Update Inteval","Sets Remote Config Auto Update Inteval.":"Sets Remote Config Auto Update Inteval.","Set Remote Config Auto Update Inteval to _PARAM0_":"Set Remote Config Auto Update Inteval to _PARAM0_","Update Interval in ms":"Update Interval in ms","Set the default configuration":"Set the default configuration","As the Remote Config is stored online, you need to set default values or the Remote Config expressions to return while there is no internet or the config is still loading.":"As the Remote Config is stored online, you need to set default values or the Remote Config expressions to return while there is no internet or the config is still loading.","Set default config to _PARAM0_":"Set default config to _PARAM0_","Structure with defaults":"Structure with defaults","Force sync the configuration":"Force sync the configuration","Use this to sync the Remote Config with the client at any time.":"Use this to sync the Remote Config with the client at any time.","Synchronize Remote Config":"Synchronize Remote Config","Create account with with email":"Create account with with email","Create an account with email and password as credentials.":"Create an account with email and password as credentials.","Create account with email _PARAM0_ and password _PARAM1_":"Create account with email _PARAM0_ and password _PARAM1_","Firebase/Authentication":"Firebase/Authentication","Callback variable with state (ok or error)":"Callback variable with state (ok or error)","Sign into an account with email":"Sign into an account with email","Sign into an account with email and password as credentials. ":"Sign into an account with email and password as credentials. ","Connect to account with email _PARAM0_ and password _PARAM1_":"Connect to account with email _PARAM0_ and password _PARAM1_","Log out of the account":"Log out of the account","Logs out of the current account. ":"Logs out of the current account. ","Log out from the account":"Log out from the account","Sign into an account with auth from provider":"Sign into an account with auth from provider","Sign into an account via an external provider. The available providers are: \"google\", \"facebook\", \"github\" and \"twitter\".\nProvider authentication only works in the browser! Not on previews or pc/mobile exports.":"Sign into an account via an external provider. The available providers are: \"google\", \"facebook\", \"github\" and \"twitter\".\nProvider authentication only works in the browser! Not on previews or pc/mobile exports.","Connect to account with Provider _PARAM0_":"Connect to account with Provider _PARAM0_","Sign In as an anonymous guest":"Sign In as an anonymous guest","Sign into a temporary anonymous account.":"Sign into a temporary anonymous account.","Authenticate anonymously":"Authenticate anonymously","Is the user signed in?":"Is the user signed in?","Checks if the user is signed in. \nYou should always use this before actions requiring authentications.":"Checks if the user is signed in. \nYou should always use this before actions requiring authentications.","Check for authentication":"Check for authentication","Get the user authentififcation token":"Get the user authentififcation token","Get the user authentififcation token. The token is the proof of authentication.":"Get the user authentififcation token. The token is the proof of authentication.","Is the user email address verified":"Is the user email address verified","Checks if the email address of the user got verified.":"Checks if the email address of the user got verified.","The email of the user is verified":"The email of the user is verified","Firebase/Authentication/User Management":"Firebase/Authentication/User Management","Get the user email address":"Get the user email address","Gets the user email address.":"Gets the user email address.","Get the accounts creation time":"Get the accounts creation time","Gets the accounts creation time.":"Gets the accounts creation time.","Get the user last login time":"Get the user last login time","Gets the user last login time.":"Gets the user last login time.","Get the user display name":"Get the user display name","Gets the user display name.":"Gets the user display name.","Get the user phone number":"Get the user phone number","Gets the user phone number.":"Gets the user phone number.","Get the user UID":"Get the user UID","Gets the user Unique IDentifier. Use that to link data to an user instead of the name or email.":"Gets the user Unique IDentifier. Use that to link data to an user instead of the name or email.","Get the user tenant ID":"Get the user tenant ID","Gets the user tenant ID. For advanced usage only.":"Gets the user tenant ID. For advanced usage only.","Get the user refresh token":"Get the user refresh token","Gets the user refresh token. For advanced usage only.":"Gets the user refresh token. For advanced usage only.","Get the user profile picture URL":"Get the user profile picture URL","Gets an URL to the user profile picture.":"Gets an URL to the user profile picture.","Send a verification email":"Send a verification email","Send a link per email to verify the user email.":"Send a link per email to verify the user email.","Send verification email":"Send verification email","Set display name":"Set display name","Sets the user display name.":"Sets the user display name.","Set the user's display name to _PARAM0_":"Set the user's display name to _PARAM0_","New display name":"New display name","Set the user profile picture":"Set the user profile picture","Sets the user profile picture URL to a new one.":"Sets the user profile picture URL to a new one.","Set the user's profile picture URL to _PARAM0_":"Set the user's profile picture URL to _PARAM0_","New profile picture URL":"New profile picture URL","Change the user email":"Change the user email","This action is dangerous so it requires reauthentication.\nChanges the user's email address.":"This action is dangerous so it requires reauthentication.\nChanges the user's email address.","Change the user's email to _PARAM0_ and store result in _PARAM4_ (send verification email: _PARAM3_)":"Change the user's email to _PARAM0_ and store result in _PARAM4_ (send verification email: _PARAM3_)","Firebase/Authentication/User Management/Advanced":"Firebase/Authentication/User Management/Advanced","Old email":"Old email","New email":"New email","Send a verification email before doing the change?":"Send a verification email before doing the change?","Change the user email (Provider)":"Change the user email (Provider)","This action is dangerous so it requires reauthentication.\nChanges the user's email address.\nThis is the same as Change the user email but reauthenticates via an external provider.":"This action is dangerous so it requires reauthentication.\nChanges the user's email address.\nThis is the same as Change the user email but reauthenticates via an external provider.","Change the user's email to _PARAM0_ and store result in _PARAM2_ (send verification email: _PARAM1_)":"Change the user's email to _PARAM0_ and store result in _PARAM2_ (send verification email: _PARAM1_)","Change the user password":"Change the user password","This action is dangerous so it requires reauthentication.\nChanges the user password.":"This action is dangerous so it requires reauthentication.\nChanges the user password.","Change the user password to _PARAM2_ and store result in _PARAM4_ (send verification email: _PARAM3_)":"Change the user password to _PARAM2_ and store result in _PARAM4_ (send verification email: _PARAM3_)","Old password":"Old password","New password":"New password","Change the user password (Provider)":"Change the user password (Provider)","This action is dangerous so it requires reauthentication.\nChanges the user password.\nThis is the same as \"Change the user password\" but reauthenticates via an external provider.":"This action is dangerous so it requires reauthentication.\nChanges the user password.\nThis is the same as \"Change the user password\" but reauthenticates via an external provider.","Change the user password to _PARAM0_ and store result in _PARAM2_ (send verification email: _PARAM1_)":"Change the user password to _PARAM0_ and store result in _PARAM2_ (send verification email: _PARAM1_)","New Password":"New Password","Delete the user account":"Delete the user account","This action is dangerous so it requires reauthentication.\nDeletes the user account.":"This action is dangerous so it requires reauthentication.\nDeletes the user account.","Delete the user account and store result in _PARAM2_":"Delete the user account and store result in _PARAM2_","Delete the user account (Provider)":"Delete the user account (Provider)","This action is dangerous so it requires reauthentication.\nDeletes the user account.\nThis is the same as \"Delete the user account\" but reauthenticates via an external provider.":"This action is dangerous so it requires reauthentication.\nDeletes the user account.\nThis is the same as \"Delete the user account\" but reauthenticates via an external provider.","Delete the user account and store result in _PARAM0_":"Delete the user account and store result in _PARAM0_","Enable performance measuring":"Enable performance measuring","Enables performance measuring.":"Enables performance measuring.","Firebase/Performance Measuring":"Firebase/Performance Measuring","Create a custom performance tracker":"Create a custom performance tracker","Creates a new custom performance tracker (If it doesn't already exists). They are used to measure performance of custom events.":"Creates a new custom performance tracker (If it doesn't already exists). They are used to measure performance of custom events.","Create performance tracker: _PARAM0_":"Create performance tracker: _PARAM0_","Tracker Name":"Tracker Name","Start a tracer":"Start a tracer","Start measuring performance for that tracer":"Start measuring performance for that tracer","Start performance measuring on tracer _PARAM0_":"Start performance measuring on tracer _PARAM0_","Stop a tracer":"Stop a tracer","Stop measuring performance for that tracer":"Stop measuring performance for that tracer","Stop performance measuring on tracer _PARAM0_":"Stop performance measuring on tracer _PARAM0_","Record performance":"Record performance","Record performance for a delimited period of time. Use this if you want to measure the performance for a specified duration.":"Record performance for a delimited period of time. Use this if you want to measure the performance for a specified duration.","Record performance for _PARAM1_ms with a delay of _PARAM2_ms (store in tracker _PARAM0_)":"Record performance for _PARAM1_ms with a delay of _PARAM2_ms (store in tracker _PARAM0_)","Delay before measuring start (in ms)":"Delay before measuring start (in ms)","Measuring duration (in ms)":"Measuring duration (in ms)","Call a HTTP function":"Call a HTTP function","Calls a HTTP function by name, and store the result in a variable.":"Calls a HTTP function by name, and store the result in a variable.","Call HTTP Function _PARAM0_ with parameter(s) _PARAM1_ (Callback variables: Value: _PARAM2_ State: _PARAM3_)":"Call HTTP Function _PARAM0_ with parameter(s) _PARAM1_ (Callback variables: Value: _PARAM2_ State: _PARAM3_)","Firebase/Functions":"Firebase/Functions","HTTP Function Name":"HTTP Function Name","Parameter(s) as JSON or string.":"Parameter(s) as JSON or string.","Callback variable with returned value":"Callback variable with returned value","Write a document to firestore":"Write a document to firestore","Writes a document (variable) to cloud firestore.":"Writes a document (variable) to cloud firestore.","Write _PARAM2_ to firestore in document _PARAM1_ of collection _PARAM0_ (store result state in _PARAM3_)":"Write _PARAM2_ to firestore in document _PARAM1_ of collection _PARAM0_ (store result state in _PARAM3_)","Firebase/Cloud Firestore":"Firebase/Cloud Firestore","Collection":"Collection","Document":"Document","Variable to write":"Variable to write","Write a field in firestore":"Write a field in firestore","Writes a field of a firestore document.":"Writes a field of a firestore document.","Write _PARAM3_ to firestore in field _PARAM2_ of document _PARAM1_ in collection _PARAM0_ (store result state in _PARAM4_, Merge: _PARAM5_)":"Write _PARAM3_ to firestore in field _PARAM2_ of document _PARAM1_ in collection _PARAM0_ (store result state in _PARAM4_, Merge: _PARAM5_)","Field to write":"Field to write","Value to write":"Value to write","Merge Document?":"Merge Document?","Update a document in firestore":"Update a document in firestore","Updates a firestore document (variable).":"Updates a firestore document (variable).","Update firestore document _PARAM1_ in collection _PARAM0_ with _PARAM2_ (store result state in _PARAM3_)":"Update firestore document _PARAM1_ in collection _PARAM0_ with _PARAM2_ (store result state in _PARAM3_)","Variable to update with":"Variable to update with","Update a field of a document":"Update a field of a document","Updates a field of a firestore document.":"Updates a field of a firestore document.","Update field _PARAM2_ of firestore document _PARAM1_ in collection _PARAM0_ with _PARAM3_ (store result state in _PARAM4_)":"Update field _PARAM2_ of firestore document _PARAM1_ in collection _PARAM0_ with _PARAM3_ (store result state in _PARAM4_)","Field to update":"Field to update","Delete a document in firestore":"Delete a document in firestore","Deletes a firestore document (variable).":"Deletes a firestore document (variable).","Delete firestore document _PARAM1_ in collection _PARAM0_ (store result state in _PARAM2_)":"Delete firestore document _PARAM1_ in collection _PARAM0_ (store result state in _PARAM2_)","Delete a field of a document":"Delete a field of a document","Deletes a field of a firestore document.":"Deletes a field of a firestore document.","Delete field _PARAM2_ of firestore document _PARAM1_ in collection _PARAM0_ with (store result state in _PARAM3_)":"Delete field _PARAM2_ of firestore document _PARAM1_ in collection _PARAM0_ with (store result state in _PARAM3_)","Field to delete":"Field to delete","Get a document from firestore":"Get a document from firestore","Gets a firestore document and store it in a variable.":"Gets a firestore document and store it in a variable.","Load firestore document _PARAM1_ from collection _PARAM0_ into _PARAM2_ (store result state in _PARAM3_)":"Load firestore document _PARAM1_ from collection _PARAM0_ into _PARAM2_ (store result state in _PARAM3_)","Callback variable where to load the document":"Callback variable where to load the document","Get a field of a document":"Get a field of a document","Gets the value of a field in a firestore document.":"Gets the value of a field in a firestore document.","Load field _PARAM2_ of firestore document _PARAM1_ in collection _PARAM0_ into _PARAM3_ (store result state in _PARAM4_)":"Load field _PARAM2_ of firestore document _PARAM1_ in collection _PARAM0_ into _PARAM3_ (store result state in _PARAM4_)","Field to get":"Field to get","Callback variable where to store the field's value":"Callback variable where to store the field's value","Check for a document's existence":"Check for a document's existence","Checks for the existence of a document. Sets the result variable to 1 if it exists else to 2.":"Checks for the existence of a document. Sets the result variable to 1 if it exists else to 2.","Check for existence of _PARAM1_ in collection _PARAM0_ and store result in _PARAM2_ (store result state in _PARAM3_)":"Check for existence of _PARAM1_ in collection _PARAM0_ and store result in _PARAM2_ (store result state in _PARAM3_)","Callback variable where to store the result":"Callback variable where to store the result","Check for existence of a document's field":"Check for existence of a document's field","Checks for the existence of a field in a document. Sets the result variable to 1 if it exists else to 2.":"Checks for the existence of a field in a document. Sets the result variable to 1 if it exists else to 2.","Check for existence of _PARAM2_ in document _PARAM1_ of collection _PARAM0_ and store result in _PARAM3_ (store result state in _PARAM4_)":"Check for existence of _PARAM2_ in document _PARAM1_ of collection _PARAM0_ and store result in _PARAM3_ (store result state in _PARAM4_)","Field to check":"Field to check","Callback Variable where to store the result":"Callback Variable where to store the result","List all documents of a collection":"List all documents of a collection","Generates a list of all document names in a collection, and stores it as a structure.":"Generates a list of all document names in a collection, and stores it as a structure.","List all documents in _PARAM0_ and store result in _PARAM1_ (store result state in _PARAM2_)":"List all documents in _PARAM0_ and store result in _PARAM1_ (store result state in _PARAM2_)","Upload a file":"Upload a file","Upload a file to firebase Storage.":"Upload a file to firebase Storage.","Save _PARAM0_ in location _PARAM1_ to Firebase storage and store access URL in _PARAM3_ (Format: _PARAM2_, Store result state in _PARAM4_)":"Save _PARAM0_ in location _PARAM1_ to Firebase storage and store access URL in _PARAM3_ (Format: _PARAM2_, Store result state in _PARAM4_)","Firebase/Storage":"Firebase/Storage","File content":"File content","Storage path":"Storage path","File content format":"File content format","Callback Variable where to store the upload ID":"Callback Variable where to store the upload ID","Get Download URL":"Get Download URL","Get a unique download URL for a file.":"Get a unique download URL for a file.","Get a download url for _PARAM0_ and store it in _PARAM1_ (store result state in _PARAM2_)":"Get a download url for _PARAM0_ and store it in _PARAM1_ (store result state in _PARAM2_)","Storage path to the file":"Storage path to the file","Write a variable to Database":"Write a variable to Database","Writes a variable to Database.":"Writes a variable to Database.","Write _PARAM1_ to Database in _PARAM0_ (store result state in _PARAM2_)":"Write _PARAM1_ to Database in _PARAM0_ (store result state in _PARAM2_)","Firebase/Realtime Database":"Firebase/Realtime Database","Write a field in Database":"Write a field in Database","Writes a field of a Database document.":"Writes a field of a Database document.","Write _PARAM2_ in field _PARAM1_ of _PARAM0_ (store result state in _PARAM3_)":"Write _PARAM2_ in field _PARAM1_ of _PARAM0_ (store result state in _PARAM3_)","Update a document in Database":"Update a document in Database","Updates a variable on the database.":"Updates a variable on the database.","Update varable _PARAM0_ with _PARAM1_ (store result state in _PARAM2_)":"Update varable _PARAM0_ with _PARAM1_ (store result state in _PARAM2_)","Updates a field of a Database document.":"Updates a field of a Database document.","Update field _PARAM1_ of _PARAM0_ with _PARAM2_ (store result state in _PARAM3_)":"Update field _PARAM1_ of _PARAM0_ with _PARAM2_ (store result state in _PARAM3_)","Delete a database variable":"Delete a database variable","Deletes a variable from the database.":"Deletes a variable from the database.","Delete variable _PARAM0_ from database (store result state in _PARAM1_)":"Delete variable _PARAM0_ from database (store result state in _PARAM1_)","Delete a field of a variable":"Delete a field of a variable","Deletes a field of a variable on the database.":"Deletes a field of a variable on the database.","Delete field _PARAM1_ of variable _PARAM0_ on the database (store result state in _PARAM2_)":"Delete field _PARAM1_ of variable _PARAM0_ on the database (store result state in _PARAM2_)","Get a variable from the database":"Get a variable from the database","Gets a variable from the database and store it in a Scene variable.":"Gets a variable from the database and store it in a Scene variable.","Load database variable _PARAM0_ into _PARAM1_ (store result state in _PARAM2_)":"Load database variable _PARAM0_ into _PARAM1_ (store result state in _PARAM2_)","Callback variable where to store the data":"Callback variable where to store the data","Get a field of a variable":"Get a field of a variable","Gets the value of a field in a variable from the database and store it in a scene variable.":"Gets the value of a field in a variable from the database and store it in a scene variable.","Load field _PARAM1_ of database variable _PARAM0_ into _PARAM2_ (store result state in _PARAM3_)":"Load field _PARAM1_ of database variable _PARAM0_ into _PARAM2_ (store result state in _PARAM3_)","Check for a variable's existence":"Check for a variable's existence","Checks for the existence of a variable. Sets the result variable to 1 if it exists else to 2.":"Checks for the existence of a variable. Sets the result variable to 1 if it exists else to 2.","Check for existence of _PARAM0_ and store result in _PARAM1_ (store result state in _PARAM2_)":"Check for existence of _PARAM0_ and store result in _PARAM1_ (store result state in _PARAM2_)","Check for existence of a variable's field":"Check for existence of a variable's field","Checks for the existence of a field in a variable. Sets the result variable to 1 if it exists else to 2.":"Checks for the existence of a field in a variable. Sets the result variable to 1 if it exists else to 2.","Check for existence of _PARAM1_ in database variable _PARAM0_ and store result in _PARAM2_ (store result state in _PARAM3_)":"Check for existence of _PARAM1_ in database variable _PARAM0_ and store result in _PARAM2_ (store result state in _PARAM3_)","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.","World gravity on X axis":"World gravity on X axis","Compare the world gravity on X axis.":"Compare the world gravity on X axis.","the world gravity on X axis":"the world gravity on X axis","Global":"Global","World gravity on Y axis":"World gravity on Y axis","Compare the world gravity on Y axis.":"Compare the world gravity on Y axis.","the world gravity on Y axis":"the world gravity on Y axis","World gravity":"World gravity","Modify the world gravity.":"Modify the world gravity.","While an object is needed, this will apply to all objects using the behavior.":"While an object is needed, this will apply to all objects using the behavior.","Set the world gravity of _PARAM0_ to _PARAM2_;_PARAM3_":"Set the world gravity of _PARAM0_ to _PARAM2_;_PARAM3_","Gravity X":"Gravity X","Gravity Y":"Gravity Y","World time scale":"World time scale","Compare the world time scale.":"Compare the world time scale.","the world time scale":"the world time scale","Modify the world time scale.":"Modify the world time scale.","Set the world time scale of _PARAM0_ to _PARAM2_":"Set the world time scale of _PARAM0_ 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 to an object (makes the object move towards a specific point).":"Add a mouse joint to an object (makes the object move towards a specific point).","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_","Peer-to-Peer communication (experimental)":"Peer-to-Peer communication (experimental)","Allow game instances to communicate remotely using messages sent via WebRTC (P2P)":"Allow game instances to communicate remotely using messages sent via WebRTC (P2P)","Event triggered by peer":"Event triggered by peer","Triggers once when a connected client sends the event":"Triggers once when a connected client sends the event","Event _PARAM0_ received from other client (data loss: _PARAM1_)":"Event _PARAM0_ received from other client (data loss: _PARAM1_)","P2P (experimental)":"P2P (experimental)","Event name":"Event name","Data loss allowed?":"Data loss allowed?","Is P2P ready":"Is P2P ready","True if the peer-to-peer extension initialized and is ready to use.":"True if the peer-to-peer extension initialized and is ready to use.","Is P2P ready?":"Is P2P ready?","An error occurred":"An error occurred","Triggers once when an error occurs. Use P2P::GetLastError() expression to get the content of the error if you want to analyse it or display it to the user.":"Triggers once when an error occurs. Use P2P::GetLastError() expression to get the content of the error if you want to analyse it or display it to the user.","P2P error occurred":"P2P error occurred","Peer disconnected":"Peer disconnected","Triggers once when a peer disconnects.":"Triggers once when a peer disconnects.","P2P peer disconnected":"P2P peer disconnected","Peer Connected":"Peer Connected","Triggers once when a remote peer initiates a connection.":"Triggers once when a remote peer initiates a connection.","P2P peer connected":"P2P peer connected","Connect to another client":"Connect to another client","Connects the current client to another client using its id.":"Connects the current client to another client using its id.","Connect to P2P client _PARAM0_":"Connect to P2P client _PARAM0_","ID of the other client":"ID of the other client","Connect to a broker server":"Connect to a broker server","Connects the extension to a broker server.":"Connects the extension to a broker server.","Connect to the broker server at http://_PARAM0_:_PARAM1_/":"Connect to the broker server at http://_PARAM0_:_PARAM1_/","Host":"Host","Port":"Port","SSl enabled?":"SSl enabled?","Connect to the default broker server":"Connect to the default broker server","Connects to the default broker server.":"Connects to the default broker server.","Trigger event on all connected clients":"Trigger event on all connected clients","Triggers an event on all connected clients":"Triggers an event on all connected clients","Trigger event _PARAM0_ on all connected clients (extra data: _PARAM1_)":"Trigger event _PARAM0_ on all connected clients (extra data: _PARAM1_)","Extra data (optional)":"Extra data (optional)","Trigger event on a specific client":"Trigger event on a specific client","Triggers an event on a specific connected client":"Triggers an event on a specific connected client","Trigger event _PARAM1_ on client _PARAM0_ (extra data: _PARAM2_)":"Trigger event _PARAM1_ on client _PARAM0_ (extra data: _PARAM2_)","Trigger event on all connected clients (variable)":"Trigger event on all connected clients (variable)","Variable containing the extra data":"Variable containing the extra data","Trigger event on a specific client (variable)":"Trigger event on a specific client (variable)","Get event data (variable)":"Get event data (variable)","Store the data of the specified event in a variable. Check in the conditions that the event was received using the \"Event received\" condition.":"Store the data of the specified event in a variable. Check in the conditions that the event was received using the \"Event received\" condition.","Overwrite _PARAM1_ with variable sent with last trigger of _PARAM0_":"Overwrite _PARAM1_ with variable sent with last trigger of _PARAM0_","Variable where to store the received data":"Variable where to store the received data","Get event data":"Get event data","Returns the data received when the specified event was last triggered":"Returns the data received when the specified event was last triggered","Get client ID":"Get client ID","Gets the client ID of the current game instance":"Gets the client ID of the current game instance","Get last error":"Get last error","Gets the description of the last P2P error":"Gets the description of the last P2P error","Get last disconnected peer":"Get last disconnected peer","Gets the ID of the latest peer that has disconnected.":"Gets the ID of the latest peer that has disconnected.","Get ID of the connected peer":"Get ID of the connected peer","Gets the ID of the newly connected peer.":"Gets the ID of the newly connected peer.","Lights":"Lights","Allow to display lights on the screen and mark objects as obstacles for the lights.":"Allow to display lights on the screen and mark objects as obstacles for the lights.","Light Obstacle Behavior":"Light Obstacle Behavior","This behavior makes the object an obstacle to the light. The light emitted by light objects will be stopped by the object.":"This behavior makes the object an obstacle to the light. The light emitted by light objects will be stopped by the object.","Radius":"Radius","Debug mode":"Debug mode","When activated, display the lines used to render the light - useful to understand how the light is rendered on screen.":"When activated, display the lines used to render the light - useful to understand how the light is rendered on screen.","Light texture (optional)":"Light texture (optional)","A texture to be used to display the light. If you don't specify a texture, the light is rendered as fading from bright, in its center, to dark.":"A texture to be used to display the light. If you don't specify a texture, the light is rendered as fading from bright, in its center, to dark.","Light":"Light","Displays a light on the scene, with a customizable radius and color. Add then the Light Obstacle behavior to the objects that must act as obstacle to the lights.":"Displays a light on the scene, with a customizable radius and color. Add then the Light Obstacle behavior to the objects that must act as obstacle to the lights.","Set the radius of light object":"Set the radius of light object","Set the radius of _PARAM0_ to: _PARAM1_":"Set the radius of _PARAM0_ to: _PARAM1_","Set the color of light object":"Set the color of light object","Set the color of light object in format \"R;G;B\" string.":"Set the color of light object in format \"R;G;B\" string.","Set the color of _PARAM0_ to: _PARAM1_":"Set the color of _PARAM0_ to: _PARAM1_","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)","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 (color of the outline)":"Color (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 Property Name":"Dummy Property Name","Dummy Numeric Property Name":"Dummy Numeric Property Name","A boolean property":"A boolean property","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.","Select option at index _PARAM0_":"Select option at index _PARAM0_","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 string variable":"Set dialogue state string variable","Set dialogue state string variable. Use this to set a variable that the dialogue data is using.":"Set dialogue state string variable. Use this to set a variable that the dialogue data is using.","Set dialogue state string variable _PARAM0_ to _PARAM1_":"Set dialogue state string variable _PARAM0_ to _PARAM1_","State Variable Name":"State Variable Name","Variable string value":"Variable string value","Set dialogue state number variable":"Set dialogue state number variable","Set dialogue state number variable. Use this to set a variable that the dialogue data is using.":"Set dialogue state number variable. Use this to set a variable that the dialogue data is using.","Set dialogue state number variable _PARAM0_ to _PARAM1_":"Set dialogue state number variable _PARAM0_ to _PARAM1_","Variable number value":"Variable number value","Set dialogue state boolean variable":"Set dialogue state boolean variable","Set dialogue state boolean variable. Use this to set a variable that the dialogue data is using.":"Set dialogue state boolean variable. Use this to set a variable that the dialogue data is using.","Set dialogue state boolean variable _PARAM0_ to _PARAM1_":"Set dialogue state boolean variable _PARAM0_ to _PARAM1_","Variable boolean value":"Variable boolean 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_","Clear dialogue state":"Clear dialogue state","Clear dialogue state. This resets all dialogue state accumulated by the player choices. Useful when the player is starting a new game.":"Clear dialogue state. This resets all dialogue state accumulated by the player choices. Useful when the player is starting a new game.","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":"Branch title has been visited","Check if a branch has been visited":"Check if a branch has been visited","Branch title _PARAM0_ has been visited":"Branch title _PARAM0_ has been visited","branch title":"branch title","Compare dialogue state string variable":"Compare dialogue state string variable","Compare dialogue state string variable. Use this to trigger game events via dialogue variables.":"Compare dialogue state string variable. Use this to trigger game events via dialogue variables.","Dialogue state string variable _PARAM0_ is equal to _PARAM1_":"Dialogue state string variable _PARAM0_ is equal to _PARAM1_","State variable":"State variable","Equal to":"Equal to","Compare dialogue state number variable":"Compare dialogue state number variable","Compare dialogue state number variable. Use this to trigger game events via dialogue variables.":"Compare dialogue state number variable. Use this to trigger game events via dialogue variables.","Dialogue state number variable _PARAM0_ is equal to _PARAM1_":"Dialogue state number variable _PARAM0_ is equal to _PARAM1_","Compare dialogue state boolean variable":"Compare dialogue state boolean 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 boolean variable _PARAM0_ is equal to _PARAM1_":"Dialogue state boolean variable _PARAM0_ is equal to _PARAM1_","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.","Debugger Tools":"Debugger Tools","Allow to interact with the editor debugger from the game.":"Allow to interact with the editor debugger from the game.","Pause game execution":"Pause game execution","This pauses the game, useful for inspecting the game state through the debugger. Note that events will be still executed until the end before the game is paused.":"This pauses the game, useful for inspecting the game state through the debugger. Note that events will be still executed until the end before the game is paused.","Unable to copy \"":"Unable to copy \"","\" to \"":"\" to \"","\".":"\".","Yes or no":"Ano nebo ne","Music":"Hudba","Sound":"Zvuk","Joystick axis":"Joystick axis","Variable of the object":"Variable of the object","Unknown":"Nezn\xE1m\xFD","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":"Window features","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":"Aktivovat celou obrazovku","Keep aspect ratio (HTML5 games only, yes by default)":"Keep aspect ratio (HTML5 games only, yes by default)","Fullscreen activated?":"Fullscreen activated?","Check if the game is currently in fullscreen.":"Check if the game is currently in fullscreen.","The game is in fullscreen":"The game is in fullscreen","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":"Vr\u0161ek","Right":"Right","Bottom":"Spodek","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":"Obrazovka","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":"Variable features","Built-in extension allowing to manipulate variables":"Built-in extension allowing to manipulate variables","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":"Prom\u011Bnn\xE1","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","Check if the specified child of the scene variable exists.":"Check 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","Check if the specified child of the global variable exists.":"Check 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":"Pokro\u010Dil\xE9 funkce ovl\xE1d\xE1n\xED","Built-in extension providing advanced control features.":"Built-in extension providing advanced control features.","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_","Check if a function parameter is set to true (or yes)":"Check if a function parameter is set to true (or yes)","Check if the specified function parameter (also called \"argument\") is set to True or Yes. If the argument is a string, an empty string is considered as \"false\". If it's a number, 0 is considered as \"false\".":"Check if the specified function parameter (also called \"argument\") is set to True or Yes. If the argument is a string, an empty string is considered as \"false\". If it's a number, 0 is considered as \"false\".","Parameter _PARAM0_ is true":"Parameter _PARAM0_ is true","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":"Joystick funkce","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":"Osa","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":"Scene management features","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":"N\xE1hodn\xFD","Maximum value":"Maxim\xE1ln\xED hodnota","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","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":"Zm\u011Bna sc\xE9ny","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":"Opustit hru","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":"Deaktivovat vstup pokud ztrat\xEDm zam\u011B\u0159en\xED","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":"Matematick\xE9 n\xE1stroje","Built-in extension providing mathematical tools":"Built-in extension providing mathematical tools","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","Angle between two positions":"Angle between two positions","Compute the angle between two positions.":"Compute the angle between two positions.","First point X position":"First point X position","First point Y position":"First point Y position","Second point X position":"Second point X position","Second point Y position":"Second point Y position","Distance between two positions":"Distance between two positions","Compute the distance between two positions.":"Compute the distance between two positions.","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":"Skupina","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 scene variable.\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 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 value in _PARAM3_":"Read _PARAM1_ from storage _PARAM0_ and store value in _PARAM3_","Scene variables":"Prom\u011Bnn\xE9 sc\xE9ny","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":"Odstranit 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":"Soubory","URL (or filename)":"URL (or filename)","Execute a command":"Spustit p\u0159\xEDkaz","This action executes the specified command.":"This action executes the specified command.","Execute _PARAM0_":"Execute _PARAM0_","Command":"Command","Basic internet features":"Z\xE1kladn\xED internetov\xE9 funkce","Built-in extension providing network features.":"Built-in extension providing network features.","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":"Network","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*.","Send an asynchronous 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 an asynchronous 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 _PARAM2_ request to _PARAM0_ with body: _PARAM1_, and store the result in _PARAM4_ (or in _PARAM5_ in case of error)":"Send a _PARAM2_ request to _PARAM0_ with body: _PARAM1_, and store the result in _PARAM4_ (or in _PARAM5_ in case of error)","URL (API or web-page address)":"URL (API or web-page address)","Example: \"https://example.com/user/123\". Using *https* is highly recommended.":"Example: \"https://example.com/user/123\". Using *https* is highly recommended.","Variable where to store the response":"Variable where to store the response","Variable where to store the error message":"Variable where to store the error message","Optional, only used if an error occurs. This will contain the error message (if request could not be sent) or the [\"status code\"](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes), if the server returns a status >= 400.":"Optional, only used if an error occurs. This will contain the error message (if request could not be sent) or the [\"status code\"](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes), if the server returns a status >= 400.","Download a file":"St\xE1hnout soubor","Download a file from a web site":"Sta\u017Een\xED souboru z webov\xE9 str\xE1nky","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":"Ulo\u017Eit jako","Enable (or disable) metrics collection":"Enable (or disable) metrics collection","Enable, or disable, the sending of anonymous data used to compute the number of sessions and other metrics from your game players.\nBe sure to only send metrics if in accordance with the terms of service of your game and if they player gave their consent, depending on how your game/company handles this.":"Enable, or disable, the sending of anonymous data used to compute the number of sessions and other metrics from your game players.\nBe sure to only send metrics if in accordance with the terms of service of your game and if they player gave their consent, depending on how your game/company handles this.","Enable analytics metrics: _PARAM1_":"Enable analytics metrics: _PARAM1_","Enable the metrics?":"Enable the metrics?","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":"Konverze","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":"Zvuk","Builtin audio extension":"Vestav\u011Bn\xE9 roz\u0161\xED\u0159en\xED pro zvku","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":"Zvuky","Music playing offset":"Posun hran\xED hudby","Sound volume":"Hlasitost zvuku","Music volume":"Hlasitost hudby","Sound's pitch":"Sound's pitch","Music's pitch":"Music's pitch","Global volume value":"Global volume value","Sound level":"Sound level","Text manipulation":"Manipulace s textem","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 the last occurence in a text":"Search the last occurence in a text","Search the last occurence in a string (return the position of the result, from the beginning of the string, or -1 if not found)":"Search the last occurence in a string (return the position of the result, from the beginning of the string, 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","Search the last occurence in a text, starting from a position":"Search the last occurence in a text, starting from a position","Search in a text the last occurence, starting from a position (return the position of the result, from the beginning of the string, or -1 if not found)":"Search in a text the last occurence, starting from a position (return the position of the result, from the beginning of the string, or -1 if not found)","Standard Conversions":"Standardn\xED p\u0159evody","Built-in extension providing standard conversions expressions.":"Built-in extension providing standard conversions expressions.","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":"\u010Cas","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.","the time scale":"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":"Sprite","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":"Re\u017Eim prol\xEDn\xE1n\xED","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 tint of an object. The default color is white.":"Change the tint 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","Check if the object is horizontally flipped":"Check if the object is horizontally flipped","_PARAM0_ is horizontally flipped":"_PARAM0_ is horizontally flipped","Vertically flipped":"Vertically flipped","Check if the object is vertically flipped":"Check 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":"Standardn\xED ud\xE1losti","Built-in extension providing standard events.":"Built-in extension providing standard events.","Or":"Or","Check if one of the sub conditions is true":"Check if one of the sub conditions is true","If one of these conditions is true:":"If one of these conditions is true:","And":"And","Check if all sub conditions are true":"Check 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":"Koment\xE1\u0159","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":"Opakovat","Event repeated a number of times":"Event repeated a number of times","For each object":"Pro ka\u017Ed\xFD objekt","Repeat the event for each specified object.":"Repeat the event for each specified object.","For each child variable (of a structure)":"For each child variable (of a structure)","Repeat the event for each child variable of a structure.":"Repeat the event for each child variable of a structure.","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":"Z\xE1kladn\xED objetk","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":"Oto\u010Dit","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":"\u0158\xE1d Z (Po\u0159ad\xED vykreslov\xE1n\xED)","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_","Check if the specified child of the variable exists.":"Check 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","Check if the behavior is activated for the object.":"Check 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","Distance between an object and a position":"Distance between an object and a position","Target X position":"Target X position","Target Y position":"Target Y position","Square distance between an object and a position":"Square distance between an object and a position","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","Angle between two objects":"Angle between two objects","Compute the angle between two objects. If you need the angle to an arbitrary position, use AngleToPosition.":"Compute the angle between two objects. If you need the angle to an arbitrary position, use AngleToPosition.","Angle between an object and a position":"Angle between an object and a position","Compute the angle between the object center and a \"target\" position. If you need the angle between two objects, use AngleToObject.":"Compute the angle between the object center and a \"target\" position. If you need the angle between two objects, use AngleToObject.","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":"Po\u010Det objekt\u016F","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":"Vlastnosti my\u0161i","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","Check if the specified mouse button is pressed or if a touch is in contact with the screen.":"Check 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","Check if the specified mouse button was released.":"Check 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","Check 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.":"Check 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","Check 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.":"Check 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":"Cameras and layers features","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.":"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_","Layer default Z order":"Layer default Z order","Compare the default Z order set to objects when they are created on a layer.":"Compare the default Z order set to objects when they are created on a layer.","the default Z order of objects created on _PARAM1_":"the default Z order of objects created on _PARAM1_","Change layer default Z order":"Change layer default Z order","Change the default Z order set to objects when they are created on a layer.":"Change the default Z order set to objects when they are created on a layer.","Set the default Z order of objects created on _PARAM1_ to _PARAM2_":"Set the default Z order of objects created on _PARAM1_ to _PARAM2_","New default Z order":"New default Z order","Set the ambient light color":"Set the ambient light color","Set the ambient light color of the lighting layer in format \"R;G;B\" string.":"Set the ambient light color of the lighting layer in format \"R;G;B\" string.","Set the ambient color of the lighting layer _PARAM1_ to _PARAM2_":"Set the ambient color of the lighting layer _PARAM1_ to _PARAM2_","Layers and cameras/Lighting":"Layers and cameras/Lighting","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","Zoom of a camera of a layer":"Zoom of a camera of a layer","Default Z Order for a layer":"Default Z Order for a layer","Built-in extension providing actions and conditions related to external layouts":"Built-in extension providing actions and conditions related to external layouts","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":"Smooth the image","Always loaded in memory":"Always loaded in memory","Disable preloading at game startup":"Disable preloading at game startup","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.","An object name was expected but something else was written. Enter just the name of the object for this parameter.":"An object name was expected but something else was written. Enter just the name of the object for this parameter.","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."}};
|
Package.describe({
summary: "Observe changes to various sequence types such as arrays, cursors and objects",
version: "1.0.16"
});
Package.onUse(function (api) {
api.use('tracker@1.1.0');
api.use('mongo-id@1.0.5'); // for idStringify
api.use('diff-sequence@1.0.6');
api.use('underscore@1.0.9');
api.use('random@1.0.10');
api.export('ObserveSequence');
api.addFiles(['observe_sequence.js']);
});
Package.onTest(function (api) {
api.use([
'tinytest',
'observe-sequence',
'underscore',
'ejson',
'tracker',
'mongo'
]);
api.addFiles(['observe_sequence_tests.js'], 'client');
});
|
var app = angular.module('App').controller('cabinetCtrl', function($scope, $http, $timeout) {
$timeout(function () {
$('.group-ul').height($(window).height()-145 + 'px');
$('.detialS').height($(window).height()-173 + 'px');
$('.pp').height($(window).height()-173 + 'px');
$('.vv').height($(window).height()-173 + 'px');
$('.nn').height($(window).height()-207 + 'px');
$('.nn').css('overflow-y', 'auto');
},500)
$scope.init1 = function () {
$scope.num = 0; //柜子
$scope.addCabinetMonthHtml = '';
$scope.btnAddMuchMonth();
};
$scope.cabinetDetailOpen = true;
/**
*将时间戳转为日期
* @create 2017/5/29
*/
$scope.getMyDate = function(str) {
str = parseInt(str);
if(str != "" || str != null) {
var oDate = new Date(str);
var oYear = oDate.getFullYear();
var oMonth = oDate.getMonth() + 1;
oMonth = oMonth >= 10 ? oMonth : '0' + oMonth;
var oDay = oDate.getDate();
oDay = oDay >= 10 ? oDay : '0' + oDay;
var theDate = oYear + "-" + oMonth + "-" + oDay;
} else {
theDate = "";
}
return theDate
};
$scope.backPre = function () {
location.href ="/new-cabinet/index?c=88class='templetA'";
}
//计算买柜子自然月的公共方法
//dtstr:选择或当前日期,n表示几个月后
$scope.countRentMonth = function (timeString, monthNum) {
var timeSplit = timeString.split("-");
var yy = parseInt(timeSplit[0]);
var mm = parseInt(timeSplit[1]) - 1;
var dd = parseInt(timeSplit[2]);
var dt = new Date(yy, mm, dd);
dt.setMonth(dt.getMonth() + monthNum);
if ((dt.getFullYear() * 12 + dt.getMonth()) > (yy * 12 + mm + monthNum)) {
dt = new Date(dt.getFullYear(), dt.getMonth(), 0);
}
var year = dt.getFullYear();
var month = dt.getMonth() + 1;
month = month <= 9 ? '0' + month : month;
var days = dt.getDate();
days = days <= 9 ? '0' + days : days;
return year + "-" + month + "-" + days;
};
//时间戳转化为字符串
$scope.fmtDate = function (obj) {
var date = new Date(obj);
var y = 1900+date.getYear();
var m = "0"+(date.getMonth()+1);
var d = "0"+date.getDate();
return y+"-"+m.substring(m.length-2,m.length)+"-"+d.substring(d.length-2,d.length);
};
$scope.getEndDate = function (start, add, give, type) {
if(!add) {
add = 0;
$scope.cabinetEnd = start;
}
if(!give) {
give = 0;
$scope.cabinetreletEndDate = start;
}
if (type === 'd') {
var month1 = parseInt(add);
var timeString1 = $scope.getMyDate(start);
var day = parseInt(give)*24*3600*1000;
var countTime = $scope.countRentMonth(timeString1,month1);
var date = Date.parse(new Date(countTime)) + parseInt(day);
$scope.cabinetreletEndDate = $scope.fmtDate(date);
$scope.cabinetEnd = $scope.fmtDate(date);
}else if(type === 'm') {
var month2 = parseInt(add) + parseInt(give);
var timeString2 = $scope.getMyDate(start);
$scope.cabinetreletEndDate = $scope.countRentMonth(timeString2,month2);
$scope.cabinetEnd = $scope.countRentMonth(timeString2,month2);
}else {
var month3 = parseInt(add) + parseInt(give);
var timeString3 = $scope.getMyDate(start);
$scope.cabinetreletEndDate = $scope.countRentMonth(timeString3,month3);
$scope.cabinetEnd = $scope.countRentMonth(timeString3,month3);
}
};
//新增2018/1/6
$scope.init3 =function () {
$scope.num = 0;
$scope.modifyPluginsHtml = '';
$scope.addPlugins();
}
$scope.addPlugins = function() {
$scope.htmlAttr = 'modifyPlugins';
$scope.num = $scope.num + 1;
$http.get('/rechargeable-card-ctrl/add-venue?attr='+$scope.htmlAttr+'&num='+$scope.num).then(function (result) {
$scope.modifyPluginsHtml = result.data.html;
});
}
//更衣柜列表数据
$scope.getWardrobeDate = function(){
$http.get('/cabinet/filter-data').then(function(result){
})
}
$scope.getWardrobeDate();
$scope.backPre = function() {
location.href = "/new-cabinet/index?c=88class='templetA'";
}
//更衣柜列表数据
$scope.getWardrobeDate = function() {
$http.get('/cabinet/filter-data').then(function(result) {})
}
$scope.getWardrobeDate();
//点击添加区域按钮
$scope.addArea = function() {
$('#addArea').modal('show');
$scope.areaName = '';
$scope.addAreaButtonFlag = false;
}
//获取大上海所有的场馆
$scope.allVenueLists = function() {
$http.get('/cabinet/venue-cabinet').then(function(result) {
$scope.venues = result.data;
$scope.venueList = '';
$scope.allCabinetTypeData();
});
};
$scope.allVenueLists();
//获取所有的柜子
$scope.allCabinetTypeData = function() {
$.loading.show();
$http.get('/cabinet/get-cabinet-list?venueId=' + $scope.venueList).then(function(result) {
$scope.allCabinet = result.data;
$.loading.hide();
})
}
//根据不同的场馆返回场馆的柜子
$scope.selectVenue = function() {
if($scope.venueList != '') {
$scope.allCabinetTypeData();
}
}
//获取所有的场馆
$scope.getAllVenue = function () {
$http.get('/site/public-venues?type=venue').then(function (response) {
$scope.venueLists = response.data.data;
if(!response.data.data) {
Message.error('系统开了会小差,请刷新重试。。。')
}
})
};
$scope.getAllVenue();
//选择场馆
$scope.venueSelectChange = function (venueId) {
$scope.venueList = venueId;
$scope.allCabinetTypeData();
};
//删除柜子
$scope.CabinetDelete = function(id) {
$http.get('/cabinet/cabinet-delete?id=' + id).then(function(result) {
if(result.data.status == 'success') {
$scope.replacementPages('/cabinet/home-data?typeId=' + $scope.cabinetypeId + '&cabinetNum=&cabinetModel=&cabinetType=&customerName=&cabinetEndRent=&sortType=&sortName=&page=' + $scope.cabinetDetailPage + '&per-page=8');
Message.success('删除柜子成功!')
} else {
Message.warning('删除失败,请重试!')
}
$('#noBoundCabinet').modal('hide');
})
};
//删除区域
$scope.deleteContentBoxButton = function(id, num, event) {
var evt = event ? event : window.event;
evt.stopPropagation();
if(num == 0) {
$http.get('/cabinet/cabinet-type-delete?id=' + id).then(function(result) {
if(result.data.status == 'success') {
Message.success('删除成功!')
$scope.allCabinetTypeData();
} else {
Message.warning(result.data.data);
}
})
} else {
Message.warning('存在已租出去的柜子,无法删除区域!')
}
};
//选择场馆
$scope.venueChange = function (venueId) {
$scope.venueId = venueId;
$scope.initPaths();
$scope.getCabinetSearchData();
};
/**点击到期时间模态框获取到期会员数据**/
$scope.getMemberCabinetData = function() {
$scope.pageInitUrls = '/cabinet/member-come-due';
$scope.getCabinetSearchData();
$scope.cabinetTypeDatas();
};
$scope.getCabinetSearchData = function() {
$.loading.show();
$http.get($scope.pageInitUrls).then(function(response) {
if(response.data.data != "" && response.data.data != undefined && response.data.data.length != undefined) {
$scope.datas = response.data.data;
$scope.cabinet = response.data.cabinetPages;
$scope.hua = response.data.huang;
$scope.cabinetNoDataShow = false;
} else {
$scope.datas = response.data.data;
$scope.cabinet = response.data.cabinetPages;
$scope.cabinetNoDataShow = true;
}
$.loading.hide();
});
}
$scope.initPaths = function() {
$scope.searchParam = $scope.searchCabinetData();
$scope.pageInitUrls = '/cabinet/member-come-due?' + $.param($scope.searchParam);
};
$scope.replaceCabinetPages = function(urlPages) {
$scope.pageInitUrls = urlPages;
$scope.getCabinetSearchData();
};
/**获取选中的柜子id**/
$scope.getCabinet = function(val) {
$scope.cabinetTypeId = val;
$scope.initPaths();
$scope.getCabinetSearchData();
}
/**获取选中的时间**/
$scope.getDay = function() {
$scope.day = $scope.cabinetDay;
$scope.initPaths();
$scope.getCabinetSearchData();
}
/**处理搜索数据***/
$scope.searchCabinetData = function() {
return {
cg: $scope.venueId ? $scope.venueId : null, //场馆id
cabinetTypeId: $scope.cabinetTypeId ? $scope.cabinetTypeId : null, //区域id
day: $scope.day ? $scope.day : null //当天当日当月
}
};
/**跳转页***/
$scope.skipPage = function(value) {
if(value != undefined) {
$scope.searchParam = $scope.searchCabinetData();
$scope.pageInitUrls = '/cabinet/member-come-due?' + $.param($scope.searchParam) + '&page=' + value;
$scope.getCabinetSearchData();
}
};
/**搜索方法***/
$scope.searchCabinetS = function() {
$scope.initPaths();
$scope.getCabinetSearchData();
};
/**获取区域下拉框***/
$scope.cabinetTypeDatas = function() {
$http({
method: "get",
url: "/cabinet/area-select"
}).then(function(result) {
$scope.cabinetType = result.data.cabinet;
}, function(error) {
Message.error("请联系工作人员");
});
}
$scope.getMemberCabinetData();
/**点击批量发送会员短信**/
$scope.sendCabinet = function() {
$scope.sendCabinetData = function() {
return {
cabinetTypeId: $scope.cabinetTypeId != undefined ? $scope.cabinetTypeId : null, //区域id
day: $scope.day != undefined ? $scope.day : null //当天当日当月
}
};
swal({
title: "确定发送吗?",
text: "该功能会批量给会员发送短信,请谨慎操作!",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "确定",
cancelButtonText: "取消",
closeOnConfirm: false,
closeOnCancel: false
}, function(isConfirm){
if (isConfirm) {
swal.close();
$scope.sendBtnStatus = true;
$.loading.show();
$http({
url: '/cabinet/send-cabinet-data',
method: 'POST',
data: $.param($scope.sendCabinetData()),
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}).then(function(res) {
if(res.data.status == 'success') {
Message.success('发送成功');
$scope.getCabinetSearchData();
} else {
Message.warning(res.data.data);
}
$scope.sendBtnStatus = false;
$.loading.hide();
})
} else {
$scope.sendBtnStatus = false;
swal.close();
}
});
}
$scope.addAreaBtn = function () {
window.location.href = '/wcabinet/add-area?v=' + $scope.venueList;
}
/****分页***/
$scope.replacementPages = function(urlPages) {
$scope.pageInitUrl = urlPages;
$scope.getDate($scope.statusList);
};
// 柜子种类列表进入柜子详细列表的点击事件
$scope.cabinetBox = function(typeId, typeName) {
window.location.href = '/wcabinet/cabinet-data?i=' + typeId + '&n='+ typeName;
}
$scope.initPath = function() {
$scope.searchParams = $scope.search();
$scope.pageInitUrl = '/cabinet/home-data?' + $.param($scope.searchParams);
};
/**点击区域,出现柜子列表***/
$scope.searchClass = function(status) {
if(status == undefined){
status = 8;
}
$scope.initPath();
if($scope.nowPages) {
$scope.pageInitUrl = '/cabinet/home-data?' + $.param($scope.searchParams) + '&page=' + $scope.nowPages + '&per-page=8';
}
$scope.getDate(status);
};
/**搜索方法(搜索栏)***/
$scope.searchCabinet = function() {
$scope.initPath();
$scope.getDate();
};
/******Enter键搜索*******/
$scope.enterSearchs = function(e) {
var keyCode = window.event ? e.keyCode : e.which;
if(keyCode == 13) {
$scope.searchCabinet();
}
};
// 分页数据信息
$scope.getDate = function(status) {
$.loading.show();
$http.get($scope.pageInitUrl+'&pageSize='+status).then(function(result) {
$scope.cabinetDetailPage = result.data.now.toString();
if(result.data.data.length != 0) {
$scope.allCabinetLists = result.data.data;
$scope.pages = result.data.pages;
$scope.nowPages = result.data.now;
$scope.dataInfo = false;
$scope.searchData = false;
} else {
$scope.allCabinetLists = result.data.data;
$scope.pages = result.data.pages;
if($scope.searchParams != null) {
$scope.searchData = true;
$scope.dataInfo = false;
} else {
$scope.dataInfo = true;
}
}
$scope.cabinetCurrentTime = new Date().getTime();
$scope.statusList = status;
if(status == 60){
$scope.isMatrix = true;
$scope.isList = false;
$('#show-list-id').removeClass('active');
$('#show-matrix-id').addClass('active');
}else{
$scope.isList = true;
$scope.isMatrix = false;
$('#show-list-id').addClass('active');
$('#show-matrix-id').removeClass('active');
}
$.loading.hide();
})
};
/**主界面(字段)搜索**/
$scope.changeSort = function(attr, sort) {
$scope.sortType = attr;
$scope.switchSort(sort);
$scope.searchClass();
};
$scope.switchSort = function(sort) {
if(!sort) {
sort = 'DES';
} else if(sort == 'DES') {
sort = 'ASC';
} else {
sort = 'DES'
}
$scope.sort = sort;
};
/**页面搜索(搜索栏)***/
$scope.search = function() {
return {
typeId: $scope.cabinetypeId != undefined ? $scope.cabinetypeId : null,
cabinetNum: $scope.cabinetNum != undefined ? $scope.cabinetNum : null,
cabinetModel: $scope.cabinetModel != undefined ? $scope.cabinetModel : null,
cabinetType: $scope.cabinetType != undefined ? $scope.cabinetType : null,
customerName: $scope.customerName != undefined ? $scope.customerName : null,
cabinetEndRent: $scope.cabinetEndRent != undefined ? $scope.cabinetEndRent : null,
sortType: $scope.sortType != undefined ? $scope.sortType : null,
sortName: $scope.sort != undefined ? $scope.sort : null,
keyword: $scope.keyword != undefined ? $scope.keyword : null
}
};
$scope.cabinetDeposit = '';
// 新增无限增加多月设置
$scope.btnAddMuchMonth = function() {
$scope.htmlAttr = 'addCabinetMonth';
$scope.num = $scope.num + 1;
$http.get('/rechargeable-card-ctrl/add-venue?attr='+$scope.htmlAttr+'&num='+$scope.num).then(function (result) {
$scope.addCabinetMonthHtml = result.data.html;
});
}
// 点击新增普通衣柜按钮初始化input框个数
$scope.addCabinetModal = function() {
$scope.giveMonthNum = '';
$scope.cabinetSize = '';
$scope.cabinetType = '';
$scope.addCabinetNum = '';
$scope.halfMonthMoney = null;
$scope.cabinetPrefix = '';
$scope.cabinetNumStart = '';
$scope.cabinetDeposit = null; //押金
$scope.cabinetMoney = null; //初始化多月设置金额
$scope.muchMonth = ''; //初始化多月设置月数
$scope.giveMonth = ''; //初始化多月设置赠送月数
$scope.dis = ''; //初始化多月设置折扣
$scope.addCabinetButtonFlag = false; //加载动画不显示
$('div.myDiv').remove(); //初始化新增普通衣柜
}
//通过遍历判断用户输入的月数的值不重复
function isRepeat(jsonMonth){
var filter = {};
for(var i in jsonMonth) {
if (filter[jsonMonth[i]]) {
return true;
}
filter[jsonMonth[i]] = true;
}
return false;
}
//租柜的赠送天数输入框change事件
$scope.giveDayNumChange = function (time) {
if(time !== null && time !== undefined && time !== '' && $scope.giveMonthBingCabinet1 !== null && $scope.giveMonthBingCabinet1 !== undefined && $scope.giveMonthBingCabinet1 !== '') {
if(time > $scope.giveMonthBingCabinet1) {
Message.warning('赠送数不得大于' + $scope.giveMonthBingCabinet1);
return false;
}else {
$scope.giveMonthBingCabinet = time;
$scope.getEndDate(parseInt(Date.parse($scope.startRentCabinet)), $scope.cabinetDays, $scope.giveMonthBingCabinet, $scope.buyTimeType);
}
}else {
$scope.giveMonthBingCabinet = 0;
$scope.getEndDate(parseInt(Date.parse($scope.startRentCabinet)), $scope.cabinetDays, $scope.giveMonthBingCabinet, $scope.buyTimeType)
}
};
//续柜的赠送天数输入框change事件
$scope.giveTimenNumChange = function (time) {
if(time !== null && time !== undefined && time !== '' && $scope.giveReletMonthNum1 !== null && $scope.giveReletMonthNum1 !== undefined && $scope.giveReletMonthNum1 !== '') {
if(time > $scope.giveReletMonthNum1) {
Message.warning('赠送数不得大于' + $scope.giveReletMonthNum1);
return false;
}else {
$scope.getEndDate($scope.cabinetDetail.end_rent * 1000, $scope.reletMonth, time, $scope.giveTimeType);
}
}else {
$scope.giveReletMonthNum = 0;
$scope.getEndDate($scope.cabinetDetail.end_rent * 1000, $scope.reletMonth, time, $scope.giveTimeType);
}
};
// 未绑定详情页面中的修改按钮,点击后进行分析判断
$scope.isCabinetBindMember = false;
//点击未绑定页面中的修改按钮
$scope.editUnBinding = function(id,type) {
$scope.editCompleteFlag = false;
$scope.editCabinetId = id;
$('#boundCabinet').modal('hide');
if(type == 'isBind') {
$scope.isCabinetBindMember = true;
}else if(type == 'notBind') {
$scope.isCabinetBindMember = false;
}
if($scope.cabinetInfoItem.deposit == undefined || $scope.cabinetInfoItem.deposit == '') {
$scope.editCabinetDeposit = '';
} else {
$scope.editCabinetDeposit = parseFloat($scope.cabinetInfoItem.deposit);
}
if($scope.cabinetInfoItem.monthRentPrice == undefined || $scope.cabinetInfoItem.monthRentPrice == '') {
$scope.editOneMonthPrice = '';
} else {
$scope.editOneMonthPrice = $scope.cabinetInfoItem.monthRentPrice;
}
if($scope.cabinetInfoItem.cabinet_model == undefined || $scope.cabinetInfoItem.cabinet_model == '') {
$scope.editCabinetSize = '';
} else {
$scope.editCabinetSize = $scope.cabinetInfoItem.cabinet_model;
}
if($scope.cabinetInfoItem.cabinet_type == undefined || $scope.cabinetInfoItem.cabinet_type == '') {
$scope.editCabinetType = '';
} else {
$scope.editCabinetType = $scope.cabinetInfoItem.cabinet_type;
}
$http.get('/cabinet/modify-one-cabinet?cabinetId=' + id).success(function(data){
var cm = angular.fromJson(data.data.cabinet_month);
var cmy = angular.fromJson(data.data.cabinet_money);
var md = angular.fromJson(data.data.cabinet_dis);
var gm = angular.fromJson(data.data.give_month);
if(cm != '' && cm != null && cm != undefined && cmy != '' && cmy != null && cmy != undefined && gm != '' && gm != null && gm != undefined && md != '' && md != null && md != undefined){
var $max = cm.length;
var i = -1;
for(var n = 0; n < $max; n++){
$scope.htmlAttr = 'modifyPlugins';
$scope.num = $scope.num + 1;
$http.get('/rechargeable-card-ctrl/add-venue?attr='+$scope.htmlAttr+'&num='+$scope.num).then(function (result) {
var $html = result.data.html;
var $dom = $($html).get(0);
i++;
$($dom).find('input[name="cabinet_month"]').val(parseInt(cm[i]));
$($dom).find('input[name="cabinet_money"]').val(parseFloat(cmy[cm[i]]));
if(!gm[cm[i]].match(/^(\d+)(d|m)$/)) {
$($dom).find('input[name="give_month"]').val(gm[cm[i]]);
$($dom).find('select').val('m');
}else {
$($dom).find('select').val(gm[cm[i]].match(/^(\d+)(d|m)$/)[2] ? gm[cm[i]].match(/^(\d+)(d|m)$/)[2] : '');
$($dom).find('input[name="give_month"]').val(gm[cm[i]].match(/^(\d+)(d|m)$/)[1] ? gm[cm[i]].match(/^(\d+)(d|m)$/)[1] : '');
}
$($dom).find('input[name="cabinet_dis"]').val(md[cm[i]]);
$('#modify').append($dom);
})
}
$('#boundCabinet').modal('hide');
}else{
return true;
}
});
$('#noBoundCabinet').modal('hide');
$('#isBind').attr('data-type',type);
};
/**
* @修改模态关闭初始化多月设置数据
*
**/
$('#revise').on('hidden.bs.modal', function (e) {
$('#modify').empty();
})
// 新增柜子,并把表单里填写的数据发送至后台
//未绑定用户时显示
$scope.editComplete = function() {
/**
* @获取多月设置的值
**/
if($scope.editCabinetSize == null || $scope.editCabinetSize == '' || $scope.editCabinetSize == undefined) {
Message.warning("请选择柜子型号!");
return;
}
if($scope.editCabinetType == null || $scope.editCabinetType == '' || $scope.editCabinetType == undefined) {
Message.warning("请选择柜子类型!");
return;
}
if($scope.editCabinetType == '2') {
if($('#editCabinetDeposit555').val() == '') {
Message.warning("请输入柜子押金!");
return;
}
}
if($scope.editOneMonthPrice == null || $scope.editOneMonthPrice == '' || $scope.editOneMonthPrice == undefined) {
Message.warning("请输入单月金额!");
return;
}
var $muchMoneyBox = $('#modify').children('div.leiGe');
var jsonMonth = [];
var jsonMoney = {};
// var jsonGiveMonth = {};
var jsonGiveTime = {};
var jsonDis = {};
var notPass = false;
var notFormat = false;
$muchMoneyBox.each(function (index, item) {
var cabinet_month = $(this).find('input[name="cabinet_month"]').val();
var cabinet_money = $(this).find('input[name="cabinet_money"]').val();
// var give_month = $(this).find('input[name="give_month"]').val();
var cabinet_dis = $(this).find('input[name="cabinet_dis"]').val();
//赠送可以自由选择日或月
var give_type = $(this).find('select').val();
var give_value = $(this).find('input[name="give_month"]').val();
//判断折扣是否格式化
if(cabinet_dis != '' && cabinet_dis != undefined && cabinet_dis != null){
if(/^0\.[123456789]+$/.test(cabinet_dis) || /^0\.[123456789]+(\/0\.[123456789]+)+$/.test(cabinet_dis)){
notFormat = false;
}else{
notFormat = true;
}
}
if (cabinet_month != '' && cabinet_month != null && cabinet_money != '' && cabinet_money != null) {
jsonMonth.push(cabinet_month);
jsonMoney[cabinet_month] = cabinet_money;
// jsonGiveMonth[cabinet_month] = give_month;
jsonDis[cabinet_month] = cabinet_dis;
if(give_value === null || give_value === undefined || give_value === '') {
jsonGiveTime[cabinet_month] = null;
}else {
jsonGiveTime[cabinet_month] = give_value + give_type;
}
} else {
//如果有一条不符合就不能通过
notPass = true;
return;
}
});
//如果多月设置为空
// if (notPass == true) {
// Message.warning('多月设置必填项不能为空');
// return;
// }
//如果多月设置月数重复
if (isRepeat(jsonMonth)) {
Message.warning('多月设置月份不能"重复"');
return;
}
//如果折扣没有格式化
if(notFormat == true){
Message.warning('折扣不符合格式');
return;
}
$scope.editCompleteData = function() {
return {
cabinetModel : $scope.editCabinetSize,
cabinetType : $scope.editCabinetType,
deposit : $('#editCabinetDeposit555').val(),
cabinetId : $scope.editCabinetId,
monthRentPrice : $scope.editOneMonthPrice,
yearRentPrice : $scope.editOneYearPrice,
// giveMonth : jsonGiveMonth != undefined && jsonGiveMonth != '' ? jsonGiveMonth : null, //多月设置赠送月数
giveMonth : jsonGiveTime != undefined && jsonGiveTime != '' ? jsonGiveTime : null, //多月设置赠送月数
cabinetMonth : jsonMonth != undefined && jsonMonth != '' ? jsonMonth : null, //多月设置月份
cabinetMoney : jsonMoney != undefined && jsonMoney != '' ? jsonMoney : null, //多月设置金额
cabinetDis : jsonDis != undefined && jsonDis != '' ? jsonDis : null, // 多月设置折扣
_csrf_backend : $('#_csrf').val() //csrf防止跨站
}
};
$scope.editCompleteFlag = true;
var type = $('#isBind').attr('data-type');
var page = $('#isBind').attr('data-page');
$http({
url: "/cabinet/cabinet-update",
method: 'POST',
data: $.param($scope.editCompleteData()),
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}).then(function(result) {
if(result.data.status == "success") {
Message.success(result.data.data);
// $scope.editCabinetInit();
// $scope.searchClass();
$('#revise').modal('hide'); //执行关闭模态框
// $('#boundCabinet').modal('hide');
if(type == 'isBind'){
// $('#boundCabinet').modal('show');
}else{
// $('#noBoundCabinet').modal('show');
}
// console.log('page',page);
if(page == 'matrix'){
$scope.searchClass(60);
}else{
$scope.searchClass();
}
// $scope.getDate($scope.statusList);
} else {
Message.warning(result.data.data);
$scope.editCompleteFlag = false;
}
});
};
//点击更衣柜详情中的点击绑定用户
$scope.clickBinding = function(object, id) {
$('#noBoundCabinet').modal('hide');
$scope.bindingMember(object, id);
};
/**
* author: 程丽明 杨慧磊(修改)
* create: 2017-07-17 2017/12/22
* 函数描述: 绑定用户到柜子上,点击后打开模态框
* 修改: 声明全局变量
* */
//点击绑定用户柜子的数据
var currentCabinetData;
//点击绑定用户柜子实时赠送月数
var giveCurMonth;
//点击绑定用户柜子实时折扣
var rootCurDis;
//点击绑定用户柜子租赁月数对应的金额
var muchMonthMoney;
//绑定用户
$scope.bindingMember = function(object, id) {
$scope.keywords = '';
currentCabinetData = object;
$scope.bindingCabinetCompleteFlag = false;
$scope.cabinetCashPledge = parseInt(object.deposit != null && object.deposit != undefined && object.deposit != '' ? object.deposit : 0);
$scope.containerId = id;
$scope.containerNumber = object.cabinet_number;
$scope.cabinetIsType = object.cabinetModel;
$scope.cabinetOneMonMoney = object.monthRentPrice;
$scope.bindingMemberPreCabinetDetail = object;
//重置模态框
$scope.selectedDis = '1';
$scope.theAmountPayable = 0;
$scope.display = 0;
$('#bindingUser').modal('show');
};
//获取柜子到期时间
$scope.getCabinetEndDate = function() {
if($scope.cabinetDays !== undefined && $scope.cabinetDays !== '' && $scope.cabinetDays !== null && $scope.startRentCabinet !== undefined && $scope.startRentCabinet !== '' && $scope.startRentCabinet !== null) {
$scope.getEndDate(parseInt(Date.parse($scope.startRentCabinet)), $scope.cabinetDays, $scope.giveMonthBingCabinet, $scope.buyTimeType);
// if(giveCurMonth != 0 || giveCurMonth != undefined || giveCurMonth != null){
// var num = $scope.cabinetDays + parseInt(giveCurMonth);
// $scope.getEndDate(num);
// }else{
// $scope.getEndDate($scope.cabinetDays);
// }
}else{
$scope.cabinetEnd = $scope.startRentCabinet;
}
}
//实时计算
$scope.rentCabinet = function(start) {
$scope.startRentCabinet = start;
//console.log(parseInt(Date.parse(start)));
$scope.getCabinetEndDate();
}
//输入租赁月数实时计算赠送月数和租赁金额
$scope.rentCabinetDays = function(start) {
//初始化输入月数
$scope.cabinetDays = parseInt(start);
//初始化折扣
$scope.selectedDis = '1';
//根据输入月数获取赠送月数
if(start === null || start === '' || start === undefined){
giveCurMonth = 0;
}else {
$scope.reGiveTime = angular.fromJson(currentCabinetData.give_month);
if($scope.reGiveTime != null && $scope.reGiveTime != '' && $scope.reGiveTime != undefined) {
if(!$scope.reGiveTime[$scope.cabinetDays]) {
$scope.buyTimeType = '';
$scope.giveMonthBingCabinet = 0;
$scope.giveMonthBingCabinet1 = 0;
}else {
if(!$scope.reGiveTime[$scope.cabinetDays].match(/^(\d+)(d|m)$/)) {
//获取租赁月数(包含赠送月数)
var regexp = new RegExp('"'+start+'":\\s"\\d+"','g');
var pregRe = currentCabinetData.give_month.match(regexp);
if(pregRe != null){
var endRe = pregRe[0];
$scope.giveMonthBingCabinet = endRe.slice(endRe.indexOf(':')+3).replace('"','');
giveCurMonth = $scope.giveMonthBingCabinet;
$scope.buyTimeType = 'm';
$scope.giveMonthBingCabinet = parseInt(giveCurMonth);
$scope.giveMonthBingCabinet1 = parseInt(giveCurMonth);
}else{
$scope.giveMonthBingCabinet = 0;
giveCurMonth = 0;
}
}else {
giveCurMonth = $scope.reGiveTime[$scope.cabinetDays].match(/^(\d+)(d|m)$/)[1];
$scope.buyTimeType = $scope.reGiveTime[$scope.cabinetDays].match(/^(\d+)(d|m)$/)[2];
$scope.giveMonthBingCabinet = parseInt(giveCurMonth);
$scope.giveMonthBingCabinet1 = parseInt(giveCurMonth);
}
}
}else {
$scope.buyTimeType = '';
$scope.giveMonthBingCabinet = 0;
$scope.giveMonthBingCabinet1 = 0;
}
}
//根据输入月数获取折扣
//定义数组容器
var disArr = [];
if(start == null || start == ''){
//如果不存在对应的折扣
$scope.dises = disArr;
$scope.display = 0;
}else if(currentCabinetData.cabinet_dis != null){
var regdis = new RegExp('"'+start+'":\\s"\\d+(\\.\\d+)?(\\/\\d+(\\.\\d+)?)*"','g');
var regdisRe = currentCabinetData.cabinet_dis.match(regdis);
if(regdisRe != null){
var disstr = regdisRe[0].slice(regdisRe[0].indexOf(':')+3).replace('"','');
if(disstr.indexOf('/') > -1){
//如果存在'/'
$scope.dises = disstr.split('/');
$scope.display = 1;
}else{
//如果折扣数量是1
disArr[0] = disstr;
$scope.dises = disArr;
$scope.display = 1;
}
}else{
//如果不存在对应的折扣
$scope.dises = disArr;
$scope.display = 0;
}
}else{
$scope.dises = disArr;
$scope.display = 0;
}
//实时计算租金
if(start == null || start == ''){
muchMonthMoney = 0;
}else if(currentCabinetData.cabinet_money != null){
var regMoney = new RegExp('"'+start+'":\\s"\\d+"','g');
var regMoneyRe = currentCabinetData.cabinet_money.match(regMoney);
if(regMoneyRe != null){
var regMonneyEndRe = regMoneyRe[0];
muchMonthMoney = regMonneyEndRe.slice(regMonneyEndRe.indexOf(':')+3).replace('"','');
}else{
muchMonthMoney = 0;
}
}else{
muchMonthMoney = 0;
}
//实时计算金额加押金
if(start == '' || start == null || start == 0){
$scope.theAmountPayable = 0;
}else if($scope.selectedDis != null && $scope.selectedDis != undefined && $scope.selectedDis != ''){
$scope.theAmountPayable = $scope.getTheAmountPayable() * parseFloat($scope.selectedDis) + $scope.cabinetCashPledge;
}else{
$scope.theAmountPayable = $scope.getTheAmountPayable() + $scope.cabinetCashPledge;
}
//实时计算到期日期
$scope.getCabinetEndDate();
}
//用户选择对应的折扣实时获取租赁金额
$scope.getCurrentRootMoney = function(curDis){
if($scope.getTheAmountPayable() == 0){
$scope.theAmountPayable = 0;
}else{
$scope.theAmountPayable = $scope.getTheAmountPayable()*parseFloat(curDis) + $scope.cabinetCashPledge;
}
}
//计算绑定用户应交金额
$scope.getPayableMoney = function() {
$scope.rentCabinetDays();
}
//绑定柜子
$scope.bindingCabinetComplete = function(id) {
$scope.bindingCabinetDataInit = function() {
$scope.startRentCabinet = '';
$scope.theAmountPayable = '';
$scope.cabinetEnd = '';
$scope.cabinetDays = '';
$scope.bindCabinetNote = '';
}
$scope.rentalMoney = $scope.theAmountPayable - $scope.cabinetCashPledge;//租金
$scope.bindingCabinetData = function() {
if ($scope.giveMonthBingCabinet == 0 || $scope.giveMonthBingCabinet ===undefined || $scope.giveMonthBingCabinet === null || $scope.giveMonthBingCabinet ==='') {
$scope.buyTimeType = '';
$scope.giveMonthBingCabinet = '';
}
return {
_csrf_backend: $('#_csrf').val(),
memberId: $scope.memberDetail.id != undefined && $scope.memberDetail.id != "" ? $scope.memberDetail.id : null, //会员id
cabinetRentStart: $scope.startRentCabinet != undefined && $scope.startRentCabinet != "" ? $scope.startRentCabinet : null, //时间
cabinetRentEnd: $scope.cabinetEnd != undefined && $scope.cabinetEnd != "" ? $scope.cabinetEnd : null, //到期时间
// price: $scope.theAmountPayable != undefined && $scope.theAmountPayable != "" ? $scope.theAmountPayable : null, //单日金额
price: $scope.rentalMoney != undefined && $scope.rentalMoney != "" ? $scope.rentalMoney : null, //租金
cabinetId: $scope.containerId != undefined && $scope.containerId != "" ? parseInt($scope.containerId) : null, //柜子ID
deposit: $scope.cabinetCashPledge,
giveDay:$scope.giveMonthBingCabinet,//赠送的月数
giveType:$scope.buyTimeType,
note: $scope.bindCabinetNote
}
}
if($scope.startRentCabinet == null || $scope.startRentCabinet == undefined || $scope.startRentCabinet == '') {
Message.warning("请输入租柜日期!");
return;
}
if($scope.cabinetDays == null || $scope.cabinetDays == undefined || $scope.cabinetDays == '') {
Message.warning("请输入租柜月数!");
return;
}
if(parseInt($('.giveMonthBingCabinet11').val()) > $scope.giveMonthBingCabinet1) {
Message.warning('租柜赠送数不得大于' + $scope.giveMonthBingCabinet1);
return false;
}
$scope.bindingCabinetCompleteFlag = true;
$http({
url: "/cabinet/bind-member",
method: 'POST',
data: $.param($scope.bindingCabinetData()),
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}).then(function(result) {
if(result.data.status == 'success') {
Message.success(result.data.data);
$scope.bindingCabinetDataInit();
$scope.getDate();
$scope.allCabinetTypeData();
$('#bindingCabinet').modal('hide');
} else {
$scope.bindingCabinetCompleteFlag = false;
Message.warning(result.data.data);
}
});
}
//退租
$scope.quitCabinet = function(id, memCabinetId, cabinetDetail) {
$scope.quitCabinetCompleteFlag = false;
$scope.containerId = id;
$scope.memCabinetId = memCabinetId;
$scope.cabinetDetail = cabinetDetail;
$('#boundCabinet').modal('hide');
$scope.cabinetCashPledge = parseInt(cabinetDetail.deposit != null && cabinetDetail.deposit != undefined ? cabinetDetail.deposit : 50);
var currentTime = new Date().getTime();
var endTime = new Date(($scope.getMyDate(cabinetDetail.end_rent * 1000) + " " + "23:59:59")).getTime();
$scope.endNextWeek = endTime + 7 * 24 * 60 * 60 * 1000;
/**
* 退柜管理-退柜设置-获取退柜配置
* 1.有设置配置,调用配置
* 2.没有,则退全部押金
*/
$http.get('/cabinet/get-quit-cabinet-value').then(function (result) {
$scope.quitCabinetValue = result.data;
var setDays = $scope.quitCabinetValue.setDays;
var setCost = $scope.quitCabinetValue.setCost;
var dateType = $scope.quitCabinetValue.dateType;
if(currentTime < endTime) {
$scope.depositRefund = $scope.cabinetCashPledge;return ;
}
if (setDays == null || setDays == '' || setDays == undefined) {
//没有设置天数限制
if (setCost == null || setCost == '' || setCost == undefined) {
$scope.depositRefund = $scope.cabinetCashPledge;
} else {
var long = 1;
switch (dateType) {
case 'everyDay' : long = 1;break;
case 'everyWeek' : long = 7;break;
case 'everyMonth' : long = 30;break;
}
//计算超出的日期
var overTime = Math.ceil(parseInt(parseInt(currentTime) - parseInt(endTime))/(24 * 60 * 60 * 1000));
var overDay = Math.ceil(overTime/long);
var deductMoney = parseInt(overDay*setCost);
$scope.depositRefund = parseInt(parseInt($scope.cabinetCashPledge) - parseInt(deductMoney));
if (parseInt($scope.depositRefund) < 0) {
$scope.depositRefund = 0;
}
}
} else {
//设置了天数限制
var overTime = Math.ceil(parseInt(parseInt(currentTime) - parseInt(endTime))/(24 * 60 * 60 * 1000));
if (overTime <= parseInt(setDays)) {
$scope.depositRefund = $scope.cabinetCashPledge;
} else {
if (setCost == null || setCost == '' || setCost == undefined) {
$scope.depositRefund = $scope.cabinetCashPledge;
} else {
var long = 1;
switch (dateType) {
case 'everyDay' :
long = 1;
break;
case 'everyWeek' :
long = 7;
break;
case 'everyMonth' :
long = 30;
break;
}
var overDay = Math.ceil((parseInt(overTime) - parseInt(setDays)) / parseInt(long));
var deductMoney = parseInt(parseInt(overDay)*setCost);
$scope.depositRefund = parseInt(parseInt($scope.cabinetCashPledge) - parseInt(deductMoney));
if (parseInt($scope.depositRefund) < 0) {
$scope.depositRefund = 0;
}
}
}
}
})
};
var currentTime = new Date().getTime();
$scope.currentDate = $scope.getMyDate(currentTime);
//退柜完成
$scope.quitCabinetComplete = function(endTime) {
$scope.quitCabinetData = function() {
return {
_csrf_backend: $('#_csrf').val(),
quiteDate: $scope.currentDate, //退租时间
memCabinetId: parseInt($scope.memCabinetId), //会员柜子id
price: $scope.depositRefund,
memberId: parseInt($scope.cabinetDetail.member_id),
cabinetId: parseInt($scope.containerId)
}
}
$scope.quitCabinetCompleteFlag = true;
$http({
url: "/cabinet/quite-cabinet",
method: 'POST',
data: $.param($scope.quitCabinetData()),
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}).then(function(result) {
if(result.data.status == 'success') {
$scope.searchClass();
$scope.allCabinetTypeData();
Message.success(result.data.data);
$('#backCabinet').modal('hide');
} else {
$scope.quitCabinetCompleteFlag = false;
Message.warning(result.data.data);
}
});
}
//声明全局变量柜子的数据
var reCabinetData;
//声明全局变量续柜赠送月数
var reGiveMonth;
//声明全局变量续柜金额
var reMuchMoney;
//声明全局变量防止折扣链式反应
var disContainer;
$scope.renewCabinet = function(cabinetDetail) {
$scope.renewCabinetCompleteFlag = false;
$scope.reletPrice = 0;
$scope.reletMonth = '';
$scope.giveReletMonthNum = 0;
$scope.giveReletMonthNum1 = 0;
$scope.cabinetDetail = cabinetDetail;
/*新增*/
//初始化折扣
$scope.redisplay = 0;
$scope.reDis = '1';
//获取续租柜子数据
reCabinetData = cabinetDetail;
//初始化折扣
$scope.reDis = '';
$scope.cabinetreletEndDate = $scope.getMyDate($scope.cabinetDetail.end_rent * 1000);
$http.get('/user/member-card?memberId=' + $scope.cabinetDetail.member_id).then(function(response) {
$scope.memberCardInvalidTime = response.data.invalid_time;
});
$('#boundCabinet').modal('hide');
}
//当月的输入框变化时获取柜子到期时间
$scope.reletMonthChange = function(reletMonth) {
//初始化折扣
$scope.reDis = '1';
if(reletMonth == null || reletMonth == '' || reletMonth == 0){
//初始化赠送月数
$scope.giveReletMonthNum = 0;
//初始化续柜初始到期时间
$scope.cabinetreletEndDate = $scope.getMyDate($scope.cabinetDetail.end_rent * 1000);
}else{
//实时计算获取续柜到期日期和赠送月数
if($scope.reletMonth != undefined && $scope.reletMonth != '' && $scope.reletMonth != null && $scope.cabinetDetail.end_rent != undefined && $scope.cabinetDetail.end_rent != '' && $scope.cabinetDetail.end_rent != null && reCabinetData.give_month != null) {
$scope.reGiveMonth = angular.fromJson(reCabinetData.give_month);
if($scope.reGiveMonth == null || $scope.reGiveMonth == undefined || $scope.reGiveMonth == '') {
reGiveMonth = 0;
$scope.giveTimeType = '';
$scope.giveReletMonthNum = 0;
$scope.giveReletMonthNum1 = 0;
}else {
var __pattern = new RegExp(/^(\d+)(d|m)$/);
if(!__pattern.test($scope.reGiveMonth[$scope.reletMonth])) {
//获取租赁月数(包含赠送月数)
var reRentreg = new RegExp('"'+$scope.reletMonth+'":\\s"\\d+"','g');
var reRentRe = reCabinetData.give_month.match(reRentreg);
if(reRentRe != null){
var reEndRe = reRentRe[0];
reGiveMonth = reEndRe.slice(reEndRe.indexOf(':')+3).replace('"','');
$scope.giveReletMonthNum = parseInt(reGiveMonth);
$scope.giveReletMonthNum1 = parseInt(reGiveMonth);
}else{
reGiveMonth = 0;
$scope.giveTimeType = '';
$scope.giveReletMonthNum = 0;
$scope.giveReletMonthNum1 = 0;
}
}else {
reGiveMonth = $scope.reGiveMonth[$scope.reletMonth].match(/^(\d+)(d|m)$/)[1];
$scope.giveTimeType = $scope.reGiveMonth[$scope.reletMonth].match(/^(\d+)(d|m)$/)[2];
$scope.giveReletMonthNum = parseInt(reGiveMonth);
$scope.giveReletMonthNum1 = parseInt(reGiveMonth);
}
}
//计算到期时间(自然月的形式)
$scope.getEndDate($scope.cabinetDetail.end_rent * 1000, $scope.reletMonth, parseInt(reGiveMonth), $scope.giveTimeType)
}else{
reGiveMonth = 0;
$scope.giveTimeType = '';
$scope.giveReletMonthNum = 0;
$scope.giveReletMonthNum1 = 0;
$scope.cabinetreletEndDate = $scope.getMyDate($scope.cabinetDetail.end_rent * 1000);
}
}
//租赁月数对应的金额
if(reletMonth == null || reletMonth == ''){
reMuchMoney = 0;
}else if(reCabinetData.cabinet_money != null){
var regReMoney = new RegExp('"'+reletMonth+'":\\s"\\d+"','g');
var regReMoneyRe = reCabinetData.cabinet_money.match(regReMoney);
if(regReMoneyRe != null){
var endMoney = regReMoneyRe[0];
reMuchMoney = endMoney.slice(endMoney.indexOf(':')+3).replace('"','');
}else{
reMuchMoney = $scope.reletMonth * $scope.cabinetDetail.monthRentPrice;
}
}else{
reMuchMoney = $scope.reletMonth * $scope.cabinetDetail.monthRentPrice;
}
//实时计算续租金额
if($scope.reletMonth != undefined && $scope.reletMonth != '' && $scope.reletMonth != null && $scope.cabinetDetail.monthRentPrice != undefined && $scope.cabinetDetail.monthRentPrice != '' && $scope.cabinetDetail.monthRentPrice != null) {
if(reGiveMonth != undefined && reGiveMonth != null){
$scope.reletPrice = reMuchMoney;
disContainer = $scope.reletPrice;
}else{
$scope.reletPrice = reMuchMoney;
disContainer = $scope.reletPrice;
}
}else{
$scope.reletPrice = 0;
disContainer = 0;
}
//定义数组容器
var redisArr = [];
//获取续租折扣
if(reletMonth == null || reletMonth == ''){
//如果不存在对应的折扣
$scope.redises = redisArr;
$scope.redisplay = 0;
}else if(reCabinetData.cabinet_dis != null){
var reRegdis = new RegExp('"'+reletMonth+'":\\s"\\d+(\\.\\d+)?(\\/\\d+(\\.\\d+)?)*"','g');
var reRegdisRe = reCabinetData.cabinet_dis.match(reRegdis);
if(reRegdisRe != null){
var disRestr = reRegdisRe[0].slice(reRegdisRe[0].indexOf(':')+3).replace('"','');
if(disRestr.indexOf('/') > -1){
//如果存在'/'
$scope.redises = disRestr.split('/');
$scope.redisplay = 1;
}else{
//如果折扣数量是1
redisArr[0] = disRestr;
$scope.redises = redisArr;
$scope.redisplay = 1;
}
}else{
//如果不存在对应的折扣
$scope.redises = redisArr;
$scope.redisplay = 0;
}
}else{
//如果不存在对应的折扣
$scope.redises = redisArr;
$scope.redisplay = 0;
}
}
//选择折扣获取续费最终金额
$scope.getReDis = function(reDis){
if($scope.reletPrice != 0 && $scope.reletPrice != undefined && $scope.reletPrice != null && $scope.reletPrice != ''){
$scope.reletPrice = disContainer * parseFloat(reDis);
}else{
$scope.reletPrice = 0;
}
}
$scope.reletEndDate = function(){
if($scope.reletMonth != undefined && $scope.reletMonth !='' && $scope.reletMonth != null && $scope.cabinetDetail.end_rent != undefined && $scope.cabinetDetail.end_rent !='' && $scope.cabinetDetail.end_rent != null ){
if($scope.reletMonth >= 12){
var numYears = Math.floor($scope.reletMonth/12);
if($scope.reletGiveMonthNum !== 0){
$scope.reletMonth = numYears*2 + $scope.reletMonth;
}
}
$http.get('/cabinet/calculate-date?numberMonth='+ $scope.reletMonth +'&startRent='+ $scope.cabinetreletEndDate).then(function(result){
$scope.cabinetreletEndDate = (result.data).replace(/\"/g, "");
});
}
}
//续租完成
$scope.renewCabinetComplete = function(){
$scope.renewCabinetData = function(){
$scope.dayGive = $('.giveReletMonthNum11').val();
if ($scope.dayGive === undefined || $scope.dayGive === '' || $scope.dayGive == null) {
$scope.dayGive = '';
$scope.giveTimeType = '';
}
return {
_csrf_backend: $('#_csrf').val(),
memCabinetId :parseInt($scope.cabinetDetail.memberCabinetId), //会员柜子id
memberId:parseInt($scope.cabinetDetail.member_id),
renewDate :$scope.cabinetreletEndDate, //续组日期
renewNumDay:$scope.reletMonth, //续组月数
renewRentPrice:$scope.reletPrice, //续组价格
// give_month:$scope.giveReletMonthNum//续租的赠送的月数
giveDay: $scope.dayGive,//续租的赠送的月数
giveType: $scope.giveTimeType
}
}
if($scope.reletMonth == null || $scope.reletMonth == ''|| $scope.reletMonth== undefined){
Message.warning('请输入续租的月数!');
return;
}
// if(parseInt($scope.memberCardRentInvalidTime) < $scope.endTime){
// Message.warning("您的租柜到期日期在会员卡到期日期之后!");
// return;
// }
if(parseInt($('.giveReletMonthNum11').val()) > $scope.giveReletMonthNum1) {
Message.warning('续柜赠送数不得大于' + $scope.giveReletMonthNum1);
return false;
}
$scope.renewCabinetCompleteFlag = true;
$http({
url: "/cabinet/renew-cabinet",
method: 'POST',
data: $.param( $scope.renewCabinetData()),
headers: {'Content-Type': 'application/x-www-form-urlencoded'}
}).then(function(result){
if(result.data.status == 'success'){
Message.success(result.data.data);
$scope.reletMonth = '';
$scope.reletPrice= '';
$scope.getDate();
$scope.allCabinetTypeData();
$('#renewCabinet').modal('hide');
}else{
$scope.renewCabinetCompleteFlag = false;
Message.warning(result.data.data);
}
})
}
//冻结柜子
$scope.freezeCabinet = function(id){
$http.get('/cabinet/frozen-cabinet?cabinetId='+ id).then(function(result){
if(result.data.status == 'success'){
Message.success(result.data.data);
$scope.getDate();
}else if(result.data.status == 'error'){
Message.warning(result.data.data);
}
})
}
//取消冻结
$scope.cancelFreezeCabinet = function(id){
$http.get('/cabinet/frozen-cabinet?cabinetId='+ id +'&status='+2).then(function(result){
if(result.data.status == 'success'){
Message.success(result.data.data);
$scope.getDate();
}else if(result.data.status == 'error'){
Message.warning(result.data.data);
}
})
}
/**
* @柜子类型修改
* 根据柜子ID,类型,类别获取柜子详情
* @param : id(最小柜子ID)
* count(柜子数量)
* number(柜子名称)
* model(柜子类型)
* type(柜子类别)
**/
//类型管理批量删除
$scope.deleteCabinetType = function(id,count) {
Sweety.remove({
url : '/cabinet/delete-cabinet-type?cabinetId=' + id + '&cabinetNum=' + count,
http : $http,
title : '确定要删除吗?',
text : '删除后所有信息无法恢复',
confirmButtonText: '确定',
data : {
action: 'unbind'
}
}, function () {
$scope.getCabinetTypeLister();
});
}
//修改模态关闭初始化数据
$('#typeClass').on('hidden.bs.modal', function (e) {
$scope.modifyCabinetSize = '';
$scope.modifyCabinetType = '';
$scope.modifyCabinetPrefix = '';
$scope.modifyCabinetNumStart = null;
$scope.modifyCabinetNum = null;
$scope.modifyHalfMonthMoney = null;
$scope.modifyCabinetDeposit = null;
$scope.modifyMuchMonth = '';
$scope.modifyCabinetMoney = null;
$scope.modifyGiveMonth = '';
$scope.modifyDis = '';
$('.myDiv').remove();
})
/**
* author: 程丽明
* create: 2017-06-07
* 函数描述: 冻结柜子
* param: id:要被冻结的柜子的id
* */
//冻结柜子
$scope.freezeCabinet = function(id) {
$http.get('/cabinet/frozen-cabinet?cabinetId=' + id).then(function(result) {
if(result.data.status == 'success') {
$('#boundCabinet').modal('hide');
Message.success(result.data.data);
$scope.getDate();
} else if(result.data.status == 'error') {
Message.warning(result.data.data);
}
})
}
/**
* author: 程丽明
* create: 2017-06-09
* 函数描述: 取消冻结柜子
* param: id:取消冻结的柜子的id
* */
//取消冻结
$scope.cancelFreezeCabinet = function(id) {
$http.get('/cabinet/frozen-cabinet?cabinetId=' + id + '&status=' + 2).then(function(result) {
if(result.data.status == 'success') {
Message.success(result.data.data);
$scope.getDate();
} else if(result.data.status == 'error') {
Message.warning(result.data.data);
}
})
}
//获取所有未租的柜子
$scope.allUnLeasedCabinet = function() {
$.loading.show();
$http.get($scope.unLeasedCabinetUrl).then(function(result) {
$scope.unLeasedCabinetLists = result.data;
$.loading.hide();
})
}
//点击调柜按钮调柜
$scope.switchCabinet = function(cabinetDetail) {
$('#boundCabinet').modal('hide');
$scope.completeSwitchCabinetBtnFlag = false;
$('.listCabinetStyle').eq(0).addClass('bgGrey').siblings('.listCabinetStyle').removeClass('bgGrey');
$scope.oldCabinetId = cabinetDetail.cabinet_id;
$scope.memCabinetId = cabinetDetail.memberCabinetId;
$scope.oldCabinetDetail = cabinetDetail;
var id = $scope.allCabinet[0].id;
$scope.oldTypeName = $scope.allCabinet[0].type_name;
$scope.unLeasedCabinetUrl = '/cabinet/get-all-cabinet?typeId=' + id;
$scope.allUnLeasedCabinet();
$('#checkCabinet').modal('show');
}
//调柜类型选择
$scope.cabinetStyleList = function(id, ind, object) {
$scope.oldTypeName = object.type_name;
$('.listCabinetStyle').eq(ind).addClass('bgGrey').siblings('.listCabinetStyle').removeClass('bgGrey');
$scope.unLeasedCabinetUrl = '/cabinet/get-all-cabinet?typeId=' + id;
$scope.allUnLeasedCabinet();
}
//调柜选择按钮
$scope.selectSwitchCabinetBtn = function(selectCabinet) {
// console.log('selectCabinet',selectCabinet);
var oldObjectCabinet = $scope.oldCabinetDetail;
// console.log('oldObjectCabinet',oldObjectCabinet);
var oldCabinetEndTime = $scope.getMyDate(oldObjectCabinet.end_rent * 1000);
$scope.selectCabinetDetail = selectCabinet;
$scope.switchMonthNum = selectCabinet.give_month;
var currentDate = new Date().getTime();
var cabinetEndDate = (oldObjectCabinet.end_rent) * 1000;
var $cabinetModel = oldObjectCabinet.cabinet_model; //当前柜子 3
var $cabinet_model = selectCabinet.cabinet_model; //调换柜子型号 1
//大柜型号 1 中柜型号 2 小柜型号3
//同柜子调换
if(parseInt($cabinetModel) == parseInt($cabinet_model)) {
$scope.selectSwitchCabinetPrice = 0;
$scope.switchCabinetEndDate = oldCabinetEndTime;
}
//大柜调下一级柜子剩余钱变成柜子的日期
if (parseInt($cabinetModel) < parseInt($cabinet_model)) {
//计算原柜子剩余的钱
var freeMoney = parseFloat(parseFloat(oldObjectCabinet.monthRentPrice) / 30 * parseInt(oldObjectCabinet.surplusDay));
//计算现柜子的能够使用的天数
var nowDay = parseInt(freeMoney / (parseFloat(selectCabinet.monthRentPrice) / 30));
var timestamp = Math.round(new Date()) + nowDay *24*60*60*1000;
$scope.selectSwitchCabinetPrice = 0;
$scope.switchCabinetEndDate = $scope.getMyDate(timestamp);
}
//小柜调大柜补交金额
if(parseInt($cabinetModel) > parseInt($cabinet_model)) {
var currentNext = $scope.getMyDate(currentDate) + " " + "23:59:59";
var currentNextTime = new Date(currentDate).getTime();
$scope.selectSwitchCabinetPrice = (Math.abs(oldObjectCabinet.monthRentPrice - selectCabinet.monthRentPrice) / 30 * Math.floor((cabinetEndDate - currentDate) / (1000 * 24 * 60 * 60))).toFixed(2);
$scope.switchCabinetEndDate = oldCabinetEndTime;
}
}
//完成调柜
$scope.completeSwitchCabinetBtn = function() {
$scope.completeSwitchCabinetData = function() {
return {
_csrf_backend: $('#_csrf').val(), //csrf防止跨站
memCabinetId: parseInt($scope.oldCabinetDetail.memberCabinetId), // 会员柜子id
memberId: parseInt($scope.oldCabinetDetail.member_id),
cabinetId: parseInt($scope.selectCabinetDetail.id), // 新柜子id
originalCabinetId: parseInt($scope.oldCabinetId), //老柜子id
price: $scope.selectSwitchCabinetPrice, //应补金额
changeCabinetDate: $scope.switchCabinetEndDate //调柜的日期
}
}
$scope.completeSwitchCabinetBtnFlag = true;
$http({
url: "/cabinet/change-cabinet",
method: 'POST',
data: $.param($scope.completeSwitchCabinetData()),
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}).then(function(result) {
if(result.data.status == 'success') {
Message.success(result.data.data);
$('#checkCabinetSuccess').modal('hide');
$('#checkCabinet').modal('hide');
$scope.getDate();
} else {
$scope.completeSwitchCabinetBtnFlag = false;
Message.warning(result.data.data);
}
})
}
$scope.init1();
$scope.init3();
// 从柜子详细列表返回到柜子种类列表的点击事件
$('.backHistoryBox').click(function() {
$('.listBox').hide();
$('.contentBox').show();
});
// 续柜日期插件的js
$("#dateRenrw").datetimepicker({
minView: "month", //设置只显示到月份
format: 'yyyy-mm-dd ',
language: 'zh-CN',
autoclose: true,
todayBtn: true, //今日按钮
});
// 租柜日期插件的js
$("#dataCabinet").datetimepicker({
minView: "month", //设置只显示到月份
format: 'yyyy-mm-dd',
language: 'zh-CN',
autoclose: true,
todayBtn: true, //今日按钮
});
// 1229新增
$scope.backShaPage =function () {
location.href = "/new-cabinet/index?";
}
$(".type-management").click(function(){
$(".disNone").hide();
$(".listBoxType").show();
});
/**
* @desc: 更柜管理-退柜设置-设置退柜配置
* @author: 付钟超 <fuzhongchao@itsports.club>
* @create: 2018/01/30
*/
//更柜管理-退柜设置-点击显示退柜设置模态框
$scope.showQuitCabinetSetting = function (num) {
if (num == 1) {
$('#quitCabinetSetting').modal('show');
$http.get('/cabinet/get-quit-cabinet-value').then(function (result) {
$scope.quitCabinetValue = result.data;
$scope.setDays = $scope.quitCabinetValue.setDays;
$scope.setCost = $scope.quitCabinetValue.setCost;
if ($scope.quitCabinetValue.dateType == null || $scope.quitCabinetValue.dateType=='' || $scope.quitCabinetValue.dateType==undefined) {
$('#getDateType').val('everyDay');
} else {
$('#getDateType').val($scope.quitCabinetValue.dateType);
}
})
}
if (num == 2) {
$('#quitCabinetSetting').modal('hide');
}
}
//更柜管理-退柜设置-获取表单数据
$scope.getQuitCabinetData = function () {
return {
setDays : $scope.setDays, //设置到期退款天数
dateType : $('#getDateType').val(), //设置超期扣除类型(日,周,月)
setCost : $scope.setCost, //设置超期扣除金额
_csrf_backend:yii.getCsrfToken(),
};
}
//更柜管理-退柜设置-提交表单数据
$scope.setQuitCabinetHttp = function () {
$http({
url : '/cabinet/set-quit-cabinet',
method : 'POST',
data : $.param($scope.getQuitCabinetData()),
headers : { 'Content-Type': 'application/x-www-form-urlencoded' }
}).then(function (result) {
if(result.data.status == 'success') {
Message.success('保存成功');
$scope.showQuitCabinetSetting(2);
}else {
Message.warning('保存失败');
}
})
}
//获取节点
$scope.classFunc = function () {
$(document).ready(function () {
$('.showBoxTitle').on('click',function () {
$('.showBoxTitle').removeClass('activeBox');
$(this).addClass('activeBox');
})
});
}
//显示绑定柜子的消费情况,切换显示
$scope.showBox = 1;
$scope.isShowBox = true;
$scope.showBoxClick = function (n) {
switch(n) {
case 1:
$scope.showBox = 1;
$scope.isShowBox = true;
break;
case 2:
$scope.showBox = 2;
$scope.isShowBox = false;
break;
default:
$scope.showBox = 1;
$scope.isShowBox = true;
}
}
//获取会员绑定柜子的消费记录
$scope.memberConsumList = function (url) {
$http.get(url).then(function (result) {
$scope.memberConsumListData = result.data.data;
$scope.recordPages = result.data.page;
})
}
$scope.isShow = function (index, e) {
e.stopPropagation();
console.log(index)
$scope.allCabinet[index].btnShow = !$scope.allCabinet[index].btnShow;
console.log($scope.allCabinet[index].btnShow)
}
});
|
module.exports = {
devServer: {
proxy: {
'^/api': {
target: 'http://localhost:${srv.port}',
ws: true,
changeOrigin: true
}
}},
configureWebpack: {
module: {
rules: [
{
test: /.html$/,
loader: "vue-template-loader",
exclude: /index.html/
}
]
}
}
}
|
define([
'aeris/util',
'aeris/maps/markers/marker',
'aeris/config'
], function(_, Marker, config) {
/**
* A marker MapExtensionObject which is a view
* model for a {aeris.api.models.PointData} data model.
*
* @class aeris.maps.markers.PointDataMarker
* @extends aeris.maps.markers.Marker
*
* @constructor
* @override
*/
var PointDataMarker = function(opt_attrs, opt_options) {
var attrs = _.defaults(opt_attrs || {}, {
offsetX: 12,
offsetY: 12
});
var options = _.defaults(opt_options || {}, {
iconPath: '{name}',
iconLookup: {},
typeAttribute: ''
});
options.attributeTransforms = _.defaults(options.attributeTransforms || {}, {
url: this.lookupUrl_,
selectedUrl: this.lookupSelectedUrl_,
title: this.lookupTitle_,
position: this.lookupPosition_,
type: this.lookupType_,
offsetX: this.lookupOffsetX_,
offsetY: this.lookupOffsetY_
});
/**
* The type category this marker belongs
* to. Useful organizing markers which
* match some filter.
*
* @attribute type
* @type {string}
*/
/**
* The path to a icon url, where {name}
* is the name of the icon defined in this.iconLookup_
*
* @type {string}
* @private
* @property iconPath_
*/
this.iconPath_ = options.iconPath;
/**
* The path to the icon url,
* to use only when the marker is selected.
*
* Defaults to the iconPath.
*
* @property selectedIconPath_
* @private
* @type {string}
*/
this.selectedIconPath_ = options.selectedIconPath || options.iconPath;
/**
* An object to lookup a marker's icon
* url by it's type.
*
* eg: { blizzard: 'storm/icon_blizzard_sm', snow: 'stormicon_snow_sm' }
*
* @type {*|{}}
* @private
* @property iconLookup_
*/
this.iconLookup_ = options.iconLookup;
/**
* The data attribute used to categorize the marker.
*
* Defined as a '.' delimited string.
* eg. 'weather.type' would map to this.get('data').get('weather').type;
*
* @type {*|string}
* @private
* @property typeAttribute_
*/
this.typeAttribute_ = options.typeAttribute;
Marker.call(this, attrs, options);
};
_.inherits(PointDataMarker, Marker);
/**
* The type category of this marker.
* Generally, corresponds to a data filter.
*
* @override
* @method getType
* @return {string}
*/
PointDataMarker.prototype.getType = function() {
return this.get('type');
};
/**
* Lookup the marker type.
*
* @return {string}
* @protected
* @method lookupType_
*/
PointDataMarker.prototype.lookupType_ = function() {
var type = this.getDataAttribute(this.typeAttribute_);
var match;
// For multiple types
// find one with a matching partner
// in the iconLookup object.
if (_.isArray(type)) {
_.each(type, function(singleType) {
if (_.has(this.iconLookup_, singleType)) {
match = singleType;
}
}, this);
return match || this.get('type');
}
return type || this.get('type');
};
/**
* Lookup the icon url.
*
* @return {string}
* @protected
* @method lookupUrl_
*/
PointDataMarker.prototype.lookupUrl_ = function() {
var iconConfig = this.getIconConfig_();
// If no icon name found,
// don't try to set one.
if (!iconConfig) {
return this.get('url');
}
return this.iconPath_.replace(/\{name\}/, iconConfig.url);
};
/**
* @method lookupSelectedUrl_
* @private
*/
PointDataMarker.prototype.lookupSelectedUrl_ = function() {
var selectedUrl;
var iconConfig = this.getIconConfig_();
// If no icon name found,
// don't try to set one.
if (!iconConfig) {
return this.get('selectedUrl');
}
selectedUrl = iconConfig.selectedUrl || iconConfig.url;
return this.selectedIconPath_.replace(/\{name\}/, selectedUrl);
};
/**
* @method lookupOffsetX_
* @private
*/
PointDataMarker.prototype.lookupOffsetX_ = function() {
var iconConfig = this.getIconConfig_();
if (!iconConfig) {
return this.get('offsetX');
}
return iconConfig.offsetX;
};
/**
* @method lookupOffsetY_
* @private
*/
PointDataMarker.prototype.lookupOffsetY_ = function() {
var iconConfig = this.getIconConfig_();
if (!iconConfig) {
return this.get('offsetY');
}
return iconConfig.offsetY;
};
/**
* @method getIconConfig_
* @private
*/
PointDataMarker.prototype.getIconConfig_ = function() {
var type = this.lookupType_();
return this.iconLookup_[type];
};
/**
* Override to set how the marker's
* title attribute is parsed from
* the data.
*
* @protected
* @return {string}
* @method lookupTitle_
*/
PointDataMarker.prototype.lookupTitle_ = function() {
return '';
};
/**
* Lookup marker position
* from data model.
*
* @protected
* @return {aeris.maps.LatLon}
* @method lookupPosition_
*/
PointDataMarker.prototype.lookupPosition_ = function() {
var loc = this.getDataAttribute('loc');
// Fallback to current position
if (!loc) {
return this.get('position');
}
return [
loc.lat,
loc.long
];
};
return PointDataMarker;
});
|
/* Project specific Javascript goes here. */
/*
Formatting hack to get around crispy-forms unfortunate hardcoding
in helpers.FormHelper:
if template_pack == 'bootstrap4':
grid_colum_matcher = re.compile('\w*col-(xs|sm|md|lg|xl)-\d+\w*')
using_grid_layout = (grid_colum_matcher.match(self.label_class) or
grid_colum_matcher.match(self.field_class))
if using_grid_layout:
items['using_grid_layout'] = True
Issues with the above approach:
1. Fragile: Assumes Bootstrap 4's API doesn't change (it does)
2. Unforgiving: Doesn't allow for any variation in template design
3. Really Unforgiving: No way to override this behavior
4. Undocumented: No mention in the documentation, or it's too hard for me to find
*/
$('.form-group').removeClass('row');
var effect_levels = {
"coding_transcript_intron_variant": 1,
"complex_substitution": 3,
"direct_tandem_duplication": 1,
"disruptive_inframe_deletion": 2,
"disruptive_inframe_insertion": 2,
"downstream_gene_variant": 1,
"feature_truncation": 3,
"five_prime_UTR_exon_variant": 1,
"five_prime_UTR_intron_variant": 1,
"frameshift_elongation": 3,
"frameshift_truncation": 3,
"frameshift_variant": 3,
"inframe_deletion": 2,
"inframe_insertion": 2,
"intergenic_variant": 1,
"internal_feature_elongation": 3,
"missense_variant": 2,
"mnv": 3,
"non_coding_transcript_exon_variant": 1,
"non_coding_transcript_intron_variant": 1,
"splice_acceptor_variant": 3,
"splice_donor_variant": 3,
"splice_region_variant": 2,
"start_lost": 3,
"stop_gained": 3,
"stop_lost": 3,
"stop_retained_variant": 1,
"structural_variant": 1,
"synonymous_variant": 1,
"three_prime_UTR_exon_variant": 1,
"three_prime_UTR_intron_variant": 1,
"transcript_ablation": 3,
"upstream_gene_variant": 1,
};
function colorVariantEffects() {
$('.color-effect').each(function (index) {
var text = $(this).text();
if (effect_levels[text] == 3) {
$(this).addClass('badge-danger');
} else if (effect_levels[text] == 2) {
$(this).addClass('badge-warning');
} else {
$(this).addClass('badge-secondary');
}
});
}
$(document).ready(function() {
/* Add IE note */
if (navigator.appName === 'Microsoft Internet Explorer' ||
!!(navigator.userAgent.match(/Trident/) ||
navigator.userAgent.match(/rv:11/)) || (
typeof $.browser !== "undefined" && $.browser.msie === 1)) {
let parentElem = $('div.sodar-app-container');
if (!parentElem.length) {
parentElem = $('div.sodar-content-container').find(
'div.container-fluid').first()
}
if (!$('div.sodar-alert-container').length) {
parentElem.prepend(
'<div class="container-fluid sodar-alert-container"></div>')
}
$('div.sodar-alert-container').prepend(
'<div class="alert alert-danger sodar-alert-top">' +
'<i class="fa fa-exclamation-triangle"></i> ' +
'VarFish doesn\'t support Microsoft Internet Explorer. We recommend using ' +
'<a href="https://www.mozilla.org/firefox/new" target="_blank">Mozilla Firefox</a> or ' +
'<a href="https://www.google.com/chrome" target="_blank">Google Chrome</a>.' +
'</div>')
}
/* Display the django_su warning when switching a user */
if (is_su) {
let parentElem = $('div.sodar-app-container');
if (!parentElem.length) {
parentElem = $('div.sodar-content-container').find(
'div.container-fluid').first()
}
if (!$('div.sodar-alert-container').length) {
parentElem.prepend(
'<div class="container-fluid sodar-alert-container"></div>')
}
$('div.sodar-alert-container').prepend(
'<div class="alert alert-danger sodar-alert-top">' +
'<i class="fa fa-exclamation-triangle"></i> ' +
'You have assumed the identity of another account! <a href="' + su_escape_url + '">Escape</a>' +
'</div>')
}
});
|
class AboutController {
constructor() {
this.name = 'about';
this.raja=[
{ "text":"learn angular", "done":true },
{ "text":"build an angular app", "done":false},
{ "text":"something", "done":false },
{ "text":"another todo", "done":true }
]
// var App = angular.module('App', []);
// App.controller('TodoCtrl', function($scope, $http) {
// $http.get('raja')
// .then(function(res){
// $scope.raja = res.data;
// });
// });
}
}
export default AboutController;
|
/*
* Copyright 1999-2018 Alibaba Group Holding 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.
*/
const I18N_CONF = {
Header: {
home: '首页',
docs: '文档',
blog: '博客',
community: '社区',
languageSwitchButton: 'En',
logout: '登出',
},
Login: {
login: '登录',
submit: '提交',
pleaseInputUsername: '请输入用户名',
pleaseInputPassword: '请输入密码',
invalidUsernameOrPassword: '用户名或密码错误',
passwordRequired: '密码不能为空',
usernameRequired: '用户名不能为空',
},
MainLayout: {
nacosName: 'NACOS',
nacosVersion: '0.7.0',
doesNotExist: '您访问的页面不存在',
configurationManagementVirtual: '配置管理',
configurationManagement: '配置列表',
configdetail: '配置详情',
configsync: '同步配置',
configeditor: '配置编辑',
newconfig: '新建配置',
historyRollback: '历史版本',
configRollback: '配置回滚',
historyDetail: '历史详情',
listeningToQuery: '监听查询',
serviceManagementVirtual: '服务管理',
serviceManagement: '服务列表',
serviceDetail: '服务详情',
namespace: '命名空间',
},
NameSpace: {
namespace: '命名空间',
prompt: '提示',
namespaceDetails: '命名空间详情',
namespaceName: '命名空间名称',
namespaceID: '命名空间ID',
configuration: '配置数',
description: '描述',
removeNamespace: '删除命名空间',
confirmDelete: '确定要删除以下命名空间吗?',
configurationManagement: '配置列表',
removeSuccess: '删除命名空间成功',
deletedSuccessfully: '删除成功',
deletedFailure: '删除失败',
namespaceDelete: '删除',
details: '详情',
edit: '编辑',
namespacePublic: 'public(保留控件)',
pubNoData: '没有数据',
namespaceAdd: '新建命名空间',
namespaceNames: '命名空间名称',
namespaceNumber: '命名空间ID',
namespaceOperation: '操作',
},
ServiceList: {
serviceList: '服务列表',
serviceName: '服务名称',
serviceNamePlaceholder: '请输入服务名称',
query: '查询',
pubNoData: '没有数据',
columnServiceName: '服务名',
columnClusterCount: '集群数目',
columnIpCount: '实例数',
columnHealthyInstanceCount: '健康实例数',
operation: '操作',
detail: '详情',
deleteAction: '删除',
prompt: '提示',
promptDelete: '确定要删除当前服务吗?',
create: '创建服务',
},
EditClusterDialog: {
updateCluster: '更新集群',
checkType: '检查类型',
checkPort: '检查端口',
useIpPortCheck: '使用IP端口检查',
checkPath: '检查路径',
checkHeaders: '检查头',
metadata: '元数据',
},
ServiceDetail: {
serviceDetails: '服务详情',
back: '返回',
editCluster: '集群配置',
cluster: '集群',
metadata: '元数据',
selector: '表达式',
type: '服务路由类型',
healthCheckPattern: '健康检查模式',
protectThreshold: '保护阈值',
serviceName: '服务名',
editService: '编辑服务',
},
EditServiceDialog: {
createService: '创建服务',
updateService: '更新服务',
serviceName: '服务名',
metadata: '元数据',
type: '服务路由类型',
typeLabel: '标签',
typeNone: '默认',
selector: '表达式',
protectThreshold: '保护阈值',
healthCheckPattern: '健康检查模式',
healthCheckPatternService: '服务端',
healthCheckPatternClient: '客户端',
healthCheckPatternNone: '禁止',
},
InstanceTable: {
operation: '操作',
port: '端口',
weight: '权重',
healthy: '健康状态',
metadata: '元数据',
editor: '编辑',
offline: '下线',
online: '上线',
},
EditInstanceDialog: {
port: '端口',
weight: '权重',
metadata: '元数据',
updateInstance: '编辑实例',
whetherOnline: '是否上线',
},
ListeningToQuery: {
success: '成功',
failure: '失败',
configuration: '配置',
pubNoData: '没有数据',
listenerQuery: '监听查询',
queryDimension: '查询维度',
pleaseEnterTheDataId: '请输入Data ID',
dataIdCanNotBeEmpty: 'Data ID不能为空',
pleaseInputGroup: '请输入Group',
groupCanNotBeEmpty: 'Group不能为空',
pleaseInputIp: '请输入IP',
query: '查询',
queryResultsQuery: '查询结果:共查询到',
articleMeetRequirementsConfiguration: '条满足要求的配置。',
},
HistoryRollback: {
details: '详情',
rollback: '回滚',
pubNoData: '没有数据',
toConfigure: '历史版本(保留30天)',
dataId: '请输入Data ID',
dataIdCanNotBeEmpty: 'Data ID不能为空',
group: '请输入Group',
groupCanNotBeEmpty: 'Group不能为空',
query: '查询',
queryResult: '查询结果:共查询到',
articleMeet: '条满足要求的配置。',
lastUpdateTime: '最后更新时间',
operation: '操作',
},
HistoryDetail: {
historyDetails: '历史详情',
update: '更新',
insert: '插入',
deleteAction: '删除',
recipientFrom: '收起',
moreAdvancedOptions: '更多高级选项',
home: '归属应用:',
actionType: '操作类型:',
configureContent: '配置内容:',
back: '返回',
},
DashboardCard: {
importantReminder0: '重要提醒',
viewDetails1: '查看详情',
},
ConfigurationManagement: {
questionnaire2: '问卷调查',
ad: '答 ACM 前端监控调查问卷,限时领取阿里云代金券\t 详情猛戳:',
noLongerDisplay4: '不再显示:',
removeConfiguration: '删除配置',
sureDelete: '确定要删除以下配置吗?',
environment: '地域:',
configurationManagement: '配置列表',
details: '详情',
sampleCode: '示例代码',
edit: '编辑',
deleteAction: '删除',
more: '更多',
version: '历史版本',
listenerQuery: '监听查询',
failedEntry: '失败的条目:',
successfulEntry: '成功的条目:',
unprocessedEntry: '未处理的条目:',
pubNoData: '没有数据',
configurationManagement8: '配置管理',
queryResults: '查询结果:共查询到',
articleMeetRequirements: '条满足要求的配置。',
fuzzyd: '模糊查询请输入Data ID',
fuzzyg: '模糊查询请输入Group',
query: '查询',
advancedQuery9: '高级查询',
application0: '归属应用:',
app1: '请输入应用名',
tags: '标签:',
pleaseEnterTag: '请输入标签',
application: '归属应用:',
operation: '操作',
},
NewConfig: {
newListingMain: '新建配置',
newListing: '新建配置',
publishFailed: '发布失败。请检查参数是否正确。',
doNotEnte: 'Illegal characters not allowed',
newConfig: 'Data ID 不能为空',
dataIdIsNotEmpty: 'Data ID 长度不能超过255字符',
groupPlaceholder: '请输入Group名称',
moreAdvanced: 'Group不能为空',
groupNotEmpty: 'Group ID长度不能超过127字符',
annotation:
'注:您正在往一个自定义分组新增配置,请确保客户端使用的Pandora版本高于3.4.0,否则可能读取不到该配置。',
dataIdLength: '收起',
collapse: '更多高级选项',
tags: '标签:',
pleaseEnterTag: '请输入标签',
groupIdCannotBeLonger: '归属应用:',
description: '描述:',
targetEnvironment: '配置格式:',
configurationFormat: '配置内容:',
configureContentsOf: '按F1显示全屏',
fullScreen: '按Esc退出全屏',
escExit: '发布',
release: '返回',
confirmSyanx: '配置信息可能有语法错误, 确定提交吗?',
dataIdExists: 'Data ID 已存在',
dataRequired: '数据不能为空, 提交失败',
},
CloneDialog: {
terminate: '终止克隆',
skip: '跳过',
cover: '覆盖',
getNamespaceFailed: '获取命名空间失败',
selectedEntry: '| 选中的条目',
homeApplication: '归属应用:',
tags: '标签:',
startCloning: '开始克隆',
source: '源空间:',
configurationNumber: '配置数量:',
target: '目标空间:',
conflict: '相同配置:',
selectNamespace: '请选择命名空间',
configurationCloning: '配置克隆(',
},
DeleteDialog: {
confManagement: '配置管理',
determine: '确定',
deletetitle: '删除配置',
deletedSuccessfully: '删除配置成功',
deleteFailed: '删除配置失败',
},
DiffEditorDialog: {
publish: '确认发布',
contents: '内容比较',
currentArea: '当前值',
originalValue: '原始值',
},
ConfigEditor: {
official: '正式',
wrong: '错误',
submitFailed: '不能为空, 提交失败',
toedittitle: '编辑配置',
toedit: '编辑配置',
vdchart: '请勿输入非法字符',
recipientFrom: 'Data ID不能为空',
homeApplication: 'Group不能为空',
collapse: '收起',
groupNotEmpty: '更多高级选项',
tags: '标签:',
pleaseEnterTag: '请输入标签',
targetEnvironment: '归属应用:',
description: '描述:',
format: '配置格式:',
configcontent: '配置内容',
escExit: '按F1显示全屏',
releaseBeta: '按Esc退出全屏',
release: '发布Beta',
publish: '发布',
back: '返回',
},
EditorNameSpace: {
notice: '提示',
pleaseDo: '请勿输入非法字符',
publicSpace: '确认修改',
confirmModify: '编辑命名空间',
editNamespace: '加载中...',
load: '命名空间名:',
namespace: '命名空间不能为空',
description: '描述:',
},
ExportDialog: {
selectedEntry: '| 选中的条目',
application: '归属应用:',
tags: '标签:',
exportBtn: '导出',
exportConfiguration: '导出配置(',
source: '源空间:',
items: '配置数量:',
},
ImportDialog: {
terminate: '终止导入',
skip: '跳过',
overwrite: '覆盖',
zipFileFormat: '只能上传.zip格式的文件',
uploadFile: '上传文件',
importLabel: '导入配置 ( ',
target: '目标空间:',
conflict: '相同配置:',
beSureExerciseCaution: '文件上传后将直接导入配置,请务必谨慎操作',
},
ShowCodeing: {
sampleCode: '示例代码',
loading: '加载中...',
},
SuccessDialog: {
title: '配置管理',
determine: '确定',
failure: '失败',
},
ConfigSync: {
error: '错误',
syncConfigurationMain: '同步配置',
syncConfiguration: '同步配置成功',
advancedOptions: '更多高级选项',
collapse: '收起',
home: '归属应用:',
region: '所属地域:',
configuration: '配置内容:',
target: '目标地域:',
sync: '同步',
back: '返回',
},
NewNameSpace: {
norepeat: '命名空间名称不能重复',
notice: '提示',
input: '请勿输入非法字符',
ok: '确定',
cancel: '取消',
newnamespce: '新建命名空间',
loading: '加载中...',
name: '命名空间名:',
namespacenotnull: '命名空间不能为空',
description: '描述:',
},
NameSpaceList: {
notice: '提示',
},
ConfigDetail: {
official: '正式',
error: '错误',
configurationDetails: '配置详情',
collapse: '收起',
more: '更多高级选项',
home: '归属应用:',
tags: '标签:',
description: '描述:',
betaRelease: 'Beta发布:',
configuration: '配置内容:',
back: '返回',
},
ConfigRollback: {
rollBack: '回滚配置',
determine: '确定要',
followingConfiguration: '以下配置吗?',
configurationRollback: '配置回滚',
collapse: '收起',
more: '更多高级选项',
home: '归属应用:',
actionType: '操作类型:',
configuration: '配置内容:',
back: '返回',
rollbackSuccessful: '回滚成功',
rollbackDelete: '删除',
update: '更新',
insert: '插入',
},
};
export default I18N_CONF;
|
import {
// before,
describe,
it
} from 'mocha'
import chai from 'chai'
import sinon from 'sinon'
import { PngToSvg } from '../../lib'
import fs from 'fs-extra'
import { xml2js } from 'xml-js'
import Jimp from 'jimp'
// import { mkdir } from 'shelljs'
import path from 'path'
const assert = chai.assert
sinon.assert.expose(assert, { prefix: '' })
const dataPath = path.resolve(__dirname, '..', 'data', 'png')
describe('PngToSvg class', () => {
describe('convert method', () => {
const testTilesFiles = fs.readdirSync(dataPath)
// before(() => {
// const outputPath = path.resolve(__dirname, '..', 'output')
// mkdir('-p', outputPath)
// return Promise.all(
// testTilesFiles
// .map(testTileFile => {
// const inputFilePath = path.resolve(dataPath, testTileFile)
// const outputFilePath = path.resolve(
// outputPath,
// path.dirname(testTileFile),
// `${path.basename(testTileFile, path.extname(testTileFile))}.svg`
// )
// return PngToSvg.convert(inputFilePath)
// .then(svgString => fs.writeFile(outputFilePath, svgString))
// })
// )
// })
testTilesFiles
.forEach(testTileFile => {
it(`${testTileFile} should work with a path`, () => {
const inputFilePath = path.resolve(dataPath, testTileFile)
return PngToSvg.convert(inputFilePath)
})
})
testTilesFiles
.forEach(testTileFile => {
it(`${testTileFile} should work with a buffer`, () => {
const inputFilePath = path.resolve(dataPath, testTileFile)
return fs.readFile(inputFilePath)
.then(inputFileBuffer => PngToSvg.convert(inputFileBuffer))
})
})
testTilesFiles
.forEach(testTileFile => {
it(`${testTileFile} should work with a Jimp instance`, () => {
const inputFilePath = path.resolve(dataPath, testTileFile)
return Jimp.read(inputFilePath)
.then(inputFileJimp => PngToSvg.convert(inputFileJimp))
})
})
testTilesFiles
.forEach(testTileFile => {
it(`${testTileFile} should have a single svg.path node`, () => {
const inputFilePath = path.resolve(dataPath, testTileFile)
return PngToSvg.convert(inputFilePath)
.then(svgString => xml2js(svgString, {compact: true}))
.then(svgObject => {
assert.property(svgObject, 'svg')
assert.nestedProperty(svgObject, 'svg.path')
assert.typeOf(svgObject.svg.path, 'object')
})
})
})
testTilesFiles
.forEach(testTileFile => {
it(`${testTileFile} should have same size and viewbox than origin`, () => {
const inputFilePath = path.resolve(dataPath, testTileFile)
return Promise.all([
Jimp.read(inputFilePath),
PngToSvg.convert(inputFilePath)
.then(svgString => xml2js(svgString, {compact: true}))
])
.then(([imageJimp, svgObject]) => {
assert.nestedProperty(svgObject, 'svg._attributes.width')
assert.nestedPropertyVal(
svgObject,
'svg._attributes.width',
`${imageJimp.bitmap.width}`
)
assert.nestedProperty(svgObject, 'svg._attributes.height')
assert.nestedPropertyVal(
svgObject,
'svg._attributes.height',
`${imageJimp.bitmap.height}`
)
assert.nestedProperty(svgObject, 'svg._attributes.viewBox')
assert.nestedPropertyVal(
svgObject,
'svg._attributes.viewBox',
`0 0 ${imageJimp.bitmap.width} ${imageJimp.bitmap.height}`
)
})
})
})
testTilesFiles
.filter(testTileFile => !['none.png'].includes(testTileFile))
.forEach(testTileFile => {
it(`${testTileFile} should have a defined d inside the path node`, () => {
const inputFilePath = path.resolve(dataPath, testTileFile)
return PngToSvg.convert(inputFilePath)
.then(svgString => xml2js(svgString, {compact: true}))
.then(svgObject => {
assert.nestedProperty(svgObject, 'svg.path._attributes.d')
assert.isNotEmpty(svgObject.svg.path._attributes.d)
})
})
})
testTilesFiles
.filter(testTileFile => ['none.png'].includes(testTileFile))
.forEach(testTileFile => {
it(`${testTileFile} should have an empty d inside the path node`, () => {
const inputFilePath = path.resolve(dataPath, testTileFile)
return PngToSvg.convert(inputFilePath)
.then(svgString => xml2js(svgString, {compact: true}))
.then(svgObject => {
assert.nestedProperty(svgObject, 'svg.path._attributes.d')
assert.isEmpty(svgObject.svg.path._attributes.d)
})
})
})
})
})
|
module.exports = (sequelize, Sequelize) => {
const World = sequelize.define("world", {
name: {
type: Sequelize.STRING,
allowNull: false,
},
});
return World;
};
|
const express = require('express');
const webhook = require('./webhook');
const router = express.Router();
router.get('/', (req, res) => {
res.json({
message: 'API - 👋🌎🌍🌏',
});
});
router.use('/webhook', webhook);
module.exports = router;
|
import './App.css';
import { useSelector } from 'react-redux';
import { Alert } from './Components/Alert';
import { Error } from './Components/Error';
import { Footer } from './Components/Footer';
import { Header } from './Components/Header';
import { Spinner } from './Components/Spinner';
import { AllRoutes } from './Routes/AllRoutes';
function App() {
const {
isError,
isLoading,
isAlert
} = useSelector(state => state.app)
return (
<div className="bg-slate-400 h-screen max-h-screen">
<Header />
<AllRoutes />
<Footer />
{
isLoading === true && <Spinner />
}
{
isError === true && <Error />
}
{
isAlert.status === true && <Alert />
}
</div>
);
}
export default App;
|
"use strict";
module.exports = require("./is-implemented")()
? RegExp.prototype.split
: require("./shim");
|
(function(d){d['pt-br']=Object.assign(d['pt-br']||{},{a:"Não foi possível enviar o arquivo:",b:"Negrito",c:"Sublinhado",d:"Bloco de citação",e:"Insert image or file",f:"Itálico",g:"Inserir imagem",h:"Ferramenta de imagem",i:"Imagem completa",j:"Imagem lateral",k:"Imagem alinhada à esquerda",l:"Imagem centralizada",m:"Imagem alinhada à direita",n:"Escolha o título",o:"Titulo",p:"Link",q:"Falha ao subir arquivo",r:"Inserir legenda da imagem",s:"Ferramenta de mídia",t:"Inserir mídia",u:"A URL não pode ficar em branco.",v:"A URL desta mídia não é suportada.",w:"Lista numerada",x:"Lista com marcadores",y:"Inserir tabela",z:"Coluna de cabeçalho",aa:"Insert column left",ab:"Insert column right",ac:"Excluir coluna",ad:"Coluna",ae:"Linha de cabeçalho",af:"Inserir linha abaixo",ag:"Inserir linha acima",ah:"Excluir linha",ai:"Linha",aj:"Mesclar acima",ak:"Mesclar à direita",al:"Mesclar abaixo",am:"Mesclar à esquerda",an:"Dividir verticalmente",ao:"Dividir horizontalmente",ap:"Mesclar células",aq:"Alinhar à esquerda",ar:"Alinhar à direita",as:"Centralizar",at:"Justificar",au:"Alinhamento do texto",av:"Enviando dados",aw:"Could not obtain resized image URL.",ax:"Selecting resized image failed",ay:"Could not insert image at the current position.",az:"Inserting image failed",ba:"Alterar texto alternativo da imagem",bb:"Editor de Formatação",bc:"Desfazer",bd:"Refazer",be:"Salvar",bf:"Cancelar",bg:"Texto alternativo",bh:"Remover link",bi:"Editar link",bj:"Abrir link em nova aba",bk:"Este link não possui uma URL",bl:"URL",bm:"Parágrafo",bn:"Título 1",bo:"Título 2",bp:"Título 3",bq:"URL da mídia",br:"Paste the URL into the content to embed faster.",bs:"Editor de Formatação, %0"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
(this["webpackJsonpeurovision-ui"]=this["webpackJsonpeurovision-ui"]||[]).push([[0],{23:function(e,t,n){},24:function(e,t,n){},48:function(e,t,n){"use strict";n.r(t);var c=n(2),s=n.n(c),i=n(14),o=n.n(i),a=(n(23),n(18)),r=n.p+"static/media/logo.6ce24c58.svg",u=(n(24),n(15)),j=n.n(u),l=n(16),d=n(17),b=n.n(d),g=n(0),h=function(e){var t=e.song;return Object(g.jsxs)("li",{children:[Object(g.jsx)("div",{children:t.song_name}),Object(g.jsx)("div",{className:"flag",children:Object(g.jsx)(l.a,{country:b()().getValue(t.country)})})]},t.id)},p=function(e){return Object(g.jsx)("ol",{children:e.songs.map((function(e){return Object(g.jsx)(h,{song:e})}))})};var f=function(){var e=Object(c.useState)([]),t=Object(a.a)(e,2),n=t[0],s=t[1];return Object(c.useEffect)((function(){j()({method:"GET",url:"http://127.0.0.1:8000/api/test-api/"}).then((function(e){s(e.data)}))}),[]),Object(g.jsx)("div",{className:"App",children:Object(g.jsxs)("header",{className:"App-header",children:[Object(g.jsx)("img",{src:r,className:"App-logo",alt:"logo"}),Object(g.jsx)(p,{songs:n})]})})},O=function(e){e&&e instanceof Function&&n.e(3).then(n.bind(null,49)).then((function(t){var n=t.getCLS,c=t.getFID,s=t.getFCP,i=t.getLCP,o=t.getTTFB;n(e),c(e),s(e),i(e),o(e)}))};o.a.render(Object(g.jsx)(s.a.StrictMode,{children:Object(g.jsx)(f,{})}),document.getElementById("root")),O()}},[[48,1,2]]]);
//# sourceMappingURL=main.5e035e05.chunk.js.map
|
/**
*
* Determine an element’s location on the screen once it has been scrolled into view.
*
* <example>
:getLocationInView.js
it('should get the location of one or multiple elements in view', function () {
browser.url('http://github.com');
var location = browser.getLocationInView('.octicon-mark-github');
console.log(location); // outputs: { x: 150, y: 20 }
var xLocation = browser.getLocationInView('.octicon-mark-github', 'x')
console.log(xLocation); // outputs: 150
var yLocation = browser.getLocationInView('.octicon-mark-github', 'y')
console.log(yLocation); // outputs: 20
});
* </example>
*
* @alias browser.getLocationInView
* @param {String} selector element with requested position offset
* @return {Object|Object[]} The X and Y coordinates for the element on the page (`{x:number, y:number}`)
*
* @uses protocol/elements, protocol/elementIdLocationInView
* @type property
*
*/
import { CommandError } from '../utils/ErrorHandler'
let getLocationInView = function (selector, prop) {
return this.elements(selector).then((res) => {
/**
* throw NoSuchElement error if no element was found
*/
if (!res.value || res.value.length === 0) {
throw new CommandError(7, selector || this.lastResult.selector)
}
let elementIdLocationInViewCommands = []
for (let elem of res.value) {
elementIdLocationInViewCommands.push(this.elementIdLocationInView(elem.ELEMENT))
}
return Promise.all(elementIdLocationInViewCommands)
}).then((locations) => {
/**
* result already unwrapped when command was reran
*/
if (!Array.isArray(locations)) {
return locations
}
locations = locations.map((location) => {
if (typeof prop === 'string' && prop.match(/(x|y)/)) {
return location.value[prop]
}
return {
x: location.value.x,
y: location.value.y
}
})
return locations.length === 1 ? locations[0] : locations
})
}
export default getLocationInView
|
(function(win){
var ctrl = oui.$.ctrl;
var constant =oui.$.constant;
var common_attrs = "id,name,type,cls,bindProp,style,data,showType,otherAttrs,onUpdate,onAfterUpdate,parentControlId,parentControlName,weakDependence,script4onChange,oui-controller";
var common_events="onUpdate";
var common_methods="render";
/**
* 抽象类定义
*/
var Control = function(cfg) {
var map ={
isPc:(!oui.os.mobile),
clickName:(!oui.os.mobile)?'onclick':'onTap',
showType:"0"
};//装所有控件属性
//right :edit,readOnly,hidden,design
this._map_ = map;
this.getMap = getMap;//获取所有控件属性
this.attr = attr;//暴露控件属性获取与设置的接口
this.attr(cfg);//初始化构造参数
this.eventNames = common_events;
this.methodNames = common_methods;
this.attrs =common_attrs;//控件公共属性列表
this.getEl = getEl;//获取当前控件元素
this.getHtml = getHtml;//暴露获取控件最终HTML的接口
this.render = render;//渲染控件元素
this.putElAttr2Control = putElAttr2Control;//根据对象属性列表设置当前控件属性缓存
this.clear = clear; //清楚缓存对象
this.triggerUpdate = triggerUpdate;
this.triggerAfterUpdate = triggerAfterUpdate; //值改变 后执行事件 一般 失去焦点,下拉、单选 、多选 则是 triggerUpdate后执行
this.hasChildrenControl = hasChildrenControl;//判断当前控件是否有子控件列表
this.change4enumControl = change4enumControl; //下拉,单选,多选 枚举项改变后触发
this.getView = getView;// 获取当前控件所属视图
this.getSourceHtml = getSourceHtml; //获取原始代码中配置html内容
this.getSourceHtmlEscape = getSourceHtmlEscape;//获取转义后的html
this.getSourceHtmlEscapeRuntime = getSourceHtmlEscapeRuntime; //获取运行态源码
this.filterEnumDataByParentControlValue = filterEnumDataByParentControlValue;// 过滤当前控件的待选项(根据父控件的值)
this.findEventNames = findEventNames;
this.findMethodNames = findMethodNames;
};
var getMap = function(){
return this._map_;
};
var findEventNames = function () {
var eventNames= this.eventNames;
if(!eventNames){
return [];
}
return eventNames.split(',');
};
var findMethodNames = function () {
var methodNames= this.methodNames;
if(!methodNames){
return [];
}
return methodNames.split(',');
};
/***判断当前控件是否有子控件 **/
var hasChildrenControl = function(){
var id = this.attr('id');
var name = this.attr('name');
var flag = oui.hasChildrenControl(id) || oui.hasChildrenControl(name);
if(!flag){
var $Parser = oui.$.Parser;
var ids = $Parser.ids||[];
var curr = oui.findOneFromArrayBy(ids,function(ouiId){
var curr = oui.getByOuiId(ouiId);
if(curr){
var parentControlId = curr.attr('parentControlId');
var parentControlName = curr.attr('parentControlName');
if( parentControlId&&(parentControlId ==id) ){
$Parser.hasChildrenControlIdMap[id] = true;
return true;
}
if( parentControlName&&(parentControlName ==name)){
$Parser.hasChildrenControlNameMap[name] = true;
return true;
}
}
});
if(curr){
flag = true;
}
}
return flag;
};
/*** 值改变时触发 枚举级联的控件渲染******/
var change4enumControl = function(){
var isEnumControl = this.isEnumControl;
if(!isEnumControl){
return ;
}
var id = this.attr('id');
var value = this.attr('value');
var name = this.attr('name');
/**没有子控件则返回 **/
if(!this.hasChildrenControl()){
return ;
}
var controls = oui.getChildrenControlsById(id) ||[];
var controls4name = oui.getChildrenControlsByName(name) ||[];
controls = controls.concat(controls4name);
//判断当前 枚举控件 是否在条件组件中
var otherAttrs = this.attr('otherAttrs') ||'{}';
otherAttrs = oui.parseJson(otherAttrs);
/*** 单独处理 在条件组件中的 下拉、单选 等控件,清理非条件组件下的级联控件****/
if(otherAttrs && otherAttrs.conditionOuiId){
//在条件组件中,则进行 判断条件组件中的字段之间级联处理
var tempControls = [];
var conditionControl = oui.getByOuiId(otherAttrs.conditionOuiId);
if(conditionControl && conditionControl.ouiGroupControl){
var conditionEl = conditionControl.getEl();
$(conditionEl).parent('li').parent('ul').children('li').each(function(){
var $curr = $(this);
if($curr.hasClass('group-condition-rules-or-li')){
return;
}
var $currEl = $curr.children('div[ouiid]');
if($currEl.length && $currEl.length ==1){
var currConditionControl = oui.getByOuiId($currEl.attr('ouiId'));
if(currConditionControl&& currConditionControl.getSelectedFieldControl){
var currFieldControl = currConditionControl.getSelectedFieldControl();
if(controls.indexOf(currFieldControl)>-1){
tempControls.push(currFieldControl);
}
}
}
});
}
controls = tempControls;
}else{
/** 清理条件组件下的 级联控件****/
var tempControls = [];
for(var i= 0,len=controls.length;i<len;i++){
if(controls[i]&&controls[i].attr){
var tempOtherAttrs = oui.parseJson(controls[i].attr('otherAttrs')||"{}");
if(!(tempOtherAttrs && tempOtherAttrs.conditionOuiId)){
tempControls.push(controls[i]);
}
}
}
controls = tempControls;
}
var hasCurrIdx = controls.indexOf(this);
if(hasCurrIdx>-1){
//剔除 本对象,防止 循环触发调用
controls.splice(hasCurrIdx,1);
}
/**没有子控件则返回 **/
if(!controls.length){
return ;
}
/** 遍历找出当前枚举项***/
var data = this.attr('data');
var idx=-1;
var enumIds = []; //需要考虑多选场景
var enumId = null;
var valueArr = (value+'')?(value+'').split(','):[];
var isMulti = valueArr.length>1;
if(value+''){
if(isMulti){
for(var i= 0,len=data.length;i<len;i++){
if((valueArr.indexOf(data[i].value+'')>-1) &&(data[i].id)){
enumIds.push(data[i].id);
}
}
/** 没找到则返回**/
if(!enumIds.length){
return ;
}
}else{
for(var i= 0,len=data.length;i<len;i++){
if((value+'') == (data[i].value+'')){
idx = i;
break;
}
}
/** 没找到则返回**/
if(idx == -1){
return ;
}
/*** 没有枚举id则返回**/
enumId = data[idx].id;
if(!enumId){
return ;
}
}
}
/** 循环处理子控件的data属性,根据原始的data数据进行遍历找出子枚举项,渲染对应的枚举项****/
for(var i= 0,len=controls.length;i<len;i++){
var oldData = controls[i].attr('oldData')||[];
var chData = [];
if(enumId || (enumIds&&enumIds.length)){
for(var j= 0,chLen=oldData.length;j<chLen;j++){
if(isMulti){
if(enumIds.indexOf(oldData[j].parentId)>-1){
chData.push(oldData[j]);
}
}else{
if(enumId ==oldData[j].parentId){
chData.push(oldData[j]);
}
}
}
}
if(!(value+'')){
//父枚举值为空,对弱依赖关系的处理
/*** 如果值为空,强依赖 则进行强依赖枚举 枚举过滤****/
if((!controls[i].attr('weakDependence')) || (controls[i].attr('weakDependence')=='false')){
controls[i].attr('value','');
controls[i].attr('data',chData);
}else{
//值不存在,如果是弱依赖,则需要显示原始枚举项
controls[i].attr('value','');
controls[i].attr('data',oldData);
}
}else{
//值存在,则进行枚举过滤
controls[i].attr('value','');
controls[i].attr('data',chData);
}
controls[i].render();
controls[i].triggerUpdate();
}
};
/** 根据父控件过滤枚举控件 待选项*****/
var filterEnumDataByParentControlValue = function(){
var parentControlName = this.attr('parentControlName');
var parentControlId = this.attr('parentControlId');
var oldData = this.attr('oldData')||this.attr('data') ||[];
var currParantControl;
var parentControl;
if(parentControlId){
currParantControl = oui.getById(parentControlId);
parentControl = currParantControl;
}else if(parentControlName){
var otherAttrs = this.attr('otherAttrs') ||'{}';
otherAttrs = oui.parseJson(otherAttrs);
/*** 单独处理 在条件组件中的 下拉、单选 等控件****/
//判断是否在条件组件中,如果在条件组件中,则进行筛选;如果不在条件中则 根据name找单个控件
if(otherAttrs && otherAttrs.conditionOuiId){
var controls = oui.getManyByName(parentControlName);
//存在多个同名情况的处理
var tempControls = [];
var conditionControl = oui.getByOuiId(otherAttrs.conditionOuiId);
if(conditionControl && conditionControl.ouiGroupControl){
var conditionEl = conditionControl.getEl();
$(conditionEl).parent('li').parent('ul').children('li').each(function(){
var $curr = $(this);
if($curr.hasClass('group-condition-rules-or-li')){
return;
}
var $currEl = $curr.children('div[ouiid]');
if($currEl.length && $currEl.length ==1){
var currConditionControl = oui.getByOuiId($currEl.attr('ouiId'));
if(currConditionControl&& currConditionControl.getSelectedFieldControl){
var currFieldControl = currConditionControl.getSelectedFieldControl();
if(controls.indexOf(currFieldControl)>-1){
tempControls.push(currFieldControl);
}
}
}
});
}
controls = tempControls;
if(controls && controls.length >=1){
parentControl = controls[0];
}
}else{
//需要 业务保证 name使用的唯一性,否则可能找到多个同名的依赖父控件
parentControl = oui.getByName(parentControlName);
}
/** 父控件不存在 则直接返回原始数据**/
if(!parentControl){
return oldData;
}
}else{
return oldData;
}
var chData = [];
/** 遍历找出当前枚举项***/
var data = parentControl.attr('data') ||[];
var value = parentControl.attr('value') ||"";
var valueArr = (value+'')?(value+'').split(',') : [];
var isMulti = valueArr&&(valueArr.length>1);
var idx=-1;
var enumId = null;
var enumIds = [];
if(value+''){
if(isMulti){
//value存在 则进行过滤
for(var i= 0,len=data.length;i<len;i++){
if(valueArr.indexOf(data[i].value+'')>-1){
enumIds.push(data[i].id);
}
}
/** 没找到则返回**/
if(!enumIds.length){
return oldData;
}
}else{
//value存在 则进行过滤
for(var i= 0,len=data.length;i<len;i++){
if((value+'') == (data[i].value+'')){
idx = i;
break;
}
}
/** 没找到则返回**/
if(idx == -1){
return oldData;
}
/*** 没有枚举id则返回**/
enumId = data[idx].id;
if(!enumId){
return oldData;
}
}
}else{
//值不存在,则进行判断是否弱依赖
if((!this.attr('weakDependence')) || (this.attr('weakDependence')=='false')){
//强依赖 返回 空数组
return chData;
}else{
//弱依赖 返回 原数据
return oldData;
}
}
if(enumId || (enumIds && enumIds.length)){
for(var j= 0,chLen=oldData.length;j<chLen;j++){
if(isMulti){
if(enumIds.indexOf(oldData[j].parentId)>-1){
chData.push(oldData[j]);
}
}else{
if(enumId ==oldData[j].parentId){
chData.push(oldData[j]);
}
}
}
}
return chData;
};
/** 获取当前控件所属视图****/
var getView = function(){
var el = this.getEl();
var mvSelector ='.oui-class-ouiview';
var $mv = $(el).closest(mvSelector);
var view = null;
if(($mv) && ($mv.length)){
var ouiId = $mv.attr('ouiid');
if(ouiId){
view = oui.getByOuiId(ouiId);
}
}
return view;
};
/**
* 触发更新事件
*/
var triggerUpdate = function(){
var bindProp = this.attr('bindProp'); //数据绑定
if(bindProp){
var value = this.attr('value');
var view = this.getView();
if(view){
var data = view.getData();
var oldV = oui.JsonPathUtil.getJsonByPath(bindProp,data) || null; //当前内存中的值
if(oldV !== value){
oui.JsonPathUtil.setObjByPath(bindProp,data,value,true);
}
}else{
var oldV = oui.JsonPathUtil.getJsonByPath(bindProp,window) || null; //当前内存中的值
if(oldV !== value){
oui.JsonPathUtil.setObjByPath(bindProp,window,value,true);
}
}
}
this.change4enumControl();
var onUpdate = this.attr('onUpdate');
if(onUpdate){
var el = this.getEl();
var controller = $(el).closest('[oui-controller]').attr('oui-controller');
if(controller){
controller = oui.parseJson(controller);
}else{
controller = window;
}
var onUpdates = [];
if(typeof onUpdate =='string'){
var arr = onUpdate.split(',');
for(var i= 0,len=arr.length;i<len;i++){
var fun = $.trim(arr[i]);
if(fun){
if(fun.indexOf('\.')>0){//全路径的类方法指定
var tempFun;
try{
tempFun = win.eval(fun);
}catch(err){
}
if(tempFun)
onUpdates.push(tempFun);
}else{//
var tempFun = (controller&&controller[fun]) || window[fun];
if(tempFun){
onUpdates.push(tempFun);
}
}
}
}
}else if(onUpdate){
onUpdates.push(onUpdate);
}
for(var i= 0,len=onUpdates.length;i<len;i++){
onUpdates[i]&& onUpdates[i](this);
}
}
};
/**
* 触发更新后事件,一般在 失去焦点 ,点击后执行
*/
var triggerAfterUpdate = function(){
var onAfterUpdate = this.attr('onAfterUpdate');
if(onAfterUpdate){
var onAfterUpdates = [];
if(typeof onAfterUpdate =='string'){
var arr = onAfterUpdate.split(',');
for(var i= 0,len=arr.length;i<len;i++){
if($.trim(arr[i])){
try {
onAfterUpdates.push(win.eval($.trim(arr[i])));
}catch (e){
if (window.oui_context && oui_context.debug + '' === 'true') {
console.error("onAfterUpdate配置错误" + e);
}
}
}
}
}else if(onAfterUpdate){
onAfterUpdates.push(onAfterUpdate);
}
for(var i= 0,len=onAfterUpdates.length;i<len;i++){
onAfterUpdates[i]&& onAfterUpdates[i](this);
}
}
//值改变事件
var script4onChange = this.attr('script4onChange');
if((typeof script4onChange !='undefined') && (script4onChange)){
var script4onChangeFun =this.attr('script4onChangeFun');
if(!script4onChangeFun){
try{
script4onChangeFun = oui.parseJson2Function(script4onChange);
this.attr('script4onChangeFun',script4onChangeFun);
}catch(e){
oui.getTop().oui.alert('值改变触发脚本解析异常,请联系管理员,检查脚本错误:'+e);
throw e;
}
}
try{
script4onChangeFun&&script4onChangeFun(this);//执行值改变事件
}catch(e){
oui.getTop().oui.alert('值改变触发脚本执行异常,请联系管理员,检查脚本错误:'+e);
throw e;
}
}
};
/**
* 清楚控件对象 map中的缓存对象
*/
var clear = function(){
var map = this.getMap();
for(var i in map){
map[i] = null;
delete map[i];
}
for( var i in this){
this[i] = null;
delete this[i];
}
};
/**
* 根据控件对象、属性列表、元素设置控件对象的属性值
* @param el
*/
var putElAttr2Control = function(el) {
if (!el) {return;}
var arr = this.attrs.split(',');
for (var i = 0, len = arr.length; i < len; i++) {
if (arr[i] == 'value') {continue;}// 在解析引擎中默认会解析value属性
var v = '';
if (arr[i] == 'cls') {v = $(el).attr("class");}
else {v = $(el).attr(arr[i]);}
if(v){
this.getMap()[arr[i]] = v;
}else{
this.getMap()[arr[i]] = this.getMap()[arr[i]] || "";
}
// 解析元素属性,并设置到对象map中
}
};
/**
* 获取控件将渲染的html内容,可提供子类重写
*/
var getHtml = function(){
var h = "";
var clazz = this.constructor;
if(!clazz._getHtml){
clazz._getHtml = {};
}
var tplTypeConfig =clazz.tplTypeConfig||{};
clazz.tplTypeConfig = tplTypeConfig;
var tplType = tplTypeConfig[this.attr('showType')];
if(!tplType){
tplType = oui.TplTypeEnum.artTemplate.name;
}
if(!clazz._getHtml[this.attr('showType')]){
var temp = clazz.templateHtml[this.attr('showType')];
if(!temp){
oui.log('控件类:'+clazz.FullName+' 中没有定义控件模板templateHtml属性');
throw e ;
}
if(!tplType){
throw new Error(""+clazz.fullName+"模板类型没有指定,请联系前端控件维护人员");
}
if(!oui.TplTypeEnum[tplType]){
throw new Error(""+clazz.fullName+"模板类型不支持"+tplType+",请联系前端控件维护人员");
}
clazz._getHtml[this.attr('showType')] = oui.TplTypeEnum[tplType].compile(temp);//根据模板类型进行编译模板并缓存
}
var map = this.getMap();
h = oui.TplTypeEnum[tplType].getHtml(this,clazz);
var s = '<div ';
if(map['oui-controller']){
s+='oui-controller="'+map['oui-controller']+'" ';
}
s+= ('ouiId="'+map.ouiId+'" ');//ouiId定义
s+= ('id="'+constant.controlIdPrefix+map.id+'" ');//id 定义
s+= ('showType="'+map.showType+'" ');//showType 模板号
if(map.style){ s+= ('style="'+map.style+'" '); } // 继承标签style定义
var names = clazz.FullName.split('.');
var controlName = names[names.length-1];
var showTypeInCls = ' '+constant.controlClassNamePrefix+controlName;
if(map.showType!=0){
showTypeInCls +="-"+map.showType;
}
/***必填样式 ***/
var require = oui.getJsonAttr(map,'validate.require');
if(typeof require =='string'){
if(require =='true'){
require = true;
}else{
require = false;
}
}
if(map.cls){
if(require){
s+= ('class="'+map.cls+showTypeInCls+' oui-require"');
}else{
s+= ('class="'+map.cls+showTypeInCls+'"');
}
}else{
if(require){
s+= ('class="'+showTypeInCls+' oui-require"');
}else{
s+= ('class="'+showTypeInCls+'"');
}
}// 继承标签 class定义
s+='>';
s+=h;
s+='</div>';
return s ;//根据对象返回html内容
};
/**
* 获取当前控件对应的元素
* @returns
*/
var getEl = function(){
var ouiId =this.attr(constant.ouiIdName);//获取当前元素
return $("["+constant.ouiIdName+"='"+ouiId+"']")[0] || document.getElementById(this.attr('id'));
};
/**
* 渲染当前控件对象的dom操作,
* 可以由子类重写 实现对dom进行操作
*/
var render = function(){
var el = this.getEl();
if(!el){return ;}
var clazz = this.constructor;
var config = clazz.tplTypeConfig||{};
var showType = this.attr('showType');
var tplType = config[showType];
if(!tplType){
tplType = oui.TplTypeEnum.artTemplate.name;
}
//if(!tplType){
// throw new Error(clazz.fullName+',控件中没有配置模板类型,请联系控件维护人员');
//}
var tplTypeEnum = oui.TplTypeEnum[tplType];
if(!tplTypeEnum){
throw new Error(clazz.fullName+',控件中没有配置模板类型,请联系控件维护人员');
}
tplTypeEnum.beforeRender&&tplTypeEnum.beforeRender(this,el);//模板引擎渲染前处理
this.beforeRender&&this.beforeRender();//之前控件自身的渲染前处理
var html = this.getHtml();
el.outerHTML = html;//将渲染后的HTML代码替换原始标签的outerHTML
el = null;
tplTypeEnum.render&&tplTypeEnum.render(this);//特定模板引擎渲染处理
tplTypeEnum.afterRender&&tplTypeEnum.afterRender(this);//特定模板引擎渲染后处理
this.afterRender&&this.afterRender();//执行控件自身的后置渲染
};
/**
* 获取或者设置对象属性值
当输入参数有一个,如果参数类型为字符串;则返回该属性对应的值
当输入参数有一个,如果参数类型为对象,则批量设置改对象的属性值
当输入参数有两个,则设置对象的属性值
* @param key
* @param v
*/
var attr = function(key,v){
var len = arguments.length;
if(len==1 && typeof key=='string'){//当输入参数有一个,如果参数类型为字符串;则返回该属性对应的值
if(key =='value'){
if(typeof this.getMap()[key]=='string'){
return $.trim(this.getMap()[key]);
}
}
return this.getMap()[key];
}
if(len==1 && typeof key=='object'){//当输入参数有一个,如果参数类型为对象,则批量设置改对象的属性值
var o = key;
for(var i in o){
this.getMap()[i] = o[i];
}
return ;
}
if(len==2){//当输入参数有两个,则设置对象的属性值
this.getMap()[key] = v;
}
};
/** 获取原始代码的html内容**/
var getSourceHtml = function(){
return this.attr('sourceHtml');
};
/** 获取转义后的sourceHTML***/
var getSourceHtmlEscape = function(){
var s = this.attr('sourceHtml') ||'';
var attrs = this.attrs;
var keys = ['class'].concat(attrs.split(',')); // class默认没有在样式属性中
var $s = $(s);
var tag = $s[0].tagName.toLowerCase();
var attrStrs = [];
for(var i= 0,len=keys.length;i<len;i++){
var key = keys[i];
var v = $s.attr(key);
if(v&&key){
v = v.replace(/}}/g,' } } ').replace(/{{/g,' { { ');
v = oui.escapeStringToHTML(v);//{{ }} 双层花括号是模板语法的特殊语法,不能有模板语法
attrStrs.push(key+'="'+v+'"');
}
}
var html ='<'+tag+' '+attrStrs.join(' ')+'>'+$s.html()+'</'+tag+'>';
return html;
};
/** 获取当前控件运行态对应的源码****/
var getSourceHtmlEscapeRuntime = function(){
var s = this.attr('sourceHtml') ||'';
var attrs = this.attrs;
var keys = ['class'].concat(attrs.split(',')); // class默认没有在样式属性中
var $s = $(s);
var tag = $s[0].tagName.toLowerCase();
var attrStrs = [];
for(var i= 0,len=keys.length;i<len;i++){
var key = keys[i];
var v ='';
if(key =='sourceHtml'){
continue;
}else if(key =='class'){
v = $s.attr(key);
}else{
v = this.attr(key);
if(typeof v =='object'){
v = oui.parseString(v);
}else if ((typeof v =='function') ||(v instanceof Function)){
v = $s.attr(key);
}else{
v +='';
}
}
if(v&&key){
v = v.replace(/}}/g,' } } ').replace(/{{/g,' { { ');
v = oui.escapeStringToHTML(v);//{{ }} 双层花括号是模板语法的特殊语法,不能有模板语法
attrStrs.push(key+'="'+v+'"');
}
}
var html ='<'+tag+' '+attrStrs.join(' ')+'>'+$s.html()+'</'+tag+'>';
return html;
};
var _currProType = null;
Control.getProtoType = function () {
if (!_currProType) {
_currProType = new Control({});
}
return _currProType;
};
/** 字段权限枚举
* hidden,invisible隐藏和不可见两种权限 控件不实现模板
* *****/
var FieldRightEnum={
edit:{
name:'edit',
desc:'编辑',
value:1
}, //编辑
view: {
name:'readOnly',
desc:'浏览',
value:2
},//浏览
hidden:{
name:'hidden',
desc:'隐藏',
value:3
},//隐藏
invisible:{
name:'invisible',
desc:'不可见',
value:4
},// 不可见
edit4ReadOnly:{
name:'edit4ReadOnly',
desc:'编辑不可改',
value:5
},// 编辑不可改
edit4View:{
name:'edit4View',
desc:'浏览可提交',
value:6
}//浏览可提交
};
oui.FieldRightEnum =FieldRightEnum;
/** 创建控件类的模板 ****/
/***
*
* @param ControlClz 指定控件类
* @param right 指定权限模板
* @param showType 指定模板编号
* @param tempHtml 指定模板字符串内容
* @param tplType 模板类型 ,参考 tpl-type.js ,TplTypeEnum{vue,react,artTemplate,...}中的name
*/
Control.buildTemplate = function(ControlClz,right,showType,tempHtml,tplType){
if(typeof right =='object'){
showType = right.showType;
tempHtml = right.tpl||'';
tplType = right.tplType||'';
right = right.right ||'';
}
if(typeof showType =='undefined'){
showType =0;
}else{
if(!(showType+'')){
showType=0;
}
}
if(!tplType){
tplType ='vue';
}
if(!right){
right ='';
}
if(!tplType){
tplType = oui.TplTypeEnum.artTemplate.name;//默认为artTemplate模板
}
if((right.indexOf(',')>0) || ((''+showType).indexOf(',')>0)){
Control.buildBatchTemplate(ControlClz,right,showType,tempHtml,tplType);
}else{
if(!ControlClz.tplTypeConfig){
ControlClz.tplTypeConfig = {};
}
ControlClz.tplTypeConfig[showType] = tplType;
if(right == FieldRightEnum.edit.name){
if(!ControlClz.templateHtml){
ControlClz.templateHtml = [];
}
ControlClz.templateHtml[showType] = tempHtml;
}else{
if(!ControlClz['templateHtml4'+right]){
ControlClz['templateHtml4'+right] = [];
}
ControlClz['templateHtml4'+right][showType] = tempHtml;
}
}
};
/** 批量创建模板,指定的模板引用相同时可以用批量创建模板*****/
Control.buildBatchTemplate = function(ControlClz,right,showType,tempHtml,tplType){
var rightArr = right.split(',');
var showTypeArr = (''+showType).split(',');
for(var i= 0,len=rightArr.length;i<len;i++){
for(var j= 0,sLen=showTypeArr.length;j<sLen;j++){
Control.buildTemplate(ControlClz,rightArr[i],showTypeArr[j],tempHtml,tplType);
}
}
};
ctrl['basecontrol'] = Control;//将抽象控件类放入到oui.$.ctrl命名空间下
})(window);
|
function addFocusCharts(_char) {
function rangesEqual(range1, range2) {
if (!range1 && !range2) {
return true;
}
else if (!range1 || !range2) {
return false;
}
else if (range1.length === 0 && range2.length === 0) {
return true;
}
else if (range1[0].valueOf() === range2[0].valueOf() &&
range1[1].valueOf() === range2[1].valueOf()) {
return true;
}
return false;
}
_char.focusCharts = function (chartlist) {
if (!arguments.length) {
return this._focusCharts;
}
this._focusCharts = chartlist; // only needed to support the getter above
this.on('filtered', function (range_chart) {
if (!range_chart.filter()) {
dc.events.trigger(function () {
chartlist.forEach(function(focus_chart) {
focus_chart.x().domain(focus_chart.xOriginalDomain());
});
});
} else chartlist.forEach(function(focus_chart) {
if (!rangesEqual(range_chart.filter(), focus_chart.filter())) {
dc.events.trigger(function () {
focus_chart.focus(range_chart.filter());
});
}
});
});
return this;
};
}
|
import React, { Fragment } from 'react';
import { Switch, Route } from 'react-router-dom';
import Container from './Studio';
// Bring in common stylesheets, that contain stylesheets for the entire app.
import '../assets/scss/common.scss';
/**
* Contains the routes for switching between pages
* @return{React.Component}
*/
const App = () => (
<Fragment>
<Switch>
<Route exact path="/" component={Container} />
<Route exact path="/studio" component={Container} />
</Switch>
</Fragment>
);
export default App;
|
export default {
login:{"user":{"id":"310000198406275362","name":"宫雪","nickName":"Taylor","phone":"14309472560","age":74,"address":"浙江省 绍兴市 上虞市","isMale":false,"email":"w.pdmenv@rwfwadthss.tr","createTime":"1976-08-15 06:37:12","delFlag":0,"status":1,"userType":"1","no":"310000198406275362","remarks":"传方半织意意列业维领细斯样年场不次。样影此么论重示般会际开出二及西高。","avatar":"static/img/user.png"},"sid":"310000198406275362"},
msgList:[{"id":"310000201511210936","type":1,"code":102,"timeLine":"1975051514","message":"元派目想铁难而应才院色种离。义两作期复铁节被制等头设。此能论装受我电局代算素业用我。","title":"除口方增常处装公会深此面","createTime":"1192729032451","senderName":"Smith","senderPic":"http://dummyimage.com/100x100/d9f279/757575.png&text=S"},{"id":"460000201611256678","type":0,"code":108,"timeLine":"1972022907","message":"门可太长消题四义人素分天习。","title":"车主精论状第算整京联科出报","createTime":"1019549821001","senderName":"Anderson","senderPic":"http://dummyimage.com/100x100/e779f2/757575.png&text=A"},{"id":"21000019780808275X","type":1,"code":105,"timeLine":"1970031803","message":"指给西着林为计着布同细认产。","title":"正白要外高情总儿才必响","createTime":"503250769103","senderName":"Clark","senderPic":"http://dummyimage.com/100x100/79f2c4/757575.png&text=C"},{"id":"540000197505267710","type":1,"code":106,"timeLine":"2010020800","message":"变没装调标矿劳土类角九至由。特引南素都则次采特分义管装设青工率新。海者快决角定标门段越美流东厂体。","title":"马争有战采圆还使层极口队理任目器万干","createTime":"1282562311030","senderName":"Anderson","senderPic":"http://dummyimage.com/100x100/f2a179/757575.png&text=A"},{"id":"120000201607082136","type":0,"code":110,"timeLine":"1995042315","message":"议价进则族外代水白深白离系。质体们劳确作水今领议圆个中处每容江。","title":"看变易精最领得都","createTime":"557022187618","senderName":"Martinez","senderPic":"http://dummyimage.com/100x100/7d79f2/757575.png&text=M"},{"id":"310000199103172213","type":1,"code":107,"timeLine":"1993081322","message":"和油得离接装小都空看来响资。部算调法土图毛重知参时图改用化龙观地。","title":"史运美很且应部想器发此精","createTime":"331067892810","senderName":"Hernandez","senderPic":"http://dummyimage.com/100x100/97f279/757575.png&text=H"},{"id":"310000201408208918","type":0,"code":107,"timeLine":"1996071523","message":"影将度更调图界实交接外他度龙习。米战走加系区日委也总图日。","title":"高按我发史社就高水复周","createTime":"1115948146226","senderName":"Robinson","senderPic":"http://dummyimage.com/100x100/f279bb/757575.png&text=R"},{"id":"500000200504263440","type":0,"code":101,"timeLine":"1972032318","message":"都八在取音特业划克天造求照般。","title":"整家水山又知整新便分现物精划放干","createTime":"1241409165029","senderName":"Clark","senderPic":"http://dummyimage.com/100x100/79def2/757575.png&text=C"},{"id":"320000198908103896","type":1,"code":105,"timeLine":"2009010906","message":"当式名厂采物且计料三公切点应更民体。内反温干华点方上等或划消但名反到准。","title":"况别联东红后还由列级任法向","createTime":"138005376045","senderName":"Walker","senderPic":"http://dummyimage.com/100x100/f2e279/757575.png&text=W"},{"id":"330000199709134661","type":0,"code":102,"timeLine":"2007031214","message":"都种形一必采海想元的调次位府团系。社界个向但所历亲器它争计积相所为记。适心称备叫近理或种使水算党须今划文。","title":"酸约况实改火间子直后约质影反","createTime":"434811164417","senderName":"Thompson","senderPic":"http://dummyimage.com/100x100/bf79f2/757575.png&text=T"}],
roleList:[{"id":26,"delFlag":0,"parentId":null,"sort":0,"name":"超级管理员","enName":"super_manager","usable":"1","remarks":"","children":[]},{"id":27,"delFlag":0,"parentId":null,"sort":1,"name":"客服主管","enName":"server_manager","usable":"1","remarks":"","children":[{"id":28,"delFlag":0,"parentId":27,"sort":0,"name":"售后客服","enName":"server1","usable":"1","remarks":"","children":[]},{"id":29,"delFlag":0,"parentId":27,"sort":1,"name":"售前客服","enName":"server2","usable":"1","remarks":"","children":[]}]}],
userList:{records: [{"id":"340000198910193425","name":"曹明","nickName":"Hall","phone":"15692311412","age":88,"address":"湖南省 娄底市 双峰县","isMale":false,"email":"c.czieispd@cwp.gov.cn","createTime":"1978-05-22 08:53:07","delFlag":0,"status":1,"userType":"1","no":"340000198910193425","remarks":"近火就把政通增电加能开比没现过对办部。对率大元这证起速构感型众决王每状使。取力近标子组毛济料构论美业。","avatar":"http://dummyimage.com/100x100/79f28a/757575.png&text=H"},{"id":"350000201505204609","name":"田磊","nickName":"Young","phone":"15712309986","age":71,"address":"湖北省 随州市 随县","isMale":true,"email":"h.xmhalr@tswxut.ba","createTime":"2008-05-09 22:47:14","delFlag":0,"status":1,"userType":"1","no":"350000201505204609","remarks":"作又整只与关法期快口广信认东我比家。克用和科土江族住几起提因体将。","avatar":"http://dummyimage.com/100x100/79d1f2/757575.png&text=Y"},{"id":"630000198302122489","name":"顾霞","nickName":"Clark","phone":"14468417672","age":52,"address":"贵州省 黔东南苗族侗族自治州 岑巩县","isMale":true,"email":"h.bwzpy@lwlv.lt","createTime":"1978-09-18 16:05:12","delFlag":0,"status":1,"userType":"1","no":"630000198302122489","remarks":"共图务低义间需图加思较极用。理干该认值段或那门动位风义机产。带象商领党系千单证用水可保水今近细。","avatar":"http://dummyimage.com/100x100/8e79f2/757575.png&text=C"},{"id":"120000198201065745","name":"汤杰","nickName":"Brown","phone":"14817334423","age":38,"address":"天津 天津市 武清区","isMale":true,"email":"y.kxies@rrkf.do","createTime":"1970-09-25 13:39:05","delFlag":0,"status":1,"userType":"1","no":"120000198201065745","remarks":"维重常军规种可真入千组部方程红平水。按四很青水合道数以及铁集路上商。","avatar":"http://dummyimage.com/100x100/7986f2/757575.png&text=B"},{"id":"440000200412284520","name":"江涛","nickName":"Lee","phone":"14481283062","age":13,"address":"陕西省 渭南市 白水县","isMale":true,"email":"c.ukigvuno@kwfk.bt","createTime":"2008-08-13 02:57:58","delFlag":0,"status":1,"userType":"1","no":"440000200412284520","remarks":"济么形细难今上观难上设水民史。进又十西报成养时求并发者向。近火料新产回造统加正则教管到所别。","avatar":"http://dummyimage.com/100x100/79e6f2/757575.png&text=L"},{"id":"440000201502214088","name":"曾桂英","nickName":"Allen","phone":"15501677076","age":68,"address":"黑龙江省 齐齐哈尔市 梅里斯达斡尔族区","isMale":true,"email":"g.qaioxl@ffhpyfvnn.bn","createTime":"2000-05-24 08:08:42","delFlag":0,"status":1,"userType":"1","no":"440000201502214088","remarks":"口什采它六委市切门型部感前强子。真部最率体一程基入族外品。","avatar":"http://dummyimage.com/100x100/f2e979/757575.png&text=A"},{"id":"440000198106296849","name":"高霞","nickName":"Wilson","phone":"14488966580","age":82,"address":"新疆维吾尔自治区 昌吉回族自治州 奇台县","isMale":false,"email":"o.spamgt@nnbdwoaw.ad","createTime":"1977-01-26 04:18:22","delFlag":0,"status":1,"userType":"1","no":"440000198106296849","remarks":"以美理更管它存量种通不派车名然江。它已文道道百其百军达和知色。","avatar":"http://dummyimage.com/100x100/79e0f2/757575.png&text=W"},{"id":"640000200202182849","name":"顾平","nickName":"Rodriguez","phone":"14766033445","age":96,"address":"香港特别行政区 新界 离岛区","isMale":false,"email":"r.octrublxo@njk.kz","createTime":"1985-10-17 04:53:21","delFlag":0,"status":1,"userType":"1","no":"640000200202182849","remarks":"品持些示调般其需走你气切到热采工土。回响四立干百史号同特实子确又消已。","avatar":"http://dummyimage.com/100x100/8af279/757575.png&text=R"},{"id":"230000200802175187","name":"陈洋","nickName":"Garcia","phone":"15288638355","age":90,"address":"江西省 九江市 彭泽县","isMale":true,"email":"j.fumo@fcrx.dk","createTime":"2013-05-07 00:53:32","delFlag":0,"status":1,"userType":"1","no":"230000200802175187","remarks":"总其许他年矿率本根参变世。低南育体眼派万精长并车响料战。","avatar":"http://dummyimage.com/100x100/79f2cb/757575.png&text=G"},{"id":"610000200403119453","name":"范敏","nickName":"Brown","phone":"15178636234","age":80,"address":"海南省 三亚市 -","isMale":true,"email":"k.jbvimbagi@diwsihdqxx.dz","createTime":"1993-04-10 17:15:50","delFlag":0,"status":1,"userType":"1","no":"610000200403119453","remarks":"米界价区质需类边被自则按。江期合行色离接身准连工个称大说应目。称较号重生者素求几那开标算包属。","avatar":"http://dummyimage.com/100x100/79f2c2/757575.png&text=B"}],total:99},
menuList:[{"id":6,"parentId":null,"sort":6,"name":"系统管理","href":"/sys","icon":"fa fa-cog","children":[{"id":108,"parentId":6,"sort":0,"name":" 资源管理","href":"/sys/resource","icon":"fa fa-database","children":[],"isShow":"1"},{"id":7,"parentId":6,"sort":1,"name":"菜单管理","href":"/sys/menuList","icon":"fa fa-navicon","children":[],"isShow":"1"},{"id":8,"parentId":6,"sort":2,"name":"角色管理","href":"/sys/roleList","icon":"fa fa-universal-access","children":[],"isShow":"1"},{"id":9,"parentId":6,"sort":3,"name":"用户管理","href":"/sys/userList","icon":"fa fa-user-plus","children":[],"isShow":"1"}],"isShow":"1"},{"id":1,"parentId":null,"sort":0,"name":"仪表盘","href":"/index","icon":"fa fa-dashboard","children":[],"isShow":"1"},{"id":31,"parentId":null,"sort":1,"name":"测试1","href":"/test/1","icon":"fa fa-upload","children":[{"id":92,"parentId":31,"sort":0,"name":"测试1-1","href":"/test/1/1","icon":"fa fa-bank","children":[{"id":912,"parentId":92,"sort":0,"name":"测试1-1-1","href":"/test/1/1/1","icon":"fa fa-bank","children":[],"isShow":"1"},{"id":913,"parentId":92,"sort":0,"name":"测试1-1-2","href":"/test/1/1/2","icon":"fa fa-area-chart","children":[],"isShow":"1"}],"isShow":"1"},{"id":93,"parentId":31,"sort":0,"name":"测试1-2","href":"/test/1/2","icon":"fa fa-area-chart","children":[],"isShow":"1"}],"isShow":"1"},{"id":102,"parentId":null,"sort":3,"name":"测试2","href":"/test/2","icon":"fa fa-download","children":[{"id":103,"parentId":102,"sort":0,"name":"测试2-1","href":"/test/2/1","icon":"fa fa-image","children":[],"isShow":"1"}],"isShow":"1"}],
resource:[{"id":52,"parentId":null,"sort":0,"name":"登录","code":"/login","type":3,"usable":"1","remarks":"","children":[]},{"id":68,"parentId":null,"sort":0,"name":"仪表盘","code":"/index","type":1,"usable":"1","remarks":"","children":[]},{"id":69,"parentId":null,"sort":0,"name":"系统管理","code":"/sys","type":1,"usable":"1","remarks":"","children":[{"id":82,"parentId":69,"sort":0,"name":"资源管理","code":"/sys/resource","type":1,"usable":"1","remarks":"","children":[{"id":99,"parentId":82,"sort":0,"name":"/sys/resource/get","code":"/sys/resource/get","type":3,"usable":"1","remarks":"","children":[]},{"id":100,"parentId":82,"sort":0,"name":"/sys/resource/update","code":"/sys/resource/update","type":3,"usable":"1","remarks":"","children":[]},{"id":101,"parentId":82,"sort":0,"name":"/sys/resource/delete","code":"/sys/resource/delete","type":3,"usable":"1","remarks":"","children":[]},{"id":102,"parentId":82,"sort":0,"name":"/sys/resource/add","code":"/sys/resource/add","type":3,"usable":"1","remarks":"","children":[]},{"id":103,"parentId":82,"sort":0,"name":"/sys/resource/page","code":"/sys/resource/page","type":3,"usable":"1","remarks":"","children":[]},{"id":104,"parentId":82,"sort":0,"name":"/sys/resource/list","code":"/sys/resource/list","type":3,"usable":"1","remarks":"","children":[]},{"id":105,"parentId":82,"sort":0,"name":"/sys/resource/list2","code":"/sys/resource/list2","type":3,"usable":"1","remarks":"","children":[]}]},{"id":70,"parentId":69,"sort":1,"name":"菜单管理","code":"/sys/menuList","type":1,"usable":"1","remarks":"","children":[{"id":83,"parentId":70,"sort":0,"name":"/sys/menu/get","code":"/sys/menu/get","type":3,"usable":"1","remarks":"","children":[]},{"id":84,"parentId":70,"sort":0,"name":"/sys/menu/update","code":"/sys/menu/update","type":3,"usable":"1","remarks":"","children":[]},{"id":85,"parentId":70,"sort":0,"name":"/sys/menu/delete","code":"/sys/menu/delete","type":3,"usable":"1","remarks":"","children":[]},{"id":86,"parentId":70,"sort":0,"name":"/sys/menu/add","code":"/sys/menu/add","type":3,"usable":"1","remarks":"","children":[]},{"id":87,"parentId":70,"sort":0,"name":"/sys/menu/page","code":"/sys/menu/page","type":3,"usable":"1","remarks":"","children":[]},{"id":88,"parentId":70,"sort":0,"name":"/sys/menu/list","code":"/sys/menu/list","type":3,"usable":"1","remarks":"","children":[]},{"id":89,"parentId":70,"sort":0,"name":"/sys/menu/list2","code":"/sys/menu/list2","type":3,"usable":"1","remarks":"","children":[]}]},{"id":71,"parentId":69,"sort":3,"name":"角色管理","code":"/sys/roleList","type":1,"usable":"1","remarks":"","children":[{"id":90,"parentId":71,"sort":0,"name":"/sys/role/get","code":"/sys/role/get","type":3,"usable":"1","remarks":"","children":[]},{"id":91,"parentId":71,"sort":0,"name":"/sys/role/update","code":"/sys/role/update","type":3,"usable":"1","remarks":"","children":[]},{"id":92,"parentId":71,"sort":0,"name":"/sys/role/delete","code":"/sys/role/delete","type":3,"usable":"1","remarks":"","children":[]},{"id":93,"parentId":71,"sort":0,"name":"/sys/role/add","code":"/sys/role/add","type":3,"usable":"1","remarks":"","children":[]},{"id":94,"parentId":71,"sort":0,"name":"/sys/role/page","code":"/sys/role/page","type":3,"usable":"1","remarks":"","children":[]},{"id":95,"parentId":71,"sort":0,"name":"/sys/role/list","code":"/sys/role/list","type":3,"usable":"1","remarks":"","children":[]},{"id":96,"parentId":71,"sort":0,"name":"/sys/role/list2","code":"/sys/role/list2","type":3,"usable":"1","remarks":"","children":[]},{"id":97,"parentId":71,"sort":0,"name":"/sys/role/resources","code":"/sys/role/resources","type":3,"usable":"1","remarks":"","children":[]},{"id":98,"parentId":71,"sort":0,"name":"/sys/role/setResources","code":"/sys/role/setResources","type":3,"usable":"1","remarks":"","children":[]}]},{"id":72,"parentId":69,"sort":6,"name":"用户管理","code":"/sys/userList","type":1,"usable":"1","remarks":"","children":[{"id":106,"parentId":72,"sort":0,"name":"/sys/user/get","code":"/sys/user/get","type":3,"usable":"1","remarks":"","children":[]},{"id":107,"parentId":72,"sort":0,"name":"/sys/user/add","code":"/sys/user/add","type":3,"usable":"1","remarks":"","children":[]},{"id":108,"parentId":72,"sort":0,"name":"/sys/user/update","code":"/sys/user/update","type":3,"usable":"1","remarks":"","children":[]},{"id":109,"parentId":72,"sort":0,"name":"/sys/user/delete","code":"/sys/user/delete","type":3,"usable":"1","remarks":"","children":[]},{"id":110,"parentId":72,"sort":0,"name":"/sys/user/page","code":"/sys/user/page","type":3,"usable":"1","remarks":"","children":[]},{"id":111,"parentId":72,"sort":0,"name":"/sys/user/roleIds","code":"/sys/user/roleIds","type":3,"usable":"1","remarks":"","children":[]},{"id":112,"parentId":72,"sort":0,"name":"/sys/user/setRoles","code":"/sys/user/setRoles","type":3,"usable":"1","remarks":"","children":[]}]}]}],
}
|
import React from 'react';
import styled from 'styled-components';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import faHandPeace from '@fortawesome/fontawesome-free-solid/faHandPeace';
import { palette } from '../../cssResources';
const Wrapper = styled.header`
letter-spacing: 2px;
font-size: 18px;
margin-bottom: 30px;
padding: 30px 15px 5px 15px;
svg {
display: inline-block;
margin-right: 10px;
}
svg, span {
color: ${palette.darkGray};
}
`;
const Header = () => {
return (
<Wrapper>
<FontAwesomeIcon icon={faHandPeace}/><strong>Chmod<span>Bro</span></strong> — with your permission...
</Wrapper>
);
};
export default Header;
|
var data = {
"body": "<path d=\"M19.58 3H15V1h8v8h-2V4.41l-4.83 4.83A5 5 0 0 1 13 16.9V19h2v2h-2v2h-2v-2H9v-2h2v-2.1a5 5 0 0 1-3.18-7.64L6.64 8.07l-1.4 1.39l-1.41-1.42l1.4-1.39L3 4.42V8H1V1h7v2H4.41l2.23 2.24l1.44-1.43L9.5 5.23L8.06 6.66l1.17 1.18C10 7.31 11 7 12 7s1.96.3 2.75.83L19.58 3M12 9a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
exports.__esModule = true;
exports.default = data;
|
window._ = require('lodash')
window.Vue = require('vue')
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
window.Popper = require('popper.js').default
window.$ = window.jQuery = require('jquery')
require('bootstrap')
} catch (e) {}
/**
* We'll load the axios HTTP library which allows us to easily issue requests
* to our Laravel back-end. This library automatically handles sending the
* CSRF token as a header based on the value of the "XSRF" token cookie.
*/
window.axios = require('axios')
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'
let token = document.querySelector('meta[name="x-csrf-token"]')
if (token) {
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content
} else {
console.error('CSRF token not found')
}
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting
* allows your team to easily build robust real-time web applications.
*/
// import Echo from 'laravel-echo';
// window.Pusher = require('pusher-js');
// window.Echo = new Echo({
// broadcaster: 'pusher',
// key: process.env.MIX_PUSHER_APP_KEY,
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
// forceTLS: true
// });
|
setCssToHead(["@charset \x22UTF-8\x22;\n.",[1],"list.",[1],"data-v-c71166ca { min-height: 100%; padding: ",[0,30],"; background: #fff; }\n",],undefined,{path:"./pages/mine/subPages/collect/collect.wxss"})();
document.dispatchEvent(new CustomEvent("generateFuncReady", { detail: { generateFunc: $gwx('./pages/mine/subPages/collect/collect.wxml') } }));
|
/**
* @license
* MIT License
*
* Copyright (c) 2019 Alexis Munsayac
* 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.
*
*
* @author Alexis Munsayac <alexis.munsayac@gmail.com>
* @copyright Alexis Munsayac 2019
*/
import Room from './room';
/**
* @desc
*
*/
export default class BathRoom extends Room {
}
|
function GameController($scope, GameManager, FetchPhotosFrom500px, bogusAnswers) {
this.manager = GameManager;
GameManager.countriesAndCities = bogusAnswers;
GameManager.initialize();
}
// Called in app.routes.js before the view is rendered.
GameController.resolve = {
bogusAnswers: ['FetchCities', function(FetchCities) {
return FetchCities.query().$promise;
}]
};
GameController.$inject = ['$scope', 'GameManager', 'FetchPhotosFrom500px', 'bogusAnswers'];
angular.module('pixelPlay.game').controller('GameController', ['$scope', 'GameManager', 'FetchPhotosFrom500px', 'bogusAnswers', GameController]);
|
define({
"viewer": {
"common": {
"close": "Zatvori"
},
"loading": {
"step1": "Učitavanje priče",
"step2": "Učitavanje podataka",
"step3": "Pokretanje",
"loadBuilder": "Prebacivanje na sastavljač",
"long": "Pokreće se Map Journal",
"long2": "Hvala vam na čekanju",
"failButton": "Ponovno učitaj ovu priču"
},
"signin": {
"title": "Potrebna je provjera autentičnosti",
"explainViewer": "Prijavite se računom za %PORTAL_LINK% da biste pristupili priči.",
"explainBuilder": "Prijavite se računom za %PORTAL_LINK% da biste konfigurirali priču."
},
"errors": {
"boxTitle": "Došlo je do pogreške",
"invalidConfig": "Nevaljana konfiguracija",
"invalidConfigNoApp": "Identifikator aplikacije za web-kartiranje nije određen u index.html.",
"invalidConfigNoAppDev": "Identifikator aplikacije za web-kartiranje nije određen u parametrima URL-a (?appid= ili ?webmap=). U razvojnom načinu ignorira se konfiguracija za appid u index.html.",
"unspecifiedConfigOwner": "Ovlašteni vlasnik nije konfiguriran.",
"invalidConfigOwner": "Vlasnik priče nema ovlasti.",
"createMap": "Nije moguće stvoriti kartu",
"invalidApp": "Predložak %TPL_NAME% ne postoji ili nije dostupan.",
"appLoadingFail": "Nešto nije u redu, predložak %TPL_NAME% nije se točno učitao.",
"notConfiguredDesktop": "Priča još nije konfigurirana.",
"notConfiguredMobile": "Sastavljač predloška %TPL_NAME% nije podržan u ovoj veličini prikaza. Ako je moguće, promijenite veličinu preglednika da biste pristupili sastavljaču ili izradite priču na uređaju s većim zaslonom.",
"notConfiguredMobile2": "Zakrenite uređaj u vodoravno usmjerenje kako biste upotrijebili sastavljač %TPL_NAME%.",
"notAuthorized": "Niste ovlašteni za pristup ovoj priči",
"notAuthorizedBuilder": "Niste ovlašteni za upotrebu sastavljača %TPL_NAME%.",
"noBuilderIE": "Sastavljač nije podržan u ranijim verzijama preglednika Internet Explorer prije verzije %VERSION%. %UPGRADE%",
"noViewerIE": "Priča nije podržana u ranijim verzijama preglednika Internet Explorer prije verzije %VERSION%. %UPGRADE%",
"upgradeBrowser": "<a href='http://browsehappy.com/' target='_blank'>Ažurirajte svoj preglednik</a>.",
"mapLoadingFail": "Nešto nije u redu, karta se nije točno učitala.",
"signOut": "Odjava"
},
"mobileView": {
"tapForDetails": "Dodirni za pojedinosti",
"clickForDetails": "Saznaj više",
"swipeToExplore": "Upotrijebite klizač da biste istražili",
"tapForMap": "Dodirni za povratak na kartu",
"clickForMap": "NATRAG NA KARTU"
},
"floatLayout": {
"scroll": "Pomakni se"
},
"sideLayout": {
"scroll": "Pomakni se prema dolje za više!"
},
"mainStage": {
"back": "Natrag"
},
"headerFromCommon": {
"storymapsText": "Karta s pričom",
"builderButton": "Uredi",
"facebookTooltip": "Podijeli na Facebooku",
"twitterTooltip": "Podijeli na Twitteru",
"bitlyTooltip": "Preuzmite kratku poveznicu",
"templateTitle": "Postavi naslov predloška",
"templateSubtitle": "Postavi podnaslov predloška",
"share": "Podijeli",
"checking": "Provjeravanje sadržaja priče",
"fix": "Popravi probleme u priči",
"noerrors": "Nema otkrivenih problema",
"tooltipAutoplayDisabled": "Ovo nije dostupno u načinu automatske reprodukcije",
"notshared": "Priča nije podijeljena"
},
"overviewFromCommon": {
"title": "Pregledna karta"
},
"legendFromCommon": {
"title": "Legenda"
},
"shareFromCommon": {
"copy": "Kopiraj",
"copied": "Kopirano",
"open": "Otvori",
"embed": "Ugradi u web-stranicu",
"embedExplain": "Upotrijebite sljedeći HTML kod da biste ugradili dnevnik u web-stranicu.",
"size": "Veličina (širina/visina):",
"autoplayLabel": "Način automatske reprodukcije",
"autoplayExplain1": "Način automatske reprodukcije napredovat će kroz vašu priču u redovitim intervalima. To je idealno za kiosk ili javno prikazani zaslon, no budite svjesni da će se u drugim situacijama priča možda teže čitati. Ova značajka nije podržana na malim zaslonima.",
"autoplayExplain2": "Kada je ovaj način rada aktivan, postoje kontrole za reprodukciju/pauziranje priče i podešavanje brzine navigacije.",
"linksupdated": "Poveznice ažurirane!"
}
}
});
|
(function(t){function e(e){for(var i,r,u=e[0],c=e[1],s=e[2],l=0,d=[];l<u.length;l++)r=u[l],a[r]&&d.push(a[r][0]),a[r]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(t[i]=c[i]);m&&m(e);while(d.length)d.shift()();return o.push.apply(o,s||[]),n()}function n(){for(var t,e=0;e<o.length;e++){for(var n=o[e],i=!0,r=1;r<n.length;r++){var u=n[r];0!==a[u]&&(i=!1)}i&&(o.splice(e--,1),t=c(c.s=n[0]))}return t}var i={},r={app:0},a={app:0},o=[];function u(t){return c.p+"js/"+({}[t]||t)+"."+{"chunk-35fe5d05":"dd584e74","chunk-3d6e3b97":"8f060f17","chunk-21444790":"175663f7","chunk-38ee5edf":"30a38140","chunk-5facbb25":"badd10fc","chunk-686c8092":"05f11ce8","chunk-4d4ee8c0":"4bd1b8e2","chunk-6c103aac":"8ff11709","chunk-7783ac88":"8a989eab"}[t]+".js"}function c(e){if(i[e])return i[e].exports;var n=i[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.e=function(t){var e=[],n={"chunk-35fe5d05":1,"chunk-3d6e3b97":1,"chunk-21444790":1,"chunk-38ee5edf":1,"chunk-5facbb25":1,"chunk-686c8092":1,"chunk-4d4ee8c0":1,"chunk-6c103aac":1,"chunk-7783ac88":1};r[t]?e.push(r[t]):0!==r[t]&&n[t]&&e.push(r[t]=new Promise(function(e,n){for(var i="css/"+({}[t]||t)+"."+{"chunk-35fe5d05":"eac7e242","chunk-3d6e3b97":"9a5df1b2","chunk-21444790":"b6f6b63e","chunk-38ee5edf":"b09a3079","chunk-5facbb25":"33dc9580","chunk-686c8092":"7c3354d2","chunk-4d4ee8c0":"b4ca1592","chunk-6c103aac":"e27b9620","chunk-7783ac88":"354a6bff"}[t]+".css",a=c.p+i,o=document.getElementsByTagName("link"),u=0;u<o.length;u++){var s=o[u],l=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(l===i||l===a))return e()}var d=document.getElementsByTagName("style");for(u=0;u<d.length;u++){s=d[u],l=s.getAttribute("data-href");if(l===i||l===a)return e()}var m=document.createElement("link");m.rel="stylesheet",m.type="text/css",m.onload=e,m.onerror=function(e){var i=e&&e.target&&e.target.src||a,o=new Error("Loading CSS chunk "+t+" failed.\n("+i+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=i,delete r[t],m.parentNode.removeChild(m),n(o)},m.href=a;var f=document.getElementsByTagName("head")[0];f.appendChild(m)}).then(function(){r[t]=0}));var i=a[t];if(0!==i)if(i)e.push(i[2]);else{var o=new Promise(function(e,n){i=a[t]=[e,n]});e.push(i[2]=o);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,c.nc&&l.setAttribute("nonce",c.nc),l.src=u(t),s=function(e){l.onerror=l.onload=null,clearTimeout(d);var n=a[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),r=e&&e.target&&e.target.src,o=new Error("Loading chunk "+t+" failed.\n("+i+": "+r+")");o.type=i,o.request=r,n[1](o)}a[t]=void 0}};var d=setTimeout(function(){s({type:"timeout",target:l})},12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(e)},c.m=t,c.c=i,c.d=function(t,e,n){c.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},c.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},c.t=function(t,e){if(1&e&&(t=c(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)c.d(n,i,function(e){return t[e]}.bind(null,i));return n},c.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return c.d(e,"a",e),e},c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},c.p="",c.oe=function(t){throw console.error(t),t};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],l=s.push.bind(s);s.push=e,s=s.slice();for(var d=0;d<s.length;d++)e(s[d]);var m=l;o.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"093b":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"mm-dialog-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.dialogShow,expression:"dialogShow"}],staticClass:"mm-dialog-box"},[n("div",{staticClass:"mm-dialog-wrapper"},[n("div",{staticClass:"mm-dialog-content"},[n("div",{staticClass:"mm-dialog-head",domProps:{textContent:t._s(t.headText)}}),t._t("default",[n("div",{staticClass:"mm-dialog-text",domProps:{innerHTML:t._s(t.bodyText)}})]),n("div",{staticClass:"mm-dialog-btns"},["alert"!==t.dialogType?n("div",{staticClass:"mm-btn-cancel",domProps:{textContent:t._s(t.cancelBtnText)},on:{click:t.cancel}}):t._e(),t._t("btn"),n("div",{staticClass:"mm-btn-confirm",domProps:{textContent:t._s(t.confirmBtnText)},on:{click:t.confirm}})],2)],2)])])])},r=[],a={name:"mm-dialog",props:{type:{type:String,default:"confirm"},headText:{type:String,default:"提示"},bodyText:{type:String,default:""},cancelBtnText:{type:String,default:"取消"},confirmBtnText:{type:String,default:"确定"},appendToBody:{type:Boolean,default:!0}},data:function(){return{dialogShow:!1}},computed:{dialogType:function(){return this.type.toLowerCase()}},watch:{dialogShow:function(t){t&&this.appendToBody&&document.body.appendChild(this.$el)}},mounted:function(){this.dialogShow&&this.appendToBody&&document.body.appendChild(this.$el)},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},methods:{show:function(){this.dialogShow=!0},hide:function(){this.dialogShow=!1},cancel:function(){this.hide(),this.$emit("cancel")},confirm:function(){this.hide(),this.$emit("confirm")}}},o=a,u=(n("0eb6"),n("2877")),c=Object(u["a"])(o,i,r,!1,null,null,null);e["a"]=c.exports},"0eb6":function(t,e,n){"use strict";var i=n("7a87"),r=n.n(i);r.a},2464:function(t,e,n){},"2ff8":function(t,e,n){"use strict";var i=n("b3bd"),r=n.n(i);r.a},"365c":function(t,e,n){"use strict";n.d(e,"f",function(){return o}),n.d(e,"j",function(){return u}),n.d(e,"d",function(){return c}),n.d(e,"e",function(){return s}),n.d(e,"h",function(){return l}),n.d(e,"i",function(){return d}),n.d(e,"g",function(){return m}),n.d(e,"c",function(){return f}),n.d(e,"b",function(){return h}),n.d(e,"a",function(){return p});var i=n("bc3a"),r=n.n(i),a=n("db49");function o(){return r.a.get("/toplist/detail")}function u(t){return r.a.get("/top/list",{params:{idx:t}})}function c(){return r.a.get("/personalized")}function s(t){return r.a.get("/playlist/detail",{params:{id:t}})}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a["d"];return r.a.get("/search",{params:{offset:e*n,limit:n,keywords:t}})}function d(){return r.a.get("/search/hot")}function m(t){return r.a.get("/user/playlist",{params:{uid:t}})}function f(t){return r.a.get("/song/detail",{params:{ids:t}})}function h(t){var e="/lyric";return r.a.get(e,{params:{id:t}})}function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a["d"];return r.a.get("/comment/music",{params:{offset:e*n,limit:n,id:t}})}r.a.defaults.baseURL=a["a"]},"522b":function(t,e,n){},"56d7":function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"audioEle",function(){return L}),n.d(i,"mode",function(){return E}),n.d(i,"playing",function(){return U}),n.d(i,"playlist",function(){return I}),n.d(i,"orderList",function(){return D}),n.d(i,"currentIndex",function(){return M}),n.d(i,"currentMusic",function(){return Y}),n.d(i,"historyList",function(){return N}),n.d(i,"uid",function(){return B});var r={};n.r(r),n.d(r,"setPlaylist",function(){return z}),n.d(r,"selectPlay",function(){return G}),n.d(r,"selectAddPlay",function(){return X}),n.d(r,"clearPlayList",function(){return $}),n.d(r,"removerPlayListItem",function(){return tt}),n.d(r,"setHistory",function(){return et}),n.d(r,"removeHistory",function(){return nt}),n.d(r,"clearHistory",function(){return it}),n.d(r,"setPlayMode",function(){return rt}),n.d(r,"setUid",function(){return at});n("6762"),n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),o=n("2f62"),u=(n("c5f6"),n("db49")),c=n("f499"),s=n.n(c),l=(n("20d6"),n("a745")),d=n.n(l),m={get:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(window.localStorage)return localStorage.getItem(t)?d()(e)?JSON.parse(localStorage.getItem(t)):localStorage.getItem(t):e},set:function(t,e){window.localStorage&&localStorage.setItem(t,e)},clear:function(t){window.localStorage&&localStorage.removeItem(t)}},f="__mmPlayer_historyList__",h=200;function p(){return m.get(f)}function v(t){var e=m.get(f),n=e.findIndex(function(e){return e.id===t.id});return 0===n?e:(n>0&&e.splice(n,1),e.unshift(t),h&&e.length>h&&e.pop(),m.set(f,s()(e)),e)}function b(t){return m.set(f,s()(t)),t}function g(){return m.clear(f),[]}var y="__mmPlayer_mode__";function A(){return m.get(y,null)}function w(t){return m.set(y,t),t}var k="__mmPlayer_userID__";function x(){return Number(m.get(k,null))}function T(t){return m.set(k,t),t}var O="__mmPlayer_version__";function P(){var t=m.get(O,null);return d()(t)?null:t}function j(t){return m.set(O,t),t}var S={audioEle:null,mode:Number(A())||u["f"].listLoop,playing:!1,playlist:[],orderList:[],currentIndex:-1,historyList:p()||[],uid:x()||null},C=S,L=function(t){return t.audioEle},E=function(t){return t.mode},U=function(t){return t.playing},I=function(t){return t.playlist},D=function(t){return t.orderList},M=function(t){return t.currentIndex},Y=function(t){return t.playlist[t.currentIndex]||{}},N=function(t){return t.historyList},B=function(t){return t.uid},_=n("75fc"),V="SET_AUDIOELE",R="SET_PLAYMODE",F="SET_PLAYING",Q="SET_PLAYLIST",H="SET_ORDERLIST",W="SET_CURRENTINDEX",q="SET_HISTORYLIST",K="SET_UID";function Z(t,e){return t.findIndex(function(t){return t.id===e.id})}var J,z=function(t,e){var n=t.commit,i=e.list;n(Q,i),n(H,i)},G=function(t,e){var n=t.commit,i=e.list,r=e.index;n(Q,i),n(H,i),n(W,r),n(F,!0)},X=function(t,e){var n=t.commit,i=t.state,r=Object(_["a"])(i.playlist),a=Z(r,e);a>-1?n(W,a):(r.unshift(e),n(Q,r),n(H,r),n(W,0)),n(F,!0)},$=function(t){var e=t.commit;e(F,!1),e(W,-1),e(Q,[]),e(H,[])},tt=function(t,e){var n=t.commit,i=t.state,r=e.list,a=e.index,o=i.currentIndex;(a<i.currentIndex||r.length===i.currentIndex)&&(o--,n(W,o)),n(Q,r),n(H,r),r.length?n(F,!0):n(F,!1)},et=function(t,e){var n=t.commit;n(q,v(e))},nt=function(t,e){var n=t.commit;n(q,b(e))},it=function(t){var e=t.commit;e(q,g())},rt=function(t,e){var n=t.commit;n(R,w(e))},at=function(t,e){var n=t.commit;n(K,T(e))},ot=n("bd86"),ut=(J={},Object(ot["a"])(J,V,function(t,e){t.audioEle=e}),Object(ot["a"])(J,R,function(t,e){t.mode=e}),Object(ot["a"])(J,F,function(t,e){t.playing=e}),Object(ot["a"])(J,Q,function(t,e){t.playlist=e}),Object(ot["a"])(J,H,function(t,e){t.orderList=e}),Object(ot["a"])(J,W,function(t,e){t.currentIndex=e}),Object(ot["a"])(J,q,function(t,e){t.historyList=e}),Object(ot["a"])(J,K,function(t,e){t.uid=e}),J),ct=ut,st=n("b054"),lt=n.n(st),dt=!1;a["a"].use(o["a"]);var mt=new o["a"].Store({state:C,getters:i,mutations:ct,actions:r,strict:dt,plugins:dt?[lt()()]:[]}),ft=n("8c4f");a["a"].use(ft["a"]);var ht,pt,vt=[{path:"/",redirect:"/music"},{path:"/music",component:function(){return n.e("chunk-6c103aac").then(n.bind(null,"b76b"))},redirect:"/music/playlist",children:[{path:"/music/playlist",component:function(){return Promise.all([n.e("chunk-3d6e3b97"),n.e("chunk-21444790")]).then(n.bind(null,"8184"))},meta:{keepAlive:!0}},{path:"/music/userlist",component:function(){return n.e("chunk-4d4ee8c0").then(n.bind(null,"5fdd"))},meta:{title:"我的歌单",keepAlive:!0}},{path:"/music/toplist",component:function(){return n.e("chunk-7783ac88").then(n.bind(null,"eb37"))},meta:{title:"排行榜",keepAlive:!0}},{path:"/music/details/:id",component:function(){return Promise.all([n.e("chunk-3d6e3b97"),n.e("chunk-38ee5edf")]).then(n.bind(null,"4eef"))}},{path:"/music/historylist",component:function(){return Promise.all([n.e("chunk-3d6e3b97"),n.e("chunk-5facbb25")]).then(n.bind(null,"1a25"))},meta:{title:"我听过的"}},{path:"/music/search",component:function(){return Promise.all([n.e("chunk-3d6e3b97"),n.e("chunk-686c8092")]).then(n.bind(null,"650b"))},meta:{title:"搜索",keepAlive:!0}},{path:"/music/comment/:id",component:function(){return n.e("chunk-35fe5d05").then(n.bind(null,"a3ad"))},meta:{title:"评论详情"}}]}],bt=new ft["a"]({linkActiveClass:"active",linkExactActiveClass:"active",routes:vt}),gt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("mm-header"),n("router-view",{staticClass:"router-view"}),n("mm-dialog",{ref:"versionDialog",attrs:{type:"alert",headText:"更新提示",bodyText:t.versionBody}}),n("audio",{ref:"mmPlayer"})],1)},yt=[],At=(n("ac6a"),n("cebc")),wt=n("365c"),kt=n("8dd1"),xt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("header",{staticClass:"mm-header"},[t._m(0),n("dl",{staticClass:"user"},[t.user.userId?[n("router-link",{staticClass:"user-info",attrs:{to:"/music/userlist",tag:"dt"}},[n("img",{attrs:{src:t.user.avatarUrl+"?param=50y50"}}),n("span",[t._v(t._s(t.user.nickname))])]),n("dd",{staticClass:"user-btn",on:{click:function(e){return t.openDialog(2)}}},[t._v("退出")])]:n("dd",{staticClass:"user-btn",on:{click:function(e){return t.openDialog(0)}}},[t._v("登录")])],2),n("mm-dialog",{ref:"loginDialog",attrs:{headText:"登录",confirmBtnText:"登录",cancelBtnText:"关闭"},on:{confirm:t.login}},[n("div",{staticClass:"mm-dialog-text"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.uidValue,expression:"uidValue",modifiers:{trim:!0}}],staticClass:"mm-dialog-input",attrs:{type:"number",autofocus:"",placeholder:"请输入您的网易云UID"},domProps:{value:t.uidValue},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.login(e)},input:function(e){e.target.composing||(t.uidValue=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})]),n("div",{attrs:{slot:"btn"},on:{click:function(e){return t.openDialog(1)}},slot:"btn"},[t._v("帮助")])]),n("mm-dialog",{ref:"helpDialog",attrs:{headText:"登录帮助",confirmBtnText:"去登录",cancelBtnText:"关闭"},on:{confirm:function(e){return t.openDialog(0)}}},[n("div",{staticClass:"mm-dialog-text"},[n("p",[t._v("\n 1、\n "),n("a",{attrs:{target:"_blank",href:"http://music.163.com"}},[t._v("点我(http://music.163.com)")]),t._v("打开网易云音乐官网\n ")]),n("p",[t._v("2、点击页面右上角的“登录”")]),n("p",[t._v("3、点击您的头像,进入我的主页")]),n("p",[t._v("4、复制浏览器地址栏 /user/home?id= 后面的数字(网易云 UID)")])])]),n("mm-dialog",{ref:"outDialog",attrs:{bodyText:"确定退出当前用户吗?"},on:{confirm:t.out}})],1)},Tt=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h1",{staticClass:"header"},[n("a",{attrs:{href:"https://github.com/maomao1996/Vue-mmPlayer",target:"_blank"}},[t._v("mmPlayer在线音乐播放器")])])}],Ot=n("093b"),Pt={name:"mm-header",components:{MmDialog:Ot["a"]},data:function(){return{user:{},uidValue:""}},computed:Object(At["a"])({},Object(o["c"])(["uid"])),created:function(){this.uid&&this._getUserPlaylist(this.uid)},methods:Object(At["a"])({openDialog:function(t){switch(t){case 0:this.$refs.loginDialog.show();break;case 1:this.$refs.loginDialog.hide(),this.$refs.helpDialog.show();break;case 2:this.$refs.outDialog.show();break;case 3:this.$refs.loginDialog.hide();break}},out:function(){this.user={},this.setUid(null),this.$mmToast("退出成功!")},login:function(){if(""===this.uidValue)return this.$mmToast("UID不能为空"),void this.openDialog(0);this.openDialog(3),this._getUserPlaylist(this.uidValue)},_getUserPlaylist:function(t){var e=this;Object(wt["g"])(t).then(function(n){if(200===n.data.code){if(e.uidValue="",0===n.data.playlist.length||!n.data.playlist[0].creator)return void e.$mmToast("未查询找UID为 ".concat(t," 的用户信息"));e.setUid(t),e.user=n.data.playlist[0].creator,setTimeout(function(){e.$mmToast("".concat(e.user.nickname," 欢迎使用"))},200)}})}},Object(o["b"])(["setUid"]))},jt=Pt,St=(n("2ff8"),n("2877")),Ct=Object(St["a"])(jt,xt,Tt,!1,null,null,null),Lt=Ct.exports,Et='<div class="mm-dialog-text text-left">\n版本号:'.concat(u["b"],"(2019.04.04)<br/>\n1、 优化滚动体验,缓存滚动位置<br>\n2、 优化暂停 / 播放逻辑,减少重复请求<br>\n3、 修复 IOS 下滚动卡顿的情况<br>\n4、 修复 Safari、IOS 微信、安卓 UC不能播放问题\n</div>"),Ut={name:"app",components:{MmHeader:Lt,MmDialog:Ot["a"]},created:function(){var t=this;this.versionBody=Et,Object(wt["j"])(u["e"]).then(function(e){if(200===e.status){var n=t._formatSongs(e.data.playlist.tracks.slice(0,100));t.setPlaylist({list:n})}});var e,n=document.title;document.addEventListener("visibilitychange",function(){document.hidden?(document.title="死鬼去哪里了!",clearTimeout(e)):(document.title="(つェ⊂)咦!又好了!",e=setTimeout(function(){document.title=n},2e3))}),this.$nextTick(function(){t.setAudioele(t.$refs.mmPlayer)});var i=document.querySelector("#appLoading");if(i){var r=function(){i.removeEventListener("animationend",r),i.removeEventListener("webkitAnimationEnd",r),document.body.removeChild(i);var t=P();null!==t?(j(u["b"]),t!==u["b"]&&this.$refs.versionDialog.show()):(j(u["b"]),this.$refs.versionDialog.show())}.bind(this);i.addEventListener("animationend",r),i.addEventListener("webkitAnimationEnd",r),i.classList.add("removeAnimate")}},methods:Object(At["a"])({_formatSongs:function(t){var e=[];return t.forEach(function(t){var n=t;n.id&&e.push(Object(kt["a"])(n))}),e}},Object(o["d"])({setAudioele:"SET_AUDIOELE"}),Object(o["b"])(["setPlaylist"]))},It=Ut,Dt=(n("7c55"),Object(St["a"])(It,gt,yt,!1,null,null,null)),Mt=Dt.exports,Yt=n("fe3c"),Nt=n.n(Yt),Bt=n("5176"),_t=n.n(Bt),Vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"toast-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"mm-toast",class:t.positionClasss},[t._v(t._s(t.message))])])},Rt=[],Ft={name:"mm-toast",data:function(){return{position:"center",message:"",duration:1500,visible:!1}},computed:{positionClasss:function(){return"mm-toast-"+this.position}}},Qt=Ft,Ht=(n("b916"),Object(St["a"])(Qt,Vt,Rt,!1,null,null,null)),Wt=Ht.exports,qt=!1,Kt={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Wt.data();_t()(n,e),t.prototype.$mmToast=function(e,i){qt&&(clearTimeout(pt),ht.vm.visible=qt=!1,document.body.removeChild(ht.vm.$el)),e&&(n.message=e),i&&(n.position=i);var r=t.extend(Wt);ht=new r({data:n}),ht.vm=ht.$mount(),document.body.appendChild(ht.vm.$el),ht.vm.visible=qt=!0,pt=setTimeout(function(){ht.vm.visible=qt=!1,document.body.removeChild(ht.vm.$el)},n.duration)}}},Zt=Kt,Jt=n("283e"),zt=n.n(Jt);n("522b");Nt.a.attach(document.body),a["a"].use(Zt),a["a"].use(zt.a,{preLoad:1,loading:n("ee87")});var Gt=["/music/details","/music/comment"];bt.beforeEach(function(t,e,n){window._hmt&&t.path&&window._hmt.push(["_trackPageview","/#"+t.fullPath]),Gt.includes(t.path)?n():(document.title=t.meta.title&&"".concat(t.meta.title," - mmPlayer在线音乐播放器")||"mmPlayer在线音乐播放器",n())}),window.mmPlayer=window.mmplayer="欢迎使用 mmPlayer!\n当前版本为:V".concat(u["b"],"\n作者:茂茂\nGithub:https://github.com/maomao1996/Vue-mmPlayer\n歌曲来源于网易云音乐 (http://music.163.com)"),console.info("%c".concat(window.mmplayer),"color:blue"),new a["a"]({el:"#mmPlayer",store:mt,router:bt,render:function(t){return t(Mt)}})},"7a87":function(t,e,n){},"7c55":function(t,e,n){"use strict";var i=n("2464"),r=n.n(i);r.a},"8dd1":function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"c",function(){return s});var i=n("d225");n("7f7f"),n("ac6a");function r(t){var e=[];return t.forEach(function(t){e.push(t.name)}),e.join("/")}var a=function t(e){var n=e.id,r=e.name,a=e.singer,o=e.album,u=e.image,c=e.duration,s=e.url;Object(i["a"])(this,t),this.id=n,this.name=r,this.singer=a,this.album=o,this.image=u,this.duration=c,this.url=s};function o(t){return new a({id:t.id,name:t.name,singer:t.artists.length>0&&r(t.artists),album:t.album.name,image:t.album.picUrl||null,duration:t.duration/1e3,url:"https://music.163.com/song/media/outer/url?id=".concat(t.id,".mp3")})}function u(t){return new a({id:t.id,name:t.name,singer:t.ar.length>0&&r(t.ar),album:t.al.name,image:t.al.picUrl,duration:t.dt/1e3,url:"https://music.163.com/song/media/outer/url?id=".concat(t.id,".mp3")})}var c=function(t){var e=[];return t.forEach(function(t){var n=t;n.id&&e.push(o(n))}),e},s=function(t){var e=[];return t.forEach(function(t){var n=t;n.id&&e.push(u(n))}),e};e["b"]=c},b3bd:function(t,e,n){},b916:function(t,e,n){"use strict";var i=n("bd3a"),r=n.n(i);r.a},bd3a:function(t,e,n){},db49:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"e",function(){return a}),n.d(e,"d",function(){return o}),n.d(e,"c",function(){return u}),n.d(e,"f",function(){return c});var i="http://api.mtnhao.com",r="1.5.6",a=1,o=30,u="http://cdn.mtnhao.com/music/bg.jpg",c={listLoop:0,order:1,random:2,loop:3}},ee87:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAMAAABOo35HAAAA2FBMVEXW2Nrx8fHw8PDX2dvY2tzk5ebl5ufu7u7v7+/Z293j5OXb3N7d3+De3+He4OHf4OHf4OLf4eLg4eLg4uPh4uPi4+TY2dva3N7m5+jn6Ono6erp6err6+zr7Ozs7O3t7e3Z29zb3d7c3d/d3uDo6Onu7+/a3N3n5+je3+Dh4+Tq6+vs7e3q6uvZ2tzm5+fc3t/n6Ojt7u7o6enu7u/a293v8PDp6urv7/Dg4ePp6uvi4+Xi5OXX2Nrs7OzY2tvh4uTt7e7l5ubm5ufb3d/c3uDw8fHl5ebr6+vlH1YnAAAMnElEQVR4AezBgQAAAACAoP2pF6kCAAAAAAAAAAAAYPbuQrt13VkD+DeSjIEmbZipzLiZzp/e/43ujZx4eVOtuHYktfktPujtWKPRiHYMwUvV09DtXoxuD31GRMT8w9vRRdcNT6sljshOUA0XQ5+e5Q8XYTXAm3ZZcwePpOxx4NYu8RYFje4tZXDbbQR4S3jZHdMLjN0yx5vAa3eMXozd1TheOb63YPRH3tmN09yvzI4mgst/UkyOZpX9pnNz5tEfscUex+tVcn36DRseN8sPeFZQbh4PGf3Gd0t4lfjBgH417rxvQ1n7fWdMvxoccLw2E+fdb1G6IrAxUfmtb3jnTPCalG4YJbH+S/r/oNFnlMRuSngtZk+UxHp1jhfi9R6jpKcZXoNpn5Iu9jlywfcvKKk/he3ad5Rw7wTIUeDcU8JdGzb7ekUJF1XkrnpBCVcC1vrmU4x12ihEu8Mo5n+DneZjirEflyjM5Q9GsfEc9hFdijFXoFDCZRTrClim7ide1QSFu0y8Lr8Om4gexXoBtiK4o1hfwBonh7Q2mmNr5iNaOzyBHbhLa/4BturApzWXwwKlc32hNtmtnJdgvDqjFa8CDSoerbA6DOfSWodDC96hNRcmE2cmRNiTe1o5EzBWyTOj7xZ9WvGmMFSFUYQ1oVkzfpQKjNSgFW8G7WYerTRgICcRKIwKn47B3aC7e6I0x7TSMDAuHMMknxcUYWUYpMwosvgMY/AeRQ6nMMr0kCI9DlMsKPI9gGGC7xRZmBavRpcwzuXIrLjlUuSLgIHEF5P6RIciwxaM1Bqak2/tU2TUgqFaI4q8h2ZzRtJYwFhiTBKbQ6vSI0m3AcwV94mPJWgkPJL8AEYLPJI8AW34/0hiMxhuxkg6gzZXFKnCeFWKuLo7wgYs0KBIDVq0GUkurOCSxNrQgJ/HYcAOZySdc32/lCdgCeFpawknCh2hoV3iCbZMHJLUhEWaJB0KbFePpCdY5YmkHraqTpJ/Catc+iTtYYuET1IFlqmQdP8V29MlqQPrdLb+5HOSPA7rcI+kObbl3NJGmGiI59iSbyR1YaUuSadbje6+gPm0P75LUgOWamxx1NMmaQhrDUlqo3h3JM1grRlJdyjclKQFLLYgaYqi9WmJBbBYwGipv6VP+B9Y7R+SZlsZt7NLWO2SbaNmMiXJheVckqZbCI1MIIXYb0Gfo/TnY8V3U4Hqh9VwPh1Bl3LYUP20AhTHVewKTxzHCefQgh84jnOCFBNWdDzh79RG0A+hs7QPDR4+Ov8vfFAbT7/jKMqBWljkTUeaQoOpIzW5WlfVQFEGtPQBKSqOVIMWNUeqIMUHWvqCgpTUan5BGP+2Oqy+6zBQqwLOCg3vXnpPGEcNDeKI2UAKr8hqPPdpKcTzZo5UhTZVR5rheSEt+RxFqCmlJvyjs/SRQxvFRwiKXIPUUwrvZdWesPgesaw0zu2hAJzR0j6exeOAoU8cNrnKYjzWKmydH+MqaUMYQKO4Q66o/fyFtcKe0odVg2a1+NNS+CMV1grrKhErFNBMhCpRqx43lkJmchlX+bD2oN1e+qcVfwBl5K2jUlu8NuTDij+ta5X+0EXeblXGnU1nqQ4D1J2lpsp86xg5eyDpAc85cqQABggc6UglLw2QXebfoB7nWAZoqHzl40LqNAuF1s3Dlyfvs4/dgceIfG/Qbc7wAlOVEO8Wsh7onpaqCkPo8DMy4tUeo5+wXpUjo8+hwnC6SkteITMVAs85iNPmLITj0x/4jkA2FWfpAM8RJE0KWJ08VmmFAbLgDqO/YA5/QYgPWwpBq1ZA3a+j0AqbyKLq0TO8KrJoKqRanQIyrYHCjux9Z+kk28lzKTocmztRmGN6T0sD5InRUruYVjgZUarRJHM75OlL81j+q/2YQkYaYmNtjxR4bWwsjPPSDJ9BZjWFj7WSsTjT9ilp6OyVBCBKe86Qkvx2xtF0RSHA1JCfUCG+N7JlpIFHMfLCAAlB+NPfDLLlpQ2FCB/mnr+fKoSsr9gMHyVPvuf4BU+evz/i2ExLIWid5r6cZpRe93nIljjcUGwh8AdiQbGbbMnDA55Rzn3tNUsfnP87U8jao1jj+TG8tJepuvzv9LGJj9wIkhSe6xob4Ye0wioK55/SIcdGrhV+QZI48vIvheHmafKLV/WD1qqpw13pB9TFseFUYRa/lPNxG2cKOQ3HJiaMVhoK1bQMK3+5Qu53lvOhJ8308CqyxHeXVhYq3bHkZonwIv0Qvm85H77mpOfvB1lWmqjs0BLxP8qxiYP0HN7JOdHqpJ9KMMswB1b/rREqNMR6hhx+lp5ouTlPRu+nz67OsYk+RTyuvl2X+tjEPH2utZZzVnpGS5X0n3CaYY5bsQmEFGF88wHPXnpWepFzAj9LL2a1M2xLVyzqTmhljg2000tas5zXlnrpc4aNzYtZIUUGyvVHKdy8pNVInxH1cp7amaj30Uq6FHHUu2T1eSv1jCagpUPk5ZGWWukvi2fYfUvVzQ6iG26elTbTx3KPOY+jec4J/D1F2lDSpsh9zil8K+fCMkl5j3YYRVpQ0qIIy/llcZK2+bIcCZuglaL+edXnIgnqdi/L8Gb4mK0ZPhbSDJnhAd7LFuC9QgL8I5TtUgcfynZJqWf4cOdTtuHOJ/3DHQ0D6etsA+lrDQNp/SUasOS3olyigfYSza74Z3pZeT9LWXlfT1lZ/4TFO3MmLBx7psK6SNEteirs9DVOsk50TbLqn753VZY6JBc7uEZM3+8Whpi/5KhGa//5+5Kj/9BaTeeSI/2L2bqUclO+SP4Tehez6V8meU4xv8HxC97wKXauYZmkyQtwP06QMLFyAa760u49bKrkU9LA2WsLQLT3nAEl+SXzl3bvNg2YtR0lOKdU50Ex21GOaInhzW90KmvY6KS6he76BVvoaj49w69ZsoVOfXNmK2M7lL66jP6CuV/t2pz5sNv2a9qG8lr/tw3ltWI3lFdoyYOdRxVcfzoeeL48quD407UtRxXsDsHI7oikYHe8igrvjR/cszsSqp8py9odNrY7xu5E0zF2uwMSpd3Rm/lr2Xeoa0vtUFd9xwWfmHNc8Ame96GwVrg7iDrLxlPntRxx7hR5xDlcWrp/LYfn3xd6lW2JpOruWoY3euHHCOp2V8kYcknRxwdosB81wiPtlxTBVVtRJpOtAw4t5qFMsdQu7XONuFgtLEOXo0+OERerqV/ZdwR9Wu9Vr+y7QxF2l0HurhndXWCrwC0iId1djby7dLu7acTaXefeQ/HaJA1hrSFJpS1GxwYsdbDNPkr48VYu82l//FOSulZH9ya25JykCix0QtI5tmUeb9e1DvdImm/9U+7AOp3tP7nwLW2IFZIOBbaoTpJ/aWVPSHvYqh5JT7DKE0k9bJc4JKkJizTjRqin9bMZrDFj2iKtS5InYAnh6Svz8nOSzmCJi3g/rAZtZlVB3iWJlaDFPllUf2hQpAZNrihShfGqpLsZ8IEtXeK/GElnBnQw9wGMFngmdN2lR5K+BzDY5DtJjyVoNWckjQWMJcYksbkhFW0atWCo1sicXtuhyLAFI7WGFHEMyvboi4CBxBcyasXBMUVGAsYRI4ocwxALMrVPDL6TacsNeI8ih1MYZXpPkR6HMT4vKMLKMEiZUWTxGSY5ppWGeWNnOoZh/qEV17CajJEr7xxaORMwgLigFcfkihF5M2g388jsaluVUYQ1odlp/ChVGGrq0UpfQCPRpxVvCmOJM1q5L0Ob8n0ifJrMpbUrDi34Fa25MFyd0YpXgQYVj1ZYHcYrnScPAN4y0aW18xIswF1a8w+wVQc+rbkcdjg5pLXRHFszH9Ha4QmsIXoUWwTYimBBsb6ATeo+rTH3EoW7dBmt+XVYRnQpxlyBQgmXUbJbsc98TDH23wkKM/kvo9i4DDt98ynGbkooROmGUcz/BmuJK0r4UEXuqh8o4UrAZu07Srh3AuQocO4p4a4N2037lPRhnyMXfP8DJfWneA1mT5TEenWOF+L1HqOkpxmsoR6EJdZvBMgsaPQZSQqdh40mzjv62ditCGxMVNwx/eydM8Frww+G9Ktx530bytrvO2P61fCA41UquT79hg2Pm+UAzwrmzeMho9/4bgmvF99bMPoj7+zYae5XZkcTwQFwIR6OZpX9pnN85tEfsbs9jleO13qMsslwB4H9eFlG6czGbpnjLQka3VvK4LbbCPAWTWrugJEyNnBrE7xpQTW8++LTs/wvd2E1wE6El6qnodu9GN368sUx37+9HV103fC0WuL/1x4cEAAAQDAA0z+1GPBttQMAAAAAAAAAAAAANCvW2MTgvFSYAAAAAElFTkSuQmCC"}});
//# sourceMappingURL=app.eaa17bce.js.map
|
const _ = require('lodash');
const resolveModuleFromPath = require('../utils/resolveModuleFromPath');
const buildDefaultArtifactsRootDirpath = require('../artifacts/utils/buildDefaultArtifactsRootDirpath');
const TimelineArtifactPlugin = require('../artifacts/timeline/TimelineArtifactPlugin');
const InstrumentsArtifactPlugin = require('../artifacts/instruments/InstrumentsArtifactPlugin');
const LogArtifactPlugin = require('../artifacts/log/LogArtifactPlugin');
const ScreenshotArtifactPlugin = require('../artifacts/screenshot/ScreenshotArtifactPlugin');
const VideoArtifactPlugin = require('../artifacts/video/VideoArtifactPlugin');
const ArtifactPathBuilder = require('../artifacts/utils/ArtifactPathBuilder');
function composeArtifactsConfig({
cliConfig,
configurationName,
deviceConfig,
detoxConfig,
}) {
const artifactsConfig = _.defaultsDeep(
extendArtifactsConfig({
rootDir: cliConfig.artifactsLocation,
plugins: {
log: cliConfig.recordLogs,
screenshot: cliConfig.takeScreenshots,
video: cliConfig.recordVideos,
instruments: cliConfig.recordPerformance,
timeline: cliConfig.recordTimeline,
},
}),
extendArtifactsConfig(deviceConfig.artifacts),
extendArtifactsConfig(detoxConfig.artifacts),
extendArtifactsConfig({
rootDir: 'artifacts',
pathBuilder: null,
plugins: {
log: 'none',
screenshot: 'manual',
video: 'none',
instruments: 'none',
timeline: 'none',
},
}),
);
artifactsConfig.rootDir = buildDefaultArtifactsRootDirpath(
configurationName,
artifactsConfig.rootDir
);
artifactsConfig.pathBuilder = resolveArtifactsPathBuilder(artifactsConfig);
return artifactsConfig;
}
function extendArtifactsConfig(config) {
const p = config && config.plugins;
if (!p) {
return config;
}
return {
...config,
plugins: {
...config.plugins,
log: ifString(p.log, LogArtifactPlugin.parseConfig),
screenshot: ifString(p.screenshot, ScreenshotArtifactPlugin.parseConfig),
video: ifString(p.video, VideoArtifactPlugin.parseConfig),
instruments: ifString(p.instruments, InstrumentsArtifactPlugin.parseConfig),
timeline: ifString(p.timeline, TimelineArtifactPlugin.parseConfig),
},
};
}
function resolveArtifactsPathBuilder(artifactsConfig) {
let { rootDir, pathBuilder } = artifactsConfig;
if (typeof pathBuilder === 'string') {
pathBuilder = resolveModuleFromPath(pathBuilder);
}
if (typeof pathBuilder === 'function') {
try {
pathBuilder = pathBuilder({ rootDir });
} catch (e) {
pathBuilder = new pathBuilder({ rootDir });
}
}
if (!pathBuilder) {
pathBuilder = new ArtifactPathBuilder({ rootDir });
}
return pathBuilder;
}
function ifString(value, mapper) {
return typeof value === 'string' ? mapper(value) : value;
}
module.exports = composeArtifactsConfig;
|
import Vue from 'vue'
const noopData = () => ({})
// window.onNuxtReady(() => console.log('Ready')) hook
// Useful for jsdom testing or plugins (https://github.com/tmpvar/jsdom#dealing-with-asynchronous-script-loading)
if (process.browser) {
window._nuxtReadyCbs = []
window.onNuxtReady = function (cb) {
window._nuxtReadyCbs.push(cb)
}
}
export function applyAsyncData(Component, asyncData) {
const ComponentData = Component.options.data || noopData
// Prevent calling this method for each request on SSR context
if (!asyncData && Component.options.hasAsyncData) {
return
}
Component.options.hasAsyncData = true
Component.options.data = function () {
const data = ComponentData.call(this)
if (this.$ssrContext) {
asyncData = this.$ssrContext.asyncData[Component.cid]
}
return { ...data, ...asyncData }
}
if (Component._Ctor && Component._Ctor.options) {
Component._Ctor.options.data = Component.options.data
}
}
export function sanitizeComponent(Component) {
// If Component already sanitized
if (Component.options && Component._Ctor === Component) {
return Component
}
if (!Component.options) {
Component = Vue.extend(Component) // fix issue #6
Component._Ctor = Component
} else {
Component._Ctor = Component
Component.extendOptions = Component.options
}
// For debugging purpose
if (!Component.options.name && Component.options.__file) {
Component.options.name = Component.options.__file
}
return Component
}
export function getMatchedComponents(route) {
return [].concat.apply([], route.matched.map(function (m) {
return Object.keys(m.components).map(function (key) {
return m.components[key]
})
}))
}
export function getMatchedComponentsInstances(route) {
return [].concat.apply([], route.matched.map(function (m) {
return Object.keys(m.instances).map(function (key) {
return m.instances[key]
})
}))
}
export function flatMapComponents(route, fn) {
return Array.prototype.concat.apply([], route.matched.map(function (m, index) {
return Object.keys(m.components).map(function (key) {
return fn(m.components[key], m.instances[key], m, key, index)
})
}))
}
export function resolveRouteComponents(route) {
return Promise.all(
flatMapComponents(route, async (Component, _, match, key) => {
// If component is a function, resolve it
if (typeof Component === 'function' && !Component.options) {
Component = await Component()
}
return match.components[key] = sanitizeComponent(Component)
})
)
}
export async function getRouteData(route) {
// Make sure the components are resolved (code-splitting)
await resolveRouteComponents(route)
// Send back a copy of route with meta based on Component definition
return {
...route,
meta: getMatchedComponents(route).map((Component) => {
return Component.options.meta || {}
})
}
}
export async function setContext(app, context) {
const route = (context.to ? context.to : context.route)
// If context not defined, create it
if (!app.context) {
app.context = {
get isServer() {
console.warn('context.isServer has been deprecated, please use process.server instead.')
return process.server
},
get isClient() {
console.warn('context.isClient has been deprecated, please use process.client instead.')
return process.client
},
isStatic: process.static,
isDev: <%= isDev %>,
isHMR: false,
app,
<%= (store ? 'store: app.store,' : '') %>
payload: context.payload,
error: context.error,
base: '<%= router.base %>',
env: <%= JSON.stringify(env) %>
}
// Only set once
if (context.req) app.context.req = context.req
if (context.res) app.context.res = context.res
app.context.redirect = function (status, path, query) {
if (!status) return
app.context._redirected = true // Used in middleware
// if only 1 or 2 arguments: redirect('/') or redirect('/', { foo: 'bar' })
let pathType = typeof path
if (typeof status !== 'number' && (pathType === 'undefined' || pathType === 'object')) {
query = path || {}
path = status
pathType = typeof path
status = 302
}
if (pathType === 'object') {
path = app.router.resolve(path).href
}
// "/absolute/route", "./relative/route" or "../relative/route"
if (/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path)) {
app.context.next({
path: path,
query: query,
status: status
})
} else {
path = formatUrl(path, query)
if (process.server) {
app.context.res.setHeader('Location', path)
app.context.res.statusCode = status
app.nuxt._redirected = true
}
if (process.client) {
window.location = path
}
}
}
if (process.server) app.context.beforeNuxtRender = (fn) => context.beforeRenderFns.push(fn)
if (process.client) app.context.nuxtState = window.__NUXT__
}
// Dynamic keys
app.context.next = context.next
app.context._redirected = false
app.context._errored = false
app.context.isHMR = !!context.isHMR
if (context.route) app.context.route = await getRouteData(context.route)
app.context.params = app.context.route.params || {}
app.context.query = app.context.route.query || {}
if (context.from) app.context.from = await getRouteData(context.from)
}
export function middlewareSeries(promises, appContext) {
if (!promises.length || appContext._redirected || appContext._errored) {
return Promise.resolve()
}
return promisify(promises[0], appContext)
.then(() => {
return middlewareSeries(promises.slice(1), appContext)
})
}
export function promisify(fn, context) {
let promise
if (fn.length === 2) {
// fn(context, callback)
promise = new Promise((resolve) => {
fn(context, function (err, data) {
if (err) {
context.error(err)
}
data = data || {}
resolve(data)
})
})
} else {
promise = fn(context)
}
if (!promise || (!(promise instanceof Promise) && (typeof promise.then !== 'function'))) {
promise = Promise.resolve(promise)
}
return promise
}
// Imported from vue-router
export function getLocation(base, mode) {
var path = window.location.pathname
if (mode === 'hash') {
return window.location.hash.replace(/^#\//, '')
}
if (base && path.indexOf(base) === 0) {
path = path.slice(base.length)
}
return (path || '/') + window.location.search + window.location.hash
}
export function urlJoin() {
return [].slice.call(arguments).join('/').replace(/\/+/g, '/')
}
// Imported from path-to-regexp
/**
* Compile a string to a template function for the path.
*
* @param {string} str
* @param {Object=} options
* @return {!function(Object=, Object=)}
*/
export function compile(str, options) {
return tokensToFunction(parse(str, options))
}
export function getQueryDiff(toQuery, fromQuery) {
const diff = {}
const queries = { ...toQuery, ...fromQuery }
for (const k in queries) {
if (String(toQuery[k]) !== String(fromQuery[k])) {
diff[k] = true
}
}
return diff
}
/**
* The main path matching regexp utility.
*
* @type {RegExp}
*/
const PATH_REGEXP = new RegExp([
// Match escaped characters that would otherwise appear in future matches.
// This allows the user to escape special characters that won't transform.
'(\\\\.)',
// Match Express-style parameters and un-named parameters with a prefix
// and optional suffixes. Matches appear as:
//
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
// "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
'([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
].join('|'), 'g')
/**
* Parse a string for the raw tokens.
*
* @param {string} str
* @param {Object=} options
* @return {!Array}
*/
function parse(str, options) {
var tokens = []
var key = 0
var index = 0
var path = ''
var defaultDelimiter = options && options.delimiter || '/'
var res
while ((res = PATH_REGEXP.exec(str)) != null) {
var m = res[0]
var escaped = res[1]
var offset = res.index
path += str.slice(index, offset)
index = offset + m.length
// Ignore already escaped sequences.
if (escaped) {
path += escaped[1]
continue
}
var next = str[index]
var prefix = res[2]
var name = res[3]
var capture = res[4]
var group = res[5]
var modifier = res[6]
var asterisk = res[7]
// Push the current path onto the tokens.
if (path) {
tokens.push(path)
path = ''
}
var partial = prefix != null && next != null && next !== prefix
var repeat = modifier === '+' || modifier === '*'
var optional = modifier === '?' || modifier === '*'
var delimiter = res[2] || defaultDelimiter
var pattern = capture || group
tokens.push({
name: name || key++,
prefix: prefix || '',
delimiter: delimiter,
optional: optional,
repeat: repeat,
partial: partial,
asterisk: !!asterisk,
pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
})
}
// Match any characters still remaining.
if (index < str.length) {
path += str.substr(index)
}
// If the path exists, push it onto the end.
if (path) {
tokens.push(path)
}
return tokens
}
/**
* Prettier encoding of URI path segments.
*
* @param {string}
* @return {string}
*/
function encodeURIComponentPretty(str) {
return encodeURI(str).replace(/[\/?#]/g, function (c) {
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
})
}
/**
* Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
*
* @param {string}
* @return {string}
*/
function encodeAsterisk(str) {
return encodeURI(str).replace(/[?#]/g, function (c) {
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
})
}
/**
* Expose a method for transforming tokens into the path function.
*/
function tokensToFunction(tokens) {
// Compile all the tokens into regexps.
var matches = new Array(tokens.length)
// Compile all the patterns before compilation.
for (var i = 0; i < tokens.length; i++) {
if (typeof tokens[i] === 'object') {
matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$')
}
}
return function(obj, opts) {
var path = ''
var data = obj || {}
var options = opts || {}
var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent
for (var i = 0; i < tokens.length; i++) {
var token = tokens[i]
if (typeof token === 'string') {
path += token
continue
}
var value = data[token.name]
var segment
if (value == null) {
if (token.optional) {
// Prepend partial segment prefixes.
if (token.partial) {
path += token.prefix
}
continue
} else {
throw new TypeError('Expected "' + token.name + '" to be defined')
}
}
if (Array.isArray(value)) {
if (!token.repeat) {
throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
}
if (value.length === 0) {
if (token.optional) {
continue
} else {
throw new TypeError('Expected "' + token.name + '" to not be empty')
}
}
for (var j = 0; j < value.length; j++) {
segment = encode(value[j])
if (!matches[i].test(segment)) {
throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
}
path += (j === 0 ? token.prefix : token.delimiter) + segment
}
continue
}
segment = token.asterisk ? encodeAsterisk(value) : encode(value)
if (!matches[i].test(segment)) {
throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
}
path += token.prefix + segment
}
return path
}
}
/**
* Escape a regular expression string.
*
* @param {string} str
* @return {string}
*/
function escapeString(str) {
return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
}
/**
* Escape the capturing group by escaping special characters and meaning.
*
* @param {string} group
* @return {string}
*/
function escapeGroup(group) {
return group.replace(/([=!:$\/()])/g, '\\$1')
}
/**
* Format given url, append query to url query string
*
* @param {string} url
* @param {string} query
* @return {string}
*/
function formatUrl (url, query) {
let protocol
let index = url.indexOf('://')
if (index !== -1) {
protocol = url.substring(0, index)
url = url.substring(index + 3)
} else if (url.indexOf('//') === 0) {
url = url.substring(2)
}
let parts = url.split('/')
let result = (protocol ? protocol + '://' : '//') + parts.shift()
let path = parts.filter(Boolean).join('/')
let hash
parts = path.split('#')
if (parts.length === 2) {
path = parts[0]
hash = parts[1]
}
result += path ? '/' + path : ''
if (query && JSON.stringify(query) !== '{}') {
result += (url.split('?').length === 2 ? '&' : '?') + formatQuery(query)
}
result += hash ? '#' + hash : ''
return result
}
/**
* Transform data object to query string
*
* @param {object} query
* @return {string}
*/
function formatQuery (query) {
return Object.keys(query).sort().map(key => {
var val = query[key]
if (val == null) {
return ''
}
if (Array.isArray(val)) {
return val.slice().map(val2 => [key, '=', val2].join('')).join('&')
}
return key + '=' + val
}).filter(Boolean).join('&')
}
|
import { hasCollapsedParent } from 'src/functions/navigation';
export const getFlattenedFolderNodes = (folderTree) => {
const folders = {};
folderTree.walk((node) => {
if (node.isRoot() || hasCollapsedParent(node)) return;
folders[node.model.uid] = node;
});
return folders;
};
|
/*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Wiki link dialog.
* Chinese Traditional language file.
* Please, use UTF-8 encoding.
*/
FCKLang.WikilinkBtn = 'Insert/Edit Wiki link' ;
FCKLang.WikilinkDlgTitle = 'Wiki link' ;
FCKLang.WikilinkDlgName = 'Wiki link name' ;
FCKLang.WikilinkErrNoName = 'Please type the wiki link name.' ;
FCKLang.WikilinkErrNameInUse = 'The specified name is already in use.';
FCKLang.WikilinkHelp = 'TIP: Also, you can create a wiki link without using this button. To create a new page or create a link to an existing one using wiki links, edit a page and add [[page title]] or [[name of link|title of page]] to its content.';
|
function get_interface_acl_table(container_id, interface_id, options){
if(interface_acl_table) {
interface_acl_table.destroy();
}
var options = options || {};
var dsString="services/workgroup_manage.cgi?method=get_acls&interface_id="+interface_id;
if(options.url_prefix){
dsString = options.url_prefix + dsString;
}
var ds = new YAHOO.util.DataSource(dsString);
ds.responseType = YAHOO.util.DataSource.TYPE_JSON;
ds.responseSchema = {
resultsList: "results",
fields: [
{key: "interface_acl_id", parser: "number"},
{key: "workgroup_id", parser: "number"},
{key: "workgroup_name"},
{key: "entity_id", parser: "number"},
{key: "entity_name"},
{key: "interface_id", parser: "number"},
{key: "allow_deny"},
{key: "eval_position"},
{key: "start"},
{key: "end"},
{key: "notes"}
]};
var columns = [
{key: "workgroup_name", label: "Workgroup", width: 180 ,sortable:false, formatter: function(el, rec, col, data){
if(data === null) {
el.innerHTML = "All";
} else {
el.innerHTML = data;
}
}},
{key: "allow_deny", label: "Permission",sortable:false},
{label: "VLAN Range", formatter: function(el, rec, col, data){
var vlan_start = rec.getData('start');
var vlan_end = rec.getData('end');
if(vlan_start == -1){
vlan_start = 'untagged';
}
var string = vlan_start;
if(vlan_end !== null){
if(vlan_start == "untagged") {
string += ", 1";
}
string += "-"+vlan_end;
}
el.innerHTML = string;
}},
{key: "entity_name", label: "Entity", sortable:false},
{key: "notes", label: "Notes",sortable:false}
];
var config = {};
$("#"+container_id+"_container").css('display', 'block');
var interface_acl_table = new YAHOO.widget.DataTable(container_id, columns, ds, config);
//make drag drop
var url = "services/workgroup_manage.cgi?method=update_acl";
if(options.url_prefix){
url = options.url_prefix + url;
}
_makeTableDragDrop(interface_acl_table, {
url: url,
position_param: "eval_position",
ws_params: [
"interface_acl_id",
"allow_deny",
"start",
"end",
"interface_id",
"entity_id",
"workgroup_id",
"notes"
],
fields: ["success"],
onSuccess: function(req, resp, index){
if(resp.results.length <= 0){
alert("Save Unsuccessful", null, { error: true });
}
var new_options = options;
new_options.enableDragDrop = interface_acl_table._dragDrop;
get_interface_acl_table(container_id, interface_id, new_options);
},
onFailure: function(req, resp, index) {
alert("Save Unsuccessful", null, { error: true });
var new_options = options;
new_options.enableDragDrop = interface_acl_table._dragDrop;
get_interface_acl_table(container_id, interface_id, new_options);
}
});
if(options.enableDragDrop){
interface_acl_table.enableDragDrop();
}
//add editing functionality
interface_acl_table.subscribe("rowClickEvent", function(oArgs){
if(this._dragDrop){
return;
}
var record = this.getRecord(oArgs.target);
options.on_show_edit_panel({
record: record,
interface_id: interface_id
});
});
interface_acl_table.subscribe("rowMouseoverEvent", interface_acl_table.onEventHighlightRow);
interface_acl_table.subscribe("rowMouseoutEvent", interface_acl_table.onEventUnhighlightRow);
//return owned_interface_table;
return interface_acl_table;
}
|
const { CoinTable } = require("../coin-table/dist")
CoinTable.initialize(
"glimmer:main",
500000000000000, // 500,000,000,000,000
10000000, // 10,000,000
{
"2TFzfHYjxkZSurwmbxuAEd6RpqoKvmJGFyL5W46j3xTXXV": {amount: 500000000000000, timestamp: 1618175060980, signature: "gGjvvjSNbD8RDiyHf8QbQVdj8WbyTiTGyvJPJ1LAw3pjU9Ts7EweyBoYwajQRDPCNhqGgqc9X9nJ5mL9wLcR8nyWs2P4vb"}
}
)
|
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import SelectCategory from './SelectCategory';
import PostFormLink from './PostFormLink';
import ArrowUp from 'react-icons/lib/fa/sort-asc';
import ArrowDown from 'react-icons/lib/fa/sort-desc';
import HomeButton from 'react-icons/lib/fa/home';
import { convertToReadableDate } from '../utils/convertDate';
class Category extends Component {
// Upvote a post.
upvote = (postId) => {
this.props.votePosts(postId, 'upVote');
}
// Downvote a post.
downvote = (postId) => {
this.props.votePosts(postId, 'downVote');
}
deleteThisPost = (postId) => {
this.props.deletePost(postId);
}
handleSubmit = (event) => {
event.preventDefault();
}
handleChange = (event) => {
const newOrder = event.target.value;
this.props.sortPosts(newOrder);
}
render() {
/*
* Extract properties from props.
*/
const posts = this.props.posts;
const sortedIds = this.props.sortedIds;
// Get the `selected category` from the match props from `App.js`.
const selectedCategory = this.props.selectedCategory;
// Format the category name to have a capital letter.
const visibleCategoryName = selectedCategory.charAt(0).toUpperCase() + selectedCategory.substring(1);
return (
<div className='container'>
<h2>{visibleCategoryName} {' Posts'} </h2>
<div className='button-home'>
<Link
to={'/'}
>
<HomeButton
size='40'
/>
</Link>
</div>
<section className='navigation'>
{
/*
* Navigation links to select a category View.
*/
}
<SelectCategory />
<div className='sort-select-form'>
<form onSubmit={this.handleSubmit}>
<label>
Sort posts by: {' '}
</label>
<select value= {this.props.sortOrder} onChange={this.handleChange}>
<option value='MOST_RECENT'>most recent</option>
<option value='LEAST_RECENT'>least recent</option>
<option value='HIGHEST_POINTS'>highest points</option>
<option value='LOWEST_POINTS'>lowest points</option>
</select>
</form>
</div>
{
/*
* `Plus` icon that links to the create post form View.
*/
}
<div className='post-icons'>
<PostFormLink />
</div>
</section>
{
/*
* Posts list.
*/
}
<div className='category-related-posts'>
<ul className='all-posts'>
{
/*
* Loop through the posts ids array and filter only the
* ids whose correspondent items match the selected category.
* For each of these items, then, extract the requested
* properties from the relative post.
*/
}
{sortedIds.filter((postId) => (
// Hardcode the selected category for now.
posts[postId].category === selectedCategory
)).map((postId) => (
<li key={postId} className='single-post'>
<div className='single-post-wrapper'>
{
/*
* Controls to increment and decrement the vote score
* for this object post.
*/
}
<div className='post-voting-icons'>
<ArrowUp
className='up=arrow'
size={20}
value={postId}
onClick={() => this.upvote(postId)}
/>
<ArrowDown
className='down-arrow'
size={20}
value={postId}
onClick={() => this.downvote(postId)}
/>
</div>
{
/*
* Post details.
*/
}
<div className='post-details'>
{
/*
* Provides navigation to this Post View (referenced by postId in
* the URL).
*
* Wraps the post title as an anchor tag.
*/
}
<Link
to={'/' + posts[postId].category + '/' + postId}
>
<p className='post-title'>
{ posts[postId].title }
</p>
</Link>
<p className='post-author'>
author: { posts[postId].author }
</p>
<p className='post-separator'>
|
</p>
<p className='post-author'>
{ convertToReadableDate(posts[postId].timestamp) }
</p>
<p className='post-separator'>
|
</p>
<p className='post-score'>
{ posts[postId].voteScore } points
</p>
<p className='post-separator'>
|
</p>
<p className='post-comments'>
{ posts[postId].comments.length } comments
</p>
<p className='post-separator'>
|
</p>
<p className='post-edit-link'>
<Link to={'/edit/' + postId}>
edit
</Link>
</p>
<p className='post-separator'>
|
</p>
<p
className='post-delete-link'
onClick={() => this.deleteThisPost(postId)}
>
delete
</p>
</div>
</div>
</li>
))}
</ul>
</div>
</div>
);
}
}
export default Category;
|
'use strict';
const fs = require('fs-extra');
const path = require('path');
const debug = require('debug');
async function generateRootArtifactDirectory(baseDir) {
const rootArtifactsDir = path.join(baseDir, '.fun', 'build', 'artifacts');
await fs.mkdirp(rootArtifactsDir);
return rootArtifactsDir;
}
async function generateArtifactDirectory(rootArtifactsDir, serviceName, functionName) {
const funcArtifactDir = path.join(rootArtifactsDir, serviceName, functionName);
await fs.mkdirp(funcArtifactDir);
return funcArtifactDir;
}
async function cleanDirectory(directory) {
debug(`check directory ${directory} exist?`);
if (await fs.pathExists(directory)) {
debug(`directory ${directory} exist, begin to remove`);
await fs.remove(directory);
debug(`directory ${directory} removed, begin to create`);
await fs.mkdir(directory);
}
}
module.exports = {
generateRootArtifactDirectory,
generateArtifactDirectory,
cleanDirectory
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.