text
stringlengths 2
1.05M
|
|---|
/* eslint-env mocha */
const assert = require('assert')
const TestHelper = require('../../../../test-helper.js')
const TestStripeAccounts = require('../../../../test-stripe-accounts.js')
const DashboardTestHelper = require('@layeredapps/dashboard/test-helper.js')
describe('/account/subscriptions/confirm-subscription', function () {
let cachedResponses
let publishedPlan
async function bundledData (retryNumber) {
if (retryNumber > 0) {
cachedResponses = {}
await TestHelper.rotateWebhook(true)
}
if (cachedResponses && cachedResponses.finished) {
return
}
cachedResponses = {}
await DashboardTestHelper.setupBeforeEach()
await TestHelper.setupBeforeEach()
const administrator = await TestStripeAccounts.createOwnerWithPlan({
amount: '1000',
trial_period_days: '0',
interval: 'month',
usage_type: 'licensed',
publishedAt: 'true'
})
publishedPlan = administrator.plan
const notPublishedPlan = await TestHelper.createPlan(administrator, {
productid: administrator.product.productid
})
const unpublishedPlan = await TestHelper.createPlan(administrator, {
productid: administrator.product.productid,
publishedAt: 'true',
unpublishedAt: 'true'
})
const user = await TestStripeAccounts.createUserWithPaymentMethod()
const validCustomer = user.customer
const req = TestHelper.createRequest('/account/subscriptions/confirm-subscription?planid=invalid')
req.account = user.account
req.session = user.session
try {
await req.route.api.before(req)
} catch (error) {
cachedResponses.invalidPlan = error.message
}
const req2 = TestHelper.createRequest(`/account/subscriptions/confirm-subscription?planid=${unpublishedPlan.planid}`)
req2.account = user.account
req2.session = user.session
try {
await req2.route.api.before(req2)
} catch (error) {
cachedResponses.unpublishedAtPlan = error.message
}
const req3 = TestHelper.createRequest(`/account/subscriptions/confirm-subscription?planid=${notPublishedPlan.planid}`)
req3.account = user.account
req3.session = user.session
try {
await req3.route.api.before(req3)
} catch (error) {
cachedResponses.notPublishedPlan = error.message
}
const req4 = TestHelper.createRequest(`/account/subscriptions/confirm-subscription?planid=${publishedPlan.planid}`)
req4.account = user.account
req4.session = user.session
await req4.route.api.before(req4)
cachedResponses.before = req4.data
cachedResponses.returns = await req4.get()
const invalidCustomer = await TestHelper.createCustomer(user, {
email: user.profile.contactEmail,
description: 'Chase Visa Debit'
})
const req5 = TestHelper.createRequest(`/account/subscriptions/confirm-subscription?planid=${publishedPlan.planid}`)
req5.account = user.account
req5.session = user.session
req5.body = {
[invalidCustomer.customerid]: true
}
cachedResponses.invalidPaymentMethod = await req5.post()
const req6 = TestHelper.createRequest(`/account/subscriptions/confirm-subscription?planid=${publishedPlan.planid}`)
req6.account = user.account
req6.session = user.session
req6.filename = __filename
req6.screenshots = [
{ hover: '#account-menu-container' },
{ click: '/account/subscriptions' },
{ click: '/account/subscriptions/plans' },
{ click: `/account/subscriptions/plan?planid=${publishedPlan.planid}` },
{ click: `/account/subscriptions/start-subscription?planid=${publishedPlan.planid}` },
{
click: '#submit-button',
waitAfter: async (page) => {
while (true) {
try {
const location = await page.url()
if (location.endsWith(`/account/subscriptions/confirm-subscription?planid=${publishedPlan.planid}`)) {
return
}
} catch (error) {
}
await TestHelper.wait(100)
}
}
},
{
fill: '#submit-form',
body: {
planid: publishedPlan.planid,
[validCustomer.customerid]: true
}
}
]
// csrf
req6.puppeteer = false
req6.body = {}
cachedResponses.csrf = await req6.post()
delete (req6.puppeteer)
delete (req6.body)
// submit
global.pageSize = 50
cachedResponses.submit = await req6.post()
cachedResponses.finished = true
}
describe('exceptions', () => {
it('invalid-planid', async function () {
await bundledData(this.test.currentRetry())
const errorMessage = cachedResponses.invalidPlan
assert.strictEqual(errorMessage, 'invalid-planid')
})
it('invalid-plan', async function () {
await bundledData(this.test.currentRetry())
let errorMessage = cachedResponses.unpublishedAtPlan
assert.strictEqual(errorMessage, 'invalid-plan')
errorMessage = cachedResponses.notPublishedPlan
assert.strictEqual(errorMessage, 'invalid-plan')
})
})
describe('before', () => {
it('should bind data to req', async function () {
await bundledData(this.test.currentRetry())
const data = cachedResponses.before
assert.strictEqual(data.plan.planid, publishedPlan.planid)
})
})
describe('view', () => {
it('should present the form', async function () {
await bundledData(this.test.currentRetry())
const result = cachedResponses.returns
const doc = TestHelper.extractDoc(result.html)
assert.strictEqual(doc.getElementById('submit-form').tag, 'form')
assert.strictEqual(doc.getElementById('submit-button').tag, 'button')
})
})
describe('submit', () => {
it('should start subscription (screenshots)', async function () {
await bundledData(this.test.currentRetry())
const result = cachedResponses.submit
assert.strictEqual(result.redirect, '/home')
})
})
describe('errors', () => {
it('invalid-paymentmethodid', async function () {
await bundledData(this.test.currentRetry())
const result = cachedResponses.invalidPaymentMethod
const doc = TestHelper.extractDoc(result.html)
const messageContainer = doc.getElementById('message-container')
const message = messageContainer.child[0]
assert.strictEqual(message.attr.template, 'invalid-paymentmethodid')
})
it('invalid-csrf-token', async function () {
await bundledData(this.test.currentRetry())
const result = cachedResponses.csrf
const doc = TestHelper.extractDoc(result.html)
const messageContainer = doc.getElementById('message-container')
const message = messageContainer.child[0]
assert.strictEqual(message.attr.template, 'invalid-csrf-token')
})
})
})
|
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 __());
};
})();
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { Constants } from '../shared/config/constants';
import { DataEmitter } from '../shared/models/data-emitter.model';
import { EventLog } from '../shared/models/event-log.model';
import { EventHandler } from '../shared/utils/event-handler';
var FlowTracker = /** @class */ (function (_super) {
__extends(FlowTracker, _super);
function FlowTracker(listener) {
var _this = _super.call(this) || this;
_this.events$ = new Subject();
_this.listener = listener;
return _this;
}
FlowTracker.prototype.startTracking = function () {
this.subscribeToListener();
};
FlowTracker.prototype.stopTracking = function () {
this.unsubscribeAll();
this.destroy(this.events$);
};
FlowTracker.prototype.formatEventToEventLog = function (date, ev) {
return new EventLog(date, ev.target, ev.type, document.URL);
};
FlowTracker.prototype.subscribeToListener = function () {
var _this = this;
this.listener.emitter$.pipe(takeUntil(this.unsubscriber$)).subscribe(function (dE) {
if (dE.type.valueOf() === 1 /* EVENT */.valueOf() && dE.data.type !== Constants.TRACKED_EVENTS.mousemove) {
_this.emit(_this.events$, new DataEmitter(2 /* EVENT_LOG */, _this.formatEventToEventLog(new Date(), dE.data)));
}
});
};
return FlowTracker;
}(EventHandler));
export { FlowTracker };
//# sourceMappingURL=flow-tracker.js.map
|
/*
EASY TABS 1.2 Produced and Copyright by Koller Juergen
www.kollermedia.at | www.austria-media.at
Need Help? http:/www.kollermedia.at/archive/2007/07/10/easy-tabs-12-now-with-autochange
You can use this Script for private and commercial Projects, but just leave the two credit lines, thank you.
*/
// Tabs 如(tabid1,tabid2...)格式。填写tabid
var tablink_idname = new Array("tuijian_content_btn_")
// TabContents 如(tabconid1,tabconid2...)格式。填写tabconid
var tabcontent_idname = new Array("tuijian_content_")
// 一共要切换几个
var tabcount = new Array("3")
// 第几个默认显示出来
var loadtabs = new Array("1")
// 0关闭自动切换,1开始自动切换
var autochangemenu = 0;
// 自动切换时间
var IntervalTime = 1000;
//the speed in seconds when the tabs should change
var changespeed = 2;
//should the autochange stop if the user hover over a tab from the autochangemenu? 0=no 1=yes
var stoponhover = 0;
//END MENU SETTINGS
//This Hover Add Class Name
var hoverClassName = 'hover';
/*Swich EasyTabs Functions - no need to edit something here*/
function easytabs(menunr, active) {if (menunr == autochangemenu){currenttab=active;}if ((menunr == autochangemenu)&&(stoponhover==1)) {stop_autochange()} else if ((menunr == autochangemenu)&&(stoponhover==0)) {counter=0;}menunr = menunr-1;for (i=1; i <= tabcount[menunr]; i++){document.getElementById(tablink_idname[menunr]+i).className='tab'+i;document.getElementById(tabcontent_idname[menunr]+i).style.display = 'none';}document.getElementById(tablink_idname[menunr]+active).className='tab'+active+' '+hoverClassName;document.getElementById(tabcontent_idname[menunr]+active).style.display = 'block';}var timer; counter=0; var totaltabs=tabcount[autochangemenu-1];var currenttab=loadtabs[autochangemenu-1];function start_autochange(){counter=counter+1;timer=setTimeout("start_autochange()",IntervalTime);if (counter == changespeed+1) {currenttab++;if (currenttab>totaltabs) {currenttab=1}easytabs(autochangemenu,currenttab);restart_autochange();}}function restart_autochange(){clearTimeout(timer);counter=0;start_autochange();}function stop_autochange(){clearTimeout(timer);counter=0;}
window.onload=function(){
var menucount=loadtabs.length; var a = 0; var b = 1; do {easytabs(b, loadtabs[a]); a++; b++;}while (b<=menucount);
if (autochangemenu!=0){start_autochange();}
}
|
'use strict';
var path = require('path');
var rootPath = path.normalize(__dirname + '/../../..');
console.log(rootPath, "is");
module.exports = {
root: rootPath,
port: process.env.PORT || 3000,
mongo: {
options: {
db: {
safe: true
}
}
}
};
|
// @flow
import React, { useCallback } from 'react'
import { RecipientRequired } from '@ledgerhq/errors'
import type { Account, Transaction, TransactionStatus } from '@ledgerhq/live-common/lib/types'
import { getAccountBridge } from '@ledgerhq/live-common/lib/bridge'
import type { T } from 'types/common'
import Box from 'components/base/Box'
import Label from 'components/base/Label'
import RecipientAddress from 'components/RecipientAddress'
type Props = {
account: Account,
transaction: Transaction,
autoFocus?: boolean,
status: TransactionStatus,
onChangeTransaction: Transaction => void,
t: T,
label?: React$Node,
}
const RecipientField = ({
t,
account,
transaction,
onChangeTransaction,
autoFocus,
status,
label,
}: Props) => {
const bridge = getAccountBridge(account, null)
const onChange = useCallback(
async (recipient: string, maybeExtra: ?Object) => {
const { currency } = maybeExtra || {} // FIXME fromQRCode ?
const invalidRecipient = currency && currency.scheme !== account.currency.scheme
onChangeTransaction(
bridge.updateTransaction(transaction, { recipient: invalidRecipient ? '' : recipient }),
)
},
[bridge, account, transaction, onChangeTransaction],
)
if (!status) return null
const { recipient: recipientError } = status.errors
const { recipient: recipientWarning } = status.warnings
return (
<Box flow={1}>
<Label>
<span>{label || t('send.steps.details.recipientAddress')}</span>
</Label>
<RecipientAddress
placeholder={t('RecipientField.placeholder', { currencyName: account.currency.name })}
autoFocus={autoFocus}
withQrCode={!status.recipientIsReadOnly}
readOnly={status.recipientIsReadOnly}
error={recipientError instanceof RecipientRequired ? null : recipientError}
warning={recipientWarning}
value={transaction.recipient}
onChange={onChange}
/>
</Box>
)
}
export default RecipientField
|
/* --- AUTOGENERATED FILE -----------------------------
* If you make changes to this file delete this comment.
* Otherwise the file may be overwritten in the future.
* --------------------------------------------------- */
const { mergeLocMatchGroups } = require('../lib/matching/utils');
const { regexMatchLocs } = require('../lib/matching/regexMatch');
const allSetSrc = {
type: 'website',
url: 'https://resources.allsetlearning.com/chinese/grammar/ASGJ1VZQ',
name: 'AllSet Chinese Grammar Wiki',
};
module.exports = {
id: 'buJin',
structures: ['Subj. + 不仅 / 不但 / 不只 + ⋯⋯,而且 / 还 / 也 + ⋯⋯'],
description:
'We\'ve seen 不但⋯⋯而且 in B1, but other than that there are a number of other structures which can be used to express "not only...but also." 不但 can be substituted with 不仅(bù jǐn) and 不只 (bù zhǐ), all meaning "not only," and can be followed by 而且 (ér qiě) , 还 (hái), or 也 (yě) \nOther than 不但⋯⋯而且 being more common than the others, they are all pretty similar in usage and meaning.',
sources: [allSetSrc],
match: sentence =>
mergeLocMatchGroups([
regexMatchLocs(sentence.text, /((?:不仅|不但|不只))[^而且还也]+((?:而且|还|也))/),
]),
examples: [
{
zh: '这篇文章不仅结构清楚,而且思想先进。',
en: 'This essay is not only written clearly, but is also well-developed.',
src: allSetSrc,
},
{
zh: '他不仅喜欢吃中国菜,而且也会做几个中国菜!',
en: 'He not only likes to eat Chinese food, but he can make some as well!',
src: allSetSrc,
},
{
zh: '这个外国人不只会唱民歌,还会说方言,真是了不起!',
en:
"Not only can this foreigner sing folk songs, but he can also speak the dialect. That's really amazing!",
src: allSetSrc,
},
{
zh: '他不但聪明还很善良。难怪他这么受大家的喜爱!',
en: "He's not only smart, but also kind. No wonder everyone loves him.",
src: allSetSrc,
},
],
};
|
var typeIcons = {
amenity: {
arts_centre: 'arg-gallery',
atm: 'marker',
bank: 'bank',
bar: 'bar',
bicycle_parking: 'bicycle_parking',
bicycle_rental: 'bicycle_rental',
bus_station: 'bus',
cafe: 'cafe',
car_wash: 'marker',
cinema: 'cinema',
clinic: 'marker',
courthouse: 'marker',
compressed_air: 'compressed_air',
dentist: 'dentist',
doctors: 'doctor',
embassy: 'embassy',
fast_food: 'fast-food',
ferry_terminal: 'ferry',
fire_station: 'fire-station',
fuel: 'fuel',
hospital: 'hospital',
kindergarten: 'scooter',
library: 'library',
pharmacy: 'pharmacy',
place_of_worship: 'place_of_worship',
police: 'police',
post_office: 'post',
pub: 'beer',
restaurant: 'restaurant',
school: 'school',
shelter: 'shelter',
theatre: 'theatre',
townhall: 'town-hall',
college: 'college',
university: 'college',
default: 'marker'
},
man_made: {
tower: 'marker',
default: 'marker'
},
tourism: {
attraction: 'attraction',
information: 'information',
camp_site: 'campsite',
caravan_site: 'campsite',
chalet: 'home',
hostel: 'home',
motel: 'home',
guest_house: 'home',
apartment: 'home',
hotel: 'lodging',
museum: 'museum',
picnic_site: 'picnic-site',
viewpoint: 'viewpoint',
zoo: 'zoo',
theme_park: 'theme_park',
default: 'marker'
},
historic: {
archaeological_site: 'hillfort',
memorial: 'memorial',
manor: 'marker',
monastery: 'marker',
default: 'marker'
},
railway: {
station: 'rail',
default: 'marker'
},
aeroway: {
terminal: 'airport',
helipad: 'heliport',
aerodrome: 'airfield',
default: 'marker'
},
shop: {
alcohol: 'alcohol-shop',
car_repair: 'marker',
bakery: 'bakery',
bicycle: 'bicycle',
clothes: 'clothing-store',
supermarket: 'grocery',
mall: 'grocery',
department_store: 'grocery',
convenience: 'shop',
hairdresser: 'hairdresser',
florist: 'florist',
music: 'music',
butcher: 'slaughterhouse',
default: 'shop'
},
office: {
government: 'town-hall',
notary: 'suitcase',
lawyer: 'suitcase',
default: 'suitcase'
},
natural: {
peak: 'mountain',
default: 'triangle-stroked'
},
highway: {
default: 'square-stroked'
},
place: {
default: 'town'
},
leisure: {
park: 'park',
default: 'marker'
},
landuse: {
cemetery: 'cemetery',
default: 'marker'
},
default: 'marker'
};
var formatResult = function () {
return function (feature) {
var formatted = '';
if (feature.properties.osm_key == 'waterway') {
formatted = 'Upė ';
}
if (feature.properties.name) {
formatted += feature.properties.name;
}
if (feature.properties.street) {
if (formatted.length) {
formatted += ', ';
}
formatted += feature.properties.street;
}
if (feature.properties.housenumber) {
if (formatted.length) {
formatted += ' ';
}
formatted += feature.properties.housenumber;
}
if (feature.properties.city) {
if (formatted.length) {
formatted += ', ';
}
formatted += feature.properties.city;
}
if (feature.properties.postcode) {
if (feature.properties.osm_key != 'highway') {
if (formatted.length) {
formatted += ' ';
}
formatted += 'LT-' + feature.properties.postcode;
}
}
return formatted;
};
};
var searchEngine = new PhotonAddressEngine({
url: 'https://openmap.lt',
limit: 10,
lang: 'lt',
formatResult: formatResult()
});
var sprite;
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
sprite = JSON.parse(this.responseText);
}
};
xmlhttp.open("GET", "search/sprites/openmaplt.json", true);
xmlhttp.send();
function imgSprite(name, value) {
var icon = typeIcons.default;
if (typeIcons[name]) {
icon = typeIcons[name][value] || typeIcons[name].default;
}
return '<img src="img_trans.gif" style="width: ' + sprite[icon].width +
'px; height: ' + sprite[icon].height +
'px; background: url(search/sprites/openmaplt.png) -' + sprite[icon].x + 'px -' + sprite[icon].y + 'px;">';
}
$('#searchInput').typeahead({
minLength: 3,
hint: false,
highlight: true,
}, {
limit: 10,
display: 'description',
source: searchEngine.ttAdapter(),
templates: {
suggestion: function (context) {
console.log(context);
return '<div>' + imgSprite(context.properties.osm_key, context.properties.osm_value) + context.description + '</div>';
}
}
});
searchEngine.bindDefaultTypeaheadEvent($('#searchInput'));
|
if (self.CavalryLogger) { CavalryLogger.start_js(["icl83"]); }
__d("DistanceConstants",[],(function(a,b,c,d,e,f){e.exports={KILOMETERS_PER_MILE:1.609344,MILES_PER_KILOMETER:.621371,FEET_PER_MILE:5280,METERS_PER_MILE_APPROXIMATE:1609,METERS_PER_MILE:1609.344,METERS_PER_KILOMETER:1e3,KILOMETERS_PER_METER:.001,FEET_PER_DECIMETER:.328084,MILES_PER_METER:621371e-9,EARTH_EQUATOR_LAT_DEGREE_TO_METERS:111132,EARTH_EQUATOR_LONG_DEGREE_TO_METERS:78847,EARTH_RADIUS_KM:6371.01,EARTH_SEMI_CIRCUMFERENCE_KM:20015.11}}),null);
__d("FBTilesMapZoomOverlay__DEPRECATED.react",["cx","fbt","ix","Image.react","React","XUIButton.react"],(function(a,b,c,d,e,f,g,h,i){"use strict";__p&&__p();a=b("React").PropTypes;var j=b("React").createElement(b("Image.react"),{src:i("22148")}),k=b("React").createElement(b("Image.react"),{src:i("22147")});c=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props,c=a.onZoomIn,d=a.onZoomOut;a=babelHelpers.objectWithoutPropertiesLoose(a,["onZoomIn","onZoomOut"]);return b("React").createElement("div",a,b("React").createElement("div",null,b("React").createElement(b("XUIButton.react"),{disabled:c==null,image:j,label:h._("Zoom In"),labelIsHidden:!0,onClick:c,type:"button"})),b("React").createElement("div",null,b("React").createElement(b("XUIButton.react"),{className:"_3d8x",disabled:d==null,image:k,label:h._("Zoom Out"),labelIsHidden:!0,onClick:d,type:"button"})),this.props.onRecenter?b("React").createElement("div",{style:{marginTop:8}},b("React").createElement(b("XUIButton.react"),{className:"_6bti",image:b("React").createElement(b("Image.react"),{src:i("22149")}),label:h._("Recenter"),labelIsHidden:!0,onClick:this.props.onRecenter,type:"button"})):null)};return c}(b("React").PureComponent);c.propTypes={onZoomIn:a.func,onZoomOut:a.func};e.exports=c}),null);
__d("FBMapFunnelLogger",["FBMapFunnelLoggerConstants","FunnelLogger"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("FBMapFunnelLoggerConstants").MAP_EVENTS,h=b("FBMapFunnelLoggerConstants").MAP_FUNNEL_NAME,i=b("FBMapFunnelLoggerConstants").MAP_TAGS;a=function(){__p&&__p();function a(c){this.instanceId=++a.instanceCounter,this.firstTileLoaded=!1,this.allVisibleTilesLoaded=!1,b("FunnelLogger").startFunnel(h,this.instanceId),b("FunnelLogger").setFunnelTrackFocus(h,this.instanceId,!0),b("FunnelLogger").addFunnelTag(h,this.instanceId,"surface="+c)}var c=a.prototype;c.setMapSource=function(a){b("FunnelLogger").addFunnelTag(h,this.instanceId,"source="+a)};c.endFunnel=function(){b("FunnelLogger").endFunnel(h,this.instanceId)};c.sendInteractiveEvent=function(a){b("FunnelLogger").appendActionWithTagIfNew(h,this.instanceId,a,i.IS_INTERACTIVE)};c.onMapReady=function(){b("FunnelLogger").appendAction(h,this.instanceId,g.MAP_READY)};c.onTileLoaded=function(){this.firstTileLoaded||(b("FunnelLogger").appendAction(h,this.instanceId,g.FIRST_TILE_LOADED),this.firstTileLoaded=!0)};c.onAllVisibleTilesLoaded=function(){this.allVisibleTilesLoaded||(b("FunnelLogger").appendAction(h,this.instanceId,g.ALL_VISIBLE_TILES_LOADED),this.allVisibleTilesLoaded=!0)};return a}();a.instanceCounter=0;e.exports=a}),null);
__d("FBTilesAttributionLogo.react",["cx","React","TilesMapConfig","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){switch(a.mapProvider){case"HERE":return b("React").createElement("div",{className:b("joinClasses")(a.className,"_3d_k"),style:{backgroundImage:"url("+b("TilesMapConfig").LOGO.url+")",height:b("TilesMapConfig").LOGO.height+"px",width:b("TilesMapConfig").LOGO.width+"px"}});case"OSM":return b("React").createElement("div",{className:b("joinClasses")(a.className,"_wuu")},"\xa9 OpenStreetMap");case"MAPBOX":return b("React").createElement("div",{className:b("joinClasses")(a.className,"_6o-0")},b("React").createElement("span",{className:"_6o-1","aria-label":"Mapbox logo"}));case"DG":return b("React").createElement("div",{className:b("joinClasses")(a.className,"_wuu")},"Imagery \xa9 DigitalGlobe, Inc");default:return null}};e.exports=a}),null);
__d("MapSurface",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({UNKNOWN:"unknown",UI_EXAMPLE:"ui_example",SOCIAL_REX:"social_rex",LOCAL_SURFACE:"local_surface",LOCAL_SEARCH:"local_search",SIDE_BY_SIDE:"side_by_side_tool",ACTIONABLE_INSIGHTS:"actionable_insights",LOCATION_HISTORY:"location_history",MAPS_PRODUCT_INFRA_QA:"maps_product_infra_qa",NORTH_STAR_QA:"north_star_qa",OPP:"omni_planner_portal",ZIPPYDB_REGIONS:"zippydb_regions",XPP:"express_wifi_partner_portal",PVD:"pvd",NEARBY_FRIENDS:"nearby_friends"})}),null);
__d("FBTilesMap__DEPRECATED.react",["cx","FBMapFunnelLogger","FBMapFunnelLoggerConstants","FBOverlayBase.react","FBOverlayContainer.react","FBOverlayElement.react","FBTilesAttributionLogo.react","FBTilesInfoButton.react","FBTilesMapZoomOverlay__DEPRECATED.react","LeafletMap__DEPRECATED.react","LeafletMarker.react","LeafletTileLayer.react","LeafletUtils","LeafletView","MapSurface","React","TilesMapConfig","TilesMapTheme","TilesMapUtils"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("FBMapFunnelLoggerConstants").MAP_SOURCES;a=b("React").PropTypes;var i={maxZoom:b("TilesMapConfig").ZOOM_RANGE.MAX,minZoom:b("TilesMapConfig").ZOOM_RANGE.MIN};function j(a,c){return c!=null&&typeof c==="object"&&Object.prototype.hasOwnProperty.call(c,"type")&&c.type===b("FBOverlayElement.react")?a?c:void 0:a?void 0:c}var k=function(a){return b("React").Children.map(a,function(a){return j(!1,a)}).filter(function(a){return a!=null})},l=function(a){return b("React").Children.map(a,function(a){return j(!0,a)}).filter(function(a){return a!=null})},m=function(a){return a!=null?{overlays:l(a),others:k(a)}:{overlays:null,others:null}};c=a.shape({horizontal:a.oneOf(["left","right","fit"]),vertical:a.oneOf(["top","bottom","fit"])});d=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.$1=null,d.$2=new(b("FBMapFunnelLogger"))(d.props.surface),d.state={size:null,attributions:[]},d.$9=function(a){d.setState({size:a}),d.props.onSizeSettled!=null&&d.props.onSizeSettled(a)},d.$10=function(){var a=d.props,b=a.view;a=a.onViewChange;if(b==null||a==null)return;a(b.setZoom(b.zoom+1))},d.$11=function(){var a=d.props,b=a.view;a=a.onViewChange;if(b==null||a==null)return;a(b.setZoom(b.zoom-1))},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.render=function(){var a=this.props,c=a.children,d=a.className,e=a.style;a=babelHelpers.objectWithoutPropertiesLoose(a,["children","className","style"]);c=m(c);var f=c.others;c=c.overlays;return b("React").createElement(b("FBOverlayContainer.react"),{className:d,style:e},b("React").createElement(b("FBOverlayBase.react"),null,this.$3(f,a)),c,this.$4(),this.$5(),this.$6())};d.componentDidMount=function(){this.$7(),this.$2.setMapSource(h.FACEBOOK)};d.componentDidUpdate=function(){this.$7()};d.componentWillUnmount=function(){this.$1&&this.$1.abort(),this.$2.endFunnel()};d.$7=function(){var a=this;if(this.state.size===null||this.state.size===void 0||this.props.view===void 0)return;this.$1=b("TilesMapUtils").getMapProviderForAttributionByViewPort(this.$8(),this.props.view==null?null:this.props.view.zoom,function(b){a.$1=null,b.sort(),JSON.stringify(a.state.attributions)!==JSON.stringify(b)&&a.setState({attributions:b})})};d.$4=function(){return this.state.size==null?null:this.state.attributions.every(function(a){return a!=="here"})?null:b("React").createElement(b("FBOverlayElement.react"),this.props.attributionLogoPosition,b("React").createElement(b("FBTilesAttributionLogo.react"),{mapProvider:"HERE"}))};d.$5=function(){var a=this;if(!this.props.showReportButton||this.state.size==null)return null;var c=function(){return{hereReportUrl:b("TilesMapUtils").getHereReporterToolUrl(a.props.view),mapSources:a.state.attributions,mapUrl:null,mapBounds:a.$8(),zoom:a.props.view==null?null:a.props.view.zoom}};return b("React").createElement(b("FBOverlayElement.react"),this.props.reportButtonPosition,b("React").createElement(b("FBTilesInfoButton.react"),{className:"_1mfw",mapInfoCallback:c,surface:this.props.surface}))};d.$3=function(a,c){var d=this,e=babelHelpers["extends"]({},c.options,{zoomControl:!1}),f=null;a!=null&&(f=a.map(function(a,c){return a!=null&&typeof a==="object"&&Object.prototype.hasOwnProperty.call(a,"type")&&a.type===b("LeafletMarker.react")?b("React").cloneElement(a,{funnelLogger:d.$2}):a}));return b("React").createElement(b("LeafletMap__DEPRECATED.react"),babelHelpers["extends"]({},c,{className:"_5db7",onSizeSettled:this.$9,options:e,controlOptions:this.props.controlOptions,funnelLogger:this.$2}),b("React").createElement(b("LeafletTileLayer.react"),{options:Object.assign({},this.props.tileOptions,i),urlTemplate:b("TilesMapUtils").getTileURLTemplate(null,this.props.theme),funnelLogger:this.$2}),f)};d.$6=function(){__p&&__p();var a=this.props,c=a.view,d=a.options,e=d.minZoom;d=d.maxZoom;var f=a.initialView,g=a.onViewChange,h=a.showZoomControls;a=a.setZoomPosition;if(c==null||g==null||!h)return null;h=b("TilesMapConfig").ZOOM_RANGE;var i=h.MAX;h=h.MIN;d=d!==void 0?Math.min(d,i):i;i=e!==void 0?Math.max(e,h):h;e=c.zoom<d?this.$10:void 0;h=c.zoom>i?this.$11:void 0;d=f&&g?function(){return g(f)}:null;return b("React").createElement(b("FBOverlayElement.react"),a,b("React").createElement(b("FBTilesMapZoomOverlay__DEPRECATED.react"),{className:"_3-8j _1yx0",onZoomIn:e,onZoomOut:h,onRecenter:d}))};d.$8=function(){return this.state.size==null||this.props.view===void 0?null:b("LeafletUtils").getViewBounds(this.props.view,{width:this.state.size.x,height:this.state.size.y})};return c}(b("React").Component);d.propTypes={className:a.string,showZoomControls:a.bool,setZoomPosition:c,showReportButton:a.bool,style:a.object,theme:a.string,view:a.instanceOf(b("LeafletView")),tileOptions:a.object,reportButtonPosition:c,attributionLogoPosition:c,surface:a.string};d.defaultProps={showReportButton:!0,theme:b("TilesMapTheme").DEFAULT,setZoomPosition:{vertical:"top",horizontal:"left"},reportButtonPosition:{vertical:"bottom",horizontal:"right"},attributionLogoPosition:{vertical:"bottom",horizontal:"left"},options:{},onViewChange:null,initialView:null,surface:b("MapSurface").UNKNOWN};e.exports=d}),null);
__d("MessengerContextualDialogReact.bs",["bs_curry","ReasonReact.bs","bs_js_null_undefined","MessengerContextualDialog.react"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a){if(a!==void 0)switch(a){case 0:return"center";case 1:return"left";case 2:return"right"}}function a(a,c,d,e,f,h,i,j,k){if(d!==void 0){var l=d;d=function(){return b("bs_js_null_undefined").fromOption(b("bs_curry")._1(l,0))}}else d=function(){return void 0};return b("ReasonReact.bs").wrapJsForReason(b("MessengerContextualDialog.react"),{alignment:b("bs_js_null_undefined").fromOption(g(a)),className:b("bs_js_null_undefined").fromOption(c),contextRef:d,offsetY:b("bs_js_null_undefined").fromOption(f),onBlur:b("bs_js_null_undefined").fromOption(e),onToggle:h,shown:b("bs_js_null_undefined").fromOption(i),width:b("bs_js_null_undefined").fromOption(j)},k)}f.stringOfAlignment=g;f.make=a}),null);
__d("getFBDockSize",["DOM","ge"],(function(a,b,c,d,e,f){__p&&__p();var g={height:0,width:0};function a(){var a=b("ge")("pagelet_dock");if(!a)return g;var c=b("DOM").scry(a,".fbDockWrapper");if(!c||c.length!==1)return g;a=c[0];return{height:a.offsetHeight,width:a.offsetWidth}}e.exports=a}),null);
__d("PagesManagerActionType",["ImmutableObject","keyMirrorRecursive"],(function(a,b,c,d,e,f){"use strict";a=new(b("ImmutableObject"))(b("keyMirrorRecursive")({LIST:{FETCH:"",FETCHED:"",UPDATED:"",LOAD_MORE:"",LOADING:"",PREVENT_SCROLL:"",SELECT:"",DESELECT_ALL:"",VIEW:"",INITIAL_VIEW:"",CLEAR_INITIAL_VIEW:"",SET_RESPONSE_DATA:"",CONTENT_SEARCH_SELECTED_INDEX:"",ITEM_FOLDER_CHANGE:"",TOGGLE_FOLDER_SELECTOR:"",TOGGLE_FILTER_SELECTOR:"",REMOVE_ITEM_FOLDER_CHANGE:"",BAN_STATUS_CHANGE:"",REMOVE_BAN_NOTICE:"",SET_THREAD_LABELS:""},NAVIGATION_UNIT:{CHANGE:"",CHANGE_PLATFORM:"",NOTIFICATION_COUNT_CHANGE:""},FILTER_PANEL:{TOGGLE_PANEL:""},LAYOUT:{HEIGHT_CHANGE:"",LIST_HEIGHT_CHANGE:"",FOOTER_HEIGHT_CHANGE:"",HEADER_HEIGHT_CHANGE:"",LIST_HEADER_HEIGHT_CHANGE:""},SEARCH:{TOGGLE:"",CHANGE_TYPE:"",CHANGE_SEARCH_TERM:"",IS_SEARCHING_CHANGED:"",ADD_SEARCH_CUSTOM_TAG:"",REMOVE_SEARCH_CUSTOM_TAG:"",FETCH_CUSTOM_TAG_THREAD_COUNTS:"",UPDATE_CUSTOM_TAG_THREAD_COUNTS:"",SELECT_CUSTOMER:"",CLEAR:"",LABEL:""},CTA:{CTA_ID_FETCH_SUCCESS:"",CTA_ID_FETCH_ERROR:""},COMMENTS:{CHANGE_TAB:"",MARK_ALL_ITEMS_AS_READ:""}}));e.exports=a}),null);
__d("PagesManagerDispatcher",["ReactDispatcher_DEPRECATED"],(function(a,b,c,d,e,f){"use strict";e.exports=new(b("ReactDispatcher_DEPRECATED"))()}),null);
__d("PagesManagerAction",["PagesManagerActionType","PagesManagerDispatcher"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={viewListItem:function(a){b("PagesManagerDispatcher").dispatch({type:b("PagesManagerActionType").LIST.VIEW,listItem:a})},clearViewListItem:function(){b("PagesManagerDispatcher").dispatch({type:b("PagesManagerActionType").LIST.VIEW,listItem:null})},setInitialViewItem:function(a){b("PagesManagerDispatcher").dispatch({type:b("PagesManagerActionType").LIST.INITIAL_VIEW,item:a})},clearInitialViewItem:function(){b("PagesManagerDispatcher").dispatch({type:b("PagesManagerActionType").LIST.CLEAR_INITIAL_VIEW})},setLayoutHeight:function(a){b("PagesManagerDispatcher").dispatch({type:b("PagesManagerActionType").LAYOUT.HEIGHT_CHANGE,layoutHeight:a})},setListNavigationHeight:function(a){b("PagesManagerDispatcher").dispatch({type:b("PagesManagerActionType").LAYOUT.LIST_HEIGHT_CHANGE,height:a})},setFooterHeight:function(a){b("PagesManagerDispatcher").dispatch({type:b("PagesManagerActionType").LAYOUT.FOOTER_HEIGHT_CHANGE,height:a})},setHeaderHeight:function(a){b("PagesManagerDispatcher").dispatch({type:b("PagesManagerActionType").LAYOUT.HEADER_HEIGHT_CHANGE,height:a})},setListHeaderHeight:function(a){b("PagesManagerDispatcher").dispatch({type:b("PagesManagerActionType").LAYOUT.LIST_HEADER_HEIGHT_CHANGE,height:a})},handleSelectionChange:function(a,c,d){b("PagesManagerDispatcher").dispatch({type:b("PagesManagerActionType").LIST.SELECT,rowsAdded:a,rowsRemoved:c,selectedRows:d})},handleSelectionMapChange:function(a){b("PagesManagerDispatcher").dispatch({type:b("PagesManagerActionType").LIST.SELECT,selectedRowsMap:a})},deselectAll:function(){b("PagesManagerDispatcher").dispatch({type:b("PagesManagerActionType").LIST.DESELECT_ALL})},setThreadLabels:function(a,c){b("PagesManagerDispatcher").dispatch({selectedThreadLabels:a,currentThreadID:c,type:b("PagesManagerActionType").LIST.SET_THREAD_LABELS})}};e.exports=a}),null);
__d("GraphQLMutationDataHandler",["invariant"],(function(a,b,c,d,e,f,g){"use strict";a={getMutationType:function(a){!!a&&Object.keys(a).length===1||g(0,3445);return Object.keys(a)[0]}};e.exports=a}),null);
__d("GraphQLSubscribeModes",[],(function(a,b,c,d,e,f){"use strict";a={SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe"};e.exports=a}),null);
__d("GraphQLSubscriptionTracker",[],(function(a,b,c,d,e,f){"use strict";var g={};a={trackSubscription:function(a,b){g[b]=a},getSubscription:function(a){return g[a]},removeSubscription:function(a){delete g[a]}};e.exports=a}),null);
__d("RelayGraphQLSubscriptionNetworkLayer",["invariant"],(function(a,b,c,d,e,f,g){"use strict";var h;a={injectGraphQLSubscriber:function(a){h=a},sendSubscribeRequest:function(a){h||g(0,1910),h.sendSubscribeRequest(a)}};e.exports=a}),null);
__d("RQLSubscription",["invariant","GraphQLMutationDataHandler","GraphQLSubscribeModes","GraphQLSubscriptionTracker","RelayGraphQLSubscriptionNetworkLayer"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a={sendSubscribe:function(a,c,d,e,f){b("RelayGraphQLSubscriptionNetworkLayer").sendSubscribeRequest({mode:b("GraphQLSubscribeModes").SUBSCRIBE,subscription:a,subscriptionQueryID:e,params:c,clientSubscriptionID:d,topic:f})},sendUnsubscribe:function(a,c,d,e,f){b("RelayGraphQLSubscriptionNetworkLayer").sendSubscribeRequest({mode:b("GraphQLSubscribeModes").UNSUBSCRIBE,subscription:a,subscriptionQueryID:e,params:c,clientSubscriptionID:d,topic:f})},handleSubscriptionPayload:function(a){var c=b("GraphQLMutationDataHandler").getMutationType(a);a[c]||g(0,5237);var d="client_subscription_id"in a[c];if(!d)return;d=a[c].client_subscription_id;d||g(0,5238);c=b("GraphQLSubscriptionTracker").getSubscription(d);c&&c.handlePayload(a)}};e.exports=a}),null);
__d("RelayGraphQLSubscriber",["Promise","GraphQLSubscribeModes","GraphQLSubscriptionsLoggerEvent","GraphQLSubscriptionsMechanism","GraphQLSubscriptionsTypedLogger","RelayRTIGraphQLSubscriberUtils","RQLSubscription","SkywalkerManager","nullthrows","react-relay-deprecated/classic/query/RelayQuery","react-relay-deprecated/classic/route/RelayMetaRoute","react-relay-deprecated/classic/traversal/flattenRelayQuery","react-relay-deprecated/classic/traversal/printRelayQuery"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("RelayRTIGraphQLSubscriberUtils").getTopicAndTransformContext,h={},i=155160167952447;function a(a){__p&&__p();return{sendSubscribeRequest:function(c){var d=this,e,f=this._prepareData(c);c.mode===b("GraphQLSubscribeModes").SUBSCRIBE?e=g(a,f.queryText,f.queryID,f.queryParams,f.topic).then(function(a){var b=a.topic;a=a.transformContext;f.topic=b;a.appID=i;return d._subscribe(f,a)}):c.mode===b("GraphQLSubscribeModes").UNSUBSCRIBE?e=this._unsubscribe(f):e=b("Promise").reject("invalid mode");e["catch"](function(a){return!1})},_prepareData:function(a){var c={input:JSON.stringify(babelHelpers["extends"]({},a.params,{client_subscription_id:a.clientSubscriptionID}))},d=b("react-relay-deprecated/classic/query/RelayQuery").Subscription.create(a.subscription,b("react-relay-deprecated/classic/route/RelayMetaRoute").get("$GraphQLSubscriber"),c),e=b("react-relay-deprecated/classic/traversal/printRelayQuery")(b("nullthrows")(b("react-relay-deprecated/classic/traversal/flattenRelayQuery")(d))).text;return{queryText:e,queryID:a.subscriptionQueryID!=null?Number(a.subscriptionQueryID):null,queryParams:c,topic:a.topic!=null?String(a.topic):null,tokenKey:JSON.stringify({params:a.params,text:e}),logger:new(b("GraphQLSubscriptionsTypedLogger"))().setSubscriptionCall(d.getCall().name).setQueryParams(c).setMechanism(b("GraphQLSubscriptionsMechanism").SKYWALKER)}},_subscribe:function(a,c){var d=a.topic,e=a.tokenKey,f=a.logger;return new(b("Promise"))(function(a){var g={context:{transformContext:JSON.stringify(c)}};h[e]=b("SkywalkerManager").subscribe(b("nullthrows")(d),function(a){a=JSON.parse(a.payload);f.setEvent(b("GraphQLSubscriptionsLoggerEvent").RECEIVEPAYLOAD).log();b("RQLSubscription").handleSubscriptionPayload(a)},g);f.setEvent(b("GraphQLSubscriptionsLoggerEvent").CLIENT_SUBSCRIBE).log();a()})},_unsubscribe:function(a){var c=a.tokenKey,d=a.logger;return new(b("Promise"))(function(a){h[c].unsubscribe(),delete h[c],d.setEvent(b("GraphQLSubscriptionsLoggerEvent").CLIENT_UNSUBSCRIBE).log(),a()})}}}e.exports=a}),null);
__d("LeafletPath",["areEqual","partitionObjectByKey"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=function(){var a=new Set(["color","dashArray","fill","fillColor","fillOpacity","lineCap","lineJoin","opacity","stroke","weight"]);return function(c){return b("partitionObjectByKey")(c,a)}}();a={mutateOptions:function(a,c,d){__p&&__p();c=g(c||{});var e=c[0];c=c[1];d=g(d||{});var f=d[0];d=d[1];if(!b("areEqual")(c,d))return!1;b("areEqual")(e,f)||a.setStyle(e);return!0}};e.exports=a}),null);
__d("LeafletPopup.react",["GeoCoordinates","LeafletUtils","React","ReactDOM","areEqual","leaflet"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("React").PropTypes;c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}c.mutate=function(a,c,d){if(!b("areEqual")(c.options,d.options))return!1;c.coordinates!==d.coordinates&&a.setLatLng(b("LeafletUtils").toLatLng(c.coordinates));d=a.getContent();c=b("React").Children.only(c.children);b("ReactDOM").render(c,d,function(){return a.update()});return!0};c.toLayer=function(a,c){var d=b("leaflet").popup(a.options,c);a.coordinates&&d.setLatLng(b("LeafletUtils").toLatLng(a.coordinates));c=b("React").Children.only(a.children);a=document.createElement("div");d.setContent(a);b("ReactDOM").render(c,a,function(){return d.update()});return d};var d=c.prototype;d.render=function(){return null};return c}(b("React").Component);c.propTypes={options:a.object,coordinates:a.instanceOf(b("GeoCoordinates"))};e.exports=c}),null);
__d("LeafletCircle.react",["GeoCoordinates","LeafletLayer.react","LeafletPath","LeafletPopup.react","LeafletUtils","React","leaflet"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=b("React").PropTypes;c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}c.mutate=function(a,c,d){__p&&__p();if(!b("LeafletPath").mutateOptions(a,c.options,d.options))return!1;b("LeafletLayer.react").mutateEventHandlers(a,c.eventHandlers,d.eventHandlers);c.center!==d.center&&a.setLatLng(b("LeafletUtils").toLatLng(c.center));c.radius!==d.radius&&a.setRadius(c.radius);if(c.popup){var e=c.popup.type.mutate(a.$1,c.popup.props,d.popup.props);e||(a.unbindPopup(),a.bindPopup(c.popup.type.toLayer(c.popup.props)))}else!c.popup&&d.popup&&a.unbindPopup();return!0};c.toLayer=function(a){var c=b("leaflet").circle(b("LeafletUtils").toLatLng(a.center),a.radius,a.options);b("LeafletLayer.react").addEventHandlers(c,a.eventHandlers);a.popup&&c.bindPopup(a.popup.type.toLayer(a.popup.props));return c};var d=c.prototype;d.render=function(){return null};return c}(b("React").Component);c.propTypes={options:a.object,eventHandlers:a.object,center:a.instanceOf(b("GeoCoordinates")).isRequired,radius:a.number.isRequired,popup:a.instanceOf(b("LeafletPopup.react"))};e.exports=c}),null);
__d("JobApplicationMedium",[],(function(a,b,c,d,e,f){a=Object.freeze({NONE:0,MESSENGER:1,EMAIL:2,OFFSITE_URL:16});e.exports=a}),null);
__d("JobsFBLogger",["FBLogger"],(function(a,b,c,d,e,f){"use strict";e.exports=b("FBLogger")("job_search")}),null);
__d("JobOpeningEnumLabels",["fbt","JobApplicationMedium","JobSearchStrings","JobsFBLogger"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();e.exports={wageTypePer:{1:b("JobSearchStrings").PER_HOUR_LABEL,2:b("JobSearchStrings").PER_DAY_LABEL,3:b("JobSearchStrings").PER_WEEK_LABEL,4:b("JobSearchStrings").PER_TWO_WEEKS_LABEL,5:b("JobSearchStrings").PER_MONTH_LABEL,6:b("JobSearchStrings").PER_YEAR_LABEL},wagePerTimePeriod:function(a,c){switch(a){case"1":return b("JobSearchStrings").PER_HOUR_LABEL_WITH_WAGE(c);case"2":return b("JobSearchStrings").PER_DAY_LABEL_WITH_WAGE(c);case"3":return b("JobSearchStrings").PER_WEEK_LABEL_WITH_WAGE(c);case"4":return b("JobSearchStrings").PER_TWO_WEEKS_LABEL_WITH_WAGE(c);case"5":return b("JobSearchStrings").PER_MONTH_LABEL_WITH_WAGE(c);case"6":return b("JobSearchStrings").PER_YEAR_LABEL_WITH_WAGE(c)}return null},wagePerTimePeriodWithRange:function(a,c,d){switch(a){case"1":return b("JobSearchStrings").PER_HOUR_LABEL_WITH_WAGE_RANGE(c,d);case"2":return b("JobSearchStrings").PER_DAY_LABEL_WITH_WAGE_RANGE(c,d);case"3":return b("JobSearchStrings").PER_WEEK_LABEL_WITH_WAGE_RANGE(c,d);case"4":return b("JobSearchStrings").PER_TWO_WEEKS_LABEL_WITH_WAGE_RANGE(c,d);case"5":return b("JobSearchStrings").PER_MONTH_LABEL_WITH_WAGE_RANGE(c,d);case"6":return b("JobSearchStrings").PER_YEAR_LABEL_WITH_WAGE_RANGE(c,d)}return null},getJobApplicationMedium:function(a){switch(a){case b("JobApplicationMedium").NONE:return b("JobSearchStrings").GROUPS_COMPOSER_CONTACT_PREFERENCE_NONE;case b("JobApplicationMedium").MESSENGER:return b("JobSearchStrings").GROUPS_COMPOSER_CONTACT_PREFERENCE_MESSENGER;case b("JobApplicationMedium").EMAIL:return g._("Email");case b("JobApplicationMedium").OFFSITE_URL:return b("JobSearchStrings").GROUPS_COMPOSER_CONTACT_PREFERENCE_WEBSITE_LINK;default:b("JobsFBLogger").warn("Provided job application medium not in JobApplicationMedium: %s",a);return null}},getJobType:function(a){switch(a){case"FULL_TIME":return b("JobSearchStrings").FULL_TIME_LABEL;case"PART_TIME":return b("JobSearchStrings").PART_TIME_LABEL;case"INTERNSHIP":return b("JobSearchStrings").INTERNSHIP_LABEL;case"VOLUNTEER":return b("JobSearchStrings").VOLUNTEER_LABEL;case"CONTRACT":return b("JobSearchStrings").CONTRACT_LABEL;default:b("JobsFBLogger").warn("jobType not in JobOpeningTypeEnum: %s",String(a));return null}},getJobTypeFull:function(a){switch(a){case"FULL_TIME":return b("JobSearchStrings").FULL_TIME_JOB_LABEL;case"PART_TIME":return b("JobSearchStrings").PART_TIME_JOB_LABEL;case"INTERNSHIP":return b("JobSearchStrings").INTERNSHIP_LABEL;case"VOLUNTEER":return b("JobSearchStrings").VOLUNTEER_LABEL;case"CONTRACT":return b("JobSearchStrings").CONTRACT_JOB_LABEL;default:b("JobsFBLogger").warn("jobType not in JobOpeningTypeEnum: %s",String(a));return null}},getJobOpeningTypes:function(){return["FULL_TIME","PART_TIME","INTERNSHIP","VOLUNTEER","CONTRACT"]},jobApplicationStatus:function(a){switch(a){case"RECEIVED":return g._("Received");case"VIEWED":return g._("Viewed");case"CONTACTED":return g._("Contacted");case"SCHEDULED_INTERVIEW":return g._("Interview Scheduled");case"INTERVIEWED":return g._("Interviewed");case"HIRED":return g._("Hired");case"REJECTED":return g._("Rejected");default:return null}},jobApplicationQualityFeedback:function(a){switch(a){case"QUALIFIED":return g._("Qualified");case"NOT_QUALIFIED":return g._("Not Qualified");case"NOT_SURE":return g._("Need More Info");default:b("JobsFBLogger").warn("jobApplicationQualityFeedback not in JobOpeningTypeEnum: %s",String(a));return""}}}}),null);
__d("AddressTypeaheadPageCategory",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({CITY:"city",NEIGHBORHOOD:"neighborhood",POSTAL_CODE:"postal_code",REGION:"region"})}),null);
__d("PagesManagerInboxSection",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({MESSAGES:"messages",AUTOMATED_RESPONSES:"automated_responses",BROADCAST:"broadcast",EMAIL_CAMPAIGN:"email_campaign",CONTACTS:"contacts"})}),null);
__d("UniversalCustomEventField",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({FB_MESSENGER_BOT_POSTBACK_EVENT:"fb_messenger_bot_postback_event",FB_MESSENGER_BOT_POSTBACK_CTA_ID:"fb_messenger_bot_cta_id",FB_MESSENGER_BOT_POSTBACK_CTA_KIND:"fb_messenger_bot_cta_kind",FB_MESSENGER_BOT_MESSAGE_TYPE:"fb_messenger_bot_message_type",FB_MESSENGER_BOT_MESSAGE_TEMPLATE_TYPE:"fb_messenger_bot_message_template_type",FB_INSTANT_ARTICLES_CTA_ID:"fb_instant_articles_cta_id",FB_INSTANT_ARTICLES_CTA_TYPE:"fb_instant_articles_cta_type",FB_INSTANT_GAMES_CONTEXT_PLAYERS:"fb_instant_games_context_players",FB_INSTANT_GAMES_CONTEXT_TYPE:"fb_instant_games_context_type",FB_INSTANT_GAMES_ENTRY_POINT:"fb_instant_games_entry_point",FB_INSTANT_GAMES_TEMPLATE_NAME:"fb_instant_games_template_name",FB_PAGE_IS_FAN:"fb_page_is_fan",FB_PAGE_IS_FOLLOWER:"fb_page_is_follower",FB_PAGE_POST_ID:"fb_page_post_id",FB_PAGE_POST_IMPRESSION_TYPE:"fb_page_post_impression_type",FB_PAGE_POST_REACTION_TYPE:"fb_page_post_reaction_type",FB_PAGE_POST_TYPE:"fb_page_post_type",FB_PAGES_MESSAGING_LABEL:"fb_pages_messaging_label_name",FB_PAGES_MESSAGING_MESSAGE_SOURCE:"fb_pages_messaging_message_source",FB_PAGES_MESSAGING_API_MESSAGE_TYPE:"fb_pages_messaging_api_message_type",FB_IG_IMPRESSION_TYPE:"fb_ig_impression_type",FB_IG_IS_FOLLOWER:"fb_ig_is_follower",FB_IG_POST_ID:"fb_ig_post_id",FB_IG_POST_PUBLISH_TIME:"fb_ig_post_publish_time",FB_IG_POST_REACTION_TYPE:"fb_ig_post_reaction_type",FB_IG_POST_SOURCE_TYPE:"fb_ig_post_source_type",FB_IG_POST_TYPE:"fb_ig_post_type",FB_IG_SHOPPING_PRODUCT_ID:"fb_ig_shopping_product_id",FB_IG_STORY_NAVIGATION_ACTION:"fb_ig_story_navigation_action",FB_IG_STORY_ACTION:"fb_ig_story_action",FB_CONTENT_CATEGORY:"content_category",FB_OFFLINE_UPLOAD_ID:"fb_offline_upload_id",FB_OFFLINE_ORDER_ID:"fb_offline_order_id",FB_OFFLINE_ITEM_NUMBER:"fb_offline_item_number",FB_OFFLINE_UNIQUE_ID:"fb_offline_unique_id",FB_CAMERA_EFFECT_ID:"fb_camera_effect_id",FB_CAMERA_EFFECT_NAME:"fb_camera_effect_name",FB_CAMERA_EFFECT_TYPE:"fb_camera_effect_type",FB_CAMERA_EFFECT_MEDIA_TYPE:"fb_camera_effect_media_type",FB_CAMERA_EFFECT_SHARE_CHANNEL:"fb_camera_effect_share_channel",FB_CAMERA_EFFECT_ORIGIN:"fb_camera_effect_origin",FB_WEB_EXIT_DOMAIN:"fb_web_exit_domain",FB_WEB_EXIT_PATH:"fb_web_exit_path",FB_WEB_PAGE_VIEWS:"fb_web_page_views",FB_ADS_AD_ID:"fb_ads_ad_id",FB_ADS_ADGROUP_ID:"fb_ads_adgroup_id",FB_ADS_ADGROUP_VERSION:"fb_ads_adgroup_version",FB_ADS_ADSET_ID:"fb_ads_adset_id",FB_ADS_ADSET_VERSION:"fb_ads_adset_version",FB_ADS_ADCAMPAIGN_ID:"fb_ads_adcampaign_id",FB_ADS_ADCAMPAIGN_VERSION:"fb_ads_adcampaign_version",FB_ADS_PLACEMENT:"fb_ads_placement",FB_ADS_PAGE_ID:"fb_ads_page_id",FB_ADS_POST_ID:"fb_ads_post_id",FB_ADS_POST_REACTION_TYPE:"fb_ads_post_reaction_type",FB_ADS_CLICK_TARGET_ID:"fb_ads_click_target_id",FB_ADS_IS_VIDEO_AUTO_PLAY:"fb_ads_is_video_auto_play",FB_ADS_VIDEO_ID:"fb_ads_video_id",FB_ADS_VIDEO_PLAY_TIME:"fb_ads_video_play_time",FB_ADS_VIDEO_DURATION:"fb_ads_video_duration",FB_JOURNEY_VERSION:"fb_journey_version",FB_JOURNEY_START_TIME:"fb_journey_start_time",FB_JOURNEY_END_TIME:"fb_journey_end_time",FB_JOURNEY_DURATION:"fb_journey_duration",FB_JOURNEY_START_CHANNEL:"fb_journey_start_channel",FB_JOURNEY_END_CHANNEL:"fb_journey_end_channel",FB_JOURNEY_CHANNEL_LIST:"fb_journey_channel_list",FB_JOURNEY_NUM_SESSIONS:"fb_journey_num_sessions",FB_JOURNEY_IS_CONVERTED:"fb_journey_is_converted",FB_JOURNEY_HASHED_DEVICE_ID:"fb_journey_hashed_device_id",FB_JOURNEY_START_EVENT_SOURCE:"fb_journey_start_event_source",FB_JOURNEY_END_EVENT_SOURCE:"fb_journey_end_event_source",FB_JOURNEY_EVENT_SOURCE_LIST:"fb_journey_event_source_list",FB_JOURNEY_VERSION_MID:"fb_journey_version_mid"})}),null);
__d("XPagesManagerManageJobsController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/{page_token}/manage_jobs/",{page_token:{type:"String",required:!0},business_id:{type:"Int"},init_composer:{type:"Bool",defaultValue:!1},init_composer_job_id:{type:"FBID"},init_composer_mode:{type:"Enum",enumType:1},tab:{type:"Enum",enumType:1},job_application_id:{type:"FBID"},referer_mechanism:{type:"Enum",enumType:1},source:{type:"Enum",enumType:1},post_text:{type:"String"}})}),null);
|
import { Vector3 } from 'three';
var titleHTML = "\
<span style='position: absolute; top: "+80+"px; left: "+55+"px; display: block;'>\
<center><h1 id=title style='color: silver; font-size: 70px; opacity: 0;'>LABYRINTH</h1></center>\
<center id=entertostart style='color: silver; position: relative; top: "+(-30)+"px; opacity: 0;'>Press Enter to Start</center>\
</span>\
";
var instructionsHTML = "\
<span id=pregame style='position: absolute; left: "+0+"px; top: "+0+"px; padding: 25px;\
height: "+300+"px; width: "+500+"px; background: linear-gradient(to bottom right, #d9d9d9, #737373); border-radius: 5px; display: block; opacity: 0.85;'>\
<center><h1>LABYRINTH</h1></center>\
<p><strong>Instructions:</strong> You will be placed in a random location of a multi-level maze. Your objective is to reach the goal hidden in the maze (tap <strong>S</strong> a few times for a view of the goal on this title screen).</p>\
<p>Use the <strong>Up</strong>, <strong>Down</strong>, <strong>Left</strong>, and <strong>Right</strong> arrow keys to orient yourself, and use <strong>WASD</strong> to move around. Use <strong>Space</strong> to go up, and <strong>Shift</strong> to go down (try them out now). At any point in the game, press <strong>ESC</strong> to pause. Good luck!</p>\
<span style='position: relative; top: "+(0*300/2-0)+"px;'>\
<center style='position: relative; top: "+0+"px;'>Enter Difficulty (1-5)</center>\
<center><input id=lvlInpPre value='' style='position: relative; top: "+10+"px;'></input><center>\
<center id=entertostart style='position: relative; top: "+20+"px;'>Press Enter to Start</center>\
</span>\
</span>\
";
var pausedHTML = "\
<span id=pregame style='position: absolute; left: "+0+"px; top: "+0+"px; padding: 25px;\
height: "+300+"px; width: "+500+"px; background: linear-gradient(to bottom right, #d9d9d9, #737373); border-radius: 5px; display: block; opacity: 0.85;'>\
<center><h1>LABYRINTH</h1></center>\
<p><strong>Instructions:</strong> You will be placed in a random location of a multi-level maze. Your objective is to reach the goal hidden in the maze.</p>\
<p>Use the <strong>Up</strong>, <strong>Down</strong>, <strong>Left</strong>, and <strong>Right</strong> arrow keys to orient yourself, and use <strong>WASD</strong> to move around. Use <strong>Space</strong> to go up, and <strong>Shift</strong> to go down (try them out now). At any point in the game, press <strong>ESC</strong> to pause. Good luck!</p>\
<span style='position: relative; top: "+(0*300/2-0)+"px;'>\
<center style='position: relative; top: "+0+"px;'>Restart? Enter Difficulty (1-5)</center>\
<center><input id=lvlInpPre value='' style='position: relative; top: "+10+"px;'></input><center>\
<center id=entertostart style='position: relative; top: "+20+"px;'>Press Enter to Start, ESC to Resume, or Q to Quit</center>\
</span>\
</span>\
";
var startingHTML = "\
<span id=start style='position: absolute; top: "+80+"px; left: "+55+"px; display: none; opacity: 1.0'>\
<center><h1 style='color: silver; font-size: 70px;'>START!</h1></center>\
</span>\
";
var replayHTML = "\
<span id=endgame style='position: absolute; left: "+0+"px; top: "+0+"px; \
height: "+250+"px; width: "+400+"px; background: linear-gradient(to bottom right, #d9d9d9, #737373); border-radius: 5px; display: none; opacity: 0.85;'>\
<span style='position: relative; top: "+0+"px;'>\
<center style='position: relative; top: "+0+"px;'><h1 style='font-size: 40px;'>You won in <span id=finishtime></span>!</h1><p>Play again?</p></center>\
<center style='position: relative; top: "+0+"px;'>Enter Difficulty (1-5)</center>\
<center><input id=lvlInpEnd value='' style='position: relative; top: "+10+"px;'></input><center>\
<center id=etsReplay style='position: relative; top: "+20+"px;'><strong>Press Enter to Start</strong></center>\
</span>\
</span>\
";
var timedistHTML = "\
<span id=timedist style='position: absolute; top: "+80+"px; left: "+55+"px; display: none;'>\
<h1 style='color: silver; font-size: 30px;'>Time: <span id=time></span></h1>\
<h1 style='color: silver; font-size: 30px; position: relative; top: "+(-25)+"px;'>Distance: <span id=dist></span></h1>\
</span>\
";
function getChildNamed(parent, name) {
for (const child of parent.children) {
if (child.name == name) {
return child;
}
}
}
// pregame prompt. Shows once per page load. Has intro + instructions. Initializes as hidden
const pregamePromptHTML = () => {
let elem = document.createElement("SPAN");
let w = 500;
let h = 300;
let x = window.innerWidth / 2 - w / 2;
let y = window.innerHeight / 2 - h / 2;
let intro = "<span id=intro style='position: absolute; display: block;'></span>";
elem.innerHTML = intro;
document.body.appendChild(elem);
document.getElementById('intro').innerHTML = titleHTML;
}
// pregame prompt. Shows between games. Congratulates and prompts user to play again.
const endgamePromptHTML = () => {
let elem = document.createElement("SPAN");
let w = 500;
let h = 300;
let x = window.innerWidth / 2 - w / 2;
let y = window.innerHeight / 2 - h / 2;
elem.innerHTML = replayHTML;
document.body.appendChild(elem);
}
// shows "START!" once the round starts
const startHTML = () => {
let elem = document.createElement("SPAN");
elem.innerHTML = startingHTML;
document.body.appendChild(elem);
}
const timeAndDistHTML = () => {
let elem = document.createElement("SPAN");
elem.innerHTML = timedistHTML;
document.body.appendChild(elem);
}
function handleResizeHTML() {
let w = 500 + 50;
let h = 300 + 50;
let x = window.innerWidth / 2 - w / 2;
let y = window.innerHeight / 2 - h / 2;
let pre = document.getElementById('intro'); // used to be pregame
pre.style.left = x + 'px';
pre.style.top = y + 'px';
let str = document.getElementById('start');
str.style.left = window.innerWidth / 2 - 125 + 'px';
str.style.top = window.innerHeight / 2 - 95 + 'px';
w = 400;
h = 250;
x = window.innerWidth / 2 - w / 2;
y = window.innerHeight / 2 - h / 2;
let end = document.getElementById('endgame');
end.style.left = x + 'px';
end.style.top = y + 'px';
let td = document.getElementById('timedist');
td.style.left = (window.innerWidth - 220) + 'px';
td.style.top = '0px';
}
function showPregamePrompt() {
document.getElementById("intro").innerHTML = instructionsHTML;
//document.getElementById("lvlInpPre").focus();
document.getElementById("lvlInpPre").value = '';
}
function hidePregamePrompt() {
document.getElementById("intro").innerHTML = instructionsHTML; //document.getElementById("intro").innerHTML.replace(' or Q to Quit', '');
document.getElementById("intro").style.display = 'none';
}
function showPause() {
// document.getElementById("intro").innerHTML = document.getElementById("intro").innerHTML.replace(' (tap <strong>S</strong> a few times for a view of the goal on this title screen)', '');
// document.getElementById("intro").innerHTML = document.getElementById("intro").innerHTML.replace('Press Enter to Start', 'Press Enter to Start or Q to Quit');
document.getElementById("intro").innerHTML = pausedHTML;
document.getElementById("intro").style.display = 'block';
document.getElementById("lvlInpPre").focus();
document.getElementById("lvlInpPre").value = '';
}
function hidePause() {
document.getElementById("intro").innerHTML = instructionsHTML;//document.getElementById("intro").innerHTML.replace(' or Q to Quit', '');
document.getElementById("intro").style.display = 'none';
}
const showEndgamePrompt = () => {
document.getElementById("endgame").style.display = 'block';
document.getElementById("lvlInpEnd").focus();
document.getElementById("lvlInpEnd").value = '';
}
const hideEndgamePrompt = () => {
document.getElementById("endgame").style.display = 'none';
}
const showStart = () => {
document.getElementById("start").style.opacity = 1.0;
document.getElementById("start").style.display = 'block';
}
const hideStart = () => {
document.getElementById("start").style.display = 'none';
}
function showTimeAndDist() {
document.getElementById("timedist").style.display = 'block';
}
function hideTimeAndDist() {
document.getElementById("timedist").style.display = 'none';
}
function verifyInp(inp) {
console.log(parseInt(inp));
let num = parseInt(inp);
console.log(num);
console.log(Number.isInteger(num) && num >= 0 && num <= 5);
return Number.isInteger(num) && num >= 0 && num <= 5;
}
function toTitleScreen(scene, controls) {
scene.dimensions = 0;
hidePause();
hideEndgamePrompt();
resetScene(scene, 0, controls);
hideTimeAndDist();
document.getElementById("intro").style.display = 'block';
document.getElementById("intro").innerHTML = titleHTML;
renderedTitle = false;
}
// Set up camera
function setUpPlayer(controls) {
let scene = controls.scene;
let camera = controls.object;
let spotLight = controls.light;
let scale = scene.mazeScale;
let dimensions = scene.dimensions;
let x = Math.floor(Math.random() * dimensions) * scale - scale/2;
let y = Math.floor(Math.random() * dimensions) * scale;
let z = Math.floor(Math.random() * dimensions) * scale - scale/2;
camera.position.set(x, y, z);
let halfDist = (dimensions / 2) * scale - scale/2;
camera.lookAt(new Vector3(halfDist, y, halfDist));
// Set up controls
spotLight.position.set(x, y, z);
spotLight.target.position.set(halfDist, y, halfDist);
controls.mouseX = 0;
controls.mouseY = 0;
controls.object.lookAt(new Vector3(halfDist, y, halfDist));
}
function beginPlaying(scene, controls) {
let inp = document.getElementById("lvlInpPre").value;
if (!verifyInp(inp))
return 0;
let dimensions = parseInt(inp) + 1;
hidePregamePrompt();
resetScene(scene, dimensions, controls);
startTime = undefined;
return 1;
}
function playAgain(scene, controls) {
let inp = document.getElementById("lvlInpEnd").value;
if (!verifyInp(inp))
return 0;
let dimensions = parseInt(inp) + 1;
hideEndgamePrompt();
resetScene(scene, dimensions, controls);
startTime = undefined;
return 1;
}
function resetScene(scene, dimensions, controls) {
let scale = scene.mazeScale;
let maze = getChildNamed(scene, 'maze');
scene.dimensions = dimensions;
maze.children = [];
maze.maxDist = Math.sqrt(2*(dimensions*scale)*(dimensions*scale));
maze.buildRandomMaze(dimensions, scale);
let x = Math.floor(Math.random() * dimensions) * scale - scale/2;
let y = Math.floor(Math.random() * dimensions) * scale;
let z = Math.floor(Math.random() * dimensions) * scale - scale/2;
let endGoal = getChildNamed(scene, 'endgoal');
endGoal.position.set(x, y, z);
setUpPlayer(controls);
scene.destinationLoc.copy(endGoal.position);
showStart();
showTimeAndDist();
}
function fixToLen(num, l) {
let newNum = '' + num;
let len = newNum.length;
if (len < l) {
if (!newNum.includes('.')) {
newNum += '.';
len++;
}
for (let i = 0; i < l - len; i++) {
newNum += '0';
}
} else {
newNum = newNum.substring(0, l);
}
return newNum;
}
function frontPad(num, l) {
let newNum = '' + num;
let len = l - newNum.length;
if (len < l) {
for (let i = 0; i < len; i++) {
newNum = '0' + newNum;
}
}
return newNum;
}
function backPad(num, l) {
let newNum = '' + num;
let len = l - newNum.length;
if (len < l) {
for (let i = 0; i < len; i++) {
newNum = newNum + '0';
}
}
return newNum;
}
var startTime = undefined;
function timeToString(time) {
// let minutes = time.substring(0, time.indexOf(':'));
// let seconds = time.substring(time.indexOf(':') + 1, time.indexOf('.'));
// let milliseconds = time.substring(time.indexOf('.') + 1);
// let newTime = minutes * 60 + seconds + milliseconds / 1000;
//console.log(time);
let totTime = (time - startTime);
let seconds = Math.floor(totTime / 1000) % 60;
let minutes = (Math.floor(totTime / 1000) - seconds) / 60;
//console.log('millis:', totTime / 1000 - Math.floor(totTime / 1000));
let milliseconds = '' + Math.floor((totTime / 1000 - Math.floor(totTime / 1000)) * 1000);
return minutes + ':' + frontPad(seconds, 2) + '.' + backPad(milliseconds.substring(0, 4), 3);
}
var renderedTitle = false;
function animateHTML(timeStamp, gameState, dist) {
// sumn
if (gameState == 'intro' || gameState == 'paused') {
let opac = 0.4 * Math.sin(timeStamp / 500) + 0.6;
document.getElementById('entertostart').style.opacity = opac;
}
if (gameState == 'title') {
let titleOpac = parseFloat(document.getElementById('title').style.opacity);
if (titleOpac < 1) {
titleOpac += 0.002;
document.getElementById('title').style.opacity = titleOpac;
}
if (titleOpac > 0.55) {
let opac = 0.45 * Math.sin(timeStamp / 500) + 0.55;
if (opac < 0.11 || renderedTitle) {
document.getElementById('entertostart').style.opacity = opac;
renderedTitle = true;
}
}
}
if (gameState == 'playing') {
let opac = parseFloat(document.getElementById('start').style.opacity);
if (opac > 0.0) {
document.getElementById('start').style.opacity = opac - 0.01;
} else {
document.getElementById('start').style.display = 'none';
}
// update time & dist
//let time = timeToSeconds(document.getElementById('time').innerHTML);
if (startTime == undefined)
startTime = timeStamp;
document.getElementById('time').innerHTML = timeToString(timeStamp);
document.getElementById('dist').innerHTML = fixToLen(dist, 5);
} else {
document.getElementById('start').style.display = 'none';
}
if (gameState == 'outro') {
let opac = 0.4 * Math.sin(timeStamp / 500) + 0.6;
document.getElementById('etsReplay').style.opacity = opac;
document.getElementById('finishtime').innerHTML = document.getElementById('time').innerHTML;
document.getElementById('dist').innerHTML = '0.000';
}
}
export { getChildNamed, pregamePromptHTML, endgamePromptHTML, startHTML, timeAndDistHTML, handleResizeHTML, showPregamePrompt, hidePregamePrompt, toTitleScreen, showPause, hidePause, showEndgamePrompt, hideEndgamePrompt, setUpPlayer, beginPlaying, playAgain, resetScene, animateHTML };
|
function formatDate(date, fmt) {
if (typeof date == 'string') {
return date;
}
if (!fmt) fmt = "yyyy-MM-dd hh:mm:ss";
if (!date || date == null) return null;
var o = {
'M+': date.getMonth() + 1, // 月份
'd+': date.getDate(), // 日
'h+': date.getHours(), // 小时
'm+': date.getMinutes(), // 分
's+': date.getSeconds(), // 秒
'q+': Math.floor((date.getMonth() + 3) / 3), // 季度
'S': date.getMilliseconds() // 毫秒
}
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
for (var k in o) {
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[
k]).substr(('' + o[k]).length)))
}
return fmt
}
module.exports = {
book: {
assets: './assets',
css: [
'footer.css'
],
},
hooks: {
'page:before': function(page) {
var _label = '文件修订时间:',
_format = 'YYYY-MM-DD HH:mm:ss',
_copy = 'Copyright © 54dxs.cn 2020 all right reserved,powered by 深情小建'
if (this.options.pluginsConfig['pagefooter']) {
_label = this.options.pluginsConfig['pagefooter']['modify_label'] || _label;
_format = this.options.pluginsConfig['pagefooter']['modify_format'] || _format;
_copy = this.options.pluginsConfig['pagefooter']['copyright'] || _copy;
}
var _copy = '<span class="copyright">' + _copy + '</span>';
var str = ' \n\n<footer class="page-footer">' + _copy +
'<span class="footer-modification">' +
_label +
'\n{{file.mtime | date("' + _format +
'")}}\n</span></footer>'
page.content = page.content + str;
return page;
}
},
filters: {
date: function(d, format) {
return formatDate(d, format);
}
}
};
|
'use strict';
var _regeneratorRuntime = require('babel-runtime/regenerator')['default'];
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];
var _this2 = this;
var _chai = require('chai');
var _chai2 = _interopRequireDefault(_chai);
var _chaiAsPromised = require('chai-as-promised');
var _chaiAsPromised2 = _interopRequireDefault(_chaiAsPromised);
var _teen_process = require('teen_process');
var teen_process = _interopRequireWildcard(_teen_process);
var _events = require('events');
var _events2 = _interopRequireDefault(_events);
var _libLogcat = require('../../lib/logcat');
var _libLogcat2 = _interopRequireDefault(_libLogcat);
var _appiumTestSupport = require('appium-test-support');
_chai2['default'].use(_chaiAsPromised2['default']);
describe('logcat', function callee$0$0() {
var adb, logcat;
return _regeneratorRuntime.async(function callee$0$0$(context$1$0) {
var _this = this;
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
adb = { path: 'dummyPath', defaultArgs: [] };
logcat = new _libLogcat2['default']({ adb: adb, debug: false, debugTrace: false });
describe('startCapture', (0, _appiumTestSupport.withMocks)({ teen_process: teen_process }, function (mocks) {
it('should correctly call subprocess and should resolve promise', function callee$2$0() {
var conn, logs;
return _regeneratorRuntime.async(function callee$2$0$(context$3$0) {
while (1) switch (context$3$0.prev = context$3$0.next) {
case 0:
conn = new _events2['default'].EventEmitter();
conn.start = function () {};
mocks.teen_process.expects("SubProcess").once().withExactArgs('dummyPath', ['logcat', '-v', 'threadtime']).returns(conn);
setTimeout(function () {
conn.emit('lines-stdout', ['- beginning of system\r']);
}, 0);
context$3$0.next = 6;
return _regeneratorRuntime.awrap(logcat.startCapture());
case 6:
logs = logcat.getLogs();
logs.should.have.length.above(0);
mocks.teen_process.verify();
case 9:
case 'end':
return context$3$0.stop();
}
}, null, _this);
});
it('should correctly call subprocess and should reject promise', function callee$2$0() {
var conn;
return _regeneratorRuntime.async(function callee$2$0$(context$3$0) {
while (1) switch (context$3$0.prev = context$3$0.next) {
case 0:
conn = new _events2['default'].EventEmitter();
conn.start = function () {};
mocks.teen_process.expects("SubProcess").once().withExactArgs('dummyPath', ['logcat', '-v', 'threadtime']).returns(conn);
setTimeout(function () {
conn.emit('lines-stderr', ['execvp()']);
}, 0);
context$3$0.next = 6;
return _regeneratorRuntime.awrap(logcat.startCapture().should.eventually.be.rejectedWith('Logcat'));
case 6:
mocks.teen_process.verify();
case 7:
case 'end':
return context$3$0.stop();
}
}, null, _this);
});
}));
case 3:
case 'end':
return context$1$0.stop();
}
}, null, _this2);
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3QvdW5pdC9sb2djYXQtc3BlY3MuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztvQkFBaUIsTUFBTTs7Ozs4QkFDSSxrQkFBa0I7Ozs7NEJBQ2YsY0FBYzs7SUFBaEMsWUFBWTs7c0JBQ0wsUUFBUTs7Ozt5QkFDUixrQkFBa0I7Ozs7aUNBQ1gscUJBQXFCOztBQUcvQyxrQkFBSyxHQUFHLDZCQUFnQixDQUFDOztBQUV6QixRQUFRLENBQUMsUUFBUSxFQUFFO01BQ2IsR0FBRyxFQUNILE1BQU07Ozs7OztBQUROLFdBQUcsR0FBRyxFQUFDLElBQUksRUFBRSxXQUFXLEVBQUUsV0FBVyxFQUFFLEVBQUUsRUFBQztBQUMxQyxjQUFNLEdBQUcsMkJBQVcsRUFBQyxHQUFHLEVBQUUsR0FBRyxFQUFFLEtBQUssRUFBRSxLQUFLLEVBQUUsVUFBVSxFQUFFLEtBQUssRUFBQyxDQUFDOztBQUNwRSxnQkFBUSxDQUFDLGNBQWMsRUFBRSxrQ0FBVSxFQUFDLFlBQVksRUFBWixZQUFZLEVBQUMsRUFBRSxVQUFDLEtBQUssRUFBSztBQUM1RCxZQUFFLENBQUMsNkRBQTZELEVBQUU7Z0JBQzVELElBQUksRUFTSixJQUFJOzs7O0FBVEosc0JBQUksR0FBRyxJQUFJLG9CQUFPLFlBQVksRUFBRTs7QUFDcEMsc0JBQUksQ0FBQyxLQUFLLEdBQUcsWUFBTSxFQUFHLENBQUM7QUFDdkIsdUJBQUssQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDLFlBQVksQ0FBQyxDQUNyQyxJQUFJLEVBQUUsQ0FBQyxhQUFhLENBQUMsV0FBVyxFQUFFLENBQUMsUUFBUSxFQUFFLElBQUksRUFBRSxZQUFZLENBQUMsQ0FBQyxDQUNqRSxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7QUFDakIsNEJBQVUsQ0FBQyxZQUFZO0FBQ3JCLHdCQUFJLENBQUMsSUFBSSxDQUFDLGNBQWMsRUFBQyxDQUFDLHlCQUF5QixDQUFDLENBQUMsQ0FBQzttQkFDdkQsRUFBRSxDQUFDLENBQUMsQ0FBQzs7bURBQ0EsTUFBTSxDQUFDLFlBQVksRUFBRTs7O0FBQ3ZCLHNCQUFJLEdBQUcsTUFBTSxDQUFDLE9BQU8sRUFBRTs7QUFDM0Isc0JBQUksQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7QUFDakMsdUJBQUssQ0FBQyxZQUFZLENBQUMsTUFBTSxFQUFFLENBQUM7Ozs7Ozs7V0FDN0IsQ0FBQyxDQUFDO0FBQ0gsWUFBRSxDQUFDLDREQUE0RCxFQUFFO2dCQUMzRCxJQUFJOzs7O0FBQUosc0JBQUksR0FBRyxJQUFJLG9CQUFPLFlBQVksRUFBRTs7QUFDcEMsc0JBQUksQ0FBQyxLQUFLLEdBQUcsWUFBTSxFQUFHLENBQUM7QUFDdkIsdUJBQUssQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDLFlBQVksQ0FBQyxDQUNyQyxJQUFJLEVBQUUsQ0FBQyxhQUFhLENBQUMsV0FBVyxFQUFFLENBQUMsUUFBUSxFQUFFLElBQUksRUFBRSxZQUFZLENBQUMsQ0FBQyxDQUNqRSxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7QUFDakIsNEJBQVUsQ0FBQyxZQUFZO0FBQ3JCLHdCQUFJLENBQUMsSUFBSSxDQUFDLGNBQWMsRUFBQyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUM7bUJBQ3hDLEVBQUUsQ0FBQyxDQUFDLENBQUM7O21EQUNBLE1BQU0sQ0FBQyxZQUFZLEVBQUUsQ0FBQyxNQUFNLENBQUMsVUFBVSxDQUFDLEVBQUUsQ0FBQyxZQUFZLENBQUMsUUFBUSxDQUFDOzs7QUFDdkUsdUJBQUssQ0FBQyxZQUFZLENBQUMsTUFBTSxFQUFFLENBQUM7Ozs7Ozs7V0FDN0IsQ0FBQyxDQUFDO1NBQ0osQ0FBQyxDQUFDLENBQUM7Ozs7Ozs7Q0FDTCxDQUFDLENBQUMiLCJmaWxlIjoidGVzdC91bml0L2xvZ2NhdC1zcGVjcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBjaGFpIGZyb20gJ2NoYWknO1xuaW1wb3J0IGNoYWlBc1Byb21pc2VkIGZyb20gJ2NoYWktYXMtcHJvbWlzZWQnO1xuaW1wb3J0ICogYXMgdGVlbl9wcm9jZXNzIGZyb20gJ3RlZW5fcHJvY2Vzcyc7XG5pbXBvcnQgZXZlbnRzIGZyb20gJ2V2ZW50cyc7XG5pbXBvcnQgTG9nY2F0IGZyb20gJy4uLy4uL2xpYi9sb2djYXQnO1xuaW1wb3J0IHsgd2l0aE1vY2tzIH0gZnJvbSAnYXBwaXVtLXRlc3Qtc3VwcG9ydCc7XG5cblxuY2hhaS51c2UoY2hhaUFzUHJvbWlzZWQpO1xuXG5kZXNjcmliZSgnbG9nY2F0JywgYXN5bmMgKCkgPT4ge1xuICBsZXQgYWRiID0ge3BhdGg6ICdkdW1teVBhdGgnLCBkZWZhdWx0QXJnczogW119O1xuICBsZXQgbG9nY2F0ID0gbmV3IExvZ2NhdCh7YWRiOiBhZGIsIGRlYnVnOiBmYWxzZSwgZGVidWdUcmFjZTogZmFsc2V9KTtcbiAgZGVzY3JpYmUoJ3N0YXJ0Q2FwdHVyZScsIHdpdGhNb2Nrcyh7dGVlbl9wcm9jZXNzfSwgKG1vY2tzKSA9PiB7XG4gICAgaXQoJ3Nob3VsZCBjb3JyZWN0bHkgY2FsbCBzdWJwcm9jZXNzIGFuZCBzaG91bGQgcmVzb2x2ZSBwcm9taXNlJywgYXN5bmMgKCkgPT4ge1xuICAgICAgbGV0IGNvbm4gPSBuZXcgZXZlbnRzLkV2ZW50RW1pdHRlcigpO1xuICAgICAgY29ubi5zdGFydCA9ICgpID0+IHsgfTtcbiAgICAgIG1vY2tzLnRlZW5fcHJvY2Vzcy5leHBlY3RzKFwiU3ViUHJvY2Vzc1wiKVxuICAgICAgICAub25jZSgpLndpdGhFeGFjdEFyZ3MoJ2R1bW15UGF0aCcsIFsnbG9nY2F0JywgJy12JywgJ3RocmVhZHRpbWUnXSlcbiAgICAgICAgLnJldHVybnMoY29ubik7XG4gICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uICgpIHtcbiAgICAgICAgY29ubi5lbWl0KCdsaW5lcy1zdGRvdXQnLFsnLSBiZWdpbm5pbmcgb2Ygc3lzdGVtXFxyJ10pO1xuICAgICAgfSwgMCk7XG4gICAgICBhd2FpdCBsb2djYXQuc3RhcnRDYXB0dXJlKCk7XG4gICAgICBsZXQgbG9ncyA9IGxvZ2NhdC5nZXRMb2dzKCk7XG4gICAgICBsb2dzLnNob3VsZC5oYXZlLmxlbmd0aC5hYm92ZSgwKTtcbiAgICAgIG1vY2tzLnRlZW5fcHJvY2Vzcy52ZXJpZnkoKTtcbiAgICB9KTtcbiAgICBpdCgnc2hvdWxkIGNvcnJlY3RseSBjYWxsIHN1YnByb2Nlc3MgYW5kIHNob3VsZCByZWplY3QgcHJvbWlzZScsIGFzeW5jICgpID0+IHtcbiAgICAgIGxldCBjb25uID0gbmV3IGV2ZW50cy5FdmVudEVtaXR0ZXIoKTtcbiAgICAgIGNvbm4uc3RhcnQgPSAoKSA9PiB7IH07XG4gICAgICBtb2Nrcy50ZWVuX3Byb2Nlc3MuZXhwZWN0cyhcIlN1YlByb2Nlc3NcIilcbiAgICAgICAgLm9uY2UoKS53aXRoRXhhY3RBcmdzKCdkdW1teVBhdGgnLCBbJ2xvZ2NhdCcsICctdicsICd0aHJlYWR0aW1lJ10pXG4gICAgICAgIC5yZXR1cm5zKGNvbm4pO1xuICAgICAgc2V0VGltZW91dChmdW5jdGlvbiAoKSB7XG4gICAgICAgIGNvbm4uZW1pdCgnbGluZXMtc3RkZXJyJyxbJ2V4ZWN2cCgpJ10pO1xuICAgICAgfSwgMCk7XG4gICAgICBhd2FpdCBsb2djYXQuc3RhcnRDYXB0dXJlKCkuc2hvdWxkLmV2ZW50dWFsbHkuYmUucmVqZWN0ZWRXaXRoKCdMb2djYXQnKTtcbiAgICAgIG1vY2tzLnRlZW5fcHJvY2Vzcy52ZXJpZnkoKTtcbiAgICB9KTtcbiAgfSkpO1xufSk7XG4iXX0=
|
// These are the different permutations of ARIA attributes to try.
var attrs = [
'aria-live="polite" aria-relevant="text additions" (default)'];
build();
var live_region_counter = 0;
addTests(
'additions',
'append img with alt text',
'<div ARIA-ATTRS></div>',
function(region) {
var img = document.createElement('img');
img.src = 'http://google.com/favicon.ico';
img.setAttribute('alt', 'Live region succeeded ' + (++live_region_counter));
region.appendChild(img);
});
addTests(
'text',
'change img alt text where img is contained within live region',
'<div ARIA-ATTRS>' +
'<img src="http://google.com/favicon.ico" alt="Live region failed.">' +
'</div>',
function(region) {
region.firstChild.setAttribute('alt', 'Live region succeeded ' + (++live_region_counter));
});
addTests(
'text',
'change img alt text where aria-live is on img itself',
'<div>' +
'<img ARIA-ATTRS src="http://google.com/favicon.ico" alt="Live region failed.">' +
'</div>',
function(region) {
region.firstChild.setAttribute('alt', 'Live region succeeded ' + (++live_region_counter));
});
addTests(
'additions',
'append button with inner text',
'<div ARIA-ATTRS></div>',
function(region) {
var b = document.createElement('button');
b.tabIndex = -1;
b.textContent = 'Live region succeeded ' + (++live_region_counter);
region.appendChild(b);
});
addTests(
'additions',
'append button with aria-label',
'<div ARIA-ATTRS></div>',
function(region) {
var b = document.createElement('button');
b.tabIndex = -1;
b.textContent = 'Live region failed.';
b.setAttribute('aria-label', 'Live region succeeded ' + (++live_region_counter));
region.appendChild(b);
});
addTests(
'text',
'change button\'s aria-label',
'<div ARIA-ATTRS>' +
'<button tabindex="-1" aria-label="Fail 2.">Fail 1.</button>' +
'</div>',
function(region) {
region.firstChild.setAttribute('aria-label', 'Live region succeeded ' + (++live_region_counter));
});
addTests(
'text',
'button which is itself a life region (as opposed to being inside of one)',
'<div><input type="button" value="Live region failed" tabindex="-1" ARIA-ATTRS>' +
'</div>',
function(region) {
region.firstChild.setAttribute('value', 'Live region succeeded ' + (++live_region_counter));
});
|
"use strict";
/**
* @ngdoc function
* @name digitalWorkplaceApp.component:checkboxFormElement
* @description
* # checkboxFormElement
* Component of the digitalWorkplaceApp
*
* This component creates a checkbox form element.
*
* Example usage:
*
* <checkbox-form-element
* ng-model
* id="lead.hasGas" <!-- The id for the form element, used for e2e testing -->
* key="lead.hasGas" <!-- The key to bind to in the model -->
* label="Gas" <!-- The label to display next to the checkbox -->
* is-readonly="false" <!-- Expression that makes the field readonly when it evaluates to true -->
* no-backend-interaction="false" <!-- Indicates whether or not to make a call to backend when the field is changed -->
* is-disabled="false"> <!-- Expression that disables this field when it evaluates to true -->
* </checkbox-form-element>
*
* The reason the 'checkboxFormElement' is necessary, and why the
* 'checkbox' formly types uses this Component, is because we need to
* require the 'guidanceObserversAccessor' in order to obtain the
* validationObserver.
*
*/
angular.module('digitalWorkplaceApp')
.component('checkboxFormElement', {
templateUrl: 'es6/guidance-mode/form-elements/checkbox/checkbox-form-element.component.html',
require: {
ngModel: 'ngModel',
guidanceObserversAccessor: '^guidanceObserversAccessor'
},
bindings: {
id: "@",
key: "@",
label: "@",
isDisabled: "<",
isReadonly: "<",
noBackendInteraction: "<"
},
controllerAs: 'checkboxFormElementController',
controller: function ($scope, validationMixin, modelChangedMixin, isDisabledMixin, elementIdGenerator) {
const checkboxFormElementController = this;
checkboxFormElementController.$onInit = function () {
const validationObserver = checkboxFormElementController.guidanceObserversAccessor.getValidationObserver();
validationMixin.apply(checkboxFormElementController, validationObserver);
modelChangedMixin.apply(checkboxFormElementController, 'checkboxFormElementController', $scope);
isDisabledMixin.apply(checkboxFormElementController);
const guidanceFormObserver = checkboxFormElementController.guidanceObserversAccessor.getGuidanceFormObserver();
checkboxFormElementController.elementId = elementIdGenerator.generateId(checkboxFormElementController.id, guidanceFormObserver);
};
}
});
|
// Tutorial handling
function sugarizerTour(currentView, role) {
var tutorial = {};
var tour;
var launched = false;
// Init tutorial
tutorial.init = function() {
var prevString = document.webL10n.get("TutoPrev");
var nextString = document.webL10n.get("TutoNext");
var endString = document.webL10n.get("TutoEnd");
tour = new window.Tour({
name: currentView,
template: "\
<div class='popover tour popover-tour'>\
<div class='arrow'></div>\
<h3 class='popover-title tutorial-title'></h3>\
<table><tr><td style='vertical-align:top;'><div id='icon-tutorial' style='visibility:hidden;display:inline-block;'></div>\
</td><td><div class='popover-content'></div></td></tr></table>\
<div class='popover-navigation' style='display: flex; flex-wrap:wrap; justify-content: center; align-items: center'>\
<div class='tutorial-prev-icon icon-button' data-role='prev'>\
<div class='tutorial-prev-icon1 web-activity'>\
<div class='tutorial-prev-icon2 web-activity-icon'></div>\
<div class='tutorial-prev-icon3 web-activity-disable'></div>\
</div>\
<div class='icon-tutorial-text'>"+prevString+"</div>\
</div>\
<span data-role='separator' style='margin: 4px'>|</span>\
<div class='tutorial-next-icon icon-button' data-role='next'>\
<div class='tutorial-next-icon1 web-activity'>\
<div class='tutorial-next-icon2 web-activity-icon'></div>\
<div class='tutorial-next-icon3 web-activity-disable'></div>\
</div>\
<div class='icon-tutorial-text'>"+nextString+"</div>\
</div>\
<div class='tutorial-end-icon icon-button' data-role='end'>\
<div class='tutorial-end-icon1 web-activity'>\
<div class='tutorial-end-icon2 web-activity-icon'></div>\
<div class='tutorial-end-icon3 web-activity-disable'></div>\
</div>\
<div class='icon-tutorial-text'>"+endString+"</div>\
</div>\
</div>\
</div>",
storage: window.localStorage,
backdrop: true,
autoscroll: true,
steps: [],
keyboard: true,
onNext: function(tour) {
if (currentView == "home") {
if (tour._current == "3" || tour._current == "4") {
$('.main-panel').animate({
scrollTop: (document.getElementsByClassName('main-panel')[0].scrollHeight)
}, 500);
}
if (tour._current == "5") {
$('.main-panel').animate({
scrollTop: 0
}, 500);
}
}
},
onPrev: function(tour) {
if (currentView == "home") {
if (tour._current == "4") {
$('.main-panel').animate({
scrollTop: 0
}, 500);
}
if (tour._current == "5" || tour._current == "6") {
$('.main-panel').animate({
scrollTop: (document.getElementsByClassName('main-panel')[0].scrollHeight)
}, 500);
}
}
},
onEnd: function() {
if (currentView == "home") {
unlockScroll();
}
}
});
if (currentView == "home") {
lockScroll();
tour.addStep(getStep("home", "", "bottom", 1, true));
tour.addStep(getStep("home", "#dashboard-home-cards", "bottom", 2));
tour.addStep(getStep("home", "#top-contributor-chart-parent", "right", 3));
tour.addStep(getStep("home", "#top-activities-chart-parent", "left", 4));
tour.addStep(getStep("home", "#recent-users-table-parent", "top", 5));
tour.addStep(getStep("home", "#recent-activities-table-parent", "top", 6));
tour.addStep(getStep("home", "#sugarizer-sidebar", "right", 7));
tour.addStep(getStep("home", "#languageSelection", "bottom", 8));
tour.addStep(getStep("home", "#navbar-xo-icon", "left", 9));
} else if (currentView == "users") {
tour.addStep(getStep("users", "", "bottom", 1, true));
tour.addStep(getStep("users", "#user-serach-row", "bottom", 2));
tour.addStep(getStep("users", "#username", "bottom", 3));
tour.addStep(getStep("users", "#select2-user-type-select2-container", "bottom", 4));
tour.addStep(getStep("users", "#select2-classroom_select-container", "bottom", 5));
tour.addStep(getStep("users", "#show-result", "bottom", 6));
tour.addStep(getStep("users", "#users-adduser", "left", 7));
tour.addStep(getStep("users", "#users-addfromcsv", "bottom", 8));
tour.addStep(getStep("users", "#users-exportusers", "bottom", 9));
tour.addStep(getStep("users", "#seeJournalEntries", "left", 10));
tour.addStep(getStep("users", "#editUser", "left", 11));
tour.addStep(getStep("users", "#deleteUser", "left", 12));
} else if (currentView == "activities") {
tour.addStep(getStep("activities", "", "bottom", 1, true));
tour.addStep(getStep("activities", "#activities-list-parent", "left", 2));
tour.addStep(getStep("activities", "#activities-searchbox", "left", 3));
tour.addStep(getStep("activities", "#activities-card", "bottom", 4));
tour.addStep(getStep("activities", "#activities-draggable", "right", 5));
tour.addStep(getStep("activities", "#activities-favoriteBox", "left", 6));
tour.addStep(getStep("activities", "#activity-launch", "left", 7));
} else if (currentView == "journal1") {
tour.addStep(getStep("journal", "", "bottom", 1, true));
tour.addStep(getStep("journal", "#journal-search-card", "bottom", 2));
} else if (currentView == "journal2") {
if (!(window.localStorage.journal1_end == "yes" || window.localStorage.journal1_current_step == "1")) {
localStorage.setItem('journal1_end', 'yes');
localStorage.setItem('journal1_current_step', 1);
tour.addStep(getStep("journal", "", "bottom", 1, true));
tour.addStep(getStep("journal", "#journal-search-card", "bottom", 2));
}
tour.addStep(getStep("journal", "#journal-cards-parent", "top", 3));
tour.addStep(getStep("journal", "#journal-entry-card", "bottom", 4));
tour.addStep(getStep("journal", "#journal-activity-launch", "left", 5));
tour.addStep(getStep("journal", "#journal-activity-delete", "left", 6));
} else if (currentView == "classroom") {
tour.addStep(getStep("classroom", "", "bottom", 1, true));
tour.addStep(getStep("classroom", "#classroom-serach-row", "bottom", 2));
tour.addStep(getStep("classroom", "#classroom-addclassroom", "left", 3));
tour.addStep(getStep("classroom", "#classroom-cards-parent", "top", 4));
tour.addStep(getStep("classroom", "#classroom-card", "bottom", 5));
tour.addStep(getStep("classroom", "#classroom-view-students", "left", 6));
tour.addStep(getStep("classroom", "#classroom-edit-class", "left", 7));
tour.addStep(getStep("classroom", "#classroom-delete-class", "left", 8));
} else if (currentView == "stats") {
tour.addStep(getStep("stats", "", "bottom", 1, true));
tour.addStep(getStep("stats", "#stats-addChart", "left", 2));
tour.addStep(getStep("stats", "#stats-listCharts", "left", 3));
} else if (currentView == "listCharts") {
tour.addStep(getStep("listCharts", "", "bottom", 1, true));
tour.addStep(getStep("listCharts", "#listCharts-chartList", "left", 2));
tour.addStep(getStep("listCharts", "#listCharts-viewCharts", "left", 3));
tour.addStep(getStep("listCharts", "#listCharts-addChart", "left", 4));
tour.addStep(getStep("listCharts", "#listCharts-searchbox", "bottom", 5));
tour.addStep(getStep("listCharts", "#listCharts-card", "bottom", 6));
tour.addStep(getStep("listCharts", "#listCharts-draggable", "right", 7));
tour.addStep(getStep("listCharts", "#listCharts-toggleBox", "left", 8));
tour.addStep(getStep("listCharts", "#listCharts-editChart", "left", 9));
tour.addStep(getStep("listCharts", "#listCharts-deleteChart", "left", 10));
}
tour.init();
};
// Start tutorial
tutorial.start = function() {
if ($(window).width() > 992) {
document.webL10n.ready(function() {
var refreshIntervalId = setInterval(function() {
if (document.webL10n.getReadyState() == "complete") {
clearInterval(refreshIntervalId);
tutorial.init();
tour.start(true);
launched = true;
}
}, 100);
});
}
};
// Check if already finished
tutorial.isFinished = function() {
if (window.localStorage[currentView + "_end"] == "yes") return true;
return false;
};
tutorial.restart = function() {
localStorage.setItem(currentView + "_current_step", 0);
tutorial.start();
};
// Test if launched
tutorial.isLaunched = function() {
return launched;
};
function getStep(view, element, placement, step, orphan){
var step = {
title: document.webL10n.get(view + "Title" + step),
content: document.webL10n.get(view + "Content" + step),
element: element,
placement: placement
};
if (orphan == true) {
step['orphan'] = true;
}
return step;
}
function lockScroll() {
var scrollPosition = [
self.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft,
self.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
];
var html = jQuery('html'); // it would make more sense to apply this to body, but IE7 won't have that
html.data('scroll-position', scrollPosition);
html.data('previous-overflow', html.css('overflow'));
html.css('overflow', 'hidden');
window.scrollTo(scrollPosition[0], scrollPosition[1]);
}
function unlockScroll() {
var html = jQuery('html');
var scrollPosition = html.data('scroll-position');
html.css('overflow', html.data('previous-overflow'));
window.scrollTo(scrollPosition[0], scrollPosition[1]);
}
return tutorial;
}
|
'use strict';
/**
* @ngdoc service
* @name $log
* @requires $window
*
* @description
* Simple service for logging. Default implementation safely writes the message
* into the browser's console (if present).
*
* The main purpose of this service is to simplify debugging and troubleshooting.
*
* The default is to log `debug` messages. You can use
* {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this.
*
* @example
<example>
<file name="script.js">
function LogCtrl($scope, $log) {
$scope.$log = $log;
$scope.message = 'Hello World!';
}
</file>
<file name="index.html">
<div ng-controller="LogCtrl">
<p>Reload this page with open console, enter text and hit the log button...</p>
Message:
<input type="text" ng-model="message"/>
<button ng-click="$log.log(message)">log</button>
<button ng-click="$log.warn(message)">warn</button>
<button ng-click="$log.info(message)">info</button>
<button ng-click="$log.error(message)">error</button>
</div>
</file>
</example>
*/
/**
* @ngdoc provider
* @name $logProvider
* @description
* Use the `$logProvider` to configure how the application logs messages
*/
function $LogProvider(){
var debug = true,
self = this;
/**
* @ngdoc property
* @name $logProvider#debugEnabled
* @description
* @param {boolean=} flag enable or disable debug level messages
* @returns {*} current value if used as getter or itself (chaining) if used as setter
*/
this.debugEnabled = function(flag) {
if (isDefined(flag)) {
debug = flag;
return this;
} else {
return debug;
}
};
this.$get = ['$window', function($window){
return {
/**
* @ngdoc method
* @name $log#log
*
* @description
* Write a log message
*/
log: consoleLog('log'),
/**
* @ngdoc method
* @name $log#info
*
* @description
* Write an information message
*/
info: consoleLog('info'),
/**
* @ngdoc method
* @name $log#warn
*
* @description
* Write a warning message
*/
warn: consoleLog('warn'),
/**
* @ngdoc method
* @name $log#error
*
* @description
* Write an error message
*/
error: consoleLog('error'),
/**
* @ngdoc method
* @name $log#debug
*
* @description
* Write a debug message
*/
debug: (function () {
var fn = consoleLog('debug');
return function() {
if (debug) {
fn.apply(self, arguments);
}
};
}())
};
function formatError(arg) {
if (arg instanceof Error) {
if (arg.stack) {
arg = (arg.message && arg.stack.indexOf(arg.message) === -1)
? 'Error: ' + arg.message + '\n' + arg.stack
: arg.stack;
} else if (arg.sourceURL) {
arg = arg.message + '\n' + arg.sourceURL + ':' + arg.line;
}
}
return arg;
}
function consoleLog(type) {
var console = $window.console || {},
logFn = console[type] || console.log || noop,
hasApply = false;
// Note: reading logFn.apply throws an error in IE11 in IE8 document mode.
// The reason behind this is that console.log has type "object" in IE8...
try {
hasApply = !! logFn.apply;
} catch (e) {}
if (hasApply) {
return function() {
var args = [];
forEach(arguments, function(arg) {
args.push(formatError(arg));
});
return logFn.apply(console, args);
};
}
// we are IE which either doesn't have window.console => this is noop and we do nothing,
// or we are IE where console.log doesn't have apply so we log at least first 2 args
return function(arg1, arg2) {
logFn(arg1, arg2 == null ? '' : arg2);
};
}
}];
}
|
import React, { useContext, useEffect, useState } from 'react'
import { useHistory } from 'react-router'
import { motion, AnimatePresence } from 'framer-motion'
import { HicetnuncContext } from '../../context/HicetnuncContext'
import { Container, Padding } from '../layout'
import { Button, Primary, Secondary } from '../button'
import { fadeIn } from '../../utils/motion'
import { Menu } from '../icons'
import styles from './style.module.scss'
import { walletPreview } from '../../utils/string'
const ls = require('local-storage')
/* import { BeaconWallet } from '@taquito/beacon-wallet'
const wallet = new BeaconWallet({
name: 'hicetnunc.xyz',
preferredNetwork: 'mainnet',
}) */
export const Header = () => {
const history = useHistory()
const context = useContext(HicetnuncContext)
useEffect(() => context.setAccount(), [])
try {
context.message = context.acc.address
} catch (e) {
context.message = 'sync'
}
//const activeAccount = await wallet.client.getActiveAccount()
//console.log(activeAccount)
const handleRoute = (path) => {
context.setMenu(true)
history.push(path)
}
return (
<>
<div className={styles.container}>
<div className={styles.content}>
<Button onClick={() => handleRoute('/')}>
<Secondary>
<div className={styles.logo}>〇 hic et nunc</div>
</Secondary>
</Button>
<div className={styles.right}>
<Button onClick={context.syncTaquito} secondary>
<Secondary>
{context.message !== 'sync'
? walletPreview(context.message)
: context.message}
</Secondary>
</Button>
<Button onClick={context.toogleNavbar} secondary>
<Menu isOpen={!context.collapsed} />
</Button>
</div>
</div>
</div>
<AnimatePresence>
{!context.collapsed && (
<motion.div className={styles.menu} {...fadeIn()}>
<Container>
<Padding>
<div className={styles.content}>
<ul>
<li>
<Button onClick={() => handleRoute('/hdao')}>
<Primary>○</Primary>
</Button>
</li>
<li>
<Button onClick={() => handleRoute('/random')}>
<Primary>random</Primary>
</Button>
</li>
<li>
<Button onClick={() => handleRoute('/mint')}>
<Primary>
OBJKTs<i style={{ fontSize: '15px' }}>(mint NFTs)</i>
</Primary>
</Button>
</li>
<li>
<Button onClick={() => handleRoute('/sync')}>
<Primary>manage assets</Primary>
</Button>
</li>
<li>
<Button onClick={() => handleRoute('/about')}>
<Primary>about</Primary>
</Button>
</li>
</ul>
</div>
</Padding>
</Container>
</motion.div>
)}
</AnimatePresence>
</>
)
}
|
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import glamorous from "glamorous";
import {
DetailsTableRow,
DetailsTableCell,
DetailsTableTitle
} from "components/EntityList/style";
@observer
class AmqpItem extends Component {
constructor(props) {
super(props);
}
render() {
let { system } = this.props;
return (
<div>
<DetailsTableRow>
<DetailsTableTitle>URL:</DetailsTableTitle>
<DetailsTableCell>{system.url} </DetailsTableCell>
</DetailsTableRow>
<DetailsTableRow>
<DetailsTableTitle>Queue:</DetailsTableTitle>
<DetailsTableCell>{system.queue} </DetailsTableCell>
</DetailsTableRow>
</div>
);
}
}
export default AmqpItem;
|
#!/usr/bin/env npx jbash
set("-x");
set("-e");
const rootFolder = require("path").join(__dirname, "../");
const specFilename = `spec-v1-swagger.json`;
const swaggerConfigFilename = `config.json`;
cd(rootFolder);
exec(
`wget http://127.0.0.1:8000/swagger.json -O ./.swagger-codegen/${specFilename}`
);
// Update config file with latest package info
const package = require("../package.json");
swaggerConfig = require(`./${swaggerConfigFilename}`);
swaggerConfig.npmName = package.name;
swaggerConfig.npmVersion = package.version;
writeFile(
`./.swagger-codegen/${swaggerConfigFilename}`,
JSON.stringify(swaggerConfig, null, 2)
);
// Copy ignore file to src/ (workaround for ignore-file-override option not working)
exec(`cp ./.swagger-codegen/.swagger-codegen-ignore ./src`);
// Share the current folder with docker, and then run the typescript-fetch generator, pointing to the given template
const codegenVersion = "2.4.17";
exec(`docker pull swaggerapi/swagger-codegen-cli:${codegenVersion} && docker run -u \`id -u\` --rm -v ${rootFolder}:/local swaggerapi/swagger-codegen-cli:${codegenVersion} generate \
-i "/local/.swagger-codegen/${specFilename}" \
-l "typescript-fetch" \
-c "/local/.swagger-codegen/${swaggerConfigFilename}" \
-t "/local/.swagger-codegen/templates" \
-o "/local/src"`);
// Move VERSION file out of src/ and into root .swagger-codegen folder for consistent organization
exec(
"mv ./src/.swagger-codegen/VERSION ./.swagger-codegen/ && rm -rf ./src/.swagger-codegen"
);
// Remove ignore file from src/
exec(`rm ./src/.swagger-codegen-ignore`);
|
module.exports = (function(){
// -------------------------------------------------------------------------------------------
// Defining configuration sub-schema
// -------------------------------------------------------------------------------------------
// Configuration for REDIS connections.
var CSUB_REDIS = {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"host": {
"type": "string"
},
"port": {
"type": "integer"
},
"connectionTimeout":{
"type": "integer"
},
"serverkey":{
"type": "string"
}
},
"required": [
"host",
"port"
]
};
// Configuration for a single REALM (aka, sub-domain)
var CSUB_REALM = {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"domain_name":{ // Example: "/", "/Realm1", "/User_12345"
"type":"string",
"minlength": 1
},
"www_path": { // The path to the root directory for this sub-realm.
"type":"string",
"minlength": 1
},
"views_path": { // The relative (to www_path) or absolute path to the view folder for this sub-realm.
"type":"string",
"minlength": 1
},
"partials_path": { // The relative (to view_path) or absolute path to the partials folder (by default assumed to be "./partials") for this sub-realm.
"type":"string",
"minlength": 1
},
"partials": { // List of partials to load. If ommitted, all files in the partials folder will be loaded.
"type": "array",
"items": {
"type":"string",
"minlength": 1
}
},
"enabled": { // If false, this realm won't be configured during server setup. NOTE: MUST be true for the root ("/") realm.
"type": "boolean"
},
"context": { // Context to use for the view templates.
"type":"object"
}
},
"required":[
"domain_name",
"www_path",
"views_path",
"enabled"
]
};
// Configuration for REALMS (aka, sub-domains)
var CSUB_REALMS = {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"bundle_scripts":{
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"list":{
"type": "array",
"minItems":1,
"items": {
"type": ["object", "string"],
"minLength": 1
}
}
},
"required":[
"bundle_scripts",
"list"
]
};
// Configuration for the logging system
var CSUB_LOGGING = {
"type": "object",
"properties": {
"minLevel": ["integer", "string"],
"maxLevel": ["integer", "string"]
},
"require": [
"minLevel",
"maxLevel"
]
};
// Configuration for the terminal access system.
var CSUB_TERMINAL = {
"type": "object",
"properties":{
"host": {
"type": "string"
},
"port": {
"type": "integer"
},
"maxConnections": {
"type": "integer",
"min": 0 // If 0, then terminal is considered disabled.
},
"authCode":{
"type": "string"
}
},
"required": [
"host",
"port",
"maxConnections",
"authCode"
]
};
// -------------------------------------------------------------------------------------------
// Server.config.json Schema
// -------------------------------------------------------------------------------------------
var CONFIG_SCHEMA = {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"processes": {
"type": "integer"
},
"logDomain":{
"type": "string",
"minLength": 1
},
"secret": {
"type": "string",
"minLength": 4
},
"tokenExpiration": {
"type": "integer",
"min": 1
},
"port":{
"type": "integer"
},
"terminal": { // If object, then refer to CSUB_TERMINAL schema. If string, a path to find the Terminal configuration JSON.
"type": ["object", "string"],
"minLength":1
},
"redis": { // If object, then refer to CSUB_REDIS schema. If string, a path to find the Redis configuration JSON.
"type": ["object", "string"],
"minLength":1
},
"realms":{ // If object, then refer to CSUB_REALMS schema. If string, a path to find the Realms configuration JSON.
"type": ["object", "string"],
"minLength": 1
},
"logging": {
"type": "object",
"properties":{
"info_enabled":{
"type":"boolean"
},
"error_enabled":{
"type":"boolean"
},
"warning_enabled":{
"type":"boolean"
},
"debug_enabled":{
"type":"boolean"
},
"all":{
"type":"boolean"
}
}
}
},
"required": [
"port",
"secret",
"redis",
"realms"
]
};
var DEFAULT_CONFIG_PATH = "./server.config.json";
var path = require('path');
var fs = require('fs');
var tv4 = require('tv4');
// -------------------------------------------------------------------------------------------
// Check process.env for "MYREALM_CONFIG_PATH" property, which should contain an alternate path to the config file.
// -------------------------------------------------------------------------------------------
var config_path = (typeof(process.env.MYREALM_CONFIG_PATH) === 'string') ? process.env.MYREALM_CONFIG_PATH : DEFAULT_CONFIG_PATH;
// -------------------------------------------------------------------------------------------
// Loading in the Config file (if it exists)...
// -------------------------------------------------------------------------------------------
var config = null;
try {
config = require(path.resolve(config_path));
} catch (e) {
console.error("Failed to load '" + config_path + "'.\n\"" + e.message + "\".");
config = null;
}
if (config === null && config_path !== DEFAULT_CONFIG_PATH){
try{
console.log("Attempting to load default configuration path...");
config = require(path.resolve(DEFAULT_CONFIG_PATH));
} catch (e){
console.error("Failed to load '" + DEFAULT_CONFIG_PATH + "'.\n\"" + e.message + "\".\nUsing default configuration.");
config = null;
}
}
// If configuration is invalid, throw a fit!
if (config !== null && tv4.validate(config, CONFIG_SCHEMA) === false){
throw new Error("Server.config.json is invalid.\"" + tv4.error.message + "\".");
}
// Setting defaults if not defined.
if (typeof(config.logDomain) !== 'string'){
config.logDomain = "MYREALM";
}
if (typeof(config.tokenExpiration) !== 'number'){
config.tokenExpiration = 900; // (in seconds) Approximately 15 minutes.
}
// ------------------------------------------------------------------------------
// Load REDIS config if string
// ------------------------------------------------------------------------------
if (typeof(config.redis) === 'string'){
var rpath = path.resolve(config.redis);
var stat = fs.lstatSync(rpath);
if (stat.isFile() === false){
throw new Error("Redis configuration path '" + rpath + "' missing or not a file.");
}
config.redis = require(rpath);
}
// ------------------------------------------------------------------------------
// Validate REDIS config.
// ------------------------------------------------------------------------------
if (tv4.validate(config.redis, CSUB_REDIS) === false){
throw new Error("REDIS config is invalid.\"" + tv4.error.message + "\".");
}
if (typeof(config.redis.connectionTimeout) !== 'number'){
config.redis.connectionTimeout = 5;
}
if (typeof(config.redis.serverkey) !== 'string'){
config.redis.serverkey = "";
}
// ------------------------------------------------------------------------------
// Load REALMS config if string
// ------------------------------------------------------------------------------
if (typeof(config.realms) === 'string'){
var rpath = path.resolve(config.realms);
var stat = fs.lstatSync(rpath);
if (stat.isFile() === false){
throw new Error("Realms configuration path '" + rpath + "' missing or not a file.");
}
config.realms = require(rpath);
}
// ------------------------------------------------------------------------------
// Validate REALMS config.
// ------------------------------------------------------------------------------
if (tv4.validate(config.realms, CSUB_REALMS) === false){
throw new Error("REALMS config is invalid.\"" + tv4.error.message + "\".");
}
// Now must load/validate actual realms :)
var rlist = config.realms.list;
for (var i=0; i < rlist.length; i++){
// Load REALM config if string
if (typeof(rlist[i]) === 'string'){
var rpath = path.resolve(rlist[i]);
var stat = fs.lstatSync(rpath);
if (stat.isFile() === false){
throw new Error("Realm configuration path '" + rpath + "' missing or not a file.");
}
rlist[i] = require(rpath);
}
// Validate Realm config
if (tv4.validate(rlist[i], CSUB_REALM) === false){
throw new Error("REALM config is invalid. \"" + tv4.error.message + "\".");
}
}
// ------------------------------------------------------------------------------
// Define/Load TERMINAL config if undefined/string
// ------------------------------------------------------------------------------
if (typeof(config.terminal) === 'undefined'){
config.terminal = { // A default, disabled terminal.
host: "",
port: 0,
maxConnections: 0,
authCode: ""
};
} else {
if (typeof(config.terminal) === 'string'){
var tpath = path.resolve(config.terminal);
var stat = fs.lstatSync(tpath);
if (stat.isFile() === false){
throw new Error("Terminal configuration path '" + tpath + "' missing or not a file.");
}
config.terminal = require(tpath);
}
}
// ------------------------------------------------------------------------------
// Validate Terminal config.
// ------------------------------------------------------------------------------
if (tv4.validate(config.terminal, CSUB_TERMINAL) === false){
throw new Error("TERMINAL config is invalid. \"" + tv4.error.message + "\".");
}
// ------------------------------------------------------------------------------
// Validate Logging config if given!
// ------------------------------------------------------------------------------
// ------------------------------------------------------------------------------
// DONE! Return loaded/generated config!
// ------------------------------------------------------------------------------
return config;
})();
|
function Observable() {
let observers = [];
this.sendMessage = msg => {
observers.forEach(observer => {
observer.notify(msg);
});
};
this.addObserver = observer => {
observers.push(observer);
};
}
function Observer(behavior) {
this.notify = msg => behavior(msg);
}
const observable = new Observable();
const observerOne = new Observer(msg => console.log(`Message to observer one - ${msg}`));
const observerTwo = new Observer(msg => console.log(`Message to observer two - ${msg}`));
observable.addObserver(observerOne);
observable.addObserver(observerTwo);
setTimeout(() => {
observable.sendMessage(new Date());
}, 1000);
|
const express = require("express");
const app = express.Router();
/* Controllers */
var controllers = require('../../controllers');
/* Middleware */
var middleware = require("../../middlewares/middleware");
/* Manage People Page */
app.get("/manage_people", middleware.checkSessionElseProfile, function (req, res) {
res.render("manage_people", {
data: req.session.data
});
});
/* Manage People Table Data */
app.post("/managePeople", controllers.users.managePeople);
module.exports = app;
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.decode = exports.defaultDecodeOptions = void 0;
const Decoder_1 = require("./Decoder");
exports.defaultDecodeOptions = {};
/**
* It decodes a MessagePack-encoded buffer.
*
* This is a synchronous decoding function. See other variants for asynchronous decoding: `decodeAsync()`, `decodeStream()`, `decodeArrayStream()`.
*/
function decode(buffer, options = exports.defaultDecodeOptions) {
const decoder = new Decoder_1.Decoder(options.extensionCodec, options.context, options.maxStrLength, options.maxBinLength, options.maxArrayLength, options.maxMapLength, options.maxExtLength);
return decoder.decode(buffer);
}
exports.decode = decode;
//# sourceMappingURL=decode.js.map
|
const express = require('express');
const path = require('path');
const fs = require('fs');
const uuid = require('uuid');
const buildIndex = require('./buildIndex.js');
const PORT = process.env.PORT || 8080;
express()
.use("/", express.static(__dirname, {
index: "report.html"
}))
.use('/report', express.text({ type: "application/json" }))
.post('/report', (req, res) => {
var id = uuid.v4();
fs.writeFile("./data/" + id + '.json', req.body, (err) => {
if(err) {
console.error(err);
res.status(500).send(err);
} else {
buildIndex(id,JSON.parse(req.body), (err,index) => {
if(err) {
console.error(err);
res.status(500).send(err);
} else {
console.log(index);
res.send("Done!");
}
});
}
});
})
.listen(PORT, () => { console.log(`Listening on ${PORT}`); });
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[95],{2931:function(t,e,n){"use strict";n.r(e),n.d(e,"icon",(function(){return c}));n(11),n(2),n(7),n(8),n(5),n(9);var r=n(0),a=n.n(r);function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function o(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n,r,a={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var l=function(t){var e=t.title,n=t.titleId,r=o(t,["title","titleId"]);return a.a.createElement("svg",i({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":n},r),e?a.a.createElement("title",{id:n},e):null,a.a.createElement("path",{d:"M5 5h8a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2V7a2 2 0 012-2zM1.5 1a.5.5 0 01.5.5v13a.5.5 0 11-1 0v-13a.5.5 0 01.5-.5z"}))},c=l;l.__docgenInfo={description:"",methods:[],displayName:"EuiIconEditorItemAlignLeft"}}}]);
//# sourceMappingURL=icon.editorItemAlignLeft-js.min.js.map
|
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
(self["webpackChunk_lux_laravel_starter"] = self["webpackChunk_lux_laravel_starter"] || []).push([["thread-show"],{
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/Reply.vue?vue&type=script&lang=js&":
/*!*******************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/Reply.vue?vue&type=script&lang=js& ***!
\*******************************************************************************************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n reply: {\n type: Object,\n required: true\n }\n },\n data: function data() {\n return {\n editing: false,\n updatedReply: null\n };\n },\n methods: {\n edit: function edit() {\n this.updatedReply = _objectSpread({}, this.reply);\n this.editing = true;\n },\n update: function update() {\n var _this = this;\n\n var _this$updatedReply = this.updatedReply,\n id = _this$updatedReply.id,\n body = _this$updatedReply.body;\n axios.put(\"/api/replies/\".concat(id), {\n body: body\n }).then(function (response) {\n _this.$emit('ReplyUpdated', {\n 'original': _this.reply,\n 'updated': _this.updatedReply,\n 'cb': function cb() {\n _this.editing = false;\n }\n });\n });\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90aHJlYWQvUmVwbHkudnVlPzFjMzgiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBNkNBO0FBQ0E7QUFDQTtBQUNBLGtCQURBO0FBRUE7QUFGQTtBQURBLEdBREE7QUFPQSxNQVBBLGtCQU9BO0FBQ0E7QUFDQSxvQkFEQTtBQUVBO0FBRkE7QUFJQSxHQVpBO0FBYUE7QUFDQSxRQURBLGtCQUNBO0FBQ0E7QUFDQTtBQUNBLEtBSkE7QUFLQSxVQUxBLG9CQUtBO0FBQUE7O0FBQ0E7QUFBQTtBQUFBO0FBRUE7QUFDQTtBQURBLFNBRUEsSUFGQSxDQUVBO0FBQ0E7QUFDQSxpQ0FEQTtBQUVBLHVDQUZBO0FBR0E7QUFDQTtBQUNBO0FBTEE7QUFPQSxPQVZBO0FBV0E7QUFuQkE7QUFiQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy9iYWJlbC1sb2FkZXIvbGliL2luZGV4LmpzPz9jbG9uZWRSdWxlU2V0LTVbMF0ucnVsZXNbMF0udXNlWzBdIS4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90aHJlYWQvUmVwbHkudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJi5qcyIsInNvdXJjZXNDb250ZW50IjpbIjx0ZW1wbGF0ZT5cbiAgPGRpdj5cbiAgICA8di1jYXJkIGNsYXNzPVwiZC1mbGV4IG10LTVcIj5cbiAgICAgIDxkaXYgY2xhc3M9XCJwYS0yXCI+XG4gICAgICAgIDx2LWF2YXRhciBzaXplPVwiODJcIj5cbiAgICAgICAgICA8di1pbWcgc3JjPVwiaHR0cDovL2F2YXRhYWFycy5pby8/Y29sb3I9YmxhY2tcIiAvPlxuICAgICAgICA8L3YtYXZhdGFyPlxuICAgICAgPC9kaXY+XG4gICAgICA8ZGl2IGNsYXNzPVwidy1mdWxsIHByLTNcIj5cbiAgICAgICAgPHYtY2FyZC10aXRsZT57eyByZXBseS5vd25lci5uYW1lIH19PC92LWNhcmQtdGl0bGU+XG4gICAgICAgIDx2LWNhcmQtdGV4dCB2LWlmPVwiIWVkaXRpbmdcIj5cbiAgICAgICAgICB7eyByZXBseS5ib2R5IH19XG4gICAgICAgIDwvdi1jYXJkLXRleHQ+XG4gICAgICAgIDx2LWNhcmQtdGV4dCB2LWVsc2U+XG4gICAgICAgICAgPHYtdGV4dGFyZWFcbiAgICAgICAgICAgIHYtbW9kZWw9XCJ1cGRhdGVkUmVwbHkuYm9keVwiXG4gICAgICAgICAgICBsYWJlbD1cIkJvZHlcIlxuICAgICAgICAgICAgYXV0b2ZvY3VzXG4gICAgICAgICAgICBzb2xvXG4gICAgICAgICAgPjwvdi10ZXh0YXJlYT5cbiAgICAgICAgPC92LWNhcmQtdGV4dD5cbiAgICAgICAgPHYtY2FyZC1hY3Rpb25zIHYtaWY9XCIhZWRpdGluZ1wiPlxuICAgICAgICAgIDx2LWJ0blxuICAgICAgICAgICAgY29sb3I9XCJwcmltYXJ5XCJcbiAgICAgICAgICAgIGljb25cbiAgICAgICAgICAgIHRleHRcbiAgICAgICAgICAgIHRpbGVcbiAgICAgICAgICAgIEBjbGljaz1cImVkaXRcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIDx2LWljb24+IG1kaS1wZW5jaWwgPC92LWljb24+XG4gICAgICAgICAgPC92LWJ0bj5cbiAgICAgICAgICA8di1idG4gY29sb3I9XCJyZWRcIiBpY29uIHRleHQgdGlsZT5cbiAgICAgICAgICAgIDx2LWljb24+IG1kaS10cmFzaC1jYW4tb3V0bGluZSA8L3YtaWNvbj5cbiAgICAgICAgICA8L3YtYnRuPlxuICAgICAgICA8L3YtY2FyZC1hY3Rpb25zPlxuICAgICAgICA8di1jYXJkLWFjdGlvbnMgdi1lbHNlPlxuICAgICAgICAgIDx2LWJ0biBjb2xvcj1cInByaW1hcnlcIiB0aWxlIEBjbGljaz1cInVwZGF0ZVwiPiB1cGRhdGUgPC92LWJ0bj5cbiAgICAgICAgICA8di1idG4gdGlsZSBAY2xpY2s9XCJlZGl0aW5nID0gZmFsc2VcIj4gY2FuY2VsIDwvdi1idG4+XG4gICAgICAgIDwvdi1jYXJkLWFjdGlvbnM+XG4gICAgICA8L2Rpdj5cbiAgICA8L3YtY2FyZD5cbiAgPC9kaXY+XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0PlxuZXhwb3J0IGRlZmF1bHQge1xuICBwcm9wczoge1xuICAgIHJlcGx5OiB7XG4gICAgICB0eXBlOiBPYmplY3QsXG4gICAgICByZXF1aXJlZDogdHJ1ZVxuICAgIH1cbiAgfSxcbiAgZGF0YSgpIHtcbiAgICByZXR1cm4ge1xuICAgICAgZWRpdGluZzogZmFsc2UsXG4gICAgICB1cGRhdGVkUmVwbHk6IG51bGxcbiAgICB9XG4gIH0sXG4gIG1ldGhvZHM6IHtcbiAgICBlZGl0KCkge1xuICAgICAgdGhpcy51cGRhdGVkUmVwbHkgPSB7IC4uLnRoaXMucmVwbHkgfTtcbiAgICAgIHRoaXMuZWRpdGluZyA9IHRydWU7XG4gICAgfSxcbiAgICB1cGRhdGUoKSB7XG4gICAgICBjb25zdCB7IGlkLCBib2R5IH0gPSB0aGlzLnVwZGF0ZWRSZXBseTtcblxuICAgICAgYXhpb3MucHV0KGAvYXBpL3JlcGxpZXMvJHtpZH1gLCB7XG4gICAgICAgIGJvZHlcbiAgICAgIH0pLnRoZW4oKHJlc3BvbnNlKSA9PiB7XG4gICAgICAgIHRoaXMuJGVtaXQoJ1JlcGx5VXBkYXRlZCcsIHtcbiAgICAgICAgICAnb3JpZ2luYWwnOiB0aGlzLnJlcGx5LFxuICAgICAgICAgICd1cGRhdGVkJzogdGhpcy51cGRhdGVkUmVwbHksXG4gICAgICAgICAgJ2NiJzogKCkgPT4ge1xuICAgICAgICAgICAgdGhpcy5lZGl0aW5nID0gZmFsc2U7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgIH0pXG4gICAgfVxuICB9XG59XG48L3NjcmlwdD5cbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/Reply.vue?vue&type=script&lang=js&\n");
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadInfo.vue?vue&type=script&lang=js&":
/*!************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadInfo.vue?vue&type=script&lang=js& ***!
\************************************************************************************************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n thread: {\n type: Object,\n required: true\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90aHJlYWQvVGhyZWFkSW5mby52dWU/MDIzNyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztBQWlCQTtBQUNBO0FBQ0E7QUFDQSxrQkFEQTtBQUVBO0FBRkE7QUFEQTtBQURBIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL2JhYmVsLWxvYWRlci9saWIvaW5kZXguanM/P2Nsb25lZFJ1bGVTZXQtNVswXS5ydWxlc1swXS51c2VbMF0hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9UaHJlYWRJbmZvLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYuanMiLCJzb3VyY2VzQ29udGVudCI6WyI8dGVtcGxhdGU+XG4gIDxkaXY+XG4gICAgPHYtY2FyZCBjbGFzcz1cIm1iLTNcIj5cbiAgICAgIDx2LWNhcmQtdGl0bGU+XG4gICAgICAgIHt7IHRocmVhZC50aXRsZSB9fVxuICAgICAgPC92LWNhcmQtdGl0bGU+XG4gICAgICA8di1jYXJkLXN1YnRpdGxlPlxuICAgICAgICBwdWJsaXNoZWQgYnkgPHNwYW4gY2xhc3M9XCJmb250LXdlaWdodC1ib2xkXCI+e3sgdGhyZWFkLm93bmVyLm5hbWUgfX08L3NwYW4+XG4gICAgICA8L3YtY2FyZC1zdWJ0aXRsZT5cbiAgICAgIDx2LWNhcmQtdGV4dD5cbiAgICAgICAge3sgdGhyZWFkLmRlc2NyaXB0aW9uIH19XG4gICAgICA8L3YtY2FyZC10ZXh0PlxuICAgIDwvdi1jYXJkPlxuICA8L2Rpdj5cbjwvdGVtcGxhdGU+XG5cbjxzY3JpcHQ+XG5leHBvcnQgZGVmYXVsdCB7XG4gIHByb3BzOiB7XG4gICAgdGhyZWFkOiB7XG4gICAgICB0eXBlOiBPYmplY3QsXG4gICAgICByZXF1aXJlZDogdHJ1ZVxuICAgIH1cbiAgfVxuXG59XG48L3NjcmlwdD5cbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadInfo.vue?vue&type=script&lang=js&\n");
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadReplies.vue?vue&type=script&lang=js&":
/*!***************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadReplies.vue?vue&type=script&lang=js& ***!
\***************************************************************************************************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Reply__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Reply */ \"./resources/js/components/thread/Reply.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n components: {\n Reply: _Reply__WEBPACK_IMPORTED_MODULE_0__.default\n },\n props: {\n replies: {\n type: Array,\n required: true\n }\n },\n methods: {\n refresh: function refresh(reply) {\n var index = this.replies.indexOf(reply.original);\n\n if (index > -1) {\n console.log(this.replies[index]);\n this.replies[index].body = reply.updated.body;\n reply.cb(); //this.$refs.reply.close();\n }\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90aHJlYWQvVGhyZWFkUmVwbGllcy52dWU/MTUwOCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFjQTtBQUNBO0FBQ0E7QUFBQTtBQUFBLEdBREE7QUFFQTtBQUNBO0FBQ0EsaUJBREE7QUFFQTtBQUZBO0FBREEsR0FGQTtBQVFBO0FBQ0EsV0FEQSxtQkFDQSxLQURBLEVBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQSxtQkFIQSxDQUlBO0FBQ0E7QUFDQTtBQVZBO0FBUkEiLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8/Y2xvbmVkUnVsZVNldC01WzBdLnJ1bGVzWzBdLnVzZVswXSEuL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vcmVzb3VyY2VzL2pzL2NvbXBvbmVudHMvdGhyZWFkL1RocmVhZFJlcGxpZXMudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJi5qcyIsInNvdXJjZXNDb250ZW50IjpbIjx0ZW1wbGF0ZT5cbiAgPGRpdiBjbGFzcz1cIm10LTNcIj5cbiAgICA8aDMgY2xhc3M9XCJtYi0zXCI+UmVwbGllczwvaDM+XG4gICAgPHJlcGx5XG4gICAgICB2LWZvcj1cIihyZXBseSwgaW5kZXgpIGluIHJlcGxpZXNcIlxuICAgICAgOmtleT1cImluZGV4XCJcbiAgICAgIHJlZj1cInJlcGx5XCJcbiAgICAgIDpyZXBseT1cInJlcGx5XCJcbiAgICAgIEBSZXBseVVwZGF0ZWQ9XCJyZWZyZXNoXCJcbiAgICAvPlxuICA8L2Rpdj5cbjwvdGVtcGxhdGU+XG5cbjxzY3JpcHQ+XG5pbXBvcnQgUmVwbHkgZnJvbSBcIi4vUmVwbHlcIjtcbmV4cG9ydCBkZWZhdWx0IHtcbiAgY29tcG9uZW50czogeyBSZXBseSB9LFxuICBwcm9wczoge1xuICAgIHJlcGxpZXM6IHtcbiAgICAgIHR5cGU6IEFycmF5LFxuICAgICAgcmVxdWlyZWQ6IHRydWVcbiAgICB9XG4gIH0sXG4gIG1ldGhvZHM6IHtcbiAgICByZWZyZXNoKHJlcGx5KSB7XG4gICAgICBjb25zdCBpbmRleCA9IHRoaXMucmVwbGllcy5pbmRleE9mKHJlcGx5Lm9yaWdpbmFsKTtcblxuICAgICAgaWYgKGluZGV4ID4gLTEpIHtcbiAgICAgICAgY29uc29sZS5sb2codGhpcy5yZXBsaWVzW2luZGV4XSk7XG4gICAgICAgIHRoaXMucmVwbGllc1tpbmRleF0uYm9keSA9IHJlcGx5LnVwZGF0ZWQuYm9keTtcbiAgICAgICAgcmVwbHkuY2IoKTtcbiAgICAgICAgLy90aGlzLiRyZWZzLnJlcGx5LmNsb3NlKCk7XG4gICAgICB9XG4gICAgfVxuICB9XG59O1xuPC9zY3JpcHQ+XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadReplies.vue?vue&type=script&lang=js&\n");
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/thread/Show.vue?vue&type=script&lang=js&":
/*!*************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/thread/Show.vue?vue&type=script&lang=js& ***!
\*************************************************************************************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _components_thread_ThreadInfo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../components/thread/ThreadInfo */ \"./resources/js/components/thread/ThreadInfo.vue\");\n/* harmony import */ var _components_thread_ThreadReplies__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../components/thread/ThreadReplies */ \"./resources/js/components/thread/ThreadReplies.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n components: {\n ThreadReplies: _components_thread_ThreadReplies__WEBPACK_IMPORTED_MODULE_1__.default,\n ThreadInfo: _components_thread_ThreadInfo__WEBPACK_IMPORTED_MODULE_0__.default\n },\n data: function data() {\n return {\n thread: null\n };\n },\n created: function created() {\n this.initialize();\n },\n methods: {\n initialize: function initialize() {\n this.getThread();\n },\n getThread: function getThread() {\n var _this = this;\n\n axios.get(\"/api/threads/1\").then(function (response) {\n _this.thread = response.data;\n console.log(_this.thread);\n })[\"catch\"](function (error) {\n console.log(error);\n });\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci9yZXNvdXJjZXMvanMvcGFnZXMvdGhyZWFkL1Nob3cudnVlP2NmMDQiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFTQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFBQSxHQURBO0FBRUEsTUFGQSxrQkFFQTtBQUNBO0FBQ0E7QUFEQTtBQUdBLEdBTkE7QUFPQSxTQVBBLHFCQU9BO0FBQ0E7QUFDQSxHQVRBO0FBVUE7QUFDQSxjQURBLHdCQUNBO0FBQ0E7QUFDQSxLQUhBO0FBSUEsYUFKQSx1QkFJQTtBQUFBOztBQUNBLFlBQ0EsR0FEQSxtQkFFQSxJQUZBLENBRUE7QUFDQTtBQUNBO0FBQ0EsT0FMQSxXQU1BO0FBQ0E7QUFDQSxPQVJBO0FBU0E7QUFkQTtBQVZBIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL2JhYmVsLWxvYWRlci9saWIvaW5kZXguanM/P2Nsb25lZFJ1bGVTZXQtNVswXS5ydWxlc1swXS51c2VbMF0hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL3Jlc291cmNlcy9qcy9wYWdlcy90aHJlYWQvU2hvdy52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmLmpzIiwic291cmNlc0NvbnRlbnQiOlsiPHRlbXBsYXRlPlxuICA8ZGl2IHYtaWY9XCJ0aHJlYWRcIj5cbiAgICA8dGhyZWFkLWluZm8gOnRocmVhZD1cInRocmVhZFwiIC8+XG4gICAgPHYtZGl2aWRlciAvPlxuICAgIDx0aHJlYWQtcmVwbGllcyA6cmVwbGllcz1cInRocmVhZC5yZXBsaWVzXCIgLz5cbiAgPC9kaXY+XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0PlxuaW1wb3J0IFRocmVhZEluZm8gZnJvbSBcIi4uLy4uL2NvbXBvbmVudHMvdGhyZWFkL1RocmVhZEluZm9cIjtcbmltcG9ydCBUaHJlYWRSZXBsaWVzIGZyb20gXCIuLi8uLi9jb21wb25lbnRzL3RocmVhZC9UaHJlYWRSZXBsaWVzXCI7XG5leHBvcnQgZGVmYXVsdCB7XG4gIGNvbXBvbmVudHM6IHsgVGhyZWFkUmVwbGllcywgVGhyZWFkSW5mbyB9LFxuICBkYXRhKCkge1xuICAgIHJldHVybiB7XG4gICAgICB0aHJlYWQ6IG51bGxcbiAgICB9O1xuICB9LFxuICBjcmVhdGVkKCkge1xuICAgIHRoaXMuaW5pdGlhbGl6ZSgpO1xuICB9LFxuICBtZXRob2RzOiB7XG4gICAgaW5pdGlhbGl6ZSgpIHtcbiAgICAgIHRoaXMuZ2V0VGhyZWFkKCk7XG4gICAgfSxcbiAgICBnZXRUaHJlYWQoKSB7XG4gICAgICBheGlvc1xuICAgICAgICAuZ2V0KGAvYXBpL3RocmVhZHMvMWApXG4gICAgICAgIC50aGVuKChyZXNwb25zZSkgPT4ge1xuICAgICAgICAgIHRoaXMudGhyZWFkID0gcmVzcG9uc2UuZGF0YTtcbiAgICAgICAgICBjb25zb2xlLmxvZyh0aGlzLnRocmVhZCk7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaCgoZXJyb3IpID0+IHtcbiAgICAgICAgICBjb25zb2xlLmxvZyhlcnJvcik7XG4gICAgICAgIH0pO1xuICAgIH1cbiAgfVxufTtcbjwvc2NyaXB0PlxuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/thread/Show.vue?vue&type=script&lang=js&\n");
/***/ }),
/***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[3]!./node_modules/vuetify/src/components/VTextarea/VTextarea.sass":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[3]!./node_modules/vuetify/src/components/VTextarea/VTextarea.sass ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************/
/***/ (function(module, exports, __webpack_require__) {
eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".v-textarea textarea {\\n align-self: stretch;\\n flex: 1 1 auto;\\n line-height: 1.75rem;\\n max-width: 100%;\\n min-height: 32px;\\n outline: none;\\n padding: 0;\\n width: 100%;\\n}\\n.v-textarea .v-text-field__prefix,\\n.v-textarea .v-text-field__suffix {\\n padding-top: 2px;\\n align-self: start;\\n}\\n.v-textarea.v-text-field--box .v-text-field__prefix,\\n.v-textarea.v-text-field--box textarea, .v-textarea.v-text-field--enclosed .v-text-field__prefix,\\n.v-textarea.v-text-field--enclosed textarea {\\n margin-top: 24px;\\n}\\n.v-textarea.v-text-field--box.v-text-field--single-line:not(.v-input--dense) .v-text-field__prefix,\\n.v-textarea.v-text-field--box.v-text-field--single-line:not(.v-input--dense) .v-text-field__suffix,\\n.v-textarea.v-text-field--box.v-text-field--single-line:not(.v-input--dense) textarea, .v-textarea.v-text-field--box.v-text-field--outlined:not(.v-input--dense) .v-text-field__prefix,\\n.v-textarea.v-text-field--box.v-text-field--outlined:not(.v-input--dense) .v-text-field__suffix,\\n.v-textarea.v-text-field--box.v-text-field--outlined:not(.v-input--dense) textarea, .v-textarea.v-text-field--enclosed.v-text-field--single-line:not(.v-input--dense) .v-text-field__prefix,\\n.v-textarea.v-text-field--enclosed.v-text-field--single-line:not(.v-input--dense) .v-text-field__suffix,\\n.v-textarea.v-text-field--enclosed.v-text-field--single-line:not(.v-input--dense) textarea, .v-textarea.v-text-field--enclosed.v-text-field--outlined:not(.v-input--dense) .v-text-field__prefix,\\n.v-textarea.v-text-field--enclosed.v-text-field--outlined:not(.v-input--dense) .v-text-field__suffix,\\n.v-textarea.v-text-field--enclosed.v-text-field--outlined:not(.v-input--dense) textarea {\\n margin-top: 10px;\\n}\\n.v-textarea.v-text-field--box.v-text-field--single-line:not(.v-input--dense) .v-label, .v-textarea.v-text-field--box.v-text-field--outlined:not(.v-input--dense) .v-label, .v-textarea.v-text-field--enclosed.v-text-field--single-line:not(.v-input--dense) .v-label, .v-textarea.v-text-field--enclosed.v-text-field--outlined:not(.v-input--dense) .v-label {\\n top: 18px;\\n}\\n.v-textarea.v-text-field--box.v-text-field--single-line.v-input--dense .v-text-field__prefix,\\n.v-textarea.v-text-field--box.v-text-field--single-line.v-input--dense .v-text-field__suffix,\\n.v-textarea.v-text-field--box.v-text-field--single-line.v-input--dense textarea, .v-textarea.v-text-field--box.v-text-field--outlined.v-input--dense .v-text-field__prefix,\\n.v-textarea.v-text-field--box.v-text-field--outlined.v-input--dense .v-text-field__suffix,\\n.v-textarea.v-text-field--box.v-text-field--outlined.v-input--dense textarea, .v-textarea.v-text-field--enclosed.v-text-field--single-line.v-input--dense .v-text-field__prefix,\\n.v-textarea.v-text-field--enclosed.v-text-field--single-line.v-input--dense .v-text-field__suffix,\\n.v-textarea.v-text-field--enclosed.v-text-field--single-line.v-input--dense textarea, .v-textarea.v-text-field--enclosed.v-text-field--outlined.v-input--dense .v-text-field__prefix,\\n.v-textarea.v-text-field--enclosed.v-text-field--outlined.v-input--dense .v-text-field__suffix,\\n.v-textarea.v-text-field--enclosed.v-text-field--outlined.v-input--dense textarea {\\n margin-top: 6px;\\n}\\n.v-textarea.v-text-field--box.v-text-field--single-line.v-input--dense .v-input__prepend-inner,\\n.v-textarea.v-text-field--box.v-text-field--single-line.v-input--dense .v-input__prepend-outer,\\n.v-textarea.v-text-field--box.v-text-field--single-line.v-input--dense .v-input__append-inner,\\n.v-textarea.v-text-field--box.v-text-field--single-line.v-input--dense .v-input__append-outer, .v-textarea.v-text-field--box.v-text-field--outlined.v-input--dense .v-input__prepend-inner,\\n.v-textarea.v-text-field--box.v-text-field--outlined.v-input--dense .v-input__prepend-outer,\\n.v-textarea.v-text-field--box.v-text-field--outlined.v-input--dense .v-input__append-inner,\\n.v-textarea.v-text-field--box.v-text-field--outlined.v-input--dense .v-input__append-outer, .v-textarea.v-text-field--enclosed.v-text-field--single-line.v-input--dense .v-input__prepend-inner,\\n.v-textarea.v-text-field--enclosed.v-text-field--single-line.v-input--dense .v-input__prepend-outer,\\n.v-textarea.v-text-field--enclosed.v-text-field--single-line.v-input--dense .v-input__append-inner,\\n.v-textarea.v-text-field--enclosed.v-text-field--single-line.v-input--dense .v-input__append-outer, .v-textarea.v-text-field--enclosed.v-text-field--outlined.v-input--dense .v-input__prepend-inner,\\n.v-textarea.v-text-field--enclosed.v-text-field--outlined.v-input--dense .v-input__prepend-outer,\\n.v-textarea.v-text-field--enclosed.v-text-field--outlined.v-input--dense .v-input__append-inner,\\n.v-textarea.v-text-field--enclosed.v-text-field--outlined.v-input--dense .v-input__append-outer {\\n align-self: flex-start;\\n margin-top: 8px;\\n}\\n.v-textarea.v-text-field--solo {\\n align-items: flex-start;\\n}\\n.v-textarea.v-text-field--solo .v-input__prepend-inner,\\n.v-textarea.v-text-field--solo .v-input__prepend-outer,\\n.v-textarea.v-text-field--solo .v-input__append-inner,\\n.v-textarea.v-text-field--solo .v-input__append-outer {\\n align-self: flex-start;\\n margin-top: 12px;\\n}\\n.v-application--is-ltr .v-textarea.v-text-field--solo .v-input__append-inner {\\n padding-left: 12px;\\n}\\n.v-application--is-rtl .v-textarea.v-text-field--solo .v-input__append-inner {\\n padding-right: 12px;\\n}\\n.v-textarea--auto-grow textarea {\\n overflow: hidden;\\n}\\n.v-textarea--no-resize textarea {\\n resize: none;\\n}\\n.v-textarea.v-text-field--enclosed .v-text-field__slot {\\n align-self: stretch;\\n}\\n.v-application--is-ltr .v-textarea.v-text-field--enclosed .v-text-field__slot {\\n margin-right: -12px;\\n}\\n.v-application--is-rtl .v-textarea.v-text-field--enclosed .v-text-field__slot {\\n margin-left: -12px;\\n}\\n.v-application--is-ltr .v-textarea.v-text-field--enclosed .v-text-field__slot textarea {\\n padding-right: 12px;\\n}\\n.v-application--is-rtl .v-textarea.v-text-field--enclosed .v-text-field__slot textarea {\\n padding-left: 12px;\\n}\", \"\"]);\n// Exports\nmodule.exports = exports;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL25vZGVfbW9kdWxlcy92dWV0aWZ5L3NyYy9jb21wb25lbnRzL1ZUZXh0YXJlYS9WVGV4dGFyZWEuc2Fzcz8wODc5Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0Esa0NBQWtDLG1CQUFPLENBQUMsaUdBQTRDO0FBQ3RGO0FBQ0E7QUFDQSxnREFBZ0Qsd0JBQXdCLG1CQUFtQix5QkFBeUIsb0JBQW9CLHFCQUFxQixrQkFBa0IsZUFBZSxnQkFBZ0IsR0FBRyx5RUFBeUUscUJBQXFCLHNCQUFzQixHQUFHLHdNQUF3TSxxQkFBcUIsR0FBRyxrcENBQWtwQyxxQkFBcUIsR0FBRyxrV0FBa1csY0FBYyxHQUFHLDBrQ0FBMGtDLG9CQUFvQixHQUFHLHNoREFBc2hELDJCQUEyQixvQkFBb0IsR0FBRyxrQ0FBa0MsNEJBQTRCLEdBQUcsbU9BQW1PLDJCQUEyQixxQkFBcUIsR0FBRyxnRkFBZ0YsdUJBQXVCLEdBQUcsZ0ZBQWdGLHdCQUF3QixHQUFHLG1DQUFtQyxxQkFBcUIsR0FBRyxtQ0FBbUMsaUJBQWlCLEdBQUcsMERBQTBELHdCQUF3QixHQUFHLGlGQUFpRix3QkFBd0IsR0FBRyxpRkFBaUYsdUJBQXVCLEdBQUcsMEZBQTBGLHdCQUF3QixHQUFHLDBGQUEwRix1QkFBdUIsR0FBRztBQUNqNkw7QUFDQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy9jc3MtbG9hZGVyL2Rpc3QvY2pzLmpzPz9jbG9uZWRSdWxlU2V0LTE1WzBdLnJ1bGVzWzBdLnVzZVsxXSEuL25vZGVfbW9kdWxlcy9wb3N0Y3NzLWxvYWRlci9kaXN0L2Nqcy5qcz8/Y2xvbmVkUnVsZVNldC0xNVswXS5ydWxlc1swXS51c2VbMl0hLi9ub2RlX21vZHVsZXMvc2Fzcy1sb2FkZXIvZGlzdC9janMuanM/P2Nsb25lZFJ1bGVTZXQtMTVbMF0ucnVsZXNbMF0udXNlWzNdIS4vbm9kZV9tb2R1bGVzL3Z1ZXRpZnkvc3JjL2NvbXBvbmVudHMvVlRleHRhcmVhL1ZUZXh0YXJlYS5zYXNzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gSW1wb3J0c1xudmFyIF9fX0NTU19MT0FERVJfQVBJX0lNUE9SVF9fXyA9IHJlcXVpcmUoXCIuLi8uLi8uLi8uLi9jc3MtbG9hZGVyL2Rpc3QvcnVudGltZS9hcGkuanNcIik7XG5leHBvcnRzID0gX19fQ1NTX0xPQURFUl9BUElfSU1QT1JUX19fKGZhbHNlKTtcbi8vIE1vZHVsZVxuZXhwb3J0cy5wdXNoKFttb2R1bGUuaWQsIFwiLnYtdGV4dGFyZWEgdGV4dGFyZWEge1xcbiAgYWxpZ24tc2VsZjogc3RyZXRjaDtcXG4gIGZsZXg6IDEgMSBhdXRvO1xcbiAgbGluZS1oZWlnaHQ6IDEuNzVyZW07XFxuICBtYXgtd2lkdGg6IDEwMCU7XFxuICBtaW4taGVpZ2h0OiAzMnB4O1xcbiAgb3V0bGluZTogbm9uZTtcXG4gIHBhZGRpbmc6IDA7XFxuICB3aWR0aDogMTAwJTtcXG59XFxuLnYtdGV4dGFyZWEgLnYtdGV4dC1maWVsZF9fcHJlZml4LFxcbi52LXRleHRhcmVhIC52LXRleHQtZmllbGRfX3N1ZmZpeCB7XFxuICBwYWRkaW5nLXRvcDogMnB4O1xcbiAgYWxpZ24tc2VsZjogc3RhcnQ7XFxufVxcbi52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tYm94IC52LXRleHQtZmllbGRfX3ByZWZpeCxcXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWJveCB0ZXh0YXJlYSwgLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1lbmNsb3NlZCAudi10ZXh0LWZpZWxkX19wcmVmaXgsXFxuLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1lbmNsb3NlZCB0ZXh0YXJlYSB7XFxuICBtYXJnaW4tdG9wOiAyNHB4O1xcbn1cXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWJveC52LXRleHQtZmllbGQtLXNpbmdsZS1saW5lOm5vdCgudi1pbnB1dC0tZGVuc2UpIC52LXRleHQtZmllbGRfX3ByZWZpeCxcXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWJveC52LXRleHQtZmllbGQtLXNpbmdsZS1saW5lOm5vdCgudi1pbnB1dC0tZGVuc2UpIC52LXRleHQtZmllbGRfX3N1ZmZpeCxcXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWJveC52LXRleHQtZmllbGQtLXNpbmdsZS1saW5lOm5vdCgudi1pbnB1dC0tZGVuc2UpIHRleHRhcmVhLCAudi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWJveC52LXRleHQtZmllbGQtLW91dGxpbmVkOm5vdCgudi1pbnB1dC0tZGVuc2UpIC52LXRleHQtZmllbGRfX3ByZWZpeCxcXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWJveC52LXRleHQtZmllbGQtLW91dGxpbmVkOm5vdCgudi1pbnB1dC0tZGVuc2UpIC52LXRleHQtZmllbGRfX3N1ZmZpeCxcXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWJveC52LXRleHQtZmllbGQtLW91dGxpbmVkOm5vdCgudi1pbnB1dC0tZGVuc2UpIHRleHRhcmVhLCAudi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWVuY2xvc2VkLnYtdGV4dC1maWVsZC0tc2luZ2xlLWxpbmU6bm90KC52LWlucHV0LS1kZW5zZSkgLnYtdGV4dC1maWVsZF9fcHJlZml4LFxcbi52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tZW5jbG9zZWQudi10ZXh0LWZpZWxkLS1zaW5nbGUtbGluZTpub3QoLnYtaW5wdXQtLWRlbnNlKSAudi10ZXh0LWZpZWxkX19zdWZmaXgsXFxuLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1lbmNsb3NlZC52LXRleHQtZmllbGQtLXNpbmdsZS1saW5lOm5vdCgudi1pbnB1dC0tZGVuc2UpIHRleHRhcmVhLCAudi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWVuY2xvc2VkLnYtdGV4dC1maWVsZC0tb3V0bGluZWQ6bm90KC52LWlucHV0LS1kZW5zZSkgLnYtdGV4dC1maWVsZF9fcHJlZml4LFxcbi52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tZW5jbG9zZWQudi10ZXh0LWZpZWxkLS1vdXRsaW5lZDpub3QoLnYtaW5wdXQtLWRlbnNlKSAudi10ZXh0LWZpZWxkX19zdWZmaXgsXFxuLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1lbmNsb3NlZC52LXRleHQtZmllbGQtLW91dGxpbmVkOm5vdCgudi1pbnB1dC0tZGVuc2UpIHRleHRhcmVhIHtcXG4gIG1hcmdpbi10b3A6IDEwcHg7XFxufVxcbi52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tYm94LnYtdGV4dC1maWVsZC0tc2luZ2xlLWxpbmU6bm90KC52LWlucHV0LS1kZW5zZSkgLnYtbGFiZWwsIC52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tYm94LnYtdGV4dC1maWVsZC0tb3V0bGluZWQ6bm90KC52LWlucHV0LS1kZW5zZSkgLnYtbGFiZWwsIC52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tZW5jbG9zZWQudi10ZXh0LWZpZWxkLS1zaW5nbGUtbGluZTpub3QoLnYtaW5wdXQtLWRlbnNlKSAudi1sYWJlbCwgLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1lbmNsb3NlZC52LXRleHQtZmllbGQtLW91dGxpbmVkOm5vdCgudi1pbnB1dC0tZGVuc2UpIC52LWxhYmVsIHtcXG4gIHRvcDogMThweDtcXG59XFxuLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1ib3gudi10ZXh0LWZpZWxkLS1zaW5nbGUtbGluZS52LWlucHV0LS1kZW5zZSAudi10ZXh0LWZpZWxkX19wcmVmaXgsXFxuLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1ib3gudi10ZXh0LWZpZWxkLS1zaW5nbGUtbGluZS52LWlucHV0LS1kZW5zZSAudi10ZXh0LWZpZWxkX19zdWZmaXgsXFxuLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1ib3gudi10ZXh0LWZpZWxkLS1zaW5nbGUtbGluZS52LWlucHV0LS1kZW5zZSB0ZXh0YXJlYSwgLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1ib3gudi10ZXh0LWZpZWxkLS1vdXRsaW5lZC52LWlucHV0LS1kZW5zZSAudi10ZXh0LWZpZWxkX19wcmVmaXgsXFxuLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1ib3gudi10ZXh0LWZpZWxkLS1vdXRsaW5lZC52LWlucHV0LS1kZW5zZSAudi10ZXh0LWZpZWxkX19zdWZmaXgsXFxuLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1ib3gudi10ZXh0LWZpZWxkLS1vdXRsaW5lZC52LWlucHV0LS1kZW5zZSB0ZXh0YXJlYSwgLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1lbmNsb3NlZC52LXRleHQtZmllbGQtLXNpbmdsZS1saW5lLnYtaW5wdXQtLWRlbnNlIC52LXRleHQtZmllbGRfX3ByZWZpeCxcXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWVuY2xvc2VkLnYtdGV4dC1maWVsZC0tc2luZ2xlLWxpbmUudi1pbnB1dC0tZGVuc2UgLnYtdGV4dC1maWVsZF9fc3VmZml4LFxcbi52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tZW5jbG9zZWQudi10ZXh0LWZpZWxkLS1zaW5nbGUtbGluZS52LWlucHV0LS1kZW5zZSB0ZXh0YXJlYSwgLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1lbmNsb3NlZC52LXRleHQtZmllbGQtLW91dGxpbmVkLnYtaW5wdXQtLWRlbnNlIC52LXRleHQtZmllbGRfX3ByZWZpeCxcXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWVuY2xvc2VkLnYtdGV4dC1maWVsZC0tb3V0bGluZWQudi1pbnB1dC0tZGVuc2UgLnYtdGV4dC1maWVsZF9fc3VmZml4LFxcbi52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tZW5jbG9zZWQudi10ZXh0LWZpZWxkLS1vdXRsaW5lZC52LWlucHV0LS1kZW5zZSB0ZXh0YXJlYSB7XFxuICBtYXJnaW4tdG9wOiA2cHg7XFxufVxcbi52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tYm94LnYtdGV4dC1maWVsZC0tc2luZ2xlLWxpbmUudi1pbnB1dC0tZGVuc2UgLnYtaW5wdXRfX3ByZXBlbmQtaW5uZXIsXFxuLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1ib3gudi10ZXh0LWZpZWxkLS1zaW5nbGUtbGluZS52LWlucHV0LS1kZW5zZSAudi1pbnB1dF9fcHJlcGVuZC1vdXRlcixcXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWJveC52LXRleHQtZmllbGQtLXNpbmdsZS1saW5lLnYtaW5wdXQtLWRlbnNlIC52LWlucHV0X19hcHBlbmQtaW5uZXIsXFxuLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1ib3gudi10ZXh0LWZpZWxkLS1zaW5nbGUtbGluZS52LWlucHV0LS1kZW5zZSAudi1pbnB1dF9fYXBwZW5kLW91dGVyLCAudi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWJveC52LXRleHQtZmllbGQtLW91dGxpbmVkLnYtaW5wdXQtLWRlbnNlIC52LWlucHV0X19wcmVwZW5kLWlubmVyLFxcbi52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tYm94LnYtdGV4dC1maWVsZC0tb3V0bGluZWQudi1pbnB1dC0tZGVuc2UgLnYtaW5wdXRfX3ByZXBlbmQtb3V0ZXIsXFxuLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1ib3gudi10ZXh0LWZpZWxkLS1vdXRsaW5lZC52LWlucHV0LS1kZW5zZSAudi1pbnB1dF9fYXBwZW5kLWlubmVyLFxcbi52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tYm94LnYtdGV4dC1maWVsZC0tb3V0bGluZWQudi1pbnB1dC0tZGVuc2UgLnYtaW5wdXRfX2FwcGVuZC1vdXRlciwgLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1lbmNsb3NlZC52LXRleHQtZmllbGQtLXNpbmdsZS1saW5lLnYtaW5wdXQtLWRlbnNlIC52LWlucHV0X19wcmVwZW5kLWlubmVyLFxcbi52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tZW5jbG9zZWQudi10ZXh0LWZpZWxkLS1zaW5nbGUtbGluZS52LWlucHV0LS1kZW5zZSAudi1pbnB1dF9fcHJlcGVuZC1vdXRlcixcXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWVuY2xvc2VkLnYtdGV4dC1maWVsZC0tc2luZ2xlLWxpbmUudi1pbnB1dC0tZGVuc2UgLnYtaW5wdXRfX2FwcGVuZC1pbm5lcixcXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWVuY2xvc2VkLnYtdGV4dC1maWVsZC0tc2luZ2xlLWxpbmUudi1pbnB1dC0tZGVuc2UgLnYtaW5wdXRfX2FwcGVuZC1vdXRlciwgLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1lbmNsb3NlZC52LXRleHQtZmllbGQtLW91dGxpbmVkLnYtaW5wdXQtLWRlbnNlIC52LWlucHV0X19wcmVwZW5kLWlubmVyLFxcbi52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tZW5jbG9zZWQudi10ZXh0LWZpZWxkLS1vdXRsaW5lZC52LWlucHV0LS1kZW5zZSAudi1pbnB1dF9fcHJlcGVuZC1vdXRlcixcXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWVuY2xvc2VkLnYtdGV4dC1maWVsZC0tb3V0bGluZWQudi1pbnB1dC0tZGVuc2UgLnYtaW5wdXRfX2FwcGVuZC1pbm5lcixcXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLWVuY2xvc2VkLnYtdGV4dC1maWVsZC0tb3V0bGluZWQudi1pbnB1dC0tZGVuc2UgLnYtaW5wdXRfX2FwcGVuZC1vdXRlciB7XFxuICBhbGlnbi1zZWxmOiBmbGV4LXN0YXJ0O1xcbiAgbWFyZ2luLXRvcDogOHB4O1xcbn1cXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLXNvbG8ge1xcbiAgYWxpZ24taXRlbXM6IGZsZXgtc3RhcnQ7XFxufVxcbi52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tc29sbyAudi1pbnB1dF9fcHJlcGVuZC1pbm5lcixcXG4udi10ZXh0YXJlYS52LXRleHQtZmllbGQtLXNvbG8gLnYtaW5wdXRfX3ByZXBlbmQtb3V0ZXIsXFxuLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1zb2xvIC52LWlucHV0X19hcHBlbmQtaW5uZXIsXFxuLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1zb2xvIC52LWlucHV0X19hcHBlbmQtb3V0ZXIge1xcbiAgYWxpZ24tc2VsZjogZmxleC1zdGFydDtcXG4gIG1hcmdpbi10b3A6IDEycHg7XFxufVxcbi52LWFwcGxpY2F0aW9uLS1pcy1sdHIgLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1zb2xvIC52LWlucHV0X19hcHBlbmQtaW5uZXIge1xcbiAgcGFkZGluZy1sZWZ0OiAxMnB4O1xcbn1cXG4udi1hcHBsaWNhdGlvbi0taXMtcnRsIC52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tc29sbyAudi1pbnB1dF9fYXBwZW5kLWlubmVyIHtcXG4gIHBhZGRpbmctcmlnaHQ6IDEycHg7XFxufVxcbi52LXRleHRhcmVhLS1hdXRvLWdyb3cgdGV4dGFyZWEge1xcbiAgb3ZlcmZsb3c6IGhpZGRlbjtcXG59XFxuLnYtdGV4dGFyZWEtLW5vLXJlc2l6ZSB0ZXh0YXJlYSB7XFxuICByZXNpemU6IG5vbmU7XFxufVxcbi52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tZW5jbG9zZWQgLnYtdGV4dC1maWVsZF9fc2xvdCB7XFxuICBhbGlnbi1zZWxmOiBzdHJldGNoO1xcbn1cXG4udi1hcHBsaWNhdGlvbi0taXMtbHRyIC52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tZW5jbG9zZWQgLnYtdGV4dC1maWVsZF9fc2xvdCB7XFxuICBtYXJnaW4tcmlnaHQ6IC0xMnB4O1xcbn1cXG4udi1hcHBsaWNhdGlvbi0taXMtcnRsIC52LXRleHRhcmVhLnYtdGV4dC1maWVsZC0tZW5jbG9zZWQgLnYtdGV4dC1maWVsZF9fc2xvdCB7XFxuICBtYXJnaW4tbGVmdDogLTEycHg7XFxufVxcbi52LWFwcGxpY2F0aW9uLS1pcy1sdHIgLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1lbmNsb3NlZCAudi10ZXh0LWZpZWxkX19zbG90IHRleHRhcmVhIHtcXG4gIHBhZGRpbmctcmlnaHQ6IDEycHg7XFxufVxcbi52LWFwcGxpY2F0aW9uLS1pcy1ydGwgLnYtdGV4dGFyZWEudi10ZXh0LWZpZWxkLS1lbmNsb3NlZCAudi10ZXh0LWZpZWxkX19zbG90IHRleHRhcmVhIHtcXG4gIHBhZGRpbmctbGVmdDogMTJweDtcXG59XCIsIFwiXCJdKTtcbi8vIEV4cG9ydHNcbm1vZHVsZS5leHBvcnRzID0gZXhwb3J0cztcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/css-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[3]!./node_modules/vuetify/src/components/VTextarea/VTextarea.sass\n");
/***/ }),
/***/ "./resources/js/components/thread/Reply.vue?vue&type=script&lang=js&":
/*!***************************************************************************!*\
!*** ./resources/js/components/thread/Reply.vue?vue&type=script&lang=js& ***!
\***************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Reply_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Reply.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/Reply.vue?vue&type=script&lang=js&\");\n /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Reply_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9SZXBseS52dWU/OTMwMSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFxTixDQUFDLCtEQUFlLHVNQUFHLEVBQUMiLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90aHJlYWQvUmVwbHkudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJi5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBtb2QgZnJvbSBcIi0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2JhYmVsLWxvYWRlci9saWIvaW5kZXguanM/P2Nsb25lZFJ1bGVTZXQtNVswXS5ydWxlc1swXS51c2VbMF0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9SZXBseS52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCI7IGV4cG9ydCBkZWZhdWx0IG1vZDsgZXhwb3J0ICogZnJvbSBcIi0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2JhYmVsLWxvYWRlci9saWIvaW5kZXguanM/P2Nsb25lZFJ1bGVTZXQtNVswXS5ydWxlc1swXS51c2VbMF0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9SZXBseS52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCIiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/thread/Reply.vue?vue&type=script&lang=js&\n");
/***/ }),
/***/ "./resources/js/components/thread/ThreadInfo.vue?vue&type=script&lang=js&":
/*!********************************************************************************!*\
!*** ./resources/js/components/thread/ThreadInfo.vue?vue&type=script&lang=js& ***!
\********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ThreadInfo_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ThreadInfo.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadInfo.vue?vue&type=script&lang=js&\");\n /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ThreadInfo_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9UaHJlYWRJbmZvLnZ1ZT84NDc5Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQTBOLENBQUMsK0RBQWUsNE1BQUcsRUFBQyIsImZpbGUiOiIuL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9UaHJlYWRJbmZvLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbW9kIGZyb20gXCItIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9iYWJlbC1sb2FkZXIvbGliL2luZGV4LmpzPz9jbG9uZWRSdWxlU2V0LTVbMF0ucnVsZXNbMF0udXNlWzBdIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vVGhyZWFkSW5mby52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCI7IGV4cG9ydCBkZWZhdWx0IG1vZDsgZXhwb3J0ICogZnJvbSBcIi0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2JhYmVsLWxvYWRlci9saWIvaW5kZXguanM/P2Nsb25lZFJ1bGVTZXQtNVswXS5ydWxlc1swXS51c2VbMF0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9UaHJlYWRJbmZvLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/thread/ThreadInfo.vue?vue&type=script&lang=js&\n");
/***/ }),
/***/ "./resources/js/components/thread/ThreadReplies.vue?vue&type=script&lang=js&":
/*!***********************************************************************************!*\
!*** ./resources/js/components/thread/ThreadReplies.vue?vue&type=script&lang=js& ***!
\***********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ThreadReplies_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ThreadReplies.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadReplies.vue?vue&type=script&lang=js&\");\n /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ThreadReplies_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9UaHJlYWRSZXBsaWVzLnZ1ZT81ZWRjIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQTZOLENBQUMsK0RBQWUsK01BQUcsRUFBQyIsImZpbGUiOiIuL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9UaHJlYWRSZXBsaWVzLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbW9kIGZyb20gXCItIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9iYWJlbC1sb2FkZXIvbGliL2luZGV4LmpzPz9jbG9uZWRSdWxlU2V0LTVbMF0ucnVsZXNbMF0udXNlWzBdIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vVGhyZWFkUmVwbGllcy52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCI7IGV4cG9ydCBkZWZhdWx0IG1vZDsgZXhwb3J0ICogZnJvbSBcIi0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2JhYmVsLWxvYWRlci9saWIvaW5kZXguanM/P2Nsb25lZFJ1bGVTZXQtNVswXS5ydWxlc1swXS51c2VbMF0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9UaHJlYWRSZXBsaWVzLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/thread/ThreadReplies.vue?vue&type=script&lang=js&\n");
/***/ }),
/***/ "./resources/js/pages/thread/Show.vue?vue&type=script&lang=js&":
/*!*********************************************************************!*\
!*** ./resources/js/pages/thread/Show.vue?vue&type=script&lang=js& ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Show_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/thread/Show.vue?vue&type=script&lang=js&\");\n /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Show_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL3Jlc291cmNlcy9qcy9wYWdlcy90aHJlYWQvU2hvdy52dWU/YjMwZiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFvTixDQUFDLCtEQUFlLHNNQUFHLEVBQUMiLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvdGhyZWFkL1Nob3cudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJi5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBtb2QgZnJvbSBcIi0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2JhYmVsLWxvYWRlci9saWIvaW5kZXguanM/P2Nsb25lZFJ1bGVTZXQtNVswXS5ydWxlc1swXS51c2VbMF0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9TaG93LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIjsgZXhwb3J0IGRlZmF1bHQgbW9kOyBleHBvcnQgKiBmcm9tIFwiLSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8/Y2xvbmVkUnVsZVNldC01WzBdLnJ1bGVzWzBdLnVzZVswXSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL1Nob3cudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/pages/thread/Show.vue?vue&type=script&lang=js&\n");
/***/ }),
/***/ "./resources/js/components/thread/Reply.vue?vue&type=template&id=4d722bd0&":
/*!*********************************************************************************!*\
!*** ./resources/js/components/thread/Reply.vue?vue&type=template&id=4d722bd0& ***!
\*********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "render": function() { return /* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Reply_vue_vue_type_template_id_4d722bd0___WEBPACK_IMPORTED_MODULE_0__.render; },
/* harmony export */ "staticRenderFns": function() { return /* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Reply_vue_vue_type_template_id_4d722bd0___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns; }
/* harmony export */ });
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Reply_vue_vue_type_template_id_4d722bd0___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Reply.vue?vue&type=template&id=4d722bd0& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/Reply.vue?vue&type=template&id=4d722bd0&");
/***/ }),
/***/ "./resources/js/components/thread/ThreadInfo.vue?vue&type=template&id=4c1bcde2&":
/*!**************************************************************************************!*\
!*** ./resources/js/components/thread/ThreadInfo.vue?vue&type=template&id=4c1bcde2& ***!
\**************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "render": function() { return /* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ThreadInfo_vue_vue_type_template_id_4c1bcde2___WEBPACK_IMPORTED_MODULE_0__.render; },
/* harmony export */ "staticRenderFns": function() { return /* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ThreadInfo_vue_vue_type_template_id_4c1bcde2___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns; }
/* harmony export */ });
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ThreadInfo_vue_vue_type_template_id_4c1bcde2___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ThreadInfo.vue?vue&type=template&id=4c1bcde2& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadInfo.vue?vue&type=template&id=4c1bcde2&");
/***/ }),
/***/ "./resources/js/components/thread/ThreadReplies.vue?vue&type=template&id=23f3cc84&":
/*!*****************************************************************************************!*\
!*** ./resources/js/components/thread/ThreadReplies.vue?vue&type=template&id=23f3cc84& ***!
\*****************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "render": function() { return /* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ThreadReplies_vue_vue_type_template_id_23f3cc84___WEBPACK_IMPORTED_MODULE_0__.render; },
/* harmony export */ "staticRenderFns": function() { return /* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ThreadReplies_vue_vue_type_template_id_23f3cc84___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns; }
/* harmony export */ });
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ThreadReplies_vue_vue_type_template_id_23f3cc84___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ThreadReplies.vue?vue&type=template&id=23f3cc84& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadReplies.vue?vue&type=template&id=23f3cc84&");
/***/ }),
/***/ "./resources/js/pages/thread/Show.vue?vue&type=template&id=5cd26fae&":
/*!***************************************************************************!*\
!*** ./resources/js/pages/thread/Show.vue?vue&type=template&id=5cd26fae& ***!
\***************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "render": function() { return /* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Show_vue_vue_type_template_id_5cd26fae___WEBPACK_IMPORTED_MODULE_0__.render; },
/* harmony export */ "staticRenderFns": function() { return /* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Show_vue_vue_type_template_id_5cd26fae___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns; }
/* harmony export */ });
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Show_vue_vue_type_template_id_5cd26fae___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Show.vue?vue&type=template&id=5cd26fae& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/thread/Show.vue?vue&type=template&id=5cd26fae&");
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/Reply.vue?vue&type=template&id=4d722bd0&":
/*!************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/Reply.vue?vue&type=template&id=4d722bd0& ***!
\************************************************************************************************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; },\n/* harmony export */ \"staticRenderFns\": function() { return /* binding */ staticRenderFns; }\n/* harmony export */ });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n [\n _c(\"v-card\", { staticClass: \"d-flex mt-5\" }, [\n _c(\n \"div\",\n { staticClass: \"pa-2\" },\n [\n _c(\n \"v-avatar\",\n { attrs: { size: \"82\" } },\n [\n _c(\"v-img\", {\n attrs: { src: \"http://avataaars.io/?color=black\" }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"w-full pr-3\" },\n [\n _c(\"v-card-title\", [_vm._v(_vm._s(_vm.reply.owner.name))]),\n _vm._v(\" \"),\n !_vm.editing\n ? _c(\"v-card-text\", [\n _vm._v(\"\\n \" + _vm._s(_vm.reply.body) + \"\\n \")\n ])\n : _c(\n \"v-card-text\",\n [\n _c(\"v-textarea\", {\n attrs: { label: \"Body\", autofocus: \"\", solo: \"\" },\n model: {\n value: _vm.updatedReply.body,\n callback: function($$v) {\n _vm.$set(_vm.updatedReply, \"body\", $$v)\n },\n expression: \"updatedReply.body\"\n }\n })\n ],\n 1\n ),\n _vm._v(\" \"),\n !_vm.editing\n ? _c(\n \"v-card-actions\",\n [\n _c(\n \"v-btn\",\n {\n attrs: {\n color: \"primary\",\n icon: \"\",\n text: \"\",\n tile: \"\"\n },\n on: { click: _vm.edit }\n },\n [_c(\"v-icon\", [_vm._v(\" mdi-pencil \")])],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"v-btn\",\n { attrs: { color: \"red\", icon: \"\", text: \"\", tile: \"\" } },\n [_c(\"v-icon\", [_vm._v(\" mdi-trash-can-outline \")])],\n 1\n )\n ],\n 1\n )\n : _c(\n \"v-card-actions\",\n [\n _c(\n \"v-btn\",\n {\n attrs: { color: \"primary\", tile: \"\" },\n on: { click: _vm.update }\n },\n [_vm._v(\" update \")]\n ),\n _vm._v(\" \"),\n _c(\n \"v-btn\",\n {\n attrs: { tile: \"\" },\n on: {\n click: function($event) {\n _vm.editing = false\n }\n }\n },\n [_vm._v(\" cancel \")]\n )\n ],\n 1\n )\n ],\n 1\n )\n ])\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9SZXBseS52dWU/MmNiNCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0Esb0JBQW9CLDZCQUE2QjtBQUNqRDtBQUNBO0FBQ0EsV0FBVyxzQkFBc0I7QUFDakM7QUFDQTtBQUNBO0FBQ0EsZUFBZSxTQUFTLGFBQWEsRUFBRTtBQUN2QztBQUNBO0FBQ0EsMEJBQTBCO0FBQzFCLGlCQUFpQjtBQUNqQjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxXQUFXLDZCQUE2QjtBQUN4QztBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsOEJBQThCLHlDQUF5QztBQUN2RTtBQUNBO0FBQ0E7QUFDQTtBQUNBLHlCQUF5QjtBQUN6QjtBQUNBO0FBQ0EscUJBQXFCO0FBQ3JCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EseUJBQXlCO0FBQ3pCLDZCQUE2QjtBQUM3Qix1QkFBdUI7QUFDdkI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsdUJBQXVCLFNBQVMsNkNBQTZDLEVBQUU7QUFDL0U7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsZ0NBQWdDLDZCQUE2QjtBQUM3RCw2QkFBNkI7QUFDN0IsdUJBQXVCO0FBQ3ZCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLGdDQUFnQyxXQUFXO0FBQzNDO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSx1QkFBdUI7QUFDdkI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2xvYWRlcnMvdGVtcGxhdGVMb2FkZXIuanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vcmVzb3VyY2VzL2pzL2NvbXBvbmVudHMvdGhyZWFkL1JlcGx5LnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD00ZDcyMmJkMCYuanMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgcmVuZGVyID0gZnVuY3Rpb24oKSB7XG4gIHZhciBfdm0gPSB0aGlzXG4gIHZhciBfaCA9IF92bS4kY3JlYXRlRWxlbWVudFxuICB2YXIgX2MgPSBfdm0uX3NlbGYuX2MgfHwgX2hcbiAgcmV0dXJuIF9jKFxuICAgIFwiZGl2XCIsXG4gICAgW1xuICAgICAgX2MoXCJ2LWNhcmRcIiwgeyBzdGF0aWNDbGFzczogXCJkLWZsZXggbXQtNVwiIH0sIFtcbiAgICAgICAgX2MoXG4gICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICB7IHN0YXRpY0NsYXNzOiBcInBhLTJcIiB9LFxuICAgICAgICAgIFtcbiAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICBcInYtYXZhdGFyXCIsXG4gICAgICAgICAgICAgIHsgYXR0cnM6IHsgc2l6ZTogXCI4MlwiIH0gfSxcbiAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgIF9jKFwidi1pbWdcIiwge1xuICAgICAgICAgICAgICAgICAgYXR0cnM6IHsgc3JjOiBcImh0dHA6Ly9hdmF0YWFhcnMuaW8vP2NvbG9yPWJsYWNrXCIgfVxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgIDFcbiAgICAgICAgICAgIClcbiAgICAgICAgICBdLFxuICAgICAgICAgIDFcbiAgICAgICAgKSxcbiAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgX2MoXG4gICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICB7IHN0YXRpY0NsYXNzOiBcInctZnVsbCBwci0zXCIgfSxcbiAgICAgICAgICBbXG4gICAgICAgICAgICBfYyhcInYtY2FyZC10aXRsZVwiLCBbX3ZtLl92KF92bS5fcyhfdm0ucmVwbHkub3duZXIubmFtZSkpXSksXG4gICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgIV92bS5lZGl0aW5nXG4gICAgICAgICAgICAgID8gX2MoXCJ2LWNhcmQtdGV4dFwiLCBbXG4gICAgICAgICAgICAgICAgICBfdm0uX3YoXCJcXG4gICAgICAgIFwiICsgX3ZtLl9zKF92bS5yZXBseS5ib2R5KSArIFwiXFxuICAgICAgXCIpXG4gICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgOiBfYyhcbiAgICAgICAgICAgICAgICAgIFwidi1jYXJkLXRleHRcIixcbiAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgX2MoXCJ2LXRleHRhcmVhXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBsYWJlbDogXCJCb2R5XCIsIGF1dG9mb2N1czogXCJcIiwgc29sbzogXCJcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgIG1vZGVsOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogX3ZtLnVwZGF0ZWRSZXBseS5ib2R5LFxuICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2s6IGZ1bmN0aW9uKCQkdikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uJHNldChfdm0udXBkYXRlZFJlcGx5LCBcImJvZHlcIiwgJCR2KVxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGV4cHJlc3Npb246IFwidXBkYXRlZFJlcGx5LmJvZHlcIlxuICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAhX3ZtLmVkaXRpbmdcbiAgICAgICAgICAgICAgPyBfYyhcbiAgICAgICAgICAgICAgICAgIFwidi1jYXJkLWFjdGlvbnNcIixcbiAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgXCJ2LWJ0blwiLFxuICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIGNvbG9yOiBcInByaW1hcnlcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgaWNvbjogXCJcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dDogXCJcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdGlsZTogXCJcIlxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG9uOiB7IGNsaWNrOiBfdm0uZWRpdCB9XG4gICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICBbX2MoXCJ2LWljb25cIiwgW192bS5fdihcIiBtZGktcGVuY2lsIFwiKV0pXSxcbiAgICAgICAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgIFwidi1idG5cIixcbiAgICAgICAgICAgICAgICAgICAgICB7IGF0dHJzOiB7IGNvbG9yOiBcInJlZFwiLCBpY29uOiBcIlwiLCB0ZXh0OiBcIlwiLCB0aWxlOiBcIlwiIH0gfSxcbiAgICAgICAgICAgICAgICAgICAgICBbX2MoXCJ2LWljb25cIiwgW192bS5fdihcIiBtZGktdHJhc2gtY2FuLW91dGxpbmUgXCIpXSldLFxuICAgICAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgIDogX2MoXG4gICAgICAgICAgICAgICAgICBcInYtY2FyZC1hY3Rpb25zXCIsXG4gICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgIFwidi1idG5cIixcbiAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBjb2xvcjogXCJwcmltYXJ5XCIsIHRpbGU6IFwiXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG9uOiB7IGNsaWNrOiBfdm0udXBkYXRlIH1cbiAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgIFtfdm0uX3YoXCIgdXBkYXRlIFwiKV1cbiAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgXCJ2LWJ0blwiLFxuICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7IHRpbGU6IFwiXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIGNsaWNrOiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uZWRpdGluZyA9IGZhbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgIFtfdm0uX3YoXCIgY2FuY2VsIFwiKV1cbiAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICApXG4gICAgICAgICAgXSxcbiAgICAgICAgICAxXG4gICAgICAgIClcbiAgICAgIF0pXG4gICAgXSxcbiAgICAxXG4gIClcbn1cbnZhciBzdGF0aWNSZW5kZXJGbnMgPSBbXVxucmVuZGVyLl93aXRoU3RyaXBwZWQgPSB0cnVlXG5cbmV4cG9ydCB7IHJlbmRlciwgc3RhdGljUmVuZGVyRm5zIH0iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/Reply.vue?vue&type=template&id=4d722bd0&\n");
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadInfo.vue?vue&type=template&id=4c1bcde2&":
/*!*****************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadInfo.vue?vue&type=template&id=4c1bcde2& ***!
\*****************************************************************************************************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; },\n/* harmony export */ \"staticRenderFns\": function() { return /* binding */ staticRenderFns; }\n/* harmony export */ });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n [\n _c(\n \"v-card\",\n { staticClass: \"mb-3\" },\n [\n _c(\"v-card-title\", [\n _vm._v(\"\\n \" + _vm._s(_vm.thread.title) + \"\\n \")\n ]),\n _vm._v(\" \"),\n _c(\"v-card-subtitle\", [\n _vm._v(\"\\n published by \"),\n _c(\"span\", { staticClass: \"font-weight-bold\" }, [\n _vm._v(_vm._s(_vm.thread.owner.name))\n ])\n ]),\n _vm._v(\" \"),\n _c(\"v-card-text\", [\n _vm._v(\"\\n \" + _vm._s(_vm.thread.description) + \"\\n \")\n ])\n ],\n 1\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9UaHJlYWRJbmZvLnZ1ZT83NzhiIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsU0FBUyxzQkFBc0I7QUFDL0I7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSx3QkFBd0Isa0NBQWtDO0FBQzFEO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2xvYWRlcnMvdGVtcGxhdGVMb2FkZXIuanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vcmVzb3VyY2VzL2pzL2NvbXBvbmVudHMvdGhyZWFkL1RocmVhZEluZm8udnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTRjMWJjZGUyJi5qcyIsInNvdXJjZXNDb250ZW50IjpbInZhciByZW5kZXIgPSBmdW5jdGlvbigpIHtcbiAgdmFyIF92bSA9IHRoaXNcbiAgdmFyIF9oID0gX3ZtLiRjcmVhdGVFbGVtZW50XG4gIHZhciBfYyA9IF92bS5fc2VsZi5fYyB8fCBfaFxuICByZXR1cm4gX2MoXG4gICAgXCJkaXZcIixcbiAgICBbXG4gICAgICBfYyhcbiAgICAgICAgXCJ2LWNhcmRcIixcbiAgICAgICAgeyBzdGF0aWNDbGFzczogXCJtYi0zXCIgfSxcbiAgICAgICAgW1xuICAgICAgICAgIF9jKFwidi1jYXJkLXRpdGxlXCIsIFtcbiAgICAgICAgICAgIF92bS5fdihcIlxcbiAgICAgIFwiICsgX3ZtLl9zKF92bS50aHJlYWQudGl0bGUpICsgXCJcXG4gICAgXCIpXG4gICAgICAgICAgXSksXG4gICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICBfYyhcInYtY2FyZC1zdWJ0aXRsZVwiLCBbXG4gICAgICAgICAgICBfdm0uX3YoXCJcXG4gICAgICBwdWJsaXNoZWQgYnkgXCIpLFxuICAgICAgICAgICAgX2MoXCJzcGFuXCIsIHsgc3RhdGljQ2xhc3M6IFwiZm9udC13ZWlnaHQtYm9sZFwiIH0sIFtcbiAgICAgICAgICAgICAgX3ZtLl92KF92bS5fcyhfdm0udGhyZWFkLm93bmVyLm5hbWUpKVxuICAgICAgICAgICAgXSlcbiAgICAgICAgICBdKSxcbiAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgIF9jKFwidi1jYXJkLXRleHRcIiwgW1xuICAgICAgICAgICAgX3ZtLl92KFwiXFxuICAgICAgXCIgKyBfdm0uX3MoX3ZtLnRocmVhZC5kZXNjcmlwdGlvbikgKyBcIlxcbiAgICBcIilcbiAgICAgICAgICBdKVxuICAgICAgICBdLFxuICAgICAgICAxXG4gICAgICApXG4gICAgXSxcbiAgICAxXG4gIClcbn1cbnZhciBzdGF0aWNSZW5kZXJGbnMgPSBbXVxucmVuZGVyLl93aXRoU3RyaXBwZWQgPSB0cnVlXG5cbmV4cG9ydCB7IHJlbmRlciwgc3RhdGljUmVuZGVyRm5zIH0iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadInfo.vue?vue&type=template&id=4c1bcde2&\n");
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadReplies.vue?vue&type=template&id=23f3cc84&":
/*!********************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadReplies.vue?vue&type=template&id=23f3cc84& ***!
\********************************************************************************************************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; },\n/* harmony export */ \"staticRenderFns\": function() { return /* binding */ staticRenderFns; }\n/* harmony export */ });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { staticClass: \"mt-3\" },\n [\n _c(\"h3\", { staticClass: \"mb-3\" }, [_vm._v(\"Replies\")]),\n _vm._v(\" \"),\n _vm._l(_vm.replies, function(reply, index) {\n return _c(\"reply\", {\n key: index,\n ref: \"reply\",\n refInFor: true,\n attrs: { reply: reply },\n on: { ReplyUpdated: _vm.refresh }\n })\n })\n ],\n 2\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9UaHJlYWRSZXBsaWVzLnZ1ZT84NGQxIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FBSyxzQkFBc0I7QUFDM0I7QUFDQSxnQkFBZ0Isc0JBQXNCO0FBQ3RDO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLGtCQUFrQixlQUFlO0FBQ2pDLGVBQWU7QUFDZixTQUFTO0FBQ1QsT0FBTztBQUNQO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9sb2FkZXJzL3RlbXBsYXRlTG9hZGVyLmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9UaHJlYWRSZXBsaWVzLnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD0yM2YzY2M4NCYuanMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgcmVuZGVyID0gZnVuY3Rpb24oKSB7XG4gIHZhciBfdm0gPSB0aGlzXG4gIHZhciBfaCA9IF92bS4kY3JlYXRlRWxlbWVudFxuICB2YXIgX2MgPSBfdm0uX3NlbGYuX2MgfHwgX2hcbiAgcmV0dXJuIF9jKFxuICAgIFwiZGl2XCIsXG4gICAgeyBzdGF0aWNDbGFzczogXCJtdC0zXCIgfSxcbiAgICBbXG4gICAgICBfYyhcImgzXCIsIHsgc3RhdGljQ2xhc3M6IFwibWItM1wiIH0sIFtfdm0uX3YoXCJSZXBsaWVzXCIpXSksXG4gICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgX3ZtLl9sKF92bS5yZXBsaWVzLCBmdW5jdGlvbihyZXBseSwgaW5kZXgpIHtcbiAgICAgICAgcmV0dXJuIF9jKFwicmVwbHlcIiwge1xuICAgICAgICAgIGtleTogaW5kZXgsXG4gICAgICAgICAgcmVmOiBcInJlcGx5XCIsXG4gICAgICAgICAgcmVmSW5Gb3I6IHRydWUsXG4gICAgICAgICAgYXR0cnM6IHsgcmVwbHk6IHJlcGx5IH0sXG4gICAgICAgICAgb246IHsgUmVwbHlVcGRhdGVkOiBfdm0ucmVmcmVzaCB9XG4gICAgICAgIH0pXG4gICAgICB9KVxuICAgIF0sXG4gICAgMlxuICApXG59XG52YXIgc3RhdGljUmVuZGVyRm5zID0gW11cbnJlbmRlci5fd2l0aFN0cmlwcGVkID0gdHJ1ZVxuXG5leHBvcnQgeyByZW5kZXIsIHN0YXRpY1JlbmRlckZucyB9Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/thread/ThreadReplies.vue?vue&type=template&id=23f3cc84&\n");
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/thread/Show.vue?vue&type=template&id=5cd26fae&":
/*!******************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/thread/Show.vue?vue&type=template&id=5cd26fae& ***!
\******************************************************************************************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; },\n/* harmony export */ \"staticRenderFns\": function() { return /* binding */ staticRenderFns; }\n/* harmony export */ });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _vm.thread\n ? _c(\n \"div\",\n [\n _c(\"thread-info\", { attrs: { thread: _vm.thread } }),\n _vm._v(\" \"),\n _c(\"v-divider\"),\n _vm._v(\" \"),\n _c(\"thread-replies\", { attrs: { replies: _vm.thread.replies } })\n ],\n 1\n )\n : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL3Jlc291cmNlcy9qcy9wYWdlcy90aHJlYWQvU2hvdy52dWU/NjZjZCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSw2QkFBNkIsU0FBUyxxQkFBcUIsRUFBRTtBQUM3RDtBQUNBO0FBQ0E7QUFDQSxnQ0FBZ0MsU0FBUyw4QkFBOEIsRUFBRTtBQUN6RTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9sb2FkZXJzL3RlbXBsYXRlTG9hZGVyLmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL3Jlc291cmNlcy9qcy9wYWdlcy90aHJlYWQvU2hvdy52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NWNkMjZmYWUmLmpzIiwic291cmNlc0NvbnRlbnQiOlsidmFyIHJlbmRlciA9IGZ1bmN0aW9uKCkge1xuICB2YXIgX3ZtID0gdGhpc1xuICB2YXIgX2ggPSBfdm0uJGNyZWF0ZUVsZW1lbnRcbiAgdmFyIF9jID0gX3ZtLl9zZWxmLl9jIHx8IF9oXG4gIHJldHVybiBfdm0udGhyZWFkXG4gICAgPyBfYyhcbiAgICAgICAgXCJkaXZcIixcbiAgICAgICAgW1xuICAgICAgICAgIF9jKFwidGhyZWFkLWluZm9cIiwgeyBhdHRyczogeyB0aHJlYWQ6IF92bS50aHJlYWQgfSB9KSxcbiAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgIF9jKFwidi1kaXZpZGVyXCIpLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXCJ0aHJlYWQtcmVwbGllc1wiLCB7IGF0dHJzOiB7IHJlcGxpZXM6IF92bS50aHJlYWQucmVwbGllcyB9IH0pXG4gICAgICAgIF0sXG4gICAgICAgIDFcbiAgICAgIClcbiAgICA6IF92bS5fZSgpXG59XG52YXIgc3RhdGljUmVuZGVyRm5zID0gW11cbnJlbmRlci5fd2l0aFN0cmlwcGVkID0gdHJ1ZVxuXG5leHBvcnQgeyByZW5kZXIsIHN0YXRpY1JlbmRlckZucyB9Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/thread/Show.vue?vue&type=template&id=5cd26fae&\n");
/***/ }),
/***/ "./node_modules/vuetify/src/components/VTextarea/VTextarea.sass":
/*!**********************************************************************!*\
!*** ./node_modules/vuetify/src/components/VTextarea/VTextarea.sass ***!
\**********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !!../../../../css-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[1]!../../../../postcss-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[2]!../../../../sass-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[3]!./VTextarea.sass */ \"./node_modules/css-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-15[0].rules[0].use[3]!./node_modules/vuetify/src/components/VTextarea/VTextarea.sass\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! !../../../../vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"4d6465dc\", content, false, {});\n// Hot Module Replacement\nif(false) {}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL25vZGVfbW9kdWxlcy92dWV0aWZ5L3NyYy9jb21wb25lbnRzL1ZUZXh0YXJlYS9WVGV4dGFyZWEuc2Fzcz82ODM2Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztBQUVBO0FBQ0EsY0FBYyxtQkFBTyxDQUFDLDZoQkFBaVA7QUFDdlE7QUFDQTtBQUNBO0FBQ0E7QUFDQSxVQUFVLGlKQUF1RTtBQUNqRiwrQ0FBK0M7QUFDL0M7QUFDQSxHQUFHLEtBQVUsRUFBRSIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy92dWV0aWZ5L3NyYy9jb21wb25lbnRzL1ZUZXh0YXJlYS9WVGV4dGFyZWEuc2Fzcy5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIHN0eWxlLWxvYWRlcjogQWRkcyBzb21lIGNzcyB0byB0aGUgRE9NIGJ5IGFkZGluZyBhIDxzdHlsZT4gdGFnXG5cbi8vIGxvYWQgdGhlIHN0eWxlc1xudmFyIGNvbnRlbnQgPSByZXF1aXJlKFwiISEuLi8uLi8uLi8uLi9jc3MtbG9hZGVyL2Rpc3QvY2pzLmpzPz9jbG9uZWRSdWxlU2V0LTE1WzBdLnJ1bGVzWzBdLnVzZVsxXSEuLi8uLi8uLi8uLi9wb3N0Y3NzLWxvYWRlci9kaXN0L2Nqcy5qcz8/Y2xvbmVkUnVsZVNldC0xNVswXS5ydWxlc1swXS51c2VbMl0hLi4vLi4vLi4vLi4vc2Fzcy1sb2FkZXIvZGlzdC9janMuanM/P2Nsb25lZFJ1bGVTZXQtMTVbMF0ucnVsZXNbMF0udXNlWzNdIS4vVlRleHRhcmVhLnNhc3NcIik7XG5pZihjb250ZW50Ll9fZXNNb2R1bGUpIGNvbnRlbnQgPSBjb250ZW50LmRlZmF1bHQ7XG5pZih0eXBlb2YgY29udGVudCA9PT0gJ3N0cmluZycpIGNvbnRlbnQgPSBbW21vZHVsZS5pZCwgY29udGVudCwgJyddXTtcbmlmKGNvbnRlbnQubG9jYWxzKSBtb2R1bGUuZXhwb3J0cyA9IGNvbnRlbnQubG9jYWxzO1xuLy8gYWRkIHRoZSBzdHlsZXMgdG8gdGhlIERPTVxudmFyIGFkZCA9IHJlcXVpcmUoXCIhLi4vLi4vLi4vLi4vdnVlLXN0eWxlLWxvYWRlci9saWIvYWRkU3R5bGVzQ2xpZW50LmpzXCIpLmRlZmF1bHRcbnZhciB1cGRhdGUgPSBhZGQoXCI0ZDY0NjVkY1wiLCBjb250ZW50LCBmYWxzZSwge30pO1xuLy8gSG90IE1vZHVsZSBSZXBsYWNlbWVudFxuaWYobW9kdWxlLmhvdCkge1xuIC8vIFdoZW4gdGhlIHN0eWxlcyBjaGFuZ2UsIHVwZGF0ZSB0aGUgPHN0eWxlPiB0YWdzXG4gaWYoIWNvbnRlbnQubG9jYWxzKSB7XG4gICBtb2R1bGUuaG90LmFjY2VwdChcIiEhLi4vLi4vLi4vLi4vY3NzLWxvYWRlci9kaXN0L2Nqcy5qcz8/Y2xvbmVkUnVsZVNldC0xNVswXS5ydWxlc1swXS51c2VbMV0hLi4vLi4vLi4vLi4vcG9zdGNzcy1sb2FkZXIvZGlzdC9janMuanM/P2Nsb25lZFJ1bGVTZXQtMTVbMF0ucnVsZXNbMF0udXNlWzJdIS4uLy4uLy4uLy4uL3Nhc3MtbG9hZGVyL2Rpc3QvY2pzLmpzPz9jbG9uZWRSdWxlU2V0LTE1WzBdLnJ1bGVzWzBdLnVzZVszXSEuL1ZUZXh0YXJlYS5zYXNzXCIsIGZ1bmN0aW9uKCkge1xuICAgICB2YXIgbmV3Q29udGVudCA9IHJlcXVpcmUoXCIhIS4uLy4uLy4uLy4uL2Nzcy1sb2FkZXIvZGlzdC9janMuanM/P2Nsb25lZFJ1bGVTZXQtMTVbMF0ucnVsZXNbMF0udXNlWzFdIS4uLy4uLy4uLy4uL3Bvc3Rjc3MtbG9hZGVyL2Rpc3QvY2pzLmpzPz9jbG9uZWRSdWxlU2V0LTE1WzBdLnJ1bGVzWzBdLnVzZVsyXSEuLi8uLi8uLi8uLi9zYXNzLWxvYWRlci9kaXN0L2Nqcy5qcz8/Y2xvbmVkUnVsZVNldC0xNVswXS5ydWxlc1swXS51c2VbM10hLi9WVGV4dGFyZWEuc2Fzc1wiKTtcbiAgICAgaWYobmV3Q29udGVudC5fX2VzTW9kdWxlKSBuZXdDb250ZW50ID0gbmV3Q29udGVudC5kZWZhdWx0O1xuICAgICBpZih0eXBlb2YgbmV3Q29udGVudCA9PT0gJ3N0cmluZycpIG5ld0NvbnRlbnQgPSBbW21vZHVsZS5pZCwgbmV3Q29udGVudCwgJyddXTtcbiAgICAgdXBkYXRlKG5ld0NvbnRlbnQpO1xuICAgfSk7XG4gfVxuIC8vIFdoZW4gdGhlIG1vZHVsZSBpcyBkaXNwb3NlZCwgcmVtb3ZlIHRoZSA8c3R5bGU+IHRhZ3NcbiBtb2R1bGUuaG90LmRpc3Bvc2UoZnVuY3Rpb24oKSB7IHVwZGF0ZSgpOyB9KTtcbn0iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/vuetify/src/components/VTextarea/VTextarea.sass\n");
/***/ }),
/***/ "./resources/js/components/thread/Reply.vue":
/*!**************************************************!*\
!*** ./resources/js/components/thread/Reply.vue ***!
\**************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Reply_vue_vue_type_template_id_4d722bd0___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Reply.vue?vue&type=template&id=4d722bd0& */ \"./resources/js/components/thread/Reply.vue?vue&type=template&id=4d722bd0&\");\n/* harmony import */ var _Reply_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Reply.vue?vue&type=script&lang=js& */ \"./resources/js/components/thread/Reply.vue?vue&type=script&lang=js&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n/* harmony import */ var _node_modules_vuetify_loader_lib_runtime_installComponents_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js */ \"./node_modules/vuetify-loader/lib/runtime/installComponents.js\");\n/* harmony import */ var _node_modules_vuetify_loader_lib_runtime_installComponents_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vuetify_loader_lib_runtime_installComponents_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var vuetify_lib_components_VAvatar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuetify/lib/components/VAvatar */ \"./node_modules/vuetify/lib/components/VAvatar/VAvatar.js\");\n/* harmony import */ var vuetify_lib_components_VBtn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuetify/lib/components/VBtn */ \"./node_modules/vuetify/lib/components/VBtn/VBtn.js\");\n/* harmony import */ var vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuetify/lib/components/VCard */ \"./node_modules/vuetify/lib/components/VCard/VCard.js\");\n/* harmony import */ var vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vuetify/lib/components/VCard */ \"./node_modules/vuetify/lib/components/VCard/index.js\");\n/* harmony import */ var vuetify_lib_components_VIcon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vuetify/lib/components/VIcon */ \"./node_modules/vuetify/lib/components/VIcon/VIcon.js\");\n/* harmony import */ var vuetify_lib_components_VImg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vuetify/lib/components/VImg */ \"./node_modules/vuetify/lib/components/VImg/VImg.js\");\n/* harmony import */ var vuetify_lib_components_VTextarea__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! vuetify/lib/components/VTextarea */ \"./node_modules/vuetify/lib/components/VTextarea/VTextarea.js\");\n\n\n\n\n\n/* normalize component */\n;\nvar component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)(\n _Reply_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default,\n _Reply_vue_vue_type_template_id_4d722bd0___WEBPACK_IMPORTED_MODULE_0__.render,\n _Reply_vue_vue_type_template_id_4d722bd0___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* vuetify-loader */\n;\n\n\n\n\n\n\n\n\n\n_node_modules_vuetify_loader_lib_runtime_installComponents_js__WEBPACK_IMPORTED_MODULE_3___default()(component, {VAvatar: vuetify_lib_components_VAvatar__WEBPACK_IMPORTED_MODULE_4__.default,VBtn: vuetify_lib_components_VBtn__WEBPACK_IMPORTED_MODULE_5__.default,VCard: vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_6__.default,VCardActions: vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_7__.VCardActions,VCardText: vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_7__.VCardText,VCardTitle: vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_7__.VCardTitle,VIcon: vuetify_lib_components_VIcon__WEBPACK_IMPORTED_MODULE_8__.default,VImg: vuetify_lib_components_VImg__WEBPACK_IMPORTED_MODULE_9__.default,VTextarea: vuetify_lib_components_VTextarea__WEBPACK_IMPORTED_MODULE_10__.default})\n\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/components/thread/Reply.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9SZXBseS52dWU/ODkzNyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQW9GO0FBQzNCO0FBQ0w7OztBQUdwRDtBQUNBLENBQWdHO0FBQ2hHLGdCQUFnQixvR0FBVTtBQUMxQixFQUFFLHdFQUFNO0FBQ1IsRUFBRSw2RUFBTTtBQUNSLEVBQUUsc0ZBQWU7QUFDakI7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7O0FBRUE7QUFDQSxDQUF5RztBQUNoRDtBQUNOO0FBQ0U7QUFDTztBQUNIO0FBQ0M7QUFDTDtBQUNGO0FBQ1U7QUFDN0Qsb0dBQWlCLGFBQWEsT0FBTywwRUFBSyx3RUFBTSxnRkFBYSxrRkFBVSxnRkFBVyw0RUFBTSx3RUFBSyw0RUFBVSx5RUFBQzs7O0FBR3hHO0FBQ0EsSUFBSSxLQUFVLEVBQUUsWUFpQmY7QUFDRDtBQUNBLCtEQUFlLGlCIiwiZmlsZSI6Ii4vcmVzb3VyY2VzL2pzL2NvbXBvbmVudHMvdGhyZWFkL1JlcGx5LnZ1ZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHJlbmRlciwgc3RhdGljUmVuZGVyRm5zIH0gZnJvbSBcIi4vUmVwbHkudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTRkNzIyYmQwJlwiXG5pbXBvcnQgc2NyaXB0IGZyb20gXCIuL1JlcGx5LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIlxuZXhwb3J0ICogZnJvbSBcIi4vUmVwbHkudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiXG5cblxuLyogbm9ybWFsaXplIGNvbXBvbmVudCAqL1xuaW1wb3J0IG5vcm1hbGl6ZXIgZnJvbSBcIiEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvcnVudGltZS9jb21wb25lbnROb3JtYWxpemVyLmpzXCJcbnZhciBjb21wb25lbnQgPSBub3JtYWxpemVyKFxuICBzY3JpcHQsXG4gIHJlbmRlcixcbiAgc3RhdGljUmVuZGVyRm5zLFxuICBmYWxzZSxcbiAgbnVsbCxcbiAgbnVsbCxcbiAgbnVsbFxuICBcbilcblxuLyogdnVldGlmeS1sb2FkZXIgKi9cbmltcG9ydCBpbnN0YWxsQ29tcG9uZW50cyBmcm9tIFwiIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWV0aWZ5LWxvYWRlci9saWIvcnVudGltZS9pbnN0YWxsQ29tcG9uZW50cy5qc1wiXG5pbXBvcnQgeyBWQXZhdGFyIH0gZnJvbSAndnVldGlmeS9saWIvY29tcG9uZW50cy9WQXZhdGFyJztcbmltcG9ydCB7IFZCdG4gfSBmcm9tICd2dWV0aWZ5L2xpYi9jb21wb25lbnRzL1ZCdG4nO1xuaW1wb3J0IHsgVkNhcmQgfSBmcm9tICd2dWV0aWZ5L2xpYi9jb21wb25lbnRzL1ZDYXJkJztcbmltcG9ydCB7IFZDYXJkQWN0aW9ucyB9IGZyb20gJ3Z1ZXRpZnkvbGliL2NvbXBvbmVudHMvVkNhcmQnO1xuaW1wb3J0IHsgVkNhcmRUZXh0IH0gZnJvbSAndnVldGlmeS9saWIvY29tcG9uZW50cy9WQ2FyZCc7XG5pbXBvcnQgeyBWQ2FyZFRpdGxlIH0gZnJvbSAndnVldGlmeS9saWIvY29tcG9uZW50cy9WQ2FyZCc7XG5pbXBvcnQgeyBWSWNvbiB9IGZyb20gJ3Z1ZXRpZnkvbGliL2NvbXBvbmVudHMvVkljb24nO1xuaW1wb3J0IHsgVkltZyB9IGZyb20gJ3Z1ZXRpZnkvbGliL2NvbXBvbmVudHMvVkltZyc7XG5pbXBvcnQgeyBWVGV4dGFyZWEgfSBmcm9tICd2dWV0aWZ5L2xpYi9jb21wb25lbnRzL1ZUZXh0YXJlYSc7XG5pbnN0YWxsQ29tcG9uZW50cyhjb21wb25lbnQsIHtWQXZhdGFyLFZCdG4sVkNhcmQsVkNhcmRBY3Rpb25zLFZDYXJkVGV4dCxWQ2FyZFRpdGxlLFZJY29uLFZJbWcsVlRleHRhcmVhfSlcblxuXG4vKiBob3QgcmVsb2FkICovXG5pZiAobW9kdWxlLmhvdCkge1xuICB2YXIgYXBpID0gcmVxdWlyZShcIkQ6XFxcXExhcmF2ZWxQcm9qZWN0c1xcXFxib3ljb3R0aW5nXFxcXG5vZGVfbW9kdWxlc1xcXFx2dWUtaG90LXJlbG9hZC1hcGlcXFxcZGlzdFxcXFxpbmRleC5qc1wiKVxuICBhcGkuaW5zdGFsbChyZXF1aXJlKCd2dWUnKSlcbiAgaWYgKGFwaS5jb21wYXRpYmxlKSB7XG4gICAgbW9kdWxlLmhvdC5hY2NlcHQoKVxuICAgIGlmICghYXBpLmlzUmVjb3JkZWQoJzRkNzIyYmQwJykpIHtcbiAgICAgIGFwaS5jcmVhdGVSZWNvcmQoJzRkNzIyYmQwJywgY29tcG9uZW50Lm9wdGlvbnMpXG4gICAgfSBlbHNlIHtcbiAgICAgIGFwaS5yZWxvYWQoJzRkNzIyYmQwJywgY29tcG9uZW50Lm9wdGlvbnMpXG4gICAgfVxuICAgIG1vZHVsZS5ob3QuYWNjZXB0KFwiLi9SZXBseS52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NGQ3MjJiZDAmXCIsIGZ1bmN0aW9uICgpIHtcbiAgICAgIGFwaS5yZXJlbmRlcignNGQ3MjJiZDAnLCB7XG4gICAgICAgIHJlbmRlcjogcmVuZGVyLFxuICAgICAgICBzdGF0aWNSZW5kZXJGbnM6IHN0YXRpY1JlbmRlckZuc1xuICAgICAgfSlcbiAgICB9KVxuICB9XG59XG5jb21wb25lbnQub3B0aW9ucy5fX2ZpbGUgPSBcInJlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9SZXBseS52dWVcIlxuZXhwb3J0IGRlZmF1bHQgY29tcG9uZW50LmV4cG9ydHMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/thread/Reply.vue\n");
/***/ }),
/***/ "./resources/js/components/thread/ThreadInfo.vue":
/*!*******************************************************!*\
!*** ./resources/js/components/thread/ThreadInfo.vue ***!
\*******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ThreadInfo_vue_vue_type_template_id_4c1bcde2___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThreadInfo.vue?vue&type=template&id=4c1bcde2& */ \"./resources/js/components/thread/ThreadInfo.vue?vue&type=template&id=4c1bcde2&\");\n/* harmony import */ var _ThreadInfo_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ThreadInfo.vue?vue&type=script&lang=js& */ \"./resources/js/components/thread/ThreadInfo.vue?vue&type=script&lang=js&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n/* harmony import */ var _node_modules_vuetify_loader_lib_runtime_installComponents_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js */ \"./node_modules/vuetify-loader/lib/runtime/installComponents.js\");\n/* harmony import */ var _node_modules_vuetify_loader_lib_runtime_installComponents_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vuetify_loader_lib_runtime_installComponents_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuetify/lib/components/VCard */ \"./node_modules/vuetify/lib/components/VCard/VCard.js\");\n/* harmony import */ var vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuetify/lib/components/VCard */ \"./node_modules/vuetify/lib/components/VCard/index.js\");\n\n\n\n\n\n/* normalize component */\n;\nvar component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)(\n _ThreadInfo_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default,\n _ThreadInfo_vue_vue_type_template_id_4c1bcde2___WEBPACK_IMPORTED_MODULE_0__.render,\n _ThreadInfo_vue_vue_type_template_id_4c1bcde2___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* vuetify-loader */\n;\n\n\n\n\n_node_modules_vuetify_loader_lib_runtime_installComponents_js__WEBPACK_IMPORTED_MODULE_3___default()(component, {VCard: vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_4__.default,VCardSubtitle: vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_5__.VCardSubtitle,VCardText: vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_5__.VCardText,VCardTitle: vuetify_lib_components_VCard__WEBPACK_IMPORTED_MODULE_5__.VCardTitle})\n\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/components/thread/ThreadInfo.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9UaHJlYWRJbmZvLnZ1ZT83MmNlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQXlGO0FBQzNCO0FBQ0w7OztBQUd6RDtBQUNBLENBQWdHO0FBQ2hHLGdCQUFnQixvR0FBVTtBQUMxQixFQUFFLDZFQUFNO0FBQ1IsRUFBRSxrRkFBTTtBQUNSLEVBQUUsMkZBQWU7QUFDakI7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7O0FBRUE7QUFDQSxDQUF5RztBQUNwRDtBQUNRO0FBQ0o7QUFDQztBQUMxRCxvR0FBaUIsYUFBYSxLQUFLLGlGQUFjLG1GQUFVLGdGQUFXLHVFQUFDOzs7QUFHdkU7QUFDQSxJQUFJLEtBQVUsRUFBRSxZQWlCZjtBQUNEO0FBQ0EsK0RBQWUsaUIiLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy90aHJlYWQvVGhyZWFkSW5mby52dWUuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyByZW5kZXIsIHN0YXRpY1JlbmRlckZucyB9IGZyb20gXCIuL1RocmVhZEluZm8udnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTRjMWJjZGUyJlwiXG5pbXBvcnQgc2NyaXB0IGZyb20gXCIuL1RocmVhZEluZm8udnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiXG5leHBvcnQgKiBmcm9tIFwiLi9UaHJlYWRJbmZvLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIlxuXG5cbi8qIG5vcm1hbGl6ZSBjb21wb25lbnQgKi9cbmltcG9ydCBub3JtYWxpemVyIGZyb20gXCIhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL3J1bnRpbWUvY29tcG9uZW50Tm9ybWFsaXplci5qc1wiXG52YXIgY29tcG9uZW50ID0gbm9ybWFsaXplcihcbiAgc2NyaXB0LFxuICByZW5kZXIsXG4gIHN0YXRpY1JlbmRlckZucyxcbiAgZmFsc2UsXG4gIG51bGwsXG4gIG51bGwsXG4gIG51bGxcbiAgXG4pXG5cbi8qIHZ1ZXRpZnktbG9hZGVyICovXG5pbXBvcnQgaW5zdGFsbENvbXBvbmVudHMgZnJvbSBcIiEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVldGlmeS1sb2FkZXIvbGliL3J1bnRpbWUvaW5zdGFsbENvbXBvbmVudHMuanNcIlxuaW1wb3J0IHsgVkNhcmQgfSBmcm9tICd2dWV0aWZ5L2xpYi9jb21wb25lbnRzL1ZDYXJkJztcbmltcG9ydCB7IFZDYXJkU3VidGl0bGUgfSBmcm9tICd2dWV0aWZ5L2xpYi9jb21wb25lbnRzL1ZDYXJkJztcbmltcG9ydCB7IFZDYXJkVGV4dCB9IGZyb20gJ3Z1ZXRpZnkvbGliL2NvbXBvbmVudHMvVkNhcmQnO1xuaW1wb3J0IHsgVkNhcmRUaXRsZSB9IGZyb20gJ3Z1ZXRpZnkvbGliL2NvbXBvbmVudHMvVkNhcmQnO1xuaW5zdGFsbENvbXBvbmVudHMoY29tcG9uZW50LCB7VkNhcmQsVkNhcmRTdWJ0aXRsZSxWQ2FyZFRleHQsVkNhcmRUaXRsZX0pXG5cblxuLyogaG90IHJlbG9hZCAqL1xuaWYgKG1vZHVsZS5ob3QpIHtcbiAgdmFyIGFwaSA9IHJlcXVpcmUoXCJEOlxcXFxMYXJhdmVsUHJvamVjdHNcXFxcYm95Y290dGluZ1xcXFxub2RlX21vZHVsZXNcXFxcdnVlLWhvdC1yZWxvYWQtYXBpXFxcXGRpc3RcXFxcaW5kZXguanNcIilcbiAgYXBpLmluc3RhbGwocmVxdWlyZSgndnVlJykpXG4gIGlmIChhcGkuY29tcGF0aWJsZSkge1xuICAgIG1vZHVsZS5ob3QuYWNjZXB0KClcbiAgICBpZiAoIWFwaS5pc1JlY29yZGVkKCc0YzFiY2RlMicpKSB7XG4gICAgICBhcGkuY3JlYXRlUmVjb3JkKCc0YzFiY2RlMicsIGNvbXBvbmVudC5vcHRpb25zKVxuICAgIH0gZWxzZSB7XG4gICAgICBhcGkucmVsb2FkKCc0YzFiY2RlMicsIGNvbXBvbmVudC5vcHRpb25zKVxuICAgIH1cbiAgICBtb2R1bGUuaG90LmFjY2VwdChcIi4vVGhyZWFkSW5mby52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NGMxYmNkZTImXCIsIGZ1bmN0aW9uICgpIHtcbiAgICAgIGFwaS5yZXJlbmRlcignNGMxYmNkZTInLCB7XG4gICAgICAgIHJlbmRlcjogcmVuZGVyLFxuICAgICAgICBzdGF0aWNSZW5kZXJGbnM6IHN0YXRpY1JlbmRlckZuc1xuICAgICAgfSlcbiAgICB9KVxuICB9XG59XG5jb21wb25lbnQub3B0aW9ucy5fX2ZpbGUgPSBcInJlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9UaHJlYWRJbmZvLnZ1ZVwiXG5leHBvcnQgZGVmYXVsdCBjb21wb25lbnQuZXhwb3J0cyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/thread/ThreadInfo.vue\n");
/***/ }),
/***/ "./resources/js/components/thread/ThreadReplies.vue":
/*!**********************************************************!*\
!*** ./resources/js/components/thread/ThreadReplies.vue ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ThreadReplies_vue_vue_type_template_id_23f3cc84___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThreadReplies.vue?vue&type=template&id=23f3cc84& */ \"./resources/js/components/thread/ThreadReplies.vue?vue&type=template&id=23f3cc84&\");\n/* harmony import */ var _ThreadReplies_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ThreadReplies.vue?vue&type=script&lang=js& */ \"./resources/js/components/thread/ThreadReplies.vue?vue&type=script&lang=js&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n;\nvar component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)(\n _ThreadReplies_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default,\n _ThreadReplies_vue_vue_type_template_id_23f3cc84___WEBPACK_IMPORTED_MODULE_0__.render,\n _ThreadReplies_vue_vue_type_template_id_23f3cc84___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/components/thread/ThreadReplies.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9UaHJlYWRSZXBsaWVzLnZ1ZT80YmQ1Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBNEY7QUFDM0I7QUFDTDs7O0FBRzVEO0FBQ0EsQ0FBZ0c7QUFDaEcsZ0JBQWdCLG9HQUFVO0FBQzFCLEVBQUUsZ0ZBQU07QUFDUixFQUFFLHFGQUFNO0FBQ1IsRUFBRSw4RkFBZTtBQUNqQjtBQUNBO0FBQ0E7QUFDQTs7QUFFQTs7QUFFQTtBQUNBLElBQUksS0FBVSxFQUFFLFlBaUJmO0FBQ0Q7QUFDQSwrREFBZSxpQiIsImZpbGUiOiIuL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9UaHJlYWRSZXBsaWVzLnZ1ZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHJlbmRlciwgc3RhdGljUmVuZGVyRm5zIH0gZnJvbSBcIi4vVGhyZWFkUmVwbGllcy52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9MjNmM2NjODQmXCJcbmltcG9ydCBzY3JpcHQgZnJvbSBcIi4vVGhyZWFkUmVwbGllcy52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCJcbmV4cG9ydCAqIGZyb20gXCIuL1RocmVhZFJlcGxpZXMudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiXG5cblxuLyogbm9ybWFsaXplIGNvbXBvbmVudCAqL1xuaW1wb3J0IG5vcm1hbGl6ZXIgZnJvbSBcIiEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvcnVudGltZS9jb21wb25lbnROb3JtYWxpemVyLmpzXCJcbnZhciBjb21wb25lbnQgPSBub3JtYWxpemVyKFxuICBzY3JpcHQsXG4gIHJlbmRlcixcbiAgc3RhdGljUmVuZGVyRm5zLFxuICBmYWxzZSxcbiAgbnVsbCxcbiAgbnVsbCxcbiAgbnVsbFxuICBcbilcblxuLyogaG90IHJlbG9hZCAqL1xuaWYgKG1vZHVsZS5ob3QpIHtcbiAgdmFyIGFwaSA9IHJlcXVpcmUoXCJEOlxcXFxMYXJhdmVsUHJvamVjdHNcXFxcYm95Y290dGluZ1xcXFxub2RlX21vZHVsZXNcXFxcdnVlLWhvdC1yZWxvYWQtYXBpXFxcXGRpc3RcXFxcaW5kZXguanNcIilcbiAgYXBpLmluc3RhbGwocmVxdWlyZSgndnVlJykpXG4gIGlmIChhcGkuY29tcGF0aWJsZSkge1xuICAgIG1vZHVsZS5ob3QuYWNjZXB0KClcbiAgICBpZiAoIWFwaS5pc1JlY29yZGVkKCcyM2YzY2M4NCcpKSB7XG4gICAgICBhcGkuY3JlYXRlUmVjb3JkKCcyM2YzY2M4NCcsIGNvbXBvbmVudC5vcHRpb25zKVxuICAgIH0gZWxzZSB7XG4gICAgICBhcGkucmVsb2FkKCcyM2YzY2M4NCcsIGNvbXBvbmVudC5vcHRpb25zKVxuICAgIH1cbiAgICBtb2R1bGUuaG90LmFjY2VwdChcIi4vVGhyZWFkUmVwbGllcy52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9MjNmM2NjODQmXCIsIGZ1bmN0aW9uICgpIHtcbiAgICAgIGFwaS5yZXJlbmRlcignMjNmM2NjODQnLCB7XG4gICAgICAgIHJlbmRlcjogcmVuZGVyLFxuICAgICAgICBzdGF0aWNSZW5kZXJGbnM6IHN0YXRpY1JlbmRlckZuc1xuICAgICAgfSlcbiAgICB9KVxuICB9XG59XG5jb21wb25lbnQub3B0aW9ucy5fX2ZpbGUgPSBcInJlc291cmNlcy9qcy9jb21wb25lbnRzL3RocmVhZC9UaHJlYWRSZXBsaWVzLnZ1ZVwiXG5leHBvcnQgZGVmYXVsdCBjb21wb25lbnQuZXhwb3J0cyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/thread/ThreadReplies.vue\n");
/***/ }),
/***/ "./resources/js/pages/thread/Show.vue":
/*!********************************************!*\
!*** ./resources/js/pages/thread/Show.vue ***!
\********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Show_vue_vue_type_template_id_5cd26fae___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Show.vue?vue&type=template&id=5cd26fae& */ \"./resources/js/pages/thread/Show.vue?vue&type=template&id=5cd26fae&\");\n/* harmony import */ var _Show_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Show.vue?vue&type=script&lang=js& */ \"./resources/js/pages/thread/Show.vue?vue&type=script&lang=js&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n/* harmony import */ var _node_modules_vuetify_loader_lib_runtime_installComponents_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js */ \"./node_modules/vuetify-loader/lib/runtime/installComponents.js\");\n/* harmony import */ var _node_modules_vuetify_loader_lib_runtime_installComponents_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vuetify_loader_lib_runtime_installComponents_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var vuetify_lib_components_VDivider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuetify/lib/components/VDivider */ \"./node_modules/vuetify/lib/components/VDivider/VDivider.js\");\n\n\n\n\n\n/* normalize component */\n;\nvar component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)(\n _Show_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default,\n _Show_vue_vue_type_template_id_5cd26fae___WEBPACK_IMPORTED_MODULE_0__.render,\n _Show_vue_vue_type_template_id_5cd26fae___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* vuetify-loader */\n;\n\n_node_modules_vuetify_loader_lib_runtime_installComponents_js__WEBPACK_IMPORTED_MODULE_3___default()(component, {VDivider: vuetify_lib_components_VDivider__WEBPACK_IMPORTED_MODULE_4__.default})\n\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/pages/thread/Show.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL3Jlc291cmNlcy9qcy9wYWdlcy90aHJlYWQvU2hvdy52dWU/M2E1ZCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQW1GO0FBQzNCO0FBQ0w7OztBQUduRDtBQUNBLENBQWdHO0FBQ2hHLGdCQUFnQixvR0FBVTtBQUMxQixFQUFFLHVFQUFNO0FBQ1IsRUFBRSw0RUFBTTtBQUNSLEVBQUUscUZBQWU7QUFDakI7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7O0FBRUE7QUFDQSxDQUF5RztBQUM5QztBQUMzRCxvR0FBaUIsYUFBYSxRQUFRLHVFQUFDOzs7QUFHdkM7QUFDQSxJQUFJLEtBQVUsRUFBRSxZQWlCZjtBQUNEO0FBQ0EsK0RBQWUsaUIiLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvdGhyZWFkL1Nob3cudnVlLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfSBmcm9tIFwiLi9TaG93LnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD01Y2QyNmZhZSZcIlxuaW1wb3J0IHNjcmlwdCBmcm9tIFwiLi9TaG93LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIlxuZXhwb3J0ICogZnJvbSBcIi4vU2hvdy52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCJcblxuXG4vKiBub3JtYWxpemUgY29tcG9uZW50ICovXG5pbXBvcnQgbm9ybWFsaXplciBmcm9tIFwiIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9ydW50aW1lL2NvbXBvbmVudE5vcm1hbGl6ZXIuanNcIlxudmFyIGNvbXBvbmVudCA9IG5vcm1hbGl6ZXIoXG4gIHNjcmlwdCxcbiAgcmVuZGVyLFxuICBzdGF0aWNSZW5kZXJGbnMsXG4gIGZhbHNlLFxuICBudWxsLFxuICBudWxsLFxuICBudWxsXG4gIFxuKVxuXG4vKiB2dWV0aWZ5LWxvYWRlciAqL1xuaW1wb3J0IGluc3RhbGxDb21wb25lbnRzIGZyb20gXCIhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZXRpZnktbG9hZGVyL2xpYi9ydW50aW1lL2luc3RhbGxDb21wb25lbnRzLmpzXCJcbmltcG9ydCB7IFZEaXZpZGVyIH0gZnJvbSAndnVldGlmeS9saWIvY29tcG9uZW50cy9WRGl2aWRlcic7XG5pbnN0YWxsQ29tcG9uZW50cyhjb21wb25lbnQsIHtWRGl2aWRlcn0pXG5cblxuLyogaG90IHJlbG9hZCAqL1xuaWYgKG1vZHVsZS5ob3QpIHtcbiAgdmFyIGFwaSA9IHJlcXVpcmUoXCJEOlxcXFxMYXJhdmVsUHJvamVjdHNcXFxcYm95Y290dGluZ1xcXFxub2RlX21vZHVsZXNcXFxcdnVlLWhvdC1yZWxvYWQtYXBpXFxcXGRpc3RcXFxcaW5kZXguanNcIilcbiAgYXBpLmluc3RhbGwocmVxdWlyZSgndnVlJykpXG4gIGlmIChhcGkuY29tcGF0aWJsZSkge1xuICAgIG1vZHVsZS5ob3QuYWNjZXB0KClcbiAgICBpZiAoIWFwaS5pc1JlY29yZGVkKCc1Y2QyNmZhZScpKSB7XG4gICAgICBhcGkuY3JlYXRlUmVjb3JkKCc1Y2QyNmZhZScsIGNvbXBvbmVudC5vcHRpb25zKVxuICAgIH0gZWxzZSB7XG4gICAgICBhcGkucmVsb2FkKCc1Y2QyNmZhZScsIGNvbXBvbmVudC5vcHRpb25zKVxuICAgIH1cbiAgICBtb2R1bGUuaG90LmFjY2VwdChcIi4vU2hvdy52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NWNkMjZmYWUmXCIsIGZ1bmN0aW9uICgpIHtcbiAgICAgIGFwaS5yZXJlbmRlcignNWNkMjZmYWUnLCB7XG4gICAgICAgIHJlbmRlcjogcmVuZGVyLFxuICAgICAgICBzdGF0aWNSZW5kZXJGbnM6IHN0YXRpY1JlbmRlckZuc1xuICAgICAgfSlcbiAgICB9KVxuICB9XG59XG5jb21wb25lbnQub3B0aW9ucy5fX2ZpbGUgPSBcInJlc291cmNlcy9qcy9wYWdlcy90aHJlYWQvU2hvdy52dWVcIlxuZXhwb3J0IGRlZmF1bHQgY29tcG9uZW50LmV4cG9ydHMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/pages/thread/Show.vue\n");
/***/ }),
/***/ "./node_modules/vuetify/lib/components/VCard/index.js":
/*!************************************************************!*\
!*** ./node_modules/vuetify/lib/components/VCard/index.js ***!
\************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"VCard\": function() { return /* reexport safe */ _VCard__WEBPACK_IMPORTED_MODULE_1__.default; },\n/* harmony export */ \"VCardActions\": function() { return /* binding */ VCardActions; },\n/* harmony export */ \"VCardSubtitle\": function() { return /* binding */ VCardSubtitle; },\n/* harmony export */ \"VCardText\": function() { return /* binding */ VCardText; },\n/* harmony export */ \"VCardTitle\": function() { return /* binding */ VCardTitle; }\n/* harmony export */ });\n/* harmony import */ var _VCard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VCard */ \"./node_modules/vuetify/lib/components/VCard/VCard.js\");\n/* harmony import */ var _util_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/helpers */ \"./node_modules/vuetify/lib/util/helpers.js\");\n\n\nconst VCardActions = (0,_util_helpers__WEBPACK_IMPORTED_MODULE_0__.createSimpleFunctional)('v-card__actions');\nconst VCardSubtitle = (0,_util_helpers__WEBPACK_IMPORTED_MODULE_0__.createSimpleFunctional)('v-card__subtitle');\nconst VCardText = (0,_util_helpers__WEBPACK_IMPORTED_MODULE_0__.createSimpleFunctional)('v-card__text');\nconst VCardTitle = (0,_util_helpers__WEBPACK_IMPORTED_MODULE_0__.createSimpleFunctional)('v-card__title');\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n $_vuetify_subcomponents: {\n VCard: _VCard__WEBPACK_IMPORTED_MODULE_1__.default,\n VCardActions,\n VCardSubtitle,\n VCardText,\n VCardTitle\n }\n});\n//# sourceMappingURL=index.js.map//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL25vZGVfbW9kdWxlcy92dWV0aWZ5L2xpYi9jb21wb25lbnRzL1ZDYXJkL2luZGV4LmpzPzk5ZDkiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUE0QjtBQUNnQztBQUM1RCxxQkFBcUIscUVBQXNCO0FBQzNDLHNCQUFzQixxRUFBc0I7QUFDNUMsa0JBQWtCLHFFQUFzQjtBQUN4QyxtQkFBbUIscUVBQXNCO0FBQzRCO0FBQ3JFLCtEQUFlO0FBQ2Y7QUFDQSxTQUFTO0FBQ1Q7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLENBQUMsRUFBQztBQUNGIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL3Z1ZXRpZnkvbGliL2NvbXBvbmVudHMvVkNhcmQvaW5kZXguanMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgVkNhcmQgZnJvbSAnLi9WQ2FyZCc7XG5pbXBvcnQgeyBjcmVhdGVTaW1wbGVGdW5jdGlvbmFsIH0gZnJvbSAnLi4vLi4vdXRpbC9oZWxwZXJzJztcbmNvbnN0IFZDYXJkQWN0aW9ucyA9IGNyZWF0ZVNpbXBsZUZ1bmN0aW9uYWwoJ3YtY2FyZF9fYWN0aW9ucycpO1xuY29uc3QgVkNhcmRTdWJ0aXRsZSA9IGNyZWF0ZVNpbXBsZUZ1bmN0aW9uYWwoJ3YtY2FyZF9fc3VidGl0bGUnKTtcbmNvbnN0IFZDYXJkVGV4dCA9IGNyZWF0ZVNpbXBsZUZ1bmN0aW9uYWwoJ3YtY2FyZF9fdGV4dCcpO1xuY29uc3QgVkNhcmRUaXRsZSA9IGNyZWF0ZVNpbXBsZUZ1bmN0aW9uYWwoJ3YtY2FyZF9fdGl0bGUnKTtcbmV4cG9ydCB7IFZDYXJkLCBWQ2FyZEFjdGlvbnMsIFZDYXJkU3VidGl0bGUsIFZDYXJkVGV4dCwgVkNhcmRUaXRsZSB9O1xuZXhwb3J0IGRlZmF1bHQge1xuICAkX3Z1ZXRpZnlfc3ViY29tcG9uZW50czoge1xuICAgIFZDYXJkLFxuICAgIFZDYXJkQWN0aW9ucyxcbiAgICBWQ2FyZFN1YnRpdGxlLFxuICAgIFZDYXJkVGV4dCxcbiAgICBWQ2FyZFRpdGxlXG4gIH1cbn07XG4vLyMgc291cmNlTWFwcGluZ1VSTD1pbmRleC5qcy5tYXAiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/vuetify/lib/components/VCard/index.js\n");
/***/ }),
/***/ "./node_modules/vuetify/lib/components/VTextarea/VTextarea.js":
/*!********************************************************************!*\
!*** ./node_modules/vuetify/lib/components/VTextarea/VTextarea.js ***!
\********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _src_components_VTextarea_VTextarea_sass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../src/components/VTextarea/VTextarea.sass */ \"./node_modules/vuetify/src/components/VTextarea/VTextarea.sass\");\n/* harmony import */ var _src_components_VTextarea_VTextarea_sass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_src_components_VTextarea_VTextarea_sass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VTextField/VTextField */ \"./node_modules/vuetify/lib/components/VTextField/VTextField.js\");\n/* harmony import */ var _util_mixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/mixins */ \"./node_modules/vuetify/lib/util/mixins.js\");\n// Styles\n // Extensions\n\n // Utilities\n\n\nconst baseMixins = (0,_util_mixins__WEBPACK_IMPORTED_MODULE_1__.default)(_VTextField_VTextField__WEBPACK_IMPORTED_MODULE_2__.default);\n/* @vue/component */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (baseMixins.extend({\n name: 'v-textarea',\n props: {\n autoGrow: Boolean,\n noResize: Boolean,\n rowHeight: {\n type: [Number, String],\n default: 24,\n validator: v => !isNaN(parseFloat(v))\n },\n rows: {\n type: [Number, String],\n default: 5,\n validator: v => !isNaN(parseInt(v, 10))\n }\n },\n computed: {\n classes() {\n return {\n 'v-textarea': true,\n 'v-textarea--auto-grow': this.autoGrow,\n 'v-textarea--no-resize': this.noResizeHandle,\n ..._VTextField_VTextField__WEBPACK_IMPORTED_MODULE_2__.default.options.computed.classes.call(this)\n };\n },\n\n noResizeHandle() {\n return this.noResize || this.autoGrow;\n }\n\n },\n watch: {\n lazyValue() {\n this.autoGrow && this.$nextTick(this.calculateInputHeight);\n },\n\n rowHeight() {\n this.autoGrow && this.$nextTick(this.calculateInputHeight);\n }\n\n },\n\n mounted() {\n setTimeout(() => {\n this.autoGrow && this.calculateInputHeight();\n }, 0);\n },\n\n methods: {\n calculateInputHeight() {\n const input = this.$refs.input;\n if (!input) return;\n input.style.height = '0';\n const height = input.scrollHeight;\n const minHeight = parseInt(this.rows, 10) * parseFloat(this.rowHeight); // This has to be done ASAP, waiting for Vue\n // to update the DOM causes ugly layout jumping\n\n input.style.height = Math.max(minHeight, height) + 'px';\n },\n\n genInput() {\n const input = _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_2__.default.options.methods.genInput.call(this);\n input.tag = 'textarea';\n delete input.data.attrs.type;\n input.data.attrs.rows = this.rows;\n return input;\n },\n\n onInput(e) {\n _VTextField_VTextField__WEBPACK_IMPORTED_MODULE_2__.default.options.methods.onInput.call(this, e);\n this.autoGrow && this.calculateInputHeight();\n },\n\n onKeyDown(e) {\n // Prevents closing of a\n // dialog when pressing\n // enter\n if (this.isFocused && e.keyCode === 13) {\n e.stopPropagation();\n }\n\n this.$emit('keydown', e);\n }\n\n }\n}));\n//# sourceMappingURL=VTextarea.js.map//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AbHV4L2xhcmF2ZWwtc3RhcnRlci8uL25vZGVfbW9kdWxlcy92dWV0aWZ5L2xpYi9jb21wb25lbnRzL1ZUZXh0YXJlYS9WVGV4dGFyZWEuanM/YTg0NCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBO0FBQzBEOztBQUVSOztBQUVYO0FBQ3ZDLG1CQUFtQixxREFBTSxDQUFDLDJEQUFVO0FBQ3BDOztBQUVBLCtEQUFlO0FBQ2Y7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBQUs7QUFDTDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsR0FBRztBQUNIO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFdBQVcseUZBQXdDO0FBQ25EO0FBQ0EsS0FBSzs7QUFFTDtBQUNBO0FBQ0E7O0FBRUEsR0FBRztBQUNIO0FBQ0E7QUFDQTtBQUNBLEtBQUs7O0FBRUw7QUFDQTtBQUNBOztBQUVBLEdBQUc7O0FBRUg7QUFDQTtBQUNBO0FBQ0EsS0FBSztBQUNMLEdBQUc7O0FBRUg7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsNkVBQTZFO0FBQzdFOztBQUVBO0FBQ0EsS0FBSzs7QUFFTDtBQUNBLG9CQUFvQix5RkFBd0M7QUFDNUQ7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUFLOztBQUVMO0FBQ0EsTUFBTSx3RkFBdUM7QUFDN0M7QUFDQSxLQUFLOztBQUVMO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQSxDQUFDLENBQUMsRUFBQztBQUNIIiwiZmlsZSI6Ii4vbm9kZV9tb2R1bGVzL3Z1ZXRpZnkvbGliL2NvbXBvbmVudHMvVlRleHRhcmVhL1ZUZXh0YXJlYS5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIFN0eWxlc1xuaW1wb3J0IFwiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvVlRleHRhcmVhL1ZUZXh0YXJlYS5zYXNzXCI7IC8vIEV4dGVuc2lvbnNcblxuaW1wb3J0IFZUZXh0RmllbGQgZnJvbSAnLi4vVlRleHRGaWVsZC9WVGV4dEZpZWxkJzsgLy8gVXRpbGl0aWVzXG5cbmltcG9ydCBtaXhpbnMgZnJvbSAnLi4vLi4vdXRpbC9taXhpbnMnO1xuY29uc3QgYmFzZU1peGlucyA9IG1peGlucyhWVGV4dEZpZWxkKTtcbi8qIEB2dWUvY29tcG9uZW50ICovXG5cbmV4cG9ydCBkZWZhdWx0IGJhc2VNaXhpbnMuZXh0ZW5kKHtcbiAgbmFtZTogJ3YtdGV4dGFyZWEnLFxuICBwcm9wczoge1xuICAgIGF1dG9Hcm93OiBCb29sZWFuLFxuICAgIG5vUmVzaXplOiBCb29sZWFuLFxuICAgIHJvd0hlaWdodDoge1xuICAgICAgdHlwZTogW051bWJlciwgU3RyaW5nXSxcbiAgICAgIGRlZmF1bHQ6IDI0LFxuICAgICAgdmFsaWRhdG9yOiB2ID0+ICFpc05hTihwYXJzZUZsb2F0KHYpKVxuICAgIH0sXG4gICAgcm93czoge1xuICAgICAgdHlwZTogW051bWJlciwgU3RyaW5nXSxcbiAgICAgIGRlZmF1bHQ6IDUsXG4gICAgICB2YWxpZGF0b3I6IHYgPT4gIWlzTmFOKHBhcnNlSW50KHYsIDEwKSlcbiAgICB9XG4gIH0sXG4gIGNvbXB1dGVkOiB7XG4gICAgY2xhc3NlcygpIHtcbiAgICAgIHJldHVybiB7XG4gICAgICAgICd2LXRleHRhcmVhJzogdHJ1ZSxcbiAgICAgICAgJ3YtdGV4dGFyZWEtLWF1dG8tZ3Jvdyc6IHRoaXMuYXV0b0dyb3csXG4gICAgICAgICd2LXRleHRhcmVhLS1uby1yZXNpemUnOiB0aGlzLm5vUmVzaXplSGFuZGxlLFxuICAgICAgICAuLi5WVGV4dEZpZWxkLm9wdGlvbnMuY29tcHV0ZWQuY2xhc3Nlcy5jYWxsKHRoaXMpXG4gICAgICB9O1xuICAgIH0sXG5cbiAgICBub1Jlc2l6ZUhhbmRsZSgpIHtcbiAgICAgIHJldHVybiB0aGlzLm5vUmVzaXplIHx8IHRoaXMuYXV0b0dyb3c7XG4gICAgfVxuXG4gIH0sXG4gIHdhdGNoOiB7XG4gICAgbGF6eVZhbHVlKCkge1xuICAgICAgdGhpcy5hdXRvR3JvdyAmJiB0aGlzLiRuZXh0VGljayh0aGlzLmNhbGN1bGF0ZUlucHV0SGVpZ2h0KTtcbiAgICB9LFxuXG4gICAgcm93SGVpZ2h0KCkge1xuICAgICAgdGhpcy5hdXRvR3JvdyAmJiB0aGlzLiRuZXh0VGljayh0aGlzLmNhbGN1bGF0ZUlucHV0SGVpZ2h0KTtcbiAgICB9XG5cbiAgfSxcblxuICBtb3VudGVkKCkge1xuICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgdGhpcy5hdXRvR3JvdyAmJiB0aGlzLmNhbGN1bGF0ZUlucHV0SGVpZ2h0KCk7XG4gICAgfSwgMCk7XG4gIH0sXG5cbiAgbWV0aG9kczoge1xuICAgIGNhbGN1bGF0ZUlucHV0SGVpZ2h0KCkge1xuICAgICAgY29uc3QgaW5wdXQgPSB0aGlzLiRyZWZzLmlucHV0O1xuICAgICAgaWYgKCFpbnB1dCkgcmV0dXJuO1xuICAgICAgaW5wdXQuc3R5bGUuaGVpZ2h0ID0gJzAnO1xuICAgICAgY29uc3QgaGVpZ2h0ID0gaW5wdXQuc2Nyb2xsSGVpZ2h0O1xuICAgICAgY29uc3QgbWluSGVpZ2h0ID0gcGFyc2VJbnQodGhpcy5yb3dzLCAxMCkgKiBwYXJzZUZsb2F0KHRoaXMucm93SGVpZ2h0KTsgLy8gVGhpcyBoYXMgdG8gYmUgZG9uZSBBU0FQLCB3YWl0aW5nIGZvciBWdWVcbiAgICAgIC8vIHRvIHVwZGF0ZSB0aGUgRE9NIGNhdXNlcyB1Z2x5IGxheW91dCBqdW1waW5nXG5cbiAgICAgIGlucHV0LnN0eWxlLmhlaWdodCA9IE1hdGgubWF4KG1pbkhlaWdodCwgaGVpZ2h0KSArICdweCc7XG4gICAgfSxcblxuICAgIGdlbklucHV0KCkge1xuICAgICAgY29uc3QgaW5wdXQgPSBWVGV4dEZpZWxkLm9wdGlvbnMubWV0aG9kcy5nZW5JbnB1dC5jYWxsKHRoaXMpO1xuICAgICAgaW5wdXQudGFnID0gJ3RleHRhcmVhJztcbiAgICAgIGRlbGV0ZSBpbnB1dC5kYXRhLmF0dHJzLnR5cGU7XG4gICAgICBpbnB1dC5kYXRhLmF0dHJzLnJvd3MgPSB0aGlzLnJvd3M7XG4gICAgICByZXR1cm4gaW5wdXQ7XG4gICAgfSxcblxuICAgIG9uSW5wdXQoZSkge1xuICAgICAgVlRleHRGaWVsZC5vcHRpb25zLm1ldGhvZHMub25JbnB1dC5jYWxsKHRoaXMsIGUpO1xuICAgICAgdGhpcy5hdXRvR3JvdyAmJiB0aGlzLmNhbGN1bGF0ZUlucHV0SGVpZ2h0KCk7XG4gICAgfSxcblxuICAgIG9uS2V5RG93bihlKSB7XG4gICAgICAvLyBQcmV2ZW50cyBjbG9zaW5nIG9mIGFcbiAgICAgIC8vIGRpYWxvZyB3aGVuIHByZXNzaW5nXG4gICAgICAvLyBlbnRlclxuICAgICAgaWYgKHRoaXMuaXNGb2N1c2VkICYmIGUua2V5Q29kZSA9PT0gMTMpIHtcbiAgICAgICAgZS5zdG9wUHJvcGFnYXRpb24oKTtcbiAgICAgIH1cblxuICAgICAgdGhpcy4kZW1pdCgna2V5ZG93bicsIGUpO1xuICAgIH1cblxuICB9XG59KTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPVZUZXh0YXJlYS5qcy5tYXAiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/vuetify/lib/components/VTextarea/VTextarea.js\n");
/***/ })
}]);
|
import SegmentsController from '../../src/dash/controllers/SegmentsController';
import DashConstants from '../../src/dash/constants/DashConstants';
import Debug from '../../src/core/Debug';
import Settings from '../../src/core/Settings';
import EventBus from '../../src/core/EventBus';
import Events from '../../src/core/events/Events';
import Errors from '../../src/core/errors/Errors';
import ObjectsHelper from './helpers/ObjectsHelper';
import DashMetricsMock from './mocks/DashMetricsMock';
import MediaPlayerModelMock from './mocks/MediaPlayerModelMock';
import ErrorHandlerMock from './mocks/ErrorHandlerMock';
const chai = require('chai');
const expect = chai.expect;
describe('SegmentsController', function () {
// Arrange
const context = {};
const objectsHelper = new ObjectsHelper();
const baseURLController = objectsHelper.getDummyBaseURLController();
const mediaPlayerModel = new MediaPlayerModelMock();
const dashMetricsMock = new DashMetricsMock();
const errHandler = new ErrorHandlerMock();
const settings = Settings(context).getInstance();
const debug = Debug(context).getInstance({settings: settings});
const eventBus = EventBus(context).getInstance();
const segmentsController = SegmentsController(context).create({
streamInfo: {streamId: 'streamId'},
dashMetrics: dashMetricsMock,
mediaPlayerModel: mediaPlayerModel,
errHandler: errHandler,
baseURLController: baseURLController,
dashConstants: DashConstants,
debug: debug,
eventBus: eventBus,
events: Events,
errors: Errors
}, false);
segmentsController.initialize();
it('getSegmentByIndex should return null if representation type is unknown', function () {
// Act
const representation = {
'segmentInfoType': 'unknown'
};
let s = segmentsController.getSegmentByIndex(representation, 0, 0);
// Assert
expect(s).to.be.null; // jshint ignore:line
});
it('getSegmentByTime should return null if representation type is unknown', function () {
// Act
const representation = {
'segmentInfoType': 'unknown'
};
let s = segmentsController.getSegmentByTime(representation, 0, 0);
// Assert
expect(s).to.be.null; // jshint ignore:line
});
});
|
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Popover from '@material-ui/core/Popover';
import Typography from '@material-ui/core/Typography';
import Button from '@material-ui/core/Button';
const useStyles = makeStyles(theme => ({
typography: {
padding: theme.spacing(2),
},
}));
export default function SimplePopover() {
const classes = useStyles();
const [anchorEl, setAnchorEl] = React.useState(null);
const handleClick = event => {
setAnchorEl(event.currentTarget);
};
const handleClose = () => {
setAnchorEl(null);
};
const open = Boolean(anchorEl);
const id = open ? 'simple-popover' : undefined;
return (
<div>
<Button aria-describedby={id} variant="contained" onClick={handleClick}>
Open Popover
</Button>
<Popover
id={id}
open={open}
anchorEl={anchorEl}
onClose={handleClose}
anchorOrigin={{
vertical: 'bottom',
horizontal: 'center',
}}
transformOrigin={{
vertical: 'top',
horizontal: 'center',
}}
>
<Typography className={classes.typography}>The content of the Popover.</Typography>
</Popover>
</div>
);
}
|
module.exports = {
plugins: [
require('tailwindcss')
]
};
|
!function(e){function r(r){for(var n,u,p=r[0],f=r[1],i=r[2],c=0,s=[];c<p.length;c++)u=p[c],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(a&&a(r);s.length;)s.shift()();return l.push.apply(l,i||[]),t()}function t(){for(var e,r=0;r<l.length;r++){for(var t=l[r],n=!0,p=1;p<t.length;p++){var f=t[p];0!==o[f]&&(n=!1)}n&&(l.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={1:0},l=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="/sleepyowl/";var p=this.webpackJsonpsleepyowl=this.webpackJsonpsleepyowl||[],f=p.push.bind(p);p.push=r,p=p.slice();for(var i=0;i<p.length;i++)r(p[i]);var a=f;t()}([]);
//# sourceMappingURL=runtime-main.5e15a8d8.js.map
|
let mongoose = require('mongoose');
mongoose.Promise = Promise;
export class StudentProvider{
constructor(model) {
if (!model)
this._model = mongoose.model('Student');
else
this._model = model;
}
getAllStudentsByPage(limit, page, filter, orderBy){
// filtering and orderBy queries are objects that conform to Mongoose's querying pattern
// docs: http://mongoosejs.com/docs/queries.html
return this._model
.find(filter)
.sort(orderBy)
.limit(limit)
.skip(limit * (page - 1))
.lean()
.catch((err) => {
console.error(err);
});
}
getStudentCount(){
return this._model.count({});
}
getStudent(id){
if (typeof id === 'undefined' )
throw new Error("ArgumentError: id cannot be undefined!");
return this._model.findOne({_id: id});
}
postStudent(studentData){
if (typeof studentData === 'undefined')
throw new Error("ArgumentError: student data is undefined!");
return new this._model(studentData).save();
}
updateStudent(id, studentData){
if (typeof id === 'undefined' || typeof studentData === 'undefined')
throw new Error("ArgumentError: id and/or student data is undefined!");
return this._model.findOneAndUpdate({_id: id}, studentData, {new: true});
}
deleteStudent(id){
if (typeof id === 'undefined')
throw new Error("ArgumentError: id cannot be undefined!");
return this._model.findOneAndRemove({_id: id});
}
deleteStudentsById(ids){
if (typeof ids === 'undefined')
throw new Error("ArgumentError: ids cannot be undefined!");
return this._model.deleteMany({ _id: { $in: ids } });
}
}
|
const path = require('path');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/app.js',
plugins: [
new CleanWebpackPlugin(['dist']),
new HtmlWebpackPlugin({
title: 'OIP React',
template: "src/index.html"
})
],
output: {
filename: '[name].bundle.js',
path: path.resolve(__dirname, 'dist'),
publicPath: "/"
},
module: {
rules: [
{
test: /.js?$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['@babel/env', '@babel/react']
}
},
{
test: /\.css$/,
use: [ 'style-loader', 'css-loader' ]
},
{
test: /\.scss$/,
use: [
"style-loader",
"css-loader",
"sass-loader"
]
},
{
test: /\.(png|jpg|gif|ttf|woff|woff2|eot|svg)$/,
use: [
{
loader: 'file-loader'
}
]
},
{
test: /\.node$/,
use: ['node-loader']
}
]
},
node: {
fs: "empty"
}
};
|
import React from 'react'
import { render } from 'react-dom'
import Stars from '../src/react-stars'
const firstExample = {
size: 30,
value: 2.5,
edit: false
}
const secondExample = {
size: 50,
count: 10,
char: '',
color1: '#ff9900',
color2: '#6599ff',
onChange: newValue => {
console.log(`Example 2: new value is ${newValue}`)
}
}
const thirdExample = {
size: 40,
count: 7,
half: false,
value: 4,
onChange: newValue => {
console.log(`Example 3: new value is ${newValue}`)
}
}
render(
<div>
<h1>react-stars examples</h1>
<p><i>Star rating component for your React projects</i></p>
Custom size, preset value, not editable
<Stars {...firstExample} />
Custom character, custom colors, 10 stars
<Stars {...secondExample} />
Editable, preset value, half stars off
<Stars {...thirdExample} />
<a href="https://github.com/n49/react-stars">Github</a> |
<a href="https://www.npmjs.com/package/react-stars">NPM package</a>
</div>,
document.getElementById('root')
)
|
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 10, height: 10, viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg", className: className },
React.createElement("path", { d: "M5 1a4 4 0 100 8 4 4 0 000-8zM0 5a5 5 0 1110 0A5 5 0 010 5z", fill: primaryFill }));
};
const PresenceUnknown10Regular = wrapIcon(rawSvg({}), 'PresenceUnknown10Regular');
export default PresenceUnknown10Regular;
|
import { combineReducers } from 'redux';
import shelfReducer from './shelf/reducer';
import cartReducer from './cart/reducer';
import totalReducer from './total/reducer';
import styleFiltersReducer from './styleFilters/reducer';
import genderFilterReducer from './genderFilter/reducer';
import sortReducer from './sort/reducer';
export default combineReducers({
shelf: shelfReducer,
cart: cartReducer,
total: totalReducer,
genderFilter:genderFilterReducer,
styleFilters: styleFiltersReducer,
sort: sortReducer
});
|
import React, { PropTypes } from 'react';
import pubsub from 'pubsub-js'
import { Link } from 'react-router';
import AppTable from 'components/AppTable';
import AppButton from 'components/AppButton'
import InputNumberField from 'components/Form/InputNumberField'
import {resolveDataSource, publishEvents, resolveFetch,resolveDataSourceCallback} from 'utils/componentUtil'
import {reduxForm, Field, FieldArray} from 'redux-form/immutable';
import { fromJS } from 'immutable';
import Immutable from 'immutable'
import {Row, Col} from 'antd'
import TextField from 'components/Form/TextField'
export class DicModifyModal extends React.PureComponent {
constructor(props) {
super(props);
resolveFetch({
fetch: {
id: "dic",
data: "selectedRows"
}
}).then(function (rows) {
debugger
console.log(rows)
pubsub.publish("@@form.init", {id: "DicModifyModal", data: rows[0]})
})
}
componentWillMount() {
}
componentDidMount() {
// pubsub.publish('orderRepealModal-table-11.laterData',{})
}
componentWillUnmount() {
}
componentWillReceiveProps(nextProps) {
}
render() {
return (
<form>
<Row>
<Col span={12}>
<Field config={{
enabled: true,
id: "code",
label: "字典", //标签名称
labelSpan: 8, //标签栅格比例(0-24)
wrapperSpan: 16, //输入框栅格比例(0-24)
form: "DicModifyModal",
showRequiredStar: true, //是否显示必填星号
placeholder: "请输入编码"
}} component={TextField} name="code" />
</Col>
<Col span={12}>
<Field config={{
enabled: true,
id: "name",
label: "字典名称", //标签名称
labelSpan: 8, //标签栅格比例(0-24)
wrapperSpan: 16, //输入框栅格比例(0-24)
form: "DicModifyModal",
showRequiredStar: true, //是否显示必填星号
placeholder: "请输入名称"
}} component={TextField} name="name" />
</Col>
</Row>
<Row>
<Col span={12}>
<Field config={{
enabled: true,
id: "description",
label: "说明", //标签名称
labelSpan: 8, //标签栅格比例(0-24)
wrapperSpan: 16, //输入框栅格比例(0-24)
form: "DicModifyModal",
showRequiredStar: true, //是否显示必填星号
placeholder: "请输入说明"
}} component={TextField} name="description" />
</Col>
</Row>
<Row>
<Col span={6} offset={20}>
{/*取消按钮*/}
<AppButton config={{
id: "orderRepealModal-btn-3",
title: "取消",
type:"default",
size:"large",
visible: true,
enabled: true,
subscribes: [
{
event: "orderRepealModal-btn-3.click",
pubs:[{
event: "modifyDicPage.onCancel",
}]
}
]
}} />
{/*确定按钮*/}
<AppButton config={{
id: "orderRepealModal-btn-2",
title: "确定",
type:"primary",
size:"large",
visible: true,
enabled: true,
subscribes: [
{
event: "orderRepealModal-btn-2.click",
pubs:[
{
event: "orderRepealModal-btn-2.expression",
meta: {
expression:
`
console.log("删除111222");
resolveFetch({fetch:{id:"DicModifyModal",data:"@@formValues"}}).then(function (value) {
// console.log(value);
let formValue = {code:value.code,name:value.name,description:value.description}
//let params = {}
let dataSource= {
type: "api",
method: "POST",
url: "/sm/dictionaryEnum/modify.action?id="+value.gid
};
resolveDataSourceCallback(
{
dataSource:dataSource,eventPayload:formValue,dataContext:formValue
},
function(res){
//me.setState({dataSource:res.data})
},
function(){
}
)
});
`
}
},
{
event: "dic.loadData",
},
{
event: "modifyDicPage.onCancel",
}
]
}
]
}} />
</Col>
</Row>
</form>
);
}
}
DicModifyModal.propTypes = {
};
export default reduxForm({
form: "DicModifyModal",
})(DicModifyModal);
|
'use strict';
var path = require('path')
, test = require('tap').test
, configurator = require(path.join(__dirname, '..', '..', 'lib', 'config'))
, Agent = require(path.join(__dirname, '..', '..', 'lib', 'agent'))
;
test("Agent should send metrics to staging-collector.newrelic.com", function (t) {
var config = configurator.initialize({
'app_name' : 'node.js Tests',
'license_key' : 'd67afc830dab717fd163bfcb0b8b88423e9a1a3b',
'host' : 'staging-collector.newrelic.com',
'port' : 80,
'ssl' : false,
'logging' : {
'level' : 'trace'
}
})
, agent = new Agent(config)
;
agent.start(function cb_start(error) {
t.notOk(error, "started without error");
agent.metrics.measureMilliseconds('TEST/discard', null, 101);
t.equal(agent.metrics.toJSON().length, 1, "only one metric");
agent._sendMetrics(function cb__sendMetrics(error) {
t.notOk(error, "sent metrics without error");
agent.stop(function cb_stop(error) {
t.notOk(error, "stopped without error");
t.end();
});
});
});
});
|
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { selectBook } from '../actions/index';
import { bindActionCreators } from 'redux';
class BookList extends Component {
renderList() {
return this.props.books.map((book) => {
return (
<li
key={book.title}
className="list-group-item"
onClick={() => this.props.selectBook(book)}
>
{book.title}
</li>
);
});
}
render() {
return (
<ul className="list-group col-md-4">
{this.renderList()}
</ul>
);
}
}
function mapStateToProps(state) {
// Whatever is returned will show up as props
// inside of BookList
return {
books: state.books
};
}
function mapDispatchToProps(dispatch) {
return bindActionCreators({ selectBook: selectBook }, dispatch);
}
export default connect(mapStateToProps, mapDispatchToProps)(BookList);
|
// Generated by CoffeeScript 1.9.3
(function() {
var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
this.Plant = (function(superClass) {
extend(Plant, superClass);
function Plant(position) {
this.position = position;
this.update_position = bind(this.update_position, this);
this.draw = bind(this.draw, this);
this.jump = bind(this.jump, this);
this.name = "plant";
this.img_src = "./stick_figures/plant.png";
this.num_frames = 3;
Plant.__super__.constructor.call(this, this.name, this.position, this.img_src, this.num_frames);
this.frame_factor = 7;
setInterval(this.jump, 5000);
this.gravity_factor = 0.1;
this.player_speed = 0.0;
this.creature_changes_direction = false;
this.disable_collisions = true;
this.minimum_y_position = this.position[1];
}
Plant.prototype.jump = function() {
return this.fall_speed = -5;
};
Plant.prototype.draw = function(world_position) {
this.frame_counter++;
return Plant.__super__.draw.call(this, world_position);
};
Plant.prototype.update_position = function(world) {
Plant.__super__.update_position.call(this, world);
if (this.position[1] < this.minimum_y_position) {
this.position[1] = this.minimum_y_position;
}
return this.calc_relative_position(world.position);
};
return Plant;
})(this.Creature);
}).call(this);
|
let t = parseInt(readline());
while(t--){
let lines = readline().split(" ");
let nums = lines.map(Number);// nums
let n = nums[0];
let sum=0,curval;
for(let i=1; i<=n; i++){
curval = nums[i];
sum += curval;
}
print(sum);
}
|
import React from "react"
import { Link } from "gatsby"
import App from './App';
const ListLink = props => (
<li style={{ display: `inline-block`, marginRight: `1rem` }}>
<Link style={{ textShadow: `none`, textDecoration: `none`, color: '#00000'}} to={props.to}>{props.children}</Link>
</li>
)
export default ({ children }) => (
<div style={{ margin: `0 auto`, maxWidth: 700, padding: `1.00rem 1rem` }}>
<header style={{ marginBottom: `1.5rem` }}>
<Link to="/" style={{ textShadow: `none`, backgroundImage: `none`, textDecoration:`none` }}>
<h3 style={{ display: `inline` }}>Ajit Akole</h3>
</Link>
<ul style={{ listStyle: `none`, float: `right` }}>
<ListLink to="/">Home</ListLink>
<ListLink to="/about/">About</ListLink>
<ListLink to="/projects">Projects</ListLink>
<ListLink to="/contact/">Contact</ListLink>
</ul>
</header>
{children}
<footer>
<div align = "center">
<App />
<font size = "2">
Built using react
</font>
</div>
</footer>
</div>
)
|
var execSync = require('child_process').execSync;
execSync("echo '" + __filename + "' >> /tmp/file_paths");
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var OrderTransactions = function () {
function OrderTransactions(client) {
_classCallCheck(this, OrderTransactions);
this.client = client;
}
_createClass(OrderTransactions, [{
key: "create",
value: function create(orderId, data) {
return this.client.post("/orders/" + orderId + "/transactions", data);
}
}, {
key: "update",
value: function update(orderId, transactionId, data) {
return this.client.put("/orders/" + orderId + "/transactions/" + transactionId, data);
}
}, {
key: "delete",
value: function _delete(orderId, transactionId) {
return this.client.delete("/orders/" + orderId + "/transactions/" + transactionId);
}
}]);
return OrderTransactions;
}();
exports.default = OrderTransactions;
|
import React from "react";
import InputComponent from "../../InputComponent";
import "./EditAddressModal.scss";
class EditAddressModal extends React.Component {
constructor(props) {
super(props);
this.state = {
config: {},
customerDetail: {},
};
}
componentDidMount() {
const { config, value } = this.props;
this.setState({
config,
customerDetail: value,
});
}
handleChangeInput = (e) => {
let mutate = this.state.customerDetail;
mutate[e.type] = e.value;
this.setState({
customerDetail: mutate,
});
};
render() {
const { toggle, handleSave } = this.props;
return (
<div className="editAddress-modal">
<div className="editAddress-header">
<h3>
{"Edit Company Address"}
<span>
<img src={require("assets/icons/closed-modal-black.svg")} onClick={toggle} />
</span>
</h3>
</div>
<div className="editAddress-content">
<div className="wrapper-meeting-agenda">
<span>Address</span>
<InputComponent
name="addressLine1"
placeholder="Enter address"
value={this.state.customerDetail.addressLine1}
withoutSpan={true}
handleChange={this.handleChangeInput}
/>
</div>
<div className="wrapper-meeting-agenda">
<span>City</span>
<InputComponent
name="city"
placeholder="Enter city"
value={this.state.customerDetail.city}
withoutSpan={true}
handleChange={this.handleChangeInput}
/>
</div>
<div className="wrapper-meeting-agenda">
<span>State</span>
<InputComponent
name="state"
placeholder="Enter state"
value={this.state.customerDetail.state}
withoutSpan={true}
handleChange={this.handleChangeInput}
/>
</div>
<div className="wrapper-meeting-agenda">
<span>Postcode</span>
<InputComponent
name="postalCode"
placeholder="Enter postcode"
value={this.state.customerDetail.postalCode}
withoutSpan={true}
handleChange={this.handleChangeInput}
/>
</div>
</div>
<div className="editAddress-footer">
<button onClick={toggle} className="btn-cancel">
Cancel
</button>
<button onClick={handleSave.bind(this, this.state.customerDetail)} className="btn-submit">
Update Address
</button>
</div>
</div>
);
}
}
export default EditAddressModal;
|
/*****************************************************************************
* Open MCT, Copyright (c) 2014-2021, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is 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.
*
* Open MCT includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
define(
['../src/LogoController'],
function (LogoController) {
describe("The About controller", function () {
var mockOverlayService,
controller;
beforeEach(function () {
mockOverlayService = jasmine.createSpyObj(
"overlayService",
["createOverlay"]
);
controller = new LogoController(mockOverlayService);
});
it("shows the about dialog", function () {
//Verify precondition
expect(mockOverlayService.createOverlay)
.not.toHaveBeenCalled();
controller.showAboutDialog();
expect(mockOverlayService.createOverlay)
.toHaveBeenCalledWith("overlay-about");
});
});
}
);
|
import React from 'react'
import Layout from '../components/layout'
// import { useStaticQuery, graphql } from "gatsby"
import '../styles/contact.css'
// import Header from '../components/header'
// import Footer from '../components/footer'
const Contact = () => {
return (
<Layout>
<div className="contact-wrapper">
<div className="contact-container">
<div style={{
marginLeft: '5rem'
}}>
<p>Eli Bensusan</p>
</div>
<div style={{
marginLeft: '5rem',
marginBottom: '1rem'
}}>
<a rel="noreferrer" href="eli@neferka.design">eli@neferka.design</a>
</div>
<div style={{
marginLeft: '5rem',
marginBottom: '1rem'
}}>
<a rel="noreferrer" href="https://www.linkedin.com/in/eli-bensusan-934a8024">LinkedIn</a>
</div>
</div>
</div>
</Layout>
)
}
export default Contact
// const Contact = () => {
// const data = useStaticQuery(graphql`
// query AnotherSiteTitleQuery {
// site {
// siteMetadata {
// title
// }
// }
// }
// `)
// return (
// <>
// <Header siteTitle={data.site.siteMetadata?.title || `Title`} />
// <div className="contact-wrapper">
// <div className="contact-container">
// <div style={{
// marginLeft: '1rem'
// }}>
// <p>Eli Bensusan</p>
// </div>
// <div style={{
// margin: '1rem'
// }}>
// <a rel="noreferrer" href="eli@neferka.design">eli@neferka.design</a>
// </div>
// <div style={{
// margin: '1rem'
// }}>
// <a rel="noreferrer" href="https://www.linkedin.com/in/eli-bensusan-934a8024">LinkedIn</a>
// </div>
// </div>
// </div>
// <Footer />
// </>
// )
// }
|
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
env: {
"browser": true,
"es6": true,
"node": true
},
extends: [
'standard',
'prettier/react'
],
plugins: ['react', 'jsx-a11y', 'import'],
// add your custom rules here
rules: {
// allow async-await
'generator-star-spacing': 'off',
'import/prefer-default-export': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'react/react-in-jsx-scope': 'off',
"jsx-quotes": 2,
"no-confusing-arrow": 0,
'no-unused-vars': 0,
'no-unused-expressions': 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".tsx"] }]
}
}
|
const API = 'https://randomuser.me/api/';
const getName = async () => {
const perroNameStorage=JSON.parse(sessionStorage.getItem('perrosNames'));
if (perroNameStorage.length > 0) {
return perroNameStorage;
}else{
let promesa1 = fetch(API);
let promesa2 = fetch(API);
let promesa3 = fetch(API);
let promesa4 = fetch(API);
let promesa5 = fetch(API);
let promesa6 = fetch(API);
let promesa7 = fetch(API);
let promesa8 = fetch(API);
let promesa9 = fetch(API);
let promesa10 = fetch(API);
const dataListaLista= await Promise.all([promesa1, promesa2, promesa3, promesa4, promesa5, promesa6, promesa7, promesa8, promesa9, promesa10]).then(async(respuesta)=>{
const dataCat = respuesta.map((item)=> item.json())
const variableData= await Promise.all(dataCat);
const variableReturn = variableData.map((item)=>item.results[0])
return variableReturn;
});
return dataListaLista;
}
};
export default getName;
|
export {abstractField, validators} from 'vue-form-generator';
import {schema} from 'vue-form-generator';
export const {createDefaultObject} = schema;
|
const mongoose = require('mongoose');
const Joi = require("joi");
const jwt = require("jsonwebtoken");
const config = require('config');
const userSchema = new mongoose.Schema({
name: {
type: String,
required: true,
unique: true,
minlength: 1,
maxlength: 32
},
password: {
type: String,
required: true,
minlength: 5,
maxlength: 1024
},
email: {
type: String,
required: true,
unique: true,
minlength: 5,
maxlength: 255
},
register_date: {
type: Date,
default: Date.now
}
});
userSchema.methods.generateAuthToken = function() {
return jwt.sign({_id: this._id}, config.get('jwtPrivateKey'));
}
const User = mongoose.model('Users', userSchema);
function validateUser(input) {
const schema = Joi.object({
name: Joi
.string()
.min(1)
.max(32)
.required(),
password: Joi
.string()
.min(5)
.max(255)
.required(),
email: Joi
.string()
.email({
tlds: {allow: false}
})
.min(5)
.max(255)
.required(),
});
return {error, value} = schema.validate(input);
}
exports.User = User;
exports.validate = validateUser;
|
const { Model, DataTypes } = require('sequelize');
const sequelize = require('../config/connection');
class ProductTag extends Model {}
ProductTag.init(
{
id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true,
},
product_id: {
type: DataTypes.INTEGER,
references: {
model: 'product',
key: 'id',
},
},
tag_id: {
type: DataTypes.INTEGER,
references: {
model: 'tag',
key: 'id',
},
},
},
{
sequelize,
timestamps: false,
freezeTableName: true,
underscored: true,
modelName: 'product_tag',
}
);
module.exports = ProductTag;
|
() + 42
|
require('../../style/base.less');
require('../../badge/index.less');
require('../../icon/index.less');
require('../../loading/index.less');
require('../../picker/index.less');
require('../../button/index.less');
require('../../overlay/index.less');
require('../../popup/index.less');
require('../../toast/index.less');
require('../index.less');
|
const config = require('config');
const { format } = require('date-fns');
const log = require('./src/components/log')(module.filename);
/**
* Knex configuration
* Set database configuration for application and knex configuration for migrations
* and seeding. Since configuration values can change via env. vars or property
* files, we only need one runtime 'environment' for knex.
*
* Note: it appears that the knexfile must be in the root for the config values
* to be read correctly when running the 'npm run migrate:*' scripts.
* @module knexfile
* @see module:knex
* @see module:config
*/
const types = require('pg').types;
// To handle JSON Schema validation, we treat dates and timestamps outside of the database as strings.
// Prevent the automatic conversion of dates/timestamps into Objects, leave as strings.
types.setTypeParser(1082, (value) => {
// dates must be in the date only part of 2020-05-16T13:18:27.160Z
return format(value, 'yyyy-MM-dd');
});
// timestamps...
types.setTypeParser(1114, (value) => new Date(value).toISOString());
// timestamps with zone
types.setTypeParser(1184, (value) => new Date(value).toISOString());
const logWrapper = (level, msg) => log.log(level, msg);
module.exports = {
client: 'pg',
connection: {
host: config.get('db.host'),
user: config.get('db.username'),
password: config.get('db.password'),
database: config.get('db.database'),
port: config.get('db.port')
},
debug: ['silly', 'debug'].includes(config.get('server.logLevel')),
log: {
debug: (msg) => logWrapper('debug', msg),
deprecate: (msg) => logWrapper('warn', msg),
error: (msg) => logWrapper('error', msg),
info: (msg) => logWrapper('info', msg),
silly: (msg) => logWrapper('silly', msg),
verbose: (msg) => logWrapper('verbose', msg),
warn: (msg) => logWrapper('warn', msg),
},
migrations: {
directory: __dirname + '/src/db/migrations'
},
pool: {
min: 2,
max: 10
// This shouldn't be here: https://github.com/knex/knex/issues/3455#issuecomment-535554401
// propagateCreateError: false
},
seeds: {
directory: __dirname + '/src/db/seeds'
}
};
|
//// [tests/cases/compiler/moduleAugmentationsImports2.ts] ////
//// [a.ts]
export class A {}
//// [b.ts]
export class B {x: number;}
//// [c.d.ts]
declare module "C" {
class Cls {y: string; }
}
//// [d.ts]
/// <reference path="c.d.ts"/>
import {A} from "./a";
import {B} from "./b";
A.prototype.getB = function () { return undefined; }
declare module "./a" {
interface A {
getB(): B;
}
}
//// [e.ts]
import {A} from "./a";
import {Cls} from "C";
A.prototype.getCls = function () { return undefined; }
declare module "./a" {
interface A {
getCls(): Cls;
}
}
//// [main.ts]
import {A} from "./a";
import "d";
import "e";
let a: A;
let b = a.getB().x.toFixed();
let c = a.getCls().y.toLowerCase();
//// [f.js]
define("a", ["require", "exports"], function (require, exports) {
"use strict";
var A = (function () {
function A() {
}
return A;
}());
exports.A = A;
});
define("b", ["require", "exports"], function (require, exports) {
"use strict";
var B = (function () {
function B() {
}
return B;
}());
exports.B = B;
});
/// <reference path="c.d.ts"/>
define("d", ["require", "exports", "a"], function (require, exports, a_1) {
"use strict";
a_1.A.prototype.getB = function () { return undefined; };
});
define("e", ["require", "exports", "a"], function (require, exports, a_2) {
"use strict";
a_2.A.prototype.getCls = function () { return undefined; };
});
define("main", ["require", "exports", "d", "e"], function (require, exports) {
"use strict";
var a;
var b = a.getB().x.toFixed();
var c = a.getCls().y.toLowerCase();
});
//// [f.d.ts]
/// <reference path="tests/cases/compiler/c.d.ts" />
declare module "a" {
export class A {
}
}
declare module "b" {
export class B {
x: number;
}
}
declare module "d" {
import { B } from "b";
module "a" {
interface A {
getB(): B;
}
}
}
declare module "e" {
import { Cls } from "C";
module "a" {
interface A {
getCls(): Cls;
}
}
}
declare module "main" {
}
|
import { searchVersionManage, deleteVersionManage } from '../../services/configManagement';
export default {
namespace: 'metadataVersionManage',
state: {
dataSource: [],
},
effects: {
*fetch({ payload }, { call, put }) {
const response = yield call(searchVersionManage, payload);
if (response) {
yield put({
type: 'tableData',
payload: response,
});
}
},
*delete({ payload, callback }, { call, put }) {
const response = yield call(deleteVersionManage, payload);
if (response) {
yield put({
type: 'tableData',
payload: response,
});
}
if (callback) callback();
},
},
reducers: {
tableData(state, { payload }) {
return {
...state,
...payload,
};
},
},
subscriptions: {},
};
|
module.exports = {
rules: {
// enforce spacing inside array brackets
'array-bracket-spacing': [ 'error', 'always' ],
// allow/disallow an empty newline after var statement
// https://github.com/eslint/eslint/blob/master/docs/rules/newline-after-var.md
'newline-after-var': [ 'error', 'always' ],
// Require newline before return statement
// https://github.com/eslint/eslint/tree/master/docs/rules/newline-before-return.md
'newline-before-return': 'error',
// disallow multiple empty lines and only one newline at the end
// https://github.com/eslint/eslint/blob/master/docs/rules/no-multiple-empty-lines.md
'no-multiple-empty-lines': [ 'error', { max: 2, maxBOF: 0, maxEOF: 1 } ],
// require or disallow use of semicolons instead of ASI
// I use Babel, it takes care of this for me
semi: [ 'error', 'never' ],
// require or disallow spaces inside parentheses
// disabled, because this rule is strange
// TODO: write and implement a better rule
'space-in-parens': 'off',
},
}
|
(function( window, undefined ) {
kendo.cultures["lb-LU"] = {
name: "lb-LU",
numberFormat: {
pattern: ["-n"],
decimals: 2,
",": " ",
".": ",",
groupSize: [3,0],
percent: {
pattern: ["-n %","n %"],
decimals: 2,
",": " ",
".": ",",
groupSize: [3,0],
symbol: "%"
},
currency: {
name: "Euro",
abbr: "EUR",
pattern: ["-n $","n $"],
decimals: 2,
",": " ",
".": ",",
groupSize: [3],
symbol: "€"
}
},
calendars: {
standard: {
days: {
names: ["Sonndeg","Méindeg","Dënschdeg","Mëttwoch","Donneschdeg","Freideg","Samschdeg"],
namesAbbr: ["Son","Méi","Dën","Mët","Don","Fre","Sam"],
namesShort: ["So","Mé","Dë","Më","Do","Fr","Sa"]
},
months: {
names: ["Januar","Februar","Mäerz","Abrëll","Mee","Juni","Juli","August","September","Oktober","November","Dezember"],
namesAbbr: ["Jan","Feb","Mäe","Abr","Mee","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]
},
AM: [""],
PM: [""],
patterns: {
d: "dd.MM.yy",
D: "d. MMMM yyyy",
F: "d. MMMM yyyy HH:mm:ss",
g: "dd.MM.yy HH:mm",
G: "dd.MM.yy HH:mm:ss",
m: "dd. MMMM",
M: "dd. MMMM",
s: "yyyy'-'MM'-'dd'T'HH':'mm':'ss",
t: "HH:mm",
T: "HH:mm:ss",
u: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'",
y: "MMMM yyyy",
Y: "MMMM yyyy"
},
"/": ".",
":": ":",
firstDay: 1
}
}
}
})(this);
|
import mongoose from 'mongoose'
mongoose.Promise = global.Promise
export const createConnection = (url) => {
return mongoose.connect(url)
}
|
'use strict'
const Joi = require('joi')
const { renderVersionBadge } = require('../version')
const { compare, isStable, latest } = require('../php-version')
const { optionalUrl } = require('../validators')
const { NotFound, redirector } = require('..')
const {
allVersionsSchema,
keywords,
BasePackagistService,
customServerDocumentationFragment,
} = require('./packagist-base')
const packageSchema = Joi.object()
.pattern(
/^/,
Joi.object({
version: Joi.string(),
extra: Joi.object({
'branch-alias': Joi.object().pattern(/^/, Joi.string()),
}),
}).required()
)
.required()
const schema = Joi.object({
packages: Joi.object().pattern(/^/, packageSchema).required(),
}).required()
const queryParamSchema = Joi.object({
server: optionalUrl,
include_prereleases: Joi.equal(''),
}).required()
class PackagistVersion extends BasePackagistService {
static category = 'version'
static route = {
base: 'packagist/v',
pattern: ':user/:repo',
queryParamSchema,
}
static examples = [
{
title: 'Packagist Version',
namedParams: {
user: 'symfony',
repo: 'symfony',
},
staticPreview: renderVersionBadge({ version: '4.2.2' }),
keywords,
},
{
title: 'Packagist Version (including pre-releases)',
namedParams: {
user: 'symfony',
repo: 'symfony',
},
queryParams: { include_prereleases: null },
staticPreview: renderVersionBadge({ version: '4.3-dev' }),
keywords,
},
{
title: 'Packagist Version (custom server)',
namedParams: {
user: 'symfony',
repo: 'symfony',
},
queryParams: {
server: 'https://packagist.org',
},
staticPreview: renderVersionBadge({ version: '4.2.2' }),
keywords,
documentation: customServerDocumentationFragment,
},
]
static defaultBadgeData = {
label: 'packagist',
}
static render({ version }) {
if (version === undefined) {
throw new NotFound({ prettyMessage: 'no released version found' })
}
return renderVersionBadge({ version })
}
transform({ includePrereleases, json, user, repo }) {
const versionsData = json.packages[this.getPackageName(user, repo)]
let versions = Object.keys(versionsData)
const aliasesMap = {}
versions.forEach(version => {
const versionData = versionsData[version]
if (
versionData.extra &&
versionData.extra['branch-alias'] &&
versionData.extra['branch-alias'][version]
) {
// eg, version is 'dev-master', mapped to '2.0.x-dev'.
const validVersion = versionData.extra['branch-alias'][version]
if (
aliasesMap[validVersion] === undefined ||
compare(aliasesMap[validVersion], validVersion) < 0
) {
versions.push(validVersion)
aliasesMap[validVersion] = version
}
}
})
versions = versions.filter(version => !/^dev-/.test(version))
if (includePrereleases) {
return { version: latest(versions) }
} else {
const stableVersion = latest(versions.filter(isStable))
return { version: stableVersion || latest(versions) }
}
}
async handle({ user, repo }, { include_prereleases, server }) {
const includePrereleases = include_prereleases !== undefined
const json = await this.fetch({
user,
repo,
schema: includePrereleases ? schema : allVersionsSchema,
server,
})
const { version } = this.transform({ includePrereleases, json, user, repo })
return this.constructor.render({ version })
}
}
const PackagistVersionRedirector = redirector({
category: 'version',
route: {
base: 'packagist/vpre',
pattern: ':user/:repo',
},
transformPath: ({ user, repo }) => `/packagist/v/${user}/${repo}`,
transformQueryParams: params => ({ include_prereleases: null }),
dateAdded: new Date('2019-12-15'),
})
module.exports = { PackagistVersion, PackagistVersionRedirector }
|
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import axios from 'axios';
export default class Blog extends Component {
constructor(){
super();
this.state = {
blogs:[]
}
}
componentWillMount(){
axios.get('/api/blog').then(response=>{
this.setState({
blogs: response.data
});
}).catch(errors=>{
console.log(errors);
})
}
render() {
return (
<div className="container">
{this.state.blogs.map(blog=><li>{blog.id}. {blog.name}: {blog.body}</li>)}
</div>
);
}
}
if (document.getElementById('example')) {
ReactDOM.render(<Blog />, document.getElementById('example'));
}
|
THREE.Object3D.DefaultUp.set(0, 0, 1);
// const tr = THREE;
// const zerorpc = require("zerorpc");
// const fs = require('fs');
// // import { } from 'app:../node_modules/ccapture.js/build/CCapture.all.min.js';
// // import {CCapture} from 'app:../node_modules/ccapture.js/build/CCapture.all.min.js'
// // const HoloPlay = require("holoplay");
// import * as tr from './vendor/three.module.js'
import {OrbitControls} from './vendor/examples/jsm/controls/OrbitControls.js'
import {Robot, Shape, FPS, SimTime, Slider, Button, Label, Select, Checkbox, Radio} from './lib.js'
// import { start } from 'repl';
let fps = new FPS(document.getElementById('fps'));
let sim_time = new SimTime(document.getElementById('sim-time'));
let camera, scene, renderer, controls;
// Array of all the robots in the scene
let agents = [];
let shapes = [];
let custom_elements = [];
let connected = false;
// Open the connection to python
let port = parseInt(window.location.pathname.slice(1));
let ws = new WebSocket("ws://localhost:" + port + "/")
let recorder = null;
let recording = false;
let framerate = 20;
let autoclose = true;
// let one = new Label({id: "2", desc: "I am a new Label"})
// let two = new Select({id: "3", desc: "Select Box", options: ["one", '2', 'fourt'], value: 1})
// let three = new Button({id: "1", desc: "Hello"})
// let four = new Checkbox({id: "4", desc: "Check Box", options: ["one", '2', 'fourt'], checked: [0, 's', 0]})
// let five = new Radio({id: "5", desc: "Radio Buttons", options: ["one long", '2', 'fourt'], checked: 1})
ws.onopen = function(event) {
connected = true;
ws.send('Connected');
startSim(event.data);
}
ws.onclose = function(event) {
if (recording) {
stopRecording();
}
if (autoclose) {
setTimeout(
function() {
window.close();
}, 5000);
}
}
function startSim(port) {
init()
animate();
window.addEventListener('resize', on_resize, false);
}
function init() {
//
camera = new THREE.PerspectiveCamera(70, window.innerWidth / window.innerHeight, 0.01, 10);
// camera = new HoloPlay.Camera();
scene = new THREE.Scene();
// THREE.Object3D.DefaultUp.set(0, 0, 1);
renderer = new THREE.WebGLRenderer( {antialias: true });
// hrenderer = new HoloPlay.Renderer();
// hrenderer.webglRenderer = renderer;
// hrenderer.disableFullscreenUi = true;
// console.log(hrenderer);
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.shadowMap.enabled = true;
let div = document.getElementById( 'canvas' );
document.body.appendChild(div);
div.appendChild(renderer.domElement)
controls = new OrbitControls( camera, renderer.domElement );
// Set up camera position
camera.position.set(0.2, 1.2, 0.7);
controls.target = new THREE.Vector3(0, 0, 0.2);
controls.update();
// scene.background = new THREE.Color(0x72645b);
scene.background = new THREE.Color(0x787878);
scene.fog = new THREE.Fog(0x787878, 2, 15 );
var plane = new THREE.Mesh(
new THREE.PlaneBufferGeometry( 40, 40 ),
new THREE.MeshPhongMaterial( { color: 0x4B4B4B, specular: 0x101010 } )
);
plane.receiveShadow = true;
scene.add( plane );
// Lights
scene.add( new THREE.HemisphereLight( 0x443333, 0x111122 ) );
addShadowedLight( 1, 1, 1, 0xffffff, 1.35 );
addShadowedLight( 0.5, 1, - 1, 0xffaa00, 1 );
var axesHelper = new THREE.AxesHelper( 5 );
scene.add( axesHelper );
}
function on_resize() {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
}
function addShadowedLight( x, y, z, color, intensity ) {
var directionalLight = new THREE.DirectionalLight( color, intensity );
directionalLight.position.set( x, y, z );
scene.add( directionalLight );
directionalLight.castShadow = true;
var d = 1;
directionalLight.shadow.camera.left = - d;
directionalLight.shadow.camera.right = d;
directionalLight.shadow.camera.top = d;
directionalLight.shadow.camera.bottom = - d;
directionalLight.shadow.camera.near = 1;
directionalLight.shadow.camera.far = 4;
directionalLight.shadow.bias = - 0.002;
}
function animate() {
requestAnimationFrame(animate);
renderer.render(scene, camera);
if (recording) {
recorder.capture(renderer.domElement);
}
fps.frame();
}
function startRecording(frate, name, format) {
if (!recording) {
if (format === 'gif') {
autoclose = false;
}
recorder = new CCapture({
verbose: false,
display: true,
framerate: frate,
quality: 100,
format: format,
name: name,
workersPath: 'js/vendor/build/'
});
recording = true;
recorder.start();
};
}
function stopRecording() {
recorder.stop();
recorder.save();
recording = false;
}
ws.onmessage = function (event) {
let eventdata = JSON.parse(event.data)
let func = eventdata[0]
let data = eventdata[1]
if (func === 'robot') {
let id = agents.length;
let robot = new Robot(scene, data);
agents.push(robot);
ws.send(id);
} else if (func === 'remove_robot') {
let agent = agents[data]
agent.remove(scene)
renderer.renderLists.dispose();
agents[data] = null;
ws.send(0);
} else if (func === 'shape') {
let id = shapes.length;
let shape = new Shape(scene, data);
shapes.push(shape);
ws.send(id);
} else if (func === 'remove_shape') {
let shape = shapes[data]
shape.remove(scene)
renderer.renderLists.dispose();
shapes[data] = null;
ws.send(0);
} else if (func === 'robot_poses') {
let id = data[0];
let poses = data[1];
agents[id].set_poses(poses);
ws.send(id);
} else if (func === 'shape_poses') {
let id = data[0];
let poses = data[1];
shapes[id].set_poses(poses);
ws.send(id);
} else if (func === 'is_loaded') {
let loaded = agents[data].isLoaded();
ws.send(loaded);
} else if (func === 'sim_time') {
sim_time.display(parseFloat(data));
ws.send(0);
} else if (func === 'start_recording') {
startRecording(parseFloat(data[0]), data[1], data[2]);
ws.send(0);
} else if (func === 'stop_recording') {
stopRecording();
setTimeout(
function() {
ws.send(0);
}, 5000);
} else if (func === 'add_element') {
let element = data.element;
if (element === 'slider') {
custom_elements.push(new Slider(data));
} else if (element === 'button') {
custom_elements.push(new Button(data));
} else if (element === 'label') {
custom_elements.push(new Label(data));
} else if (element === 'select') {
custom_elements.push(new Select(data));
} else if (element === 'checkbox') {
custom_elements.push(new Checkbox(data));
} else if (element === 'radio') {
custom_elements.push(new Radio(data));
}
ws.send(0);
} else if (func === 'check_elements') {
let ret = {};
for (let i = 0; i < custom_elements.length; i++) {
if (custom_elements[i].changed === true) {
ret[custom_elements[i].id] = custom_elements[i].data;
custom_elements[i].changed = false;
}
}
ws.send(JSON.stringify(ret));
} else if (func === 'update_element') {
let id = data.id;
for (let i = 0; i < custom_elements.length; i++) {
if (custom_elements[i].id === id) {
custom_elements[i].update(data);
break;
}
}
ws.send(0);
}
};
|
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const option_names_1 = __importDefault(require("./option-names"));
exports.default = [
option_names_1.default.skipJsErrors,
option_names_1.default.skipUncaughtErrors,
option_names_1.default.quarantineMode,
option_names_1.default.debugMode,
option_names_1.default.debugOnFail,
option_names_1.default.selectorTimeout,
option_names_1.default.assertionTimeout,
option_names_1.default.pageLoadTimeout,
option_names_1.default.speed,
option_names_1.default.stopOnFirstFail,
option_names_1.default.disablePageCaching,
option_names_1.default.disablePageReloads,
option_names_1.default.disableScreenshots
];
module.exports = exports.default;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVuLW9wdGlvbi1uYW1lcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb25maWd1cmF0aW9uL3J1bi1vcHRpb24tbmFtZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxrRUFBMEM7QUFFMUMsa0JBQWU7SUFDWCxzQkFBWSxDQUFDLFlBQVk7SUFDekIsc0JBQVksQ0FBQyxrQkFBa0I7SUFDL0Isc0JBQVksQ0FBQyxjQUFjO0lBQzNCLHNCQUFZLENBQUMsU0FBUztJQUN0QixzQkFBWSxDQUFDLFdBQVc7SUFDeEIsc0JBQVksQ0FBQyxlQUFlO0lBQzVCLHNCQUFZLENBQUMsZ0JBQWdCO0lBQzdCLHNCQUFZLENBQUMsZUFBZTtJQUM1QixzQkFBWSxDQUFDLEtBQUs7SUFDbEIsc0JBQVksQ0FBQyxlQUFlO0lBQzVCLHNCQUFZLENBQUMsa0JBQWtCO0lBQy9CLHNCQUFZLENBQUMsa0JBQWtCO0lBQy9CLHNCQUFZLENBQUMsa0JBQWtCO0NBQ2xDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgT1BUSU9OX05BTUVTIGZyb20gJy4vb3B0aW9uLW5hbWVzJztcblxuZXhwb3J0IGRlZmF1bHQgW1xuICAgIE9QVElPTl9OQU1FUy5za2lwSnNFcnJvcnMsXG4gICAgT1BUSU9OX05BTUVTLnNraXBVbmNhdWdodEVycm9ycyxcbiAgICBPUFRJT05fTkFNRVMucXVhcmFudGluZU1vZGUsXG4gICAgT1BUSU9OX05BTUVTLmRlYnVnTW9kZSxcbiAgICBPUFRJT05fTkFNRVMuZGVidWdPbkZhaWwsXG4gICAgT1BUSU9OX05BTUVTLnNlbGVjdG9yVGltZW91dCxcbiAgICBPUFRJT05fTkFNRVMuYXNzZXJ0aW9uVGltZW91dCxcbiAgICBPUFRJT05fTkFNRVMucGFnZUxvYWRUaW1lb3V0LFxuICAgIE9QVElPTl9OQU1FUy5zcGVlZCxcbiAgICBPUFRJT05fTkFNRVMuc3RvcE9uRmlyc3RGYWlsLFxuICAgIE9QVElPTl9OQU1FUy5kaXNhYmxlUGFnZUNhY2hpbmcsXG4gICAgT1BUSU9OX05BTUVTLmRpc2FibGVQYWdlUmVsb2FkcyxcbiAgICBPUFRJT05fTkFNRVMuZGlzYWJsZVNjcmVlbnNob3RzXG5dO1xuIl19
|
var routes = {
// Default route ==>> localhost/#/
'': function () {
nx.importController('index', function() {
indexController.index();
});
},
//==>> localhost/#/inbox
'inbox': function () {
nx.importController('inbox', function() {
inboxController.index();
});
},
//==>> localhost/#/inbox
'inbox/send': function () {
nx.importController('inbox', function() {
inboxController.send();
});
},
//==>> localhost/#/profile
'profile': function () {
nx.importController('profile', function() {
profileController.index();
});
}
};
|
import {action, observable} from "mobx";
import React from 'react';
export default class AppState {
@observable isLogin = false;
// Is a super user
@observable user = {isSuper: false,userID:0};
@observable sessionID = "";
@action getSessionID = () => {
return this.sessionID;
};
@action checkLogin() {
return this.isLogin;
}
}
|
// https://www.json.org/json-en.html
Prism.languages.json = {
'property': {
pattern: /"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
greedy: true
},
'string': {
pattern: /"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
greedy: true
},
'comment': {
pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
greedy: true
},
'number': /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
'punctuation': /[{}[\],]/,
'operator': /:/,
'boolean': /\b(?:true|false)\b/,
'null': {
pattern: /\bnull\b/,
alias: 'keyword'
}
};
Prism.languages.webmanifest = Prism.languages.json;
|
/**
* @license Angular v5.0.1
* (c) 2010-2017 Google, Inc. https://angular.io/
* License: MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/platform-browser'), require('@angular/animations'), require('@angular/animations/browser')) :
typeof define === 'function' && define.amd ? define('@angular/platform-browser/animations', ['exports', '@angular/core', '@angular/platform-browser', '@angular/animations', '@angular/animations/browser'], factory) :
(factory((global.ng = global.ng || {}, global.ng.platformBrowser = global.ng.platformBrowser || {}, global.ng.platformBrowser.animations = {}),global.ng.core,global.ng.platformBrowser,global.ng.animations,global.ng.animations.browser));
}(this, (function (exports,_angular_core,_angular_platformBrowser,_angular_animations,_angular_animations_browser) { 'use strict';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
/**
* @license Angular v5.0.1
* (c) 2010-2017 Google, Inc. https://angular.io/
* License: MIT
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* @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
*/
var BrowserAnimationBuilder = (function (_super) {
__extends(BrowserAnimationBuilder, _super);
function BrowserAnimationBuilder(rootRenderer, doc) {
var _this = _super.call(this) || this;
_this._nextAnimationId = 0;
var /** @type {?} */ typeData = /** @type {?} */ ({
id: '0',
encapsulation: _angular_core.ViewEncapsulation.None,
styles: [],
data: { animation: [] }
});
_this._renderer = /** @type {?} */ (rootRenderer.createRenderer(doc.body, typeData));
return _this;
}
/**
* @param {?} animation
* @return {?}
*/
BrowserAnimationBuilder.prototype.build = /**
* @param {?} animation
* @return {?}
*/
function (animation) {
var /** @type {?} */ id = this._nextAnimationId.toString();
this._nextAnimationId++;
var /** @type {?} */ entry = Array.isArray(animation) ? _angular_animations.sequence(animation) : animation;
issueAnimationCommand(this._renderer, null, id, 'register', [entry]);
return new BrowserAnimationFactory(id, this._renderer);
};
BrowserAnimationBuilder.decorators = [
{ type: _angular_core.Injectable },
];
/** @nocollapse */
BrowserAnimationBuilder.ctorParameters = function () { return [
{ type: _angular_core.RendererFactory2, },
{ type: undefined, decorators: [{ type: _angular_core.Inject, args: [_angular_platformBrowser.DOCUMENT,] },] },
]; };
return BrowserAnimationBuilder;
}(_angular_animations.AnimationBuilder));
var BrowserAnimationFactory = (function (_super) {
__extends(BrowserAnimationFactory, _super);
function BrowserAnimationFactory(_id, _renderer) {
var _this = _super.call(this) || this;
_this._id = _id;
_this._renderer = _renderer;
return _this;
}
/**
* @param {?} element
* @param {?=} options
* @return {?}
*/
BrowserAnimationFactory.prototype.create = /**
* @param {?} element
* @param {?=} options
* @return {?}
*/
function (element, options) {
return new RendererAnimationPlayer(this._id, element, options || {}, this._renderer);
};
return BrowserAnimationFactory;
}(_angular_animations.AnimationFactory));
var RendererAnimationPlayer = (function () {
function RendererAnimationPlayer(id, element, options, _renderer) {
this.id = id;
this.element = element;
this._renderer = _renderer;
this.parentPlayer = null;
this._started = false;
this.totalTime = 0;
this._command('create', options);
}
/**
* @param {?} eventName
* @param {?} callback
* @return {?}
*/
RendererAnimationPlayer.prototype._listen = /**
* @param {?} eventName
* @param {?} callback
* @return {?}
*/
function (eventName, callback) {
return this._renderer.listen(this.element, "@@" + this.id + ":" + eventName, callback);
};
/**
* @param {?} command
* @param {...?} args
* @return {?}
*/
RendererAnimationPlayer.prototype._command = /**
* @param {?} command
* @param {...?} args
* @return {?}
*/
function (command) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
}
return issueAnimationCommand(this._renderer, this.element, this.id, command, args);
};
/**
* @param {?} fn
* @return {?}
*/
RendererAnimationPlayer.prototype.onDone = /**
* @param {?} fn
* @return {?}
*/
function (fn) { this._listen('done', fn); };
/**
* @param {?} fn
* @return {?}
*/
RendererAnimationPlayer.prototype.onStart = /**
* @param {?} fn
* @return {?}
*/
function (fn) { this._listen('start', fn); };
/**
* @param {?} fn
* @return {?}
*/
RendererAnimationPlayer.prototype.onDestroy = /**
* @param {?} fn
* @return {?}
*/
function (fn) { this._listen('destroy', fn); };
/**
* @return {?}
*/
RendererAnimationPlayer.prototype.init = /**
* @return {?}
*/
function () { this._command('init'); };
/**
* @return {?}
*/
RendererAnimationPlayer.prototype.hasStarted = /**
* @return {?}
*/
function () { return this._started; };
/**
* @return {?}
*/
RendererAnimationPlayer.prototype.play = /**
* @return {?}
*/
function () {
this._command('play');
this._started = true;
};
/**
* @return {?}
*/
RendererAnimationPlayer.prototype.pause = /**
* @return {?}
*/
function () { this._command('pause'); };
/**
* @return {?}
*/
RendererAnimationPlayer.prototype.restart = /**
* @return {?}
*/
function () { this._command('restart'); };
/**
* @return {?}
*/
RendererAnimationPlayer.prototype.finish = /**
* @return {?}
*/
function () { this._command('finish'); };
/**
* @return {?}
*/
RendererAnimationPlayer.prototype.destroy = /**
* @return {?}
*/
function () { this._command('destroy'); };
/**
* @return {?}
*/
RendererAnimationPlayer.prototype.reset = /**
* @return {?}
*/
function () { this._command('reset'); };
/**
* @param {?} p
* @return {?}
*/
RendererAnimationPlayer.prototype.setPosition = /**
* @param {?} p
* @return {?}
*/
function (p) { this._command('setPosition', p); };
/**
* @return {?}
*/
RendererAnimationPlayer.prototype.getPosition = /**
* @return {?}
*/
function () { return 0; };
return RendererAnimationPlayer;
}());
/**
* @param {?} renderer
* @param {?} element
* @param {?} id
* @param {?} command
* @param {?} args
* @return {?}
*/
function issueAnimationCommand(renderer, element, id, command, args) {
return renderer.setProperty(element, "@@" + id + ":" + command, args);
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
var ANIMATION_PREFIX = '@';
var DISABLE_ANIMATIONS_FLAG = '@.disabled';
var AnimationRendererFactory = (function () {
function AnimationRendererFactory(delegate, engine, _zone) {
this.delegate = delegate;
this.engine = engine;
this._zone = _zone;
this._currentId = 0;
this._microtaskId = 1;
this._animationCallbacksBuffer = [];
this._rendererCache = new Map();
this._cdRecurDepth = 0;
engine.onRemovalComplete = function (element, delegate) {
// Note: if an component element has a leave animation, and the component
// a host leave animation, the view engine will call `removeChild` for the parent
// component renderer as well as for the child component renderer.
// Therefore, we need to check if we already removed the element.
if (delegate && delegate.parentNode(element)) {
delegate.removeChild(element.parentNode, element);
}
};
}
/**
* @param {?} hostElement
* @param {?} type
* @return {?}
*/
AnimationRendererFactory.prototype.createRenderer = /**
* @param {?} hostElement
* @param {?} type
* @return {?}
*/
function (hostElement, type) {
var _this = this;
var /** @type {?} */ EMPTY_NAMESPACE_ID = '';
// cache the delegates to find out which cached delegate can
// be used by which cached renderer
var /** @type {?} */ delegate = this.delegate.createRenderer(hostElement, type);
if (!hostElement || !type || !type.data || !type.data['animation']) {
var /** @type {?} */ renderer = this._rendererCache.get(delegate);
if (!renderer) {
renderer = new BaseAnimationRenderer(EMPTY_NAMESPACE_ID, delegate, this.engine);
// only cache this result when the base renderer is used
this._rendererCache.set(delegate, renderer);
}
return renderer;
}
var /** @type {?} */ componentId = type.id;
var /** @type {?} */ namespaceId = type.id + '-' + this._currentId;
this._currentId++;
this.engine.register(namespaceId, hostElement);
var /** @type {?} */ animationTriggers = /** @type {?} */ (type.data['animation']);
animationTriggers.forEach(function (trigger) {
return _this.engine.registerTrigger(componentId, namespaceId, hostElement, trigger.name, trigger);
});
return new AnimationRenderer(this, namespaceId, delegate, this.engine);
};
/**
* @return {?}
*/
AnimationRendererFactory.prototype.begin = /**
* @return {?}
*/
function () {
this._cdRecurDepth++;
if (this.delegate.begin) {
this.delegate.begin();
}
};
/**
* @return {?}
*/
AnimationRendererFactory.prototype._scheduleCountTask = /**
* @return {?}
*/
function () {
var _this = this;
Zone.current.scheduleMicroTask('incremenet the animation microtask', function () { return _this._microtaskId++; });
};
/* @internal */
/**
* @param {?} count
* @param {?} fn
* @param {?} data
* @return {?}
*/
AnimationRendererFactory.prototype.scheduleListenerCallback = /**
* @param {?} count
* @param {?} fn
* @param {?} data
* @return {?}
*/
function (count, fn, data) {
var _this = this;
if (count >= 0 && count < this._microtaskId) {
this._zone.run(function () { return fn(data); });
return;
}
if (this._animationCallbacksBuffer.length == 0) {
Promise.resolve(null).then(function () {
_this._zone.run(function () {
_this._animationCallbacksBuffer.forEach(function (tuple) {
var fn = tuple[0], data = tuple[1];
fn(data);
});
_this._animationCallbacksBuffer = [];
});
});
}
this._animationCallbacksBuffer.push([fn, data]);
};
/**
* @return {?}
*/
AnimationRendererFactory.prototype.end = /**
* @return {?}
*/
function () {
var _this = this;
this._cdRecurDepth--;
// this is to prevent animations from running twice when an inner
// component does CD when a parent component insted has inserted it
if (this._cdRecurDepth == 0) {
this._zone.runOutsideAngular(function () {
_this._scheduleCountTask();
_this.engine.flush(_this._microtaskId);
});
}
if (this.delegate.end) {
this.delegate.end();
}
};
/**
* @return {?}
*/
AnimationRendererFactory.prototype.whenRenderingDone = /**
* @return {?}
*/
function () { return this.engine.whenRenderingDone(); };
AnimationRendererFactory.decorators = [
{ type: _angular_core.Injectable },
];
/** @nocollapse */
AnimationRendererFactory.ctorParameters = function () { return [
{ type: _angular_core.RendererFactory2, },
{ type: _angular_animations_browser.ɵAnimationEngine, },
{ type: _angular_core.NgZone, },
]; };
return AnimationRendererFactory;
}());
var BaseAnimationRenderer = (function () {
function BaseAnimationRenderer(namespaceId, delegate, engine) {
this.namespaceId = namespaceId;
this.delegate = delegate;
this.engine = engine;
this.destroyNode = this.delegate.destroyNode ? function (n) { return /** @type {?} */ ((delegate.destroyNode))(n); } : null;
}
Object.defineProperty(BaseAnimationRenderer.prototype, "data", {
get: /**
* @return {?}
*/
function () { return this.delegate.data; },
enumerable: true,
configurable: true
});
/**
* @return {?}
*/
BaseAnimationRenderer.prototype.destroy = /**
* @return {?}
*/
function () {
this.engine.destroy(this.namespaceId, this.delegate);
this.delegate.destroy();
};
/**
* @param {?} name
* @param {?=} namespace
* @return {?}
*/
BaseAnimationRenderer.prototype.createElement = /**
* @param {?} name
* @param {?=} namespace
* @return {?}
*/
function (name, namespace) {
return this.delegate.createElement(name, namespace);
};
/**
* @param {?} value
* @return {?}
*/
BaseAnimationRenderer.prototype.createComment = /**
* @param {?} value
* @return {?}
*/
function (value) { return this.delegate.createComment(value); };
/**
* @param {?} value
* @return {?}
*/
BaseAnimationRenderer.prototype.createText = /**
* @param {?} value
* @return {?}
*/
function (value) { return this.delegate.createText(value); };
/**
* @param {?} parent
* @param {?} newChild
* @return {?}
*/
BaseAnimationRenderer.prototype.appendChild = /**
* @param {?} parent
* @param {?} newChild
* @return {?}
*/
function (parent, newChild) {
this.delegate.appendChild(parent, newChild);
this.engine.onInsert(this.namespaceId, newChild, parent, false);
};
/**
* @param {?} parent
* @param {?} newChild
* @param {?} refChild
* @return {?}
*/
BaseAnimationRenderer.prototype.insertBefore = /**
* @param {?} parent
* @param {?} newChild
* @param {?} refChild
* @return {?}
*/
function (parent, newChild, refChild) {
this.delegate.insertBefore(parent, newChild, refChild);
this.engine.onInsert(this.namespaceId, newChild, parent, true);
};
/**
* @param {?} parent
* @param {?} oldChild
* @return {?}
*/
BaseAnimationRenderer.prototype.removeChild = /**
* @param {?} parent
* @param {?} oldChild
* @return {?}
*/
function (parent, oldChild) {
this.engine.onRemove(this.namespaceId, oldChild, this.delegate);
};
/**
* @param {?} selectorOrNode
* @return {?}
*/
BaseAnimationRenderer.prototype.selectRootElement = /**
* @param {?} selectorOrNode
* @return {?}
*/
function (selectorOrNode) { return this.delegate.selectRootElement(selectorOrNode); };
/**
* @param {?} node
* @return {?}
*/
BaseAnimationRenderer.prototype.parentNode = /**
* @param {?} node
* @return {?}
*/
function (node) { return this.delegate.parentNode(node); };
/**
* @param {?} node
* @return {?}
*/
BaseAnimationRenderer.prototype.nextSibling = /**
* @param {?} node
* @return {?}
*/
function (node) { return this.delegate.nextSibling(node); };
/**
* @param {?} el
* @param {?} name
* @param {?} value
* @param {?=} namespace
* @return {?}
*/
BaseAnimationRenderer.prototype.setAttribute = /**
* @param {?} el
* @param {?} name
* @param {?} value
* @param {?=} namespace
* @return {?}
*/
function (el, name, value, namespace) {
this.delegate.setAttribute(el, name, value, namespace);
};
/**
* @param {?} el
* @param {?} name
* @param {?=} namespace
* @return {?}
*/
BaseAnimationRenderer.prototype.removeAttribute = /**
* @param {?} el
* @param {?} name
* @param {?=} namespace
* @return {?}
*/
function (el, name, namespace) {
this.delegate.removeAttribute(el, name, namespace);
};
/**
* @param {?} el
* @param {?} name
* @return {?}
*/
BaseAnimationRenderer.prototype.addClass = /**
* @param {?} el
* @param {?} name
* @return {?}
*/
function (el, name) { this.delegate.addClass(el, name); };
/**
* @param {?} el
* @param {?} name
* @return {?}
*/
BaseAnimationRenderer.prototype.removeClass = /**
* @param {?} el
* @param {?} name
* @return {?}
*/
function (el, name) { this.delegate.removeClass(el, name); };
/**
* @param {?} el
* @param {?} style
* @param {?} value
* @param {?=} flags
* @return {?}
*/
BaseAnimationRenderer.prototype.setStyle = /**
* @param {?} el
* @param {?} style
* @param {?} value
* @param {?=} flags
* @return {?}
*/
function (el, style, value, flags) {
this.delegate.setStyle(el, style, value, flags);
};
/**
* @param {?} el
* @param {?} style
* @param {?=} flags
* @return {?}
*/
BaseAnimationRenderer.prototype.removeStyle = /**
* @param {?} el
* @param {?} style
* @param {?=} flags
* @return {?}
*/
function (el, style, flags) {
this.delegate.removeStyle(el, style, flags);
};
/**
* @param {?} el
* @param {?} name
* @param {?} value
* @return {?}
*/
BaseAnimationRenderer.prototype.setProperty = /**
* @param {?} el
* @param {?} name
* @param {?} value
* @return {?}
*/
function (el, name, value) {
if (name.charAt(0) == ANIMATION_PREFIX && name == DISABLE_ANIMATIONS_FLAG) {
this.disableAnimations(el, !!value);
}
else {
this.delegate.setProperty(el, name, value);
}
};
/**
* @param {?} node
* @param {?} value
* @return {?}
*/
BaseAnimationRenderer.prototype.setValue = /**
* @param {?} node
* @param {?} value
* @return {?}
*/
function (node, value) { this.delegate.setValue(node, value); };
/**
* @param {?} target
* @param {?} eventName
* @param {?} callback
* @return {?}
*/
BaseAnimationRenderer.prototype.listen = /**
* @param {?} target
* @param {?} eventName
* @param {?} callback
* @return {?}
*/
function (target, eventName, callback) {
return this.delegate.listen(target, eventName, callback);
};
/**
* @param {?} element
* @param {?} value
* @return {?}
*/
BaseAnimationRenderer.prototype.disableAnimations = /**
* @param {?} element
* @param {?} value
* @return {?}
*/
function (element, value) {
this.engine.disableAnimations(element, value);
};
return BaseAnimationRenderer;
}());
var AnimationRenderer = (function (_super) {
__extends(AnimationRenderer, _super);
function AnimationRenderer(factory, namespaceId, delegate, engine) {
var _this = _super.call(this, namespaceId, delegate, engine) || this;
_this.factory = factory;
_this.namespaceId = namespaceId;
return _this;
}
/**
* @param {?} el
* @param {?} name
* @param {?} value
* @return {?}
*/
AnimationRenderer.prototype.setProperty = /**
* @param {?} el
* @param {?} name
* @param {?} value
* @return {?}
*/
function (el, name, value) {
if (name.charAt(0) == ANIMATION_PREFIX) {
if (name.charAt(1) == '.' && name == DISABLE_ANIMATIONS_FLAG) {
value = value === undefined ? true : !!value;
this.disableAnimations(el, /** @type {?} */ (value));
}
else {
this.engine.process(this.namespaceId, el, name.substr(1), value);
}
}
else {
this.delegate.setProperty(el, name, value);
}
};
/**
* @param {?} target
* @param {?} eventName
* @param {?} callback
* @return {?}
*/
AnimationRenderer.prototype.listen = /**
* @param {?} target
* @param {?} eventName
* @param {?} callback
* @return {?}
*/
function (target, eventName, callback) {
var _this = this;
if (eventName.charAt(0) == ANIMATION_PREFIX) {
var /** @type {?} */ element = resolveElementFromTarget(target);
var /** @type {?} */ name_1 = eventName.substr(1);
var /** @type {?} */ phase = '';
// @listener.phase is for trigger animation callbacks
// @@listener is for animation builder callbacks
if (name_1.charAt(0) != ANIMATION_PREFIX) {
_a = parseTriggerCallbackName(name_1), name_1 = _a[0], phase = _a[1];
}
return this.engine.listen(this.namespaceId, element, name_1, phase, function (event) {
var /** @type {?} */ countId = (/** @type {?} */ (event))['_data'] || -1;
_this.factory.scheduleListenerCallback(countId, callback, event);
});
}
return this.delegate.listen(target, eventName, callback);
var _a;
};
return AnimationRenderer;
}(BaseAnimationRenderer));
/**
* @param {?} target
* @return {?}
*/
function resolveElementFromTarget(target) {
switch (target) {
case 'body':
return document.body;
case 'document':
return document;
case 'window':
return window;
default:
return target;
}
}
/**
* @param {?} triggerName
* @return {?}
*/
function parseTriggerCallbackName(triggerName) {
var /** @type {?} */ dotIndex = triggerName.indexOf('.');
var /** @type {?} */ trigger = triggerName.substring(0, dotIndex);
var /** @type {?} */ phase = triggerName.substr(dotIndex + 1);
return [trigger, phase];
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* @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
*/
var InjectableAnimationEngine = (function (_super) {
__extends(InjectableAnimationEngine, _super);
function InjectableAnimationEngine(driver, normalizer) {
return _super.call(this, driver, normalizer) || this;
}
InjectableAnimationEngine.decorators = [
{ type: _angular_core.Injectable },
];
/** @nocollapse */
InjectableAnimationEngine.ctorParameters = function () { return [
{ type: _angular_animations_browser.AnimationDriver, },
{ type: _angular_animations_browser.ɵAnimationStyleNormalizer, },
]; };
return InjectableAnimationEngine;
}(_angular_animations_browser.ɵAnimationEngine));
/**
* @return {?}
*/
function instantiateSupportedAnimationDriver() {
if (_angular_animations_browser.ɵsupportsWebAnimations()) {
return new _angular_animations_browser.ɵWebAnimationsDriver();
}
return new _angular_animations_browser.ɵNoopAnimationDriver();
}
/**
* @return {?}
*/
function instantiateDefaultStyleNormalizer() {
return new _angular_animations_browser.ɵWebAnimationsStyleNormalizer();
}
/**
* @param {?} renderer
* @param {?} engine
* @param {?} zone
* @return {?}
*/
function instantiateRendererFactory(renderer, engine, zone) {
return new AnimationRendererFactory(renderer, engine, zone);
}
var SHARED_ANIMATION_PROVIDERS = [
{ provide: _angular_animations.AnimationBuilder, useClass: BrowserAnimationBuilder },
{ provide: _angular_animations_browser.ɵAnimationStyleNormalizer, useFactory: instantiateDefaultStyleNormalizer },
{ provide: _angular_animations_browser.ɵAnimationEngine, useClass: InjectableAnimationEngine }, {
provide: _angular_core.RendererFactory2,
useFactory: instantiateRendererFactory,
deps: [_angular_platformBrowser.ɵDomRendererFactory2, _angular_animations_browser.ɵAnimationEngine, _angular_core.NgZone]
}
];
/**
* Separate providers from the actual module so that we can do a local modification in Google3 to
* include them in the BrowserModule.
*/
var BROWSER_ANIMATIONS_PROVIDERS = [
{ provide: _angular_animations_browser.AnimationDriver, useFactory: instantiateSupportedAnimationDriver }
].concat(SHARED_ANIMATION_PROVIDERS);
/**
* Separate providers from the actual module so that we can do a local modification in Google3 to
* include them in the BrowserTestingModule.
*/
var BROWSER_NOOP_ANIMATIONS_PROVIDERS = [{ provide: _angular_animations_browser.AnimationDriver, useClass: _angular_animations_browser.ɵNoopAnimationDriver }].concat(SHARED_ANIMATION_PROVIDERS);
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* @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
*/
/**
* \@experimental Animation support is experimental.
*/
var BrowserAnimationsModule = (function () {
function BrowserAnimationsModule() {
}
BrowserAnimationsModule.decorators = [
{ type: _angular_core.NgModule, args: [{
exports: [_angular_platformBrowser.BrowserModule],
providers: BROWSER_ANIMATIONS_PROVIDERS,
},] },
];
/** @nocollapse */
BrowserAnimationsModule.ctorParameters = function () { return []; };
return BrowserAnimationsModule;
}());
/**
* \@experimental Animation support is experimental.
*/
var NoopAnimationsModule = (function () {
function NoopAnimationsModule() {
}
NoopAnimationsModule.decorators = [
{ type: _angular_core.NgModule, args: [{
exports: [_angular_platformBrowser.BrowserModule],
providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,
},] },
];
/** @nocollapse */
NoopAnimationsModule.ctorParameters = function () { return []; };
return NoopAnimationsModule;
}());
exports.BrowserAnimationsModule = BrowserAnimationsModule;
exports.NoopAnimationsModule = NoopAnimationsModule;
exports.ɵBrowserAnimationBuilder = BrowserAnimationBuilder;
exports.ɵBrowserAnimationFactory = BrowserAnimationFactory;
exports.ɵAnimationRenderer = AnimationRenderer;
exports.ɵAnimationRendererFactory = AnimationRendererFactory;
exports.ɵa = BaseAnimationRenderer;
exports.ɵf = BROWSER_ANIMATIONS_PROVIDERS;
exports.ɵg = BROWSER_NOOP_ANIMATIONS_PROVIDERS;
exports.ɵb = InjectableAnimationEngine;
exports.ɵd = instantiateDefaultStyleNormalizer;
exports.ɵe = instantiateRendererFactory;
exports.ɵc = instantiateSupportedAnimationDriver;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=platform-browser-animations.umd.js.map
|
(this.webpackJsonpme=this.webpackJsonpme||[]).push([[12],{632:function(e,a,t){"use strict";t.r(a);var n=t(2),l=t(3),c=t(5),r=t(4),i=t(0),o=t.n(i);var m=function(){return o.a.createElement("header",{className:"header"},o.a.createElement("div",{className:"head-bg",style:{backgroundImage:"url('img/cover.png')"}}),o.a.createElement("div",{className:"head-bar"},o.a.createElement("div",{className:"head-bar-inner"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-sm-4 col-xs-6"},o.a.createElement("a",{className:"logo",href:"/"},o.a.createElement("span",null,"Hoang Minh Thanh"))),o.a.createElement("div",{className:"col-sm-8 col-xs-6"},o.a.createElement("div",{className:"nav-wrap"},o.a.createElement("nav",{id:"nav",className:"nav"},o.a.createElement("ul",{className:"clearfix"},o.a.createElement("li",null,o.a.createElement("a",{href:"index.html#about"},"About")),o.a.createElement("li",null,o.a.createElement("a",{href:"index.html#education"},"Education")),o.a.createElement("li",null,o.a.createElement("a",{href:"index.html#experience"},"Experiences")," "),o.a.createElement("li",null,o.a.createElement("a",{href:"index.html#accomplishments"},"Awards")),o.a.createElement("li",null,o.a.createElement("a",{href:"index.html#miscellaneous"},"Miscellaneous",o.a.createElement("span",null)))))))))))},s=t(16),u=function(e){Object(c.a)(t,e);var a=Object(r.a)(t);function t(){return Object(n.a)(this,t),a.apply(this,arguments)}return Object(l.a)(t,[{key:"render",value:function(){return o.a.createElement("section",{id:"about",className:"section section-about"},o.a.createElement("div",{className:"animate-up"},o.a.createElement("div",{className:"section-box"},o.a.createElement("div",{className:"profile"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-xs-5"},o.a.createElement("div",{className:"profile-photo"},o.a.createElement("img",{src:"./img/awatar.jpg",width:300,height:300,alt:"Hoang Minh Thanh"})),o.a.createElement("div",{className:"section-txt-btn"},o.a.createElement("p",null,o.a.createElement("a",{className:"btn btn-lg btn-border ripple",rel:"noopener noreferrer",target:"_blank",href:"./file/Hoang_Minh_Thanh-CV.pdf"},"Resume")))),o.a.createElement("div",{className:"col-xs-7"},o.a.createElement("div",{className:"profile-info"},o.a.createElement("div",{className:"profile-preword"},o.a.createElement("span",null,"Hi !")),o.a.createElement("h1",{className:"profile-title"},o.a.createElement("span",null,"I'm")," Minh-Thanh Hoang"),o.a.createElement("div",{className:"job-title"},"Python Developer"),o.a.createElement("h2",{className:"profile-position"},o.a.createElement("strong",null,"BS. Student")),o.a.createElement("h2",{className:"profile-university",style:{padding:0,border:0,margin:0}},"Computer Science at University of Science - VNU"),o.a.createElement("br",null),o.a.createElement("h2",{className:"profile-university"},o.a.createElement("strong",null,"Language & tools")," :",o.a.createElement("ul",{className:"list-icon"},o.a.createElement("li",null,o.a.createElement("img",{className:"item-icon",alt:"python",src:"./img/icon_python.png"})),o.a.createElement("li",null,o.a.createElement("img",{className:"item-icon",alt:"cplusplus",src:"./img/icon_cplusplus.png"})),o.a.createElement("li",null,o.a.createElement("img",{className:"item-icon",alt:"jupyter",src:"./img/icon_jupyter.png"})),o.a.createElement("li",null,o.a.createElement("img",{className:"item-icon",alt:"vim",src:"./img/icon_vim.png"})),o.a.createElement("li",null,o.a.createElement("img",{className:"item-icon",alt:"command",src:"./img/icon_command.png"})),o.a.createElement("li",null,o.a.createElement("img",{className:"item-icon",alt:"vscode",src:"./img/icon_vscode.png"})),o.a.createElement("li",null,o.a.createElement("img",{className:"item-icon",alt:"sql",src:"./img/icon_sql.png"})),o.a.createElement("li",null,o.a.createElement("img",{className:"item-icon",alt:"mysql",src:"./img/icon_mysql.png"})),o.a.createElement("li",null,o.a.createElement("img",{className:"item-icon",alt:"git",src:"./img/icon_git.png"})),o.a.createElement("li",null,o.a.createElement("img",{className:"item-icon",alt:"github",src:"./img/icon_github.png"})))),o.a.createElement("div",{className:"ul-info"},o.a.createElement("a",{className:"contact-item",href:"tel:+84913472506"},o.a.createElement(s.g,null),"+84913472506"),o.a.createElement("a",{className:"contact-item",href:"mailto:hmthanhgm@gmail.com"},o.a.createElement(s.b,null)," hmthanhgm@gmail.com"),o.a.createElement("a",{className:"contact-item",href:"skype:+hmthanhgm"},o.a.createElement(s.h,null)," hmthanhgm")))))),o.a.createElement("div",{className:"profile-social"},o.a.createElement("ul",{className:"ul-info"},o.a.createElement("li",{className:"li-info"},o.a.createElement("a",{className:"icon-info",rel:"noopener noreferrer",target:"_blank",href:"https://www.facebook.com/hmthanhgm"},o.a.createElement(s.c,null))),o.a.createElement("li",{className:"li-info"},o.a.createElement("a",{className:"icon-info",rel:"noopener noreferrer",target:"_blank",href:"https://twitter.com/hmthanhgm"},o.a.createElement(s.j,null))),o.a.createElement("li",{className:"li-info"},o.a.createElement("a",{className:"icon-info",rel:"noopener noreferrer",target:"_blank",href:"https://www.linkedin.com/in/hmthanh/"},o.a.createElement(s.e,null))),o.a.createElement("li",{className:"li-info"},o.a.createElement("a",{className:"icon-info",rel:"noopener noreferrer",target:"_blank",href:"https://github.com/hmthanh"},o.a.createElement(s.d,null))),o.a.createElement("li",{className:"li-info"},o.a.createElement("a",{className:"icon-info",rel:"noopener noreferrer",target:"_blank",href:"https://medium.com/@hmthanh"},o.a.createElement(s.f,null))),o.a.createElement("li",{className:"li-info"},o.a.createElement("a",{className:"icon-info",rel:"noopener noreferrer",target:"_blank",href:"https://stackoverflow.com/story/hmthanh"},o.a.createElement(s.i,null))))))))}}]),t}(i.Component),h=function(e){Object(c.a)(t,e);var a=Object(r.a)(t);function t(){return Object(n.a)(this,t),a.apply(this,arguments)}return Object(l.a)(t,[{key:"render",value:function(){return o.a.createElement("section",{id:"news",className:"section news-text"},o.a.createElement("div",{className:"animate-up animated"},o.a.createElement("div",{className:"section-box"},o.a.createElement("p",null,"HI! I\u2019m +1",o.a.createElement("sup",null,"year")," experienced python web developer, have solid background knowledge about Programming Algorithm and Data Structure in ",o.a.createElement("a",{href:"https://en.hcmus.edu.vn/"},"University of Science, Vietnam National University, Ho Chi Minh city"),". Proficient Python, C++, experienced in C#, Java and good coding style. I defended my thesis with 9.5 result and ranked excellent. I would like opportunity to work, self-improvement in your company"),o.a.createElement("p",null))))}}]),t}(i.Component),p=function(e){Object(c.a)(t,e);var a=Object(r.a)(t);function t(){return Object(n.a)(this,t),a.apply(this,arguments)}return Object(l.a)(t,[{key:"render",value:function(){return o.a.createElement("section",{id:"education",className:"section section-education"},o.a.createElement("div",{className:"animate-up"},o.a.createElement("h2",{className:"section-title"},"Education"),o.a.createElement("div",{className:"timeline"},o.a.createElement("div",{className:"timeline-bar"}),o.a.createElement("div",{className:"timeline-inner clearfix"},o.a.createElement("div",{className:"timeline-box timeline-box-compact timeline-box-left"},o.a.createElement("span",{className:"dot"}),o.a.createElement("div",{className:"timeline-box-inner animate-left animated"},o.a.createElement("span",{className:"arrow"}),o.a.createElement("div",{className:"date"},o.a.createElement("span",null,"Nov. 2018 - Oct. 2020")),o.a.createElement("img",{src:"./img/hcmus.png",className:"logoStyle",alt:"HCMUS"}),o.a.createElement("h3",{className:"timeline-box-header"},"Bachelor of Computer Science"),o.a.createElement("h4",null,o.a.createElement("a",{href:"https://en.hcmus.edu.vn/"},"University of Science"),", VNU-HCM, Vietnam."),o.a.createElement("b",null,"(GPA : 8.2/10)"),o.a.createElement("p",null,"Thesis : Link Prediction in Knowledge Graph (9.5/10)"))),o.a.createElement("div",{className:"timeline-box timeline-box-compact timeline-box-right"},o.a.createElement("span",{className:"dot"}),o.a.createElement("div",{className:"timeline-box-inner animate-left animated"},o.a.createElement("span",{className:"arrow"}),o.a.createElement("div",{className:"date"},o.a.createElement("span",null,"Sep. 2012 - Sep. 2015")),o.a.createElement("img",{src:"img/hcmus.png",className:"logoStyle",alt:"HCMUS"}),o.a.createElement("h3",{className:"timeline-box-header"},"College of Information Technology"),o.a.createElement("h4",null,o.a.createElement("a",{href:"https://en.hcmus.edu.vn/"},"University of Science"),", VNU-HCM, Vietnam.")))))))}}]),t}(i.Component),E=function(e){Object(c.a)(t,e);var a=Object(r.a)(t);function t(){return Object(n.a)(this,t),a.apply(this,arguments)}return Object(l.a)(t,[{key:"render",value:function(){var e={float:"center",width:"100%",paddingLeft:"10%",paddingRight:"10%"};return o.a.createElement("section",{id:"experience",className:"section section-experience"},o.a.createElement("div",{className:"animate-up"},o.a.createElement("h2",{className:"section-title"},"Experiences"),o.a.createElement("div",{className:"timeline"},o.a.createElement("div",{className:"timeline-bar"}),o.a.createElement("div",{className:"timeline-inner clearfix"},o.a.createElement("div",{className:"timeline-box timeline-box-left"},o.a.createElement("span",{className:"dot"}),o.a.createElement("div",{className:"timeline-box-inner animate-left animated"},o.a.createElement("span",{className:"arrow"}),o.a.createElement("div",{className:"date"},"Aug. 2018 - Apr. 2019"),o.a.createElement("img",{src:"img/xep.png",alt:"XEP Company",width:388,height:120,style:e}),o.a.createElement("h3",null,"XEP Company"),o.a.createElement("h4",null,"Web Developer"),o.a.createElement("p",null,"ASP.NET, C#, MSSQL, ReactJS"))),o.a.createElement("div",{className:"timeline-box timeline-box-right"},o.a.createElement("span",{className:"dot"}),o.a.createElement("div",{className:"timeline-box-inner animate-right animated"},o.a.createElement("span",{className:"arrow"}),o.a.createElement("div",{className:"date"},"Aug. 2019 - Apr. 2020"),o.a.createElement("img",{src:"img/rakumo.png",alt:"rakumo Co., Ltd",style:e}),o.a.createElement("h3",null,"rakumo Co., Ltd"),o.a.createElement("h4",null,"Python Developer"),o.a.createElement("p",null,"Python, Django, Flask, Git, Selenium")))))))}}]),t}(i.Component),d=function(e){Object(c.a)(t,e);var a=Object(r.a)(t);function t(){return Object(n.a)(this,t),a.apply(this,arguments)}return Object(l.a)(t,[{key:"render",value:function(){return o.a.createElement("section",{id:"accomplishments",className:"section section-text"},o.a.createElement("div",{className:"animate-up animated"},o.a.createElement("h2",{className:"section-title"},"Awards and certifications"),o.a.createElement("div",{className:"section-box"},o.a.createElement("li",null,o.a.createElement("b",null,"Incentive Award")," in The Good Chemistry District Student Contest - 2009"),o.a.createElement("li",null,o.a.createElement("em",null,o.a.createElement("a",{href:"./img/Critical_Thinking.jpg",target:"_blank"},"Critical Thinking Certification")),", Oct. 2014"),o.a.createElement("li",null,o.a.createElement("em",null,o.a.createElement("a",{href:"./img/ml_summer.jpg",target:"_blank"},"Summer Course Machine Learning - HCMUS")),", Oct. 2019"),o.a.createElement("li",null,o.a.createElement("em",null,o.a.createElement("a",{href:"./img/Emotion_Regconition.jpg",target:"_blank"},"Emotion Recognition Certification - HCMUS")),", Nov. 2019"),o.a.createElement("li",null,o.a.createElement("b",null,"Second Round")," in ",o.a.createElement("a",{href:"https://www.youtube.com/watch?v=hiit2jOgwVQ"},"Thach Thuc")," Faculty of Information Technology, HCMUS"," ",o.a.createElement("a",{href:"./img/ThachThuc2013.jpg",target:"_blank"},"2013"),", ",o.a.createElement("a",{href:"./img/ThachThuc2014.jpg",target:"_blank"},"2014")))))}}]),t}(i.Component),g=(t(257),t(269),t(348),t(349),t(350),t(270),t(351),t(352),t(353),t(354),t(355),t(356),t(357),t(358),t(271),t(359),t(273),t(274),t(275),t(360),t(361),t(362),t(363),t(277),t(279),t(282),t(283),t(156),t(286),t(364),t(288),t(365),t(289),t(366),t(290),t(291),t(292),t(367),t(368),t(369),t(370),t(371),t(372),t(374),t(376),t(296),t(377),t(176),t(378),t(379),t(380),t(381),t(382),t(383),t(384),t(385),t(386),t(387),t(388),t(389),t(390),t(391),t(392),t(393),t(394),t(395),t(396),t(397),t(398),t(399),t(400),t(401),t(402),t(403),t(405),t(406),t(408),t(409),t(410),t(411),t(412),t(413),t(305),t(306),t(414),t(415),t(416),t(417),t(418),t(419),t(308),t(420),t(421),t(422),t(423),t(309),t(425),t(310),t(426),t(316),t(317),t(428),t(318),t(429),t(430),t(319),t(431),t(432),t(433),t(434),t(435),t(436),t(230),t(437),t(321),t(322),t(438),t(439),t(440),t(323),t(233),t(324),t(441),t(442),t(443),t(444),t(327),t(445),t(328),t(329),t(330),t(446),t(447),t(448),t(449),t(450),t(451),t(452),t(453),t(454),t(455),t(456),t(457),t(458),t(459),t(460),t(461),t(463),t(464),t(465),t(466),t(467),t(468),t(469),t(470),t(471),t(472),t(473),t(474),t(475),t(476),t(477),t(478),t(479),t(480),t(481),t(482),t(483),t(484),t(485),t(486),t(487),t(488),t(489),t(490),t(491),t(492),t(493),t(494),t(495),t(236),t(496),t(497),t(498),t(499),t(500),t(501),t(502),t(504),t(505),t(506),t(507),t(508),t(509),t(510),t(511),t(513),t(514),t(515),t(516),t(517),t(518),t(519),t(520),t(521),t(522),t(523),t(524),t(525),t(526),t(527),t(528),t(529),t(530),t(531),t(532),t(533),t(534),t(535),t(536),t(537),t(539),t(540),t(541),t(542),t(543),t(544),t(545),t(546),t(547),t(548),t(549),t(550),t(551),t(552),t(553),t(554),t(555),t(556),t(557),t(558),t(559),t(560),t(561),t(562),t(563),t(564),t(565),t(566),t(567),t(568),t(569),t(570),t(572),t(573),t(574),t(575),t(576),t(577),t(578),t(579),t(580),t(581),t(582),t(337),t(339),t(583),t(584),t(585),t(587),t(341),{AU:{country:"Australia",continent_code:"OC",continent:"Oceania",maps:["australiaLow","australiaHigh"]},CA:{country:"Canada",continent_code:"NA",continent:"North America",maps:["canadaLow","canadaHigh"]},CN:{country:"China",continent_code:"AS",continent:"Asia",maps:["chinaLow","chinaHigh"]},FR:{country:"France",continent_code:"EU",continent:"Europe",maps:["franceLow","franceHigh","franceDepartmentsLow","franceDepartmentsHigh"]},GB:{country:"United Kingdom",continent_code:"EU",continent:"Europe",maps:["ukLow","ukHigh","ukCountiesLow","ukCountiesHigh"]},JP:{country:"Japan",continent_code:"AS",continent:"Asia",maps:["japanLow","japanHigh"]},KR:{country:"Korea, Republic of",continent_code:"AS",continent:"Asia",maps:["southKoreaLow","southKoreaHigh"]},RU:{country:"Russian Federation",continent_code:"EU",continent:"Europe",maps:["russiaLow","russiaHigh","russiaCrimeaLow","russiaCrimeaHigh"]},SG:{country:"Singapore",continent_code:"AS",continent:"Asia",maps:["singaporeLow","singaporeHigh"]},TH:{country:"Thailand",continent_code:"AS",continent:"Asia",maps:["thailandLow","thailandHigh"]},US:{country:"United States",continent_code:"NA",continent:"North America",maps:["usaLow","usaHigh","usaTerritoriesLow","usaTerritoriesHigh","usaTerritories2Low","usaTerritories2High"]},VN:{country:"Viet Nam",continent_code:"AS",continent:"Asia",maps:["vietnamLow","vietnamHigh"]}}),f=function(e){Object(c.a)(i,e);var a=Object(r.a)(i);function i(){return Object(n.a)(this,i),a.apply(this,arguments)}return Object(l.a)(i,[{key:"componentDidMount",value:function(){var e=this;Promise.all([Promise.all([t.e(0),t.e(1),t.e(14)]).then(t.bind(null,631)),Promise.all([t.e(0),t.e(1),t.e(10)]).then(t.bind(null,630)),t.e(13).then(t.bind(null,629)),Promise.all([t.e(0),t.e(15)]).then(t.bind(null,633)),Promise.all([t.e(0),t.e(11)]).then(t.bind(null,634))]).then((function(a){var t=a[0],n=a[1],l=a[2].default,c=a[3].default,r=a[4].default;t.useTheme(c),t.useTheme(r);var i=t.color("rgb(170 , 218, 255)"),o=t.color("#fff"),m=t.color("#3b3b3b"),s=t.create("wordMap",n.MapChart);s.projection=new n.projections.Mercator,s.backgroundColor="#AADAFF",s.fill=i,s.homeZoomLevel=1;var u=[t.color("#1BA68D"),t.color("#581845"),t.color("#E77624"),t.color("#3498DB"),t.color("#F1C40F"),t.color("#232555"),t.color("#E74C3C"),t.color("#367B25"),t.color("#000"),t.color("#A569BD"),t.color("#C0392B"),t.color("#DF3520")],h=s.series.push(new n.MapPolygonSeries);h.useGeodata=!0,h.geodata=l,h.exclude=["AQ"];var p=h.mapPolygons.template;p.tooltipText="{name}",p.nonScalingStroke=!0,p.strokeOpacity=.5,p.fill=t.color("rgb(255, 247, 238);"),p.propertyFields.fill="color",p.states.create("hover").properties.fill=s.colors.getIndex(9);var E=s.series.push(new n.MapPolygonSeries);E.useGeodata=!0,E.hide(),E.geodataSource.events.on("done",(function(e){h.hide(),E.show()}));var d=E.mapPolygons.template;d.tooltipText="{name}",d.nonScalingStroke=!0,d.strokeOpacity=.5,d.fill=t.color("#eee"),d.states.create("hover").properties.fill=s.colors.getIndex(9),p.events.on("hit",(function(e){e.target.series.chart.zoomToMapObject(e.target);var a=e.target.dataItem.dataContext.map;a&&(e.target.isHover=!1,E.geodataSource.url="https://www.amcharts.com/lib/4/geodata/json/"+a+".json",E.geodataSource.load(),w.show())}));var f=[],v=0;for(var b in g)if(g.hasOwnProperty(b)){var N=g[b];N.maps.length&&f.push({id:b,color:u[v],map:N.maps[0]}),v+=1}h.data=f;var y=new n.ZoomControl;y.marginRight=10,y.opacity=.6,y.stroke=o,s.zoomControl=y;var w=s.createChild(t.Button),k=new t.Sprite;k.path="M-6.5,0.5 L7.5,0.5",k.stroke=o,w.icon=k,w.align="right",w.valign="top",w.marginRight=14,w.marginTop=50,w.padding(5,0,5,0),w.width=31,w.height=31,w._background.fill=m,w._background.opacity=.6,w.opacity=.6,w.hide(),w.events.on("hit",(function(e){h.show(),s.goHome(),E.hide(),w.hide()}));var C=s.chartContainer.createChild(t.Button),j=new t.Sprite;j.path="M-6.5,0.5 L0.5,-6.5 L7.5,0.5 L6.5,0.5 L6.5,6.5 L2.5,6.5 L2.5,2.5 L-1.5,2.5 L-1.5,6.5 L-5.5,6.5 L-5.5,0.5 Z",j.fill=o,j.padding(4,3,4,3),C.icon=j,C.align="right",C.marginRight=14,C.padding(5,5,5,5),C._background.fill=m,C.opacity=.6,C.events.on("hit",(function(){s.goHome()})),e.worldMap=s}))}},{key:"componentWillUnmount",value:function(){this.worldMap&&this.worldMap.dispose()}},{key:"render",value:function(){return o.a.createElement("div",{id:"wordMap",style:{width:"840px",height:"540px"}})}}]),i}(i.Component),v=function(e){Object(c.a)(t,e);var a=Object(r.a)(t);function t(){return Object(n.a)(this,t),a.apply(this,arguments)}return Object(l.a)(t,[{key:"render",value:function(){return o.a.createElement("section",{id:"miscellaneous",className:"section section-text"},o.a.createElement("div",{className:"animate-up "},o.a.createElement("h2",{className:"section-title"},"Miscellaneous"),o.a.createElement("div",{className:"section-box"},o.a.createElement("p",null,o.a.createElement("b",null,"Extra Activities")),o.a.createElement("li",null,o.a.createElement("em",null,"Pucca Runner ")," (",o.a.createElement("a",{href:"https://hmthanh.github.io/pucca_runner/"},"Play"),")"),o.a.createElement("li",null,o.a.createElement("em",null,"Quick Draw ")," (",o.a.createElement("a",{href:"https://hmthanh.github.io/quickdraw/"},"Play"),")"),o.a.createElement("br",null),o.a.createElement("p",null,o.a.createElement("b",null,"Hobbies")),o.a.createElement("ul",{className:"interests-list"},o.a.createElement("li",null,o.a.createElement("img",{src:"./img/coding.png",alt:"Coding"}),o.a.createElement("span",null,"Coding")),o.a.createElement("li",null,o.a.createElement("img",{src:"./img/reading.png",alt:"Reading"}),o.a.createElement("span",null,"Reading")),o.a.createElement("li",null,o.a.createElement("img",{src:"./img/photographer.png",alt:"Photographer"}),o.a.createElement("span",null,"Photographer")),o.a.createElement("li",null,o.a.createElement("img",{src:"./img/running.png",alt:"Running"}),o.a.createElement("span",null,"Running")),o.a.createElement("li",null,o.a.createElement("a",{href:"https://www.youtube.com/watch?v=nNjR0pTDebA"},o.a.createElement("img",{src:"./img/violin.png",alt:"Violin"})),o.a.createElement("span",null,"Violin"))),o.a.createElement("br",null),o.a.createElement("p",null,'"The World is a book and those who do not travel read only one page"',o.a.createElement("br",null)),o.a.createElement(f,null))))}}]),t}(i.Component),b=function(e){Object(c.a)(t,e);var a=Object(r.a)(t);function t(){return Object(n.a)(this,t),a.apply(this,arguments)}return Object(l.a)(t,[{key:"render",value:function(){return o.a.createElement("footer",{className:"footer"},o.a.createElement("section",{id:"text-section",className:"section section-text"},o.a.createElement("p",null,"Your ambition outweighs your talent",o.a.createElement("br",null),"\xa9 2020 Minh-Thanh Hoang")))}}]),t}(i.Component),N=function(e){Object(c.a)(t,e);var a=Object(r.a)(t);function t(){return Object(n.a)(this,t),a.apply(this,arguments)}return Object(l.a)(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"wrapper"},o.a.createElement(m,null),o.a.createElement("div",{className:"content"},o.a.createElement("div",{className:"container"},o.a.createElement(u,null),o.a.createElement(h,null),o.a.createElement(p,null),o.a.createElement(E,null),o.a.createElement(d,null),o.a.createElement(v,null))),o.a.createElement(b,null))}}]),t}(i.Component);a.default=N}}]);
//# sourceMappingURL=12.e2eb9c53.chunk.js.map
|
import { E } from '@agoric/eventual-send';
import { makePromiseKit } from '@agoric/promise-kit';
import { Far } from '@agoric/marshal';
export function buildRootObject() {
const callbackObj = Far('callback', {
callback(_arg1, _arg2) {
// console.log(`callback`, arg1, arg2);
return ['data', callbackObj]; // four, resolves pF
},
});
const precD = makePromiseKit();
const precE = makePromiseKit();
const dropMe = Far('dropMe', {});
function checkResB(resB) {
if (resB === callbackObj) {
return 'B good';
}
return `B bad: ${resB}`;
}
function checkResC(resC) {
return `C bad: not error, got ${resC}`;
}
function checkErrC(errC) {
if (errC.message === 'oops') {
return 'C good';
}
return `C wrong error ${errC.message}`;
}
function checkResF([resF1, resF2]) {
if (resF1 !== 'data') {
return 'F bad: data';
}
if (resF2 !== callbackObj) {
return `F bad: callbackObj was ${callbackObj}`;
}
return 'F good';
}
function checkThree(three) {
return three === 3 ? 'three good' : `not three, got ${three}`;
}
function checkA([pB, pC, pF, three]) {
return Promise.all([
pB.then(checkResB),
pC.then(checkResC, checkErrC),
pF.then(checkResF),
Promise.resolve(three).then(checkThree),
]);
}
return Far('root', {
bootstrap(vats, devices) {
const pA = E(vats.target).zero(
callbackObj,
precD.promise,
precE.promise,
devices.add,
dropMe,
);
const rp3 = E(vats.target).one();
precD.resolve(callbackObj); // two
precE.reject(Error('four')); // three
const done = Promise.all([pA.then(checkA), rp3]);
return done; // expect: [['B good', 'C good', 'F good', 'three good'], 'rp3 good']
},
});
}
|
/* Requiring services */
const CustomFS = require('./utils/fs-utils');
const Path = require('path');
const _ = require('lodash');
/* Class declaration */
class Module {
constructor (currentDir) {
this.currentDir = currentDir;
this.controllers = {};
this._name = '_base';
this._routing = false;
this.routing = undefined;
}
/* Private methods definitions */
_loadControllers () {
let controllerPath = Path.normalize(`${this.currentDir}/controllers`);
if (CustomFS.checkPathSync(controllerPath)) {
let controllersFiles = CustomFS.getFilesSync(controllerPath);
for (let i = 0; i < controllersFiles.length; i++) {
let ctrlPath = Path.join(controllerPath, controllersFiles[i]);
try {
let ControllerClass = require(ctrlPath);
let controller = new ControllerClass();
this.controllers[controller._name.toLowerCase()] = controller;
} catch (e) {
throw Error(`Error loading controller at path ${ctrlPath}: ${e}`);
}
}
}
}
_loadRouting () {
let routingPath = Path.join(this.currentDir, 'routing.js');
if (this._routing) {
if (CustomFS.checkPathSync(routingPath)) {
try {
let RoutingClass = require(routingPath);
this.routing = new RoutingClass();
} catch (e) {
console.log(e);
throw e;
}
} else {
throw Error(`Routing file not found for the ${this._name} module`);
}
}
}
init (app) {
this.app = app;
this._loadControllers();
this._loadRouting();
if (!_.isEmpty(this.controllers)) {
for (var key in this.controllers) {
if (this.controllers.hasOwnProperty(key)) {
this.controllers[key].init(this.app);
}
}
}
if (this._routing && this.routing !== undefined) {
this.routing.init(this.app, this.controllers);
}
}
socketInit (sockets, socket, session) {
if (this._routing && this.routing !== undefined) {
this.routing.socketInit(sockets, socket, session);
}
}
toString () {
return `[Module ${this._name}]`;
}
}
/* Exports */
module.exports = Module;
|
const pluginsConfig = require('../base/plugins.config.js');
const webpack = require('webpack');
pluginsConfig.push(
new webpack.HotModuleReplacementPlugin(),
new webpack.NoEmitOnErrorsPlugin()
);
module.exports = pluginsConfig;
|
macDetailCallback("00c040000000/24",[{"d":"1998-04-22","t":"add","a":"15070-B AVENUE OF SCIENCE\nSAN DIEGO CA 92128\n\n","c":"UNITED STATES","o":"ECCI"},{"d":"2001-10-24","t":"change","a":"15070-B AVENUE OF SCIENCE\nSAN DIEGO CA 92128\n\n","c":"UNITED STATES","o":"ECCI"},{"d":"2015-08-27","t":"change","a":"15070-B AVENUE OF SCIENCE SAN DIEGO CA US 92128","c":"US","o":"ECCI"}]);
|
Rickshaw.namespace('Rickshaw.Compat.ClassList');
Rickshaw.Compat.ClassList = function() {
/* adapted from http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
if (typeof document !== "undefined" && !("classList" in document.createElement("a"))) {
(function (view) {
"use strict";
var
classListProp = "classList"
, protoProp = "prototype"
, elemCtrProto = (view.HTMLElement || view.Element)[protoProp]
, objCtr = Object
, strTrim = String[protoProp].trim || function () {
return this.replace(/^\s+|\s+$/g, "");
}
, arrIndexOf = Array[protoProp].indexOf || function (item) {
var
i = 0
, len = this.length
;
for (; i < len; i++) {
if (i in this && this[i] === item) {
return i;
}
}
return -1;
}
// Vendors: please allow content code to instantiate DOMExceptions
, DOMEx = function (type, message) {
this.name = type;
this.code = DOMException[type];
this.message = message;
}
, checkTokenAndGetIndex = function (classList, token) {
if (token === "") {
throw new DOMEx(
"SYNTAX_ERR"
, "An invalid or illegal string was specified"
);
}
if (/\s/.test(token)) {
throw new DOMEx(
"INVALID_CHARACTER_ERR"
, "String contains an invalid character"
);
}
return arrIndexOf.call(classList, token);
}
, ClassList = function (elem) {
var
trimmedClasses = strTrim.call(elem.className)
, classes = trimmedClasses ? trimmedClasses.split(/\s+/) : []
, i = 0
, len = classes.length
;
for (; i < len; i++) {
this.push(classes[i]);
}
this._updateClassName = function () {
elem.className = this.toString();
};
}
, classListProto = ClassList[protoProp] = []
, classListGetter = function () {
return new ClassList(this);
}
;
// Most DOMException implementations don't allow calling DOMException's toString()
// on non-DOMExceptions. Error's toString() is sufficient here.
DOMEx[protoProp] = Error[protoProp];
classListProto.item = function (i) {
return this[i] || null;
};
classListProto.contains = function (token) {
token += "";
return checkTokenAndGetIndex(this, token) !== -1;
};
classListProto.add = function (token) {
token += "";
if (checkTokenAndGetIndex(this, token) === -1) {
this.push(token);
this._updateClassName();
}
};
classListProto.remove = function (token) {
token += "";
var index = checkTokenAndGetIndex(this, token);
if (index !== -1) {
this.splice(index, 1);
this._updateClassName();
}
};
classListProto.toggle = function (token) {
token += "";
if (checkTokenAndGetIndex(this, token) === -1) {
this.add(token);
} else {
this.remove(token);
}
};
classListProto.toString = function () {
return this.join(" ");
};
if (objCtr.defineProperty) {
var classListPropDesc = {
get: classListGetter
, enumerable: true
, configurable: true
};
try {
objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc);
} catch (ex) { // IE 8 doesn't support enumerable:true
if (ex.number === -0x7FF5EC54) {
classListPropDesc.enumerable = false;
objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc);
}
}
} else if (objCtr[protoProp].__defineGetter__) {
elemCtrProto.__defineGetter__(classListProp, classListGetter);
}
}(window));
}
};
if ( (typeof RICKSHAW_NO_COMPAT !== "undefined" && !RICKSHAW_NO_COMPAT) || typeof RICKSHAW_NO_COMPAT === "undefined") {
new Rickshaw.Compat.ClassList();
}
|
/**
* @license DEDUPE_ON_MINIFY
* Copyright 2015 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
goog.module('amp.htmlparser.interface');
const googArray = goog.require('goog.array');
/**
* @param {string} str The string to lower case.
* @return {string} The str in lower case format.
*/
const toLowerCase = function(str) {
// htmlparser heavily relies on the length of the strings, and
// unfortunately some characters change their length when
// lowercased; for instance, the Turkish İ has a length of 1, but
// when lower-cased, it has a length of 2. So, as a workaround we
// check that the length be the same as before lower-casing, and if
// not, we only lower-case the letters A-Z.
const lowerCased = str.toLowerCase();
if (lowerCased.length == str.length) {
return lowerCased;
}
return str.replace(/[A-Z]/g, function(ch) {
return String.fromCharCode(ch.charCodeAt(0) | 32);
});
};
exports.toLowerCase = toLowerCase;
/**
* @param {string} str The string to upper case.
* @return {string} The str in upper case format.
*/
const toUpperCase = function(str) {
// htmlparser heavily relies on the length of the strings, and
// unfortunately some characters change their length when
// lowercased; for instance, the Turkish İ has a length of 1, but
// when lower-cased, it has a length of 2. So, as a workaround we
// check that the length be the same as before upper-casing, and if
// not, we only upper-case the letters A-Z.
const upperCased = str.toUpperCase();
if (upperCased.length == str.length) {
return upperCased;
}
return str.replace(/[a-z]/g, function(ch) {
return String.fromCharCode(ch.charCodeAt(0) & 223);
});
};
exports.toUpperCase = toUpperCase;
/**
* Name/Value pair representing an HTML Tag attribute.
*/
const ParsedAttr = class {
constructor() {
/** @type {string} */
this.name = '';
/** @type {string} */
this.value = '';
}
};
exports.ParsedAttr = ParsedAttr;
/**
* An Html parser makes method calls with ParsedHtmlTags as arguments.
*/
const ParsedHtmlTag = class {
/**
* @param {string} tagName
* @param {Array<string>=} opt_attrs Array of alternating (name, value) pairs.
*/
constructor(tagName, opt_attrs) {
// Tag and Attribute names are case-insensitive. For error messages, we
// would like to use lower-case names as they read a little nicer. However,
// in validator environments where the parsing is done by the actual
// browser, the DOM API returns tag names in upper case. We stick with this
// convention for tag names, for performance, but convert to lower when
// producing error messages. Error messages aren't produced in latency
// sensitive contexts.
/** @type {!Array<string>} */
const attrs = opt_attrs || [];
/** @private @type {string} */
this.tagName_ = toUpperCase(tagName);
/** @private @type {!Array<!ParsedAttr>} */
this.attrs_ = [];
// Convert attribute names to lower case, not values, which are
// case-sensitive.
for (let i = 0; i < attrs.length; i += 2) {
const attr = new ParsedAttr();
attr.name = toLowerCase(attrs[i]);
attr.value = attrs[i + 1];
// Our html parser repeats the key as the value if there is no value. We
// replace the value with an empty string instead in this case.
if (attr.name === attr.value) {
attr.value = '';
}
this.attrs_.push(attr);
}
// Sort the attribute array by (lower case) name.
googArray.sort(this.attrs_, function(a, b) {
if (a.name > b.name) {
return 1;
}
if (a.name < b.name) {
return -1;
}
// No need to sub-sort by attr values, just names will do.
return 0;
});
// Lazily allocated map from attribute name to value.
/** @private @type {?Object<string, string>} */
this.attrsByKey_ = null;
}
/**
* Lower-case tag name
* @return {string}
*/
lowerName() {
return toLowerCase(this.tagName_);
}
/**
* Upper-case tag name
* @return {string}
*/
upperName() {
return this.tagName_;
}
/**
* Returns an array of attributes. Each attribute has two fields: name and
* value. Name is always lower-case, value is the case from the original
* document. Values are unescaped.
* @return {!Array<!ParsedAttr>}
*/
attrs() {
return this.attrs_;
}
/**
* Returns an object mapping attribute name to attribute value. This is
* populated lazily, as it's not used for most tags.
* @return {Object<string, string>}
* */
attrsByKey() {
if (this.attrsByKey_ === null) {
this.attrsByKey_ = Object.create(null);
for (const attr of this.attrs()) {
this.attrsByKey_[attr.name] = attr.value;
}
}
return /** @type{Object<string, string>} */ (this.attrsByKey_);
}
/**
* Returns a duplicate attribute name if the tag contains two attributes
* named the same, but with different attribute values. Same attribute name
* AND value is OK. Returns null if there are no such duplicate attributes.
* @return {?string}
*/
hasDuplicateAttrs() {
/** @type {string} */
let lastAttrName = '';
/** @type {string} */
let lastAttrValue = '';
for (const attr of this.attrs()) {
if (lastAttrName === attr.name && lastAttrValue !== attr.value) {
return attr.name;
}
lastAttrName = attr.name;
lastAttrValue = attr.value;
}
return null;
}
/**
* Removes duplicate attributes from the attribute list. This is consistent
* with HTML5 parsing error handling rules, only the first attribute with
* each attribute name is considered, the remainder are ignored.
*/
dedupeAttrs() {
/** @type {!Array<!Object>} */
const newAttrs = [];
/** @type {string} */
let lastAttrName = '';
for (const attr of this.attrs_) {
if (lastAttrName !== attr.name) {
newAttrs.push(attr);
}
lastAttrName = attr.name;
}
this.attrs_ = newAttrs;
}
/**
* @return {boolean}
*/
isEmpty() {
return this.tagName_.length === 0;
}
};
exports.ParsedHtmlTag = ParsedHtmlTag;
/**
* An interface to the `htmlparser.HtmlParser` visitor, that gets
* called while the HTML is being parsed.
*/
const HtmlSaxHandler = class {
/**
* Handler called when the parser found a new tag.
* @param {!ParsedHtmlTag} tag
*/
startTag(tag) {}
/**
* Handler called when the parser found a closing tag.
* @param {!ParsedHtmlTag} tag
*/
endTag(tag) {}
/**
* Handler called when PCDATA is found.
* @param {string} text The PCDATA text found.
*/
pcdata(text) {}
/**
* Handler called when RCDATA is found.
* @param {string} text The RCDATA text found.
*/
rcdata(text) {}
/**
* Handler called when CDATA is found.
* @param {string} text The CDATA text found.
*/
cdata(text) {}
/**
* Handler called when the parser is starting to parse the document.
*/
startDoc() {}
/**
* Handler called when the parsing is done.
*/
endDoc() {}
/**
* Callback for informing that the parser is manufacturing a <body> tag not
* actually found on the page. This will be followed by a startTag() with the
* actual body tag in question.
*/
markManufacturedBody() {}
/**
* HTML5 defines how parsers treat documents with multiple body tags: they
* merge the attributes from the later ones into the first one. Therefore,
* just before the parser sends the endDoc event, it will also send this
* event which will provide the attributes from the effective body tag
* to the client (the handler).
*/
effectiveBodyTag(attributes) {}
};
exports.HtmlSaxHandler = HtmlSaxHandler;
/**
* An interface for determining the line/column information for SAX events that
* are being received by a `HtmlSaxHandler`. Please see
* the `HtmlSaxHandler#setDocLocator` method.
*/
const DocLocator = class {
constructor() {}
/**
* The current line in the HTML source from which the most recent SAX event
* was generated. This value is only sensible once an event has been
* generated, that is, in practice from within the context of the
* HtmlSaxHandler methods - e.g., startTag, pcdata, etc.
* @return {number} line The current line.
*/
getLine() {}
/**
* The current column in the HTML source from which the most recent SAX event
* was generated. This value is only sensible once an event has been
* generated, that is, in practice from within the context of the
* HtmlSaxHandler methods - e.g., startTag, pcdata, etc.
* @return {number} line The current column.
*/
getCol() {}
};
exports.DocLocator = DocLocator;
/**
* Handler with a setDocLocator method in addition to the parser callbacks.
* @extends {HtmlSaxHandler}
*/
const HtmlSaxHandlerWithLocation = class extends HtmlSaxHandler {
constructor() {
super();
}
/**
* Called prior to parsing a document, that is, before `startTag`.
* @param {!DocLocator} locator A locator instance which
* provides access to the line/column information while SAX events
* are being received by the handler.
*/
setDocLocator(locator) {}
};
exports.HtmlSaxHandlerWithLocation = HtmlSaxHandlerWithLocation;
|
import _ from 'lodash';
import keycodes from './lib/keycodes';
import ParallaxLayer from './lib/Parallaxlayer';
import File from './lib/File';
import Folder from './lib/Folder';
import VideoFile from './lib/VideoFile';
import ImageFile from './lib/ImageFile';
import Bullet from './lib/Bullet';
import Shooter from './lib/Shooter';
import Vue from 'vue';
import VueComponents from './lib/VueComponents';
import seedrandom from 'seedrandom';
const PIXI = require('pixi.js');
var path = require('path');
// Setup keyboard listener
var keyState = keycodes(window, ["ArrowLeft", "ArrowUp", "ArrowDown", "ArrowRight", "Space"]);
// Create PIXI Application
// The PIXI Application is responsible for most of the game's workings and rendering.
var app = new PIXI.Application(800, 600, {backgroundColor : 0x000000});
document.getElementById('main').appendChild(app.view);
// Setup layers containing game objects
app.topLayer = new PIXI.Container();
app.middleLayer = new PIXI.Container();
app.bottomLayer = new PIXI.Container();
app.bullets = new PIXI.Container();
app.files = new PIXI.Container();
// Layers added later are rendered above layers added earlier
app.stage.addChild(app.bottomLayer);
app.stage.addChild(app.middleLayer);
app.stage.addChild(app.bullets);
app.stage.addChild(app.files);
app.stage.addChild(app.topLayer);
// Add background parallax layers
var addParallaxLayer = function(assetLocation, depth) {
var layer = new ParallaxLayer({assetLocation: assetLocation, depth: depth})
layer.wire(app);
app.bottomLayer.addChild(layer);
};
addParallaxLayer("assets/parallax_1_0.png", 4);
addParallaxLayer("assets/parallax_2.png", 3);
addParallaxLayer("assets/parallax_3.png", 2);
addParallaxLayer("assets/parallax_4.png", 1);
/*
Add a game object ('thing') and place it pseudorandomly in the playing field.
Used in 'enterFolder' function below.
*/
var add = function(thing) {
var angle;
var distance;
if (thing.filedetails.name === '..') { // always place the 'go up one folder' folder in a static position on the playing field
angle = 0;
distance = 100;
} else {
var rng = seedrandom(thing.filedetails.relpath);
angle = rng() * 2 * Math.PI;
distance = (rng() * 2000) + 200;
}
thing.position.x = Math.sin(angle) * distance;
thing.position.y = Math.cos(angle) * distance;
thing.wire(app); // If the game object needs some extra wiring done with our app instance, it'll be able to do so now.
app.files.addChild(thing);
};
/*
Enter a new folder.
This will fetch the folder's contents from the backend and (re)set the state of the game accordingly.
*/
var enterFolder = function(dirPath) {
vue_app.currentfolder = '';
app.files.removeChildren();
app.ship.position.x = 0;
app.ship.position.y = 0;
app.ship.state.velocity.x = 0;
app.ship.state.velocity.y = 0;
fetch('/data/' + dirPath).then(function(res){
return res.json()
}).then(function(details){
vue_app.currentfolder = details.absolute_path;
vue_app.isgameroot = details.is_root;
_.each(details.contents, function(file) { // Iterate through the files in the folder and add the relevant game objects.
if (!file.destroyed) {
file.relpath = path.join(dirPath, file.name);
file.resource_path = path.join('/data', file.relpath);
if (file.type === 'image') {
add(new ImageFile(file));
} else if (file.type === 'video') {
add(new VideoFile(file));
} else if (file.type === 'folder' || file.type === 'folder_up') {
add(new Folder(file));
} else {
add(new File(file));
}
}
});
if (dirPath !== '.') { // Add a 'go up' folder ('..') if the user is not in the game root folder.
add(new Folder({
name: '..',
type: 'folder_up',
relpath: path.dirname(dirPath)
}));
}
});
};
// Create the spaceship the user is going to fly!
var ship = new PIXI.Sprite(PIXI.Texture.fromImage("assets/ship.png"));
ship.position.x = 400;
ship.position.y = 400;
ship.anchor.set(0.5);
ship.state = {
velocity: {
x: 0,
y: 0
}
};
app.ship = ship;
app.topLayer.addChild(ship);
ship.shooter = new Shooter(3, function() {
var bullet = new Bullet(ship.position.x, ship.position.y, ship.state.velocity.x, ship.state.velocity.y, ship.rotation + Math.random() * 0.03 - 0.015);
bullet.wire(app);
});
ship.shooter.wire(app);
app.ticker.add(function(delta) {
// Handle keypresses for ship
if (keyState.ArrowLeft) {
ship.rotation -= 0.1;
}
if (keyState.ArrowRight) {
ship.rotation += 0.1;
}
if (keyState.ArrowUp) {
ship.state.velocity.x -= Math.sin(ship.rotation+Math.PI) * 0.1;
ship.state.velocity.y += Math.cos(ship.rotation+Math.PI) * 0.1;
}
if (keyState.ArrowDown) {
ship.state.velocity.x -= Math.sin(ship.rotation+Math.PI) * -0.05;
ship.state.velocity.y += Math.cos(ship.rotation+Math.PI) * -0.05;
}
if (keyState.Space) {
ship.shooter.shoot();
}
// Update ship position
ship.position.x += ship.state.velocity.x;
ship.position.y += ship.state.velocity.y;
// center ship in stage
app.stage.pivot.x = ship.position.x - app.renderer.width*0.5;
app.stage.pivot.y = ship.position.y - app.renderer.height*0.5;
/*
Handle bullets and hit detection.
This happens in a few stages:
1) Move all bullets and test if they've hit any files. If so; register the hit and mark the bullet as deceased
2) Destroy all bullets that have deceased
3) Update graphics for all files (show damage correctly)
4) Destroy all files that have been damaged to obadly
The actual hit detection is rather basic and naïve. It's a simple point-box test between ALL bullets and ALL files.
As there are probably not that many bullets active at any given point, and the number of files is probably not that great, this should be okay for now.
An easy way of improving this would be to divide the game world up into sectors and only checking for hit detections within a sector and its eight neighbors.
Unfortunately, this code is unnecessarily messy. This is mostly because of the way PIXI.JS works:
* When a Container is destroyed, it's cleaned up entirely, meaning that any references you might still have to it will error out with an NPE if you try to access properties like `position.x`.
* When a Container is destroyed, it's removed from the `children` array of its parent in two phases:
first, the reference is replaced with `undefined`, and after the current but before the next game tick all falsy values are removed ffrom the `children` array.
This means that if you *just* destroyed a Container and iterate through its parent's `children` array, you'll eventually hit `undefined`...
Naturally, this could be avoided by wrapping `app.{...}.children` in `_.compact`. Though this would result in cleaner code, it'd perform slower than what is actually implemented below.
*/
_.each(app.bullets.children, function(bullet) {
if (bullet) {
bullet.movementTick(delta);
_.each(app.files.children, function(file) {
const dx = Math.abs(bullet.position.x - file.position.x);
const dy = Math.abs(bullet.position.y - file.position.y);
const hitboxSize = file.getHitboxSize();
if (dx < hitboxSize.width && dy < hitboxSize.height) {
file.registerHit();
bullet.markDeceased();
}
});
}
});
// Destroy all bullets that have 'deceased'
_.each(app.bullets.children, function(bullet) {
if (bullet) {
bullet.lifetimeTick(delta);
}
});
// Update gfx for all files
_.each(app.files.children, function(file) {
file.gfxTick();
});
// Destroy all files that have been damaged too badly
_.each(app.files.children, function(file) {
if (file) {
var destroyed = file.lifetimeTick(delta);
if (destroyed) {
// since we still have a reference to the file, we can capture its filename before it will get garbage collected later.
socket.emit('destroyedFile', file.filedetails.relpath);
}
}
});
// Check if player ship is touching a folder; if so, enter it!
_.each(app.files.children, function(file) {
if (file instanceof Folder) {
const dx = Math.abs(ship.position.x - file.position.x);
const dy = Math.abs(ship.position.y - file.position.y);
if (dx*dx+dy*dy < 1500) {
enterFolder(file.filedetails.relpath);
}
}
});
// Sync some stuff with the Vue.js UI app
vue_app.shipposition.x = ship.position.x;
vue_app.shipposition.y = ship.position.y;
vue_app.number_of_files = app.files.children.length;
});
var socket = require('socket.io-client')(window.location.href);
socket.on('connect', function(x){
console.log("Connected to Socket.IO backend");
});
socket.on('loadavg', function(data){ // update load average display
vue_app.load = data;
});
socket.on('hostname', function(data){ // update hostname display
vue_app.hostname = data;
});
socket.on('freemem', function(data){ // update free memory display
vue_app.freemem = data;
});
socket.on('disconnect', function(){
console.log("Disconnected from Socket.IO backend");
});
// Setup VueJS application.
// The VueJS application is responsible for rendering various widgets on screen (radar, hostname, load average, etc.)
var vue_app = new Vue({
el: '#vue',
components: VueComponents,
data: {
load: null,
hostname: null,
freemem: null,
currentfolder: '',
isgameroot: true,
number_of_files: 0,
files: [],
shipposition: {x: 0, y: 0}
},
mounted: function() {},
watch: {
number_of_files: function() {
// Whenever the number of files changes, recompute the state of all files for the Radar UI widget.
// This is done this way for performance reasons, as observing `app.files.children` directly causes massive performance issues.
this.files = app.files.children.map(function(file) {
return {
position: {
x: file.position.x,
y: file.position.y,
},
type: file.filedetails.type
}
});
}
}
});
// Finally, enter the root folder!
enterFolder('.');
// Expose some variables onto the window for debugging / developing.
window.vue_app = vue_app;
window.app = app;
window.socket = socket;
|
var gapi=window.gapi=window.gapi||{};gapi._bs=new Date().getTime();(function(){/*
gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var g=window,h=document,m=g.location,n=function(){},q=/\[native code\]/,u=function(a,b,c){return a[b]=a[b]||c},aa=function(a){a=a.sort();for(var b=[],c=void 0,d=0;d<a.length;d++){var e=a[d];e!=c&&b.push(e);c=e}return b},w=function(){var a;if((a=Object.create)&&q.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a},x=u(g,"gapi",{});var A;A=u(g,"___jsl",w());u(A,"I",0);u(A,"hel",10);var B=function(){var a=m.href;if(A.dpo)var b=A.h;else{b=A.h;var c=/([#].*&|[#])jsh=([^&#]*)/g,d=/([?#].*&|[?#])jsh=([^&#]*)/g;if(a=a&&(c.exec(a)||d.exec(a)))try{b=decodeURIComponent(a[2])}catch(e){}}return b},ba=function(a){var b=u(A,"PQ",[]);A.PQ=[];var c=b.length;if(0===c)a();else for(var d=0,e=function(){++d===c&&a()},f=0;f<c;f++)b[f](e)},C=function(a){return u(u(A,"H",w()),a,w())};var D=u(A,"perf",w()),F=u(D,"g",w()),ca=u(D,"i",w());u(D,"r",[]);w();w();var G=function(a,b,c){var d=D.r;"function"===typeof d?d(a,b,c):d.push([a,b,c])},K=function(a,b,c){b&&0<b.length&&(b=J(b),c&&0<c.length&&(b+="___"+J(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=u(ca,"_p",w()),u(b,c,w())[a]=(new Date).getTime(),G(a,"_p",c))},J=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var L=w(),M=[],N=function(a){throw Error("Bad hint"+(a?": "+a:""));};M.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?A[b]=u(A,b,[]).concat(c):u(A,b,c)}if(b=a.u)a=u(A,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);var da=/^(\/[a-zA-Z0-9_\-]+)+$/,O=[/\/amp\//,/\/amp$/,/^\/amp$/],ea=/^[a-zA-Z0-9\-_\.,!]+$/,fa=/^gapi\.loaded_[0-9]+$/,ha=/^[a-zA-Z0-9,._-]+$/,la=function(a,b,c,d){var e=a.split(";"),f=e.shift(),l=L[f],k=null;l?k=l(e,b,c,d):N("no hint processor for: "+f);k||N("failed to generate load url");b=k;c=b.match(ia);(d=b.match(ja))&&1===d.length&&ka.test(b)&&c&&1===c.length||N("failed sanity: "+a);return k},na=function(a,b,c,d){a=ma(a);fa.test(c)||N("invalid_callback");b=P(b);d=d&&d.length?P(d):null;var e=
function(a){return encodeURIComponent(a).replace(/%2C/g,",")};return[encodeURIComponent(a.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.a?"/am="+e(a.a):"",a.c?"/rs="+e(a.c):"",a.f?"/t="+e(a.f):"","/cb=",e(c)].join("")},ma=function(a){"/"!==a.charAt(0)&&N("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))N("empty/relative directory");else if(0<a.indexOf("=")){b.unshift(a);
break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var f=b[d].split("="),l=decodeURIComponent(f[0]),k=decodeURIComponent(f[1]);2==f.length&&l&&k&&(a[l]=a[l]||k)}b="/"+c.join("/");da.test(b)||N("invalid_prefix");c=0;for(d=O.length;c<d;++c)O[c].test(b)&&N("invalid_prefix");c=Q(a,"k",!0);d=Q(a,"am");e=Q(a,"rs");a=Q(a,"t");return{pathPrefix:b,version:c,a:d,c:e,f:a}},P=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");ha.test(e)&&b.push(e)}return b.join(",")},
Q=function(a,b,c){a=a[b];!a&&c&&N("missing: "+b);if(a){if(ea.test(a))return a;N("invalid: "+b)}return null},ka=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,ja=/\/cb=/g,ia=/\/\//g,oa=function(){var a=B();if(!a)throw Error("Bad hint");return a};L.m=function(a,b,c,d){(a=a[0])||N("missing_hint");return"https://apis.google.com"+na(a,b,c,d)};var R=decodeURI("%73cript"),S=/^[-+_0-9\/A-Za-z]+={0,2}$/,T=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d],f;if(f=e){a:{for(f=0;f<b.length;f++)if(b[f]===e)break a;f=-1}f=0>f}f&&c.push(e)}return c},U=function(){var a=A.nonce;if(void 0!==a)return a&&a===String(a)&&a.match(S)?a:A.nonce=null;var b=u(A,"us",[]);if(!b||!b.length)return A.nonce=null;for(var c=h.getElementsByTagName(R),d=0,e=c.length;d<e;++d){var f=c[d];if(f.src&&(a=String(f.nonce||f.getAttribute("nonce")||"")||null)){for(var l=
0,k=b.length;l<k&&b[l]!==f.src;++l);if(l!==k&&a&&a===String(a)&&a.match(S))return A.nonce=a}}return null},pa=function(a){if("loading"!=h.readyState)V(a);else{var b=U(),c="";null!==b&&(c=' nonce="'+b+'"');h.write("<"+R+' src="'+encodeURI(a)+'"'+c+"></"+R+">")}},V=function(a){var b=h.createElement(R);b.setAttribute("src",a);a=U();null!==a&&b.setAttribute("nonce",a);b.async="true";(a=h.getElementsByTagName(R)[0])?a.parentNode.insertBefore(b,a):(h.head||h.body||h.documentElement).appendChild(b)},qa=function(a,
b){var c=b&&b._c;if(c)for(var d=0;d<M.length;d++){var e=M[d][0],f=M[d][1];f&&Object.prototype.hasOwnProperty.call(c,e)&&f(c[e],a,b)}},ra=function(a,b,c){X(function(){var c=b===B()?u(x,"_",w()):w();c=u(C(b),"_",c);a(c)},c)},Z=function(a,b){var c=b||{};"function"==typeof b&&(c={},c.callback=b);qa(a,c);b=a?a.split(":"):[];var d=c.h||oa(),e=u(A,"ah",w());if(e["::"]&&b.length){a=[];for(var f=null;f=b.shift();){var l=f.split(".");l=e[f]||e[l[1]&&"ns:"+l[0]||""]||d;var k=a.length&&a[a.length-1]||null,v=
k;k&&k.hint==l||(v={hint:l,b:[]},a.push(v));v.b.push(f)}var y=a.length;if(1<y){var z=c.callback;z&&(c.callback=function(){0==--y&&z()})}for(;b=a.shift();)Y(b.b,c,b.hint)}else Y(b||[],c,d)},Y=function(a,b,c){a=aa(a)||[];var d=b.callback,e=b.config,f=b.timeout,l=b.ontimeout,k=b.onerror,v=void 0;"function"==typeof k&&(v=k);var y=null,z=!1;if(f&&!l||!f&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";k=u(C(c),"r",[]).sort();var H=u(C(c),"L",[]).sort(),E=[].concat(k),
W=function(a,b){if(z)return 0;g.clearTimeout(y);H.push.apply(H,p);var d=((x||{}).config||{}).update;d?d(e):e&&u(A,"cu",[]).push(e);if(b){K("me0",a,E);try{ra(b,c,v)}finally{K("me1",a,E)}}return 1};0<f&&(y=g.setTimeout(function(){z=!0;l()},f));var p=T(a,H);if(p.length){p=T(a,k);var r=u(A,"CP",[]),t=r.length;r[t]=function(a){if(!a)return 0;K("ml1",p,E);var b=function(b){r[t]=null;W(p,a)&&ba(function(){d&&d();b()})},c=function(){var a=r[t+1];a&&a()};0<t&&r[t-1]?r[t]=function(){b(c)}:b(c)};if(p.length){var I=
"loaded_"+A.I++;x[I]=function(a){r[t](a);x[I]=null};a=la(c,p,"gapi."+I,k);k.push.apply(k,p);K("ml0",p,E);b.sync||g.___gapisync?pa(a):V(a)}else r[t](n)}else W(p)&&d&&d()};var X=function(a,b){if(A.hee&&0<A.hel)try{return a()}catch(c){b&&b(c),A.hel--,Z("debug_error",function(){try{window.___jsl.hefn(c)}catch(d){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;}};x.load=function(a,b){return X(function(){return Z(a,b)})};F.bs0=window.gapi._bs||(new Date).getTime();G("bs0");F.bs1=(new Date).getTime();G("bs1");delete window.gapi._bs;}).call(this);
gapi.load("rpc:shindig_random",{callback:window["init"],_c:{"jsl":{"ci":{"deviceType":"desktop","oauth-flow":{"authUrl":"https://accounts.google.com/o/oauth2/auth","proxyUrl":"https://accounts.google.com/o/oauth2/postmessageRelay","disableOpt":true,"idpIframeUrl":"https://accounts.google.com/o/oauth2/iframe","usegapi":false},"debug":{"reportExceptionRate":0.05,"forceIm":false,"rethrowException":false,"host":"https://apis.google.com"},"enableMultilogin":true,"googleapis.config":{"auth":{"useFirstPartyAuthV2":true}},"isPlusUser":true,"inline":{"css":1},"disableRealtimeCallback":false,"drive_share":{"skipInitCommand":true},"csi":{"rate":0.01},"client":{"cors":false},"isLoggedIn":true,"signInDeprecation":{"rate":0.0},"include_granted_scopes":true,"llang":"in","iframes":{"ytsubscribe":{"url":"https://www.youtube.com/subscribe_embed?usegapi\u003d1"},"plus_share":{"params":{"url":""},"url":":socialhost:/:session_prefix::se:_/+1/sharebutton?plusShare\u003dtrue\u0026usegapi\u003d1"},":source:":"3p","playemm":{"url":"https://play.google.com/work/embedded/search?usegapi\u003d1\u0026usegapi\u003d1"},"partnersbadge":{"url":"https://www.gstatic.com/partners/badge/templates/badge.html?usegapi\u003d1"},"dataconnector":{"url":"https://dataconnector.corp.google.com/:session_prefix:ui/widgetview?usegapi\u003d1"},"shortlists":{"url":""},"plus_followers":{"params":{"url":""},"url":":socialhost:/_/im/_/widget/render/plus/followers?usegapi\u003d1"},"post":{"params":{"url":""},"url":":socialhost:/:session_prefix::im_prefix:_/widget/render/post?usegapi\u003d1"},"signin":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/widget/render/signin?usegapi\u003d1","methods":["onauth"]},"donation":{"url":"https://onetoday.google.com/home/donationWidget?usegapi\u003d1"},"plusone":{"params":{"count":"","size":"","url":""},"url":":socialhost:/:session_prefix::se:_/+1/fastbutton?usegapi\u003d1"},":im_socialhost:":"https://plus.googleapis.com","backdrop":{"url":"https://clients3.google.com/cast/chromecast/home/widget/backdrop?usegapi\u003d1"},"visibility":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/widget/render/visibility?usegapi\u003d1"},"additnow":{"url":"https://apis.google.com/additnow/additnow.html?usegapi\u003d1","methods":["launchurl"]},":signuphost:":"https://plus.google.com","community":{"url":":ctx_socialhost:/:session_prefix::im_prefix:_/widget/render/community?usegapi\u003d1"},"plus":{"url":":socialhost:/:session_prefix:_/widget/render/badge?usegapi\u003d1"},"commentcount":{"url":":socialhost:/:session_prefix:_/widget/render/commentcount?usegapi\u003d1"},"zoomableimage":{"url":"https://ssl.gstatic.com/microscope/embed/"},"appfinder":{"url":"https://gsuite.google.com/:session_prefix:marketplace/appfinder?usegapi\u003d1"},"person":{"url":":socialhost:/:session_prefix:_/widget/render/person?usegapi\u003d1"},"savetodrive":{"url":"https://drive.google.com/savetodrivebutton?usegapi\u003d1","methods":["save"]},"page":{"url":":socialhost:/:session_prefix:_/widget/render/page?usegapi\u003d1"},"card":{"url":":socialhost:/:session_prefix:_/hovercard/card"},"youtube":{"params":{"location":["search","hash"]},"url":":socialhost:/:session_prefix:_/widget/render/youtube?usegapi\u003d1","methods":["scroll","openwindow"]},"plus_circle":{"params":{"url":""},"url":":socialhost:/:session_prefix::se:_/widget/plus/circle?usegapi\u003d1"},"rbr_s":{"params":{"url":""},"url":":socialhost:/:session_prefix::se:_/widget/render/recobarsimplescroller"},"udc_webconsentflow":{"params":{"url":""},"url":"https://myaccount.google.com/webconsent?usegapi\u003d1"},"savetoandroidpay":{"url":"https://androidpay.google.com/a/widget/save"},"blogger":{"params":{"location":["search","hash"]},"url":":socialhost:/:session_prefix:_/widget/render/blogger?usegapi\u003d1","methods":["scroll","openwindow"]},"evwidget":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/events/widget?usegapi\u003d1"},"surveyoptin":{"url":"https://www.google.com/shopping/customerreviews/optin?usegapi\u003d1"},":socialhost:":"https://apis.google.com","hangout":{"url":"https://talkgadget.google.com/:session_prefix:talkgadget/_/widget"},":gplus_url:":"https://plus.google.com","rbr_i":{"params":{"url":""},"url":":socialhost:/:session_prefix::se:_/widget/render/recobarinvitation"},"share":{"url":":socialhost:/:session_prefix::im_prefix:_/widget/render/share?usegapi\u003d1"},"comments":{"params":{"location":["search","hash"]},"url":":socialhost:/:session_prefix:_/widget/render/comments?usegapi\u003d1","methods":["scroll","openwindow"]},"autocomplete":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/widget/render/autocomplete"},"ratingbadge":{"url":"https://www.google.com/shopping/customerreviews/badge?usegapi\u003d1"},"appcirclepicker":{"url":":socialhost:/:session_prefix:_/widget/render/appcirclepicker"},"follow":{"url":":socialhost:/:session_prefix:_/widget/render/follow?usegapi\u003d1"},"sharetoclassroom":{"url":"https://www.gstatic.com/classroom/sharewidget/widget_stable.html?usegapi\u003d1"},"ytshare":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/widget/render/ytshare?usegapi\u003d1"},"family_creation":{"params":{"url":""},"url":"https://families.google.com/webcreation?usegapi\u003d1\u0026usegapi\u003d1"},"configurator":{"url":":socialhost:/:session_prefix:_/plusbuttonconfigurator?usegapi\u003d1"},"savetowallet":{"url":"https://androidpay.google.com/a/widget/save"}}},"h":"m;/_/scs/apps-static/_/js/k\u003doz.gapi.id.9uh41YEgSMg.O/m\u003d__features__/am\u003dAQE/rt\u003dj/d\u003d1/rs\u003dAGLTcCPrxi-Hz9mFVqKwrT9vZwkfg9LQLQ","u":"https://apis.google.com/js/rpc:shindig_random.js?onload\u003dinit","hee":true,"fp":"59aa8a51484ffc25b2dd8aabb93730d172a8c26f","dpo":false},"fp":"59aa8a51484ffc25b2dd8aabb93730d172a8c26f","annotation":["interactivepost","recobar","signin2","autocomplete","profile"],"bimodal":["signin","share"]}});
|
YUI.add("yuidoc-meta", function(Y) {
Y.YUIDoc = { meta: {
"classes": [
"AssetLoader",
"BaseTexture",
"CanvasRenderer",
"DisplayObject",
"DisplayObjectContainer",
"InteractionData",
"InteractionManager",
"MovieClip",
"Point",
"Rectangle",
"Sprite",
"SpriteSheetLoader",
"Stage",
"Texture",
"WebGLBatch",
"WebGLRenderer"
],
"modules": [
"PIXI"
],
"allModules": [
{
"displayName": "PIXI",
"name": "PIXI"
}
]
} };
});
|
export default {
datesPicked: [],
formFields: {
one: "",
two: "",
three: "",
four: "",
five: "",
six: "",
seven: ""
}
};
|
(function() {
'use strict';
var template = require('./appMainFooter.html');
module.exports = function appMainFooter() {
return {
//controller: 'AppMainFooterController', // Called from AppMainFooterController.js
template: template,
restrict: 'EA'
//replace: true
};
};
})();
|
"use strict";
const {
builders: { indent, line, hardline, concat, group },
utils: { mapDoc },
} = require("../../document");
const {
printTemplateExpressions,
uncookTemplateElementValue,
} = require("../print/template-literal");
// The counter is needed to distinguish nested embeds.
let htmlTemplateLiteralCounter = 0;
function format(path, print, textToDoc, options, { parser }) {
const node = path.getValue();
const counter = htmlTemplateLiteralCounter;
htmlTemplateLiteralCounter = (htmlTemplateLiteralCounter + 1) >>> 0;
const composePlaceholder = (index) =>
`PRETTIER_HTML_PLACEHOLDER_${index}_${counter}_IN_JS`;
const text = node.quasis
.map((quasi, index, quasis) =>
index === quasis.length - 1
? quasi.value.cooked
: quasi.value.cooked + composePlaceholder(index)
)
.join("");
const expressionDocs = printTemplateExpressions(path, print);
if (expressionDocs.length === 0 && text.trim().length === 0) {
return "``";
}
const placeholderRegex = new RegExp(composePlaceholder("(\\d+)"), "g");
let topLevelCount = 0;
const doc = textToDoc(
text,
{
parser,
__onHtmlRoot(root) {
topLevelCount = root.children.length;
},
},
{ stripTrailingHardline: true }
);
const contentDoc = mapDoc(doc, (doc) => {
if (typeof doc !== "string") {
return doc;
}
const parts = [];
const components = doc.split(placeholderRegex);
for (let i = 0; i < components.length; i++) {
let component = components[i];
if (i % 2 === 0) {
if (component) {
component = uncookTemplateElementValue(component);
if (options.embeddedInHtml) {
component = component.replace(/<\/(script)\b/gi, "<\\/$1");
}
parts.push(component);
}
continue;
}
const placeholderIndex = +component;
parts.push(expressionDocs[placeholderIndex]);
}
return concat(parts);
});
const leadingWhitespace = /^\s/.test(text) ? " " : "";
const trailingWhitespace = /\s$/.test(text) ? " " : "";
const linebreak =
options.htmlWhitespaceSensitivity === "ignore"
? hardline
: leadingWhitespace && trailingWhitespace
? line
: null;
if (linebreak) {
return group(
concat([
"`",
indent(concat([linebreak, group(contentDoc)])),
linebreak,
"`",
])
);
}
return group(
concat([
"`",
leadingWhitespace,
topLevelCount > 1 ? indent(group(contentDoc)) : group(contentDoc),
trailingWhitespace,
"`",
])
);
}
module.exports = format;
|
/*
* jquery.simulate - simulate browser mouse and keyboard events
* http://jqueryui.com
*
* Copyright 2012 jQuery Foundation and other contributors
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
;(function( $ ) {
"use strict";
var rkeyEvent = /^key/,
rmouseEvent = /^(?:mouse|contextmenu)|click/,
rdocument = /\[object (?:HTML)?Document\]/;
function isDocument(ele) {
return rdocument.test(Object.prototype.toString.call(ele));
}
function windowOfDocument(doc) {
for (var i=0; i < window.frames.length; i+=1) {
if (window.frames[i].document === doc) {
return window.frames[i];
}
}
return window;
}
$.fn.simulate = function( type, options ) {
return this.each(function() {
new $.simulate( this, type, options );
});
};
$.simulate = function( elem, type, options ) {
var method = $.camelCase( "simulate-" + type );
this.target = elem;
this.options = options || {};
if ( this[ method ] ) {
this[ method ]();
} else {
this.simulateEvent( elem, type, this.options );
}
};
$.extend( $.simulate.prototype, {
simulateEvent: function( elem, type, options ) {
var event = this.createEvent( type, options );
this.dispatchEvent( elem, type, event, options );
},
createEvent: function( type, options ) {
if ( rkeyEvent.test( type ) ) {
return this.keyEvent( type, options );
}
if ( rmouseEvent.test( type ) ) {
return this.mouseEvent( type, options );
}
},
mouseEvent: function( type, options ) {
var event,
eventDoc,
doc = isDocument(this.target)? this.target : (this.target.ownerDocument || document),
docEle,
body;
options = $.extend({
bubbles: true,
cancelable: (type !== "mousemove"),
view: windowOfDocument(doc),
detail: 0,
screenX: 0,
screenY: 0,
// TODO: default clientX/Y to a position within the target element
clientX: 1,
clientY: 1,
ctrlKey: false,
altKey: false,
shiftKey: false,
metaKey: false,
button: 0,
relatedTarget: undefined
}, options );
if ( doc.createEvent ) {
event = doc.createEvent( "MouseEvents" );
event.initMouseEvent( type, options.bubbles, options.cancelable,
options.view, options.detail,
options.screenX, options.screenY, options.clientX, options.clientY,
options.ctrlKey, options.altKey, options.shiftKey, options.metaKey,
options.button, options.relatedTarget || doc.body.parentNode );
// IE 9+ creates events with pageX and pageY set to 0.
// Trying to modify the properties throws an error,
// so we define getters to return the correct values.
if ( event.pageX === 0 && event.pageY === 0 && Object.defineProperty ) {
eventDoc = isDocument(event.relatedTarget)? event.relatedTarget : (event.relatedTarget.ownerDocument || document);
docEle = eventDoc.documentElement;
body = eventDoc.body;
Object.defineProperty( event, "pageX", {
get: function() {
return options.clientX +
( docEle && docEle.scrollLeft || body && body.scrollLeft || 0 ) -
( docEle && docEle.clientLeft || body && body.clientLeft || 0 );
}
});
Object.defineProperty( event, "pageY", {
get: function() {
return options.clientY +
( docEle && docEle.scrollTop || body && body.scrollTop || 0 ) -
( docEle && docEle.clientTop || body && body.clientTop || 0 );
}
});
}
} else if ( doc.createEventObject ) {
event = doc.createEventObject();
$.extend( event, options );
// TODO: what is this mapping for?
event.button = { 0:1, 1:4, 2:2 }[ event.button ] || event.button;
}
return event;
},
keyEvent: function( type, options ) {
var event, doc;
options = $.extend({
bubbles: true,
cancelable: true,
view: windowOfDocument(doc),
ctrlKey: false,
altKey: false,
shiftKey: false,
metaKey: false,
keyCode: 0,
charCode: undefined
}, options );
doc = isDocument(this.target)? this.target : (this.target.ownerDocument || document);
if ( doc.createEvent ) {
try {
event = doc.createEvent( "KeyEvents" );
event.initKeyEvent( type, options.bubbles, options.cancelable, options.view,
options.ctrlKey, options.altKey, options.shiftKey, options.metaKey,
options.keyCode, options.charCode );
// TODO: what is this supporting?
} catch( err ) {
event = doc.createEvent( "Events" );
event.initEvent( type, options.bubbles, options.cancelable );
$.extend( event, {
view: options.view,
ctrlKey: options.ctrlKey,
altKey: options.altKey,
shiftKey: options.shiftKey,
metaKey: options.metaKey,
keyCode: options.keyCode,
charCode: options.charCode
});
}
} else if ( doc.createEventObject ) {
event = doc.createEventObject();
$.extend( event, options );
}
// TODO: can we hook into core's logic?
//if ( $.browser.msie || $.browser.opera ) {
try {
// TODO: is charCode ever <0 ? Can we just use charCode || keyCode?
event.keyCode = (options.charCode > 0) ? options.charCode : options.keyCode;
event.charCode = undefined;
} catch (err) {}
//}
return event;
},
// TODO: does this need type? Can't we just check event.type?
dispatchEvent: function( elem, type, event ) {
if ( elem.dispatchEvent ) {
elem.dispatchEvent( event );
} else if ( elem.fireEvent ) {
elem.fireEvent( "on" + type, event );
}
},
simulateFocus: function() {
var focusinEvent,
triggered = false,
element = $( this.target );
function trigger() {
triggered = true;
}
element.bind( "focus", trigger );
element[ 0 ].focus();
if ( !triggered ) {
focusinEvent = $.Event( "focusin" );
focusinEvent.preventDefault();
element.trigger( focusinEvent );
element.triggerHandler( "focus" );
}
element.unbind( "focus", trigger );
},
simulateBlur: function() {
var focusoutEvent,
triggered = false,
element = $( this.target );
function trigger() {
triggered = true;
}
element.bind( "blur", trigger );
element[ 0 ].blur();
// blur events are async in IE
setTimeout(function() {
// IE won't let the blur occur if the window is inactive
if ( element[ 0 ].ownerDocument.activeElement === element[ 0 ] ) {
element[ 0 ].ownerDocument.body.focus();
}
// Firefox won't trigger events if the window is inactive
// IE doesn't trigger events if we had to manually focus the body
if ( !triggered ) {
focusoutEvent = $.Event( "focusout" );
focusoutEvent.preventDefault();
element.trigger( focusoutEvent );
element.triggerHandler( "blur" );
}
element.unbind( "blur", trigger );
}, 1 );
}
});
/** complex events **/
function findCenter( elem ) {
var offset,
$document;
elem = $( elem );
if ( isDocument(elem[0]) ) {
$document = elem;
offset = { left: 0, top: 0 };
}
else {
$document = $( elem[0].ownerDocument || document );
offset = elem.offset();
}
return {
x: offset.left + elem.outerWidth() / 2 - $document.scrollLeft(),
y: offset.top + elem.outerHeight() / 2 - $document.scrollTop()
};
}
$.extend( $.simulate.prototype, {
simulateDrag: function() {
var target = this.target,
options = this.options,
center = findCenter( target ),
x = Math.floor( center.x ),
y = Math.floor( center.y ),
dx = options.dx || 0,
dy = options.dy || 0,
coord = { clientX: x, clientY: y },
doc = isDocument(target)? target : (target.ownerDocument || document);
this.simulateEvent( target, "mousedown", coord );
coord = { clientX: x + 1, clientY: y + 1 };
this.simulateEvent( doc, "mousemove", coord );
coord = { clientX: x + dx, clientY: y + dy };
this.simulateEvent( doc, "mousemove", coord );
this.simulateEvent( doc, "mousemove", coord );
this.simulateEvent( target, "mouseup", coord );
this.simulateEvent( target, "click", coord );
}
});
})( jQuery );
|
'use strict';
var isPresent = require('is-present');
var hasClassSelector = require('has-class-selector');
module.exports = function classPrefix(prefix, options) {
options = options || {};
var ignored = options.ignored;
return function prefixRules(styling) {
styling.rules.forEach(function(rule) {
if (rule.rules) {
return prefixRules(rule);
}
if (!rule.selectors) return rule;
rule.selectors = rule.selectors.map(function(selector) {
var shouldIgnore = false;
if (hasClassSelector(selector)) {
// Ensure that the selector doesn't match the ignored list
if (isPresent(ignored)) {
shouldIgnore = ignored.some(function(opt) {
if (typeof opt == 'string') {
return selector === opt;
} else if (opt instanceof RegExp) {
return opt.exec(selector);
}
});
}
return shouldIgnore ? selector : selector.split('.').join('.' + prefix);
} else {
return selector;
}
});
});
};
};
|
/*!
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
* v4.0.43.2 - 2021-10-26
*
*/
!function(){"use strict";wb.i18nDict={"lang-code":"ru","lang-native":"Русский язык",add:"добавлять",all:"Все",tphp:"Наверх",load:"Загрузка ...",process:"обработки ...",srch:"Поиск","no-match":"Соответствий не найдено",matches:{mixin:"[MIXIN] cоответствий найдено"},current:"(текущая)",hide:"Скрыть",err:"Ошибка",colon:":",hyphen:" - ","full-stop":".","comma-space":", ",space:" ",start:"Начать",stop:"Стоп",back:"Назад",cancel:"Отменить","min-ago":"минуту назад","coup-mins":"пару минут назад","mins-ago":{mixin:"[MIXIN] минут назад"},"hour-ago":"час назад","hours-ago":{mixin:"[MIXIN] часов назад"},"days-ago":{mixin:"[MIXIN] дней назад"},yesterday:"вчера",nxt:"Следующий","nxt-r":"Следующий (клавишей стрелка вправо)",prv:"Предыдущий","prv-l":"Предыдущий (клавишей стрелка влево)",first:"Первое",last:"Последнее",page:"Jump to: Page","srch-menus":"Поиск и меню",email:"E-mail","menu-close":"Закройте меню","overlay-close":"Закройте вспомогательных линий","esc-key":"(клавишей Escape)",show:"Показать","tab-rot":{off:"Остановить ротацию вкладки",on:"Начать ротацию вкладки"},"tab-list":"Вкладка списка","tab-pnl-end1":"Конец этой вкладке панели.","tab-pnl-end2":"Вернитесь на вкладку список","tab-pnl-end3":"или продолжать остальной страницы.","tab-play":"Проиграть","mmp-play":"Проиграть",pause:"Пауза",open:"Oткрыть",close:"Закрыть",volume:"Громкость",mute:{on:"Отключение звука",off:"Включить звук"},cc:{off:"Скрыть Субтитры",on:"Показать Субтитры"},"cc-err":"Ошибка загрузки субтитров",adesc:{on:"Включить описание аудио",off:"Отключить Описание аудио"},pos:"Текущая позиция:",dur:"Общее время:","shr-txt":"Поделиться","shr-pg":" ссылкой на страницу","shr-vid":" этим видео","shr-aud":" это аудио","shr-hnt":" с {s} ","shr-disc":"Нет одобрение любых продуктов или услуг, выраженных или подразумеваемых.","frm-nosubmit":"Формы не могут быть представлены, потому что ","errs-fnd":" были обнаружены ошибки.","err-fnd":" была обнаружена ошибка.","err-correct":"(Correct and resubmit)","date-hide":"Скрыть календарь","date-show":"Выберите дату из календаря для поля:","date-sel":"Выбранный",days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],mnths:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],cal:"Календарь","cal-format":"<span class='wb-inv'>{ddd}, {M} </span>{d}<span class='wb-inv'>, {Y}</span>",currDay:"(Текущий день)","cal-goToLnk":'Перейти к<span class="wb-inv"> месяцу года</span>',"cal-goToTtl":"Перейти к месяцу года","cal-goToMnth":"Месяц:","cal-goToYr":"Год:","cal-goToBtn":"Перейти",prvMnth:"Предыдущий месяц: ",nxtMnth:"Следующий месяц: ","lb-curr":"Пункт %curr% из %total%","lb-xhr-err":"Этот контент не удалось загрузить.","lb-img-err":"Это изображение не удалось загрузить.","tbl-txt":"Таблица","tbl-dtls":"График. Подробности в таблице ниже.","chrt-cmbslc":"Combined slice","st-to-msg-bgn":"Ваш сеанс закончится автоматически в #min# мин #sec# сек.","st-to-msg-end":'Выберите "Продолжить сеанс" продлить сессию.',"st-msgbx-ttl":"Предупреждение сессия тайм-аут","st-alrdy-to-msg":"Извините сеанс уже истек. Пожалуйста, войдите снова.","st-btn-cont":"Продолжить сеанс","st-btn-end":"Завершить сеанс сейчас","td-toggle":"Свернуть все","td-open":"Развернуть все","td-close":"Свернуть все","td-ttl-open":"Развернуть все разделы содержания","td-ttl-close":"Свернуть все разделы содержания",sortAsc:": aктивировать для сортировке по возрастанию",sortDesc:": aктивировать для сортировки по убыванию",emptyTbl:"Не имеется никаких данных в таблице",infoEntr:"Показываю с _START_ по _END_ из _TOTAL_ записей",infoEmpty:"Показываю с 0 по 0 из 0 записей",infoFilt:"(фильтруется от _MAX_ Всего записей)",info1000:",",lenMenu:"Показать _MENU_ записей",filter:"Фильтровать","geo-mapctrl":"@geo-mapctrl@","geo-zmin":"Приблизить","geo-zmout":"Отдалить","geo-zmwrld":"Увеличить для сопоставления степени","geo-zmfeat":"Увеличение до элемента","geo-sclln":"масштаб карты","geo-msepos":"Широту и долготу курсора мыши","geo-ariamap":"Карта объектов. Описание функций карты приведены в таблице ниже.","geo-ally":"<strong>Клавиатура пользователей:</strong> Когда карта находится в фокусе, используйте клавиши со стрелками для перемещения по карте и плюс и минус ключи, чтобы увеличить. Стрелками не будет перемещения по карте при увеличении на карту степени.","geo-allyttl":"Инструкция: Карта навигации","geo-tgllyr":"Включить показ слоя","geo-hdnlyr":"Этот слой скрыт.","geo-bmap-url":"//geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT3978/MapServer/WMTS/","geo-bmap-matrix-set":"default028mm","geo-bmapttl":"BaseMaps_CBMT3978","geo-bmapurltxt":"//geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_TXT_3978/MapServer/WMTS/tile/1.0.0/BaseMaps_CBMT3978/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg","geo-attrlnk":"//geogratis.gc.ca/geogratis/CBM_CBC?lang=en","geo-attrttl":"GeoGratis - Канада базовой карты (на английском или французском языке)","geo-sel":"Выбирать","geo-lblsel":"Проверьте, чтобы выбрать элемент на карте","geo-locurl-geogratis":"//geogratis.gc.ca/services/geolocation/en/locate","geo-loc-placeholder":"Укажите название места, почтовый индекс, адрес (почтовый), количество НТС ...","geo-loc-label":"Pасположение","geo-aoi-north":"К северу","geo-aoi-east":"Восток","geo-aoi-south":"Юг","geo-aoi-west":"Запад","geo-aoi-instructions":'Нарисуйте окно на карте или введите координаты ниже и нажмите кнопку "Добавить".',"geo-aoi-title":"Draw box on map or enter coordinates","geo-aoi-btndraw":"Рисовать","geo-aoi-btnclear":"Удалять","geo-geoloc-btn":"Увеличить к текущему местоположению","geo-geoloc-fail":"Расположение не удалось. Пожалуйста, убедитесь, что услуги определения местоположения включены.","geo-geoloc-uncapable":"Локализация не поддерживается браузером.","geo-lgnd-grphc":"Легенда графика для слоя карты.","wb-disable":"Switch to basic HTML version","wb-enable":"Switch to standard version","disable-notice-h":"Notice: Basic HTML","disable-notice":"You are viewing Basic HTML view. Some features may be disabled.","skip-prefix":"Skip to:",dismiss:"Dismiss","tmpl-signin":"Войти","fltr-lbl":'Filter<span class="wb-inv"> content: results appear below as you type.</span>',"fltr-info":"Showing _NBITEM_ filtered from _TOTAL_ total entries"}}(),wb.doc.one("formLanguages.wb",function(){var e;e=function(e){return e.extend(e.validator.messages,{required:"Это поле необходимо заполнить.",remote:"Пожалуйста, введите правильное значение.",email:"Пожалуйста, введите корректный адрес электронной почты.",url:"Пожалуйста, введите корректный URL.",date:"Пожалуйста, введите корректную дату.",dateISO:"Пожалуйста, введите корректную дату в формате ISO.",number:"Пожалуйста, введите число.",digits:"Пожалуйста, вводите только цифры.",creditcard:"Пожалуйста, введите правильный номер кредитной карты.",equalTo:"Пожалуйста, введите такое же значение ещё раз.",extension:"Пожалуйста, выберите файл с правильным расширением.",maxlength:e.validator.format("Пожалуйста, введите не больше {0} символов."),minlength:e.validator.format("Пожалуйста, введите не меньше {0} символов."),rangelength:e.validator.format("Пожалуйста, введите значение длиной от {0} до {1} символов."),range:e.validator.format("Пожалуйста, введите число от {0} до {1}."),max:e.validator.format("Пожалуйста, введите число, меньшее или равное {0}."),min:e.validator.format("Пожалуйста, введите число, большее или равное {0}.")}),e},"function"==typeof define&&define.amd?define(["jquery","../jquery.validate"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)});
|
(function(a, b, c) {
/* node_modules/kit/inc/core/defs.sibilant:53:9 */
return foo(this);
}).bind(this);
;
var R = require("ramda");
var {
create,
extend,
mixin,
conditional,
cond,
partiallyApplyAfter
} = require("kit/js/util");
var {
Interface
} = require("kit-interface");
var {
Actor,
sendTo
} = require("kit-actor");
var {
EventEmitter,
emit,
bubble
} = require("kit-events");
var curry = R.curry;
var assignHandlers = (function assignHandlers$(layer) {
/* assign-handlers src/layer.sibilant:25:0 */
});
var Layer = Actor.define("Layer", {
init( types = this.types,members = types.map(((t) => {
return create(t)();
})) ){
this.types = types;this.members = members;
types.each(((t, i) => {
return this[t.symbol] = members[i];
}));
Actor.init.call(this);
return this;
},
get assignHandlers( ){
return ((a, i) => {
var members = this.members;
return bubble(a.on("message", R.pipe(sendTo(this.members[(i + 1)]))), this, "error");
});
},
_send( d = this.d,members = this.members ){
return members[0].send(d);
},
start( members = this.members ){
return (function() {
/* meta.sibilant:3:27 */
var last = members.slice(-1)[0],
inner = members.slice(0, -1);
inner.forEach(this.assignHandlers);
bubble(last, this, "message");
return this;
}).call(this);
},
of( types ){
return extend(this, {
types
});
}
});
exports.Layer = Layer;
|
// Generated by CoffeeScript 1.12.2
var NEST_API_HOSTNAME, NEST_API_LOGIN_PATH, NEST_API_PORT, NestApi, https, queryString, url, util;
https = require('https');
queryString = require('querystring');
url = require('url');
util = require('util');
NEST_API_HOSTNAME = 'home.nest.com';
NEST_API_PORT = 443;
NEST_API_LOGIN_PATH = '/user/login';
NestApi = (function() {
var password, session, username;
username = null;
password = null;
session = {};
NestApi.userAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1309.0 Safari/537.17";
function NestApi(username1, password1) {
this.username = username1 != null ? username1 : null;
this.password = password1 != null ? password1 : null;
}
NestApi.prototype.setUsername = function(username) {
return this.username = username;
};
NestApi.prototype.setPassword = function(password) {
return this.password = password;
};
NestApi.prototype.login = function(callback) {
return this.post({
hostname: NEST_API_HOSTNAME,
port: NEST_API_PORT,
path: NEST_API_LOGIN_PATH,
body: {
'username': this.username,
'password': this.password
}
}, function(data) {
if (data.error != null) {
console.log("Error authenticating: " + data.error + " (" + data.error_description + ")");
false;
}
session = data;
session.urls.transport_url = url.parse(session.urls.transport_url);
if (callback != null) {
return callback(data);
}
});
};
NestApi.prototype.post = function(settings, callback) {
var allData, body, contentType, hostname, options, path, port, post_data, request;
allData = [];
if (typeof settings === 'function') {
settings = settings();
}
if ((settings != null) && typeof settings === 'object') {
hostname = settings.hostname || session.urls.transport_url.hostname;
port = settings.port || session.urls.transport_url.port;
path = settings.path;
body = settings.body || null;
} else {
throw new Error('Invalid settings');
}
if (typeof body === 'string') {
post_data = body;
contentType = 'application/json';
} else {
post_data = queryString.stringify(body);
contentType = 'application/x-www-form-urlencoded; charset=utf-8';
}
options = {
host: hostname,
port: port,
path: path,
method: 'POST',
headers: {
'Content-Type': contentType,
'User-Agent': NestApi.userAgent,
'Content-Length': post_data.length
}
};
if (this.session && this.session.access_token) {
options.headers = merge(options.headers, {
'X-nl-user-id': session.userid,
'X-nl-protocol-version': '1',
'Accept-Language': 'en-us',
'Authorization': "Basic " + session.access_token
});
}
request = https.request(options, function(response) {
response.setEncoding('utf8');
response.on('data', function(data) {
return allData.push(data);
});
response.on('error', function() {
if (callback) {
return callback(null, response.headers || {});
}
});
return response.on('end', function() {
allData = allData.join('');
if ((allData != null) && typeof allData === 'string') {
allData = JSON.parse(allData);
}
if (callback != null) {
return callback(allData, response.headers || {});
}
});
});
request.write(post_data);
return request.end();
};
NestApi.prototype.get = function(callback) {
var allData, options, path, request;
path = "/v2/mobile/" + session.user;
allData = [];
options = {
host: session.urls.transport_url.hostname,
port: session.urls.transport_url.port,
path: path,
method: 'GET',
headers: {
'User-Agent': NestApi.userAgent,
'X-nl-user-id': session.userid,
'X-nl-protocol-version': '1',
'Accept-Language': 'en-us',
'Authorization': "Basic " + session.access_token
}
};
request = https.request(options, function(response) {
response.setEncoding('utf8');
response.on('data', function(data) {
return allData.push(data);
});
return response.on('end', function() {
allData = allData.join('');
if (allData && typeof allData === 'string' && allData.length > 0) {
allData = JSON.parse(allData);
} else {
allData = null;
}
if (callback != null) {
return callback(allData);
}
});
});
return request.end();
};
NestApi.prototype.getInfo = function(serialNumber, callback) {
var self;
self = this;
return self.login(function() {
return self.get(function(data) {
console.log(data);
if ((data.device[serialNumber] != null) || (data.shared[serialNumber] != null)) {
return callback(merge(data.device[serialNumber], data.shared[serialNumber]));
}
});
});
};
return NestApi;
})();
module.exports = NestApi;
//# sourceMappingURL=nest-api.js.map
|
/*! nanoScrollerJS - v0.8.7 - (c) 2015 James Florentino; Licensed MIT */
!function (a) { return "function" == typeof define && define.amd ? define(["jquery"], function (b) { return a(b, window, document) }) : "object" == typeof exports ? module.exports = a(require("jquery"), window, document) : a(jQuery, window, document) }(function (a, b, c) { "use strict"; var d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H; z = { paneClass: "nano-pane", sliderClass: "nano-slider", contentClass: "nano-content", enabledClass: "has-scrollbar", flashedClass: "flashed", activeClass: "active", iOSNativeScrolling: !1, preventPageScrolling: !1, disableResize: !1, alwaysVisible: !1, flashDelay: 1500, sliderMinHeight: 20, sliderMaxHeight: null, documentContext: null, windowContext: null }, u = "scrollbar", t = "scroll", l = "mousedown", m = "mouseenter", n = "mousemove", p = "mousewheel", o = "mouseup", s = "resize", h = "drag", i = "enter", w = "up", r = "panedown", f = "DOMMouseScroll", g = "down", x = "wheel", j = "keydown", k = "keyup", v = "touchmove", d = "Microsoft Internet Explorer" === b.navigator.appName && /msie 7./i.test(b.navigator.appVersion) && b.ActiveXObject, e = null, D = b.requestAnimationFrame, y = b.cancelAnimationFrame, F = c.createElement("div").style, H = function () { var a, b, c, d, e, f; for (d = ["t", "webkitT", "MozT", "msT", "OT"], a = e = 0, f = d.length; f > e; a = ++e)if (c = d[a], b = d[a] + "ransform", b in F) return d[a].substr(0, d[a].length - 1); return !1 }(), G = function (a) { return H === !1 ? !1 : "" === H ? a : H + a.charAt(0).toUpperCase() + a.substr(1) }, E = G("transform"), B = E !== !1, A = function () { var a, b, d; return a = c.createElement("div"), b = a.style, b.position = "absolute", b.width = "100px", b.height = "100px", b.overflow = t, b.top = "-9999px", c.body.appendChild(a), d = a.offsetWidth - a.clientWidth, c.body.removeChild(a), d }, C = function () { var a, c, d; return c = b.navigator.userAgent, (a = /(?=.+Mac OS X)(?=.+Firefox)/.test(c)) ? (d = /Firefox\/\d{2}\./.exec(c), d && (d = d[0].replace(/\D+/g, "")), a && +d > 23) : !1 }, q = function () { function j(d, f) { this.el = d, this.options = f, e || (e = A()), this.$el = a(this.el), this.doc = a(this.options.documentContext || c), this.win = a(this.options.windowContext || b), this.body = this.doc.find("body"), this.$content = this.$el.children("." + this.options.contentClass), this.$content.attr("tabindex", this.options.tabIndex || 0), this.content = this.$content[0], this.previousPosition = 0, this.options.iOSNativeScrolling && null != this.el.style.WebkitOverflowScrolling ? this.nativeScrolling() : this.generate(), this.createEvents(), this.addEvents(), this.reset() } return j.prototype.preventScrolling = function (a, b) { if (this.isActive) if (a.type === f) (b === g && a.originalEvent.detail > 0 || b === w && a.originalEvent.detail < 0) && a.preventDefault(); else if (a.type === p) { if (!a.originalEvent || !a.originalEvent.wheelDelta) return; (b === g && a.originalEvent.wheelDelta < 0 || b === w && a.originalEvent.wheelDelta > 0) && a.preventDefault() } }, j.prototype.nativeScrolling = function () { this.$content.css({ WebkitOverflowScrolling: "touch" }), this.iOSNativeScrolling = !0, this.isActive = !0 }, j.prototype.updateScrollValues = function () { var a, b; a = this.content, this.maxScrollTop = a.scrollHeight - a.clientHeight, this.prevScrollTop = this.contentScrollTop || 0, this.contentScrollTop = a.scrollTop, b = this.contentScrollTop > this.previousPosition ? "down" : this.contentScrollTop < this.previousPosition ? "up" : "same", this.previousPosition = this.contentScrollTop, "same" !== b && this.$el.trigger("update", { position: this.contentScrollTop, maximum: this.maxScrollTop, direction: b }), this.iOSNativeScrolling || (this.maxSliderTop = this.paneHeight - this.sliderHeight, this.sliderTop = 0 === this.maxScrollTop ? 0 : this.contentScrollTop * this.maxSliderTop / this.maxScrollTop) }, j.prototype.setOnScrollStyles = function () { var a; B ? (a = {}, a[E] = "translate(0, " + this.sliderTop + "px)") : a = { top: this.sliderTop }, D ? (y && this.scrollRAF && y(this.scrollRAF), this.scrollRAF = D(function (b) { return function () { return b.scrollRAF = null, b.slider.css(a) } }(this))) : this.slider.css(a) }, j.prototype.createEvents = function () { this.events = { down: function (a) { return function (b) { return a.isBeingDragged = !0, a.offsetY = b.pageY - a.slider.offset().top, a.slider.is(b.target) || (a.offsetY = 0), a.pane.addClass(a.options.activeClass), a.doc.bind(n, a.events[h]).bind(o, a.events[w]), a.body.bind(m, a.events[i]), !1 } }(this), drag: function (a) { return function (b) { return a.sliderY = b.pageY - a.$el.offset().top - a.paneTop - (a.offsetY || .5 * a.sliderHeight), a.scroll(), a.contentScrollTop >= a.maxScrollTop && a.prevScrollTop !== a.maxScrollTop ? a.$el.trigger("scrollend") : 0 === a.contentScrollTop && 0 !== a.prevScrollTop && a.$el.trigger("scrolltop"), !1 } }(this), up: function (a) { return function (b) { return a.isBeingDragged = !1, a.pane.removeClass(a.options.activeClass), a.doc.unbind(n, a.events[h]).unbind(o, a.events[w]), a.body.unbind(m, a.events[i]), !1 } }(this), resize: function (a) { return function (b) { a.reset() } }(this), panedown: function (a) { return function (b) { return a.sliderY = (b.offsetY || b.originalEvent.layerY) - .5 * a.sliderHeight, a.scroll(), a.events.down(b), !1 } }(this), scroll: function (a) { return function (b) { a.updateScrollValues(), a.isBeingDragged || (a.iOSNativeScrolling || (a.sliderY = a.sliderTop, a.setOnScrollStyles()), null != b && (a.contentScrollTop >= a.maxScrollTop ? (a.options.preventPageScrolling && a.preventScrolling(b, g), a.prevScrollTop !== a.maxScrollTop && a.$el.trigger("scrollend")) : 0 === a.contentScrollTop && (a.options.preventPageScrolling && a.preventScrolling(b, w), 0 !== a.prevScrollTop && a.$el.trigger("scrolltop")))) } }(this), wheel: function (a) { return function (b) { var c; if (null != b) return c = b.delta || b.wheelDelta || b.originalEvent && b.originalEvent.wheelDelta || -b.detail || b.originalEvent && -b.originalEvent.detail, c && (a.sliderY += -c / 3), a.scroll(), !1 } }(this), enter: function (a) { return function (b) { var c; if (a.isBeingDragged) return 1 !== (b.buttons || b.which) ? (c = a.events)[w].apply(c, arguments) : void 0 } }(this) } }, j.prototype.addEvents = function () { var a; this.removeEvents(), a = this.events, this.options.disableResize || this.win.bind(s, a[s]), this.iOSNativeScrolling || (this.slider.bind(l, a[g]), this.pane.bind(l, a[r]).bind("" + p + " " + f, a[x])), this.$content.bind("" + t + " " + p + " " + f + " " + v, a[t]) }, j.prototype.removeEvents = function () { var a; a = this.events, this.win.unbind(s, a[s]), this.iOSNativeScrolling || (this.slider.unbind(), this.pane.unbind()), this.$content.unbind("" + t + " " + p + " " + f + " " + v, a[t]) }, j.prototype.generate = function () { var a, c, d, f, g, h, i; return f = this.options, h = f.paneClass, i = f.sliderClass, a = f.contentClass, (g = this.$el.children("." + h)).length || g.children("." + i).length || this.$el.append('<div class="' + h + '"><div class="' + i + '" /></div>'), this.pane = this.$el.children("." + h), this.slider = this.pane.find("." + i), 0 === e && C() ? (d = b.getComputedStyle(this.content, null).getPropertyValue("padding-right").replace(/[^0-9.]+/g, ""), c = { right: -14, paddingRight: +d + 14 }) : e && (c = { right: -e }, this.$el.addClass(f.enabledClass)), null != c && this.$content.css(c), this }, j.prototype.restore = function () { this.stopped = !1, this.iOSNativeScrolling || this.pane.show(), this.addEvents() }, j.prototype.reset = function () { var a, b, c, f, g, h, i, j, k, l, m, n; return this.iOSNativeScrolling ? void (this.contentHeight = this.content.scrollHeight) : (this.$el.find("." + this.options.paneClass).length || this.generate().stop(), this.stopped && this.restore(), a = this.content, f = a.style, g = f.overflowY, d && this.$content.css({ height: this.$content.height() }), b = a.scrollHeight + e, l = parseInt(this.$el.css("max-height"), 10), l > 0 && (this.$el.height(""), this.$el.height(a.scrollHeight > l ? l : a.scrollHeight)), i = this.pane.outerHeight(!1), k = parseInt(this.pane.css("top"), 10), h = parseInt(this.pane.css("bottom"), 10), j = i + k + h, n = Math.round(j / b * i), n < this.options.sliderMinHeight ? n = this.options.sliderMinHeight : null != this.options.sliderMaxHeight && n > this.options.sliderMaxHeight && (n = this.options.sliderMaxHeight), g === t && f.overflowX !== t && (n += e), this.maxSliderTop = j - n, this.contentHeight = b, this.paneHeight = i, this.paneOuterHeight = j, this.sliderHeight = n, this.paneTop = k, this.slider.height(n), this.events.scroll(), this.pane.show(), this.isActive = !0, a.scrollHeight === a.clientHeight || this.pane.outerHeight(!0) >= a.scrollHeight && g !== t ? (this.pane.hide(), this.isActive = !1) : this.el.clientHeight === a.scrollHeight && g === t ? this.slider.hide() : this.slider.show(), this.pane.css({ opacity: this.options.alwaysVisible ? 1 : "", visibility: this.options.alwaysVisible ? "visible" : "" }), c = this.$content.css("position"), ("static" === c || "relative" === c) && (m = parseInt(this.$content.css("right"), 10), m && this.$content.css({ right: "", marginRight: m })), this) }, j.prototype.scroll = function () { return this.isActive ? (this.sliderY = Math.max(0, this.sliderY), this.sliderY = Math.min(this.maxSliderTop, this.sliderY), this.$content.scrollTop(this.maxScrollTop * this.sliderY / this.maxSliderTop), this.iOSNativeScrolling || (this.updateScrollValues(), this.setOnScrollStyles()), this) : void 0 }, j.prototype.scrollBottom = function (a) { return this.isActive ? (this.$content.scrollTop(this.contentHeight - this.$content.height() - a).trigger(p), this.stop().restore(), this) : void 0 }, j.prototype.scrollTop = function (a) { return this.isActive ? (this.$content.scrollTop(+a).trigger(p), this.stop().restore(), this) : void 0 }, j.prototype.scrollTo = function (a) { return this.isActive ? (this.scrollTop(this.$el.find(a).get(0).offsetTop), this) : void 0 }, j.prototype.stop = function () { return y && this.scrollRAF && (y(this.scrollRAF), this.scrollRAF = null), this.stopped = !0, this.removeEvents(), this.iOSNativeScrolling || this.pane.hide(), this }, j.prototype.destroy = function () { return this.stopped || this.stop(), !this.iOSNativeScrolling && this.pane.length && this.pane.remove(), d && this.$content.height(""), this.$content.removeAttr("tabindex"), this.$el.hasClass(this.options.enabledClass) && (this.$el.removeClass(this.options.enabledClass), this.$content.css({ right: "" })), this }, j.prototype.flash = function () { return !this.iOSNativeScrolling && this.isActive ? (this.reset(), this.pane.addClass(this.options.flashedClass), setTimeout(function (a) { return function () { a.pane.removeClass(a.options.flashedClass) } }(this), this.options.flashDelay), this) : void 0 }, j }(), a.fn.nanoScroller = function (b) { return this.each(function () { var c, d; if ((d = this.nanoscroller) || (c = a.extend({}, z, b), this.nanoscroller = d = new q(this, c)), b && "object" == typeof b) { if (a.extend(d.options, b), null != b.scrollBottom) return d.scrollBottom(b.scrollBottom); if (null != b.scrollTop) return d.scrollTop(b.scrollTop); if (b.scrollTo) return d.scrollTo(b.scrollTo); if ("bottom" === b.scroll) return d.scrollBottom(0); if ("top" === b.scroll) return d.scrollTop(0); if (b.scroll && b.scroll instanceof a) return d.scrollTo(b.scroll); if (b.stop) return d.stop(); if (b.destroy) return d.destroy(); if (b.flash) return d.flash() } return d.reset() }) }, a.fn.nanoScroller.Constructor = q });
//# sourceMappingURL=jquery.nanoscroller.min.js.map
|
/**
*
* Source: https://docs.microsoft.com/en-us/azure/cognitive-services/translator/language-support
*
* The languages that Azure Translate supports alongside with their ISO 639-1 codes (not always correct iso code tho)
* See https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
*/
const langs = {
auto: 'Automatic',
af: 'Afrikaans',
sq: 'Albanian',
am: 'Amharic',
ar: 'Arabic',
hy: 'Armenian',
az: 'Azerbaijani',
be: 'Belarusian',
bn: 'Bengali',
bs: 'Bosnian',
bg: 'Bulgarian',
ca: 'Catalan',
'zh-Hans': 'Chinese (Simplified)',
'zh-Hant': 'Chinese (Traditional)',
hr: 'Croatian',
cs: 'Czech',
da: 'Danish',
nl: 'Dutch',
en: 'English',
et: 'Estonian',
fil: 'Filipino',
fi: 'Finnish',
fr: 'French',
ka: 'Georgian',
de: 'German',
el: 'Greek',
gu: 'Gujarati',
ht: 'Haitian Creole',
he: 'Hebrew',
hi: 'Hindi',
mww: 'Hmong Daw',
hu: 'Hungarian',
is: 'Icelandic',
id: 'Indonesian',
ga: 'Irish',
it: 'Italian',
ja: 'Japanese',
kn: 'Kannada',
kk: 'Kazakh',
km: 'Khmer',
ko: 'Korean',
ku: 'Kurdish (Kurmanji)',
ky: 'Kyrgyz',
lo: 'Lao',
lv: 'Latvian',
lt: 'Lithuanian',
mk: 'Macedonian',
mg: 'Malagasy',
ms: 'Malay',
ml: 'Malayalam',
mt: 'Maltese',
mi: 'Maori',
mr: 'Marathi',
my: 'Myanmar (Burmese)',
ne: 'Nepali',
nb: 'Norwegian',
ps: 'Pashto',
fa: 'Persian',
pl: 'Polish',
pt: 'Portuguese',
pa: 'Punjabi',
ro: 'Romanian',
ru: 'Russian',
sm: 'Samoan',
sk: 'Slovak',
sl: 'Slovenian',
es: 'Spanish',
sw: 'Swahili',
sv: 'Swedish',
ta: 'Tamil',
te: 'Telugu',
th: 'Thai',
tr: 'Turkish',
uk: 'Ukrainian',
ur: 'Urdu',
uz: 'Uzbek',
vi: 'Vietnamese',
cy: 'Welsh',
};
/**
* Returns the ISO 639-1 code of the desiredLang – if it is supported by Azure
* @param {string} desiredLang – the name or the code(case sensitive) of the desired language
* @returns {string|boolean} The ISO 639-1 code of the language or false if the language is not supported
*/
function getCode(desiredLang) {
if (!desiredLang) {
return false;
}
if (langs[desiredLang]) {
return desiredLang;
}
const key = Object.keys(langs).find(key => langs[key]?.toString()?.toLowerCase() === desiredLang.toLowerCase());
return key || false;
}
/**
* Returns true if the desiredLang is supported by Azure Translate and false otherwise
* @param desiredLang – the ISO 639-1 code or the name of the desired language
* @returns {boolean}
*/
function isSupported(desiredLang) {
return Boolean(getCode(desiredLang));
}
module.exports = langs;
module.exports.isSupported = isSupported;
module.exports.getCode = getCode;
|
import { r as registerInstance, h, g as getAssetPath } from './index-f4a4fd8c.js';
const myImageCss = "img{max-width:100%;max-height:100%;vertical-align:middle}";
const MyImage = class {
constructor(hostRef) {
registerInstance(this, hostRef);
/**
* The first name
*/
this.source = 'default.jpeg';
}
render() {
return h("img", { src: getAssetPath(`./assets/${this.source}`) });
}
static get assetsDirs() { return ["assets"]; }
};
MyImage.style = myImageCss;
export { MyImage as my_image };
|
webpackJsonp([9,12],[function(e,t,n){n(1)},function(e,t,n){function o(){r=f.width(),i=f.height(),a=r/2,s=i/2,f.css({"margin-left":-a,"margin-top":-s})}window.jQuery=window.$=n(2),n(3),n(4),n(14),n(20),n(24),n(25);var r,i,a,s,f=$(".header-background img");$(window).on("load resize",o),$(window).on("load",function(){var e=$("#header-background"),t=$("#preloader");$("#header-background").flexslider({useCSS:!0,touch:!0,animation:"fade",start:function(){t.addClass("ready"),e.removeClass("header-background-hide")}})}),function(){function e(){t=n.offset().top}var t,n=$("#navigation-wrap");e(),$(window).resize(e).scroll(function(){var e=$(this).scrollTop();e>t?n.addClass("sticky"):n.removeClass("sticky")})}(),$("input, textarea").placeholder()},function(e,t,n){var o,r;/*!
* jQuery JavaScript Library v3.1.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2016-09-22T22:30Z
*/
!function(t,n){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,i){"use strict";function a(e,t){t=t||ie;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function s(e){var t=!!e&&"length"in e&&e.length,n=ve.type(e);return"function"!==n&&!ve.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function f(e,t,n){return ve.isFunction(t)?ve.grep(e,function(e,o){return!!t.call(e,o,e)!==n}):t.nodeType?ve.grep(e,function(e){return e===t!==n}):"string"!=typeof t?ve.grep(e,function(e){return le.call(t,e)>-1!==n}):Se.test(t)?ve.filter(t,e,n):(t=ve.filter(t,e),ve.grep(e,function(e){return le.call(t,e)>-1!==n&&1===e.nodeType}))}function c(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e){var t={};return ve.each(e.match(qe)||[],function(e,n){t[n]=!0}),t}function u(e){return e}function d(e){throw e}function p(e,t,n){var o;try{e&&ve.isFunction(o=e.promise)?o.call(e).done(t).fail(n):e&&ve.isFunction(o=e.then)?o.call(e,t,n):t.call(void 0,e)}catch(e){n.call(void 0,e)}}function h(){ie.removeEventListener("DOMContentLoaded",h),n.removeEventListener("load",h),ve.ready()}function m(){this.expando=ve.expando+m.uid++}function b(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:He.test(e)?JSON.parse(e):e)}function g(e,t,n){var o;if(void 0===n&&1===e.nodeType)if(o="data-"+t.replace(We,"-$&").toLowerCase(),n=e.getAttribute(o),"string"==typeof n){try{n=b(n)}catch(e){}Re.set(e,t,n)}else n=void 0;return n}function v(e,t,n,o){var r,i=1,a=20,s=o?function(){return o.cur()}:function(){return ve.css(e,t,"")},f=s(),c=n&&n[3]||(ve.cssNumber[t]?"":"px"),l=(ve.cssNumber[t]||"px"!==c&&+f)&&Ue.exec(ve.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+f||1;do i=i||".5",l/=i,ve.style(e,t,l+c);while(i!==(i=s()/f)&&1!==i&&--a)}return n&&(l=+l||+f||0,r=n[1]?l+(n[1]+1)*n[2]:+n[2],o&&(o.unit=c,o.start=l,o.end=r)),r}function y(e){var t,n=e.ownerDocument,o=e.nodeName,r=Ye[o];return r?r:(t=n.body.appendChild(n.createElement(o)),r=ve.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),Ye[o]=r,r)}function x(e,t){for(var n,o,r=[],i=0,a=e.length;i<a;i++)o=e[i],o.style&&(n=o.style.display,t?("none"===n&&(r[i]=Me.get(o,"display")||null,r[i]||(o.style.display="")),""===o.style.display&&Qe(o)&&(r[i]=y(o))):"none"!==n&&(r[i]="none",Me.set(o,"display",n)));for(i=0;i<a;i++)null!=r[i]&&(e[i].style.display=r[i]);return e}function F(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&ve.nodeName(e,t)?ve.merge([e],n):n}function w(e,t){for(var n=0,o=e.length;n<o;n++)Me.set(e[n],"globalEval",!t||Me.get(t[n],"globalEval"))}function A(e,t,n,o,r){for(var i,a,s,f,c,l,u=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if(i=e[p],i||0===i)if("object"===ve.type(i))ve.merge(d,i.nodeType?[i]:i);else if(Ke.test(i)){for(a=a||u.appendChild(t.createElement("div")),s=(Xe.exec(i)||["",""])[1].toLowerCase(),f=Je[s]||Je._default,a.innerHTML=f[1]+ve.htmlPrefilter(i)+f[2],l=f[0];l--;)a=a.lastChild;ve.merge(d,a.childNodes),a=u.firstChild,a.textContent=""}else d.push(t.createTextNode(i));for(u.textContent="",p=0;i=d[p++];)if(o&&ve.inArray(i,o)>-1)r&&r.push(i);else if(c=ve.contains(i.ownerDocument,i),a=F(u.appendChild(i),"script"),c&&w(a),n)for(l=0;i=a[l++];)Ze.test(i.type||"")&&n.push(i);return u}function C(){return!0}function T(){return!1}function k(){try{return ie.activeElement}catch(e){}}function E(e,t,n,o,r,i){var a,s;if("object"==typeof t){"string"!=typeof n&&(o=o||n,n=void 0);for(s in t)E(e,s,n,o,t[s],i);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),r===!1)r=T;else if(!r)return e;return 1===i&&(a=r,r=function(e){return ve().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=ve.guid++)),e.each(function(){ve.event.add(this,t,r,o,n)})}function S(e,t){return ve.nodeName(e,"table")&&ve.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e:e}function D(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function N(e){var t=st.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function $(e,t){var n,o,r,i,a,s,f,c;if(1===t.nodeType){if(Me.hasData(e)&&(i=Me.access(e),a=Me.set(t,i),c=i.events)){delete a.handle,a.events={};for(r in c)for(n=0,o=c[r].length;n<o;n++)ve.event.add(t,r,c[r][n])}Re.hasData(e)&&(s=Re.access(e),f=ve.extend({},s),Re.set(t,f))}}function j(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ve.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function I(e,t,n,o){t=fe.apply([],t);var r,i,s,f,c,l,u=0,d=e.length,p=d-1,h=t[0],m=ve.isFunction(h);if(m||d>1&&"string"==typeof h&&!be.checkClone&&at.test(h))return e.each(function(r){var i=e.eq(r);m&&(t[0]=h.call(this,r,i.html())),I(i,t,n,o)});if(d&&(r=A(t,e[0].ownerDocument,!1,e,o),i=r.firstChild,1===r.childNodes.length&&(r=i),i||o)){for(s=ve.map(F(r,"script"),D),f=s.length;u<d;u++)c=r,u!==p&&(c=ve.clone(c,!0,!0),f&&ve.merge(s,F(c,"script"))),n.call(e[u],c,u);if(f)for(l=s[s.length-1].ownerDocument,ve.map(s,N),u=0;u<f;u++)c=s[u],Ze.test(c.type||"")&&!Me.access(c,"globalEval")&&ve.contains(l,c)&&(c.src?ve._evalUrl&&ve._evalUrl(c.src):a(c.textContent.replace(ft,""),l))}return e}function q(e,t,n){for(var o,r=t?ve.filter(t,e):e,i=0;null!=(o=r[i]);i++)n||1!==o.nodeType||ve.cleanData(F(o)),o.parentNode&&(n&&ve.contains(o.ownerDocument,o)&&w(F(o,"script")),o.parentNode.removeChild(o));return e}function B(e,t,n){var o,r,i,a,s=e.style;return n=n||ut(e),n&&(a=n.getPropertyValue(t)||n[t],""!==a||ve.contains(e.ownerDocument,e)||(a=ve.style(e,t)),!be.pixelMarginRight()&<.test(a)&&ct.test(t)&&(o=s.width,r=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=o,s.minWidth=r,s.maxWidth=i)),void 0!==a?a+"":a}function O(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function L(e){if(e in bt)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=mt.length;n--;)if(e=mt[n]+t,e in bt)return e}function P(e,t,n){var o=Ue.exec(t);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):t}function M(e,t,n,o,r){var i,a=0;for(i=n===(o?"border":"content")?4:"width"===t?1:0;i<4;i+=2)"margin"===n&&(a+=ve.css(e,n+_e[i],!0,r)),o?("content"===n&&(a-=ve.css(e,"padding"+_e[i],!0,r)),"margin"!==n&&(a-=ve.css(e,"border"+_e[i]+"Width",!0,r))):(a+=ve.css(e,"padding"+_e[i],!0,r),"padding"!==n&&(a+=ve.css(e,"border"+_e[i]+"Width",!0,r)));return a}function R(e,t,n){var o,r=!0,i=ut(e),a="border-box"===ve.css(e,"boxSizing",!1,i);if(e.getClientRects().length&&(o=e.getBoundingClientRect()[t]),o<=0||null==o){if(o=B(e,t,i),(o<0||null==o)&&(o=e.style[t]),lt.test(o))return o;r=a&&(be.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+M(e,t,n||(a?"border":"content"),r,i)+"px"}function H(e,t,n,o,r){return new H.prototype.init(e,t,n,o,r)}function W(){vt&&(n.requestAnimationFrame(W),ve.fx.tick())}function z(){return n.setTimeout(function(){gt=void 0}),gt=ve.now()}function U(e,t){var n,o=0,r={height:e};for(t=t?1:0;o<4;o+=2-t)n=_e[o],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function _(e,t,n){for(var o,r=(Y.tweeners[t]||[]).concat(Y.tweeners["*"]),i=0,a=r.length;i<a;i++)if(o=r[i].call(n,t,e))return o}function Q(e,t,n){var o,r,i,a,s,f,c,l,u="width"in t||"height"in t,d=this,p={},h=e.style,m=e.nodeType&&Qe(e),b=Me.get(e,"fxshow");n.queue||(a=ve._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,ve.queue(e,"fx").length||a.empty.fire()})}));for(o in t)if(r=t[o],yt.test(r)){if(delete t[o],i=i||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!b||void 0===b[o])continue;m=!0}p[o]=b&&b[o]||ve.style(e,o)}if(f=!ve.isEmptyObject(t),f||!ve.isEmptyObject(p)){u&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],c=b&&b.display,null==c&&(c=Me.get(e,"display")),l=ve.css(e,"display"),"none"===l&&(c?l=c:(x([e],!0),c=e.style.display||c,l=ve.css(e,"display"),x([e]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===ve.css(e,"float")&&(f||(d.done(function(){h.display=c}),null==c&&(l=h.display,c="none"===l?"":l)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),f=!1;for(o in p)f||(b?"hidden"in b&&(m=b.hidden):b=Me.access(e,"fxshow",{display:c}),i&&(b.hidden=!m),m&&x([e],!0),d.done(function(){m||x([e]),Me.remove(e,"fxshow");for(o in p)ve.style(e,o,p[o])})),f=_(m?b[o]:0,o,d),o in b||(b[o]=f.start,m&&(f.end=f.start,f.start=0))}}function G(e,t){var n,o,r,i,a;for(n in e)if(o=ve.camelCase(n),r=t[o],i=e[n],ve.isArray(i)&&(r=i[1],i=e[n]=i[0]),n!==o&&(e[o]=i,delete e[n]),a=ve.cssHooks[o],a&&"expand"in a){i=a.expand(i),delete e[o];for(n in i)n in e||(e[n]=i[n],t[n]=r)}else t[o]=r}function Y(e,t,n){var o,r,i=0,a=Y.prefilters.length,s=ve.Deferred().always(function(){delete f.elem}),f=function(){if(r)return!1;for(var t=gt||z(),n=Math.max(0,c.startTime+c.duration-t),o=n/c.duration||0,i=1-o,a=0,f=c.tweens.length;a<f;a++)c.tweens[a].run(i);return s.notifyWith(e,[c,i,n]),i<1&&f?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:ve.extend({},t),opts:ve.extend(!0,{specialEasing:{},easing:ve.easing._default},n),originalProperties:t,originalOptions:n,startTime:gt||z(),duration:n.duration,tweens:[],createTween:function(t,n){var o=ve.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(o),o},stop:function(t){var n=0,o=t?c.tweens.length:0;if(r)return this;for(r=!0;n<o;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),l=c.props;for(G(l,c.opts.specialEasing);i<a;i++)if(o=Y.prefilters[i].call(c,e,l,c.opts))return ve.isFunction(o.stop)&&(ve._queueHooks(c.elem,c.opts.queue).stop=ve.proxy(o.stop,o)),o;return ve.map(l,_,c),ve.isFunction(c.opts.start)&&c.opts.start.call(e,c),ve.fx.timer(ve.extend(f,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function V(e){var t=e.match(qe)||[];return t.join(" ")}function X(e){return e.getAttribute&&e.getAttribute("class")||""}function Z(e,t,n,o){var r;if(ve.isArray(t))ve.each(t,function(t,r){n||Nt.test(e)?o(e,r):Z(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,o)});else if(n||"object"!==ve.type(t))o(e,t);else for(r in t)Z(e+"["+r+"]",t[r],n,o)}function J(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var o,r=0,i=t.toLowerCase().match(qe)||[];if(ve.isFunction(n))for(;o=i[r++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(n)):(e[o]=e[o]||[]).push(n)}}function K(e,t,n,o){function r(s){var f;return i[s]=!0,ve.each(e[s]||[],function(e,s){var c=s(t,n,o);return"string"!=typeof c||a||i[c]?a?!(f=c):void 0:(t.dataTypes.unshift(c),r(c),!1)}),f}var i={},a=e===Wt;return r(t.dataTypes[0])||!i["*"]&&r("*")}function ee(e,t){var n,o,r=ve.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:o||(o={}))[n]=t[n]);return o&&ve.extend(!0,e,o),e}function te(e,t,n){for(var o,r,i,a,s=e.contents,f=e.dataTypes;"*"===f[0];)f.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(r in s)if(s[r]&&s[r].test(o)){f.unshift(r);break}if(f[0]in n)i=f[0];else{for(r in n){if(!f[0]||e.converters[r+" "+f[0]]){i=r;break}a||(a=r)}i=i||a}if(i)return i!==f[0]&&f.unshift(i),n[i]}function ne(e,t,n,o){var r,i,a,s,f,c={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=l.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!f&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),f=i,i=l.shift())if("*"===i)i=f;else if("*"!==f&&f!==i){if(a=c[f+" "+i]||c["* "+i],!a)for(r in c)if(s=r.split(" "),s[1]===i&&(a=c[f+" "+s[0]]||c["* "+s[0]])){a===!0?a=c[r]:c[r]!==!0&&(i=s[0],l.unshift(s[1]));break}if(a!==!0)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+f+" to "+i}}}return{state:"success",data:t}}function oe(e){return ve.isWindow(e)?e:9===e.nodeType&&e.defaultView}var re=[],ie=n.document,ae=Object.getPrototypeOf,se=re.slice,fe=re.concat,ce=re.push,le=re.indexOf,ue={},de=ue.toString,pe=ue.hasOwnProperty,he=pe.toString,me=he.call(Object),be={},ge="3.1.1",ve=function(e,t){return new ve.fn.init(e,t)},ye=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,xe=/^-ms-/,Fe=/-([a-z])/g,we=function(e,t){return t.toUpperCase()};ve.fn=ve.prototype={jquery:ge,constructor:ve,length:0,toArray:function(){return se.call(this)},get:function(e){return null==e?se.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ve.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ve.each(this,e)},map:function(e){return this.pushStack(ve.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(se.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ce,sort:re.sort,splice:re.splice},ve.extend=ve.fn.extend=function(){var e,t,n,o,r,i,a=arguments[0]||{},s=1,f=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||ve.isFunction(a)||(a={}),s===f&&(a=this,s--);s<f;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],o=e[t],a!==o&&(c&&o&&(ve.isPlainObject(o)||(r=ve.isArray(o)))?(r?(r=!1,i=n&&ve.isArray(n)?n:[]):i=n&&ve.isPlainObject(n)?n:{},a[t]=ve.extend(c,i,o)):void 0!==o&&(a[t]=o));return a},ve.extend({expando:"jQuery"+(ge+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===ve.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=ve.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==de.call(e))&&(!(t=ae(e))||(n=pe.call(t,"constructor")&&t.constructor,"function"==typeof n&&he.call(n)===me))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[de.call(e)]||"object":typeof e},globalEval:function(e){a(e)},camelCase:function(e){return e.replace(xe,"ms-").replace(Fe,we)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,o=0;if(s(e))for(n=e.length;o<n&&t.call(e[o],o,e[o])!==!1;o++);else for(o in e)if(t.call(e[o],o,e[o])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(ye,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(s(Object(e))?ve.merge(n,"string"==typeof e?[e]:e):ce.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:le.call(t,e,n)},merge:function(e,t){for(var n=+t.length,o=0,r=e.length;o<n;o++)e[r++]=t[o];return e.length=r,e},grep:function(e,t,n){for(var o,r=[],i=0,a=e.length,s=!n;i<a;i++)o=!t(e[i],i),o!==s&&r.push(e[i]);return r},map:function(e,t,n){var o,r,i=0,a=[];if(s(e))for(o=e.length;i<o;i++)r=t(e[i],i,n),null!=r&&a.push(r);else for(i in e)r=t(e[i],i,n),null!=r&&a.push(r);return fe.apply([],a)},guid:1,proxy:function(e,t){var n,o,r;if("string"==typeof t&&(n=e[t],t=e,e=n),ve.isFunction(e))return o=se.call(arguments,2),r=function(){return e.apply(t||this,o.concat(se.call(arguments)))},r.guid=e.guid=e.guid||ve.guid++,r},now:Date.now,support:be}),"function"==typeof Symbol&&(ve.fn[Symbol.iterator]=re[Symbol.iterator]),ve.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});var Ae=/*!
* Sizzle CSS Selector Engine v2.3.3
* https://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-08-08
*/
function(e){function t(e,t,n,o){var r,i,a,s,f,c,l,d=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!o&&((t?t.ownerDocument||t:H)!==I&&j(t),t=t||I,B)){if(11!==h&&(f=ge.exec(e)))if(r=f[1]){if(9===h){if(!(a=t.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(d&&(a=d.getElementById(r))&&M(t,a)&&a.id===r)return n.push(a),n}else{if(f[2])return J.apply(n,t.getElementsByTagName(e)),n;if((r=f[3])&&w.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!Q[e+" "]&&(!O||!O.test(e))){if(1!==h)d=t,l=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(Fe,we):t.setAttribute("id",s=R),c=k(e),i=c.length;i--;)c[i]="#"+s+" "+p(c[i]);l=c.join(","),d=ve.test(e)&&u(t.parentNode)||t}if(l)try{return J.apply(n,d.querySelectorAll(l)),n}catch(e){}finally{s===R&&t.removeAttribute("id")}}}return S(e.replace(se,"$1"),t,n,o)}function n(){function e(n,o){return t.push(n+" ")>A.cacheLength&&delete e[t.shift()],e[n+" "]=o}var t=[];return e}function o(e){return e[R]=!0,e}function r(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function i(e,t){for(var n=e.split("|"),o=n.length;o--;)A.attrHandle[n[o]]=t}function a(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function f(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Ce(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function l(e){return o(function(t){return t=+t,o(function(n,o){for(var r,i=e([],n.length,t),a=i.length;a--;)n[r=i[a]]&&(n[r]=!(o[r]=n[r]))})})}function u(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function p(e){for(var t=0,n=e.length,o="";t<n;t++)o+=e[t].value;return o}function h(e,t,n){var o=t.dir,r=t.next,i=r||o,a=n&&"parentNode"===i,s=z++;return t.first?function(t,n,r){for(;t=t[o];)if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,f){var c,l,u,d=[W,s];if(f){for(;t=t[o];)if((1===t.nodeType||a)&&e(t,n,f))return!0}else for(;t=t[o];)if(1===t.nodeType||a)if(u=t[R]||(t[R]={}),l=u[t.uniqueID]||(u[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[o]||t;else{if((c=l[i])&&c[0]===W&&c[1]===s)return d[2]=c[2];if(l[i]=d,d[2]=e(t,n,f))return!0}return!1}}function m(e){return e.length>1?function(t,n,o){for(var r=e.length;r--;)if(!e[r](t,n,o))return!1;return!0}:e[0]}function b(e,n,o){for(var r=0,i=n.length;r<i;r++)t(e,n[r],o);return o}function g(e,t,n,o,r){for(var i,a=[],s=0,f=e.length,c=null!=t;s<f;s++)(i=e[s])&&(n&&!n(i,o,r)||(a.push(i),c&&t.push(s)));return a}function v(e,t,n,r,i,a){return r&&!r[R]&&(r=v(r)),i&&!i[R]&&(i=v(i,a)),o(function(o,a,s,f){var c,l,u,d=[],p=[],h=a.length,m=o||b(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?m:g(m,d,e,s,f),y=n?i||(o?e:h||r)?[]:a:v;if(n&&n(v,y,s,f),r)for(c=g(y,p),r(c,[],s,f),l=c.length;l--;)(u=c[l])&&(y[p[l]]=!(v[p[l]]=u));if(o){if(i||e){if(i){for(c=[],l=y.length;l--;)(u=y[l])&&c.push(v[l]=u);i(null,y=[],c,f)}for(l=y.length;l--;)(u=y[l])&&(c=i?ee(o,u):d[l])>-1&&(o[c]=!(a[c]=u))}}else y=g(y===a?y.splice(h,y.length):y),i?i(null,a,y,f):J.apply(a,y)})}function y(e){for(var t,n,o,r=e.length,i=A.relative[e[0].type],a=i||A.relative[" "],s=i?1:0,f=h(function(e){return e===t},a,!0),c=h(function(e){return ee(t,e)>-1},a,!0),l=[function(e,n,o){var r=!i&&(o||n!==D)||((t=n).nodeType?f(e,n,o):c(e,n,o));return t=null,r}];s<r;s++)if(n=A.relative[e[s].type])l=[h(m(l),n)];else{if(n=A.filter[e[s].type].apply(null,e[s].matches),n[R]){for(o=++s;o<r&&!A.relative[e[o].type];o++);return v(s>1&&m(l),s>1&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s<o&&y(e.slice(s,o)),o<r&&y(e=e.slice(o)),o<r&&p(e))}l.push(n)}return m(l)}function x(e,n){var r=n.length>0,i=e.length>0,a=function(o,a,s,f,c){var l,u,d,p=0,h="0",m=o&&[],b=[],v=D,y=o||i&&A.find.TAG("*",c),x=W+=null==v?1:Math.random()||.1,F=y.length;for(c&&(D=a===I||a||c);h!==F&&null!=(l=y[h]);h++){if(i&&l){for(u=0,a||l.ownerDocument===I||(j(l),s=!B);d=e[u++];)if(d(l,a||I,s)){f.push(l);break}c&&(W=x)}r&&((l=!d&&l)&&p--,o&&m.push(l))}if(p+=h,r&&h!==p){for(u=0;d=n[u++];)d(m,b,a,s);if(o){if(p>0)for(;h--;)m[h]||b[h]||(b[h]=X.call(f));b=g(b)}J.apply(f,b),c&&!o&&b.length>0&&p+n.length>1&&t.uniqueSort(f)}return c&&(W=x,D=v),m};return r?o(a):a}var F,w,A,C,T,k,E,S,D,N,$,j,I,q,B,O,L,P,M,R="sizzle"+1*new Date,H=e.document,W=0,z=0,U=n(),_=n(),Q=n(),G=function(e,t){return e===t&&($=!0),0},Y={}.hasOwnProperty,V=[],X=V.pop,Z=V.push,J=V.push,K=V.slice,ee=function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",oe="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",re="\\["+ne+"*("+oe+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+oe+"))|)"+ne+"*\\]",ie=":("+oe+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+re+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),fe=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),le=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),ue=new RegExp(ie),de=new RegExp("^"+oe+"$"),pe={ID:new RegExp("^#("+oe+")"),CLASS:new RegExp("^\\.("+oe+")"),TAG:new RegExp("^("+oe+"|[*])"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+ie),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,be=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,ye=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),xe=function(e,t,n){var o="0x"+t-65536;return o!==o||n?t:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)},Fe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,we=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Ae=function(){j()},Ce=h(function(e){return e.disabled===!0&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{J.apply(V=K.call(H.childNodes),H.childNodes),V[H.childNodes.length].nodeType}catch(e){J={apply:V.length?function(e,t){Z.apply(e,K.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}w=t.support={},T=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},j=t.setDocument=function(e){var t,n,o=e?e.ownerDocument||e:H;return o!==I&&9===o.nodeType&&o.documentElement?(I=o,q=I.documentElement,B=!T(I),H!==I&&(n=I.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ae,!1):n.attachEvent&&n.attachEvent("onunload",Ae)),w.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=r(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=be.test(I.getElementsByClassName),w.getById=r(function(e){return q.appendChild(e).id=R,!I.getElementsByName||!I.getElementsByName(R).length}),w.getById?(A.filter.ID=function(e){var t=e.replace(ye,xe);return function(e){return e.getAttribute("id")===t}},A.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&B){var n=t.getElementById(e);return n?[n]:[]}}):(A.filter.ID=function(e){var t=e.replace(ye,xe);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},A.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&B){var n,o,r,i=t.getElementById(e);if(i){if(n=i.getAttributeNode("id"),n&&n.value===e)return[i];for(r=t.getElementsByName(e),o=0;i=r[o++];)if(n=i.getAttributeNode("id"),n&&n.value===e)return[i]}return[]}}),A.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[r++];)1===n.nodeType&&o.push(n);return o}return i},A.find.CLASS=w.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&B)return t.getElementsByClassName(e)},L=[],O=[],(w.qsa=be.test(I.querySelectorAll))&&(r(function(e){q.appendChild(e).innerHTML="<a id='"+R+"'></a><select id='"+R+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||O.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+R+"-]").length||O.push("~="),e.querySelectorAll(":checked").length||O.push(":checked"),e.querySelectorAll("a#"+R+"+*").length||O.push(".#.+[+~]")}),r(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=I.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&O.push("name"+ne+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&O.push(":enabled",":disabled"),q.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&O.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),O.push(",.*:")})),(w.matchesSelector=be.test(P=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&r(function(e){w.disconnectedMatch=P.call(e,"*"),P.call(e,"[s!='']:x"),L.push("!=",ie)}),O=O.length&&new RegExp(O.join("|")),L=L.length&&new RegExp(L.join("|")),t=be.test(q.compareDocumentPosition),M=t||be.test(q.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},G=t?function(e,t){if(e===t)return $=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===I||e.ownerDocument===H&&M(H,e)?-1:t===I||t.ownerDocument===H&&M(H,t)?1:N?ee(N,e)-ee(N,t):0:4&n?-1:1)}:function(e,t){if(e===t)return $=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,s=[e],f=[t];if(!r||!i)return e===I?-1:t===I?1:r?-1:i?1:N?ee(N,e)-ee(N,t):0;if(r===i)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)f.unshift(n);for(;s[o]===f[o];)o++;return o?a(s[o],f[o]):s[o]===H?-1:f[o]===H?1:0},I):I},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==I&&j(e),n=n.replace(le,"='$1']"),w.matchesSelector&&B&&!Q[n+" "]&&(!L||!L.test(n))&&(!O||!O.test(n)))try{var o=P.call(e,n);if(o||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(e){}return t(n,I,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==I&&j(e),M(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==I&&j(e);var n=A.attrHandle[t.toLowerCase()],o=n&&Y.call(A.attrHandle,t.toLowerCase())?n(e,t,!B):void 0;return void 0!==o?o:w.attributes||!B?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},t.escape=function(e){return(e+"").replace(Fe,we)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],o=0,r=0;if($=!w.detectDuplicates,N=!w.sortStable&&e.slice(0),e.sort(G),$){for(;t=e[r++];)t===e[r]&&(o=n.push(r));for(;o--;)e.splice(n[o],1)}return N=null,e},C=t.getText=function(e){var t,n="",o=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[o++];)n+=C(t);return n},A=t.selectors={cacheLength:50,createPseudo:o,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ye,xe),e[3]=(e[3]||e[4]||e[5]||"").replace(ye,xe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ue.test(n)&&(t=k(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ye,xe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,o){return function(r){var i=t.attr(r,e);return null==i?"!="===n:!n||(i+="","="===n?i===o:"!="===n?i!==o:"^="===n?o&&0===i.indexOf(o):"*="===n?o&&i.indexOf(o)>-1:"$="===n?o&&i.slice(-o.length)===o:"~="===n?(" "+i.replace(ae," ")+" ").indexOf(o)>-1:"|="===n&&(i===o||i.slice(0,o.length+1)===o+"-"))}},CHILD:function(e,t,n,o,r){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===o&&0===r?function(e){return!!e.parentNode}:function(t,n,f){var c,l,u,d,p,h,m=i!==a?"nextSibling":"previousSibling",b=t.parentNode,g=s&&t.nodeName.toLowerCase(),v=!f&&!s,y=!1;if(b){if(i){for(;m;){for(d=t;d=d[m];)if(s?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?b.firstChild:b.lastChild],a&&v){for(d=b,u=d[R]||(d[R]={}),l=u[d.uniqueID]||(u[d.uniqueID]={}),c=l[e]||[],p=c[0]===W&&c[1],y=p&&c[2],d=p&&b.childNodes[p];d=++p&&d&&d[m]||(y=p=0)||h.pop();)if(1===d.nodeType&&++y&&d===t){l[e]=[W,p,y];break}}else if(v&&(d=t,u=d[R]||(d[R]={}),l=u[d.uniqueID]||(u[d.uniqueID]={}),c=l[e]||[],p=c[0]===W&&c[1],y=p),y===!1)for(;(d=++p&&d&&d[m]||(y=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++y||(v&&(u=d[R]||(d[R]={}),l=u[d.uniqueID]||(u[d.uniqueID]={}),l[e]=[W,y]),d!==t)););return y-=r,y===o||y%o===0&&y/o>=0}}},PSEUDO:function(e,n){var r,i=A.pseudos[e]||A.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return i[R]?i(n):i.length>1?(r=[e,e,"",n],A.setFilters.hasOwnProperty(e.toLowerCase())?o(function(e,t){for(var o,r=i(e,n),a=r.length;a--;)o=ee(e,r[a]),e[o]=!(t[o]=r[a])}):function(e){return i(e,0,r)}):i}},pseudos:{not:o(function(e){var t=[],n=[],r=E(e.replace(se,"$1"));return r[R]?o(function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:o(function(e){return function(n){return t(e,n).length>0}}),contains:o(function(e){return e=e.replace(ye,xe),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:o(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ye,xe).toLowerCase(),function(t){var n;do if(n=B?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!A.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var o=n<0?n+t:n;--o>=0;)e.push(o);return e}),gt:l(function(e,t,n){for(var o=n<0?n+t:n;++o<t;)e.push(o);return e})}},A.pseudos.nth=A.pseudos.eq;for(F in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})A.pseudos[F]=s(F);for(F in{submit:!0,reset:!0})A.pseudos[F]=f(F);return d.prototype=A.filters=A.pseudos,A.setFilters=new d,k=t.tokenize=function(e,n){var o,r,i,a,s,f,c,l=_[e+" "];if(l)return n?0:l.slice(0);for(s=e,f=[],c=A.preFilter;s;){o&&!(r=fe.exec(s))||(r&&(s=s.slice(r[0].length)||s),f.push(i=[])),o=!1,(r=ce.exec(s))&&(o=r.shift(),i.push({value:o,type:r[0].replace(se," ")}),s=s.slice(o.length));for(a in A.filter)!(r=pe[a].exec(s))||c[a]&&!(r=c[a](r))||(o=r.shift(),i.push({value:o,type:a,matches:r}),s=s.slice(o.length));if(!o)break}return n?s.length:s?t.error(e):_(e,f).slice(0)},E=t.compile=function(e,t){var n,o=[],r=[],i=Q[e+" "];if(!i){for(t||(t=k(e)),n=t.length;n--;)i=y(t[n]),i[R]?o.push(i):r.push(i);i=Q(e,x(r,o)),i.selector=e}return i},S=t.select=function(e,t,n,o){var r,i,a,s,f,c="function"==typeof e&&e,l=!o&&k(e=c.selector||e);if(n=n||[],1===l.length){if(i=l[0]=l[0].slice(0),i.length>2&&"ID"===(a=i[0]).type&&9===t.nodeType&&B&&A.relative[i[1].type]){if(t=(A.find.ID(a.matches[0].replace(ye,xe),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(r=pe.needsContext.test(e)?0:i.length;r--&&(a=i[r],!A.relative[s=a.type]);)if((f=A.find[s])&&(o=f(a.matches[0].replace(ye,xe),ve.test(i[0].type)&&u(t.parentNode)||t))){if(i.splice(r,1),e=o.length&&p(i),!e)return J.apply(n,o),n;break}}return(c||E(e,l))(o,t,!B,n,!t||ve.test(e)&&u(t.parentNode)||t),n},w.sortStable=R.split("").sort(G).join("")===R,w.detectDuplicates=!!$,j(),w.sortDetached=r(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||i("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||i("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||i(te,function(e,t,n){var o;if(!n)return e[t]===!0?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null}),t}(n);ve.find=Ae,ve.expr=Ae.selectors,ve.expr[":"]=ve.expr.pseudos,ve.uniqueSort=ve.unique=Ae.uniqueSort,ve.text=Ae.getText,ve.isXMLDoc=Ae.isXML,ve.contains=Ae.contains,ve.escapeSelector=Ae.escape;var Ce=function(e,t,n){for(var o=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&ve(e).is(n))break;o.push(e)}return o},Te=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},ke=ve.expr.match.needsContext,Ee=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Se=/^.[^:#\[\.,]*$/;ve.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?ve.find.matchesSelector(o,e)?[o]:[]:ve.find.matches(e,ve.grep(t,function(e){return 1===e.nodeType}))},ve.fn.extend({find:function(e){var t,n,o=this.length,r=this;if("string"!=typeof e)return this.pushStack(ve(e).filter(function(){for(t=0;t<o;t++)if(ve.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<o;t++)ve.find(e,r[t],n);return o>1?ve.uniqueSort(n):n},filter:function(e){return this.pushStack(f(this,e||[],!1))},not:function(e){return this.pushStack(f(this,e||[],!0))},is:function(e){return!!f(this,"string"==typeof e&&ke.test(e)?ve(e):e||[],!1).length}});var De,Ne=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,$e=ve.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||De,"string"==typeof e){if(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ne.exec(e),!o||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof ve?t[0]:t,ve.merge(this,ve.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:ie,!0)),Ee.test(o[1])&&ve.isPlainObject(t))for(o in t)ve.isFunction(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return r=ie.getElementById(o[2]),r&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):ve.isFunction(e)?void 0!==n.ready?n.ready(e):e(ve):ve.makeArray(e,this)};$e.prototype=ve.fn,De=ve(ie);var je=/^(?:parents|prev(?:Until|All))/,Ie={children:!0,contents:!0,next:!0,prev:!0};ve.fn.extend({has:function(e){var t=ve(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ve.contains(this,t[e]))return!0})},closest:function(e,t){var n,o=0,r=this.length,i=[],a="string"!=typeof e&&ve(e);if(!ke.test(e))for(;o<r;o++)for(n=this[o];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ve.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?ve.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?le.call(ve(e),this[0]):le.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ve.uniqueSort(ve.merge(this.get(),ve(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ve.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Ce(e,"parentNode")},parentsUntil:function(e,t,n){return Ce(e,"parentNode",n)},next:function(e){return c(e,"nextSibling")},prev:function(e){return c(e,"previousSibling")},nextAll:function(e){return Ce(e,"nextSibling")},prevAll:function(e){return Ce(e,"previousSibling")},nextUntil:function(e,t,n){return Ce(e,"nextSibling",n)},prevUntil:function(e,t,n){return Ce(e,"previousSibling",n)},siblings:function(e){return Te((e.parentNode||{}).firstChild,e)},children:function(e){return Te(e.firstChild)},contents:function(e){return e.contentDocument||ve.merge([],e.childNodes)}},function(e,t){ve.fn[e]=function(n,o){var r=ve.map(this,t,n);return"Until"!==e.slice(-5)&&(o=n),o&&"string"==typeof o&&(r=ve.filter(o,r)),this.length>1&&(Ie[e]||ve.uniqueSort(r),je.test(e)&&r.reverse()),this.pushStack(r)}});var qe=/[^\x20\t\r\n\f]+/g;ve.Callbacks=function(e){e="string"==typeof e?l(e):ve.extend({},e);var t,n,o,r,i=[],a=[],s=-1,f=function(){for(r=e.once,o=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)i[s].apply(n[0],n[1])===!1&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,r&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){ve.each(n,function(n,o){ve.isFunction(o)?e.unique&&c.has(o)||i.push(o):o&&o.length&&"string"!==ve.type(o)&&t(o)})}(arguments),n&&!t&&f()),this},remove:function(){return ve.each(arguments,function(e,t){for(var n;(n=ve.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?ve.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return r=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return r=a=[],n||t||(i=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||f()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!o}};return c},ve.extend({Deferred:function(e){var t=[["notify","progress",ve.Callbacks("memory"),ve.Callbacks("memory"),2],["resolve","done",ve.Callbacks("once memory"),ve.Callbacks("once memory"),0,"resolved"],["reject","fail",ve.Callbacks("once memory"),ve.Callbacks("once memory"),1,"rejected"]],o="pending",r={state:function(){return o},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return ve.Deferred(function(n){ve.each(t,function(t,o){var r=ve.isFunction(e[o[4]])&&e[o[4]];i[o[1]](function(){var e=r&&r.apply(this,arguments);e&&ve.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(e,o,r){function i(e,t,o,r){return function(){var s=this,f=arguments,c=function(){var n,c;if(!(e<a)){if(n=o.apply(s,f),n===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,ve.isFunction(c)?r?c.call(n,i(a,t,u,r),i(a,t,d,r)):(a++,c.call(n,i(a,t,u,r),i(a,t,d,r),i(a,t,u,t.notifyWith))):(o!==u&&(s=void 0,f=[n]),(r||t.resolveWith)(s,f))}},l=r?c:function(){try{c()}catch(n){ve.Deferred.exceptionHook&&ve.Deferred.exceptionHook(n,l.stackTrace),e+1>=a&&(o!==d&&(s=void 0,f=[n]),t.rejectWith(s,f))}};e?l():(ve.Deferred.getStackHook&&(l.stackTrace=ve.Deferred.getStackHook()),n.setTimeout(l))}}var a=0;return ve.Deferred(function(n){t[0][3].add(i(0,n,ve.isFunction(r)?r:u,n.notifyWith)),t[1][3].add(i(0,n,ve.isFunction(e)?e:u)),t[2][3].add(i(0,n,ve.isFunction(o)?o:d))}).promise()},promise:function(e){return null!=e?ve.extend(e,r):r}},i={};return ve.each(t,function(e,n){var a=n[2],s=n[5];r[n[1]]=a.add,s&&a.add(function(){o=s},t[3-e][2].disable,t[0][2].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,o=Array(n),r=se.call(arguments),i=ve.Deferred(),a=function(e){return function(n){o[e]=this,r[e]=arguments.length>1?se.call(arguments):n,--t||i.resolveWith(o,r)}};if(t<=1&&(p(e,i.done(a(n)).resolve,i.reject),"pending"===i.state()||ve.isFunction(r[n]&&r[n].then)))return i.then();for(;n--;)p(r[n],a(n),i.reject);return i.promise()}});var Be=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ve.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&Be.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ve.readyException=function(e){n.setTimeout(function(){throw e})};var Oe=ve.Deferred();ve.fn.ready=function(e){return Oe.then(e).catch(function(e){ve.readyException(e)}),this},ve.extend({isReady:!1,readyWait:1,holdReady:function(e){e?ve.readyWait++:ve.ready(!0)},ready:function(e){(e===!0?--ve.readyWait:ve.isReady)||(ve.isReady=!0,e!==!0&&--ve.readyWait>0||Oe.resolveWith(ie,[ve]))}}),ve.ready.then=Oe.then,"complete"===ie.readyState||"loading"!==ie.readyState&&!ie.documentElement.doScroll?n.setTimeout(ve.ready):(ie.addEventListener("DOMContentLoaded",h),n.addEventListener("load",h));var Le=function(e,t,n,o,r,i,a){var s=0,f=e.length,c=null==n;if("object"===ve.type(n)){r=!0;for(s in n)Le(e,t,s,n[s],!0,i,a)}else if(void 0!==o&&(r=!0,ve.isFunction(o)||(a=!0),c&&(a?(t.call(e,o),t=null):(c=t,t=function(e,t,n){return c.call(ve(e),n)})),t))for(;s<f;s++)t(e[s],n,a?o:o.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):f?t(e[0],n):i},Pe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};m.uid=1,m.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Pe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var o,r=this.cache(e);if("string"==typeof t)r[ve.camelCase(t)]=n;else for(o in t)r[ve.camelCase(o)]=t[o];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ve.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,o=e[this.expando];if(void 0!==o){if(void 0!==t){ve.isArray(t)?t=t.map(ve.camelCase):(t=ve.camelCase(t),t=t in o?[t]:t.match(qe)||[]),n=t.length;for(;n--;)delete o[t[n]]}(void 0===t||ve.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ve.isEmptyObject(t)}};var Me=new m,Re=new m,He=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,We=/[A-Z]/g;ve.extend({hasData:function(e){return Re.hasData(e)||Me.hasData(e)},data:function(e,t,n){return Re.access(e,t,n)},removeData:function(e,t){Re.remove(e,t)},_data:function(e,t,n){return Me.access(e,t,n)},_removeData:function(e,t){Me.remove(e,t)}}),ve.fn.extend({data:function(e,t){var n,o,r,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(r=Re.get(i),1===i.nodeType&&!Me.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(o=a[n].name,0===o.indexOf("data-")&&(o=ve.camelCase(o.slice(5)),g(i,o,r[o])));Me.set(i,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){Re.set(this,e)}):Le(this,function(t){var n;if(i&&void 0===t){if(n=Re.get(i,e),void 0!==n)return n;if(n=g(i,e),void 0!==n)return n}else this.each(function(){Re.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Re.remove(this,e)})}}),ve.extend({queue:function(e,t,n){var o;if(e)return t=(t||"fx")+"queue",o=Me.get(e,t),n&&(!o||ve.isArray(n)?o=Me.access(e,t,ve.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=ve.queue(e,t),o=n.length,r=n.shift(),i=ve._queueHooks(e,t),a=function(){ve.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,a,i)),!o&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Me.get(e,n)||Me.access(e,n,{empty:ve.Callbacks("once memory").add(function(){Me.remove(e,[t+"queue",n])})})}}),ve.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?ve.queue(this[0],e):void 0===t?this:this.each(function(){var n=ve.queue(this,e,t);ve._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&ve.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ve.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,o=1,r=ve.Deferred(),i=this,a=this.length,s=function(){--o||r.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=Me.get(i[a],e+"queueHooks"),n&&n.empty&&(o++,n.empty.add(s));return s(),r.promise(t)}});var ze=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ue=new RegExp("^(?:([+-])=|)("+ze+")([a-z%]*)$","i"),_e=["Top","Right","Bottom","Left"],Qe=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&ve.contains(e.ownerDocument,e)&&"none"===ve.css(e,"display")},Ge=function(e,t,n,o){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];r=n.apply(e,o||[]);for(i in t)e.style[i]=a[i];return r},Ye={};ve.fn.extend({show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Qe(this)?ve(this).show():ve(this).hide()})}});var Ve=/^(?:checkbox|radio)$/i,Xe=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Ze=/^$|\/(?:java|ecma)script/i,Je={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,"",""]};Je.optgroup=Je.option,Je.tbody=Je.tfoot=Je.colgroup=Je.caption=Je.thead,Je.th=Je.td;
var Ke=/<|&#?\w+;/;!function(){var e=ie.createDocumentFragment(),t=e.appendChild(ie.createElement("div")),n=ie.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),be.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",be.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var et=ie.documentElement,tt=/^key/,nt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ot=/^([^.]*)(?:\.(.+)|)/;ve.event={global:{},add:function(e,t,n,o,r){var i,a,s,f,c,l,u,d,p,h,m,b=Me.get(e);if(b)for(n.handler&&(i=n,n=i.handler,r=i.selector),r&&ve.find.matchesSelector(et,r),n.guid||(n.guid=ve.guid++),(f=b.events)||(f=b.events={}),(a=b.handle)||(a=b.handle=function(t){return"undefined"!=typeof ve&&ve.event.triggered!==t.type?ve.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(qe)||[""],c=t.length;c--;)s=ot.exec(t[c])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p&&(u=ve.event.special[p]||{},p=(r?u.delegateType:u.bindType)||p,u=ve.event.special[p]||{},l=ve.extend({type:p,origType:m,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&ve.expr.match.needsContext.test(r),namespace:h.join(".")},i),(d=f[p])||(d=f[p]=[],d.delegateCount=0,u.setup&&u.setup.call(e,o,h,a)!==!1||e.addEventListener&&e.addEventListener(p,a)),u.add&&(u.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,l):d.push(l),ve.event.global[p]=!0)},remove:function(e,t,n,o,r){var i,a,s,f,c,l,u,d,p,h,m,b=Me.hasData(e)&&Me.get(e);if(b&&(f=b.events)){for(t=(t||"").match(qe)||[""],c=t.length;c--;)if(s=ot.exec(t[c])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p){for(u=ve.event.special[p]||{},p=(o?u.delegateType:u.bindType)||p,d=f[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=d.length;i--;)l=d[i],!r&&m!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||o&&o!==l.selector&&("**"!==o||!l.selector)||(d.splice(i,1),l.selector&&d.delegateCount--,u.remove&&u.remove.call(e,l));a&&!d.length&&(u.teardown&&u.teardown.call(e,h,b.handle)!==!1||ve.removeEvent(e,p,b.handle),delete f[p])}else for(p in f)ve.event.remove(e,p+t[c],n,o,!0);ve.isEmptyObject(f)&&Me.remove(e,"handle events")}},dispatch:function(e){var t,n,o,r,i,a,s=ve.event.fix(e),f=new Array(arguments.length),c=(Me.get(this,"events")||{})[s.type]||[],l=ve.event.special[s.type]||{};for(f[0]=s,t=1;t<arguments.length;t++)f[t]=arguments[t];if(s.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,s)!==!1){for(a=ve.event.handlers.call(this,s,c),t=0;(r=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,n=0;(i=r.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,o=((ve.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,f),void 0!==o&&(s.result=o)===!1&&(s.preventDefault(),s.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,o,r,i,a,s=[],f=t.delegateCount,c=e.target;if(f&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||c.disabled!==!0)){for(i=[],a={},n=0;n<f;n++)o=t[n],r=o.selector+" ",void 0===a[r]&&(a[r]=o.needsContext?ve(r,this).index(c)>-1:ve.find(r,this,null,[c]).length),a[r]&&i.push(o);i.length&&s.push({elem:c,handlers:i})}return c=this,f<t.length&&s.push({elem:c,handlers:t.slice(f)}),s},addProp:function(e,t){Object.defineProperty(ve.Event.prototype,e,{enumerable:!0,configurable:!0,get:ve.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[ve.expando]?e:new ve.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==k()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===k()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&ve.nodeName(this,"input"))return this.click(),!1},_default:function(e){return ve.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ve.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ve.Event=function(e,t){return this instanceof ve.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?C:T,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ve.extend(this,t),this.timeStamp=e&&e.timeStamp||ve.now(),void(this[ve.expando]=!0)):new ve.Event(e,t)},ve.Event.prototype={constructor:ve.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=C,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=C,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=C,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ve.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&tt.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&nt.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},ve.event.addProp),ve.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){ve.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,o=this,r=e.relatedTarget,i=e.handleObj;return r&&(r===o||ve.contains(o,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),ve.fn.extend({on:function(e,t,n,o){return E(this,e,t,n,o)},one:function(e,t,n,o){return E(this,e,t,n,o,1)},off:function(e,t,n){var o,r;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,ve(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=T),this.each(function(){ve.event.remove(this,e,n,t)})}});var rt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,it=/<script|<style|<link/i,at=/checked\s*(?:[^=]|=\s*.checked.)/i,st=/^true\/(.*)/,ft=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ve.extend({htmlPrefilter:function(e){return e.replace(rt,"<$1></$2>")},clone:function(e,t,n){var o,r,i,a,s=e.cloneNode(!0),f=ve.contains(e.ownerDocument,e);if(!(be.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ve.isXMLDoc(e)))for(a=F(s),i=F(e),o=0,r=i.length;o<r;o++)j(i[o],a[o]);if(t)if(n)for(i=i||F(e),a=a||F(s),o=0,r=i.length;o<r;o++)$(i[o],a[o]);else $(e,s);return a=F(s,"script"),a.length>0&&w(a,!f&&F(e,"script")),s},cleanData:function(e){for(var t,n,o,r=ve.event.special,i=0;void 0!==(n=e[i]);i++)if(Pe(n)){if(t=n[Me.expando]){if(t.events)for(o in t.events)r[o]?ve.event.remove(n,o):ve.removeEvent(n,o,t.handle);n[Me.expando]=void 0}n[Re.expando]&&(n[Re.expando]=void 0)}}}),ve.fn.extend({detach:function(e){return q(this,e,!0)},remove:function(e){return q(this,e)},text:function(e){return Le(this,function(e){return void 0===e?ve.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return I(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=S(this,e);t.appendChild(e)}})},prepend:function(){return I(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=S(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return I(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return I(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ve.cleanData(F(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ve.clone(this,e,t)})},html:function(e){return Le(this,function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!it.test(e)&&!Je[(Xe.exec(e)||["",""])[1].toLowerCase()]){e=ve.htmlPrefilter(e);try{for(;n<o;n++)t=this[n]||{},1===t.nodeType&&(ve.cleanData(F(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return I(this,arguments,function(t){var n=this.parentNode;ve.inArray(this,e)<0&&(ve.cleanData(F(this)),n&&n.replaceChild(t,this))},e)}}),ve.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ve.fn[e]=function(e){for(var n,o=[],r=ve(e),i=r.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),ve(r[a])[t](n),ce.apply(o,n.get());return this.pushStack(o)}});var ct=/^margin/,lt=new RegExp("^("+ze+")(?!px)[a-z%]+$","i"),ut=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)};!function(){function e(){if(s){s.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",et.appendChild(a);var e=n.getComputedStyle(s);t="1%"!==e.top,i="2px"===e.marginLeft,o="4px"===e.width,s.style.marginRight="50%",r="4px"===e.marginRight,et.removeChild(a),s=null}}var t,o,r,i,a=ie.createElement("div"),s=ie.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",be.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(s),ve.extend(be,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return e(),o},pixelMarginRight:function(){return e(),r},reliableMarginLeft:function(){return e(),i}}))}();var dt=/^(none|table(?!-c[ea]).+)/,pt={position:"absolute",visibility:"hidden",display:"block"},ht={letterSpacing:"0",fontWeight:"400"},mt=["Webkit","Moz","ms"],bt=ie.createElement("div").style;ve.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=B(e,"opacity");return""===n?"1":n}}}},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(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,i,a,s=ve.camelCase(t),f=e.style;return t=ve.cssProps[s]||(ve.cssProps[s]=L(s)||s),a=ve.cssHooks[t]||ve.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(r=a.get(e,!1,o))?r:f[t]:(i=typeof n,"string"===i&&(r=Ue.exec(n))&&r[1]&&(n=v(e,t,r),i="number"),null!=n&&n===n&&("number"===i&&(n+=r&&r[3]||(ve.cssNumber[s]?"":"px")),be.clearCloneStyle||""!==n||0!==t.indexOf("background")||(f[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,o))||(f[t]=n)),void 0)}},css:function(e,t,n,o){var r,i,a,s=ve.camelCase(t);return t=ve.cssProps[s]||(ve.cssProps[s]=L(s)||s),a=ve.cssHooks[t]||ve.cssHooks[s],a&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=B(e,t,o)),"normal"===r&&t in ht&&(r=ht[t]),""===n||n?(i=parseFloat(r),n===!0||isFinite(i)?i||0:r):r}}),ve.each(["height","width"],function(e,t){ve.cssHooks[t]={get:function(e,n,o){if(n)return!dt.test(ve.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?R(e,t,o):Ge(e,pt,function(){return R(e,t,o)})},set:function(e,n,o){var r,i=o&&ut(e),a=o&&M(e,t,o,"border-box"===ve.css(e,"boxSizing",!1,i),i);return a&&(r=Ue.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=ve.css(e,t)),P(e,n,a)}}}),ve.cssHooks.marginLeft=O(be.reliableMarginLeft,function(e,t){if(t)return(parseFloat(B(e,"marginLeft"))||e.getBoundingClientRect().left-Ge(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ve.each({margin:"",padding:"",border:"Width"},function(e,t){ve.cssHooks[e+t]={expand:function(n){for(var o=0,r={},i="string"==typeof n?n.split(" "):[n];o<4;o++)r[e+_e[o]+t]=i[o]||i[o-2]||i[0];return r}},ct.test(e)||(ve.cssHooks[e+t].set=P)}),ve.fn.extend({css:function(e,t){return Le(this,function(e,t,n){var o,r,i={},a=0;if(ve.isArray(t)){for(o=ut(e),r=t.length;a<r;a++)i[t[a]]=ve.css(e,t[a],!1,o);return i}return void 0!==n?ve.style(e,t,n):ve.css(e,t)},e,t,arguments.length>1)}}),ve.Tween=H,H.prototype={constructor:H,init:function(e,t,n,o,r,i){this.elem=e,this.prop=n,this.easing=r||ve.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=i||(ve.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=ve.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ve.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){ve.fx.step[e.prop]?ve.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[ve.cssProps[e.prop]]&&!ve.cssHooks[e.prop]?e.elem[e.prop]=e.now:ve.style(e.elem,e.prop,e.now+e.unit)}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ve.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ve.fx=H.prototype.init,ve.fx.step={};var gt,vt,yt=/^(?:toggle|show|hide)$/,xt=/queueHooks$/;ve.Animation=ve.extend(Y,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return v(n.elem,e,Ue.exec(t),n),n}]},tweener:function(e,t){ve.isFunction(e)?(t=e,e=["*"]):e=e.match(qe);for(var n,o=0,r=e.length;o<r;o++)n=e[o],Y.tweeners[n]=Y.tweeners[n]||[],Y.tweeners[n].unshift(t)},prefilters:[Q],prefilter:function(e,t){t?Y.prefilters.unshift(e):Y.prefilters.push(e)}}),ve.speed=function(e,t,n){var o=e&&"object"==typeof e?ve.extend({},e):{complete:n||!n&&t||ve.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ve.isFunction(t)&&t};return ve.fx.off||ie.hidden?o.duration=0:"number"!=typeof o.duration&&(o.duration in ve.fx.speeds?o.duration=ve.fx.speeds[o.duration]:o.duration=ve.fx.speeds._default),null!=o.queue&&o.queue!==!0||(o.queue="fx"),o.old=o.complete,o.complete=function(){ve.isFunction(o.old)&&o.old.call(this),o.queue&&ve.dequeue(this,o.queue)},o},ve.fn.extend({fadeTo:function(e,t,n,o){return this.filter(Qe).css("opacity",0).show().end().animate({opacity:t},e,n,o)},animate:function(e,t,n,o){var r=ve.isEmptyObject(e),i=ve.speed(t,n,o),a=function(){var t=Y(this,ve.extend({},e),i);(r||Me.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||i.queue===!1?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var o=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",i=ve.timers,a=Me.get(this);if(r)a[r]&&a[r].stop&&o(a[r]);else for(r in a)a[r]&&a[r].stop&&xt.test(r)&&o(a[r]);for(r=i.length;r--;)i[r].elem!==this||null!=e&&i[r].queue!==e||(i[r].anim.stop(n),t=!1,i.splice(r,1));!t&&n||ve.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=Me.get(this),o=n[e+"queue"],r=n[e+"queueHooks"],i=ve.timers,a=o?o.length:0;for(n.finish=!0,ve.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)o[t]&&o[t].finish&&o[t].finish.call(this);delete n.finish})}}),ve.each(["toggle","show","hide"],function(e,t){var n=ve.fn[t];ve.fn[t]=function(e,o,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(U(t,!0),e,o,r)}}),ve.each({slideDown:U("show"),slideUp:U("hide"),slideToggle:U("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ve.fn[e]=function(e,n,o){return this.animate(t,e,n,o)}}),ve.timers=[],ve.fx.tick=function(){var e,t=0,n=ve.timers;for(gt=ve.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||ve.fx.stop(),gt=void 0},ve.fx.timer=function(e){ve.timers.push(e),e()?ve.fx.start():ve.timers.pop()},ve.fx.interval=13,ve.fx.start=function(){vt||(vt=n.requestAnimationFrame?n.requestAnimationFrame(W):n.setInterval(ve.fx.tick,ve.fx.interval))},ve.fx.stop=function(){n.cancelAnimationFrame?n.cancelAnimationFrame(vt):n.clearInterval(vt),vt=null},ve.fx.speeds={slow:600,fast:200,_default:400},ve.fn.delay=function(e,t){return e=ve.fx?ve.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,o){var r=n.setTimeout(t,e);o.stop=function(){n.clearTimeout(r)}})},function(){var e=ie.createElement("input"),t=ie.createElement("select"),n=t.appendChild(ie.createElement("option"));e.type="checkbox",be.checkOn=""!==e.value,be.optSelected=n.selected,e=ie.createElement("input"),e.value="t",e.type="radio",be.radioValue="t"===e.value}();var Ft,wt=ve.expr.attrHandle;ve.fn.extend({attr:function(e,t){return Le(this,ve.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ve.removeAttr(this,e)})}}),ve.extend({attr:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return"undefined"==typeof e.getAttribute?ve.prop(e,t,n):(1===i&&ve.isXMLDoc(e)||(r=ve.attrHooks[t.toLowerCase()]||(ve.expr.match.bool.test(t)?Ft:void 0)),void 0!==n?null===n?void ve.removeAttr(e,t):r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(o=r.get(e,t))?o:(o=ve.find.attr(e,t),null==o?void 0:o))},attrHooks:{type:{set:function(e,t){if(!be.radioValue&&"radio"===t&&ve.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o=0,r=t&&t.match(qe);if(r&&1===e.nodeType)for(;n=r[o++];)e.removeAttribute(n)}}),Ft={set:function(e,t,n){return t===!1?ve.removeAttr(e,n):e.setAttribute(n,n),n}},ve.each(ve.expr.match.bool.source.match(/\w+/g),function(e,t){var n=wt[t]||ve.find.attr;wt[t]=function(e,t,o){var r,i,a=t.toLowerCase();return o||(i=wt[a],wt[a]=r,r=null!=n(e,t,o)?a:null,wt[a]=i),r}});var At=/^(?:input|select|textarea|button)$/i,Ct=/^(?:a|area)$/i;ve.fn.extend({prop:function(e,t){return Le(this,ve.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ve.propFix[e]||e]})}}),ve.extend({prop:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&ve.isXMLDoc(e)||(t=ve.propFix[t]||t,r=ve.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:e[t]=n:r&&"get"in r&&null!==(o=r.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=ve.find.attr(e,"tabindex");return t?parseInt(t,10):At.test(e.nodeName)||Ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),be.optSelected||(ve.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ve.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ve.propFix[this.toLowerCase()]=this}),ve.fn.extend({addClass:function(e){var t,n,o,r,i,a,s,f=0;if(ve.isFunction(e))return this.each(function(t){ve(this).addClass(e.call(this,t,X(this)))});if("string"==typeof e&&e)for(t=e.match(qe)||[];n=this[f++];)if(r=X(n),o=1===n.nodeType&&" "+V(r)+" "){for(a=0;i=t[a++];)o.indexOf(" "+i+" ")<0&&(o+=i+" ");s=V(o),r!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,o,r,i,a,s,f=0;if(ve.isFunction(e))return this.each(function(t){ve(this).removeClass(e.call(this,t,X(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(qe)||[];n=this[f++];)if(r=X(n),o=1===n.nodeType&&" "+V(r)+" "){for(a=0;i=t[a++];)for(;o.indexOf(" "+i+" ")>-1;)o=o.replace(" "+i+" "," ");s=V(o),r!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ve.isFunction(e)?this.each(function(n){ve(this).toggleClass(e.call(this,n,X(this),t),t)}):this.each(function(){var t,o,r,i;if("string"===n)for(o=0,r=ve(this),i=e.match(qe)||[];t=i[o++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||(t=X(this),t&&Me.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Me.get(this,"__className__")||""))})},hasClass:function(e){var t,n,o=0;for(t=" "+e+" ";n=this[o++];)if(1===n.nodeType&&(" "+V(X(n))+" ").indexOf(t)>-1)return!0;return!1}});var Tt=/\r/g;ve.fn.extend({val:function(e){var t,n,o,r=this[0];{if(arguments.length)return o=ve.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(r=o?e.call(this,n,ve(this).val()):e,null==r?r="":"number"==typeof r?r+="":ve.isArray(r)&&(r=ve.map(r,function(e){return null==e?"":e+""})),t=ve.valHooks[this.type]||ve.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))});if(r)return t=ve.valHooks[r.type]||ve.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(Tt,""):null==n?"":n)}}}),ve.extend({valHooks:{option:{get:function(e){var t=ve.find.attr(e,"value");return null!=t?t:V(ve.text(e))}},select:{get:function(e){var t,n,o,r=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],f=a?i+1:r.length;for(o=i<0?f:a?i:0;o<f;o++)if(n=r[o],(n.selected||o===i)&&!n.disabled&&(!n.parentNode.disabled||!ve.nodeName(n.parentNode,"optgroup"))){if(t=ve(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,o,r=e.options,i=ve.makeArray(t),a=r.length;a--;)o=r[a],(o.selected=ve.inArray(ve.valHooks.option.get(o),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),ve.each(["radio","checkbox"],function(){ve.valHooks[this]={set:function(e,t){if(ve.isArray(t))return e.checked=ve.inArray(ve(e).val(),t)>-1}},be.checkOn||(ve.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var kt=/^(?:focusinfocus|focusoutblur)$/;ve.extend(ve.event,{trigger:function(e,t,o,r){var i,a,s,f,c,l,u,d=[o||ie],p=pe.call(e,"type")?e.type:e,h=pe.call(e,"namespace")?e.namespace.split("."):[];if(a=s=o=o||ie,3!==o.nodeType&&8!==o.nodeType&&!kt.test(p+ve.event.triggered)&&(p.indexOf(".")>-1&&(h=p.split("."),p=h.shift(),h.sort()),c=p.indexOf(":")<0&&"on"+p,e=e[ve.expando]?e:new ve.Event(p,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=o),t=null==t?[e]:ve.makeArray(t,[e]),u=ve.event.special[p]||{},r||!u.trigger||u.trigger.apply(o,t)!==!1)){if(!r&&!u.noBubble&&!ve.isWindow(o)){for(f=u.delegateType||p,kt.test(f+p)||(a=a.parentNode);a;a=a.parentNode)d.push(a),s=a;s===(o.ownerDocument||ie)&&d.push(s.defaultView||s.parentWindow||n)}for(i=0;(a=d[i++])&&!e.isPropagationStopped();)e.type=i>1?f:u.bindType||p,l=(Me.get(a,"events")||{})[e.type]&&Me.get(a,"handle"),l&&l.apply(a,t),l=c&&a[c],l&&l.apply&&Pe(a)&&(e.result=l.apply(a,t),e.result===!1&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||u._default&&u._default.apply(d.pop(),t)!==!1||!Pe(o)||c&&ve.isFunction(o[p])&&!ve.isWindow(o)&&(s=o[c],s&&(o[c]=null),ve.event.triggered=p,o[p](),ve.event.triggered=void 0,s&&(o[c]=s)),e.result}},simulate:function(e,t,n){var o=ve.extend(new ve.Event,n,{type:e,isSimulated:!0});ve.event.trigger(o,null,t)}}),ve.fn.extend({trigger:function(e,t){return this.each(function(){ve.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ve.event.trigger(e,t,n,!0)}}),ve.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){ve.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ve.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),be.focusin="onfocusin"in n,be.focusin||ve.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ve.event.simulate(t,e.target,ve.event.fix(e))};ve.event.special[t]={setup:function(){var o=this.ownerDocument||this,r=Me.access(o,t);r||o.addEventListener(e,n,!0),Me.access(o,t,(r||0)+1)},teardown:function(){var o=this.ownerDocument||this,r=Me.access(o,t)-1;r?Me.access(o,t,r):(o.removeEventListener(e,n,!0),Me.remove(o,t))}}});var Et=n.location,St=ve.now(),Dt=/\?/;ve.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||ve.error("Invalid XML: "+e),t};var Nt=/\[\]$/,$t=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;ve.param=function(e,t){var n,o=[],r=function(e,t){var n=ve.isFunction(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(ve.isArray(e)||e.jquery&&!ve.isPlainObject(e))ve.each(e,function(){r(this.name,this.value)});else for(n in e)Z(n,e[n],t,r);return o.join("&")},ve.fn.extend({serialize:function(){return ve.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ve.prop(this,"elements");return e?ve.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ve(this).is(":disabled")&&It.test(this.nodeName)&&!jt.test(e)&&(this.checked||!Ve.test(e))}).map(function(e,t){var n=ve(this).val();return null==n?null:ve.isArray(n)?ve.map(n,function(e){return{name:t.name,value:e.replace($t,"\r\n")}}):{name:t.name,value:n.replace($t,"\r\n")}}).get()}});var qt=/%20/g,Bt=/#.*$/,Ot=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Mt=/^(?:GET|HEAD)$/,Rt=/^\/\//,Ht={},Wt={},zt="*/".concat("*"),Ut=ie.createElement("a");Ut.href=Et.href,ve.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:Pt.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ve.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ee(ee(e,ve.ajaxSettings),t):ee(ve.ajaxSettings,e)},ajaxPrefilter:J(Ht),ajaxTransport:J(Wt),ajax:function(e,t){function o(e,t,o,s){var c,d,p,x,F,w=t;l||(l=!0,f&&n.clearTimeout(f),r=void 0,a=s||"",A.readyState=e>0?4:0,c=e>=200&&e<300||304===e,o&&(x=te(h,A,o)),x=ne(h,x,A,c),c?(h.ifModified&&(F=A.getResponseHeader("Last-Modified"),F&&(ve.lastModified[i]=F),F=A.getResponseHeader("etag"),F&&(ve.etag[i]=F)),204===e||"HEAD"===h.type?w="nocontent":304===e?w="notmodified":(w=x.state,d=x.data,p=x.error,c=!p)):(p=w,!e&&w||(w="error",e<0&&(e=0))),A.status=e,A.statusText=(t||w)+"",c?g.resolveWith(m,[d,w,A]):g.rejectWith(m,[A,w,p]),A.statusCode(y),y=void 0,u&&b.trigger(c?"ajaxSuccess":"ajaxError",[A,h,c?d:p]),v.fireWith(m,[A,w]),u&&(b.trigger("ajaxComplete",[A,h]),--ve.active||ve.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,a,s,f,c,l,u,d,p,h=ve.ajaxSetup({},t),m=h.context||h,b=h.context&&(m.nodeType||m.jquery)?ve(m):ve.event,g=ve.Deferred(),v=ve.Callbacks("once memory"),y=h.statusCode||{},x={},F={},w="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(l){if(!s)for(s={};t=Lt.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return null==l&&(e=F[e.toLowerCase()]=F[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)A.always(e[A.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||w;return r&&r.abort(t),o(0,t),this}};if(g.promise(A),h.url=((e||h.url||Et.href)+"").replace(Rt,Et.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(qe)||[""],null==h.crossDomain){c=ie.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Ut.protocol+"//"+Ut.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ve.param(h.data,h.traditional)),K(Ht,h,t,A),l)return A;u=ve.event&&h.global,u&&0===ve.active++&&ve.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Mt.test(h.type),i=h.url.replace(Bt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(qt,"+")):(p=h.url.slice(i.length),h.data&&(i+=(Dt.test(i)?"&":"?")+h.data,delete h.data),h.cache===!1&&(i=i.replace(Ot,"$1"),p=(Dt.test(i)?"&":"?")+"_="+St++ +p),h.url=i+p),h.ifModified&&(ve.lastModified[i]&&A.setRequestHeader("If-Modified-Since",ve.lastModified[i]),ve.etag[i]&&A.setRequestHeader("If-None-Match",ve.etag[i])),(h.data&&h.hasContent&&h.contentType!==!1||t.contentType)&&A.setRequestHeader("Content-Type",h.contentType),A.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+zt+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)A.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(h.beforeSend.call(m,A,h)===!1||l))return A.abort();if(w="abort",v.add(h.complete),A.done(h.success),A.fail(h.error),r=K(Wt,h,t,A)){if(A.readyState=1,u&&b.trigger("ajaxSend",[A,h]),l)return A;h.async&&h.timeout>0&&(f=n.setTimeout(function(){A.abort("timeout")},h.timeout));try{l=!1,r.send(x,o)}catch(e){if(l)throw e;o(-1,e)}}else o(-1,"No Transport");return A},getJSON:function(e,t,n){return ve.get(e,t,n,"json")},getScript:function(e,t){return ve.get(e,void 0,t,"script")}}),ve.each(["get","post"],function(e,t){ve[t]=function(e,n,o,r){return ve.isFunction(n)&&(r=r||o,o=n,n=void 0),ve.ajax(ve.extend({url:e,type:t,dataType:r,data:n,success:o},ve.isPlainObject(e)&&e))}}),ve._evalUrl=function(e){return ve.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},ve.fn.extend({wrapAll:function(e){var t;return this[0]&&(ve.isFunction(e)&&(e=e.call(this[0])),t=ve(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ve.isFunction(e)?this.each(function(t){ve(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ve(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ve.isFunction(e);return this.each(function(n){ve(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){
ve(this).replaceWith(this.childNodes)}),this}}),ve.expr.pseudos.hidden=function(e){return!ve.expr.pseudos.visible(e)},ve.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ve.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},Qt=ve.ajaxSettings.xhr();be.cors=!!Qt&&"withCredentials"in Qt,be.ajax=Qt=!!Qt,ve.ajaxTransport(function(e){var t,o;if(be.cors||Qt&&!e.crossDomain)return{send:function(r,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(a in r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=o=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(_t[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),o=s.onerror=t("error"),void 0!==s.onabort?s.onabort=o:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&o()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),ve.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ve.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ve.globalEval(e),e}}}),ve.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ve.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(o,r){t=ve("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),ie.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;ve.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||ve.expando+"_"+St++;return this[e]=!0,e}}),ve.ajaxPrefilter("json jsonp",function(e,t,o){var r,i,a,s=e.jsonp!==!1&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=ve.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Yt,"$1"+r):e.jsonp!==!1&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||ve.error(r+" was not called"),a[0]},e.dataTypes[0]="json",i=n[r],n[r]=function(){a=arguments},o.always(function(){void 0===i?ve(n).removeProp(r):n[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),a&&ve.isFunction(i)&&i(a[0]),a=i=void 0}),"script"}),be.createHTMLDocument=function(){var e=ie.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),ve.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var o,r,i;return t||(be.createHTMLDocument?(t=ie.implementation.createHTMLDocument(""),o=t.createElement("base"),o.href=ie.location.href,t.head.appendChild(o)):t=ie),r=Ee.exec(e),i=!n&&[],r?[t.createElement(r[1])]:(r=A([e],t,i),i&&i.length&&ve(i).remove(),ve.merge([],r.childNodes))},ve.fn.load=function(e,t,n){var o,r,i,a=this,s=e.indexOf(" ");return s>-1&&(o=V(e.slice(s)),e=e.slice(0,s)),ve.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&ve.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(o?ve("<div>").append(ve.parseHTML(e)).find(o):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},ve.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ve.fn[t]=function(e){return this.on(t,e)}}),ve.expr.pseudos.animated=function(e){return ve.grep(ve.timers,function(t){return e===t.elem}).length},ve.offset={setOffset:function(e,t,n){var o,r,i,a,s,f,c,l=ve.css(e,"position"),u=ve(e),d={};"static"===l&&(e.style.position="relative"),s=u.offset(),i=ve.css(e,"top"),f=ve.css(e,"left"),c=("absolute"===l||"fixed"===l)&&(i+f).indexOf("auto")>-1,c?(o=u.position(),a=o.top,r=o.left):(a=parseFloat(i)||0,r=parseFloat(f)||0),ve.isFunction(t)&&(t=t.call(e,n,ve.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},ve.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ve.offset.setOffset(this,e,t)});var t,n,o,r,i=this[0];if(i)return i.getClientRects().length?(o=i.getBoundingClientRect(),o.width||o.height?(r=i.ownerDocument,n=oe(r),t=r.documentElement,{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}):o):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],o={top:0,left:0};return"fixed"===ve.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ve.nodeName(e[0],"html")||(o=e.offset()),o={top:o.top+ve.css(e[0],"borderTopWidth",!0),left:o.left+ve.css(e[0],"borderLeftWidth",!0)}),{top:t.top-o.top-ve.css(n,"marginTop",!0),left:t.left-o.left-ve.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===ve.css(e,"position");)e=e.offsetParent;return e||et})}}),ve.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;ve.fn[e]=function(o){return Le(this,function(e,o,r){var i=oe(e);return void 0===r?i?i[t]:e[o]:void(i?i.scrollTo(n?i.pageXOffset:r,n?r:i.pageYOffset):e[o]=r)},e,o,arguments.length)}}),ve.each(["top","left"],function(e,t){ve.cssHooks[t]=O(be.pixelPosition,function(e,n){if(n)return n=B(e,t),lt.test(n)?ve(e).position()[t]+"px":n})}),ve.each({Height:"height",Width:"width"},function(e,t){ve.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,o){ve.fn[o]=function(r,i){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(r===!0||i===!0?"margin":"border");return Le(this,function(t,n,r){var i;return ve.isWindow(t)?0===o.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?ve.css(t,n,s):ve.style(t,n,r,s)},t,a?r:void 0,a)}})}),ve.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),ve.parseJSON=JSON.parse,o=[],r=function(){return ve}.apply(t,o),!(void 0!==r&&(e.exports=r));var Vt=n.jQuery,Xt=n.$;return ve.noConflict=function(e){return n.$===ve&&(n.$=Xt),e&&n.jQuery===ve&&(n.jQuery=Vt),ve},i||(n.jQuery=n.$=ve),ve})},function(e,t){/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the MIT license
*/
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,o=this;e(this).one("bsTransitionEnd",function(){n=!0});var r=function(){n||e(o).trigger(e.support.transition.end)};return setTimeout(r,t),this},e(function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var n=e(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new o(this)),"string"==typeof t&&r[t].call(n)})}var n='[data-dismiss="alert"]',o=function(t){e(t).on("click",n,this.close)};o.VERSION="3.3.7",o.TRANSITION_DURATION=150,o.prototype.close=function(t){function n(){a.detach().trigger("closed.bs.alert").remove()}var r=e(this),i=r.attr("data-target");i||(i=r.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,""));var a=e("#"===i?[]:i);t&&t.preventDefault(),a.length||(a=r.closest(".alert")),a.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(a.removeClass("in"),e.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",n).emulateTransitionEnd(o.TRANSITION_DURATION):n())};var r=e.fn.alert;e.fn.alert=t,e.fn.alert.Constructor=o,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",n,o.prototype.close)}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var o=e(this),r=o.data("bs.button"),i="object"==typeof t&&t;r||o.data("bs.button",r=new n(this,i)),"toggle"==t?r.toggle():t&&r.setState(t)})}var n=function(t,o){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,o),this.isLoading=!1};n.VERSION="3.3.7",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var n="disabled",o=this.$element,r=o.is("input")?"val":"html",i=o.data();t+="Text",null==i.resetText&&o.data("resetText",o[r]()),setTimeout(e.proxy(function(){o[r](null==i[t]?this.options[t]:i[t]),"loadingText"==t?(this.isLoading=!0,o.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,o.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},n.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var o=e.fn.button;e.fn.button=t,e.fn.button.Constructor=n,e.fn.button.noConflict=function(){return e.fn.button=o,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var o=e(n.target).closest(".btn");t.call(o,"toggle"),e(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),o.is("input,button")?o.trigger("focus"):o.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var o=e(this),r=o.data("bs.carousel"),i=e.extend({},n.DEFAULTS,o.data(),"object"==typeof t&&t),a="string"==typeof t?t:i.slide;r||o.data("bs.carousel",r=new n(this,i)),"number"==typeof t?r.to(t):a?r[a]():i.interval&&r.pause().cycle()})}var n=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},n.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},n.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),o="prev"==e&&0===n||"next"==e&&n==this.$items.length-1;if(o&&!this.options.wrap)return t;var r="prev"==e?-1:1,i=(n+r)%this.$items.length;return this.$items.eq(i)},n.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},n.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(t,o){var r=this.$element.find(".item.active"),i=o||this.getItemForDirection(t,r),a=this.interval,s="next"==t?"left":"right",f=this;if(i.hasClass("active"))return this.sliding=!1;var c=i[0],l=e.Event("slide.bs.carousel",{relatedTarget:c,direction:s});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=e(this.$indicators.children()[this.getItemIndex(i)]);u&&u.addClass("active")}var d=e.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(i.addClass(t),i[0].offsetWidth,r.addClass(s),i.addClass(s),r.one("bsTransitionEnd",function(){i.removeClass([t,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),f.sliding=!1,setTimeout(function(){f.$element.trigger(d)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var o=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=n,e.fn.carousel.noConflict=function(){return e.fn.carousel=o,this};var r=function(n){var o,r=e(this),i=e(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""));if(i.hasClass("carousel")){var a=e.extend({},i.data(),r.data()),s=r.attr("data-slide-to");s&&(a.interval=!1),t.call(i,a),s&&i.data("bs.carousel").to(s),n.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var n=e(this);t.call(n,n.data())})})}(jQuery),+function(e){"use strict";function t(t){var n,o=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(o)}function n(t){return this.each(function(){var n=e(this),r=n.data("bs.collapse"),i=e.extend({},o.DEFAULTS,n.data(),"object"==typeof t&&t);!r&&i.toggle&&/show|hide/.test(t)&&(i.toggle=!1),r||n.data("bs.collapse",r=new o(this,i)),"string"==typeof t&&r[t]()})}var o=function(t,n){this.$element=e(t),this.options=e.extend({},o.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};o.VERSION="3.3.7",o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(t=r.data("bs.collapse"),t&&t.transitioning))){var i=e.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),t||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var f=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[a](this.$element[0][f])}}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return e.support.transition?void this.$element[n](0).one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(o.TRANSITION_DURATION):r.call(this)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(n,o){var r=e(o);this.addAriaAndCollapsedClass(t(r),r)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=o,e.fn.collapse.noConflict=function(){return e.fn.collapse=r,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(o){var r=e(this);r.attr("data-target")||o.preventDefault();var i=t(r),a=i.data("bs.collapse"),s=a?"toggle":r.data();n.call(i,s)})}(jQuery),+function(e){"use strict";function t(t){var n=t.attr("data-target");n||(n=t.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var o=n&&e(n);return o&&o.length?o:t.parent()}function n(n){n&&3===n.which||(e(r).remove(),e(i).each(function(){var o=e(this),r=t(o),i={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(r[0],n.target)||(r.trigger(n=e.Event("hide.bs.dropdown",i)),n.isDefaultPrevented()||(o.attr("aria-expanded","false"),r.removeClass("open").trigger(e.Event("hidden.bs.dropdown",i)))))}))}function o(t){return this.each(function(){var n=e(this),o=n.data("bs.dropdown");o||n.data("bs.dropdown",o=new a(this)),"string"==typeof t&&o[t].call(n)})}var r=".dropdown-backdrop",i='[data-toggle="dropdown"]',a=function(t){e(t).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.7",a.prototype.toggle=function(o){var r=e(this);if(!r.is(".disabled, :disabled")){var i=t(r),a=i.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",n);var s={relatedTarget:this};if(i.trigger(o=e.Event("show.bs.dropdown",s)),o.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},a.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var o=e(this);if(n.preventDefault(),n.stopPropagation(),!o.is(".disabled, :disabled")){var r=t(o),a=r.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&r.find(i).trigger("focus"),o.trigger("click");var s=" li:not(.disabled):visible a",f=r.find(".dropdown-menu"+s);if(f.length){var c=f.index(n.target);38==n.which&&c>0&&c--,40==n.which&&c<f.length-1&&c++,~c||(c=0),f.eq(c).trigger("focus")}}}};var s=e.fn.dropdown;e.fn.dropdown=o,e.fn.dropdown.Constructor=a,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=s,this},e(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",i,a.prototype.toggle).on("keydown.bs.dropdown.data-api",i,a.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",a.prototype.keydown)}(jQuery),+function(e){"use strict";function t(t,o){return this.each(function(){var r=e(this),i=r.data("bs.modal"),a=e.extend({},n.DEFAULTS,r.data(),"object"==typeof t&&t);i||r.data("bs.modal",i=new n(this,a)),"string"==typeof t?i[t](o):a.show&&i.show(o)})}var n=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},n.prototype.show=function(t){var o=this,r=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=e.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),r&&o.$element[0].offsetWidth,o.$element.addClass("in"),o.enforceFocus();var i=e.Event("shown.bs.modal",{relatedTarget:t});r?o.$dialog.one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(i)}).emulateTransitionEnd(n.TRANSITION_DURATION):o.$element.trigger("focus").trigger(i)}))},n.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(t){var o=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=e.support.transition&&r;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){o.removeBackdrop(),t&&t()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):a()}else t&&t()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var o=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=n,e.fn.modal.noConflict=function(){return e.fn.modal=o,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var o=e(this),r=o.attr("href"),i=e(o.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),a=i.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},i.data(),o.data());o.is("a")&&n.preventDefault(),i.one("show.bs.modal",function(e){e.isDefaultPrevented()||i.one("hidden.bs.modal",function(){o.is(":visible")&&o.trigger("focus")})}),t.call(i,a,this)})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var o=e(this),r=o.data("bs.tooltip"),i="object"==typeof t&&t;!r&&/destroy|hide/.test(t)||(r||o.data("bs.tooltip",r=new n(this,i)),"string"==typeof t&&r[t]())})}var n=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(t,n,o){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),i=r.length;i--;){var a=r[i];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",f="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(f+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(t){return t=e.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},n.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,o){n[e]!=o&&(t[e]=o)}),t},n.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},n.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue())return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var o=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!o)return;var r=this,i=this.tip(),a=this.getUID(this.type);this.setContent(),i.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&i.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,f=/\s?auto?\s?/i,c=f.test(s);c&&(s=s.replace(f,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),u=i[0].offsetWidth,d=i[0].offsetHeight;if(c){var p=s,h=this.getPosition(this.$viewport);s="bottom"==s&&l.bottom+d>h.bottom?"top":"top"==s&&l.top-d<h.top?"bottom":"right"==s&&l.right+u>h.width?"left":"left"==s&&l.left-u<h.left?"right":s,i.removeClass(p).addClass(s)}var m=this.getCalculatedOffset(s,l,u,d);this.applyPlacement(m,s);var b=function(){var e=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==e&&r.leave(r)};e.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",b).emulateTransitionEnd(n.TRANSITION_DURATION):b()}},n.prototype.applyPlacement=function(t,n){var o=this.tip(),r=o[0].offsetWidth,i=o[0].offsetHeight,a=parseInt(o.css("margin-top"),10),s=parseInt(o.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),t.top+=a,t.left+=s,e.offset.setOffset(o[0],e.extend({using:function(e){o.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),o.addClass("in");var f=o[0].offsetWidth,c=o[0].offsetHeight;"top"==n&&c!=i&&(t.top=t.top+i-c);var l=this.getViewportAdjustedDelta(n,t,f,c);l.left?t.left+=l.left:t.top+=l.top;var u=/top|bottom/.test(n),d=u?2*l.left-r+f:2*l.top-i+c,p=u?"offsetWidth":"offsetHeight";o.offset(t),this.replaceArrow(d,o[0][p],u)},n.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},n.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},n.prototype.hide=function(t){function o(){"in"!=r.hoverState&&i.detach(),r.$element&&r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),t&&t()}var r=this,i=e(this.$tip),a=e.Event("hide.bs."+this.type);if(this.$element.trigger(a),!a.isDefaultPrevented())return i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),this.hoverState=null,this},n.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(t){t=t||this.$element;var n=t[0],o="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=e.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var i=window.SVGElement&&n instanceof window.SVGElement,a=o?{top:0,left:0}:i?null:t.offset(),s={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},f=o?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},r,s,f,a)},n.prototype.getCalculatedOffset=function(e,t,n,o){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-o,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-o/2,left:t.left-n}:{top:t.top+t.height/2-o/2,left:t.left+t.width}},n.prototype.getViewportAdjustedDelta=function(e,t,n,o){var r={top:0,left:0};if(!this.$viewport)return r;var i=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-i-a.scroll,f=t.top+i-a.scroll+o;s<a.top?r.top=a.top-s:f>a.top+a.height&&(r.top=a.top+a.height-f)}else{var c=t.left-i,l=t.left+i+n;c<a.left?r.left=a.left-c:l>a.right&&(r.left=a.left+a.width-l)}return r},n.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},n.prototype.getUID=function(e){do e+=~~(1e6*Math.random());while(document.getElementById(e));return e},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(t){var n=this;t&&(n=e(t.currentTarget).data("bs."+this.type),n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})};var o=e.fn.tooltip;e.fn.tooltip=t,e.fn.tooltip.Constructor=n,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=o,this}}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var o=e(this),r=o.data("bs.popover"),i="object"==typeof t&&t;!r&&/destroy|hide/.test(t)||(r||o.data("bs.popover",r=new n(this,i)),"string"==typeof t&&r[t]())})}var n=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.7",n.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var o=e.fn.popover;e.fn.popover=t,e.fn.popover.Constructor=n,e.fn.popover.noConflict=function(){return e.fn.popover=o,this}}(jQuery),+function(e){"use strict";function t(n,o){this.$body=e(document.body),this.$scrollElement=e(e(n).is(document.body)?window:n),this.options=e.extend({},t.DEFAULTS,o),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var o=e(this),r=o.data("bs.scrollspy"),i="object"==typeof n&&n;r||o.data("bs.scrollspy",r=new t(this,i)),"string"==typeof n&&r[n]()})}t.VERSION="3.3.7",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",o=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",o=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),r=t.data("target")||t.attr("href"),i=/^#./.test(r)&&e(r);return i&&i.length&&i.is(":visible")&&[[i[n]().top+o,r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),o=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,i=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=o)return a!=(e=i[i.length-1])&&this.activate(e);if(a&&t<r[0])return this.activeTarget=null,this.clear();for(e=r.length;e--;)a!=i[e]&&t>=r[e]&&(void 0===r[e+1]||t<r[e+1])&&this.activate(i[e])},t.prototype.activate=function(t){
this.activeTarget=t,this.clear();var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',o=e(n).parents("li").addClass("active");o.parent(".dropdown-menu").length&&(o=o.closest("li.dropdown").addClass("active")),o.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var o=e.fn.scrollspy;e.fn.scrollspy=n,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=o,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var o=e(this),r=o.data("bs.tab");r||o.data("bs.tab",r=new n(this)),"string"==typeof t&&r[t]()})}var n=function(t){this.element=e(t)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),o=t.data("target");if(o||(o=t.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=n.find(".active:last a"),i=e.Event("hide.bs.tab",{relatedTarget:t[0]}),a=e.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(i),t.trigger(a),!a.isDefaultPrevented()&&!i.isDefaultPrevented()){var s=e(o);this.activate(t.closest("li"),n),this.activate(s,s.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},n.prototype.activate=function(t,o,r){function i(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var a=o.find("> .active"),s=r&&e.support.transition&&(a.length&&a.hasClass("fade")||!!o.find("> .fade").length);a.length&&s?a.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i(),a.removeClass("in")};var o=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=n,e.fn.tab.noConflict=function(){return e.fn.tab=o,this};var r=function(n){n.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var o=e(this),r=o.data("bs.affix"),i="object"==typeof t&&t;r||o.data("bs.affix",r=new n(this,i)),"string"==typeof t&&r[t]()})}var n=function(t,o){this.options=e.extend({},n.DEFAULTS,o),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.7",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(e,t,n,o){var r=this.$target.scrollTop(),i=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=i.top)&&"bottom":!(r+a<=e-o)&&"bottom";var s=null==this.affixed,f=s?r:i.top,c=s?a:t;return null!=n&&r<=n?"top":null!=o&&f+c>=e-o&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},n.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),o=this.options.offset,r=o.top,i=o.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof o&&(i=r=o),"function"==typeof r&&(r=o.top(this.$element)),"function"==typeof i&&(i=o.bottom(this.$element));var s=this.getState(a,t,r,i);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var f="affix"+(s?"-"+s:""),c=e.Event(f+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(f).trigger(f.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-t-i})}};var o=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=n,e.fn.affix.noConflict=function(){return e.fn.affix=o,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var n=e(this),o=n.data();o.offset=o.offset||{},null!=o.offsetBottom&&(o.offset.bottom=o.offsetBottom),null!=o.offsetTop&&(o.offset.top=o.offsetTop),t.call(n,o)})})}(jQuery)},function(e,t,n){var o=n(5);"string"==typeof o&&(o=[[e.id,o,""]]);n(13)(o,{});o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,"/*!\n * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome\n * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */@font-face{font-family:FontAwesome;src:url("+n(7)+");src:url("+n(8)+'?#iefix&v=4.7.0) format("embedded-opentype"),url('+n(9)+') format("woff2"),url('+n(10)+') format("woff"),url('+n(11)+') format("truetype"),url('+n(12)+'#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scaleY(-1);transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\\F000"}.fa-music:before{content:"\\F001"}.fa-search:before{content:"\\F002"}.fa-envelope-o:before{content:"\\F003"}.fa-heart:before{content:"\\F004"}.fa-star:before{content:"\\F005"}.fa-star-o:before{content:"\\F006"}.fa-user:before{content:"\\F007"}.fa-film:before{content:"\\F008"}.fa-th-large:before{content:"\\F009"}.fa-th:before{content:"\\F00A"}.fa-th-list:before{content:"\\F00B"}.fa-check:before{content:"\\F00C"}.fa-close:before,.fa-remove:before,.fa-times:before{content:"\\F00D"}.fa-search-plus:before{content:"\\F00E"}.fa-search-minus:before{content:"\\F010"}.fa-power-off:before{content:"\\F011"}.fa-signal:before{content:"\\F012"}.fa-cog:before,.fa-gear:before{content:"\\F013"}.fa-trash-o:before{content:"\\F014"}.fa-home:before{content:"\\F015"}.fa-file-o:before{content:"\\F016"}.fa-clock-o:before{content:"\\F017"}.fa-road:before{content:"\\F018"}.fa-download:before{content:"\\F019"}.fa-arrow-circle-o-down:before{content:"\\F01A"}.fa-arrow-circle-o-up:before{content:"\\F01B"}.fa-inbox:before{content:"\\F01C"}.fa-play-circle-o:before{content:"\\F01D"}.fa-repeat:before,.fa-rotate-right:before{content:"\\F01E"}.fa-refresh:before{content:"\\F021"}.fa-list-alt:before{content:"\\F022"}.fa-lock:before{content:"\\F023"}.fa-flag:before{content:"\\F024"}.fa-headphones:before{content:"\\F025"}.fa-volume-off:before{content:"\\F026"}.fa-volume-down:before{content:"\\F027"}.fa-volume-up:before{content:"\\F028"}.fa-qrcode:before{content:"\\F029"}.fa-barcode:before{content:"\\F02A"}.fa-tag:before{content:"\\F02B"}.fa-tags:before{content:"\\F02C"}.fa-book:before{content:"\\F02D"}.fa-bookmark:before{content:"\\F02E"}.fa-print:before{content:"\\F02F"}.fa-camera:before{content:"\\F030"}.fa-font:before{content:"\\F031"}.fa-bold:before{content:"\\F032"}.fa-italic:before{content:"\\F033"}.fa-text-height:before{content:"\\F034"}.fa-text-width:before{content:"\\F035"}.fa-align-left:before{content:"\\F036"}.fa-align-center:before{content:"\\F037"}.fa-align-right:before{content:"\\F038"}.fa-align-justify:before{content:"\\F039"}.fa-list:before{content:"\\F03A"}.fa-dedent:before,.fa-outdent:before{content:"\\F03B"}.fa-indent:before{content:"\\F03C"}.fa-video-camera:before{content:"\\F03D"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:"\\F03E"}.fa-pencil:before{content:"\\F040"}.fa-map-marker:before{content:"\\F041"}.fa-adjust:before{content:"\\F042"}.fa-tint:before{content:"\\F043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\\F044"}.fa-share-square-o:before{content:"\\F045"}.fa-check-square-o:before{content:"\\F046"}.fa-arrows:before{content:"\\F047"}.fa-step-backward:before{content:"\\F048"}.fa-fast-backward:before{content:"\\F049"}.fa-backward:before{content:"\\F04A"}.fa-play:before{content:"\\F04B"}.fa-pause:before{content:"\\F04C"}.fa-stop:before{content:"\\F04D"}.fa-forward:before{content:"\\F04E"}.fa-fast-forward:before{content:"\\F050"}.fa-step-forward:before{content:"\\F051"}.fa-eject:before{content:"\\F052"}.fa-chevron-left:before{content:"\\F053"}.fa-chevron-right:before{content:"\\F054"}.fa-plus-circle:before{content:"\\F055"}.fa-minus-circle:before{content:"\\F056"}.fa-times-circle:before{content:"\\F057"}.fa-check-circle:before{content:"\\F058"}.fa-question-circle:before{content:"\\F059"}.fa-info-circle:before{content:"\\F05A"}.fa-crosshairs:before{content:"\\F05B"}.fa-times-circle-o:before{content:"\\F05C"}.fa-check-circle-o:before{content:"\\F05D"}.fa-ban:before{content:"\\F05E"}.fa-arrow-left:before{content:"\\F060"}.fa-arrow-right:before{content:"\\F061"}.fa-arrow-up:before{content:"\\F062"}.fa-arrow-down:before{content:"\\F063"}.fa-mail-forward:before,.fa-share:before{content:"\\F064"}.fa-expand:before{content:"\\F065"}.fa-compress:before{content:"\\F066"}.fa-plus:before{content:"\\F067"}.fa-minus:before{content:"\\F068"}.fa-asterisk:before{content:"\\F069"}.fa-exclamation-circle:before{content:"\\F06A"}.fa-gift:before{content:"\\F06B"}.fa-leaf:before{content:"\\F06C"}.fa-fire:before{content:"\\F06D"}.fa-eye:before{content:"\\F06E"}.fa-eye-slash:before{content:"\\F070"}.fa-exclamation-triangle:before,.fa-warning:before{content:"\\F071"}.fa-plane:before{content:"\\F072"}.fa-calendar:before{content:"\\F073"}.fa-random:before{content:"\\F074"}.fa-comment:before{content:"\\F075"}.fa-magnet:before{content:"\\F076"}.fa-chevron-up:before{content:"\\F077"}.fa-chevron-down:before{content:"\\F078"}.fa-retweet:before{content:"\\F079"}.fa-shopping-cart:before{content:"\\F07A"}.fa-folder:before{content:"\\F07B"}.fa-folder-open:before{content:"\\F07C"}.fa-arrows-v:before{content:"\\F07D"}.fa-arrows-h:before{content:"\\F07E"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\\F080"}.fa-twitter-square:before{content:"\\F081"}.fa-facebook-square:before{content:"\\F082"}.fa-camera-retro:before{content:"\\F083"}.fa-key:before{content:"\\F084"}.fa-cogs:before,.fa-gears:before{content:"\\F085"}.fa-comments:before{content:"\\F086"}.fa-thumbs-o-up:before{content:"\\F087"}.fa-thumbs-o-down:before{content:"\\F088"}.fa-star-half:before{content:"\\F089"}.fa-heart-o:before{content:"\\F08A"}.fa-sign-out:before{content:"\\F08B"}.fa-linkedin-square:before{content:"\\F08C"}.fa-thumb-tack:before{content:"\\F08D"}.fa-external-link:before{content:"\\F08E"}.fa-sign-in:before{content:"\\F090"}.fa-trophy:before{content:"\\F091"}.fa-github-square:before{content:"\\F092"}.fa-upload:before{content:"\\F093"}.fa-lemon-o:before{content:"\\F094"}.fa-phone:before{content:"\\F095"}.fa-square-o:before{content:"\\F096"}.fa-bookmark-o:before{content:"\\F097"}.fa-phone-square:before{content:"\\F098"}.fa-twitter:before{content:"\\F099"}.fa-facebook-f:before,.fa-facebook:before{content:"\\F09A"}.fa-github:before{content:"\\F09B"}.fa-unlock:before{content:"\\F09C"}.fa-credit-card:before{content:"\\F09D"}.fa-feed:before,.fa-rss:before{content:"\\F09E"}.fa-hdd-o:before{content:"\\F0A0"}.fa-bullhorn:before{content:"\\F0A1"}.fa-bell:before{content:"\\F0F3"}.fa-certificate:before{content:"\\F0A3"}.fa-hand-o-right:before{content:"\\F0A4"}.fa-hand-o-left:before{content:"\\F0A5"}.fa-hand-o-up:before{content:"\\F0A6"}.fa-hand-o-down:before{content:"\\F0A7"}.fa-arrow-circle-left:before{content:"\\F0A8"}.fa-arrow-circle-right:before{content:"\\F0A9"}.fa-arrow-circle-up:before{content:"\\F0AA"}.fa-arrow-circle-down:before{content:"\\F0AB"}.fa-globe:before{content:"\\F0AC"}.fa-wrench:before{content:"\\F0AD"}.fa-tasks:before{content:"\\F0AE"}.fa-filter:before{content:"\\F0B0"}.fa-briefcase:before{content:"\\F0B1"}.fa-arrows-alt:before{content:"\\F0B2"}.fa-group:before,.fa-users:before{content:"\\F0C0"}.fa-chain:before,.fa-link:before{content:"\\F0C1"}.fa-cloud:before{content:"\\F0C2"}.fa-flask:before{content:"\\F0C3"}.fa-cut:before,.fa-scissors:before{content:"\\F0C4"}.fa-copy:before,.fa-files-o:before{content:"\\F0C5"}.fa-paperclip:before{content:"\\F0C6"}.fa-floppy-o:before,.fa-save:before{content:"\\F0C7"}.fa-square:before{content:"\\F0C8"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:"\\F0C9"}.fa-list-ul:before{content:"\\F0CA"}.fa-list-ol:before{content:"\\F0CB"}.fa-strikethrough:before{content:"\\F0CC"}.fa-underline:before{content:"\\F0CD"}.fa-table:before{content:"\\F0CE"}.fa-magic:before{content:"\\F0D0"}.fa-truck:before{content:"\\F0D1"}.fa-pinterest:before{content:"\\F0D2"}.fa-pinterest-square:before{content:"\\F0D3"}.fa-google-plus-square:before{content:"\\F0D4"}.fa-google-plus:before{content:"\\F0D5"}.fa-money:before{content:"\\F0D6"}.fa-caret-down:before{content:"\\F0D7"}.fa-caret-up:before{content:"\\F0D8"}.fa-caret-left:before{content:"\\F0D9"}.fa-caret-right:before{content:"\\F0DA"}.fa-columns:before{content:"\\F0DB"}.fa-sort:before,.fa-unsorted:before{content:"\\F0DC"}.fa-sort-desc:before,.fa-sort-down:before{content:"\\F0DD"}.fa-sort-asc:before,.fa-sort-up:before{content:"\\F0DE"}.fa-envelope:before{content:"\\F0E0"}.fa-linkedin:before{content:"\\F0E1"}.fa-rotate-left:before,.fa-undo:before{content:"\\F0E2"}.fa-gavel:before,.fa-legal:before{content:"\\F0E3"}.fa-dashboard:before,.fa-tachometer:before{content:"\\F0E4"}.fa-comment-o:before{content:"\\F0E5"}.fa-comments-o:before{content:"\\F0E6"}.fa-bolt:before,.fa-flash:before{content:"\\F0E7"}.fa-sitemap:before{content:"\\F0E8"}.fa-umbrella:before{content:"\\F0E9"}.fa-clipboard:before,.fa-paste:before{content:"\\F0EA"}.fa-lightbulb-o:before{content:"\\F0EB"}.fa-exchange:before{content:"\\F0EC"}.fa-cloud-download:before{content:"\\F0ED"}.fa-cloud-upload:before{content:"\\F0EE"}.fa-user-md:before{content:"\\F0F0"}.fa-stethoscope:before{content:"\\F0F1"}.fa-suitcase:before{content:"\\F0F2"}.fa-bell-o:before{content:"\\F0A2"}.fa-coffee:before{content:"\\F0F4"}.fa-cutlery:before{content:"\\F0F5"}.fa-file-text-o:before{content:"\\F0F6"}.fa-building-o:before{content:"\\F0F7"}.fa-hospital-o:before{content:"\\F0F8"}.fa-ambulance:before{content:"\\F0F9"}.fa-medkit:before{content:"\\F0FA"}.fa-fighter-jet:before{content:"\\F0FB"}.fa-beer:before{content:"\\F0FC"}.fa-h-square:before{content:"\\F0FD"}.fa-plus-square:before{content:"\\F0FE"}.fa-angle-double-left:before{content:"\\F100"}.fa-angle-double-right:before{content:"\\F101"}.fa-angle-double-up:before{content:"\\F102"}.fa-angle-double-down:before{content:"\\F103"}.fa-angle-left:before{content:"\\F104"}.fa-angle-right:before{content:"\\F105"}.fa-angle-up:before{content:"\\F106"}.fa-angle-down:before{content:"\\F107"}.fa-desktop:before{content:"\\F108"}.fa-laptop:before{content:"\\F109"}.fa-tablet:before{content:"\\F10A"}.fa-mobile-phone:before,.fa-mobile:before{content:"\\F10B"}.fa-circle-o:before{content:"\\F10C"}.fa-quote-left:before{content:"\\F10D"}.fa-quote-right:before{content:"\\F10E"}.fa-spinner:before{content:"\\F110"}.fa-circle:before{content:"\\F111"}.fa-mail-reply:before,.fa-reply:before{content:"\\F112"}.fa-github-alt:before{content:"\\F113"}.fa-folder-o:before{content:"\\F114"}.fa-folder-open-o:before{content:"\\F115"}.fa-smile-o:before{content:"\\F118"}.fa-frown-o:before{content:"\\F119"}.fa-meh-o:before{content:"\\F11A"}.fa-gamepad:before{content:"\\F11B"}.fa-keyboard-o:before{content:"\\F11C"}.fa-flag-o:before{content:"\\F11D"}.fa-flag-checkered:before{content:"\\F11E"}.fa-terminal:before{content:"\\F120"}.fa-code:before{content:"\\F121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\\F122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\\F123"}.fa-location-arrow:before{content:"\\F124"}.fa-crop:before{content:"\\F125"}.fa-code-fork:before{content:"\\F126"}.fa-chain-broken:before,.fa-unlink:before{content:"\\F127"}.fa-question:before{content:"\\F128"}.fa-info:before{content:"\\F129"}.fa-exclamation:before{content:"\\F12A"}.fa-superscript:before{content:"\\F12B"}.fa-subscript:before{content:"\\F12C"}.fa-eraser:before{content:"\\F12D"}.fa-puzzle-piece:before{content:"\\F12E"}.fa-microphone:before{content:"\\F130"}.fa-microphone-slash:before{content:"\\F131"}.fa-shield:before{content:"\\F132"}.fa-calendar-o:before{content:"\\F133"}.fa-fire-extinguisher:before{content:"\\F134"}.fa-rocket:before{content:"\\F135"}.fa-maxcdn:before{content:"\\F136"}.fa-chevron-circle-left:before{content:"\\F137"}.fa-chevron-circle-right:before{content:"\\F138"}.fa-chevron-circle-up:before{content:"\\F139"}.fa-chevron-circle-down:before{content:"\\F13A"}.fa-html5:before{content:"\\F13B"}.fa-css3:before{content:"\\F13C"}.fa-anchor:before{content:"\\F13D"}.fa-unlock-alt:before{content:"\\F13E"}.fa-bullseye:before{content:"\\F140"}.fa-ellipsis-h:before{content:"\\F141"}.fa-ellipsis-v:before{content:"\\F142"}.fa-rss-square:before{content:"\\F143"}.fa-play-circle:before{content:"\\F144"}.fa-ticket:before{content:"\\F145"}.fa-minus-square:before{content:"\\F146"}.fa-minus-square-o:before{content:"\\F147"}.fa-level-up:before{content:"\\F148"}.fa-level-down:before{content:"\\F149"}.fa-check-square:before{content:"\\F14A"}.fa-pencil-square:before{content:"\\F14B"}.fa-external-link-square:before{content:"\\F14C"}.fa-share-square:before{content:"\\F14D"}.fa-compass:before{content:"\\F14E"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:"\\F150"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:"\\F151"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:"\\F152"}.fa-eur:before,.fa-euro:before{content:"\\F153"}.fa-gbp:before{content:"\\F154"}.fa-dollar:before,.fa-usd:before{content:"\\F155"}.fa-inr:before,.fa-rupee:before{content:"\\F156"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:"\\F157"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:"\\F158"}.fa-krw:before,.fa-won:before{content:"\\F159"}.fa-bitcoin:before,.fa-btc:before{content:"\\F15A"}.fa-file:before{content:"\\F15B"}.fa-file-text:before{content:"\\F15C"}.fa-sort-alpha-asc:before{content:"\\F15D"}.fa-sort-alpha-desc:before{content:"\\F15E"}.fa-sort-amount-asc:before{content:"\\F160"}.fa-sort-amount-desc:before{content:"\\F161"}.fa-sort-numeric-asc:before{content:"\\F162"}.fa-sort-numeric-desc:before{content:"\\F163"}.fa-thumbs-up:before{content:"\\F164"}.fa-thumbs-down:before{content:"\\F165"}.fa-youtube-square:before{content:"\\F166"}.fa-youtube:before{content:"\\F167"}.fa-xing:before{content:"\\F168"}.fa-xing-square:before{content:"\\F169"}.fa-youtube-play:before{content:"\\F16A"}.fa-dropbox:before{content:"\\F16B"}.fa-stack-overflow:before{content:"\\F16C"}.fa-instagram:before{content:"\\F16D"}.fa-flickr:before{content:"\\F16E"}.fa-adn:before{content:"\\F170"}.fa-bitbucket:before{content:"\\F171"}.fa-bitbucket-square:before{content:"\\F172"}.fa-tumblr:before{content:"\\F173"}.fa-tumblr-square:before{content:"\\F174"}.fa-long-arrow-down:before{content:"\\F175"}.fa-long-arrow-up:before{content:"\\F176"}.fa-long-arrow-left:before{content:"\\F177"}.fa-long-arrow-right:before{content:"\\F178"}.fa-apple:before{content:"\\F179"}.fa-windows:before{content:"\\F17A"}.fa-android:before{content:"\\F17B"}.fa-linux:before{content:"\\F17C"}.fa-dribbble:before{content:"\\F17D"}.fa-skype:before{content:"\\F17E"}.fa-foursquare:before{content:"\\F180"}.fa-trello:before{content:"\\F181"}.fa-female:before{content:"\\F182"}.fa-male:before{content:"\\F183"}.fa-gittip:before,.fa-gratipay:before{content:"\\F184"}.fa-sun-o:before{content:"\\F185"}.fa-moon-o:before{content:"\\F186"}.fa-archive:before{content:"\\F187"}.fa-bug:before{content:"\\F188"}.fa-vk:before{content:"\\F189"}.fa-weibo:before{content:"\\F18A"}.fa-renren:before{content:"\\F18B"}.fa-pagelines:before{content:"\\F18C"}.fa-stack-exchange:before{content:"\\F18D"}.fa-arrow-circle-o-right:before{content:"\\F18E"}.fa-arrow-circle-o-left:before{content:"\\F190"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:"\\F191"}.fa-dot-circle-o:before{content:"\\F192"}.fa-wheelchair:before{content:"\\F193"}.fa-vimeo-square:before{content:"\\F194"}.fa-try:before,.fa-turkish-lira:before{content:"\\F195"}.fa-plus-square-o:before{content:"\\F196"}.fa-space-shuttle:before{content:"\\F197"}.fa-slack:before{content:"\\F198"}.fa-envelope-square:before{content:"\\F199"}.fa-wordpress:before{content:"\\F19A"}.fa-openid:before{content:"\\F19B"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:"\\F19C"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\\F19D"}.fa-yahoo:before{content:"\\F19E"}.fa-google:before{content:"\\F1A0"}.fa-reddit:before{content:"\\F1A1"}.fa-reddit-square:before{content:"\\F1A2"}.fa-stumbleupon-circle:before{content:"\\F1A3"}.fa-stumbleupon:before{content:"\\F1A4"}.fa-delicious:before{content:"\\F1A5"}.fa-digg:before{content:"\\F1A6"}.fa-pied-piper-pp:before{content:"\\F1A7"}.fa-pied-piper-alt:before{content:"\\F1A8"}.fa-drupal:before{content:"\\F1A9"}.fa-joomla:before{content:"\\F1AA"}.fa-language:before{content:"\\F1AB"}.fa-fax:before{content:"\\F1AC"}.fa-building:before{content:"\\F1AD"}.fa-child:before{content:"\\F1AE"}.fa-paw:before{content:"\\F1B0"}.fa-spoon:before{content:"\\F1B1"}.fa-cube:before{content:"\\F1B2"}.fa-cubes:before{content:"\\F1B3"}.fa-behance:before{content:"\\F1B4"}.fa-behance-square:before{content:"\\F1B5"}.fa-steam:before{content:"\\F1B6"}.fa-steam-square:before{content:"\\F1B7"}.fa-recycle:before{content:"\\F1B8"}.fa-automobile:before,.fa-car:before{content:"\\F1B9"}.fa-cab:before,.fa-taxi:before{content:"\\F1BA"}.fa-tree:before{content:"\\F1BB"}.fa-spotify:before{content:"\\F1BC"}.fa-deviantart:before{content:"\\F1BD"}.fa-soundcloud:before{content:"\\F1BE"}.fa-database:before{content:"\\F1C0"}.fa-file-pdf-o:before{content:"\\F1C1"}.fa-file-word-o:before{content:"\\F1C2"}.fa-file-excel-o:before{content:"\\F1C3"}.fa-file-powerpoint-o:before{content:"\\F1C4"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:"\\F1C5"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:"\\F1C6"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:"\\F1C7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\\F1C8"}.fa-file-code-o:before{content:"\\F1C9"}.fa-vine:before{content:"\\F1CA"}.fa-codepen:before{content:"\\F1CB"}.fa-jsfiddle:before{content:"\\F1CC"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:"\\F1CD"}.fa-circle-o-notch:before{content:"\\F1CE"}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:"\\F1D0"}.fa-empire:before,.fa-ge:before{content:"\\F1D1"}.fa-git-square:before{content:"\\F1D2"}.fa-git:before{content:"\\F1D3"}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:"\\F1D4"}.fa-tencent-weibo:before{content:"\\F1D5"}.fa-qq:before{content:"\\F1D6"}.fa-wechat:before,.fa-weixin:before{content:"\\F1D7"}.fa-paper-plane:before,.fa-send:before{content:"\\F1D8"}.fa-paper-plane-o:before,.fa-send-o:before{content:"\\F1D9"}.fa-history:before{content:"\\F1DA"}.fa-circle-thin:before{content:"\\F1DB"}.fa-header:before{content:"\\F1DC"}.fa-paragraph:before{content:"\\F1DD"}.fa-sliders:before{content:"\\F1DE"}.fa-share-alt:before{content:"\\F1E0"}.fa-share-alt-square:before{content:"\\F1E1"}.fa-bomb:before{content:"\\F1E2"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:"\\F1E3"}.fa-tty:before{content:"\\F1E4"}.fa-binoculars:before{content:"\\F1E5"}.fa-plug:before{content:"\\F1E6"}.fa-slideshare:before{content:"\\F1E7"}.fa-twitch:before{content:"\\F1E8"}.fa-yelp:before{content:"\\F1E9"}.fa-newspaper-o:before{content:"\\F1EA"}.fa-wifi:before{content:"\\F1EB"}.fa-calculator:before{content:"\\F1EC"}.fa-paypal:before{content:"\\F1ED"}.fa-google-wallet:before{content:"\\F1EE"}.fa-cc-visa:before{content:"\\F1F0"}.fa-cc-mastercard:before{content:"\\F1F1"}.fa-cc-discover:before{content:"\\F1F2"}.fa-cc-amex:before{content:"\\F1F3"}.fa-cc-paypal:before{content:"\\F1F4"}.fa-cc-stripe:before{content:"\\F1F5"}.fa-bell-slash:before{content:"\\F1F6"}.fa-bell-slash-o:before{content:"\\F1F7"}.fa-trash:before{content:"\\F1F8"}.fa-copyright:before{content:"\\F1F9"}.fa-at:before{content:"\\F1FA"}.fa-eyedropper:before{content:"\\F1FB"}.fa-paint-brush:before{content:"\\F1FC"}.fa-birthday-cake:before{content:"\\F1FD"}.fa-area-chart:before{content:"\\F1FE"}.fa-pie-chart:before{content:"\\F200"}.fa-line-chart:before{content:"\\F201"}.fa-lastfm:before{content:"\\F202"}.fa-lastfm-square:before{content:"\\F203"}.fa-toggle-off:before{content:"\\F204"}.fa-toggle-on:before{content:"\\F205"}.fa-bicycle:before{content:"\\F206"}.fa-bus:before{content:"\\F207"}.fa-ioxhost:before{content:"\\F208"}.fa-angellist:before{content:"\\F209"}.fa-cc:before{content:"\\F20A"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:"\\F20B"}.fa-meanpath:before{content:"\\F20C"}.fa-buysellads:before{content:"\\F20D"}.fa-connectdevelop:before{content:"\\F20E"}.fa-dashcube:before{content:"\\F210"}.fa-forumbee:before{content:"\\F211"}.fa-leanpub:before{content:"\\F212"}.fa-sellsy:before{content:"\\F213"}.fa-shirtsinbulk:before{content:"\\F214"}.fa-simplybuilt:before{content:"\\F215"}.fa-skyatlas:before{content:"\\F216"}.fa-cart-plus:before{content:"\\F217"}.fa-cart-arrow-down:before{content:"\\F218"}.fa-diamond:before{content:"\\F219"}.fa-ship:before{content:"\\F21A"}.fa-user-secret:before{content:"\\F21B"}.fa-motorcycle:before{content:"\\F21C"}.fa-street-view:before{content:"\\F21D"}.fa-heartbeat:before{content:"\\F21E"}.fa-venus:before{content:"\\F221"}.fa-mars:before{content:"\\F222"}.fa-mercury:before{content:"\\F223"}.fa-intersex:before,.fa-transgender:before{content:"\\F224"}.fa-transgender-alt:before{content:"\\F225"}.fa-venus-double:before{content:"\\F226"}.fa-mars-double:before{content:"\\F227"}.fa-venus-mars:before{content:"\\F228"}.fa-mars-stroke:before{content:"\\F229"}.fa-mars-stroke-v:before{content:"\\F22A"}.fa-mars-stroke-h:before{content:"\\F22B"}.fa-neuter:before{content:"\\F22C"}.fa-genderless:before{content:"\\F22D"}.fa-facebook-official:before{content:"\\F230"}.fa-pinterest-p:before{content:"\\F231"}.fa-whatsapp:before{content:"\\F232"}.fa-server:before{content:"\\F233"}.fa-user-plus:before{content:"\\F234"}.fa-user-times:before{content:"\\F235"}.fa-bed:before,.fa-hotel:before{content:"\\F236"}.fa-viacoin:before{content:"\\F237"}.fa-train:before{content:"\\F238"}.fa-subway:before{content:"\\F239"}.fa-medium:before{content:"\\F23A"}.fa-y-combinator:before,.fa-yc:before{content:"\\F23B"}.fa-optin-monster:before{content:"\\F23C"}.fa-opencart:before{content:"\\F23D"}.fa-expeditedssl:before{content:"\\F23E"}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:"\\F240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\\F241"}.fa-battery-2:before,.fa-battery-half:before{content:"\\F242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\\F243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\\F244"}.fa-mouse-pointer:before{content:"\\F245"}.fa-i-cursor:before{content:"\\F246"}.fa-object-group:before{content:"\\F247"}.fa-object-ungroup:before{content:"\\F248"}.fa-sticky-note:before{content:"\\F249"}.fa-sticky-note-o:before{content:"\\F24A"}.fa-cc-jcb:before{content:"\\F24B"}.fa-cc-diners-club:before{content:"\\F24C"}.fa-clone:before{content:"\\F24D"}.fa-balance-scale:before{content:"\\F24E"}.fa-hourglass-o:before{content:"\\F250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\\F251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\\F252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\\F253"}.fa-hourglass:before{content:"\\F254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\\F255"}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:"\\F256"}.fa-hand-scissors-o:before{content:"\\F257"}.fa-hand-lizard-o:before{content:"\\F258"}.fa-hand-spock-o:before{content:"\\F259"}.fa-hand-pointer-o:before{content:"\\F25A"}.fa-hand-peace-o:before{content:"\\F25B"}.fa-trademark:before{content:"\\F25C"}.fa-registered:before{content:"\\F25D"}.fa-creative-commons:before{content:"\\F25E"}.fa-gg:before{content:"\\F260"}.fa-gg-circle:before{content:"\\F261"}.fa-tripadvisor:before{content:"\\F262"}.fa-odnoklassniki:before{content:"\\F263"}.fa-odnoklassniki-square:before{content:"\\F264"}.fa-get-pocket:before{content:"\\F265"}.fa-wikipedia-w:before{content:"\\F266"}.fa-safari:before{content:"\\F267"}.fa-chrome:before{content:"\\F268"}.fa-firefox:before{content:"\\F269"}.fa-opera:before{content:"\\F26A"}.fa-internet-explorer:before{content:"\\F26B"}.fa-television:before,.fa-tv:before{content:"\\F26C"}.fa-contao:before{content:"\\F26D"}.fa-500px:before{content:"\\F26E"}.fa-amazon:before{content:"\\F270"}.fa-calendar-plus-o:before{content:"\\F271"}.fa-calendar-minus-o:before{content:"\\F272"}.fa-calendar-times-o:before{content:"\\F273"}.fa-calendar-check-o:before{content:"\\F274"}.fa-industry:before{content:"\\F275"}.fa-map-pin:before{content:"\\F276"}.fa-map-signs:before{content:"\\F277"}.fa-map-o:before{content:"\\F278"}.fa-map:before{content:"\\F279"}.fa-commenting:before{content:"\\F27A"}.fa-commenting-o:before{content:"\\F27B"}.fa-houzz:before{content:"\\F27C"}.fa-vimeo:before{content:"\\F27D"}.fa-black-tie:before{content:"\\F27E"}.fa-fonticons:before{content:"\\F280"}.fa-reddit-alien:before{content:"\\F281"}.fa-edge:before{content:"\\F282"}.fa-credit-card-alt:before{content:"\\F283"}.fa-codiepie:before{content:"\\F284"}.fa-modx:before{content:"\\F285"}.fa-fort-awesome:before{content:"\\F286"}.fa-usb:before{content:"\\F287"}.fa-product-hunt:before{content:"\\F288"}.fa-mixcloud:before{content:"\\F289"}.fa-scribd:before{content:"\\F28A"}.fa-pause-circle:before{content:"\\F28B"}.fa-pause-circle-o:before{content:"\\F28C"}.fa-stop-circle:before{content:"\\F28D"}.fa-stop-circle-o:before{content:"\\F28E"}.fa-shopping-bag:before{content:"\\F290"}.fa-shopping-basket:before{content:"\\F291"}.fa-hashtag:before{content:"\\F292"}.fa-bluetooth:before{content:"\\F293"}.fa-bluetooth-b:before{content:"\\F294"}.fa-percent:before{content:"\\F295"}.fa-gitlab:before{content:"\\F296"}.fa-wpbeginner:before{content:"\\F297"}.fa-wpforms:before{content:"\\F298"}.fa-envira:before{content:"\\F299"}.fa-universal-access:before{content:"\\F29A"}.fa-wheelchair-alt:before{content:"\\F29B"}.fa-question-circle-o:before{content:"\\F29C"}.fa-blind:before{content:"\\F29D"}.fa-audio-description:before{content:"\\F29E"}.fa-volume-control-phone:before{content:"\\F2A0"}.fa-braille:before{content:"\\F2A1"}.fa-assistive-listening-systems:before{content:"\\F2A2"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:"\\F2A3"}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:"\\F2A4"}.fa-glide:before{content:"\\F2A5"}.fa-glide-g:before{content:"\\F2A6"}.fa-sign-language:before,.fa-signing:before{content:"\\F2A7"}.fa-low-vision:before{content:"\\F2A8"}.fa-viadeo:before{content:"\\F2A9"}.fa-viadeo-square:before{content:"\\F2AA"}.fa-snapchat:before{content:"\\F2AB"}.fa-snapchat-ghost:before{content:"\\F2AC"}.fa-snapchat-square:before{content:"\\F2AD"}.fa-pied-piper:before{content:"\\F2AE"}.fa-first-order:before{content:"\\F2B0"}.fa-yoast:before{content:"\\F2B1"}.fa-themeisle:before{content:"\\F2B2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\\F2B3"}.fa-fa:before,.fa-font-awesome:before{content:"\\F2B4"}.fa-handshake-o:before{content:"\\F2B5"}.fa-envelope-open:before{content:"\\F2B6"}.fa-envelope-open-o:before{content:"\\F2B7"}.fa-linode:before{content:"\\F2B8"}.fa-address-book:before{content:"\\F2B9"}.fa-address-book-o:before{content:"\\F2BA"}.fa-address-card:before,.fa-vcard:before{content:"\\F2BB"}.fa-address-card-o:before,.fa-vcard-o:before{content:"\\F2BC"}.fa-user-circle:before{content:"\\F2BD"}.fa-user-circle-o:before{content:"\\F2BE"}.fa-user-o:before{content:"\\F2C0"}.fa-id-badge:before{content:"\\F2C1"}.fa-drivers-license:before,.fa-id-card:before{content:"\\F2C2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\\F2C3"}.fa-quora:before{content:"\\F2C4"}.fa-free-code-camp:before{content:"\\F2C5"}.fa-telegram:before{content:"\\F2C6"}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:"\\F2C7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\\F2C8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\\F2C9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\\F2CA"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\\F2CB"}.fa-shower:before{content:"\\F2CC"}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:"\\F2CD"}.fa-podcast:before{content:"\\F2CE"}.fa-window-maximize:before{content:"\\F2D0"}.fa-window-minimize:before{content:"\\F2D1"}.fa-window-restore:before{content:"\\F2D2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\\F2D3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\\F2D4"}.fa-bandcamp:before{content:"\\F2D5"}.fa-grav:before{content:"\\F2D6"}.fa-etsy:before{content:"\\F2D7"}.fa-imdb:before{content:"\\F2D8"}.fa-ravelry:before{content:"\\F2D9"}.fa-eercast:before{content:"\\F2DA"}.fa-microchip:before{content:"\\F2DB"}.fa-snowflake-o:before{content:"\\F2DC"}.fa-superpowers:before{content:"\\F2DD"}.fa-wpexplorer:before{content:"\\F2DE"}.fa-meetup:before{content:"\\F2E0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}',""]);
},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){e.exports=n.p+"assets/js/674f50d287a8c48dc19ba404d20fe713.eot"},function(e,t,n){e.exports=n.p+"assets/js/674f50d287a8c48dc19ba404d20fe713.eot"},function(e,t,n){e.exports=n.p+"assets/js/af7ae505a9eed503f8b8e6982036873e.woff2"},function(e,t,n){e.exports=n.p+"assets/js/fee66e712a8a08eef5805a46892932ad.woff"},function(e,t,n){e.exports=n.p+"assets/js/b06871f281fee6b241d60582ae9369b9.ttf"},function(e,t,n){e.exports=n.p+"assets/js/912ec66d7572ff821749319396470bde.svg"},function(e,t,n){function o(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=p[o.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](o.parts[i]);for(;i<o.parts.length;i++)r.parts.push(c(o.parts[i],t))}else{for(var a=[],i=0;i<o.parts.length;i++)a.push(c(o.parts[i],t));p[o.id]={id:o.id,refs:1,parts:a}}}}function r(e){for(var t=[],n={},o=0;o<e.length;o++){var r=e[o],i=r[0],a=r[1],s=r[2],f=r[3],c={css:a,media:s,sourceMap:f};n[i]?n[i].parts.push(c):t.push(n[i]={id:i,parts:[c]})}return t}function i(e,t){var n=b(),o=y[y.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function c(e,t){var n,o,r;if(t.singleton){var i=v++;n=g||(g=s(t)),o=l.bind(null,n,i,!1),r=l.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=f(t),o=d.bind(null,n),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),o=u.bind(null,n),r=function(){a(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}function l(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=x(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function u(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,o=t.sourceMap;o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var r=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(r),i&&URL.revokeObjectURL(i)}var p={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),b=h(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,v=0,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=r(e);return o(n,t),function(e){for(var i=[],a=0;a<n.length;a++){var s=n[a],f=p[s.id];f.refs--,i.push(f)}if(e){var c=r(e);o(c,t)}for(var a=0;a<i.length;a++){var f=i[a];if(0===f.refs){for(var l=0;l<f.parts.length;l++)f.parts[l]();delete p[f.id]}}}};var x=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var o=n(15);"string"==typeof o&&(o=[[e.id,o,""]]);n(13)(o,{});o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,"@font-face{font-family:flexslider-icon;src:url("+n(16)+");src:url("+n(16)+'?#iefix) format("embedded-opentype"),url('+n(17)+') format("woff"),url('+n(18)+') format("truetype"),url('+n(19)+'#flexslider-icon) format("svg");font-weight:400;font-style:normal}.flex-container a:hover,.flex-slider a:hover{outline:none}.flex-control-nav,.flex-direction-nav,.slides,.slides>li{margin:0;padding:0;list-style:none}.flex-pauseplay span{text-transform:capitalize}.flexslider{margin:0;padding:0}.flexslider .slides>li{display:none;-webkit-backface-visibility:hidden}.flexslider .slides img{width:100%;display:block}.flexslider .slides:after{content:" ";display:block;clear:both;visibility:hidden;line-height:0;height:0}html[xmlns] .flexslider .slides{display:block}* html .flexslider .slides{height:1%}.no-js .flexslider .slides>li:first-child{display:block}.flexslider{margin:0 0 60px;background:#fff;border:4px solid #fff;position:relative;zoom:1;border-radius:4px;-o-box-shadow:"" 0 1px 4px rgba(0,0,0,.2);box-shadow:0 1px 4px "" rgba(0,0,0,.2)}.flexslider .slides{zoom:1}.flexslider .slides img{height:auto;-moz-user-select:none}.flex-viewport{max-height:2000px;transition:all 1s ease}.loading .flex-viewport{max-height:300px}.carousel li{margin-right:5px}.flex-direction-nav{*height:0}.flex-direction-nav a{text-decoration:none;display:block;width:40px;height:40px;margin:-20px 0 0;position:absolute;top:50%;z-index:10;overflow:hidden;opacity:0;cursor:pointer;transition:all .3s ease-in-out}.flex-direction-nav a,.flex-direction-nav a:before{color:rgba(0,0,0,.8);text-shadow:1px 1px 0 hsla(0,0%,100%,.3)}.flex-direction-nav a:before{font-family:flexslider-icon;font-size:40px;display:inline-block;content:"\\F001"}.flex-direction-nav a.flex-next:before{content:"\\F002"}.flex-direction-nav .flex-prev{left:-50px}.flex-direction-nav .flex-next{right:-50px;text-align:right}.flexslider:hover .flex-direction-nav .flex-prev{opacity:.7;left:10px}.flexslider:hover .flex-direction-nav .flex-prev:hover{opacity:1}.flexslider:hover .flex-direction-nav .flex-next{opacity:.7;right:10px}.flexslider:hover .flex-direction-nav .flex-next:hover{opacity:1}.flex-direction-nav .flex-disabled{opacity:0!important;filter:alpha(opacity=0);cursor:default;z-index:-1}.flex-pauseplay a{display:block;width:20px;height:20px;position:absolute;bottom:5px;left:10px;opacity:.8;z-index:10;overflow:hidden;cursor:pointer;color:#000}.flex-pauseplay a:before{font-family:flexslider-icon;font-size:20px;display:inline-block;content:"\\F004"}.flex-pauseplay a:hover{opacity:1}.flex-pauseplay a.flex-play:before{content:"\\F003"}.flex-control-nav{width:100%;position:absolute;bottom:-40px;text-align:center}.flex-control-nav li{margin:0 6px;display:inline-block;zoom:1;*display:inline}.flex-control-paging li a{width:11px;height:11px;display:block;background:#666;background:rgba(0,0,0,.5);cursor:pointer;text-indent:-9999px;-o-box-shadow:inset 0 0 3px rgba(0,0,0,.3);box-shadow:inset 0 0 3px rgba(0,0,0,.3);border-radius:20px}.flex-control-paging li a:hover{background:#333;background:rgba(0,0,0,.7)}.flex-control-paging li a.flex-active{background:#000;background:rgba(0,0,0,.9);cursor:default}.flex-control-thumbs{margin:5px 0 0;position:static;overflow:hidden}.flex-control-thumbs li{width:25%;float:left;margin:0}.flex-control-thumbs img{width:100%;height:auto;display:block;opacity:.7;cursor:pointer;-moz-user-select:none;transition:all 1s ease}.flex-control-thumbs img:hover{opacity:1}.flex-control-thumbs .flex-active{opacity:1;cursor:default}@media screen and (max-width:860px){.flex-direction-nav .flex-prev{opacity:1;left:10px}.flex-direction-nav .flex-next{opacity:1;right:10px}}',""])},function(e,t,n){e.exports=n.p+"assets/js/9c9cb7a6055043933ba68854f521af45.eot"},function(e,t){e.exports="data:application/font-woff;base64,d09GRgABAAAAAAT0AA0AAAAAB2QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABMAAAABoAAAAcZsz6EkdERUYAAAFMAAAAHwAAACAANgAGT1MvMgAAAWwAAABHAAAAVj7i2qhjbWFwAAABtAAAAEwAAAFW4CwD4mdhc3AAAAIAAAAACAAAAAj//wADZ2x5ZgAAAggAAAEmAAABnEQ02FZoZWFkAAADMAAAADEAAAA2+26XP2hoZWEAAANkAAAAHgAAACQDav/KaG10eAAAA4QAAAAhAAAAJAkVADdsb2NhAAADqAAAABQAAAAUAUoBsG1heHAAAAO8AAAAHQAAACAATQAjbmFtZQAAA9wAAADhAAAB3d8yt8Bwb3N0AAAEwAAAADMAAABk1Pm6tnicY2BgYGQAgjO2i86D6LPuqxfCaABMzwc8AAB4nGNgZGBg4ANiCQYQYGJgZGBm4ACSLGAeAwAEvAA9AHicY2BkjGScwMDKwMGozGjJwMBgB6WvM4gxFDMwMDGwMjPAgQCCyRCQ5prC4PCB4QMrY8P/AwwajA0MDg0MDIwgOQBthwqcAHic3YzBDcAgDAMvbYAO0TEYhP2nYAPqQD+sgCXr5MgOcLP8YoSaks3sVDGLxgU9jRGFzuJsufxo4SQ1i46Z/5GoVSw3GcfrA/tPBu4AAAAB//8AAnicXZCxTgJBEIbnF1h31iwEb3MXQUPEeBQWJghYWMgDWFhb4RuYWHnVvQONpcnxABYWxOoegTeQF/AVDmcXjcZi//1nkvky/xDIbj5RwyM5omSQjq4xGfYQuxYSL6r/vmBecJcj5ixj+bpchBds9mQ6Ygh0JJxIOAnRaRg8RzoW3CBogCISUofdluT0oV7wqzUeZaz1LNHISEN4tPnADPe0J7yGSsft0SRpxA531ZvSWuFGPS/rSuFBqfqyroloR2bWyDGjFvWI0HbqDP0weYVhvPuvRm5UrkyQ9a/FbfXiLWZe/3jZyZLFHDU6+M548hNyciH5LoPGmHNhbFMXxuyHWBlbayJeWembQjd9sb2lCTlLlMj99m0co6ymyKupxPkCUZ1CeAAAeJxjYGRgYADiBTs/3Iznt/nKwM14ACjCcNZ99UIE/f8A4wHGBiCXg4EJJAoAh5oNWwAAAHicY2BkYGBs+H+AQYPxAAPDPwcgCRRBAZwAhB0FNAAAeJxjPMAAAVMZGBgVGHiBWJYxAchuAOIFDLwgKQBCjgNTAAAAAAAAAAAAAAAAJABMAGYAlgDAAM54nGNgZGBg4GRQYGBiAAEQycgAEnMA8xkABnoAcQAAAHiclY8xbgIxEEWfYUFBRKJLOuQ+2pXtFEE06TjCXgAMWmnFSl4KTkIOlKNwBC6QwTtKkSbCkuU34z9ff4BnLhjux7DAKo8oWCuPeeNLuRDNVXnC3MyVpyzMhyhNMZPOMk/decQTTnlMzadyIZpv5Qkv3JSnLM0re1oiZ3p5G3bCiVJoS8cR9m08922zi6lstp00fn+GcpOLU34TBxm3BCoJYmUp+4/9oPGspBfydVK9i213PG26dIg2VM6u7Z8Y0vGrMpTBeRE/ukKdFb0ohgw+56WOqW/E21fuYc8fKF5PUQAAAHicY2BiwA84gZiRgYmRiZGZkYWRlZGNkZ29NC/TzcDAEEobQWljKG0CpU2htAEATR0NNQA="},function(e,t,n){e.exports=n.p+"assets/js/b4c9e5057989b9727a5df4e0a21af33c.ttf"},function(e,t,n){e.exports=n.p+"assets/js/10e8a5455c4522c48aa975eacd4f0023.svg"},function(e,t,n){(function(e){!function(t){var n=!0;t.flexslider=function(o,r){var i=t(o);i.vars=t.extend({},t.flexslider.defaults,r);var a,s=i.vars.namespace,f=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,c=("ontouchstart"in window||f||window.DocumentTouch&&document instanceof DocumentTouch)&&i.vars.touch,l="click touchend MSPointerUp keyup",u="",d="vertical"===i.vars.direction,p=i.vars.reverse,h=i.vars.itemWidth>0,m="fade"===i.vars.animation,b=""!==i.vars.asNavFor,g={};t.data(o,"flexslider",i),g={init:function(){i.animating=!1,i.currentSlide=parseInt(i.vars.startAt?i.vars.startAt:0,10),isNaN(i.currentSlide)&&(i.currentSlide=0),i.animatingTo=i.currentSlide,i.atEnd=0===i.currentSlide||i.currentSlide===i.last,i.containerSelector=i.vars.selector.substr(0,i.vars.selector.search(" ")),i.slides=t(i.vars.selector,i),i.container=t(i.containerSelector,i),i.count=i.slides.length,i.syncExists=t(i.vars.sync).length>0,"slide"===i.vars.animation&&(i.vars.animation="swing"),i.prop=d?"top":"marginLeft",i.args={},i.manualPause=!1,i.stopped=!1,i.started=!1,i.startTimeout=null,i.transitions=!i.vars.video&&!m&&i.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in t)if(void 0!==e.style[t[n]])return i.pfx=t[n].replace("Perspective","").toLowerCase(),i.prop="-"+i.pfx+"-transform",!0;return!1}(),i.ensureAnimationEnd="",""!==i.vars.controlsContainer&&(i.controlsContainer=t(i.vars.controlsContainer).length>0&&t(i.vars.controlsContainer)),""!==i.vars.manualControls&&(i.manualControls=t(i.vars.manualControls).length>0&&t(i.vars.manualControls)),""!==i.vars.customDirectionNav&&(i.customDirectionNav=2===t(i.vars.customDirectionNav).length&&t(i.vars.customDirectionNav)),i.vars.randomize&&(i.slides.sort(function(){return Math.round(Math.random())-.5}),i.container.empty().append(i.slides)),i.doMath(),i.setup("init"),i.vars.controlNav&&g.controlNav.setup(),i.vars.directionNav&&g.directionNav.setup(),i.vars.keyboard&&(1===t(i.containerSelector).length||i.vars.multipleKeyboard)&&t(document).bind("keyup",function(e){var t=e.keyCode;if(!i.animating&&(39===t||37===t)){var n=39===t?i.getTarget("next"):37===t&&i.getTarget("prev");i.flexAnimate(n,i.vars.pauseOnAction)}}),i.vars.mousewheel&&i.bind("mousewheel",function(e,t,n,o){e.preventDefault();var r=t<0?i.getTarget("next"):i.getTarget("prev");i.flexAnimate(r,i.vars.pauseOnAction)}),i.vars.pausePlay&&g.pausePlay.setup(),i.vars.slideshow&&i.vars.pauseInvisible&&g.pauseInvisible.init(),i.vars.slideshow&&(i.vars.pauseOnHover&&i.hover(function(){i.manualPlay||i.manualPause||i.pause()},function(){i.manualPause||i.manualPlay||i.stopped||i.play()}),i.vars.pauseInvisible&&g.pauseInvisible.isHidden()||(i.vars.initDelay>0?i.startTimeout=setTimeout(i.play,i.vars.initDelay):i.play())),b&&g.asNav.setup(),c&&i.vars.touch&&g.touch(),(!m||m&&i.vars.smoothHeight)&&t(window).bind("resize orientationchange focus",g.resize()),i.find("img").attr("draggable","false"),setTimeout(function(){i.vars.start(i)},200)},asNav:{setup:function(){i.asNav=!0,i.animatingTo=Math.floor(i.currentSlide/i.move),i.currentItem=i.currentSlide,i.slides.removeClass(s+"active-slide").eq(i.currentItem).addClass(s+"active-slide"),f?(o._slider=i,i.slides.each(function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var n=t(this),o=n.index();t(i.vars.asNavFor).data("flexslider").animating||n.hasClass("active")||(i.direction=i.currentItem<o?"next":"prev",i.flexAnimate(o,i.vars.pauseOnAction,!1,!0,!0))})})):i.slides.on(l,function(e){e.preventDefault();var n=t(this),o=n.index();n.offset().left-t(i).scrollLeft()<=0&&n.hasClass(s+"active-slide")?i.flexAnimate(i.getTarget("prev"),!0):t(i.vars.asNavFor).data("flexslider").animating||n.hasClass(s+"active-slide")||(i.direction=i.currentItem<o?"next":"prev",i.flexAnimate(o,i.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){i.manualControls?g.controlNav.setupManual():g.controlNav.setupPaging()},setupPaging:function(){var e,n,o="thumbnails"===i.vars.controlNav?"control-thumbs":"control-paging",r=1;if(i.controlNavScaffold=t('<ol class="'+s+"control-nav "+s+o+'"></ol>'),i.pagingCount>1)for(var a=0;a<i.pagingCount;a++){n=i.slides.eq(a),void 0===n.attr("data-thumb-alt")&&n.attr("data-thumb-alt","");var f=""!==n.attr("data-thumb-alt")?f=' alt="'+n.attr("data-thumb-alt")+'"':"";if(e="thumbnails"===i.vars.controlNav?'<img src="'+n.attr("data-thumb")+'"'+f+"/>":'<a href="#">'+r+"</a>","thumbnails"===i.vars.controlNav&&!0===i.vars.thumbCaptions){var c=n.attr("data-thumbcaption");""!==c&&void 0!==c&&(e+='<span class="'+s+'caption">'+c+"</span>")}i.controlNavScaffold.append("<li>"+e+"</li>"),r++}i.controlsContainer?t(i.controlsContainer).append(i.controlNavScaffold):i.append(i.controlNavScaffold),g.controlNav.set(),g.controlNav.active(),i.controlNavScaffold.delegate("a, img",l,function(e){if(e.preventDefault(),""===u||u===e.type){var n=t(this),o=i.controlNav.index(n);n.hasClass(s+"active")||(i.direction=o>i.currentSlide?"next":"prev",i.flexAnimate(o,i.vars.pauseOnAction))}""===u&&(u=e.type),g.setToClearWatchedEvent()})},setupManual:function(){i.controlNav=i.manualControls,g.controlNav.active(),i.controlNav.bind(l,function(e){if(e.preventDefault(),""===u||u===e.type){var n=t(this),o=i.controlNav.index(n);n.hasClass(s+"active")||(o>i.currentSlide?i.direction="next":i.direction="prev",i.flexAnimate(o,i.vars.pauseOnAction))}""===u&&(u=e.type),g.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===i.vars.controlNav?"img":"a";i.controlNav=t("."+s+"control-nav li "+e,i.controlsContainer?i.controlsContainer:i)},active:function(){i.controlNav.removeClass(s+"active").eq(i.animatingTo).addClass(s+"active")},update:function(e,n){i.pagingCount>1&&"add"===e?i.controlNavScaffold.append(t('<li><a href="#">'+i.count+"</a></li>")):1===i.pagingCount?i.controlNavScaffold.find("li").remove():i.controlNav.eq(n).closest("li").remove(),g.controlNav.set(),i.pagingCount>1&&i.pagingCount!==i.controlNav.length?i.update(n,e):g.controlNav.active()}},directionNav:{setup:function(){var e=t('<ul class="'+s+'direction-nav"><li class="'+s+'nav-prev"><a class="'+s+'prev" href="#">'+i.vars.prevText+'</a></li><li class="'+s+'nav-next"><a class="'+s+'next" href="#">'+i.vars.nextText+"</a></li></ul>");i.customDirectionNav?i.directionNav=i.customDirectionNav:i.controlsContainer?(t(i.controlsContainer).append(e),i.directionNav=t("."+s+"direction-nav li a",i.controlsContainer)):(i.append(e),i.directionNav=t("."+s+"direction-nav li a",i)),g.directionNav.update(),i.directionNav.bind(l,function(e){e.preventDefault();var n;""!==u&&u!==e.type||(n=t(this).hasClass(s+"next")?i.getTarget("next"):i.getTarget("prev"),i.flexAnimate(n,i.vars.pauseOnAction)),""===u&&(u=e.type),g.setToClearWatchedEvent()})},update:function(){var e=s+"disabled";1===i.pagingCount?i.directionNav.addClass(e).attr("tabindex","-1"):i.vars.animationLoop?i.directionNav.removeClass(e).removeAttr("tabindex"):0===i.animatingTo?i.directionNav.removeClass(e).filter("."+s+"prev").addClass(e).attr("tabindex","-1"):i.animatingTo===i.last?i.directionNav.removeClass(e).filter("."+s+"next").addClass(e).attr("tabindex","-1"):i.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=t('<div class="'+s+'pauseplay"><a href="#"></a></div>');i.controlsContainer?(i.controlsContainer.append(e),i.pausePlay=t("."+s+"pauseplay a",i.controlsContainer)):(i.append(e),i.pausePlay=t("."+s+"pauseplay a",i)),g.pausePlay.update(i.vars.slideshow?s+"pause":s+"play"),i.pausePlay.bind(l,function(e){e.preventDefault(),""!==u&&u!==e.type||(t(this).hasClass(s+"pause")?(i.manualPause=!0,i.manualPlay=!1,i.pause()):(i.manualPause=!1,i.manualPlay=!0,i.play())),""===u&&(u=e.type),g.setToClearWatchedEvent()})},update:function(e){"play"===e?i.pausePlay.removeClass(s+"pause").addClass(s+"play").html(i.vars.playText):i.pausePlay.removeClass(s+"play").addClass(s+"pause").html(i.vars.pauseText)}},touch:function(){function t(e){e.stopPropagation(),i.animating?e.preventDefault():(i.pause(),o._gesture.addPointer(e.pointerId),A=0,l=d?i.h:i.w,b=Number(new Date),c=h&&p&&i.animatingTo===i.last?0:h&&p?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:h&&i.currentSlide===i.last?i.limit:h?(i.itemW+i.vars.itemMargin)*i.move*i.currentSlide:p?(i.last-i.currentSlide+i.cloneOffset)*l:(i.currentSlide+i.cloneOffset)*l)}function n(t){t.stopPropagation();var n=t.target._slider;if(n){var r=-t.translationX,i=-t.translationY;if(A+=d?i:r,u=A,x=d?Math.abs(A)<Math.abs(-r):Math.abs(A)<Math.abs(-i),t.detail===t.MSGESTURE_FLAG_INERTIA)return void e(function(){o._gesture.stop()});(!x||Number(new Date)-b>500)&&(t.preventDefault(),!m&&n.transitions&&(n.vars.animationLoop||(u=A/(0===n.currentSlide&&A<0||n.currentSlide===n.last&&A>0?Math.abs(A)/l+2:1)),n.setProps(c+u,"setTouch")))}}function r(e){e.stopPropagation();var t=e.target._slider;if(t){if(t.animatingTo===t.currentSlide&&!x&&null!==u){var n=p?-u:u,o=n>0?t.getTarget("next"):t.getTarget("prev");t.canAdvance(o)&&(Number(new Date)-b<550&&Math.abs(n)>50||Math.abs(n)>l/2)?t.flexAnimate(o,t.vars.pauseOnAction):m||t.flexAnimate(t.currentSlide,t.vars.pauseOnAction,!0)}a=null,s=null,u=null,c=null,A=0}}var a,s,c,l,u,b,g,v,y,x=!1,F=0,w=0,A=0;f?(o.style.msTouchAction="none",o._gesture=new MSGesture,o._gesture.target=o,o.addEventListener("MSPointerDown",t,!1),o._slider=i,o.addEventListener("MSGestureChange",n,!1),o.addEventListener("MSGestureEnd",r,!1)):(g=function(e){i.animating?e.preventDefault():(window.navigator.msPointerEnabled||1===e.touches.length)&&(i.pause(),l=d?i.h:i.w,b=Number(new Date),F=e.touches[0].pageX,w=e.touches[0].pageY,c=h&&p&&i.animatingTo===i.last?0:h&&p?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:h&&i.currentSlide===i.last?i.limit:h?(i.itemW+i.vars.itemMargin)*i.move*i.currentSlide:p?(i.last-i.currentSlide+i.cloneOffset)*l:(i.currentSlide+i.cloneOffset)*l,a=d?w:F,s=d?F:w,o.addEventListener("touchmove",v,!1),o.addEventListener("touchend",y,!1))},v=function(e){F=e.touches[0].pageX,w=e.touches[0].pageY,u=d?a-w:a-F,x=d?Math.abs(u)<Math.abs(F-s):Math.abs(u)<Math.abs(w-s);(!x||Number(new Date)-b>500)&&(e.preventDefault(),!m&&i.transitions&&(i.vars.animationLoop||(u/=0===i.currentSlide&&u<0||i.currentSlide===i.last&&u>0?Math.abs(u)/l+2:1),i.setProps(c+u,"setTouch")))},y=function(e){if(o.removeEventListener("touchmove",v,!1),i.animatingTo===i.currentSlide&&!x&&null!==u){var t=p?-u:u,n=t>0?i.getTarget("next"):i.getTarget("prev");i.canAdvance(n)&&(Number(new Date)-b<550&&Math.abs(t)>50||Math.abs(t)>l/2)?i.flexAnimate(n,i.vars.pauseOnAction):m||i.flexAnimate(i.currentSlide,i.vars.pauseOnAction,!0)}o.removeEventListener("touchend",y,!1),a=null,s=null,u=null,c=null},o.addEventListener("touchstart",g,!1))},resize:function(){!i.animating&&i.is(":visible")&&(h||i.doMath(),m?g.smoothHeight():h?(i.slides.width(i.computedW),i.update(i.pagingCount),i.setProps()):d?(i.viewport.height(i.h),i.setProps(i.h,"setTotal")):(i.vars.smoothHeight&&g.smoothHeight(),i.newSlides.width(i.computedW),i.setProps(i.computedW,"setTotal")))},smoothHeight:function(e){if(!d||m){var t=m?i:i.viewport;e?t.animate({height:i.slides.eq(i.animatingTo).innerHeight()},e):t.innerHeight(i.slides.eq(i.animatingTo).innerHeight())}},sync:function(e){var n=t(i.vars.sync).data("flexslider"),o=i.animatingTo;switch(e){case"animate":n.flexAnimate(o,i.vars.pauseOnAction,!1,!0);break;case"play":n.playing||n.asNav||n.play();break;case"pause":n.pause()}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=t(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var e=g.pauseInvisible.getHiddenProp();if(e){var t=e.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(t,function(){g.pauseInvisible.isHidden()?i.startTimeout?clearTimeout(i.startTimeout):i.pause():i.started?i.play():i.vars.initDelay>0?setTimeout(i.play,i.vars.initDelay):i.play()})}},isHidden:function(){var e=g.pauseInvisible.getHiddenProp();return!!e&&document[e]},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(a),a=setTimeout(function(){u=""},3e3)}},i.flexAnimate=function(e,n,o,r,a){if(i.vars.animationLoop||e===i.currentSlide||(i.direction=e>i.currentSlide?"next":"prev"),b&&1===i.pagingCount&&(i.direction=i.currentItem<e?"next":"prev"),!i.animating&&(i.canAdvance(e,a)||o)&&i.is(":visible")){if(b&&r){var f=t(i.vars.asNavFor).data("flexslider");if(i.atEnd=0===e||e===i.count-1,f.flexAnimate(e,!0,!1,!0,a),i.direction=i.currentItem<e?"next":"prev",f.direction=i.direction,Math.ceil((e+1)/i.visible)-1===i.currentSlide||0===e)return i.currentItem=e,i.slides.removeClass(s+"active-slide").eq(e).addClass(s+"active-slide"),!1;i.currentItem=e,i.slides.removeClass(s+"active-slide").eq(e).addClass(s+"active-slide"),e=Math.floor(e/i.visible)}if(i.animating=!0,i.animatingTo=e,n&&i.pause(),i.vars.before(i),i.syncExists&&!a&&g.sync("animate"),i.vars.controlNav&&g.controlNav.active(),h||i.slides.removeClass(s+"active-slide").eq(e).addClass(s+"active-slide"),i.atEnd=0===e||e===i.last,i.vars.directionNav&&g.directionNav.update(),e===i.last&&(i.vars.end(i),i.vars.animationLoop||i.pause()),m)c?(i.slides.eq(i.currentSlide).css({opacity:0,zIndex:1}),i.slides.eq(e).css({opacity:1,zIndex:2}),i.wrapup(y)):(i.slides.eq(i.currentSlide).css({zIndex:1}).animate({opacity:0},i.vars.animationSpeed,i.vars.easing),i.slides.eq(e).css({zIndex:2}).animate({opacity:1},i.vars.animationSpeed,i.vars.easing,i.wrapup));else{var l,u,v,y=d?i.slides.filter(":first").height():i.computedW;h?(l=i.vars.itemMargin,v=(i.itemW+l)*i.move*i.animatingTo,u=v>i.limit&&1!==i.visible?i.limit:v):u=0===i.currentSlide&&e===i.count-1&&i.vars.animationLoop&&"next"!==i.direction?p?(i.count+i.cloneOffset)*y:0:i.currentSlide===i.last&&0===e&&i.vars.animationLoop&&"prev"!==i.direction?p?0:(i.count+1)*y:p?(i.count-1-e+i.cloneOffset)*y:(e+i.cloneOffset)*y,i.setProps(u,"",i.vars.animationSpeed),i.transitions?(i.vars.animationLoop&&i.atEnd||(i.animating=!1,i.currentSlide=i.animatingTo),i.container.unbind("webkitTransitionEnd transitionend"),i.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(i.ensureAnimationEnd),i.wrapup(y)}),clearTimeout(i.ensureAnimationEnd),i.ensureAnimationEnd=setTimeout(function(){i.wrapup(y)},i.vars.animationSpeed+100)):i.container.animate(i.args,i.vars.animationSpeed,i.vars.easing,function(){i.wrapup(y)})}i.vars.smoothHeight&&g.smoothHeight(i.vars.animationSpeed)}},i.wrapup=function(e){m||h||(0===i.currentSlide&&i.animatingTo===i.last&&i.vars.animationLoop?i.setProps(e,"jumpEnd"):i.currentSlide===i.last&&0===i.animatingTo&&i.vars.animationLoop&&i.setProps(e,"jumpStart")),i.animating=!1,i.currentSlide=i.animatingTo,i.vars.after(i)},i.animateSlides=function(){!i.animating&&n&&i.flexAnimate(i.getTarget("next"))},i.pause=function(){clearInterval(i.animatedSlides),i.animatedSlides=null,i.playing=!1,i.vars.pausePlay&&g.pausePlay.update("play"),i.syncExists&&g.sync("pause")},i.play=function(){i.playing&&clearInterval(i.animatedSlides),i.animatedSlides=i.animatedSlides||setInterval(i.animateSlides,i.vars.slideshowSpeed),i.started=i.playing=!0,i.vars.pausePlay&&g.pausePlay.update("pause"),i.syncExists&&g.sync("play")},i.stop=function(){i.pause(),i.stopped=!0},i.canAdvance=function(e,t){var n=b?i.pagingCount-1:i.last;return!(!t&&(!b||i.currentItem!==i.count-1||0!==e||"prev"!==i.direction)&&(b&&0===i.currentItem&&e===i.pagingCount-1&&"next"!==i.direction||e===i.currentSlide&&!b||!i.vars.animationLoop&&(i.atEnd&&0===i.currentSlide&&e===n&&"next"!==i.direction||i.atEnd&&i.currentSlide===n&&0===e&&"next"===i.direction)))},i.getTarget=function(e){return i.direction=e,"next"===e?i.currentSlide===i.last?0:i.currentSlide+1:0===i.currentSlide?i.last:i.currentSlide-1},i.setProps=function(e,t,n){var o=function(){var n=e||(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo;return-1*function(){if(h)return"setTouch"===t?e:p&&i.animatingTo===i.last?0:p?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:i.animatingTo===i.last?i.limit:n;switch(t){case"setTotal":return p?(i.count-1-i.currentSlide+i.cloneOffset)*e:(i.currentSlide+i.cloneOffset)*e;case"setTouch":return e;case"jumpEnd":return p?e:i.count*e;case"jumpStart":return p?i.count*e:e;default:return e}}()+"px"}();i.transitions&&(o=d?"translate3d(0,"+o+",0)":"translate3d("+o+",0,0)",n=void 0!==n?n/1e3+"s":"0s",i.container.css("-"+i.pfx+"-transition-duration",n),i.container.css("transition-duration",n)),i.args[i.prop]=o,(i.transitions||void 0===n)&&i.container.css(i.args),i.container.css("transform",o)},i.setup=function(e){if(m)i.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===e&&(c?i.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+i.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(i.currentSlide).css({opacity:1,zIndex:2}):0==i.vars.fadeFirstSlide?i.slides.css({opacity:0,display:"block",zIndex:1}).eq(i.currentSlide).css({zIndex:2}).css({opacity:1}):i.slides.css({opacity:0,display:"block",zIndex:1}).eq(i.currentSlide).css({zIndex:2}).animate({opacity:1},i.vars.animationSpeed,i.vars.easing)),i.vars.smoothHeight&&g.smoothHeight();else{var n,o;"init"===e&&(i.viewport=t('<div class="'+s+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(i).append(i.container),i.cloneCount=0,i.cloneOffset=0,p&&(o=t.makeArray(i.slides).reverse(),i.slides=t(o),i.container.empty().append(i.slides))),i.vars.animationLoop&&!h&&(i.cloneCount=2,i.cloneOffset=1,"init"!==e&&i.container.find(".clone").remove(),i.container.append(g.uniqueID(i.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(g.uniqueID(i.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),i.newSlides=t(i.vars.selector,i),n=p?i.count-1-i.currentSlide+i.cloneOffset:i.currentSlide+i.cloneOffset,d&&!h?(i.container.height(200*(i.count+i.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){i.newSlides.css({display:"block"}),i.doMath(),i.viewport.height(i.h),i.setProps(n*i.h,"init")},"init"===e?100:0)):(i.container.width(200*(i.count+i.cloneCount)+"%"),i.setProps(n*i.computedW,"init"),setTimeout(function(){i.doMath(),i.newSlides.css({width:i.computedW,marginRight:i.computedM,float:"left",display:"block"}),i.vars.smoothHeight&&g.smoothHeight()},"init"===e?100:0))}h||i.slides.removeClass(s+"active-slide").eq(i.currentSlide).addClass(s+"active-slide"),i.vars.init(i)},i.doMath=function(){var e=i.slides.first(),t=i.vars.itemMargin,n=i.vars.minItems,o=i.vars.maxItems;i.w=void 0===i.viewport?i.width():i.viewport.width(),i.h=e.height(),i.boxPadding=e.outerWidth()-e.width(),h?(i.itemT=i.vars.itemWidth+t,i.itemM=t,i.minW=n?n*i.itemT:i.w,i.maxW=o?o*i.itemT-t:i.w,i.itemW=i.minW>i.w?(i.w-t*(n-1))/n:i.maxW<i.w?(i.w-t*(o-1))/o:i.vars.itemWidth>i.w?i.w:i.vars.itemWidth,i.visible=Math.floor(i.w/i.itemW),i.move=i.vars.move>0&&i.vars.move<i.visible?i.vars.move:i.visible,i.pagingCount=Math.ceil((i.count-i.visible)/i.move+1),i.last=i.pagingCount-1,i.limit=1===i.pagingCount?0:i.vars.itemWidth>i.w?i.itemW*(i.count-1)+t*(i.count-1):(i.itemW+t)*i.count-i.w-t):(i.itemW=i.w,i.itemM=t,i.pagingCount=i.count,i.last=i.count-1),i.computedW=i.itemW-i.boxPadding,i.computedM=i.itemM},i.update=function(e,t){i.doMath(),h||(e<i.currentSlide?i.currentSlide+=1:e<=i.currentSlide&&0!==e&&(i.currentSlide-=1),i.animatingTo=i.currentSlide),i.vars.controlNav&&!i.manualControls&&("add"===t&&!h||i.pagingCount>i.controlNav.length?g.controlNav.update("add"):("remove"===t&&!h||i.pagingCount<i.controlNav.length)&&(h&&i.currentSlide>i.last&&(i.currentSlide-=1,i.animatingTo-=1),g.controlNav.update("remove",i.last))),i.vars.directionNav&&g.directionNav.update()},i.addSlide=function(e,n){var o=t(e);i.count+=1,i.last=i.count-1,d&&p?void 0!==n?i.slides.eq(i.count-n).after(o):i.container.prepend(o):void 0!==n?i.slides.eq(n).before(o):i.container.append(o),i.update(n,"add"),i.slides=t(i.vars.selector+":not(.clone)",i),i.setup(),i.vars.added(i)},i.removeSlide=function(e){var n=isNaN(e)?i.slides.index(t(e)):e;i.count-=1,i.last=i.count-1,isNaN(e)?t(e,i.slides).remove():d&&p?i.slides.eq(i.last).remove():i.slides.eq(e).remove(),i.doMath(),i.update(n,"remove"),i.slides=t(i.vars.selector+":not(.clone)",i),i.setup(),i.vars.removed(i)},g.init()},t(window).blur(function(e){n=!1}).focus(function(e){n=!0}),t.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},t.fn.flexslider=function(e){if(void 0===e&&(e={}),"object"==typeof e)return this.each(function(){var n=t(this),o=e.selector?e.selector:".slides > li",r=n.find(o);1===r.length&&!1===e.allowOneSlide||0===r.length?(r.fadeIn(400),e.start&&e.start(n)):void 0===n.data("flexslider")&&new t.flexslider(this,e)});var n=t(this).data("flexslider");switch(e){case"play":n.play();break;case"pause":n.pause();break;case"stop":n.stop();break;case"next":n.flexAnimate(n.getTarget("next"),!0);break;case"prev":case"previous":n.flexAnimate(n.getTarget("prev"),!0);break;default:"number"==typeof e&&n.flexAnimate(e,!0);
}}}(jQuery)}).call(t,n(21).setImmediate)},function(e,t,n){function o(e,t){this._id=e,this._clearFn=t}var r=Function.prototype.apply;t.setTimeout=function(){return new o(r.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new o(r.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(22),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){(function(e,t){!function(e,n){"use strict";function o(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return m[h]=o,p(h),h++}function r(e){delete m[e]}function i(e){var t=e.callback,o=e.args;switch(o.length){case 0:t();break;case 1:t(o[0]);break;case 2:t(o[0],o[1]);break;case 3:t(o[0],o[1],o[2]);break;default:t.apply(n,o)}}function a(e){if(b)setTimeout(a,0,e);else{var t=m[e];if(t){b=!0;try{i(t)}finally{r(e),b=!1}}}}function s(){p=function(e){t.nextTick(function(){a(e)})}}function f(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}function c(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&a(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),p=function(n){e.postMessage(t+n,"*")}}function l(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;a(t)},p=function(t){e.port2.postMessage(t)}}function u(){var e=g.documentElement;p=function(t){var n=g.createElement("script");n.onreadystatechange=function(){a(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}function d(){p=function(e){setTimeout(a,0,e)}}if(!e.setImmediate){var p,h=1,m={},b=!1,g=e.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(e);v=v&&v.setTimeout?v:e,"[object process]"==={}.toString.call(e.process)?s():f()?c():e.MessageChannel?l():g&&"onreadystatechange"in g.createElement("script")?u():d(),v.setImmediate=o,v.clearImmediate=r}}("undefined"==typeof self?"undefined"==typeof e?this:e:self)}).call(t,function(){return this}(),n(23))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(u===clearTimeout)return clearTimeout(e);if((u===o||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{return u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}function a(){m&&p&&(m=!1,p.length?h=p.concat(h):b=-1,h.length&&s())}function s(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(p=h,h=[];++b<t;)p&&p[b].run();b=-1,t=h.length}p=null,m=!1,i(e)}}function f(e,t){this.fun=e,this.array=t}function c(){}var l,u,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{u="function"==typeof clearTimeout?clearTimeout:o}catch(e){u=o}}();var p,h=[],m=!1,b=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new f(e,t)),1!==h.length||m||r(s)},f.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){var o,r,i;/*!
* jQuery Placeholder Plugin v2.3.1
* https://github.com/mathiasbynens/jquery-placeholder
*
* Copyright 2011, 2015 Mathias Bynens
* Released under the MIT license
*/
!function(a){r=[n(2)],o=a,i="function"==typeof o?o.apply(t,r):o,!(void 0!==i&&(e.exports=i))}(function(e){function t(t){var n={},o=/^jQuery\d+$/;return e.each(t.attributes,function(e,t){t.specified&&!o.test(t.name)&&(n[t.name]=t.value)}),n}function n(t,n){var o=this,i=e(this);if(o.value===i.attr(s?"placeholder-x":"placeholder")&&i.hasClass(p.customClass))if(o.value="",i.removeClass(p.customClass),i.data("placeholder-password")){if(i=i.hide().nextAll('input[type="password"]:first').show().attr("id",i.removeAttr("id").data("placeholder-id")),t===!0)return i[0].value=n,n;i.focus()}else o==r()&&o.select()}function o(o){var r,i=this,a=e(this),f=i.id;if(!o||"blur"!==o.type||!a.hasClass(p.customClass))if(""===i.value){if("password"===i.type){if(!a.data("placeholder-textinput")){try{r=a.clone().prop({type:"text"})}catch(n){r=e("<input>").attr(e.extend(t(this),{type:"text"}))}r.removeAttr("name").data({"placeholder-enabled":!0,"placeholder-password":a,"placeholder-id":f}).bind("focus.placeholder",n),a.data({"placeholder-textinput":r,"placeholder-id":f}).before(r)}i.value="",a=a.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",a.data("placeholder-id")).show()}else{var c=a.data("placeholder-password");c&&(c[0].value="",a.attr("id",a.data("placeholder-id")).show().nextAll('input[type="password"]:last').hide().removeAttr("id"))}a.addClass(p.customClass),a[0].value=a.attr(s?"placeholder-x":"placeholder")}else a.removeClass(p.customClass)}function r(){try{return document.activeElement}catch(e){}}var i,a,s=!1,f="[object OperaMini]"===Object.prototype.toString.call(window.operamini),c="placeholder"in document.createElement("input")&&!f&&!s,l="placeholder"in document.createElement("textarea")&&!f&&!s,u=e.valHooks,d=e.propHooks,p={};c&&l?(a=e.fn.placeholder=function(){return this},a.input=!0,a.textarea=!0):(a=e.fn.placeholder=function(t){var r={customClass:"placeholder"};return p=e.extend({},r,t),this.filter((c?"textarea":":input")+"["+(s?"placeholder-x":"placeholder")+"]").not("."+p.customClass).not(":radio, :checkbox, [type=hidden]").bind({"focus.placeholder":n,"blur.placeholder":o}).data("placeholder-enabled",!0).trigger("blur.placeholder")},a.input=c,a.textarea=l,i={get:function(t){var n=e(t),o=n.data("placeholder-password");return o?o[0].value:n.data("placeholder-enabled")&&n.hasClass(p.customClass)?"":t.value},set:function(t,i){var a,s,f=e(t);return""!==i&&(a=f.data("placeholder-textinput"),s=f.data("placeholder-password"),a?(n.call(a[0],!0,i)||(t.value=i),a[0].value=i):s&&(n.call(t,!0,i)||(s[0].value=i),t.value=i)),f.data("placeholder-enabled")?(""===i?(t.value=i,t!=r()&&o.call(t)):(f.hasClass(p.customClass)&&n.call(t),t.value=i),f):(t.value=i,f)}},c||(u.input=i,d.value=i),l||(u.textarea=i,d.value=i),e(function(){e(document).delegate("form","submit.placeholder",function(){var t=e("."+p.customClass,this).each(function(){n.call(this,!0,"")});setTimeout(function(){t.each(o)},10)})}),e(window).bind("beforeunload.placeholder",function(){var t=!0;try{"javascript:void(0)"===document.activeElement.toString()&&(t=!1)}catch(e){}t&&e("."+p.customClass).each(function(){this.value=""})}))})},function(e,t){var n=e.exports={};n.pixelTrack=function(e){"function"==typeof window.fbq&&window.fbq("track",e)},n.attachBuyTicketsTrack=function(){var e=document.getElementById("register-cta");e.addEventListener("click",function(){"function"==typeof window.fbq&&window.fbq("track","Lead",{location:"topnav",type:"buy-tickets"})})},n.attachBuyTicketsTrack()}]);
|
//
// Vivado(TM)
// rundef.js: a Vivado-generated Runs Script for WSH 5.1/5.6
// Copyright 1986-2016 Xilinx, Inc. All Rights Reserved.
//
var WshShell = new ActiveXObject( "WScript.Shell" );
var ProcEnv = WshShell.Environment( "Process" );
var PathVal = ProcEnv("PATH");
if ( PathVal.length == 0 ) {
PathVal = "D:/xilink_sdx/SDx/2016.4/SDK/bin;D:/xilink_sdx/SDx/2016.4/Vivado/ids_lite/ISE/bin/nt64;D:/xilink_sdx/SDx/2016.4/Vivado/ids_lite/ISE/lib/nt64;D:/xilink_sdx/SDx/2016.4/Vivado/bin;";
} else {
PathVal = "D:/xilink_sdx/SDx/2016.4/SDK/bin;D:/xilink_sdx/SDx/2016.4/Vivado/ids_lite/ISE/bin/nt64;D:/xilink_sdx/SDx/2016.4/Vivado/ids_lite/ISE/lib/nt64;D:/xilink_sdx/SDx/2016.4/Vivado/bin;" + PathVal;
}
ProcEnv("PATH") = PathVal;
var RDScrFP = WScript.ScriptFullName;
var RDScrN = WScript.ScriptName;
var RDScrDir = RDScrFP.substr( 0, RDScrFP.length - RDScrN.length - 1 );
var ISEJScriptLib = RDScrDir + "/ISEWrap.js";
eval( EAInclude(ISEJScriptLib) );
ISEStep( "vivado",
"-log system_count_top_0_0.vds -m64 -product Vivado -mode batch -messageDb vivado.pb -notrace -source system_count_top_0_0.tcl" );
function EAInclude( EAInclFilename ) {
var EAFso = new ActiveXObject( "Scripting.FileSystemObject" );
var EAInclFile = EAFso.OpenTextFile( EAInclFilename );
var EAIFContents = EAInclFile.ReadAll();
EAInclFile.Close();
return EAIFContents;
}
|
var banner = require('./banner')
var iit = module.exports = banner.submodule('iit')
.fullName('Illinois Institute of Technology')
.location('Chicago IL 60647')
.timezone('America/New_York')
.uses('banner')
.configure({
seperateDepartments: true
, seatsListedWithSections: false
, sectionDetailsOnCrawl: false
, dummy: true
})
.rootUrl('my102.iit.edu')
.pagePaths({
termList: "/banr/bwckschd.p_disp_dyn_sched"
, term: "/banr/bwckgens.p_proc_term_date"
, listing: "/banr/bwckschd.p_get_crse_unsec"
, details: "/banr/bwckschd.p_disp_detail_sched"
})
.debug(true)
|
describe('pigLatin', function () {
it('adds "ay" to the end of words that start with a vowel', function () {
pigLatin("ear").should.equal("earay");
});
it('moves consecutive initial consonants at the beginning of a word and adds "ay"', function () {
pigLatin('spear').should.equal('earspay');
});
it('moves an initial q with a u after to the end of the word, even though the u is a vowel, and adds "ay"', function () {
pigLatin('queer').should.equal('eerquay');
});
it('moves an initia "consonants + qu" to the end of the word, and adds "ay"', function () {
pigLatin('squeal').should.equal('ealsquay');
});
it('treats an initial "y" like a consonant', function() {
pigLatin('year').should.equal('earyay');
});
it('transforms every word in a sentence', function() {
pigLatin('happy new year').should.equal('appyhay ewnay earyay');
});
});
|
const asyncRetry = require('async/retry');
const {spawnLightningCluster} = require('ln-docker-daemons');
const {test} = require('@alexbosworth/tap');
const {closeChannel} = require('./../../');
const {createChainAddress} = require('./../../');
const {createCluster} = require('./../macros');
const {createHodlInvoice} = require('./../../');
const {delay} = require('./../macros');
const {payViaPaymentRequest} = require('./../../');
const {getChainTransactions} = require('./../../');
const {getClosedChannels} = require('./../../');
const {getPendingChannels} = require('./../../');
const {getSweepTransactions} = require('./../../');
const {getUtxos} = require('./../../');
const {getWalletInfo} = require('./../../');
const {sendToChainAddress} = require('./../../');
const {settleHodlInvoice} = require('./../../');
const {setupChannel} = require('./../macros');
const {subscribeToInvoice} = require('./../../');
const {subscribeToPayViaRequest} = require('./../../');
const all = promise => Promise.all(promise);
const confirmationCount = 6;
const defaultFee = 1e3;
const interval = 125;
const maxChanTokens = Math.pow(2, 24) - 1;
const size = 2;
const times = 1000;
// Getting closed channels should return closed channels
test(`Get closed channels`, async ({end, equal}) => {
const {kill, nodes} = await spawnLightningCluster({size});
const [control, target] = nodes;
const {generate, lnd} = control;
const channelOpen = await setupChannel({
generate,
lnd,
capacity: maxChanTokens,
partner_csv_delay: 20,
to: target,
});
const closing = await closeChannel({
lnd,
tokens_per_vbyte: defaultFee,
transaction_id: channelOpen.transaction_id,
transaction_vout: channelOpen.transaction_vout,
});
const {features} = await getWalletInfo({lnd});
const isAnchors = !!features.find(n => n.bit === 23);
// Wait for channel to close
await asyncRetry({interval, times}, async () => {
await generate({});
const {channels} = await getClosedChannels({lnd});
if (!channels.length) {
throw new Error('ExpectedClosedChannel');
}
});
const {channels} = await getClosedChannels({lnd});
const [channel] = channels;
equal(channels.length, [channelOpen].length, 'Channel close listed');
// LND 0.11.1 and below do not use anchors
if (isAnchors) {
equal(maxChanTokens - channel.final_local_balance, 2810, 'Final');
} else {
equal(maxChanTokens - channel.final_local_balance, 9050, 'Final');
}
equal(channel.capacity, maxChanTokens, 'Channel capacity reflected');
equal(!!channel.close_confirm_height, true, 'Channel close height');
equal(channel.close_transaction_id, closing.transaction_id, 'Close tx id');
equal(channel.final_time_locked_balance, 0, 'Final locked balance');
equal(!!channel.id, true, 'Channel id');
equal(channel.is_breach_close, false, 'Not breach close');
equal(channel.is_cooperative_close, true, 'Is cooperative close');
equal(channel.is_funding_cancel, false, 'Not funding cancel');
equal(channel.is_local_force_close, false, 'Not local force close');
equal(channel.is_partner_closed, false, 'Partner did not close the chan');
equal(channel.is_partner_initiated, false, 'Partner did not open channel');
equal(channel.is_remote_force_close, false, 'Not remote force close');
equal(channel.partner_public_key, target.id, 'Pubkey');
equal(channel.transaction_id, channelOpen.transaction_id, 'Channel tx id');
equal(channel.transaction_vout, channelOpen.transaction_vout, 'Chan vout');
// Setup a force close to show force close channel output
const toForceClose = await setupChannel({
generate,
lnd,
capacity: 7e5,
give: 3e5,
partner_csv_delay: 20,
to: target,
});
const cancelInvoice = await createHodlInvoice({
lnd,
cltv_delta: 20,
tokens: 1e5,
});
const settleInvoice = await createHodlInvoice({
lnd,
cltv_delta: 144,
tokens: 1e5,
});
const subCancelInvoice = subscribeToInvoice({lnd, id: cancelInvoice.id});
const subSettleInvoice = subscribeToInvoice({lnd, id: settleInvoice.id});
const cancelInvoiceUpdates = [];
const settleInvoiceUpdates = [];
subCancelInvoice.on('invoice_updated', n => cancelInvoiceUpdates.push(n));
subSettleInvoice.on('invoice_updated', n => settleInvoiceUpdates.push(n));
// Kick off a payment to the cancel invoice
const payToCancel = subscribeToPayViaRequest({
lnd: target.lnd,
request: cancelInvoice.request,
});
// Kick off a payment to the settle invoice
const payToSettle = subscribeToPayViaRequest({
lnd: target.lnd,
request: settleInvoice.request,
});
await asyncRetry({interval, times}, async () => {
if (!cancelInvoiceUpdates.filter(n => !!n.is_held).length) {
throw new Error('WaitingForLockToCancelInvoice');
}
if (!settleInvoiceUpdates.filter(n => !!n.is_held).length) {
throw new Error('WaitingForLockToSettleInvoice');
}
// Push the held HTLCs to chain
await closeChannel({
lnd: target.lnd,
is_force_close: true,
transaction_id: toForceClose.transaction_id,
transaction_vout: toForceClose.transaction_vout,
});
});
// Use the preimage to sweep the settle invoice on chain
await settleHodlInvoice({lnd, secret: settleInvoice.secret});
// LND 0.12.0 requires a delay before sweeps start
const deadChans = await asyncRetry({interval: 1000, times: 99}, async () => {
const {channels} = await getClosedChannels({lnd});
if (channels.length === [toForceClose, channelOpen].length) {
return channels;
}
await target.generate({});
await generate({});
throw new Error('WaitingForForceClose');
});
const forced = deadChans.find(n => !!n.is_remote_force_close);
equal(forced.capacity, 7e5, 'Got force close capacity');
equal(!!forced.close_balance_spent_by, true, 'Got a spend id');
equal(forced.close_balance_vout !== undefined, true, 'Got a spend vout');
equal(!!forced.close_confirm_height !== undefined, true, 'Confirm height');
equal(forced.close_payments.length, 2, '2 pending payments');
equal(!!forced.close_transaction_id, true, 'Got closed tx id');
equal(!!forced.final_local_balance, true, 'Got final balance');
equal(forced.final_time_locked_balance, 0, 'Got timelock balance');
equal(forced.id, toForceClose.id, 'Got closed channel id');
equal(forced.is_breach_close, false, 'Not a breach');
equal(forced.is_cooperative_close, false, 'Not a coop close');
equal(forced.is_funding_cancel, false, 'Not a cancel');
equal(forced.is_local_force_close, false, 'Not a local force close');
equal(forced.is_partner_closed, true, 'The remote closed');
equal(forced.is_partner_initiated, false, 'Local initiated');
equal(forced.is_remote_force_close, true, 'Remote force closed');
equal(forced.partner_public_key, target.id, 'Got remote public key');
equal(forced.transaction_id, toForceClose.transaction_id, 'Got txid');
equal(forced.transaction_vout, toForceClose.transaction_vout, 'Got vout');
const cancelHtlc = forced.close_payments.find(n => !n.is_paid);
equal(cancelHtlc.is_outgoing, false, 'HTLC is incoming');
equal(cancelHtlc.is_paid, false, 'HTLC is not settled');
equal(cancelHtlc.is_pending, false, 'HTLC cannot be settled');
equal(cancelHtlc.is_refunded, false, 'HTLC has not been refunded');
equal(cancelHtlc.spent_by, undefined, 'HTLC has no sweep tx');
equal(cancelHtlc.tokens, 1e5, 'HTLC has invoice value');
equal(!!cancelHtlc.transaction_id, true, 'HTLC has tx id');
equal(cancelHtlc.transaction_vout !== undefined, true, 'HTLC has tx vout');
const settleHtlc = forced.close_payments.find(n => !!n.is_paid);
equal(settleHtlc.is_outgoing, false, 'Settle is incoming');
equal(settleHtlc.is_paid, true, 'Settle is paid');
equal(settleHtlc.is_pending, false, 'Already settled');
equal(settleHtlc.is_refunded, false, 'No refund available');
equal(!!settleHtlc.spent_by, true, 'Swept with preimage tx');
equal(settleHtlc.tokens, 1e5, 'Settled with invoice value');
equal(!!settleHtlc.transaction_id, true, 'Output tx id');
equal(settleHtlc.transaction_vout !== undefined, true, 'Output tx vout');
const alsoDead = await asyncRetry({interval: 2000, times: 99}, async () => {
const {channels} = await getClosedChannels({lnd: target.lnd});
if (channels.length === [toForceClose, channelOpen].length) {
return channels;
}
await target.generate({count: 100});
throw new Error('WaitingForTargetForceClose');
});
const forceClosed = alsoDead.find(n => !!n.is_local_force_close);
equal(forceClosed.capacity, 7e5, 'Target capacity reflected');
equal(!!forceClosed.close_balance_spent_by, true, 'Target spent by');
equal(forceClosed.close_balance_vout !== undefined, true, 'Has balance out');
equal(!!forceClosed.close_confirm_height, true, 'Has confirm height');
equal(!!forceClosed.close_payments.length, true, 'Has close payments');
equal(!!forceClosed.close_transaction_id, true, 'Has close id');
equal(forceClosed.final_local_balance, 1e5, 'Has local balance');
equal(forceClosed.final_time_locked_balance, 3e5, 'Has timelock balance');
equal(forceClosed.id, toForceClose.id, 'Has channel id');
equal(forceClosed.is_breach_close, false, 'Not breach close');
equal(forceClosed.is_cooperative_close, false, 'Not coop close');
equal(forceClosed.is_funding_cancel, false, 'Not funding cancel');
equal(forceClosed.is_local_force_close, true, 'Locally forced closed');
equal(forceClosed.is_partner_closed, false, 'Not remote closed');
equal(forceClosed.is_partner_initiated, true, 'Remote created channel');
equal(forceClosed.is_remote_force_close, false, 'Remote not force closed');
equal(forceClosed.partner_public_key, control.id, 'Got peer key');
equal(forceClosed.transaction_id, toForceClose.transaction_id, 'Got tx id');
equal(forceClosed.transaction_vout, toForceClose.transaction_vout, 'Vout');
const forcePay = forceClosed.close_payments.find(n => !!n.is_paid);
equal(forcePay.is_outgoing, true, 'Payment was outgoing');
equal(forcePay.is_paid, true, 'Payment was sent');
equal(forcePay.is_pending, false, 'Payment is settled');
equal(forcePay.is_refunded, false, 'Payment completed successfully');
equal(!!forcePay.spent_by, true, 'Payment was swept with preimage');
equal(forcePay.tokens, 1e5, 'Payment tokens amount');
equal(!!forcePay.transaction_id, true, 'Got payment transaction id');
equal(forcePay.transaction_vout !== undefined, true, 'Got payment vout');
const refundedHtlc = forceClosed.close_payments.find(n => !!n.is_refunded);
equal(refundedHtlc.is_outgoing, true, 'Payment was outgoing');
equal(refundedHtlc.is_paid, false, 'Payment was not paid');
equal(refundedHtlc.is_pending, false, 'Payment is resolved back');
equal(refundedHtlc.is_refunded, true, 'Payment refunded successfully');
equal(!!refundedHtlc.spent_by, true, 'Payment was swept with preimage');
equal(refundedHtlc.tokens, 1e5, 'Payment refund tokens amount');
equal(!!refundedHtlc.transaction_id, true, 'Got refund transaction id');
equal(refundedHtlc.transaction_vout !== undefined, true, 'Got refund vout');
await kill({});
return end();
});
|
import Vue from 'vue'
import router from './router.js'
import SocialSharing from 'vue-social-sharing'
import axios from 'axios'
Vue.prototype.$http = axios;
Vue.use(SocialSharing);
new Vue({
router: router, // routerにはrouter.jsファイルを設定します
}).$mount('#app') // routerを適用する要素を設定(マウント)します
|
/**
* Module depedencies
*/
var fs = require('fs');
var path = require('path');
var util = require('util');
var _ = require('@sailshq/lodash');
var transformTools = require('browserify-transform-tools');
module.exports = transformTools.makeStringTransform('machinepack', {}, function (code, transformOptions, done) {
// console.log('Running transform on `%s`...',transformOptions.file);
if(!transformOptions.config) {
return done(new Error('Could not find `machinepack` object in package.json file.'));
}
var filePath = transformOptions.file;
// EXTREMELY IMPORTANT:
// All of this info has to do with the TOP-LEVEL machinepack
// (i.e. if the current file being transformed is the main index.js of
// ANOTHER pack required by the top-level pack, then `packMetadata` etc
// will still be referring to the top-level pack!!)
// var packPath = transformOptions.configData.configDir;
// var packMetadata = transformOptions.config;
// var isTopLevelPackIndex = _.endsWith(filePath, path.join(packPath, 'index.js'));
// console.log('skipping... our check failed:');
// console.log('_.endsWith(filePath, path.join(packPath, \'index.js\'))');
// console.log('_.endsWith(%s, %s)', filePath, path.join(packPath, 'index.js'));
// console.log(isTopLevelPackIndex);
// console.log();
// console.log();
// So now, we need to determine whether we are looking at the `index.js` file
// of ANY machinepack (i.e. not THE machinepack). We'll determine the path pack,
// as well as load the pack metadata.
var packMetadata;
var packPath;
try {
packMetadata = JSON.parse(fs.readFileSync(path.resolve(filePath, '../package.json'), 'utf8')).machinepack;
// If we made it here, looks like this is a pack.
if (packMetadata.friendlyName){
// So we'll determine the path to the pack directory.
packPath = path.resolve(filePath, '../');
}
}
catch (e) {}
// console.log('PACKAGE.JSON PATH:',path.resolve(filePath, '../package.json'));
// console.log('PACK METADATA:',packMetadata);
// console.log('PACK PATH:',packPath);
var isThisFilePackIndex = _.isString(packPath) && _.endsWith(filePath, path.join(packPath, 'index.js'));
// If this is not the `index.js` file of a machinepack, leave
// the code alone.
if (!isThisFilePackIndex) {
return done(null, code);
}
// If this is a machinepack, replace the index.js file with
// a browserify-compatible version of the code that does not use
// Machine.pack() (because browserify doesn't know how to handle
// dynamic requires).
var shimCode = _.reduce(packMetadata.machines, function (memo, machineIdentity){
var line = util.format('module.exports[Machine.getMethodName(\'%s\')] = Machine.build( require(\'%s\') );\n', machineIdentity, './'+path.join(packMetadata.machineDir,machineIdentity));
memo += line;
return memo;
},
'// This shim was generated during browserification of this machinepack.\n'+
'// Because Machine.pack() uses dynamic require() calls, which is not supported \n'+
'// natively by browserify, the boilerplate index.js file in this pack was automatically\n'+
'// replaced with explicit requires of each machine herein.\n'+
'var Machine = require(\'machine\');\n'+
'\n'+
'module.exports = {};\n');
shimCode += '\n';
// console.log('\n------\n',shimCode,'\n\n');
return done(null, shimCode);
});
|
import $ from 'jquery';
import { DataSource } from 'data/data_source/data_source';
import { isRenderer } from 'core/utils/type';
import { noop } from 'core/utils/common';
import config from 'core/config';
import devices from 'core/devices';
import errors from 'ui/widget/ui.errors';
import executeAsyncMock from '../../../helpers/executeAsyncMock.js';
import fx from 'animation/fx';
import holdEvent from 'events/hold';
import keyboardMock from '../../../helpers/keyboardMock.js';
import pointerMock from '../../../helpers/pointerMock.js';
import registerComponent from 'core/component_registrator';
import swipeEvents from 'events/swipe';
import themes from 'ui/themes';
import ArrayStore from 'data/array_store';
import CustomStore from 'data/custom_store';
import DOMComponent from 'core/dom_component';
import List from 'ui/list';
import ScrollView from 'ui/scroll_view';
import eventsEngine from 'events/core/events_engine';
import ariaAccessibilityTestHelper from '../../../helpers/ariaAccessibilityTestHelper.js';
const LIST_ITEM_CLASS = 'dx-list-item';
const LIST_GROUP_CLASS = 'dx-list-group';
const LIST_GROUP_HEADER_CLASS = 'dx-list-group-header';
const LIST_GROUP_BODY_CLASS = 'dx-list-group-body';
const LIST_NEXT_BUTTON_CLASS = 'dx-list-next-button';
const toSelector = cssClass => {
return '.' + cssClass;
};
const isDeviceDesktop = function(assert) {
if(devices.real().deviceType !== 'desktop') {
assert.ok(true, 'skip this test on mobile devices');
return false;
}
return true;
};
const ScrollViewMock = DOMComponent.inherit({
NAME: 'dxScrollView',
_init() {
const content = this.$element().find('.scroll-view-content');
if(content.length) {
this._$scrollViewContent = content;
} else {
this._$scrollViewContent = $('<div />').addClass('scroll-view-content');
this.$element().append(this._$scrollViewContent);
}
this.callBase();
this._history = [];
this._updateCount = 0;
this._pageLoading = true;
this._loading = false;
this._pos = 0;
},
content() {
return this._$scrollViewContent;
},
pullDown() {
const pullDownHandler = this.option('onPullDown');
if($.isFunction(pullDownHandler)) {
pullDownHandler();
}
},
scrollBottom() {
const scrollBottomHandler = this.option('onReachBottom');
if($.isFunction(scrollBottomHandler)) {
scrollBottomHandler();
}
},
release(hideOrShow) {
this._history.push(new Date());
this.toggleLoading(!hideOrShow);
$(this.$element()).trigger('released');
},
toggleLoading(showOrHide) {
this._pageLoading = showOrHide;
},
update() {
this._updateCount++;
return $.Deferred().resolve().promise();
},
isFull() {
return true;
},
startLoading() {
this._loading = true;
},
finishLoading() {
this._loading = false;
},
scrollTo(pos) {
this._pos = pos;
},
scrollTop() {
return this._pos;
},
scrollOffset() {
return { top: this._pos };
},
_useTemplates() {
return false;
}
});
const moduleSetup = {
beforeEach: function() {
executeAsyncMock.setup();
this.element = $('#list');
this.originalScrollView = ScrollView;
List.mockScrollView(ScrollViewMock);
registerComponent('dxScrollView', ScrollViewMock);
this.clock = sinon.useFakeTimers();
$.fx.off = true;
},
afterEach: function() {
executeAsyncMock.teardown();
List.mockScrollView(ScrollView);
registerComponent('dxScrollView', this.originalScrollView);
this.clock.restore();
$.fx.off = false;
}
};
const LIST_GROUP_COLLAPSED_CLASS = 'dx-list-group-collapsed';
const LIST_COLLAPSIBLE_GROUPS_CLASS = 'dx-list-collapsible-groups';
QUnit.module('collapsible groups', moduleSetup, () => {
QUnit.test('collapsible groups class should be present if groups can be collapsed', function(assert) {
const $element = this.element.dxList({
items: [{ key: 'a', items: ['0'] }],
grouped: true,
collapsibleGroups: true
});
assert.ok($element.hasClass(LIST_COLLAPSIBLE_GROUPS_CLASS), 'collapsible groups class is present');
$element.dxList('option', 'collapsibleGroups', false);
assert.ok(!$element.hasClass(LIST_COLLAPSIBLE_GROUPS_CLASS), 'collapsible groups class is present');
});
QUnit.test('focus should move to first group\'s item when group expands', function(assert) {
const $element = this.element.dxList({
items: [{ key: 'a', items: ['11', '12'] }, { key: 'b', items: ['21', '22'] }],
grouped: true,
focusStateEnabled: true,
collapsibleGroups: true
});
const $headers = $element.find(toSelector(LIST_GROUP_HEADER_CLASS));
const $items = $element.find(toSelector(LIST_ITEM_CLASS));
const instance = $element.dxList('instance');
$element.trigger('focusin');
$headers.eq(1).trigger('dxclick');
$headers.eq(1).trigger('dxclick');
assert.equal(isRenderer(instance.option('focusedElement')), !!config().useJQuery, 'focusedElement is correct');
assert.ok($items.eq(2).hasClass('dx-state-focused'), 'first item of the second group is focused');
assert.notOk($items.eq(0).hasClass('dx-state-focused'), 'first item of the first group lost focus');
});
QUnit.test('focus class should not be added to any item when expanding group via api', function(assert) {
const element = this.element.dxList({
items: [{ key: 'a', items: ['11', '12'] }, { key: 'b', items: ['21', '22'] }],
grouped: true,
focusStateEnabled: true,
collapsibleGroups: true
}).dxList('instance');
const $items = this.element.find(toSelector(LIST_ITEM_CLASS));
element.expandGroup(0);
assert.notOk($items.eq(0).hasClass('dx-state-focused'), 'first item has not focused class');
});
QUnit.test('focus class should not be added to first group item when focusStateEnabled is false', function(assert) {
const $element = this.element.dxList({
items: [{ key: 'a', items: ['11', '12'] }, { key: 'b', items: ['21', '22'] }],
grouped: true,
focusStateEnabled: false,
collapsibleGroups: true
});
const $headers = $element.find(toSelector(LIST_GROUP_HEADER_CLASS));
const $items = $element.find(toSelector(LIST_ITEM_CLASS));
$element.trigger('focusin');
$headers.eq(1).trigger('dxclick');
$headers.eq(1).trigger('dxclick');
assert.notOk($items.eq(2).hasClass('dx-state-focused'), 'first item of the second group is focused');
});
QUnit.test('group body should be collapsed by click on header', function(assert) {
const $element = this.element.dxList({
items: [{ key: 'a', items: ['0'] }],
grouped: true,
collapsibleGroups: true
});
const $group = $element.find('.' + LIST_GROUP_CLASS);
const $groupHeader = $group.find('.' + LIST_GROUP_HEADER_CLASS);
$groupHeader.trigger('dxclick');
assert.ok($group.hasClass(LIST_GROUP_COLLAPSED_CLASS), 'collapsed class is present');
$groupHeader.trigger('dxclick');
assert.ok(!$group.hasClass(LIST_GROUP_COLLAPSED_CLASS), 'collapsed class is not present');
});
QUnit.test('group body should be not collapsed by click on header if collapsibleGroups is disabled', function(assert) {
const $element = this.element.dxList({
items: [{ key: 'a', items: ['0'] }],
grouped: true,
collapsibleGroups: false
});
const $group = $element.find('.' + LIST_GROUP_CLASS);
const $groupHeader = $group.find('.' + LIST_GROUP_HEADER_CLASS);
$groupHeader.trigger('dxclick');
assert.ok(!$group.hasClass(LIST_GROUP_COLLAPSED_CLASS), 'collapsed class is not present');
});
QUnit.test('group body should be not collapsed by click on header in disabled state', function(assert) {
const $element = this.element.dxList({
items: [{ key: 'a', items: ['0'] }],
grouped: true,
collapsibleGroups: true,
disabled: true
});
const $group = $element.find('.' + LIST_GROUP_CLASS);
const $groupHeader = $group.find('.' + LIST_GROUP_HEADER_CLASS);
$groupHeader.trigger('dxclick');
assert.ok(!$group.hasClass(LIST_GROUP_COLLAPSED_CLASS), 'collapsed class is not present');
});
const LIST_GROUP_HEADER_INDICATOR_CLASS = 'dx-list-group-header-indicator';
QUnit.test('group header collapsed indicator element for the Material theme', function(assert) {
const origIsMaterial = themes.isMaterial;
themes.isMaterial = () => {
return true;
};
const $element = this.element.dxList({
items: [{ key: 'a', items: ['0'] }],
grouped: true,
collapsibleGroups: true
});
const $groupHeader = $element.find(toSelector(LIST_GROUP_CLASS) + ' ' + toSelector(LIST_GROUP_HEADER_CLASS));
assert.equal($groupHeader.find(toSelector(LIST_GROUP_HEADER_INDICATOR_CLASS)).length, 1, 'group header has the collapsed indicator element for the Material theme');
themes.isMaterial = origIsMaterial;
});
QUnit.test('no group header collapsed indicator element for the Generic theme', function(assert) {
const $element = this.element.dxList({
items: [{ key: 'a', items: ['0'] }],
grouped: true,
collapsibleGroups: true
});
const $groupHeader = $element.find(toSelector(LIST_GROUP_CLASS) + ' ' + toSelector(LIST_GROUP_HEADER_CLASS));
assert.equal($groupHeader.find(toSelector(LIST_GROUP_HEADER_INDICATOR_CLASS)).length, 0, 'group header should not have collapsed indicator element for the Generic theme');
});
QUnit.test('group collapsing is animated', function(assert) {
try {
const animateSpy = sinon.spy(fx, 'animate');
const $element = this.element.dxList({
items: [{ key: 'a', items: ['0'] }],
grouped: true,
collapsibleGroups: true
});
const $group = $element.find('.' + LIST_GROUP_CLASS);
const $groupHeader = $group.find('.' + LIST_GROUP_HEADER_CLASS);
const $groupBody = $group.find('.' + LIST_GROUP_BODY_CLASS);
const groupBodyHeight = $groupBody.height();
$groupHeader.trigger('dxclick');
const args = animateSpy.getCall(0).args;
assert.ok(animateSpy.calledOnce, 'fx.animate is executed');
assert.equal(args[0].get(0), $groupBody.get(0), 'fx.animate ran on correct element');
assert.equal(args[1].type, 'custom', 'fx.animate ran with correct animation type');
assert.equal(args[1].from.height, groupBodyHeight, 'fx.animate ran with correct start height');
assert.equal(args[1].to.height, 0, 'fx.animate ran with correct end height');
} finally {
fx.animate.restore();
}
});
QUnit.test('group collapsing should update scroller position after animation', function(assert) {
const origAnimate = fx.animate;
try {
const animationDeferred = $.Deferred();
fx.animate = sinon.spy((_, options) => {
animationDeferred.done(() => {
options.complete();
});
});
const $element = this.element.dxList({
items: [{ key: 'a', items: ['0'] }],
grouped: true,
collapsibleGroups: true
});
const updateDimensionsSpy = sinon.spy();
this.element.dxList('instance').updateDimensions = updateDimensionsSpy;
const $group = $element.find('.' + LIST_GROUP_CLASS);
const $groupHeader = $group.find('.' + LIST_GROUP_HEADER_CLASS);
$groupHeader.trigger('dxclick');
assert.ok(!updateDimensionsSpy.called, 'updateDimensions is not executed');
animationDeferred.resolve();
assert.ok(updateDimensionsSpy.calledOnce, 'updateDimensions is executed');
} finally {
fx.animate = origAnimate;
}
});
QUnit.test('group should be collapsed by the collapseGroup method', function(assert) {
const origAnimate = fx.animate;
try {
const AnimationDeferred = $.Deferred();
fx.animate = sinon.spy((_, options) => {
AnimationDeferred.done(() => {
options.complete();
});
});
const $element = this.element.dxList({
items: [{ key: 'a', items: ['0'] }, { key: 'b', items: ['0'] }],
grouped: true,
collapsibleGroups: true,
disabled: true
});
const instance = $element.dxList('instance');
const $group = $element.find('.' + LIST_GROUP_CLASS);
const $groupBody = $group.find('.' + LIST_GROUP_BODY_CLASS);
const groupBodyHeight = $groupBody.height();
instance.collapseGroup(1).done(function() {
assert.ok($group.eq(1).hasClass(LIST_GROUP_COLLAPSED_CLASS), 'collapsed class is present');
const args = fx.animate.getCall(0).args;
assert.ok(fx.animate.calledOnce, 'fx.animate used');
assert.equal(args[1].type, 'custom', 'fx.animate ran with correct animation type');
assert.equal(args[1].from.height, groupBodyHeight, 'fx.animate ran with correct start height');
assert.equal(args[1].to.height, 0, 'fx.animate ran with correct end height');
assert.equal(this, instance, 'resolved on list');
});
AnimationDeferred.resolve();
} finally {
fx.animate = origAnimate;
}
});
QUnit.test('group should be stay collapsed if collapseGroup method called twice', function(assert) {
fx.off = true;
try {
const $element = this.element.dxList({
items: [{ key: 'a', items: ['0'] }, { key: 'b', items: ['0'] }],
grouped: true,
collapsibleGroups: true
});
const instance = $element.dxList('instance');
const $group = $element.find('.' + LIST_GROUP_CLASS);
const $groupBody = $group.eq(1).find('.' + LIST_GROUP_BODY_CLASS);
instance.collapseGroup(1).done(() => {
instance.collapseGroup(1).done(() => {
assert.ok($group.eq(1).hasClass(LIST_GROUP_COLLAPSED_CLASS), 'collapsed class is present');
assert.equal($groupBody.height(), 0, 'group is still collapsed');
});
});
} finally {
fx.off = false;
}
});
QUnit.test('group should be stay expanded by the expandGroup method', function(assert) {
fx.off = true;
try {
const $element = this.element.dxList({
items: [{ key: 'a', items: ['0'] }, { key: 'b', items: ['0'] }],
grouped: true,
collapsibleGroups: true
});
const instance = $element.dxList('instance');
const $group = $element.find('.' + LIST_GROUP_CLASS);
instance.expandGroup(1).done(() => {
const $groupBody = $group.eq(1).find('.' + LIST_GROUP_BODY_CLASS);
assert.notOk($group.eq(1).hasClass(LIST_GROUP_COLLAPSED_CLASS), 'group is expanded');
assert.notEqual($groupBody.height(), 0, 'group is still expanded');
});
} finally {
fx.off = false;
}
});
QUnit.test('group should be expanded by the expandGroup method', function(assert) {
const origAnimate = fx.animate;
try {
const AnimationDeferred = $.Deferred();
const $element = this.element.dxList({
items: [{ key: 'a', items: ['0'] }, { key: 'b', items: ['0'] }],
grouped: true,
collapsibleGroups: true,
disabled: true
});
const instance = $element.dxList('instance');
const $group = $element.find('.' + LIST_GROUP_CLASS);
const $groupBody = $group.find('.' + LIST_GROUP_BODY_CLASS);
const groupBodyHeight = $groupBody.height();
instance.collapseGroup(1);
this.clock.tick(1000);
fx.animate = sinon.spy((_, options) => {
AnimationDeferred.done(() => {
options.complete();
});
});
instance.expandGroup(1).done(function() {
assert.ok(!$group.eq(1).hasClass(LIST_GROUP_COLLAPSED_CLASS), 'collapsed class is not present');
const args = fx.animate.getCall(0).args;
assert.ok(fx.animate.calledOnce, 'fx.animate used');
assert.equal(args[1].type, 'custom', 'fx.animate ran with correct animation type');
assert.equal(args[1].from.height, 0, 'fx.animate ran with correct start height');
assert.equal(args[1].to.height, groupBodyHeight, 'fx.animate ran with correct end height');
assert.equal(this, instance, 'resolved on list');
});
AnimationDeferred.resolve();
} finally {
fx.animate = origAnimate;
}
});
QUnit.test('items on another page are selected when grouping is enabled', function(assert) {
const list = this.element.dxList({
dataSource: {
store: [
{ key: 'first', text: 'item 1' },
{ key: 'second', text: 'item 2' }
],
pageSize: 1,
paginate: true,
group: 'key'
},
grouped: true,
selectionMode: 'multiple',
selectedItemKeys: ['item 1', 'item 2'],
keyExpr: 'text'
}).dxList('instance');
const selectedItems = list.option('selectedItems');
assert.equal(selectedItems.length, 2, 'count of selected items');
});
QUnit.test('scrollView should be updated after group collapsed', function(assert) {
try {
List.mockScrollView(this.originalScrollView);
fx.off = true;
const $element = this.element.dxList({
dataSource: {
store: [{ key: 'a', items: ['0', '1', '2', '3', '4'] }, {
key: 'b',
items: ['0', '1', '2', '3', '4']
}],
pageSize: 1
},
height: 60,
grouped: true,
collapsibleGroups: true,
disabled: true,
pageLoadMode: 'scrollBottom'
});
const instance = $element.dxList('instance');
instance.collapseGroup(0);
this.clock.tick();
const $groups = $element.find('.' + LIST_GROUP_CLASS);
assert.equal($groups.length, 2, 'second group was loaded');
} finally {
fx.off = false;
}
});
QUnit.test('scrollView should update its position after a group has been collapsed', function(assert) {
try {
List.mockScrollView(this.originalScrollView);
fx.off = true;
const $element = this.element.dxList({
pageLoadMode: 'scrollBottom',
height: 130,
scrollingEnabled: true,
useNativeScrolling: false,
dataSource: {
load(options) {
const d = $.Deferred();
const items = [{
key: 'first',
items: [{ a: 0 }, { a: 1 }, { a: 2 }]
},
{
key: 'second',
items: [{ a: 3 }, { a: 4 }, { a: 5 }]
},
{
key: 'third',
items: [{ a: 6 }, { a: 7 }, { a: 8 }]
}];
setTimeout(() => {
d.resolve(items.slice(options.skip, options.skip + options.take));
}, 50);
return d.promise();
},
group: 'key',
pageSize: 1
},
grouped: true,
collapsibleGroups: true,
groupTemplate(data) {
return $('<div>').text(data.key);
},
itemTemplate(data) {
return $('<div>').text(data.a);
}
});
const instance = $element.dxList('instance');
const releaseSpy = sinon.spy(instance._scrollView, 'release');
this.clock.tick(50);
instance.scrollTo(200);
this.clock.tick(50);
instance.scrollTo(200);
this.clock.tick(50);
instance.collapseGroup(2);
this.clock.tick(50);
assert.ok(releaseSpy.lastCall.args[0], 'The last call of \'release\' hides load indicator');
} finally {
fx.off = false;
}
});
QUnit.test('more button shouldn\'t disappear after group collapsed with array store', function(assert) {
try {
List.mockScrollView(this.originalScrollView);
fx.off = true;
const $element = this.element.dxList({
dataSource: {
store: [
{ key: 'a', items: ['0', '1', '2'] },
{ key: 'b', items: ['0', '1', '2'] },
{ key: 'c', items: ['0', '1', '2'] },
{ key: 'd', items: ['0', '1', '2'] }],
paginate: true,
pageSize: 3
},
pageLoadMode: 'nextButton',
height: 500,
grouped: true,
collapsibleGroups: true
});
const instance = $element.dxList('instance');
instance.collapseGroup(1);
this.clock.tick();
assert.ok(instance.$element().find('.dx-list-next-button').length, 'button was not removed');
} finally {
fx.off = false;
}
});
QUnit.test('more button shouldn\'t disappear after group collapsed with custom store', function(assert) {
try {
List.mockScrollView(this.originalScrollView);
fx.off = true;
const data = [
{ key: 'a', items: ['0', '1', '2'] },
{ key: 'b', items: ['0', '1', '2'] },
{ key: 'c', items: ['0', '1', '2'] },
{ key: 'd', items: ['0', '1', '2'] }];
const $element = this.element.dxList({
dataSource: {
load() {
return data;
},
paginate: true,
pageSize: 3
},
pageLoadMode: 'nextButton',
height: 400,
grouped: true,
collapsibleGroups: true
});
const instance = $element.dxList('instance');
instance.collapseGroup(1);
this.clock.tick();
assert.ok(instance.$element().find('.dx-list-next-button').length, 'button was not removed');
} finally {
fx.off = false;
}
});
});
QUnit.module('next button', moduleSetup, () => {
const isElementHidden = $element => {
return (!$element.length || $element.is(':hidden'));
};
QUnit.test('show next button', function(assert) {
this.element.dxList({
dataSource: {
store: [1, 2, 3],
pageSize: 2
},
pageLoadMode: 'nextButton',
scrollingEnabled: true
}).dxList('instance');
const nextButton = $('.dx-list-next-button ', this.element);
assert.equal(this.element.find(toSelector(LIST_ITEM_CLASS)).length, 2, 'first page loaded');
$('.dx-button', nextButton).trigger('dxclick');
assert.equal(this.element.find(toSelector(LIST_ITEM_CLASS)).length, 3, 'second page loaded');
});
QUnit.test('showNextButton', function(assert) {
const list = this.element.dxList({
dataSource: {
store: [1, 2, 3],
pageSize: 2
},
pageLoadMode: 'scrollBottom',
scrollingEnabled: true
}).dxList('instance');
assert.equal(this.element.find(toSelector(LIST_ITEM_CLASS)).length, 2, 'first page loaded');
assert.ok(isElementHidden($('.dx-list-next-button', this.element)), 'no nextButton showed, if option = false');
assert.ok(!this.element.hasClass('dx-has-next'));
list.option('pageLoadMode', 'nextButton');
assert.ok($('.dx-list-next-button', this.element).is(':visible'), 'nextButton showed, if option = true');
assert.ok($('.dx-list-next-button', list._itemContainer()).length, 'nextButton is render in right place');
assert.ok(this.element.hasClass('dx-has-next'));
const nextButton = $('.dx-list-next-button ', this.element);
list._dataSource.isLoading = () => {
return true;
};
$('.dx-button', nextButton).trigger('dxclick');
assert.equal(this.element.find(toSelector(LIST_ITEM_CLASS)).length, 2, 'ignore nextButton click when data loading');
list._dataSource.isLoading = () => {
return false;
};
$('.dx-button', nextButton).trigger('dxclick');
assert.equal(this.element.find(toSelector(LIST_ITEM_CLASS)).length, 3, 'second page loaded');
assert.ok(isElementHidden($('.dx-list-next-button', this.element)), 'no nextButton showed, if all data is loaded');
});
QUnit.test('nextButtonText', function(assert) {
const dataSource = new DataSource({
store: [1, 2, 3],
pageSize: 2
});
const list = this.element.dxList({
dataSource,
pageLoadMode: 'nextButton',
scrollingEnabled: true,
nextButtonText: 'Text'
}).dxList('instance');
assert.equal(this.element.find('.dx-list-next-button').text(), 'Text');
list.option('nextButtonText', 'anotherText');
assert.equal(this.element.find('.dx-list-next-button').text(), 'anotherText');
});
QUnit.test('no nextButton when no dataSource', function(assert) {
const dataSource = new DataSource({
store: [1, 2, 3],
pageSize: 2
});
const list = this.element.dxList({}).dxList('instance');
assert.ok(isElementHidden($('.dx-list-next-button', this.element)));
list.option('pageLoadMode', 'scrollButton');
assert.ok(isElementHidden($('.dx-list-next-button', this.element)));
list.option('pageLoadMode', 'nextButton');
list.option('dataSource', dataSource);
assert.ok($('.dx-list-next-button', this.element).is(':visible'));
list.option('dataSource', []);
assert.ok(isElementHidden($('.dx-list-next-button', this.element)));
});
QUnit.test('nextButton should not be removed after repaint', function(assert) {
const dataSource = new DataSource({
store: [1, 2, 3],
pageSize: 2
});
const list = this.element.dxList({
dataSource,
pageLoadMode: 'nextButton'
}).dxList('instance');
list.repaint();
assert.ok($('.dx-list-next-button', this.element).text());
});
QUnit.test('nextButton should be removed after search if result items count is smaller than page size, repaintChangesOnly=true (T838645)', function(assert) {
const list = this.element.dxList({
repaintChangesOnly: true,
dataSource: {
store: ['1', '2', '3'],
pageSize: 2
},
pageLoadMode: 'nextButton',
searchEnabled: true
}).dxList('instance');
assert.ok(this.element.find(toSelector(LIST_NEXT_BUTTON_CLASS)).length, 'nextButton is shown');
list.option('searchValue', '1');
assert.notOk(this.element.find(toSelector(LIST_NEXT_BUTTON_CLASS)).length, 'nextButton is removed');
});
});
QUnit.module('options', moduleSetup, () => {
QUnit.test('dataSource as config', function(assert) {
const element = this.element.dxList({
dataSource: {
store: new ArrayStore([5, 3, 4, 2, 1]),
sort: 'this'
},
pageLoadMode: 'scrollBottom'
});
assert.equal(element.text(), '12345');
assert.deepEqual(element.dxList('instance').option('items'), [1, 2, 3, 4, 5]);
});
QUnit.test('dataSource as array', function(assert) {
const element = this.element.dxList({
dataSource: [1, 2, 3, 4, 5],
pageLoadMode: 'scrollBottom'
});
assert.equal(element.text(), '12345');
assert.deepEqual(element.dxList('instance').option('items'), [1, 2, 3, 4, 5]);
});
QUnit.test('dataSource as store', function(assert) {
const element = this.element.dxList({
dataSource: new ArrayStore([1, 2, 3, 4, 5]),
pageLoadMode: 'scrollBottom'
});
assert.equal(element.text(), '12345');
assert.deepEqual(element.dxList('instance').option('items'), [1, 2, 3, 4, 5]);
});
QUnit.test('wrapItemText option', function(assert) {
const element = this.element.dxList({
items: [1],
wrapItemText: true
});
const instance = element.dxList('instance');
const $container = instance._itemContainer();
assert.ok($container.hasClass('dx-wrap-item-text'), 'class was added');
instance.option('wrapItemText', false);
assert.notOk($container.hasClass('dx-wrap-item-text'), 'class was removed');
});
});
QUnit.module('options changed', moduleSetup, () => {
QUnit.test('dataSource', function(assert) {
const element = this.element.dxList({
dataSource: {
store: new ArrayStore([0, 1, 3, 5, 4])
},
pageLoadMode: 'scrollBottom'
});
assert.equal(element.text(), '01354');
assert.deepEqual(element.dxList('instance').option('items'), [0, 1, 3, 5, 4]);
element.dxList({
dataSource: {
store: new ArrayStore([2, 6, 8, 9, 7])
}
});
assert.equal(element.text(), '26897');
assert.deepEqual(element.dxList('instance').option('items'), [2, 6, 8, 9, 7]);
});
QUnit.test('items', function(assert) {
const element = this.element.dxList({
items: [0, 1, 3, 5, 4]
});
assert.equal(element.text(), '01354');
element.dxList({
items: [2, 6, 8, 9, 7]
});
assert.equal(element.text(), '26897');
});
QUnit.test('scrollingEnabled', function(assert) {
const list = this.element.dxList({
scrollingEnabled: false
}).dxList('instance');
assert.ok(list._scrollView.option('disabled'));
list.option('scrollingEnabled', true);
assert.ok(!list._scrollView.option('disabled'));
});
QUnit.test('scrollView disables when list is disabled', function(assert) {
const list = this.element.dxList({ disabled: false }).dxList('instance');
const scrollView = this.element.dxScrollView('instance');
assert.ok(!scrollView.option('disabled'), 'list is enabled, scrollView is enabled too');
list.option('disabled', true);
assert.ok(scrollView.option('disabled'), 'list is disabled, scrollView is disabled too');
});
QUnit.test('onItemSwipe', function(assert) {
assert.expect(2);
const swipeHandler = () => {
assert.ok(true, 'swipe handled');
};
const list = this.element.dxList({
items: [0],
onItemSwipe: swipeHandler,
itemHoldTimeout: 0,
scrollingEnabled: true
}).dxList('instance');
const item = $.proxy(function() {
return this.element.find(toSelector(LIST_ITEM_CLASS)).eq(0);
}, this);
const swipeItem = () => {
pointerMock(item()).start().swipeStart().swipe(0.5).swipeEnd(1);
};
swipeItem();
list.option('onItemSwipe', null);
swipeItem();
list.option('onItemSwipe', swipeHandler);
swipeItem();
});
QUnit.test('displayExpr option change', function(assert) {
const instance = this.element.dxList({
items: [{ id: 1, name: 'Item text', caption: 'New item text' }],
displayExpr: 'name'
}).dxList('instance');
assert.strictEqual(instance.itemElements().text(), 'Item text', 'displayExpr works');
instance.option('displayExpr', 'caption');
assert.strictEqual(instance.itemElements().text(), 'New item text', 'item text was changed');
});
QUnit.test('dxList shouldn\'t show \'Loading\' and \'No data\' at the same time than dataSource option changed', function(assert) {
const $list = $('#list').dxList({ pageLoadMode: 'scrollBottom' });
const instance = $list.dxList('instance');
const scrollView = $list.dxScrollView('instance');
assert.equal($list.find('.dx-empty-message').length, 1, 'empty message was rendered');
const dataSource = new DataSource({
store: [1, 2, 3],
pageSize: 2
});
instance.option('dataSource', dataSource);
assert.ok(scrollView._pageLoading, 'scrollBottom div is visible');
assert.equal($list.find('.dx-empty-message').length, 0, 'empty message was not rendered');
});
QUnit.test('list should be able to change grouped option after dataSource option', function(assert) {
const $element = $('#list').dxList({
dataSource: [{ key: 'parent', items: [{ text: 'child' }] }],
grouped: true
});
const instance = $element.dxList('instance');
instance.option({
dataSource: [{ text: 'one' }],
grouped: false
});
assert.notOk(instance.option('grouped'), 'grouped option was changed without exceptions');
});
QUnit.test('searchEnabled option changing', function(assert) {
const $element = $('#list').dxList({
dataSource: [1, 2, 3],
searchEnabled: true
});
const instance = $element.dxList('instance');
instance.option('searchEnabled', false);
assert.notOk($element.hasClass('dx-list-with-search'), 'list without search');
assert.notOk($element.find('.dx-list-search').length, 'hasn\'t search editor');
instance.option('searchEnabled', true);
assert.ok($element.hasClass('dx-list-with-search'), 'list with search');
assert.ok($element.children().first().hasClass('dx-list-search'), 'has search editor');
});
QUnit.test('searchValue', function(assert) {
const $element = $('#list').dxList({
dataSource: [1, 2, 3],
searchExpr: 'this'
});
const instance = $element.dxList('instance');
instance.option('searchValue', 2);
assert.deepEqual(instance.option('items'), [2], 'items');
assert.strictEqual(instance.getDataSource().searchValue(), 2, 'search value of dataSource');
});
QUnit.test('searchMode', function(assert) {
const $element = $('#list').dxList({
dataSource: [1, 21, 3],
searchExpr: 'this',
searchValue: '1'
});
const instance = $element.dxList('instance');
assert.deepEqual(instance.option('items'), [1, 21], 'items');
instance.option('searchMode', 'startswith');
assert.deepEqual(instance.option('items'), [1], 'items');
assert.strictEqual(instance.getDataSource().searchOperation(), 'startswith', 'search operation of dataSource');
});
QUnit.test('searchMode equals', function(assert) {
const $element = $('#list').dxList({
dataSource: [1, 11, 111],
searchExpr: 'this',
searchMode: 'equals',
searchValue: '1'
});
const instance = $element.dxList('instance');
assert.deepEqual(instance.option('items'), [1], 'items');
assert.strictEqual(instance.getDataSource().searchOperation(), '=', 'search operation of dataSource');
});
QUnit.test('searchExpr', function(assert) {
const $element = $('#list').dxList({
dataSource: [
{ text: 'test1', value: '3' },
{ text: 'test2', value: '3' },
{ text: 'test3', value: '2' }
],
searchExpr: 'text',
searchValue: '3'
});
const instance = $element.dxList('instance');
assert.deepEqual(instance.option('items'), [{ text: 'test3', value: '2' }], 'items');
instance.option('searchExpr', 'value');
assert.deepEqual(instance.option('items'), [{ text: 'test1', value: '3' }, {
text: 'test2',
value: '3'
}], 'items');
assert.strictEqual(instance.getDataSource().searchExpr(), 'value', 'search operation of dataSource');
});
QUnit.test('searchEditorOptions', function(assert) {
const $element = $('#list').dxList({
dataSource: [
{ text: 'test1', value: '3' },
{ text: 'test2', value: '3' },
{ text: 'test3', value: '2' }
],
searchEnabled: true,
searchEditorOptions: {
placeholder: 'Search'
}
});
const instance = $element.dxList('instance');
const searchEditorInstance = $element.children('.dx-list-search').dxTextBox('instance');
assert.strictEqual(searchEditorInstance.option('placeholder'), 'Search', 'placeholder of the search box');
instance.option('searchEditorOptions', { placeholder: 'Test' });
assert.strictEqual(searchEditorInstance.option('placeholder'), 'Test', 'placeholder of the search box');
});
QUnit.test('apply list search options if dataSource set as dataSource instance', function(assert) {
const instance = $('#list').dxList({
dataSource: new DataSource({
store: [],
searchExpr: 'test',
searchValue: '1',
searchOperation: 'contains'
}),
searchExpr: 'expr',
searchValue: '2',
searchMode: 'startsWith'
}).dxList('instance');
const ds = instance.getDataSource();
assert.strictEqual(ds.searchExpr(), 'expr', 'search expression is applied');
assert.strictEqual(ds.searchValue(), '2', 'search value is applied');
assert.strictEqual(ds.searchOperation(), 'startsWith', 'search operation is applied');
});
QUnit.test('apply dataSource options if list search options are default', function(assert) {
const instance = $('#list').dxList({
dataSource: new DataSource({
store: [],
searchExpr: 'expr',
searchValue: '2',
searchOperation: 'startsWith'
})
}).dxList('instance');
const ds = instance.getDataSource();
assert.strictEqual(ds.searchExpr(), 'expr', 'search expression is applied');
assert.strictEqual(ds.searchValue(), '2', 'search value is applied');
assert.strictEqual(ds.searchOperation(), 'startsWith', 'search operation is applied');
});
QUnit.test('dataSource change should save filter', function(assert) {
const getDataSource = data => {
return new DataSource({
store: new ArrayStore({
data
})
});
};
const data1 = [{ text: 'test 1' }, { text: 'test 2' }];
const data2 = [{ text: 'item 1' }, { text: 'item 2' }];
const instance = $('#list').dxList({
dataSource: getDataSource(data1),
searchExpr: 'text',
searchValue: '2'
}).dxList('instance');
assert.deepEqual(instance.option('items'), [{ text: 'test 2' }], 'initial items');
instance.option('dataSource', getDataSource(data2));
assert.deepEqual(instance.option('items'), [{ text: 'item 2' }], 'updated items');
});
});
QUnit.module('selection', moduleSetup, () => {
QUnit.test('should select item from invisible page', function(assert) {
const clock = sinon.useFakeTimers();
const done = assert.async();
$('#list').dxList({
selectionMode: 'single',
onSelectionChanged: (e) => {
assert.deepEqual(e.addedItems, ['Item5']);
done();
},
selectedItemKeys: 'Item5',
dataSource: {
pageSize: 3,
paginate: true,
store: new CustomStore({
load: ({ take }) => {
const deferred = $.Deferred();
setTimeout(() => deferred.resolve(['Item1', 'Item2', 'Item3', 'Item4', 'Item5', 'Item6'].slice(0, take)), 0);
return deferred.promise();
}
})
}
});
clock.tick(0);
});
QUnit.test('selection should not be removed after second click if selectionMode is single', function(assert) {
const $element = this.element.dxList({
items: [1],
selectionMode: 'single'
});
const $item = $element.find(toSelector(LIST_ITEM_CLASS)).eq(0);
$item.trigger('dxclick');
$item.trigger('dxclick');
assert.ok($item.hasClass('dx-list-item-selected'), 'item should not lose selection');
});
});
QUnit.module('events', moduleSetup, () => {
QUnit.test('onItemClick should be fired when item is clicked in ungrouped list', function(assert) {
let actionFired;
let actionData;
const $element = this.element.dxList({
items: ['0'],
grouped: false,
onItemClick(args) {
actionFired = true;
actionData = args;
}
});
const $item = $element.find(toSelector(LIST_ITEM_CLASS));
$item.trigger('dxclick');
assert.ok(actionFired, 'action fired');
assert.strictEqual($item[0], $(actionData.itemElement)[0], 'correct element passed');
assert.strictEqual(actionData.itemData, '0', 'correct element passed');
});
QUnit.test('onItemClick should be fired when item is clicked in grouped list', function(assert) {
let actionFired;
let actionData;
const items = [
{
key: 'first',
items: [{ a: 0 }, { a: 1 }, { a: 2 }]
},
{
key: 'second',
items: [{ a: 3 }, { a: 4 }, { a: 5 }]
}
];
const $element = this.element.dxList({
items,
grouped: true,
onItemClick(args) {
actionFired = true;
actionData = args;
}
});
const $item = $element.find(toSelector(LIST_ITEM_CLASS)).eq(3);
$item.trigger('dxclick');
assert.ok(actionFired, 'action fired');
assert.strictEqual($item[0], $(actionData.itemElement)[0], 'correct element passed');
assert.strictEqual(items[1].items[0], actionData.itemData, 'correct element passed');
assert.strictEqual(actionData.itemIndex.item, 0, 'correct element itemIndex passed');
assert.strictEqual(actionData.itemIndex.group, 1, 'correct groupIndex passed');
});
QUnit.test('onItemHold should be fired when item is held', function(assert) {
let actionFired;
let actionData;
const $element = this.element.dxList({
items: ['0'],
onItemHold(args) {
actionFired = true;
actionData = args;
}
});
const $item = $element.find(toSelector(LIST_ITEM_CLASS));
$item.trigger(holdEvent.name);
assert.ok(actionFired, 'action fired');
assert.strictEqual($item[0], $(actionData.itemElement)[0], 'correct element passed');
assert.strictEqual(actionData.itemData, '0', 'correct element passed');
});
QUnit.test('onItemSwipe should be fired when item is swiped', function(assert) {
let actionFired;
let actionData;
const $element = this.element.dxList({
items: ['0'],
onItemSwipe(args) {
actionFired = true;
actionData = args;
}
});
const $item = $element.find(toSelector(LIST_ITEM_CLASS));
$item.trigger({
type: swipeEvents.end,
offset: -1
});
assert.ok(actionFired, 'action fired');
assert.strictEqual($item[0], $(actionData.itemElement)[0], 'correct element passed');
assert.strictEqual(actionData.itemData, '0', 'correct element passed');
assert.equal(actionData.direction, 'left', 'correct direction passed');
$item.trigger({
type: swipeEvents.end,
offset: 1
});
assert.equal(actionData.direction, 'right', 'correct direction passed');
});
QUnit.test('onContentReady', function(assert) {
let contentReadyFired = 0;
const instance = $('#list').dxList({
onContentReady() {
contentReadyFired++;
}
}).dxList('instance');
assert.equal(contentReadyFired, 1);
instance.option('items', ['a', 'b']);
assert.equal(contentReadyFired, 2);
});
QUnit.test('onGroupRendered should fired with correct params', function(assert) {
const items = [
{
key: 'first',
items: [{ a: 0 }, { a: 1 }, { a: 2 }]
}
];
let groupRendered = 0;
let eventData = [];
const $list = $('#list').dxList({
items,
grouped: true,
onGroupRendered(args) {
eventData = args;
groupRendered++;
}
});
assert.equal(groupRendered, 1, 'event triggered');
assert.strictEqual(isRenderer(eventData.groupElement), !!config().useJQuery, 'groupElement is correct');
assert.strictEqual($(eventData.groupElement)[0], $list.find('.dx-list-group')[0], 'groupElement is correct');
assert.strictEqual(eventData.groupData, items[0], 'groupData is correct');
assert.strictEqual(eventData.groupIndex, 0, 'groupIndex is correct');
});
QUnit.test('list should prevent default behavior when context menu event is firing', function(assert) {
const $list = $('#list').dxList({
items: [{ text: 'test' }],
menuMode: 'context',
menuItems: [{ text: 'action', action: noop }]
});
const $item = $list.find('.dx-list-item').eq(0);
const contextMenuEvent = $.Event('contextmenu', { pointerType: 'mouse' });
$item.trigger(contextMenuEvent);
assert.ok(contextMenuEvent.isDefaultPrevented(), 'default prevented');
});
});
QUnit.module('dataSource integration', moduleSetup, () => {
QUnit.test('pageLoading should be ordered for async dataSource (T233998)', function(assert) {
List.mockScrollView(ScrollViewMock.inherit({
isFull() {
return false;
}
}));
const $list = $('#list').dxList({
dataSource: {
load(option) {
const deferred = $.Deferred();
setTimeout(() => {
deferred.resolve([option.skip]);
}, 100);
return deferred.promise();
},
pageSize: 1
},
pageLoadMode: 'scrollBottom'
});
this.clock.tick(300);
assert.equal($.trim($list.find('.dx-list-item').text()), '012');
});
QUnit.test('shared data source', function(assert) {
const dataSource = new DataSource();
this.element.dxList({
dataSource
});
const widget = this.element.dxList('instance');
const changedHandler = widget._proxiedDataSourceChangedHandler;
assert.ok($.isFunction(changedHandler));
assert.ok(dataSource._eventsStrategy._events['changed'].has(changedHandler));
widget._dispose();
assert.ok(!dataSource._eventsStrategy._events['changed'].has(changedHandler));
assert.ok(!widget._proxiedDataSourceChangedHandler);
assert.ok('_store' in dataSource, 'dataSource is not disposed');
assert.ok(!('_dataSource' in widget), 'dataSource is unlinked');
});
QUnit.test('aggregated source (created from options)', function(assert) {
const dataSourceConfig = {
store: new ArrayStore([])
};
this.element.dxList({
dataSource: dataSourceConfig
});
const widget = this.element.dxList('instance');
const dataSource = widget._dataSource;
assert.ok(dataSource instanceof DataSource);
assert.ok('_store' in dataSource);
widget._dispose();
assert.ok(!('_store' in dataSource), 'aggregated source is disposed');
assert.ok(!('_dataSource' in widget), 'source is unlinked');
});
QUnit.test('list shouldn\'t load dataSource again after first request fail (B253304)', function(assert) {
let loadCalled = 0;
$('#list').dxList({
dataSource: {
load() {
loadCalled++;
return $.Deferred().reject().promise();
}
}
});
assert.equal(loadCalled, 1, 'load called once');
});
QUnit.test('loading indication panel should not be shown when list has no items', function(assert) {
const element = this.element;
element.dxList({
height: 300,
pageLoadMode: 'scrollBottom',
showSelectionControls: true,
dataSource: {
paginate: true,
load() {
return $.Deferred();
}
}
});
const scrollView = element.dxScrollView('instance');
this.clock.tick();
assert.equal(scrollView._loading, false, 'scrollView not in loading state');
});
QUnit.test('list indicates loading during dataSource loading', function(assert) {
const dataSourceLoadTime = 100;
const dataSource = new DataSource({
load() {
const deferred = $.Deferred();
setTimeout(() => {
deferred.resolve([1, 2]);
}, dataSourceLoadTime);
return deferred.promise();
}
});
const element = this.element.dxList({
dataSource
});
const scrollView = element.dxScrollView('instance');
this.clock.tick(dataSourceLoadTime);
assert.equal(scrollView._loading, false, 'scrollview not in loading state after first data load');
dataSource.load();
this.clock.tick();
assert.equal(scrollView._loading, true, 'scrollview loading started on data reload');
this.clock.tick(dataSourceLoadTime);
assert.equal(scrollView._loading, false, 'scrollview loading finished on data load');
});
QUnit.test('list doesn\'t indicate loading during dataSource loading when indicateLoading = false', function(assert) {
const dataSourceLoadTime = 100;
const dataSource = new DataSource({
load() {
const deferred = $.Deferred();
setTimeout(() => {
deferred.resolve([]);
}, dataSourceLoadTime);
return deferred.promise();
}
});
const element = this.element.dxList({
dataSource,
indicateLoading: false
});
const scrollView = element.dxScrollView('instance');
this.clock.tick(dataSourceLoadTime);
assert.equal(scrollView._loading, false, 'scrollView not in loading state');
dataSource.load();
assert.equal(scrollView._loading, false, 'scrollView loading not indicated');
});
QUnit.test('setting indicateLoading to false hides load panel at once', function(assert) {
const dataSourceLoadTime = 100;
const dataSource = new DataSource({
load() {
const deferred = $.Deferred();
setTimeout(() => {
deferred.resolve([]);
}, dataSourceLoadTime);
return deferred.promise();
}
});
const element = this.element.dxList({
dataSource
});
const scrollView = element.dxScrollView('instance');
this.clock.tick(dataSourceLoadTime);
dataSource.load();
setTimeout(() => {
element.dxList('option', 'indicateLoading', false);
}, dataSourceLoadTime / 2);
this.clock.tick(dataSourceLoadTime / 2);
assert.equal(scrollView._loading, false, 'scrollview loading not indicated');
});
QUnit.test('list doesn\'t indicate loading when click more button', function(assert) {
const dataSourceLoadTime = 100;
const element = this.element.dxList({
dataSource: new DataSource({
load() {
const deferred = $.Deferred();
setTimeout(() => {
deferred.resolve([1, 2]);
}, 0);
return deferred.promise();
},
pageSize: 2
}),
pageLoadMode: 'nextButton'
});
const scrollView = element.dxScrollView('instance');
this.clock.tick(dataSourceLoadTime);
element.find('.dx-list-next-button .dx-button').trigger('dxclick');
assert.equal(scrollView._loading, false, 'scrollview loading started');
});
QUnit.test('reload', function(assert) {
let loaded = 0;
const $list = this.element.dxList({
dataSource: new DataSource({
load() {
const deferred = $.Deferred();
deferred.resolve([1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0]);
loaded++;
return deferred.promise();
}
})
});
const loadedOnInit = loaded;
const list = $list.dxList('instance');
list.scrollTo(10);
list.reload();
assert.equal(loaded, loadedOnInit + 1, 'loaded fired after reload');
assert.equal(list.scrollTop(), 0, 'scroll to top after reload');
});
QUnit.test('first item rendered when pageSize is 1 and dataSource set as array', function(assert) {
List.mockScrollView(ScrollViewMock.inherit({
isFull() {
return false;
}
}));
const $list = this.element.dxList({
pageLoadMode: 'scrollBottom',
dataSource: {
store: [1, 2, 3, 4],
pageSize: 1
}
});
assert.equal($list.find('.dx-list-item').eq(0).text(), '1', 'first item rendered');
});
QUnit.test('list should scroll to top if data source is load is happened', function(assert) {
let loaded = 0;
const data = (() => {
const result = [];
for(let i = 1; i <= 50; i++) {
result.push('item ' + i);
}
return result;
})();
const ds = new DataSource({
load() {
loaded++;
return data;
},
pageSize: 1
});
const $list = this.element.dxList({
dataSource: ds,
pageLoadMode: 'scrollBottom'
});
const instance = $list.dxList('instance');
const loadedOnInit = loaded;
instance.scrollTo(200);
assert.equal(instance.scrollTop(), 200, 'list is scrolled');
ds.pageIndex(0);
ds.load();
assert.equal(loaded, loadedOnInit + 1, 'dataSource load was fired');
assert.equal(instance.scrollTop(), 0, 'list scrolled to top');
});
});
QUnit.module('infinite list scenario', moduleSetup, () => {
QUnit.test('appending items on scroll bottom', function(assert) {
const element = this.element.dxList({
pageLoadMode: 'scrollBottom',
scrollingEnabled: true,
dataSource: {
store: new ArrayStore([1, 2, 3, 4]),
pageSize: 2
}
});
assert.deepEqual(element.dxList('instance').option('items'), [1, 2], 'correct items presented in options');
element.dxScrollView('instance').scrollBottom();
assert.deepEqual(element.dxList('instance').option('items'), [1, 2, 3, 4], 'correct items presented in options');
});
QUnit.test('scroll bottom action shouldn\'t load data if all items was loaded', function(assert) {
let count = 0;
const element = this.element.dxList({
pageLoadMode: 'scrollBottom',
scrollingEnabled: true,
dataSource: {
load() {
count++;
return [1];
},
pageSize: 2
}
});
assert.equal(count, 1, 'first page loaded');
element.dxScrollView('instance').scrollBottom();
assert.equal(count, 1, 'data source loaded, shouldn\'t load another page');
});
QUnit.test('appending items on scroll bottom', function(assert) {
const element = this.element.dxList({
pageLoadMode: 'scrollBottom',
scrollingEnabled: true,
dataSource: {
store: new ArrayStore([1, 2, 3, 4]),
pageSize: 2
}
});
assert.equal(element.text(), '12', 'correct items generated');
assert.deepEqual(element.dxList('instance').option('items'), [1, 2], 'correct items presented in options');
element.find(toSelector(LIST_ITEM_CLASS)).data('rendered', true);
element.dxScrollView('instance').scrollBottom();
assert.equal(element.text(), '1234', 'correct items generated');
assert.deepEqual(element.dxList('instance').option('items'), [1, 2, 3, 4], 'correct items presented in options');
assert.strictEqual(element.find(toSelector(LIST_ITEM_CLASS)).eq(0).data('rendered'), true, 'first item is not rerendered');
assert.strictEqual(element.find(toSelector(LIST_ITEM_CLASS)).eq(1).data('rendered'), true, 'first item is not rerendered');
element.dxScrollView('instance').scrollBottom();
assert.equal(element.dxList('instance')._startIndexForAppendedItems, null, 'does not expecting appending items if all items rendered');
});
QUnit.test('appending items on \'more\' button', function(assert) {
const element = this.element.dxList({
dataSource: {
store: new ArrayStore([1, 2, 3, 4]),
pageSize: 2
},
pageLoadMode: 'nextButton',
scrollingEnabled: true
});
assert.deepEqual(element.dxList('instance').option('items'), [1, 2], 'correct items presented in options');
element.find(toSelector(LIST_ITEM_CLASS)).data('rendered', true);
element.find('.dx-list-next-button .dx-button').trigger('dxclick');
assert.deepEqual(element.dxList('instance').option('items'), [1, 2, 3, 4], 'correct items presented in options');
assert.strictEqual(element.find(toSelector(LIST_ITEM_CLASS)).eq(0).data('rendered'), true, 'first item is not rerendered');
assert.strictEqual(element.find(toSelector(LIST_ITEM_CLASS)).eq(1).data('rendered'), true, 'first item is not rerendered');
element.find('.dx-list-next-button .dx-button').trigger('dxclick');
assert.equal(element.dxList('instance')._startIndexForAppendedItems, null, 'does not expecting appending items if all items rendered');
});
QUnit.test('more button should have default type for the Material theme', function(assert) {
const origIsMaterial = themes.isMaterial;
themes.isMaterial = () => {
return true;
};
const element = this.element.dxList({
dataSource: {
store: new ArrayStore([1, 2, 3, 4]),
pageSize: 2
},
pageLoadMode: 'nextButton',
scrollingEnabled: true
});
const button = element.find('.dx-list-next-button .dx-button').dxButton('instance');
assert.equal(button.option('type'), 'default', 'more button should have default type for the Material theme');
themes.isMaterial = origIsMaterial;
});
QUnit.test('more button should have undefined type for the Generic theme', function(assert) {
const element = this.element.dxList({
dataSource: {
store: new ArrayStore([1, 2, 3, 4]),
pageSize: 2
},
pageLoadMode: 'nextButton',
scrollingEnabled: true
});
const button = element.find('.dx-list-next-button .dx-button').dxButton('instance');
assert.equal(button.option('type'), undefined, 'more button should have undefined type for the Generic theme');
});
QUnit.test('should not expect appending items if items were appended just now', function(assert) {
const element = this.element.dxList({
pageLoadMode: 'scrollBottom',
scrollingEnabled: true,
dataSource: {
store: new ArrayStore([1, 2, 3, 4]),
pageSize: 2
}
});
element.dxScrollView('instance').scrollBottom();
assert.equal(element.dxList('instance')._startIndexForAppendedItems, null, 'flag set correctly');
});
QUnit.test('should not expect appending items if all items loaded', function(assert) {
const element = this.element.dxList({
pageLoadMode: 'scrollBottom',
scrollingEnabled: true,
dataSource: {
store: new ArrayStore([1, 2]),
pageSize: 2
}
});
element.dxScrollView('instance').scrollBottom();
assert.equal(element.dxList('instance')._startIndexForAppendedItems, null, 'flag set correctly');
});
QUnit.test('should not expect appending items if load error handled', function(assert) {
const element = this.element.dxList({
pageLoadMode: 'scrollBottom',
scrollingEnabled: true,
dataSource: {
store: new ArrayStore([1, 2, 3]),
pageSize: 2,
map: (item, index) => {
// eslint-disable-next-line no-eval
return eval(item);
}
}
});
element.dxList('instance')._dataSource.load = () => {
element.dxList('instance')._dataSource._eventsStrategy.fireEvent('loadError');
return $.Deferred().reject().promise();
};
element.dxScrollView('instance').scrollBottom();
assert.equal(element.text(), '12', 'error occurred');
assert.equal(element.dxList('instance')._startIndexForAppendedItems, null, 'flag set correctly');
});
QUnit.test('infinite loading should not happen if widget element is hidden', function(assert) {
const $element = this.element.hide().dxList({
pageLoadMode: 'scrollBottom',
scrollingEnabled: true,
dataSource: {
store: new ArrayStore([1, 2, 3, 4]),
pageSize: 2
},
onInitialized(e) {
$(e.element).dxScrollView('instance').isFull = () => {
return false;
};
}
});
this.clock.tick();
assert.deepEqual($element.dxList('option', 'items'), [1, 2], 'only first page is loaded');
});
QUnit.test('infinite loading should happen when widget element is shown', function(assert) {
const $element = this.element.hide().dxList({
pageLoadMode: 'scrollBottom',
scrollingEnabled: true,
dataSource: {
store: new ArrayStore([1, 2, 3, 4]),
pageSize: 2
},
onInitialized(e) {
$(e.element).dxScrollView('instance').isFull = () => {
return false;
};
}
});
this.clock.tick();
$element.show().triggerHandler('dxshown');
this.clock.tick();
assert.deepEqual($element.dxList('option', 'items'), [1, 2, 3, 4], 'all data loaded');
});
});
QUnit.module('scrollView interaction', moduleSetup, () => {
QUnit.test('list.updateDimensions calls scrollView.update', function(assert) {
assert.expect(4);
const list = this.element.dxList({
items: [1, 2, 3]
}).dxList('instance');
const scrollView = this.element.dxScrollView('instance');
assert.equal(scrollView._updateCount, 0, 'no update after render list');
list.updateDimensions().done(function() {
assert.ok(true);
assert.equal(this, list);
});
list.updateDimensions();
assert.equal(scrollView._updateCount, 2, '+2 after update() call');
});
QUnit.test('width & height option change should call update method of scroll view', function(assert) {
const list = this.element.dxList({
items: [1, 2, 3]
}).dxList('instance');
const scrollView = this.element.dxScrollView('instance');
const updateCount = scrollView._updateCount;
list.option('width', 100);
list.option('height', 100);
assert.equal(scrollView._updateCount, updateCount + 2, 'scroll view updated twice');
});
QUnit.test('visible option change should call update method of scroll view', function(assert) {
const list = this.element.dxList({
visible: false
}).dxList('instance');
const scrollView = this.element.dxScrollView('instance');
const updateCount = scrollView._updateCount;
list.option('visible', true);
assert.equal(scrollView._updateCount, updateCount + 1, 'scroll view updated');
});
QUnit.test('scrollView callbacks', function(assert) {
let reloaded = 0;
let nextPageCalled = 0;
let pullRefreshActionFired = 0;
let pageLoadingActionFired = 0;
const dataSource = new DataSource({
store: [1, 2, 3],
pageSize: 2
});
dataSource.pageIndex = newIndex => {
if(newIndex === 0) {
reloaded = true;
}
};
dataSource.load = () => {
dataSource._eventsStrategy.fireEvent('changed');
nextPageCalled = true;
return $.when(false);
};
const element = this.element;
element.dxList({
dataSource,
pullRefreshEnabled: true,
pageLoadMode: 'scrollBottom',
scrollingEnabled: true,
onPullRefresh() {
pullRefreshActionFired++;
},
onPageLoading() {
pageLoadingActionFired++;
}
}).dxList('instance');
element.dxScrollView('instance').pullDown();
assert.ok(reloaded, 'dataSource reloaded');
assert.equal(pullRefreshActionFired, 1, 'onPullRefresh fired');
element.dxScrollView('instance').scrollBottom();
assert.ok(nextPageCalled, 'next page loaded');
assert.equal(pageLoadingActionFired, 1, 'onPageLoading fired');
});
QUnit.test('rtlEnabled option should be passed to scrollView', function(assert) {
const list = this.element.dxList({
items: [1, 2, 3],
rtlEnabled: true
}).dxList('instance');
const scrollView = this.element.dxScrollView('instance');
assert.ok(scrollView.option('rtlEnabled'), 'rtlEnabled option is passed to scrollView on init');
list.option('rtlEnabled', false);
assert.ok(!scrollView.option('rtlEnabled'), 'rtlEnabled option is passed to scrollView on optionChange');
});
});
QUnit.module('scrollView integration', {
beforeEach: function() {
this.clock = sinon.useFakeTimers();
},
afterEach: function() {
this.clock.restore();
}
}, () => {
QUnit.test('on repaint scroll should be moved to top', function(assert) {
const $list = $('#list');
$list.height(100);
$list.dxList({
items: [1, 2, 3, 4, 5, 6, 7, 8, 9, 0],
useNativeScrolling: false
});
$list.dxList('scrollTo', 100);
$list.dxList('repaint');
assert.equal($list.dxList('scrollTop'), 0);
});
QUnit.test('on start scrollbar has correct height', function(assert) {
const $list = $('#list');
$list.height(100);
$list.dxList({
items: [1, 2, 3, 4, 5, 6, 7, 8, 9, 0],
useNativeScrolling: false
});
const $scrollViewContent = $list.find('.dx-scrollview-content');
const $scrollableScroll = $list.find('.dx-scrollable-scroll');
this.clock.tick(1);
const scrollBarSize = Math.round(Math.pow($list.height(), 2) / $scrollViewContent.height());
assert.equal($scrollableScroll.height(), scrollBarSize, 'scrollbar has correct height');
});
QUnit.test('update scroll after change items', function(assert) {
const $list = $('#list')
.dxList({
height: 50,
items: [1, 2, 3, 4, 5, 6, 7, 8, 9, 0],
useNativeScrolling: true
});
const scrollView = $list.dxScrollView('instance');
const list = $list.dxList('instance');
const contentHeight = $(scrollView.content()).height();
list.option('items', [1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0]);
const newHeight = $(scrollView.content()).height();
assert.equal(newHeight, contentHeight * 2, 'update after items was changed');
});
QUnit.test('infinite sync data loading if scrollView is not full', function(assert) {
const dataSource = new DataSource({
store: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
pageSize: 1
});
const listHeight = 60;
const $list = $('#list').height(listHeight).dxList({
dataSource,
pageLoadMode: 'scrollBottom'
});
this.clock.tick(1);
const listItems = $(toSelector(LIST_ITEM_CLASS), $list);
const itemHeight = listItems.height();
assert.ok(itemHeight * listItems.length >= listHeight);
assert.ok(itemHeight * listItems.length <= listHeight + itemHeight);
});
QUnit.test('infinite async data loading if scrollView is not full', function(assert) {
let count = 0;
const dataSource = new DataSource({
load() {
const result = $.Deferred();
setTimeout(() => {
result.resolve([count++]);
}, 400);
return result.promise();
},
pageSize: 1
});
const listHeight = 60;
const $list = $('#list').height(listHeight).dxList({
dataSource,
pageLoadMode: 'scrollBottom'
});
this.clock.tick(801); // NOTE: wait for two pages 400ms per one
const listItems = $(toSelector(LIST_ITEM_CLASS), $list);
assert.equal(listItems.eq(0).text(), '0');
assert.equal(listItems.eq(1).text(), '1');
});
QUnit.test('list should try to load next page if scrollView is not full after dimensions updated', function(assert) {
const $element = $('#list').dxList({
pageLoadMode: 'scrollBottom',
height: 300,
scrollingEnabled: true,
onInitialized(e) {
const list = e.component;
const $list = $(e.element);
$list.dxScrollView('instance').isFull = () => {
const height = list.option('height');
return height <= 300;
};
},
dataSource: {
load(options) {
const d = $.Deferred();
const items = [1, 2, 3, 4, 5, 6];
setTimeout(() => {
d.resolve(items.slice(options.skip, options.skip + options.take));
}, 50);
return d.promise();
},
pageSize: 3
}
});
this.clock.tick(100);
const instance = $element.dxList('instance');
instance.option('height', 400);
instance.updateDimensions();
this.clock.tick(100);
assert.deepEqual($element.find('.dx-list-item').length, 6, 'all data loaded');
});
QUnit.test('list should be scrolled to item from bottom by scrollToItem', function(assert) {
const $list = $('#list').dxList({
items: ['0']
});
const list = $list.dxList('instance');
const $item = list.itemElements().eq(0);
const scrollToElementSpy = sinon.spy();
$list.dxScrollView('instance').scrollToElement = scrollToElementSpy;
list.scrollToItem($item);
assert.equal(scrollToElementSpy.firstCall.args[0].get(0), $item.get(0), 'list scrolled to item');
});
QUnit.test('it should be possible to scroll to an item by denormalized index', function(assert) {
const $list = $('#list').dxList({
dataSource: new DataSource({
store: [{ group: 'Group 1', text: 'Item 1', id: 1 }, { group: 'Group 2', text: 'Item 2', id: 2 }],
key: 'id',
group: 'group'
}),
grouped: true
});
const list = $list.dxList('instance');
const $item = list.itemElements().eq(1);
const scrollToElementSpy = sinon.spy($list.dxScrollView('instance'), 'scrollToElement');
list.scrollToItem(list.option('items')[1]);
assert.equal(scrollToElementSpy.getCall(0).args[0].text(), $item.text(), 'list scrolled to correct item');
});
QUnit.test('list shouldn\'t be scrolled if item isn\'t specified', function(assert) {
const $list = $('#list').dxList({
items: ['0']
});
const list = $list.dxList('instance');
const scrollToElementSpy = sinon.spy();
$list.dxScrollView('instance').scrollToElement = scrollToElementSpy;
list.scrollToItem($());
assert.equal(scrollToElementSpy.firstCall.args[0], null, 'list wasn\'t scrolled');
});
QUnit.test('list should be scrolled to item from bottom by scrollToItem', function(assert) {
const $list = $('#list').dxList({
items: ['0']
});
const list = $list.dxList('instance');
const $item = list.itemElements().eq(0);
const scrollToElementSpy = sinon.spy();
$list.dxScrollView('instance').scrollToElement = scrollToElementSpy;
list.scrollToItem(0);
assert.equal(scrollToElementSpy.firstCall.args[0].get(0), $item.get(0), 'list scrolled to item');
});
QUnit.test('list should not fail on scrollToItem if item is a string of the specific format (T381823)', function(assert) {
const items = ['12', '1.6', '#43'];
const list = $('#list').dxList({
items,
height: 10
}).dxList('instance');
list.scrollToItem(items[1]);
assert.expect(0);
});
QUnit.test('pulldown to refresh should work when option items is set', function(assert) {
assert.expect(0);
const $list = $('#list').dxList({
items: [1, 2, 3],
pullRefreshEnabled: true
});
try {
$list.dxScrollView('refresh');
} catch(e) {
assert.ok(false, e.message);
}
});
QUnit.test('updating scrollView options should release scroll', function(assert) {
const $list = $('#list').height(1000).dxList({
items: [1, 2, 3],
pullRefreshEnabled: false
});
const releaseSpy = sinon.spy();
$list.dxScrollView('instance').release = releaseSpy;
$list.dxList('option', 'pullRefreshEnabled', true);
assert.ok(releaseSpy.calledOnce, 'list release scrollview');
});
QUnit.test('scroll position should be saved after selectionMode option changing', function(assert) {
const $list = $('#list').height(1000).dxList({
items: [1, 2, 3, 4],
selectionMode: 'none',
height: 10
});
const scrollView = $list.dxScrollView('instance');
scrollView.scrollTo(4);
const scrollTop = scrollView.scrollTop();
$list.dxList('option', 'selectionMode', 'multiple');
assert.equal(scrollView.scrollTop(), scrollTop, 'position was not changed');
});
});
QUnit.module('regressions', moduleSetup, () => {
QUnit.test('list loading does not re-render items', function(assert) {
const dataSource = new DataSource({
store: [1, 2, 3],
pageSize: 2
});
this.element.dxList({ dataSource });
assert.equal(this.element.find(toSelector(LIST_ITEM_CLASS)).length, 2);
dataSource.load();
assert.equal(this.element.find(toSelector(LIST_ITEM_CLASS)).length, 2);
});
QUnit.test('correctly handle data source errors (B230041)', function(assert) {
const list = this.element.dxList({
dataSource: {
store: new ArrayStore([1]),
select() {
throw Error('forced');
}
}
}).dxList('instance');
assert.equal(list._scrollView._history.length, 1);
list._dataSource.load();
assert.equal(list._scrollView._history.length, 2);
});
QUnit.test('B230535', function(assert) {
let clicked = 0;
this.element.dxList({
items: [1, 2, 3],
onItemClick() {
clicked++;
},
disabled: true
}).dxList('instance');
this.element.find(toSelector(LIST_ITEM_CLASS)).each(function() {
$(this).click();
assert.ok(!clicked);
});
});
QUnit.test('Q471954. dxList displays a blank area below the widget', function(assert) {
this.element.dxList({
items: [1, 2, 3]
}).dxList('instance');
const scrollView = this.element.dxScrollView('instance');
assert.ok(!scrollView._pageLoading, 'scrollBottom div is hidden');
});
QUnit.test('Q501091: dxList - onItemRendered is not called when swiped down', function(assert) {
let itemRenderedCalled = false;
const dataSource = new DataSource({
store: [1, 2, 3],
pageSize: 2
});
const list = this.element.dxList({
pageLoadMode: 'scrollBottom',
scrollingEnabled: true,
dataSource
}).dxList('instance');
list.option('onItemRendered', () => {
itemRenderedCalled = true;
});
assert.ok(!itemRenderedCalled);
this.element.dxScrollView('instance').scrollBottom();
assert.ok(itemRenderedCalled);
});
QUnit.test('onItemClick on disabled items', function(assert) {
let count = 0;
const element = this.element.dxList({
items: [
{ text: '0', disabled: true },
{ text: '1' }
],
onItemClick(e) {
count++;
},
scrollingEnabled: true
});
let item = element
.find(toSelector(LIST_ITEM_CLASS))
.last();
item.trigger('dxclick');
assert.equal(count, 1);
item = element
.find(toSelector(LIST_ITEM_CLASS))
.first();
item.trigger('dxclick');
assert.equal(count, 1);
});
});
QUnit.module('widget sizing render', {}, () => {
QUnit.test('default', function(assert) {
const $element = $('#list').dxList({ items: [1, 2, 3, 4] });
assert.ok($element.outerWidth() > 0, 'outer width of the element must be more than zero');
});
QUnit.test('change width', function(assert) {
const $element = $('#list').dxList({ items: [1, 2, 3, 4] });
const instance = $element.dxList('instance');
const customWidth = 400;
instance.option('width', customWidth);
assert.strictEqual($element.outerWidth(), customWidth, 'outer width of the element must be equal to custom width');
});
});
QUnit.module('keyboard navigation', {
beforeEach: function() {
this.clock = sinon.useFakeTimers();
},
afterEach: function() {
this.clock.restore();
}
}, () => {
QUnit.test('list scroll to focused item after press up/down arrows', function(assert) {
assert.expect(2);
const $element = $('#list').dxList({
focusStateEnabled: true,
items: [0, 1, 2, 3, 4]
});
const instance = $element.dxList('instance');
let $item = $element.find(toSelector(LIST_ITEM_CLASS)).eq(2).trigger('dxpointerdown');
let keyboard = keyboardMock($element);
const itemHeight = $item.outerHeight();
this.clock.tick();
instance.option('height', itemHeight * 3);
keyboard.keyDown('down');
assert.equal(instance.scrollTop(), itemHeight, 'item scrolled to visible area at bottom when down arrow were pressed');
$item = $element.find(toSelector(LIST_ITEM_CLASS)).eq(1);
$item.trigger('dxpointerdown');
this.clock.tick();
keyboard = keyboardMock($element);
keyboard.keyDown('up');
assert.equal(instance.scrollTop(), 0, 'item scrolled to visible area at top when up arrow were pressed');
});
QUnit.test('\'enter\'/\'space\' keys pressing on selectAll checkbox', function(assert) {
if(!isDeviceDesktop(assert)) {
return;
}
assert.expect(3);
const $element = $('#list').dxList({
showSelectionControls: true,
selectionMode: 'all',
focusStateEnabled: true,
items: [0, 1, 2, 3, 4]
});
const keyboard = keyboardMock($element);
const $selectAllCheckBox = $element.find('.dx-list-select-all-checkbox');
const $selectAllItem = $element.find('.dx-list-select-all');
const $firstItem = $element.find(toSelector(LIST_ITEM_CLASS)).eq(0);
$firstItem.trigger('dxpointerdown');
this.clock.tick();
keyboard.keyDown('up');
this.clock.tick();
assert.ok($selectAllItem.hasClass('dx-state-focused'), 'selectAll checkbox is focused');
$element.trigger($.Event('keydown', { key: 'Enter' }));
assert.ok($selectAllCheckBox.hasClass('dx-checkbox-checked'), 'selectAll checkbox is checked');
$element.trigger($.Event('keydown', { key: ' ' }));
assert.ok(!$selectAllCheckBox.hasClass('dx-checkbox-checked'), 'selectAll checkbox isn\'t checked');
});
QUnit.test('focusing on selectAll checkbox after \'down\'/\'up\' pressing', function(assert) {
if(!isDeviceDesktop(assert)) {
return;
}
assert.expect(6);
const $element = $('#list').dxList({
showSelectionControls: true,
selectionMode: 'all',
focusStateEnabled: true,
items: [0, 1, 2, 3, 4]
});
const keyboard = keyboardMock($element);
const $selectAllCheckBox = $element.find('.dx-list-select-all');
const $firstItem = $element.find(toSelector(LIST_ITEM_CLASS)).eq(0);
const $lastItem = $element.find(toSelector(LIST_ITEM_CLASS)).eq(4);
$firstItem.trigger('dxpointerdown');
this.clock.tick();
keyboard.keyDown('up');
this.clock.tick();
assert.ok($selectAllCheckBox.hasClass('dx-state-focused'), 'selectAll checkbox is focused');
keyboard.keyDown('up');
this.clock.tick();
assert.ok(!$selectAllCheckBox.hasClass('dx-state-focused'), 'selectAll checkbox isn\'t focused');
assert.ok($lastItem.hasClass('dx-state-focused'), 'last item is focused');
keyboard.keyDown('down');
this.clock.tick();
assert.ok($selectAllCheckBox.hasClass('dx-state-focused'), 'selectAll checkbox is focused');
keyboard.keyDown('down');
this.clock.tick();
assert.ok(!$selectAllCheckBox.hasClass('dx-state-focused'), 'selectAll checkbox isn\'t focused');
assert.ok($firstItem.hasClass('dx-state-focused'), 'first item is focused');
});
QUnit.test('Select all when disabled item is null (T832581)', function(assert) {
try {
const instance = $('#list').dxList({
dataSource: [null, undefined],
searchEnabled: true,
selectionMode: 'all',
showSelectionControls: true,
selectAllMode: 'allPages'
}).dxList('instance');
instance.selectAll();
} catch(e) {
assert.ok(0, 'Error is thrown: ' + e.message);
}
assert.ok(1);
});
QUnit.test('list does not scroll to item after click on it', function(assert) {
assert.expect(2);
const $element = $('#list').dxList({
focusStateEnabled: true,
items: [0, 1, 2, 3, 4]
});
const instance = $element.dxList('instance');
const $item = $element.find(toSelector(LIST_ITEM_CLASS)).eq(2);
const itemHeight = $item.outerHeight();
instance.option('height', itemHeight * 2.5);
assert.equal(instance.scrollTop(), 0, 'list scrolled to zero');
$item.trigger('dxpointerdown');
this.clock.tick();
assert.equal(instance.scrollTop(), 0, 'item was not scrolled to half-visible item by click on it');
});
QUnit.test('list scroll to focused item after press home/end', function(assert) {
assert.expect(2);
const $element = $('#list').dxList({
focusStateEnabled: true,
items: [0, 1, 2, 3, 4]
});
const instance = $element.dxList('instance');
const $item = $element.find(toSelector(LIST_ITEM_CLASS)).first();
const keyboard = keyboardMock($element);
const itemHeight = $item.outerHeight();
$element.trigger('focusin');
instance.option('height', itemHeight * 3);
keyboard.keyDown('end');
assert.roughEqual(instance.scrollTop(), itemHeight * 2, 1.0001, 'item scrolled to visible area at bottom end arrow were pressed');
keyboard.keyDown('home');
assert.equal(instance.scrollTop(), 0, 'item scrolled to visible area at top when home were pressed');
});
QUnit.test('list scroll to focused item after press pageDown', function(assert) {
assert.expect(7);
const $element = $('#list').dxList({
focusStateEnabled: true,
items: [0, 1, 2, 3, 4, 5]
});
const instance = $element.dxList('instance');
const $items = $element.find(toSelector(LIST_ITEM_CLASS));
const $item = $items.first();
const keyboard = keyboardMock($element);
const itemHeight = $item.outerHeight();
$element.trigger('focusin');
instance.option('height', itemHeight * 3);
keyboard.keyDown('pageDown');
assert.equal(isRenderer(instance.option('focusedElement')), !!config().useJQuery, 'focusedElement is correct');
assert.roughEqual(instance.scrollTop(), 0, 1.0001, 'list is not scrolled, when focusedItem is not last visible item on this page');
assert.ok($items.eq(2).hasClass('dx-state-focused'), 'focused item change to last visible item on this page');
keyboard.keyDown('pageDown');
assert.roughEqual(instance.scrollTop(), itemHeight * 2, 1.0001, 'list scrolled to next page');
assert.ok($items.eq(4).hasClass('dx-state-focused'), 'last item on new page obtained focus');
keyboard.keyDown('pageDown');
assert.roughEqual(instance.scrollTop(), itemHeight * 3, 1.0001, 'list scrolled to last page');
assert.ok($items.eq(5).hasClass('dx-state-focused'), 'last item on last page obtained focus');
});
QUnit.test('list scroll to hidden focused item after press pageDown', function(assert) {
assert.expect(3);
const $element = $('#list').dxList({
focusStateEnabled: true,
items: [0, 1, 2, 3, 4, 5, 6]
});
const instance = $element.dxList('instance');
const $items = $element.find(toSelector(LIST_ITEM_CLASS));
const $item = $items.first();
const keyboard = keyboardMock($element);
const itemHeight = $item.outerHeight();
$element.trigger('focusin');
instance.option('height', itemHeight * 3);
instance.option('focusedElement', $items.eq(3));
instance.scrollToItem($items.first());
assert.roughEqual(instance.scrollTop(), 0, 1.0001, 'list is not scrolled');
keyboard.keyDown('pageDown');
assert.roughEqual(instance.scrollTop(), itemHeight * 3, 1.0001, 'list scrolled to previous focusedItem');
assert.ok($items.eq(5).hasClass('dx-state-focused'), 'focused item change to last visible item on new page');
});
QUnit.test('list scroll to focused item after press pageUp', function(assert) {
assert.expect(6);
const $element = $('#list').dxList({
focusStateEnabled: true,
items: [0, 1, 2, 3, 4, 5]
});
const instance = $element.dxList('instance');
const $items = $element.find(toSelector(LIST_ITEM_CLASS));
const $item = $items.first();
const keyboard = keyboardMock($element);
const itemHeight = $item.outerHeight();
$element.trigger('focusin');
instance.option('height', itemHeight * 3);
instance.option('focusedElement', $items.last());
instance.scrollToItem($items.last());
keyboard.keyDown('pageUp');
assert.roughEqual(instance.scrollTop(), itemHeight * 3, 1.0001, 'list is not scrolled, when focusedItem is not first visible item on this page');
assert.ok($items.eq(3).hasClass('dx-state-focused'), 'focused item change to first visible item on this page');
keyboard.keyDown('pageUp');
assert.roughEqual(instance.scrollTop(), itemHeight, 1.0001, 'list scrolled to next page');
assert.ok($items.eq(1).hasClass('dx-state-focused'), 'first item on new page obtained focus');
keyboard.keyDown('pageUp');
assert.roughEqual(instance.scrollTop(), 0, 1.0001, 'list scrolled to first page');
assert.ok($items.eq(0).hasClass('dx-state-focused'), 'first item on first page obtained focus');
});
QUnit.test('list scroll to hidden focused item after press pageUp', function(assert) {
assert.expect(3);
const $element = $('#list').dxList({
focusStateEnabled: true,
items: [0, 1, 2, 3, 4, 5, 6]
});
const instance = $element.dxList('instance');
const $items = $element.find(toSelector(LIST_ITEM_CLASS));
const $item = $items.first();
const keyboard = keyboardMock($element);
const itemHeight = $item.outerHeight();
$element.trigger('focusin');
instance.option('height', itemHeight * 3);
instance.option('focusedElement', $items.eq(3));
instance.scrollToItem($items.last());
assert.roughEqual(instance.scrollTop(), itemHeight * 4, 1.0001, 'list is not scrolled');
keyboard.keyDown('pageUp');
assert.roughEqual(instance.scrollTop(), itemHeight, 1.0001, 'list scrolled to previous focusedItem');
assert.ok($items.eq(1).hasClass('dx-state-focused'), 'focused item change to last visible item on new page');
});
QUnit.test('list should attach keyboard events even if focusStateEnabled is false when the widget\'s onKeyboardHandled is defined', function(assert) {
const handler = sinon.stub();
const $element = $('#list');
const instance = $element.dxList({
focusStateEnabled: false,
items: [1, 2, 3]
}).dxList('instance');
instance.registerKeyHandler('enter', handler);
$element.trigger($.Event('keydown', { key: 'Enter' }));
assert.equal(handler.callCount, 0);
instance.option('onKeyboardHandled', () => true);
$element.trigger($.Event('keydown', { key: 'Enter' }));
assert.equal(handler.callCount, 1);
});
});
QUnit.module('Search', () => {
QUnit.test('Render search editor', function(assert) {
const $element = $('#list').dxList({
dataSource: [1, 2, 3],
searchEnabled: true,
searchValue: '3'
});
const $searchEditor = $element.children().first();
assert.ok($element.hasClass('dx-list-with-search'), 'list with search');
assert.ok($searchEditor.hasClass('dx-list-search'), 'has search editor');
assert.strictEqual($searchEditor.dxTextBox('instance').option('value'), '3', 'editor value');
});
QUnit.test('Search', function(assert) {
const $element = $('#list').dxList({
dataSource: [1, 2, 3],
searchEnabled: true,
searchExpr: 'this'
});
const instance = $element.dxList('instance');
const searchEditor = $element.children().first().dxTextBox('instance');
searchEditor.option('value', '2');
assert.deepEqual(instance.option('items'), [2], 'items');
assert.strictEqual(instance.option('searchValue'), '2', 'search value');
});
QUnit.testInActiveWindow('Focusing widget when there is search editor', function(assert) {
const $element = $('#list').dxList({
dataSource: [1, 2, 3],
searchEnabled: true,
searchExpr: 'this'
});
const instance = $element.dxList('instance');
instance.focus();
assert.ok($element.children('.dx-list-search').hasClass('dx-state-focused'), 'search editor is focused');
});
QUnit.test('Show warning when dataSource is not specified', function(assert) {
const instance = $('#list').dxList({
items: [1, 2, 3],
searchEnabled: true,
searchExpr: 'this'
}).dxList('instance');
const warningHandler = sinon.spy(errors, 'log');
try {
instance.option('searchValue', '2');
assert.equal(warningHandler.callCount, 1, 'warning has been called once');
assert.equal(warningHandler.getCall(0).args[0], 'W1009', 'warning has correct error id');
} finally {
warningHandler.restore();
}
});
QUnit.test('Search when searchMode is specified', function(assert) {
const $element = $('#list').dxList({
dataSource: [1, 12, 23],
searchEnabled: true,
searchExpr: 'this',
searchMode: 'startswith'
});
const instance = $element.dxList('instance');
const searchEditor = $element.children().first().dxTextBox('instance');
searchEditor.option('value', '2');
assert.deepEqual(instance.option('items'), [23], 'items');
assert.strictEqual(instance.option('searchValue'), '2', 'search value');
assert.strictEqual(instance.getDataSource().searchOperation(), 'startswith', 'search operation');
});
QUnit.test('Search in items of grouped dataSource', function(assert) {
const $element = $('#list').dxList({
dataSource: [{ key: 'a', items: [{ name: '1' }] }, { key: 'b', items: [{ name: '2' }] }],
grouped: true,
searchEnabled: true,
searchExpr: 'name'
});
const instance = $element.dxList('instance');
const expectedValue = { key: 'a', items: [{ name: '1', key: 'a' }] };
assert.equal(instance.getDataSource().searchExpr(), 'name', 'dataSource has correct searchExpr');
instance.option('searchValue', '1');
assert.deepEqual(instance.option('items')[0], expectedValue, 'items');
});
QUnit.test('Search in items of grouped dataSource with simple items', function(assert) {
const $element = $('#list').dxList({
dataSource: [{ key: 'a', items: ['1', '2'] }],
grouped: true,
searchEnabled: true
});
const instance = $element.dxList('instance');
const expectedItems = [{ key: 'a', items: [{ text: '1', key: 'a' }, { text: '2', key: 'a' }] }];
const expectedValue = { key: 'a', items: [{ text: '1', key: 'a' }] };
assert.deepEqual(instance.option('items'), expectedItems, 'items have correct structure');
assert.equal(instance.getDataSource().searchExpr(), 'text', 'dataSource has correct searchExpr');
instance.option('searchValue', '1');
assert.deepEqual(instance.option('items')[0], expectedValue, 'items');
});
// T582179
QUnit.test('Selection should not be cleared after searching', function(assert) {
const $element = $('#list').dxList({
dataSource: [1, 2, 3],
searchEnabled: true,
searchExpr: 'this',
showSelectionControls: true,
selectionMode: 'all'
});
const instance = $element.dxList('instance');
instance.selectAll();
assert.deepEqual(instance.option('selectedItemKeys'), [1, 2, 3], 'selectedItemKeys');
instance.option('searchValue', '4');
assert.deepEqual(instance.option('selectedItemKeys'), [1, 2, 3], 'selectedItemKeys');
});
QUnit.test('Delayed search value should be applied on the widget reset', function(assert) {
const clock = sinon.useFakeTimers();
const $element = $('#list').dxList({
dataSource: [1, 2, 3],
searchEnabled: true,
searchExpr: 'this',
searchTimeout: 500
});
const instance = $element.dxList('instance');
const searchBoxInstance = $element.find('.dx-list-search').dxTextBox('instance');
$(searchBoxInstance._input()).trigger('input', 'test');
instance.repaint();
clock.tick(600);
assert.equal(instance.option('searchValue'), 'test', 'Correct option');
assert.equal(searchBoxInstance._input().val(), 'test', 'Search input has the correct value');
clock.restore();
});
});
let helper;
if(devices.real().deviceType === 'desktop') {
[true, false].forEach((searchEnabled) => {
QUnit.module(`Aria accessibility, searchEnabled: ${searchEnabled}`, {
beforeEach: function() {
helper = new ariaAccessibilityTestHelper({
createWidget: ($element, options) => new List($element,
$.extend({
items: [{ text: 'Item_1' }, { text: 'Item_2' }, { text: 'Item_3' }],
searchEnabled: searchEnabled
}, options))
});
this.clock = sinon.useFakeTimers();
},
afterEach: function() {
this.clock.restore();
helper.$widget.remove();
}
}, () => {
QUnit.test('Selected: ["Item_3"] -> focusin -> focusout', function() {
helper.createWidget({ selectedItemKeys: ['Item_3'], keyExpr: 'text', selectionMode: 'single' });
if(searchEnabled) {
$(helper.$itemContainer).focusin();
} else {
helper.$widget.focusin();
}
helper.checkAttributes(searchEnabled ? helper.$itemContainer : helper.$widget, { role: 'listbox', 'aria-activedescendant': helper.focusedItemId, tabindex: '0' });
helper.checkItemsAttributes([2], { attributes: ['aria-selected'], focusedItemIndex: 2, role: 'option' });
helper.$widget.focusout();
helper.checkAttributes(searchEnabled ? helper.$itemContainer : helper.$widget, { role: 'listbox', 'aria-activedescendant': helper.focusedItemId, tabindex: '0' });
helper.checkItemsAttributes([2], { attributes: ['aria-selected'], focusedItemIndex: 2, role: 'option' });
});
QUnit.test('Selected: ["Item_1"] -> set focusedElement -> change by click', function() {
helper.createWidget({ selectedItemKeys: ['Item_1'], keyExpr: 'text', selectionMode: 'single' });
if(searchEnabled) {
$(helper.$itemContainer).focusin();
} else {
helper.$widget.focusin();
}
const $item_2 = $(helper.getItems().eq(2));
eventsEngine.trigger($item_2, 'dxclick');
eventsEngine.trigger($item_2, 'dxpointerdown');
this.clock.tick();
helper.checkAttributes(searchEnabled ? helper.$itemContainer : helper.$widget, { role: 'listbox', 'aria-activedescendant': helper.focusedItemId, tabindex: '0' });
helper.checkItemsAttributes([2], { attributes: ['aria-selected'], focusedItemIndex: 2, role: 'option' });
helper.widget.option('focusedElement', null);
helper.checkAttributes(searchEnabled ? helper.$itemContainer : helper.$widget, { role: 'listbox', tabindex: '0' });
helper.checkItemsAttributes([2], { attributes: ['aria-selected'], role: 'option' });
});
QUnit.test('Selected: ["Item_1", "Item_3"] -> select "Item_2" by click', function() {
helper.createWidget({ selectedItemKeys: ['Item_1', 'Item_3'], keyExpr: 'text', selectionMode: 'multiple' });
helper.checkAttributes(searchEnabled ? helper.$itemContainer : helper.$widget, { role: 'listbox', tabindex: '0' });
helper.checkItemsAttributes([0, 2], { attributes: ['aria-selected'], role: 'option' });
const $item_1 = $(helper.getItems().eq(1));
eventsEngine.trigger($item_1, 'dxclick');
eventsEngine.trigger($item_1, 'dxpointerdown');
this.clock.tick();
helper.checkAttributes(searchEnabled ? helper.$itemContainer : helper.$widget, { role: 'listbox', 'aria-activedescendant': helper.focusedItemId, tabindex: '0' });
helper.checkItemsAttributes([0, 1, 2], { attributes: ['aria-selected'], focusedItemIndex: 1, role: 'option' });
});
});
});
}
|
var express = require('express');
var bodyParser = require('body-parser');
var mongoose = require('mongoose');
var session = require('express-session');
var MongoStore = require('connect-mongo')(session);
var app = express();
// mongodb connection
mongoose.connect("mongodb://localhost:27017/photo-blog");
var db = mongoose.connection;
// mongo error
db.on('error', console.error.bind(console, 'Database connection error:'));
// use sessions for tracking logins
app.use(session({
secret: 'sekret',
resave: true,
saveUninitialized: false,
store: new MongoStore({
mongooseConnection: db
})
}));
// make user ID available in templates
app.use(function (req, res, next) {
res.locals.currentUser = req.session.userId;
next();
});
// parse incoming requests
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
// serve static files from /public
app.use(express.static(__dirname + '/public'));
// view engine setup
app.set('view engine', 'pug');
app.set('views', __dirname + '/views');
// include routes
var routes = require('./routes/index');
app.use('/', routes);
// catch 404 and forward to error handler
app.use(function(req, res, next) {
var err = new Error('File Not Found');
err.status = 404;
next(err);
});
// error handler
app.use(function(err, req, res, next) {
res.status(err.status || 500);
res.render('error', {
message: err.message,
error: err
});
});
// listen on port 3000
app.listen(3000, function () {
console.log('Express app listening on port 3000');
});
|
export const capitalizeFirstLetter = function (string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
export const toCamelCase = function (string) {
return string.replace(/([-:]\w)/g, function($1) { return $1.toUpperCase().replace('-','').replace(':', '') })
}
export default function formatName (name) {
return capitalizeFirstLetter(toCamelCase(name))
}
|
/**
* Created with JetBrains PhpStorm.
* MyUserInfo: taoqili
* Date: 12-6-12
* Time: 下午5:02
* To change this template use File | Settings | File Templates.
*/
UE.I18N['zh-cn'] = {
'labelMap':{
'anchor':'锚点', 'undo':'撤销', 'redo':'重做', 'bold':'加粗', 'indent':'首行缩进', 'snapscreen':'截图',
'italic':'斜体', 'underline':'下划线', 'strikethrough':'删除线', 'subscript':'下标','fontborder':'字符边框',
'superscript':'上标', 'formatmatch':'格式刷', 'source':'源代码', 'blockquote':'引用',
'pasteplain':'纯文本粘贴模式', 'selectall':'全选', 'print':'打印', 'preview':'预览',
'horizontal':'分隔线', 'removeformat':'清除格式', 'time':'时间', 'date':'日期',
'unlink':'取消链接', 'insertrow':'前插入行', 'insertcol':'前插入列', 'mergeright':'右合并单元格', 'mergedown':'下合并单元格',
'deleterow':'删除行', 'deletecol':'删除列', 'splittorows':'拆分成行',
'splittocols':'拆分成列', 'splittocells':'完全拆分单元格','deletecaption':'删除表格标题','inserttitle':'插入标题',
'mergecells':'合并多个单元格', 'deletetable':'删除表格', 'cleardoc':'清空文档','insertparagraphbeforetable':"表格前插入行",'insertcode':'代码语言',
'fontfamily':'字体', 'fontsize':'字号', 'paragraph':'段落格式', 'simpleupload':'单图上传', 'insertimage':'多图上传','edittable':'表格属性','edittd':'单元格属性', 'link':'超链接',
'emotion':'表情', 'spechars':'特殊字符', 'searchreplace':'查询替换', 'map':'Baidu地图', 'gmap':'Google地图',
'insertvideo':'视频', 'help':'帮助', 'justifyleft':'居左对齐', 'justifyright':'居右对齐', 'justifycenter':'居中对齐',
'justifyjustify':'两端对齐', 'forecolor':'字体颜色', 'backcolor':'背景色', 'insertorderedlist':'有序列表',
'insertunorderedlist':'无序列表', 'fullscreen':'全屏', 'directionalityltr':'从左向右输入', 'directionalityrtl':'从右向左输入',
'rowspacingtop':'段前距', 'rowspacingbottom':'段后距', 'pagebreak':'分页', 'insertframe':'插入Iframe', 'imagenone':'默认',
'imageleft':'左浮动', 'imageright':'右浮动', 'attachment':'附件', 'imagecenter':'居中', 'wordimage':'图片转存',
'lineheight':'行间距','edittip' :'编辑提示','customstyle':'自定义标题', 'autotypeset':'自动排版',
'webapp':'百度应用','touppercase':'字母大写', 'tolowercase':'字母小写','background':'背景','template':'模板','scrawl':'涂鸦',
'music':'音乐','inserttable':'插入表格','drafts': '从草稿箱加载', 'charts': '图表'
},
'insertorderedlist':{
'num':'1,2,3...',
'num1':'1),2),3)...',
'num2':'(1),(2),(3)...',
'cn':'一,二,三....',
'cn1':'一),二),三)....',
'cn2':'(一),(二),(三)....',
'decimal':'1,2,3...',
'lower-alpha':'a,b,c...',
'lower-roman':'i,ii,iii...',
'upper-alpha':'A,B,C...',
'upper-roman':'I,II,III...'
},
'insertunorderedlist':{
'circle':'○ 大圆圈',
'disc':'● 小黑点',
'square':'■ 小方块 ',
'dash' :'— 破折号',
'dot':' 。 小圆圈'
},
'paragraph':{'p':'段落', 'h1':'标题 1', 'h2':'标题 2', 'h3':'标题 3', 'h4':'标题 4', 'h5':'标题 5', 'h6':'标题 6'},
'fontfamily':{
'songti':'宋体',
'kaiti':'楷体',
'heiti':'黑体',
'lishu':'隶书',
'yahei':'微软雅黑',
'andaleMono':'andale mono',
'arial': 'arial',
'arialBlack':'arial black',
'comicSansMs':'comic sans ms',
'impact':'impact',
'timesNewRoman':'times new roman'
},
'customstyle':{
'tc':'标题居中',
'tl':'标题居左',
'im':'强调',
'hi':'明显强调'
},
'autoupload': {
'exceedSizeError': '文件大小超出限制',
'exceedTypeError': '文件格式不允许',
'jsonEncodeError': '服务器返回格式错误',
'loading':"正在上传...",
'loadError':"上传错误",
'errorLoadConfig': '后端配置项没有正常加载,上传插件不能正常使用!'
},
'simpleupload':{
'exceedSizeError': '文件大小超出限制',
'exceedTypeError': '文件格式不允许',
'jsonEncodeError': '服务器返回格式错误',
'loading':"正在上传...",
'loadError':"上传错误",
'errorLoadConfig': '后端配置项没有正常加载,上传插件不能正常使用!'
},
'elementPathTip':"元素路径",
'wordCountTip':"字数统计",
'wordCountMsg':'当前已输入{#count}个字符, 您还可以输入{#leave}个字符。 ',
'wordOverFlowMsg':'<span style="color:red;">字数超出最大允许值,服务器可能拒绝保存!</span>',
'ok':"确认",
'cancel':"取消",
'closeDialog':"关闭对话框",
'tableDrag':"表格拖动必须引入uiUtils.js文件!",
'autofloatMsg':"工具栏浮动依赖编辑器UI,您首先需要引入UI文件!",
'loadconfigError': '获取后台配置项请求出错,上传功能将不能正常使用!',
'loadconfigFormatError': '后台配置项返回格式出错,上传功能将不能正常使用!',
'loadconfigHttpError': '请求后台配置项http错误,上传功能将不能正常使用!',
'snapScreen_plugin':{
'browserMsg':"仅支持IE浏览器!",
'callBackErrorMsg':"服务器返回数据有误,请检查配置项之后重试。",
'uploadErrorMsg':"截图上传失败,请检查服务器端环境! "
},
'insertcode':{
'as3':'ActionScript 3',
'bash':'Bash/Shell',
'cpp':'C/C++',
'css':'CSS',
'cf':'ColdFusion',
'c#':'C#',
'delphi':'Delphi',
'diff':'Diff',
'erlang':'Erlang',
'groovy':'Groovy',
'html':'HTML',
'java':'Java',
'jfx':'JavaFX',
'js':'JavaScript',
'pl':'Perl',
'php':'PHP',
'plain':'Plain Text',
'ps':'PowerShell',
'python':'Python',
'ruby':'Ruby',
'scala':'Scala',
'sql':'SQL',
'vb':'Visual Basic',
'xml':'XML'
},
'confirmClear':"确定清空当前文档么?",
'contextMenu':{
'delete':"删除",
'selectall':"全选",
'deletecode':"删除代码",
'cleardoc':"清空文档",
'confirmclear':"确定清空当前文档么?",
'unlink':"删除超链接",
'paragraph':"段落格式",
'edittable':"表格属性",
'aligntd':"单元格对齐方式",
'aligntable':'表格对齐方式',
'tableleft':'左浮动',
'tablecenter':'居中显示',
'tableright':'右浮动',
'edittd':"单元格属性",
'setbordervisible':'设置表格边线可见',
'justifyleft':'左对齐',
'justifyright':'右对齐',
'justifycenter':'居中对齐',
'justifyjustify':'两端对齐',
'table':"表格",
'inserttable':'插入表格',
'deletetable':"删除表格",
'insertparagraphbefore':"前插入段落",
'insertparagraphafter':'后插入段落',
'deleterow':"删除当前行",
'deletecol':"删除当前列",
'insertrow':"前插入行",
'insertcol':"左插入列",
'insertrownext':'后插入行',
'insertcolnext':'右插入列',
'insertcaption':'插入表格名称',
'deletecaption':'删除表格名称',
'inserttitle':'插入表格标题行',
'deletetitle':'删除表格标题行',
'inserttitlecol':'插入表格标题列',
'deletetitlecol':'删除表格标题列',
'averageDiseRow':'平均分布各行',
'averageDisCol':'平均分布各列',
'mergeright':"向右合并",
'mergeleft':"向左合并",
'mergedown':"向下合并",
'mergecells':"合并单元格",
'splittocells':"完全拆分单元格",
'splittocols':"拆分成列",
'splittorows':"拆分成行",
'tablesort':'表格排序',
'enablesort':'设置表格可排序',
'disablesort':'取消表格可排序',
'reversecurrent':'逆序当前',
'orderbyasc':'按ASCII字符升序',
'reversebyasc':'按ASCII字符降序',
'orderbynum':'按数值大小升序',
'reversebynum':'按数值大小降序',
'borderbk':'边框底纹',
'setcolor':'表格隔行变色',
'unsetcolor':'取消表格隔行变色',
'setbackground':'选区背景隔行',
'unsetbackground':'取消选区背景',
'redandblue':'红蓝相间',
'threecolorgradient':'三色渐变',
'copy':"复制(Ctrl + c)",
'copymsg': "浏览器不支持,请使用 'Ctrl + c'",
'paste':"粘贴(Ctrl + v)",
'pastemsg': "浏览器不支持,请使用 'Ctrl + v'"
},
'copymsg': "浏览器不支持,请使用 'Ctrl + c'",
'pastemsg': "浏览器不支持,请使用 'Ctrl + v'",
'anthorMsg':"链接",
'clearColor':'清空颜色',
'standardColor':'标准颜色',
'themeColor':'主题颜色',
'property':'属性',
'default':'默认',
'modify':'修改',
'justifyleft':'左对齐',
'justifyright':'右对齐',
'justifycenter':'居中',
'justify':'默认',
'clear':'清除',
'anchorMsg':'锚点',
'delete':'删除',
'clickToUpload':"点击上传",
'unset':'尚未设置语言文件',
't_row':'行',
't_col':'列',
'more':'更多',
'pasteOpt':'粘贴选项',
'pasteSourceFormat':"保留源格式",
'tagFormat':'只保留标签',
'pasteTextFormat':'只保留文本',
'autoTypeSet':{
'mergeLine':"合并空行",
'delLine':"清除空行",
'removeFormat':"清除格式",
'indent':"首行缩进",
'alignment':"对齐方式",
'imageFloat':"图片浮动",
'removeFontsize':"清除字号",
'removeFontFamily':"清除字体",
'removeHtml':"清除冗余HTML代码",
'pasteFilter':"粘贴过滤",
'run':"执行",
'symbol':'符号转换',
'bdc2sb':'全角转半角',
'tobdc':'半角转全角'
},
'background':{
'static':{
'lang_background_normal':'背景设置',
'lang_background_local':'在线图片',
'lang_background_set':'选项',
'lang_background_none':'无背景色',
'lang_background_colored':'有背景色',
'lang_background_color':'颜色设置',
'lang_background_netimg':'网络图片',
'lang_background_align':'对齐方式',
'lang_background_position':'精确定位',
'repeatType':{'options':["居中", "横向重复", "纵向重复", "平铺","自定义"]}
},
'noUploadImage':"当前未上传过任何图片!",
'toggleSelect':"单击可切换选中状态\n原图尺寸: "
},
//===============dialog i18N=======================
'insertimage':{
'static':{
'lang_tab_remote':"插入图片", //节点
'lang_tab_upload':"本地上传",
'lang_tab_online':"在线管理",
'lang_tab_search':"图片搜索",
'lang_input_url':"地 址:",
'lang_input_size':"大 小:",
'lang_input_width':"宽度",
'lang_input_height':"高度",
'lang_input_border':"边 框:",
'lang_input_vhspace':"边 距:",
'lang_input_title':"描 述:",
'lang_input_align':'图片浮动方式:',
'lang_imgLoading':" 图片加载中……",
'lang_start_upload':"开始上传",
'lock':{'title':"锁定宽高比例"}, //属性
'searchType':{'title':"图片类型", 'options':["新闻", "壁纸", "表情", "头像"]}, //select的option
'searchTxt':{'value':"请输入搜索关键词"},
'searchBtn':{'value':"百度一下"},
'searchReset':{'value':"清空搜索"},
'noneAlign':{'title':'无浮动'},
'leftAlign':{'title':'左浮动'},
'rightAlign':{'title':'右浮动'},
'centerAlign':{'title':'居中独占一行'}
},
'uploadSelectFile':'点击选择图片',
'uploadAddFile':'继续添加',
'uploadStart':'开始上传',
'uploadPause':'暂停上传',
'uploadContinue':'继续上传',
'uploadRetry':'重试上传',
'uploadDelete':'删除',
'uploadTurnLeft':'向左旋转',
'uploadTurnRight':'向右旋转',
'uploadPreview':'预览中',
'uploadNoPreview':'不能预览',
'updateStatusReady': '选中_张图片,共_KB。',
'updateStatusConfirm': '已成功上传_张照片,_张照片上传失败',
'updateStatusFinish': '共_张(_KB),_张上传成功',
'updateStatusError': ',_张上传失败。',
'errorNotSupport': 'WebUploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器。',
'errorLoadConfig': '后端配置项没有正常加载,上传插件不能正常使用!',
'errorExceedSize':'文件大小超出',
'errorFileType':'文件格式不允许',
'errorInterrupt':'文件传输中断',
'errorUploadRetry':'上传失败,请重试',
'errorHttp':'http请求错误',
'errorServerUpload':'服务器返回出错',
'remoteLockError':"宽高不正确,不能所定比例",
'numError':"请输入正确的长度或者宽度值!例如:123,400",
'imageUrlError':"不允许的图片格式或者图片域!",
'imageLoadError':"图片加载失败!请检查链接地址或网络状态!",
'searchRemind':"请输入搜索关键词",
'searchLoading':"图片加载中,请稍后……",
'searchRetry':" :( ,抱歉,没有找到图片!请重试一次!"
},
'attachment':{
'static':{
'lang_tab_upload': '上传附件',
'lang_tab_online': '在线附件',
'lang_start_upload':"开始上传",
'lang_drop_remind':"可以将文件拖到这里,单次最多可选100个文件"
},
'uploadSelectFile':'点击选择文件',
'uploadAddFile':'继续添加',
'uploadStart':'开始上传',
'uploadPause':'暂停上传',
'uploadContinue':'继续上传',
'uploadRetry':'重试上传',
'uploadDelete':'删除',
'uploadTurnLeft':'向左旋转',
'uploadTurnRight':'向右旋转',
'uploadPreview':'预览中',
'updateStatusReady': '选中_个文件,共_KB。',
'updateStatusConfirm': '已成功上传_个文件,_个文件上传失败',
'updateStatusFinish': '共_个(_KB),_个上传成功',
'updateStatusError': ',_张上传失败。',
'errorNotSupport': 'WebUploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器。',
'errorLoadConfig': '后端配置项没有正常加载,上传插件不能正常使用!',
'errorExceedSize':'文件大小超出',
'errorFileType':'文件格式不允许',
'errorInterrupt':'文件传输中断',
'errorUploadRetry':'上传失败,请重试',
'errorHttp':'http请求错误',
'errorServerUpload':'服务器返回出错'
},
'insertvideo':{
'static':{
'lang_tab_insertV':"插入视频",
'lang_tab_searchV':"搜索视频",
'lang_tab_uploadV':"上传视频",
'lang_video_url':"视频网址",
'lang_video_size':"视频尺寸",
'lang_videoW':"宽度",
'lang_videoH':"高度",
'lang_alignment':"对齐方式",
'videoSearchTxt':{'value':"请输入搜索关键字!"},
'videoType':{'options':["全部", "热门", "娱乐", "搞笑", "体育", "科技", "综艺"]},
'videoSearchBtn':{'value':"百度一下"},
'videoSearchReset':{'value':"清空结果"},
'lang_input_fileStatus':' 当前未上传文件',
'startUpload':{'style':"background:url(upload.png) no-repeat;"},
'lang_upload_size':"视频尺寸",
'lang_upload_width':"宽度",
'lang_upload_height':"高度",
'lang_upload_alignment':"对齐方式",
'lang_format_advice':"建议使用mp4格式."
},
'numError':"请输入正确的数值,如123,400",
'floatLeft':"左浮动",
'floatRight':"右浮动",
'"default"':"默认",
'block':"独占一行",
'urlError':"输入的视频地址有误,请检查后再试!",
'loading':" 视频加载中,请等待……",
'clickToSelect':"点击选中",
'goToSource':'访问源视频',
'noVideo':" 抱歉,找不到对应的视频,请重试!",
'browseFiles':'浏览文件',
'uploadSuccess':'上传成功!',
'delSuccessFile':'从成功队列中移除',
'delFailSaveFile':'移除保存失败文件',
'statusPrompt':' 个文件已上传! ',
'flashVersionError':'当前Flash版本过低,请更新FlashPlayer后重试!',
'flashLoadingError':'Flash加载失败!请检查路径或网络状态',
'fileUploadReady':'等待上传……',
'delUploadQueue':'从上传队列中移除',
'limitPrompt1':'单次不能选择超过',
'limitPrompt2':'个文件!请重新选择!',
'delFailFile':'移除失败文件',
'fileSizeLimit':'文件大小超出限制!',
'emptyFile':'空文件无法上传!',
'fileTypeError':'文件类型不允许!',
'unknownError':'未知错误!',
'fileUploading':'上传中,请等待……',
'cancelUpload':'取消上传',
'netError':'网络错误',
'failUpload':'上传失败!',
'serverIOError':'服务器IO错误!',
'noAuthority':'无权限!',
'fileNumLimit':'上传个数限制',
'failCheck':'验证失败,本次上传被跳过!',
'fileCanceling':'取消中,请等待……',
'stopUploading':'上传已停止……',
'uploadSelectFile':'点击选择文件',
'uploadAddFile':'继续添加',
'uploadStart':'开始上传',
'uploadPause':'暂停上传',
'uploadContinue':'继续上传',
'uploadRetry':'重试上传',
'uploadDelete':'删除',
'uploadTurnLeft':'向左旋转',
'uploadTurnRight':'向右旋转',
'uploadPreview':'预览中',
'updateStatusReady': '选中_个文件,共_KB。',
'updateStatusConfirm': '成功上传_个,_个失败',
'updateStatusFinish': '共_个(_KB),_个成功上传',
'updateStatusError': ',_张上传失败。',
'errorNotSupport': 'WebUploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器。',
'errorLoadConfig': '后端配置项没有正常加载,上传插件不能正常使用!',
'errorExceedSize':'文件大小超出',
'errorFileType':'文件格式不允许',
'errorInterrupt':'文件传输中断',
'errorUploadRetry':'上传失败,请重试',
'errorHttp':'http请求错误',
'errorServerUpload':'服务器返回出错'
},
'webapp':{
'tip1':"本功能由百度APP提供,如看到此页面,请各位站长首先申请百度APPKey!",
'tip2':"申请完成之后请至ueditor.config.js中配置获得的appkey! ",
'applyFor':"点此申请",
'anthorApi':"百度API"
},
'template':{
'static':{
'lang_template_bkcolor':'背景颜色',
'lang_template_clear' : '保留原有内容',
'lang_template_select' : '选择模板'
},
'blank':"空白文档",
'blog':"博客文章",
'resume':"个人简历",
'richText':"图文混排",
'sciPapers':"科技论文"
},
'scrawl':{
'static':{
'lang_input_previousStep':"上一步",
'lang_input_nextsStep':"下一步",
'lang_input_clear':'清空',
'lang_input_addPic':'添加背景',
'lang_input_ScalePic':'缩放背景',
'lang_input_removePic':'删除背景',
'J_imgTxt':{title:'添加背景图片'}
},
'noScarwl':"尚未作画,白纸一张~",
'scrawlUpLoading':"涂鸦上传中,别急哦~",
'continueBtn':"继续",
'imageError':"糟糕,图片读取失败了!",
'backgroundUploading':'背景图片上传中,别急哦~'
},
'music':{
'static':{
'lang_input_tips':"输入歌手/歌曲/专辑,搜索您感兴趣的音乐!",
'J_searchBtn':{value:'搜索歌曲'}
},
'emptyTxt':'未搜索到相关音乐结果,请换一个关键词试试。',
'chapter':'歌曲',
'singer':'歌手',
'special':'专辑',
'listenTest':'试听'
},
'anchor':{
'static':{
'lang_input_anchorName':'锚点名字:'
}
},
'charts':{
'static':{
'lang_data_source':'数据源:',
'lang_chart_format': '图表格式:',
'lang_data_align': '数据对齐方式',
'lang_chart_align_same': '数据源与图表X轴Y轴一致',
'lang_chart_align_reverse': '数据源与图表X轴Y轴相反',
'lang_chart_title': '图表标题',
'lang_chart_main_title': '主标题:',
'lang_chart_sub_title': '子标题:',
'lang_chart_x_title': 'X轴标题:',
'lang_chart_y_title': 'Y轴标题:',
'lang_chart_tip': '提示文字',
'lang_cahrt_tip_prefix': '提示文字前缀:',
'lang_cahrt_tip_description': '仅饼图有效, 当鼠标移动到饼图中相应的块上时,提示框内的文字的前缀',
'lang_chart_data_unit': '数据单位',
'lang_chart_data_unit_title': '单位:',
'lang_chart_data_unit_description': '显示在每个数据点上的数据的单位, 比如: 温度的单位 ℃',
'lang_chart_type': '图表类型:',
'lang_prev_btn': '上一个',
'lang_next_btn': '下一个'
}
},
'emotion':{
'static':{
'lang_input_choice':'精选',
'lang_input_Tuzki':'兔斯基',
'lang_input_BOBO':'BOBO',
'lang_input_lvdouwa':'绿豆蛙',
'lang_input_babyCat':'baby猫',
'lang_input_bubble':'泡泡',
'lang_input_youa':'有啊'
}
},
'gmap':{
'static':{
'lang_input_address':'地址',
'lang_input_search':'搜索',
'address':{value:"北京"}
},
searchError:'无法定位到该地址!'
},
'help':{
'static':{
'lang_input_about':'关于UEditor',
'lang_input_shortcuts':'快捷键',
'lang_input_introduction':'UEditor是由百度web前端研发部开发的所见即所得富文本web编辑器,具有轻量,可定制,注重用户体验等特点。开源基于BSD协议,允许自由使用和修改代码。',
'lang_Txt_shortcuts':'快捷键',
'lang_Txt_func':'功能',
'lang_Txt_bold':'给选中字设置为加粗',
'lang_Txt_copy':'复制选中内容',
'lang_Txt_cut':'剪切选中内容',
'lang_Txt_Paste':'粘贴',
'lang_Txt_undo':'重新执行上次操作',
'lang_Txt_redo':'撤销上一次操作',
'lang_Txt_italic':'给选中字设置为斜体',
'lang_Txt_underline':'给选中字加下划线',
'lang_Txt_selectAll':'全部选中',
'lang_Txt_visualEnter':'软回车',
'lang_Txt_fullscreen':'全屏'
}
},
'insertframe':{
'static':{
'lang_input_address':'地址:',
'lang_input_width':'宽度:',
'lang_input_height':'高度:',
'lang_input_isScroll':'允许滚动条:',
'lang_input_frameborder':'显示框架边框:',
'lang_input_alignMode':'对齐方式:',
'align':{title:"对齐方式", options:["默认", "左对齐", "右对齐", "居中"]}
},
'enterAddress':'请输入地址!'
},
'link':{
'static':{
'lang_input_text':'文本内容:',
'lang_input_url':'链接地址:',
'lang_input_title':'标题:',
'lang_input_target':'是否在新窗口打开:'
},
'validLink':'只支持选中一个链接时生效',
'httpPrompt':'您输入的超链接中不包含http等协议名称,默认将为您添加http://前缀'
},
'map':{
'static':{
lang_city:"城市",
lang_address:"地址",
city:{value:"北京"},
lang_search:"搜索",
lang_dynamicmap:"插入动态地图"
},
cityMsg:"请选择城市",
errorMsg:"抱歉,找不到该位置!"
},
'searchreplace':{
'static':{
lang_tab_search:"查找",
lang_tab_replace:"替换",
lang_search1:"查找",
lang_search2:"查找",
lang_replace:"替换",
lang_searchReg:'支持正则表达式,添加前后斜杠标示为正则表达式,例如“/表达式/”',
lang_searchReg1:'支持正则表达式,添加前后斜杠标示为正则表达式,例如“/表达式/”',
lang_case_sensitive1:"区分大小写",
lang_case_sensitive2:"区分大小写",
nextFindBtn:{value:"下一个"},
preFindBtn:{value:"上一个"},
nextReplaceBtn:{value:"下一个"},
preReplaceBtn:{value:"上一个"},
repalceBtn:{value:"替换"},
repalceAllBtn:{value:"全部替换"}
},
getEnd:"已经搜索到文章末尾!",
getStart:"已经搜索到文章头部",
countMsg:"总共替换了{#count}处!"
},
'snapscreen':{
'static':{
lang_showMsg:"截图功能需要首先安装UEditor截图插件! ",
lang_download:"点此下载",
lang_step1:"第一步,下载UEditor截图插件并运行安装。",
lang_step2:"第二步,插件安装完成后即可使用,如不生效,请重启浏览器后再试!"
}
},
'spechars':{
'static':{},
tsfh:"特殊字符",
lmsz:"罗马字符",
szfh:"数学字符",
rwfh:"日文字符",
xlzm:"希腊字母",
ewzm:"俄文字符",
pyzm:"拼音字母",
yyyb:"英语音标",
zyzf:"其他"
},
'edittable':{
'static':{
'lang_tableStyle':'表格样式',
'lang_insertCaption':'添加表格名称行',
'lang_insertTitle':'添加表格标题行',
'lang_insertTitleCol':'添加表格标题列',
'lang_orderbycontent':"使表格内容可排序",
'lang_tableSize':'自动调整表格尺寸',
'lang_autoSizeContent':'按表格文字自适应',
'lang_autoSizePage':'按页面宽度自适应',
'lang_example':'示例',
'lang_borderStyle':'表格边框',
'lang_color':'颜色:'
},
captionName:'表格名称',
titleName:'标题',
cellsName:'内容',
errorMsg:'有合并单元格,不可排序'
},
'edittip':{
'static':{
lang_delRow:'删除整行',
lang_delCol:'删除整列'
}
},
'edittd':{
'static':{
lang_tdBkColor:'背景颜色:'
}
},
'formula':{
'static':{
}
},
'wordimage':{
'static':{
lang_resave:"转存步骤",
uploadBtn:{src:"upload.png",alt:"上传"},
clipboard:{style:"background: url(copy.png) -153px -1px no-repeat;"},
lang_step:"1、点击顶部复制按钮,将地址复制到剪贴板;2、点击添加照片按钮,在弹出的对话框中使用Ctrl+V粘贴地址;3、点击打开后选择图片上传流程。"
},
'fileType':"图片",
'flashError':"FLASH初始化失败,请检查FLASH插件是否正确安装!",
'netError':"网络连接错误,请重试!",
'copySuccess':"图片地址已经复制!",
'flashI18n':{} //留空默认中文
},
'autosave': {
'saving':'保存中...',
'success':'本地保存成功'
}
};
|
// Copyright 2018 OpenStax Poland
// Licensed under the MIT license. See LICENSE file in the project root for
// full license text.
import schema from './schema'
import renderInline from './render'
import * as commands from './commands'
export default function XReference() {
return { commands, schema, renderInline }
}
|
/*
* mobile navigation base tag unit tests
*/
(function($){
var baseDir = $.mobile.path.parseUrl($("base").attr("href")).directory,
contentDir = $.mobile.path.makePathAbsolute("../content/", baseDir),
home = location.pathname + location.search,
baseTagEnabled = $.mobile.dynamicBaseTagEnabled,
baseTagSupported = $.support.dynamicBaseTag;
module('jquery.mobile.navigation.js - base tag', {
setup: function(){
$.mobile.navigate.history.stack = [];
$.mobile.navigate.history.activeIndex = 0;
$.testHelper.navReset( home );
}
});
asyncTest( "can navigate between internal and external pages", function(){
$.testHelper.pageSequence([
function(){
// Navigate from default internal page to another internal page.
$.testHelper.openPage( "#internal-page-2" );
},
function(){
// Verify that we are on the 2nd internal page.
$.testHelper.assertUrlLocation({
push: home + "#internal-page-2",
hash: "internal-page-2",
report: "navigate to internal page"
});
// Navigate to a page that is in the base directory. Note that the application
// document and this new page are *NOT* in the same directory.
$("#internal-page-2 .bp1").click();
},
function(){
// Verify that we are on the expected page.
$.testHelper.assertUrlLocation({
hashOrPush: baseDir + "base-page-1.html",
report: "navigate from internal page to page in base directory"
});
// Navigate to another page in the same directory as the current page.
$("#base-page-1 .bp2").click();
},
function(){
// Verify that we are on the expected page.
$.testHelper.assertUrlLocation({
hashOrPush: baseDir + "base-page-2.html",
report: "navigate from base directory page to another base directory page"
});
// Navigate to another page in a directory that is the sibling of the base.
$("#base-page-2 .cp1").click();
},
function(){
// Verify that we are on the expected page.
$.testHelper.assertUrlLocation({
hashOrPush: contentDir + "content-page-1.html",
report: "navigate from base directory page to a page in a different directory hierarchy"
});
// Navigate to another page in a directory that is the sibling of the base.
$("#content-page-1 .cp2").click();
},
function(){
// Verify that we are on the expected page.
$.testHelper.assertUrlLocation({
hashOrPush: contentDir + "content-page-2.html",
report: "navigate to another page within the same non-base directory hierarchy"
});
// Navigate to an internal page.
$("#content-page-2 .ip1").click();
},
function(){
// Verify that we are on the expected page.
// the hash based nav result (hash:) is dictate by the fact that #internal-page-1
// is the original root page element
$.testHelper.assertUrlLocation({
hashOrPush: home,
report: "navigate from a page in a non-base directory to an internal page"
});
// Try calling changePage() directly with a relative path.
$.mobile.changePage("base-page-1.html");
},
function(){
// Verify that we are on the expected page.
$.testHelper.assertUrlLocation({
hashOrPush: baseDir + "base-page-1.html",
report: "call changePage() with a filename (no path)"
});
// Try calling changePage() directly with a relative path.
$.mobile.changePage("../content/content-page-1.html");
},
function(){
// Verify that we are on the expected page.
$.testHelper.assertUrlLocation({
hashOrPush: contentDir + "content-page-1.html",
report: "call changePage() with a relative path containing up-level references"
});
// Try calling changePage() with an id
$.mobile.changePage("content-page-2.html");
},
function(){
// Verify that we are on the expected page.
$.testHelper.assertUrlLocation({
hashOrPush: contentDir + "content-page-2.html",
report: "call changePage() with a relative path should resolve relative to current page"
});
// test that an internal page works
$("a.ip2").click();
},
function(){
// Verify that we are on the expected page.
$.testHelper.assertUrlLocation({
hash: "internal-page-2",
push: home + "#internal-page-2",
report: "call changePage() with a page id"
});
// Try calling changePage() with an id
$.mobile.changePage("internal-page-1");
},
function(){
// Verify that we are on the expected page.
$.testHelper.assertUrlLocation({
hash: "internal-page-2",
push: home + "#internal-page-2",
report: "calling changePage() with a page id that is not prefixed with '#' should not change page"
});
// Previous load should have failed and left us on internal-page-2.
start();
}
]);
});
asyncTest( "internal form with no action submits to document URL", function(){
$.testHelper.pageSequence([
// open our test page
function(){
$.testHelper.openPage( "#internal-no-action-form-page" );
},
function(){
$( "#internal-no-action-form-page form" ).eq( 0 ).submit();
},
function(){
$.testHelper.assertUrlLocation({
hashOrPush: location.pathname + "?foo=1&bar=2",
report: "hash should match document url and not base url"
});
start();
}
]);
});
asyncTest( "external page form with no action submits to external page URL", function(){
$.testHelper.pageSequence([
function(){
// Go to an external page that has a form.
$("#internal-page-1 .cp1").click();
},
function(){
// Make sure we actually navigated to the external page.
$.testHelper.assertUrlLocation({
hashOrPush: contentDir + "content-page-1.html",
report: "should be on content-page-1.html"
});
// Now submit the form in the external page.
$("#content-page-1 form").eq(0).submit();
},
function(){
$.testHelper.assertUrlLocation({
hashOrPush: contentDir + "content-page-1.html?foo=1&bar=2",
report: "hash should match page url and not document url"
});
start();
}
]);
});
var testBaseTagAlteration = function( assertions ) {
$.testHelper.pageSequence([
function(){
$.mobile.changePage( "../../base-change.html" );
},
function(){
assertions();
window.history.back();
},
function() {
start();
}
]);
};
asyncTest( "disabling base tag changes should prevent base href value changes", function() {
var baseHref = $( "base" ).attr( "href" );
$.mobile.dynamicBaseEnabled = false;
testBaseTagAlteration(function() {
if ( $.support.dynamicBaseTag ) {
equal( baseHref, $( "base" ).attr( "href" ), "the base href value should be unchanged" );
} else {
equal( $.mobile.activePage.find( "#base-change-link" ).attr( "href" ), "foo", "the link href's remain unchanged" );
}
});
});
asyncTest( "enabling base tag changes should enable base href value changes", function() {
var baseHref = $( "base" ).attr( "href" );
$.mobile.dynamicBaseEnabled = true;
$.support.dynamicBaseTag = true;
testBaseTagAlteration(function() {
ok( baseHref !== $( "base" ).attr( "href" ), "the base href value should be changed" );
});
});
asyncTest( "enabling base tag changes when a dynamic base isn't supported should alter links", function() {
$.mobile.dynamicBaseEnabled = true;
$.support.dynamicBaseTag = false;
testBaseTagAlteration(function() {
var linkHref = $.mobile.activePage.find( "#base-change-link" ).attr( "href" );
if ( $.support.pushState ) {
equal( linkHref,
$.mobile.path.get( location.href ) + "foo",
"the link's href is changed" );
} else {
// compare the pathname of the links href with the directory of the current
// location + foo
equal( $.mobile.path.parseUrl( linkHref ).pathname,
$.mobile.path.parseUrl( location.href ).directory + "foo",
"the link's href is changed" );
}
});
});
})(jQuery);
|
import React from 'react'
import PropTypes from 'prop-types'
import { Button } from 'semantic-ui-react'
import { Translate } from 'react-localize-redux'
import { withRouter } from 'react-router'
import classNames from '../../utils/classNames'
import ArrowGrnImage from '../../images/icon-arrow-grn.svg'
import ArrowWhiteImage from '../../images/icon-arrow-white.svg'
import styled from 'styled-components'
const CustomButton = styled(Button)`
&&& {
color: #fff;
letter-spacing: 2px;
margin: 24px 0 0 0;
border: 2px solid;
width: 288px;
height: 48px;
border-radius: 30px;
font-size: 14px;
svg {
width: 16px;
height: 16px;
margin: 0 0 -4px 8px;
}
&.small {
width: 110px;
height: 36px;
border-radius: 20px;
letter-spacing: 0;
padding: 0px 0px;
font-size: 14px;
}
&.light-blue {
background-color: #F0F9FF !important;
border: 0;
color: #0072ce;
border-radius: 4px;
&.small {
padding: 6px 12px;
height: auto;
font-weight: 400 !important;
letter-spacing: 0.5px;
font-size: 13px;
}
}
&.red {
border-color: #ff585d;
background: #ff585d;
:disabled {
background: #e6e6e6;
border-color: #e6e6e6;
opacity: 1 !important;
}
:active,
:hover,
:focus {
border-color: #ff585d;
background: #fff;
color: #ff585d;
}
&.dots {
color: #fff;
}
}
&.blue {
border-color: #0072ce;
background: #0072ce;
text-transform: uppercase;
:active,
:hover,
:focus {
border-color: #007fe6;
background: #007fe6;
}
:disabled {
background: #e6e6e6;
border-color: #e6e6e6;
opacity: 1 !important;
}
}
&.seafoam-blue {
border-color: #6ad1e3;
background: #6ad1e3;
:disabled {
background: #e6e6e6;
border-color: #e6e6e6;
opacity: 1 !important;
}
:active,
:hover,
:focus {
opacity: 0.8;
}
}
&.seafoam-blue-white {
border-color: #6ad1e3;
background: #fff;
color: #6ad1e3;
:disabled {
background: #fff;
border-color: #e6e6e6;
opacity: 1 !important;
}
:active,
:hover,
:focus {
opacity: 0.8;
}
}
&.green {
border-color: #5ace84;
background: #5ace84;
:disabled {
border-color: #e6e6e6;
background: #e6e6e6;
opacity: 1 !important;
}
:active,
:hover,
:focus {
border-color: #61de8d;
background: #61de8d;
}
}
&.green-white-arrow {
color: #5ace84;
border-color: #5ace84;
background-color: #fff;
background-image: url(${ArrowGrnImage});
background-repeat: no-repeat;
background-position: 90% center;
background-size: 14px 20px;
font-weight: 500 !important;
:disabled {
color: e6e6e6;
border-color: #e6e6e6;
background: #fff;
opacity: 1 !important;
}
:active,
:hover,
:focus {
color: #fff;
border-color: #61de8d;
background-color: #61de8d;
background-image: url(${ArrowWhiteImage});
}
}
&.gray-white {
color: #cccccc;
border-color: #cccccc;
background: #fff;
text-transform: uppercase;
:disabled {
border-color: #e6e6e6;
background: #e6e6e6;
opacity: 1 !important;
}
:active,
:hover,
:focus {
color: #fff;
border-color: #cccccc;
background: #cccccc;
}
}
&.gray-red {
color: #FF585D;
border: none;
background-color: #f8f8f8;
text-transform: uppercase;
:hover,
:active,
:focus {
color: #fff;
background-color: #FF585D;
}
:disabled {
background-color: #e6e6e6;
color: white;
}
}
&.gray-blue {
color: #0072ce;
border-color: #f8f8f8;
background: #f8f8f8;
:disabled {
border-color: #e6e6e6;
background: #e6e6e6;
opacity: 1 !important;
}
:active,
:hover,
:focus {
color: #0072ce;
border-color: #f8f8f8;
background: #fff;
}
&.dark {
border-color: #EFEFEF;
background: #EFEFEF;
}
}
&.link {
width: auto;
height: auto;
letter-spacing: 0;
padding: 0;
margin: 0;
border-radius: 0px;
font-size: 14px;
background: none;
border: none;
display: inline;
text-decoration: underline;
color: #0072ce;
:hover,
:focus {
text-decoration: none;
color: #0072ce;
background-color: transparent;
}
&.gray {
text-decoration: none;
color: #999;
:hover,
:focus {
text-decoration: underline;
color: #999;
}
}
&.red {
color: #ff585d;
text-decoration: none;
:disabled {
opacity: 0.8;
background: transparent !important;
}
}
}
&.dots {
color: #fff;
border-color: #cccccc;
background-color: #cccccc;
cursor: default;
:active,
:hover,
:focus,
:disabled {
background: #cccccc;
border-color: #cccccc;
}
:after {
content: '.';
animation: dots 1s steps(5, end) infinite;
@keyframes dots {
0%, 20% {
color: rgba(0,0,0,0);
text-shadow:
.3em 0 0 rgba(0,0,0,0),
.6em 0 0 rgba(0,0,0,0);
}
40% {
color: white;
text-shadow:
.3em 0 0 rgba(0,0,0,0),
.6em 0 0 rgba(0,0,0,0);
}
60% {
text-shadow:
.3em 0 0 white,
.6em 0 0 rgba(0,0,0,0);
}
80%, 100% {
text-shadow:
.3em 0 0 white,
.6em 0 0 white;
}
}
}
}
&.link.dots {
color: #24272a;
border: 0;
background-color: transparent;
text-transform: lowercase;
text-decoration: none;
:active,
:hover,
:focus,
:disabled {
background: transparent;
border: 0;
}
:after {
content: '.';
animation: link 1s steps(5, end) infinite;
@keyframes link {
0%, 20% {
color: rgba(0,0,0,0);
text-shadow:
.3em 0 0 rgba(0,0,0,0),
.6em 0 0 rgba(0,0,0,0);
}
40% {
color: #24272a;
text-shadow:
.3em 0 0 rgba(0,0,0,0),
.6em 0 0 rgba(0,0,0,0);
}
60% {
text-shadow:
.3em 0 0 #24272a,
.6em 0 0 rgba(0,0,0,0);
}
80%, 100% {
text-shadow:
.3em 0 0 #24272a,
.6em 0 0 #24272a;
}
}
}
}
&.bold {
font-weight: 500;
}
@media screen and (max-width: 767px) {
width: 100%;
}
}
`
const FormButton = ({
children,
type,
color = 'blue',
disabled = false,
onClick,
sending = false,
sendingString,
size,
linkTo,
history,
className,
id
}) => (
<CustomButton
type={type}
id={id}
className={classNames([color, size, className, {'dots': sending}])}
disabled={disabled}
onClick={(e) => {
onClick && onClick(e)
linkTo && history.push(linkTo)
}}
tabIndex='3'
>
{sending
? <Translate id={sendingString ? sendingString : 'sending'} />
: children
}
</CustomButton>
)
FormButton.propTypes = {
children: PropTypes.node.isRequired,
type: PropTypes.string,
color: PropTypes.string,
disabled: PropTypes.bool,
onClick: PropTypes.func,
sending: PropTypes.bool,
size: PropTypes.string,
linkTo: PropTypes.string,
className: PropTypes.string
}
export default withRouter(FormButton)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.