hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
sequencelengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
sequencelengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
sequencelengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
6509eec915cc85c2425ec1ffe52d68af1fd29b3e
1,500
css
CSS
css/main.css
LoPoHa/mavotoc
c9babc38370a482004a1a833e53dd2b5c75a493a
[ "MIT" ]
null
null
null
css/main.css
LoPoHa/mavotoc
c9babc38370a482004a1a833e53dd2b5c75a493a
[ "MIT" ]
null
null
null
css/main.css
LoPoHa/mavotoc
c9babc38370a482004a1a833e53dd2b5c75a493a
[ "MIT" ]
null
null
null
#mavotoc_webextension_container { } #mavotoc_webextension_button_div { float: left; margin-right: 8px; border: none; } #mavotoc_webextension_button_img { width: 142px; height: 39px; margin: 0 auto; /* TODO: find a way to remove the border in chromium */ } #mavotoc_webextension_button_img:hover { cursor: pointer; opacity: 0.8; } /* from https://www.w3schools.com/howto/howto_css_modals.asp */ /* The Modal (background) */ #mavotoc_webextension_popup_container { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 99999; /* Sit on top */ padding-top: 100px; /* Location of the box */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgb(0,0,0); /* Fallback color */ background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ } /* Modal Content */ #mavotoc_webextension_popup_content { background-color: #fefefe; margin: auto; padding: 20px; border: 1px solid #888; width: 80%; height: 80%; overflow: auto; } /* The Close Button */ #mavotoc_webextension_popup_to_clipboard, #mavotoc_webextension_popup_close { color: #aaaaaa; float: right; font-size: 28px; font-weight: bold; margin-left: 10px; } #mavotoc_webextension_popup_to_clipboard:hover, #mavotoc_webextension_popup_to_clipboard:focus, #mavotoc_webextension_popup_close:hover, #mavotoc_webextension_popup_close:focus { color: #000; text-decoration: none; cursor: pointer; }
22.38806
63
0.721333
c0a6418f5edf5b95f59ae5012eb323c82e3bb993
805
cs
C#
src/Restivus/Middleware.cs
awseward/restivus
d842242216866b4eb3dd09420ff3f1ceda309372
[ "MIT" ]
3
2016-09-11T01:07:16.000Z
2016-10-05T23:54:34.000Z
src/Restivus/Middleware.cs
awseward/restivus
d842242216866b4eb3dd09420ff3f1ceda309372
[ "MIT" ]
12
2016-09-11T01:10:34.000Z
2016-12-30T22:27:45.000Z
src/Restivus/Middleware.cs
awseward/restivus
d842242216866b4eb3dd09420ff3f1ceda309372
[ "MIT" ]
2
2016-09-13T01:52:36.000Z
2016-10-05T18:13:14.000Z
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace Restivus { public interface IMiddleware<T> { T Run(T thing); } public interface IHttpRequestMiddleware : IMiddleware<HttpRequestMessage> { } public class HttpRequestMiddleware : IHttpRequestMiddleware { public HttpRequestMiddleware(Func<HttpRequestMessage, HttpRequestMessage> run) { _run = run.AsIdentityIfNull(); } public HttpRequestMiddleware(Action<HttpRequestMessage> run) : this(run.AsFluent()) { } readonly Func<HttpRequestMessage, HttpRequestMessage> _run; public HttpRequestMessage Run(HttpRequestMessage thing) => _run(thing); } }
25.15625
86
0.695652
b68cdac9915bdd1e698367122ea2dbbdab2876a9
27,167
rs
Rust
src/ur.rs
BlockchainCommons/sweeptool-cli
3f12c11c61f6a79da7e2765d576d5eb0eee35b1f
[ "BSD-2-Clause-Patent" ]
3
2021-06-09T16:12:03.000Z
2022-02-15T19:44:30.000Z
src/ur.rs
BlockchainCommons/sweeptool-cli
3f12c11c61f6a79da7e2765d576d5eb0eee35b1f
[ "BSD-2-Clause-Patent" ]
5
2021-06-07T17:33:53.000Z
2021-07-14T13:05:09.000Z
src/ur.rs
BlockchainCommons/sweeptool-cli
3f12c11c61f6a79da7e2765d576d5eb0eee35b1f
[ "BSD-2-Clause-Patent" ]
1
2021-06-10T20:56:50.000Z
2021-06-10T20:56:50.000Z
use bdk::bitcoin::hashes::Hash; use serde::{Deserialize, Serialize}; use serde_cbor::tags::Tagged; use serde_cbor::value::Value; use std::collections::HashMap; use std::convert::TryFrom; use std::convert::TryInto; use ur_rs::bytewords; use crate::errors::SweepError; pub fn psbt_as_ur(psbt: Vec<u8>) -> Result<String, SweepError> { use serde_cbor::to_vec; let arr = Value::Bytes(psbt); let psbt_ = to_vec(&arr)?; let bytewrds = bytewords::encode(&psbt_, &bytewords::Style::Minimal); let psbt_ur = "ur:crypto-psbt/".to_owned() + &bytewrds; Ok(psbt_ur) } #[derive(Debug, PartialEq, Deserialize)] pub enum CborNetwork { Mainnet = 0, Testnet = 1, } #[derive(Debug, PartialEq, Deserialize)] pub struct HDKey<'a> { #[serde(skip_serializing_if = "Option::is_none")] offset: Option<u32>, #[serde(skip_serializing_if = "Option::is_none")] pub is_master: Option<bool>, #[serde(skip_serializing_if = "Option::is_none")] pub is_private: Option<bool>, pub key_data: &'a [u8], #[serde(skip_serializing_if = "Option::is_none")] pub chain_code: Option<&'a [u8]>, #[serde(skip_serializing_if = "Option::is_none")] pub use_info: Option<CryptoCoinInfo>, #[serde(skip_serializing_if = "Option::is_none")] pub origin: Option<CryptoKeyPath>, #[serde(skip_serializing_if = "Option::is_none")] pub children: Option<CryptoKeyPath2>, #[serde(skip_serializing_if = "Option::is_none")] pub parent_fingerprint: Option<u32>, #[serde(skip)] name: Option<String>, #[serde(skip)] note: Option<String>, } #[derive(Debug, PartialEq)] pub struct CryptoKeyPath2 { // this is only for the tail part of the output descriptor // which can contain e.g. /1/* pub components: String, } // TODO tag number should be checked and consumed outside this function impl<'a, 'de> Deserialize<'de> for CryptoKeyPath2 { fn deserialize<D: serde::de::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> { let tagged = Value::deserialize(deserializer)?; let mut obj = CryptoKeyPath2 { components: "".to_string(), }; // TODO: uint31 = uint32 .lt 0x80000000 if let Value::Tag(_number, val_nxt) = tagged { // TODO assert number if let Value::Map(m) = *val_nxt { let arr = m.get(&Value::Integer(1)).unwrap_or(&Value::Integer(0)); // this will skip parsing array in the next step if let Value::Array(a) = arr { for i in 0..a.len() - 1 { if let Value::Integer(ar) = a[i] { obj.components.push_str(&format!("/{}", ar)); if a[i + 1] == Value::Bool(true) { obj.components.push('h'); }; } else if let Value::Array(_val) = &a[i] { obj.components.push_str("/*"); if a[i + 1] == Value::Bool(true) { obj.components.push('h'); }; } } } } } Ok(obj) } } #[derive(Debug, PartialEq)] pub struct CryptoKeyPath { pub components: Vec<bdk::bitcoin::util::bip32::ChildNumber>, pub source_fingerprint: u32, pub depth: u8, pub components_str: String, } impl Serialize for CryptoKeyPath { fn serialize<S: serde::ser::Serializer>(&self, s: S) -> Result<S::Ok, S::Error> { Tagged::new(Some(304), &self).serialize(s) } } // TODO tag number should be checked and consumed outside this function impl<'a, 'de> Deserialize<'de> for CryptoKeyPath { fn deserialize<D: serde::de::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> { let tagged = Value::deserialize(deserializer)?; let mut obj = CryptoKeyPath { components: Vec::new(), source_fingerprint: 0, depth: 0, components_str: "".to_string(), }; // TODO: uint31 = uint32 .lt 0x80000000 if let Value::Tag(_number, val_nxt) = tagged { // TODO assert number if let Value::Map(m) = *val_nxt { let arr = m.get(&Value::Integer(1)).unwrap_or(&Value::Integer(0)); // this will skip parsing array in the next step if let Value::Array(a) = arr { for i in 0..a.len() - 1 { // TODO 0 to -1 if len == 0 error if i == 0 { if obj.source_fingerprint != 0 { obj.components_str .push_str(&format!("[{:08x}", obj.source_fingerprint)); } else { // this should not happen according to current ur spec obj.components_str.push_str("[m"); } } if let Value::Integer(ar) = a[i] { obj.components_str.push_str(&format!("/{}", ar)); let indx = if a[i + 1] == Value::Bool(true) { obj.components_str.push('h'); bdk::bitcoin::util::bip32::ChildNumber::from_hardened_idx( ar.try_into().map_err(|_| { serde::de::Error::custom( "crypto-keypath: incorrect child number", ) })?, ) .map_err(|_| { serde::de::Error::custom( "crypto-keypath: incorrect child number", ) })? } else { bdk::bitcoin::util::bip32::ChildNumber::from_normal_idx( ar.try_into().map_err(|_| { serde::de::Error::custom( "crypto-keypath: incorrect child number", ) })?, ) .map_err(|_| { serde::de::Error::custom( "crypto-keypath: incorrect child number", ) })? }; obj.components.push(indx); } if i == a.len() - 1 - 1 { obj.components_str.push(']'); } if a.len() <= 2 { // if we have only one or no child index in derivation path we actually // don't prepend anything to the xpub obj.components_str = "".to_string(); } } let source_fingerprint = m.get(&Value::Integer(2)); if let Some(Value::Integer(s)) = source_fingerprint { obj.source_fingerprint = *s as u32; } let depth = m.get(&Value::Integer(3)); if let Some(Value::Integer(s)) = depth { // depth always takes precedense over components length obj.depth = *s as u8; if obj.depth < obj.components.len() as u8 { return Err(serde::de::Error::custom( "crypto-keypath error: depth < obj.components.len", )); }; } else { obj.depth = obj.components.len() as u8; } } } } Ok(obj) } } #[derive(Debug, PartialEq)] pub struct EcKey { pub curve: Option<u32>, // Must be 0 for BTC or omitted pub is_private: Option<bool>, pub data: Vec<u8>, } impl<'a> Deserialize<'a> for EcKey { fn deserialize<D: serde::de::Deserializer<'a>>(deserializer: D) -> Result<Self, D::Error> { // spec: https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-2020-008-eckey.md // Note: hashmap could have bytestrings as values, but here integer works according to cryptoconinfo spec //let tagged = Tagged::<HashMap<u8, &[u8]>>::deserialize(deserializer)?; let tagged = Value::deserialize(deserializer)?; let mut obj = EcKey { curve: None, is_private: None, data: Vec::new(), }; if let Value::Tag(_number, val_nxt) = tagged { if let Value::Map(m) = *val_nxt { // TODO: check for 1 and 2 integers let data = m .get(&Value::Integer(3)) .ok_or_else(|| serde::de::Error::custom("EcKey: missing data"))?; if let Value::Bytes(b) = data.clone() { obj.data = b; } } Ok(obj) } else { Ok(obj) } /* match tagged.tag { Some(306) | None => { if let Some(curve) = tagged.value.get(&1) { let num = u32::from_be_bytes(*pop(*curve)); obj.curve = Some(num); } if let Some(is_private) = tagged.value.get(&2) { let is_private: bool = serde_cbor::de::from_slice(&is_private).unwrap(); obj.is_private = Some(is_private); } if let Some(data) = tagged.value.get(&3) { println!("data {:?}", data); //let data: &[u8] = serde_cbor::de::from_slice(&data).unwrap(); obj.data = data; } println!("* * * {:?}", tagged.value); Ok(obj) } Some(_) => Err(serde::de::Error::custom("unexpected tag")), } */ } } impl TryFrom<u32> for CborNetwork { type Error = (); fn try_from(v: u32) -> Result<Self, Self::Error> { match v { x if x == CborNetwork::Mainnet as u32 => Ok(CborNetwork::Mainnet), x if x == CborNetwork::Testnet as u32 => Ok(CborNetwork::Testnet), _ => Err(()), } } } impl TryFrom<CborNetwork> for bdk::bitcoin::Network { type Error = (); fn try_from(v: CborNetwork) -> Result<Self, Self::Error> { match v { CborNetwork::Mainnet => Ok(bdk::bitcoin::Network::Bitcoin), CborNetwork::Testnet => Ok(bdk::bitcoin::Network::Testnet), } } } #[derive(Debug, PartialEq)] pub struct CryptoCoinInfo { //#[serde(skip_serializing_if = "Option::is_none")] pub type_: Option<u32>, // Must be 0 for BTC or omitted //#[serde(skip_serializing_if = "Option::is_none")] pub network: Option<CborNetwork>, } impl Serialize for CryptoCoinInfo { fn serialize<S: serde::ser::Serializer>(&self, s: S) -> Result<S::Ok, S::Error> { Tagged::new(Some(305), &self).serialize(s) } } impl<'de> Deserialize<'de> for CryptoCoinInfo { fn deserialize<D: serde::de::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> { // spec: https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-2020-009-address.md // Note: hashmap could have bytestrings as values, but here integer works according to cryptoconinfo spec let tagged = Tagged::<HashMap<u8, u32>>::deserialize(deserializer)?; let mut obj = CryptoCoinInfo { type_: None, network: Some(CborNetwork::Mainnet), }; match tagged.tag { Some(305) | None => { let type_val = tagged.value.get(&1); if type_val != None { obj.type_ = Some(*type_val.unwrap()); // safe } let network_val = tagged.value.get(&2); if network_val != None { let network = *network_val.unwrap(); // safe obj.network = Some(network.try_into().map_err(|_| { serde::de::Error::custom("CryptoCoinInfo: incorrect network") })?); } Ok(obj) } Some(_) => Err(serde::de::Error::custom("CryptoCoinInfo: unexpected tag")), } } } #[derive(Debug, PartialEq, Deserialize)] pub struct CborAddress<'a> { /// This variable is just to address the offset difference. /// Namely the Blockchain Commons starts counting from 1, whereas this lib from 0 #[serde(skip_serializing_if = "Option::is_none")] offset: Option<u32>, #[serde(skip_serializing_if = "Option::is_none")] // TODO: https://github.com/pyfisch/cbor/blob/master/examples/tags.rs info: Option<CryptoCoinInfo>, #[serde(skip_serializing_if = "Option::is_none")] type_: Option<u32>, data: &'a [u8], } pub fn is_ur_address(ur: String) -> bool { ur.contains("ur:crypto-address") } pub fn _decode_ur_address(ur: String) -> Result<bdk::bitcoin::Address, SweepError> { let (_key, val) = ur .split_once(':') .ok_or_else(|| SweepError::new("ur address".to_string(), "missing :".to_string()))?; let (_key, val) = val .split_once('/') .ok_or_else(|| SweepError::new("ur address".to_string(), "missing /".to_string()))?; let mut cbor = bytewords::decode(&val, &bytewords::Style::Minimal)?; let cbor: CborAddress = serde_cbor::de::from_mut_slice(&mut cbor[..])?; let data = cbor.data.to_vec(); // pubkeyhash //println!("**data: {:?}", data); let network = if let Some(info) = cbor.info { if let Some(n) = info.network { match n { CborNetwork::Mainnet => bdk::bitcoin::Network::Bitcoin, _ => bdk::bitcoin::Network::Testnet, } } else { bdk::bitcoin::Network::Bitcoin } } else { bdk::bitcoin::Network::Bitcoin }; // Try all possible payloads: /* // pkh let tmp1 = bdk::bitcoin::util::address::Payload::PubkeyHash( bdk::bitcoin::hash_types::PubkeyHash::from_slice(&data).unwrap(), ); // p2sh let tmp2 = bdk::bitcoin::util::address::Payload::ScriptHash( bdk::bitcoin::hash_types::ScriptHash::from_slice(&data).unwrap(), ); */ Ok(bdk::bitcoin::Address { payload: bdk::bitcoin::util::address::Payload::PubkeyHash( bdk::bitcoin::hash_types::PubkeyHash::from_slice(&data).unwrap(), ), network, }) } pub fn is_ur_descriptor(ur: String) -> bool { ur.starts_with("ur:crypto-output/") } pub fn parse_ur_descriptor(ur: String) -> Result<String, SweepError> { let (_key, val) = ur.split_once(':').unwrap(); // safe let (_key, val) = val.split_once('/').unwrap(); // safe let cbor = bytewords::decode(&val, &bytewords::Style::Minimal)?; let data: Value = serde_cbor::from_slice(&cbor)?; let mut ur_out = String::new(); parse_ur_desc(data, &mut ur_out)?; Ok(ur_out) } pub fn parse_ur_desc(val: Value, out: &mut String) -> Result<Box<Value>, SweepError> { if let Value::Tag(number, mut val_nxt) = val.clone() { match number { 303 => { let p = serde_cbor::to_vec(&val_nxt).unwrap(); let hdkey: HDKey = serde_cbor::de::from_slice(&p[..])?; //println!("debug: hdkey: {:?}", hdkey); // TODO check if this is master key-> no need for dealing with with derivpath if yes // TODO implement iterators to use and_then let net = if let Some(info) = hdkey.use_info { if let Some(n) = info.network { n } else { CborNetwork::Mainnet } } else { CborNetwork::Mainnet }; let keydata = &hdkey.key_data[..].to_vec(); let childnumber = if let Some(ref origin) = hdkey.origin { *origin .components .last() .unwrap_or(&bdk::bitcoin::util::bip32::ChildNumber::from(0)) } else { bdk::bitcoin::util::bip32::ChildNumber::from(0) }; let depth = if let Some(ref d) = hdkey.origin { d.depth } else { 0 }; let parent_fingerprint = if let Some(ref origin) = hdkey.origin { let l = origin.components.len(); if l == 1 && origin.source_fingerprint != 0 { // If `origin` contains only a single derivation step and also contains `source-fingerprint`, // then `parent-fingerprint` MUST be identical to `source-fingerprint` or may be omitted. origin.source_fingerprint } else { hdkey.parent_fingerprint.unwrap_or(0) } } else { hdkey.parent_fingerprint.unwrap_or(0) }; let xpub = bdk::bitcoin::util::bip32::ExtendedPubKey { network: bdk::bitcoin::Network::try_from(net).map_err(|_| { SweepError::new("xpub".to_string(), "wrong network".to_string()) })?, depth, parent_fingerprint: bdk::bitcoin::util::bip32::Fingerprint::from( &parent_fingerprint.to_be_bytes()[..], ), child_number: childnumber, public_key: bdk::bitcoin::PublicKey::from_slice(&keydata[..])?, chain_code: bdk::bitcoin::util::bip32::ChainCode::from( hdkey.chain_code.ok_or_else(|| { SweepError::new("hdkey".to_string(), "chaincode".to_string()) })?, ), }; //println!("debug xpub>>: {:?}", xpub); if let Some(c) = hdkey.origin { out.push_str(&c.components_str); }; out.push_str(&xpub.to_string()); if let Some(c) = hdkey.children { out.push_str(&c.components); }; } 306 => { let p = serde_cbor::to_vec(&val).unwrap(); let eckey: EcKey = serde_cbor::de::from_slice(&p)?; out.push_str(&hex::encode(eckey.data)); } 400 => { out.push_str(&"sh(".to_string()); val_nxt = parse_ur_desc(*val_nxt, out)?; out.push_str(&")".to_string()); } 403 => { out.push_str(&"pkh(".to_string()); val_nxt = parse_ur_desc(*val_nxt, out).unwrap(); out.push_str(&")".to_string()); } 401 => { out.push_str(&"wsh(".to_string()); val_nxt = parse_ur_desc(*val_nxt, out).unwrap(); out.push_str(&")".to_string()); } 404 => { out.push_str(&"wpkh(".to_string()); val_nxt = parse_ur_desc(*val_nxt, out)?; out.push_str(&")".to_string()); } 406 | 407 => { if number == 406 { out.push_str(&"multi(".to_string()); } else { out.push_str(&"sortedmulti(".to_string()); } if let Value::Map(v) = *val_nxt.clone() { let threshold = v.get(&Value::Integer(1)).ok_or_else(|| { SweepError::new( "output descriptor".to_string(), "multi missing threshold".to_string(), ) })?; if let Value::Integer(i) = threshold { out.push_str(&format!("{},", i)); } let arr = v.get(&Value::Integer(2)).ok_or_else(|| { SweepError::new( "output descriptor".to_string(), "multi missing keys".to_string(), ) })?; if let Value::Array(v) = arr { for i in v { if let Value::Tag(num, _) = i { if *num == 303 { // hdkey val_nxt = parse_ur_desc(i.clone(), out)?; } else if *num == 306 { // eckey let p = serde_cbor::to_vec(&i)?; let eckey: EcKey = serde_cbor::de::from_slice(&p)?; out.push_str(&hex::encode(eckey.data)); } out.push(','); } } out.pop(); } } out.push_str(&")".to_string()); } _ => panic!("wrong tag {:?}", number), } Ok(val_nxt) } else { Err(SweepError::new( "UR output descriptor".to_string(), "parsing".to_string(), )) } } #[test] fn outputdesc_test_vector_5() -> Result<(), SweepError> { let inp = hex::decode("d90191d90196a201010282d9012fa403582103cbcaa9c98c877a26977d00825c956a238e8dddfbd322cce4f74b0b5bd6ace4a704582060499f801b896d83179a4374aeb7822aaeaceaa0db1f85ee3e904c4defbd968906d90130a1030007d90130a1018601f400f480f4d9012fa403582102fc9e5af0ac8d9b3cecfe2a888e2117ba3d089d8585886c9c826b6b22a98d12ea045820f0909affaa7ee7abe5dd4e100598d4dc53cd709d5a5c2cac40e7412f232f7c9c06d90130a2018200f4021abd16bee507d90130a1018600f400f480f4").unwrap(); let data: Value = serde_cbor::from_slice(&inp).unwrap(); let expected = "wsh(multi(1,xpub661MyMwAqRbcFW31YEwpkMuc5THy2PSt5bDMsktWQcFF8syAmRUapSCGu8ED9W6oDMSgv6Zz8idoc4a6mr8BDzTJY47LJhkJ8UB7WEGuduB/1/0/*,xpub69H7F5d8KSRgmmdJg2KhpAK8SR3DjMwAdkxj3ZuxV27CprR9LgpeyGmXUbC6wb7ERfvrnKZjXoUmmDznezpbZb7ap6r1D3tgFxHmwMkQTPH/0/0/*))"; let mut out = String::new(); parse_ur_desc(data, &mut out)?; println!("\noutput descriptor: {:?}", out); assert_eq!(expected, out); Ok(()) } #[test] fn outputdesc_test_vector_4() -> Result<(), SweepError> { let inp = hex::decode("D90193D9012FA503582102D2B36900396C9282FA14628566582F206A5DD0BCC8D5E892611806CAFB0301F0045820637807030D55D01F9A0CB3A7839515D796BD07706386A6EDDF06CC29A65A0E2906D90130A20186182CF500F500F5021AD34DB33F07D90130A1018401F480F4081A78412E3A").unwrap(); let _expected = "wsh(multi(1,xpub661MyMwAqRbcFW31YEwpkMuc5THy2PSt5bDMsktWQcFF8syAmRUapSCGu8ED9W6oDMSgv6Zz8idoc4a6mr8BDzTJY47LJhkJ8UB7WEGuduB/1/0/*,[m/0]xpub67tVq9TC3jGc8hyd7kgmC1GK87PYAtgqFcAhJTgBP5VQ6d9RssQK1iwWk3ZY8cbrAuwmp31gShjmBoHKmKbEaQfAbppVSuDh1ojtymY92dh/0/0/*))"; let data: Value = serde_cbor::from_slice(&inp).unwrap(); let mut out = String::new(); parse_ur_desc(data, &mut out)?; println!("\noutput descriptor: {:?}", out); // TODO this test case is incorrect in the spec, it contains incorrect depth Ok(()) } #[test] fn outputdesc_test_vector_3() -> Result<(), SweepError> { let inp = hex::decode("d90190d90196a201020282d90132a1035821022f01e5e15cca351daff3843fb70f3c2f0a1bdd05e5af888a67784ef3e10a2a01d90132a103582103acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe").unwrap(); let expected = "sh(multi(2,022f01e5e15cca351daff3843fb70f3c2f0a1bdd05e5af888a67784ef3e10a2a01,03acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe))"; let data: Value = serde_cbor::from_slice(&inp).unwrap(); let mut out = String::new(); parse_ur_desc(data, &mut out)?; // This test vector is correct assert_eq!(out, expected); Ok(()) } #[test] fn hdkey_test_vector_1() -> Result<(), SweepError> { let mut inp = hex::decode("A301F503582100E8F32E723DECF4051AEFAC8E2C93C9C5B214313817CDB01A1494B917C8436B35045820873DFF81C02F525623FD1FE5167EAC3A55A049DE3D314BB42EE227FFED37D508").unwrap(); let key_data_expected = hex::decode("00e8f32e723decf4051aefac8e2c93c9c5b214313817cdb01a1494b917c8436b35").unwrap(); let chaincode_expected = hex::decode("873dff81c02f525623fd1fe5167eac3a55a049de3d314bb42ee227ffed37d508").unwrap(); let hdkey: HDKey = serde_cbor::de::from_mut_slice(&mut inp[..])?; println!("hdkey: {:?}", hdkey); assert_eq!(hdkey.is_master.unwrap(), true); assert_eq!(hdkey.key_data, key_data_expected); assert_eq!(hdkey.chain_code.unwrap(), chaincode_expected); assert_eq!(hdkey.origin, None); assert_eq!(hdkey.use_info, None); Ok(()) } #[test] fn psbt_test_vector_1() -> Result<(), SweepError> { let inp = hex::decode("70736274FF01009A020000000258E87A21B56DAF0C23BE8E7070456C336F7CBAA5C8757924F545887BB2ABDD750000000000FFFFFFFF838D0427D0EC650A68AA46BB0B098AEA4422C071B2CA78352A077959D07CEA1D0100000000FFFFFFFF0270AAF00800000000160014D85C2B71D0060B09C9886AEB815E50991DDA124D00E1F5050000000016001400AEA9A2E5F0F876A588DF5546E8742D1D87008F000000000000000000").unwrap(); let expected = "ur:crypto-psbt/hdosjojkidjyzmadaenyaoaeaeaeaohdvsknclrejnpebncnrnmnjojofejzeojlkerdonspkpkkdkykfelokgprpyutkpaeaeaeaeaezmzmzmzmlslgaaditiwpihbkispkfgrkbdaslewdfycprtjsprsgksecdratkkhktikewdcaadaeaeaeaezmzmzmzmaojopkwtayaeaeaeaecmaebbtphhdnjstiambdassoloimwmlyhygdnlcatnbggtaevyykahaeaeaeaecmaebbaeplptoevwwtyakoonlourgofgvsjydpcaltaemyaeaeaeaeaeaeaeaeaebkgdcarh"; assert_eq!(psbt_as_ur(inp)?, expected); Ok(()) } #[test] fn address_test_vector_1() -> Result<(), SweepError> { use std::str::FromStr; let inp = "1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2".to_string(); let ad = bdk::bitcoin::Address::from_str(&inp).unwrap(); let pubkeyhash = "77bff20c60e522dfaa3350c39b030a5d004e839a"; let pubkeyhash = hex::decode(pubkeyhash).unwrap(); let addr = bdk::bitcoin::Address { payload: bdk::bitcoin::util::address::Payload::PubkeyHash( bdk::bitcoin::hash_types::PubkeyHash::from_slice(&pubkeyhash).unwrap(), ), network: bdk::bitcoin::Network::Bitcoin, }; //println!("**addr {:?}", addr); assert_eq!(addr, ad); Ok(()) }
40.791291
458
0.526742
5a06896afeb029961f71a6e459e88c79a6dda372
32,636
asm
Assembly
ConstructSensors/MobileSensors/iOSVideoSensor/sensor/ColumbiaCollegeShare/Code Drop - Feb 5 - 2012/Windows/packages/ffmpeg/Source/libavcodec/x86/h264_intrapred_10bit.asm
dgerding/Construct
ecbb0ee5591a89e71906ad676bc6684583716d84
[ "MIT" ]
2
2017-08-03T07:15:00.000Z
2018-06-18T10:32:53.000Z
ConstructSensors/MobileSensors/iOSVideoSensor/sensor/ColumbiaCollegeShare/Code Drop - Feb 5 - 2012/Windows/packages/ffmpeg/Source/libavcodec/x86/h264_intrapred_10bit.asm
dgerding/Construct
ecbb0ee5591a89e71906ad676bc6684583716d84
[ "MIT" ]
null
null
null
ConstructSensors/MobileSensors/iOSVideoSensor/sensor/ColumbiaCollegeShare/Code Drop - Feb 5 - 2012/Windows/packages/ffmpeg/Source/libavcodec/x86/h264_intrapred_10bit.asm
dgerding/Construct
ecbb0ee5591a89e71906ad676bc6684583716d84
[ "MIT" ]
2
2019-03-04T22:57:42.000Z
2020-03-06T01:32:26.000Z
;***************************************************************************** ;* MMX/SSE2/AVX-optimized 10-bit H.264 intra prediction code ;***************************************************************************** ;* Copyright (C) 2005-2011 x264 project ;* ;* Authors: Daniel Kang <[email protected]> ;* ;* This file is part of Libav. ;* ;* Libav is free software; you can redistribute it and/or ;* modify it under the terms of the GNU Lesser General Public ;* License as published by the Free Software Foundation; either ;* version 2.1 of the License, or (at your option) any later version. ;* ;* Libav is distributed in the hope that it will be useful, ;* but WITHOUT ANY WARRANTY; without even the implied warranty of ;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;* Lesser General Public License for more details. ;* ;* You should have received a copy of the GNU Lesser General Public ;* License along with Libav; if not, write to the Free Software ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ;****************************************************************************** %include "libavutil/x86/x86inc.asm" %include "libavutil/x86/x86util.asm" SECTION_RODATA cextern pw_16 cextern pw_8 cextern pw_4 cextern pw_2 cextern pw_1 pw_m32101234: dw -3, -2, -1, 0, 1, 2, 3, 4 pw_m3: times 8 dw -3 pw_pixel_max: times 8 dw ((1 << 10)-1) pw_512: times 8 dw 512 pd_17: times 4 dd 17 pd_16: times 4 dd 16 SECTION .text ; dest, left, right, src ; output: %1 = (t[n-1] + t[n]*2 + t[n+1] + 2) >> 2 %macro PRED4x4_LOWPASS 4 paddw %2, %3 psrlw %2, 1 pavgw %1, %4, %2 %endmacro ;----------------------------------------------------------------------------- ; void pred4x4_down_right(pixel *src, const pixel *topright, int stride) ;----------------------------------------------------------------------------- %macro PRED4x4_DR 1 cglobal pred4x4_down_right_10_%1, 3,3 sub r0, r2 lea r1, [r0+r2*2] movhps m1, [r1-8] movhps m2, [r0+r2*1-8] movhps m4, [r0-8] punpckhwd m2, m4 movq m3, [r0] punpckhdq m1, m2 PALIGNR m3, m1, 10, m1 movhps m4, [r1+r2*1-8] PALIGNR m0, m3, m4, 14, m4 movhps m4, [r1+r2*2-8] PALIGNR m2, m0, m4, 14, m4 PRED4x4_LOWPASS m0, m2, m3, m0 movq [r1+r2*2], m0 psrldq m0, 2 movq [r1+r2*1], m0 psrldq m0, 2 movq [r0+r2*2], m0 psrldq m0, 2 movq [r0+r2*1], m0 RET %endmacro INIT_XMM %define PALIGNR PALIGNR_MMX PRED4x4_DR sse2 %define PALIGNR PALIGNR_SSSE3 PRED4x4_DR ssse3 %ifdef HAVE_AVX INIT_AVX PRED4x4_DR avx %endif ;----------------------------------------------------------------------------- ; void pred4x4_vertical_right(pixel *src, const pixel *topright, int stride) ;----------------------------------------------------------------------------- %macro PRED4x4_VR 1 cglobal pred4x4_vertical_right_10_%1, 3,3,6 sub r0, r2 lea r1, [r0+r2*2] movq m5, [r0] ; ........t3t2t1t0 movhps m1, [r0-8] PALIGNR m0, m5, m1, 14, m1 ; ......t3t2t1t0lt pavgw m5, m0 movhps m1, [r0+r2*1-8] PALIGNR m0, m1, 14, m1 ; ....t3t2t1t0ltl0 movhps m2, [r0+r2*2-8] PALIGNR m1, m0, m2, 14, m2 ; ..t3t2t1t0ltl0l1 movhps m3, [r1+r2*1-8] PALIGNR m2, m1, m3, 14, m3 ; t3t2t1t0ltl0l1l2 PRED4x4_LOWPASS m1, m0, m2, m1 pslldq m0, m1, 12 psrldq m1, 4 movq [r0+r2*1], m5 movq [r0+r2*2], m1 PALIGNR m5, m0, 14, m2 pslldq m0, 2 movq [r1+r2*1], m5 PALIGNR m1, m0, 14, m0 movq [r1+r2*2], m1 RET %endmacro INIT_XMM %define PALIGNR PALIGNR_MMX PRED4x4_VR sse2 %define PALIGNR PALIGNR_SSSE3 PRED4x4_VR ssse3 %ifdef HAVE_AVX INIT_AVX PRED4x4_VR avx %endif ;----------------------------------------------------------------------------- ; void pred4x4_horizontal_down(pixel *src, const pixel *topright, int stride) ;----------------------------------------------------------------------------- %macro PRED4x4_HD 1 cglobal pred4x4_horizontal_down_10_%1, 3,3 sub r0, r2 lea r1, [r0+r2*2] movq m0, [r0-8] ; lt .. movhps m0, [r0] pslldq m0, 2 ; t2 t1 t0 lt .. .. .. .. movq m1, [r1+r2*2-8] ; l3 movq m3, [r1+r2*1-8] punpcklwd m1, m3 ; l2 l3 movq m2, [r0+r2*2-8] ; l1 movq m3, [r0+r2*1-8] punpcklwd m2, m3 ; l0 l1 punpckhdq m1, m2 ; l0 l1 l2 l3 punpckhqdq m1, m0 ; t2 t1 t0 lt l0 l1 l2 l3 psrldq m0, m1, 4 ; .. .. t2 t1 t0 lt l0 l1 psrldq m3, m1, 2 ; .. t2 t1 t0 lt l0 l1 l2 pavgw m5, m1, m3 PRED4x4_LOWPASS m3, m1, m0, m3 punpcklwd m5, m3 psrldq m3, 8 PALIGNR m3, m5, 12, m4 movq [r1+r2*2], m5 movhps [r0+r2*2], m5 psrldq m5, 4 movq [r1+r2*1], m5 movq [r0+r2*1], m3 RET %endmacro INIT_XMM %define PALIGNR PALIGNR_MMX PRED4x4_HD sse2 %define PALIGNR PALIGNR_SSSE3 PRED4x4_HD ssse3 %ifdef HAVE_AVX INIT_AVX PRED4x4_HD avx %endif ;----------------------------------------------------------------------------- ; void pred4x4_dc(pixel *src, const pixel *topright, int stride) ;----------------------------------------------------------------------------- %macro HADDD 2 ; sum junk %if mmsize == 16 movhlps %2, %1 paddd %1, %2 pshuflw %2, %1, 0xE paddd %1, %2 %else pshufw %2, %1, 0xE paddd %1, %2 %endif %endmacro %macro HADDW 2 pmaddwd %1, [pw_1] HADDD %1, %2 %endmacro INIT_MMX cglobal pred4x4_dc_10_mmxext, 3,3 sub r0, r2 lea r1, [r0+r2*2] movq m2, [r0+r2*1-8] paddw m2, [r0+r2*2-8] paddw m2, [r1+r2*1-8] paddw m2, [r1+r2*2-8] psrlq m2, 48 movq m0, [r0] HADDW m0, m1 paddw m0, [pw_4] paddw m0, m2 psrlw m0, 3 SPLATW m0, m0, 0 movq [r0+r2*1], m0 movq [r0+r2*2], m0 movq [r1+r2*1], m0 movq [r1+r2*2], m0 RET ;----------------------------------------------------------------------------- ; void pred4x4_down_left(pixel *src, const pixel *topright, int stride) ;----------------------------------------------------------------------------- %macro PRED4x4_DL 1 cglobal pred4x4_down_left_10_%1, 3,3 sub r0, r2 movq m0, [r0] movhps m0, [r1] psrldq m2, m0, 2 pslldq m3, m0, 2 pshufhw m2, m2, 10100100b PRED4x4_LOWPASS m0, m3, m2, m0 lea r1, [r0+r2*2] movhps [r1+r2*2], m0 psrldq m0, 2 movq [r0+r2*1], m0 psrldq m0, 2 movq [r0+r2*2], m0 psrldq m0, 2 movq [r1+r2*1], m0 RET %endmacro INIT_XMM PRED4x4_DL sse2 %ifdef HAVE_AVX INIT_AVX PRED4x4_DL avx %endif ;----------------------------------------------------------------------------- ; void pred4x4_vertical_left(pixel *src, const pixel *topright, int stride) ;----------------------------------------------------------------------------- %macro PRED4x4_VL 1 cglobal pred4x4_vertical_left_10_%1, 3,3 sub r0, r2 movu m1, [r0] movhps m1, [r1] psrldq m0, m1, 2 psrldq m2, m1, 4 pavgw m4, m0, m1 PRED4x4_LOWPASS m0, m1, m2, m0 lea r1, [r0+r2*2] movq [r0+r2*1], m4 movq [r0+r2*2], m0 psrldq m4, 2 psrldq m0, 2 movq [r1+r2*1], m4 movq [r1+r2*2], m0 RET %endmacro INIT_XMM PRED4x4_VL sse2 %ifdef HAVE_AVX INIT_AVX PRED4x4_VL avx %endif ;----------------------------------------------------------------------------- ; void pred4x4_horizontal_up(pixel *src, const pixel *topright, int stride) ;----------------------------------------------------------------------------- INIT_MMX cglobal pred4x4_horizontal_up_10_mmxext, 3,3 sub r0, r2 lea r1, [r0+r2*2] movq m0, [r0+r2*1-8] punpckhwd m0, [r0+r2*2-8] movq m1, [r1+r2*1-8] punpckhwd m1, [r1+r2*2-8] punpckhdq m0, m1 pshufw m1, m1, 0xFF movq [r1+r2*2], m1 movd [r1+r2*1+4], m1 pshufw m2, m0, 11111001b movq m1, m2 pavgw m2, m0 pshufw m5, m0, 11111110b PRED4x4_LOWPASS m1, m0, m5, m1 movq m6, m2 punpcklwd m6, m1 movq [r0+r2*1], m6 psrlq m2, 16 psrlq m1, 16 punpcklwd m2, m1 movq [r0+r2*2], m2 psrlq m2, 32 movd [r1+r2*1], m2 RET ;----------------------------------------------------------------------------- ; void pred8x8_vertical(pixel *src, int stride) ;----------------------------------------------------------------------------- INIT_XMM cglobal pred8x8_vertical_10_sse2, 2,2 sub r0, r1 mova m0, [r0] %rep 3 mova [r0+r1*1], m0 mova [r0+r1*2], m0 lea r0, [r0+r1*2] %endrep mova [r0+r1*1], m0 mova [r0+r1*2], m0 RET ;----------------------------------------------------------------------------- ; void pred8x8_horizontal(pixel *src, int stride) ;----------------------------------------------------------------------------- INIT_XMM cglobal pred8x8_horizontal_10_sse2, 2,3 mov r2d, 4 .loop: movq m0, [r0+r1*0-8] movq m1, [r0+r1*1-8] pshuflw m0, m0, 0xff pshuflw m1, m1, 0xff punpcklqdq m0, m0 punpcklqdq m1, m1 mova [r0+r1*0], m0 mova [r0+r1*1], m1 lea r0, [r0+r1*2] dec r2d jg .loop REP_RET ;----------------------------------------------------------------------------- ; void predict_8x8_dc(pixel *src, int stride) ;----------------------------------------------------------------------------- %macro MOV8 2-3 ; sort of a hack, but it works %if mmsize==8 movq [%1+0], %2 movq [%1+8], %3 %else movdqa [%1], %2 %endif %endmacro %macro PRED8x8_DC 2 cglobal pred8x8_dc_10_%1, 2,6 sub r0, r1 pxor m4, m4 movq m0, [r0+0] movq m1, [r0+8] %if mmsize==16 punpcklwd m0, m1 movhlps m1, m0 paddw m0, m1 %else pshufw m2, m0, 00001110b pshufw m3, m1, 00001110b paddw m0, m2 paddw m1, m3 punpcklwd m0, m1 %endif %2 m2, m0, 00001110b paddw m0, m2 lea r5, [r1*3] lea r4, [r0+r1*4] movzx r2d, word [r0+r1*1-2] movzx r3d, word [r0+r1*2-2] add r2d, r3d movzx r3d, word [r0+r5*1-2] add r2d, r3d movzx r3d, word [r4-2] add r2d, r3d movd m2, r2d ; s2 movzx r2d, word [r4+r1*1-2] movzx r3d, word [r4+r1*2-2] add r2d, r3d movzx r3d, word [r4+r5*1-2] add r2d, r3d movzx r3d, word [r4+r1*4-2] add r2d, r3d movd m3, r2d ; s3 punpcklwd m2, m3 punpckldq m0, m2 ; s0, s1, s2, s3 %2 m3, m0, 11110110b ; s2, s1, s3, s3 %2 m0, m0, 01110100b ; s0, s1, s3, s1 paddw m0, m3 psrlw m0, 2 pavgw m0, m4 ; s0+s2, s1, s3, s1+s3 %if mmsize==16 punpcklwd m0, m0 pshufd m3, m0, 11111010b punpckldq m0, m0 SWAP 0,1 %else pshufw m1, m0, 0x00 pshufw m2, m0, 0x55 pshufw m3, m0, 0xaa pshufw m4, m0, 0xff %endif MOV8 r0+r1*1, m1, m2 MOV8 r0+r1*2, m1, m2 MOV8 r0+r5*1, m1, m2 MOV8 r0+r1*4, m1, m2 MOV8 r4+r1*1, m3, m4 MOV8 r4+r1*2, m3, m4 MOV8 r4+r5*1, m3, m4 MOV8 r4+r1*4, m3, m4 RET %endmacro INIT_MMX PRED8x8_DC mmxext, pshufw INIT_XMM PRED8x8_DC sse2 , pshuflw ;----------------------------------------------------------------------------- ; void pred8x8_top_dc(pixel *src, int stride) ;----------------------------------------------------------------------------- INIT_XMM cglobal pred8x8_top_dc_10_sse2, 2,4 sub r0, r1 mova m0, [r0] pshuflw m1, m0, 0x4e pshufhw m1, m1, 0x4e paddw m0, m1 pshuflw m1, m0, 0xb1 pshufhw m1, m1, 0xb1 paddw m0, m1 lea r2, [r1*3] lea r3, [r0+r1*4] paddw m0, [pw_2] psrlw m0, 2 mova [r0+r1*1], m0 mova [r0+r1*2], m0 mova [r0+r2*1], m0 mova [r0+r1*4], m0 mova [r3+r1*1], m0 mova [r3+r1*2], m0 mova [r3+r2*1], m0 mova [r3+r1*4], m0 RET ;----------------------------------------------------------------------------- ; void pred8x8_plane(pixel *src, int stride) ;----------------------------------------------------------------------------- INIT_XMM cglobal pred8x8_plane_10_sse2, 2,7,7 sub r0, r1 lea r2, [r1*3] lea r3, [r0+r1*4] mova m2, [r0] pmaddwd m2, [pw_m32101234] HADDD m2, m1 movd m0, [r0-4] psrld m0, 14 psubw m2, m0 ; H movd m0, [r3+r1*4-4] movd m1, [r0+12] paddw m0, m1 psllw m0, 4 ; 16*(src[7*stride-1] + src[-stride+7]) movzx r4d, word [r3+r1*1-2] ; src[4*stride-1] movzx r5d, word [r0+r2*1-2] ; src[2*stride-1] sub r4d, r5d movzx r6d, word [r3+r1*2-2] ; src[5*stride-1] movzx r5d, word [r0+r1*2-2] ; src[1*stride-1] sub r6d, r5d lea r4d, [r4+r6*2] movzx r5d, word [r3+r2*1-2] ; src[6*stride-1] movzx r6d, word [r0+r1*1-2] ; src[0*stride-1] sub r5d, r6d lea r5d, [r5*3] add r4d, r5d movzx r6d, word [r3+r1*4-2] ; src[7*stride-1] movzx r5d, word [r0+r1*0-2] ; src[ -stride-1] sub r6d, r5d lea r4d, [r4+r6*4] movd m3, r4d ; V punpckldq m2, m3 pmaddwd m2, [pd_17] paddd m2, [pd_16] psrad m2, 5 ; b, c mova m3, [pw_pixel_max] pxor m1, m1 SPLATW m0, m0, 1 SPLATW m4, m2, 2 SPLATW m2, m2, 0 pmullw m2, [pw_m32101234] ; b pmullw m5, m4, [pw_m3] ; c paddw m5, [pw_16] mov r2d, 8 add r0, r1 .loop: paddsw m6, m2, m5 paddsw m6, m0 psraw m6, 5 CLIPW m6, m1, m3 mova [r0], m6 paddw m5, m4 add r0, r1 dec r2d jg .loop REP_RET ;----------------------------------------------------------------------------- ; void pred8x8l_128_dc(pixel *src, int has_topleft, int has_topright, int stride) ;----------------------------------------------------------------------------- %macro PRED8x8L_128_DC 1 cglobal pred8x8l_128_dc_10_%1, 4,4 mova m0, [pw_512] ; (1<<(BIT_DEPTH-1)) lea r1, [r3*3] lea r2, [r0+r3*4] MOV8 r0+r3*0, m0, m0 MOV8 r0+r3*1, m0, m0 MOV8 r0+r3*2, m0, m0 MOV8 r0+r1*1, m0, m0 MOV8 r2+r3*0, m0, m0 MOV8 r2+r3*1, m0, m0 MOV8 r2+r3*2, m0, m0 MOV8 r2+r1*1, m0, m0 RET %endmacro INIT_MMX PRED8x8L_128_DC mmxext INIT_XMM PRED8x8L_128_DC sse2 ;----------------------------------------------------------------------------- ; void pred8x8l_top_dc(pixel *src, int has_topleft, int has_topright, int stride) ;----------------------------------------------------------------------------- %macro PRED8x8L_TOP_DC 1 cglobal pred8x8l_top_dc_10_%1, 4,4,6 sub r0, r3 mova m0, [r0] shr r1d, 14 shr r2d, 13 neg r1 pslldq m1, m0, 2 psrldq m2, m0, 2 pinsrw m1, [r0+r1], 0 pinsrw m2, [r0+r2+14], 7 lea r1, [r3*3] lea r2, [r0+r3*4] PRED4x4_LOWPASS m0, m2, m1, m0 HADDW m0, m1 paddw m0, [pw_4] psrlw m0, 3 SPLATW m0, m0, 0 mova [r0+r3*1], m0 mova [r0+r3*2], m0 mova [r0+r1*1], m0 mova [r0+r3*4], m0 mova [r2+r3*1], m0 mova [r2+r3*2], m0 mova [r2+r1*1], m0 mova [r2+r3*4], m0 RET %endmacro INIT_XMM PRED8x8L_TOP_DC sse2 %ifdef HAVE_AVX INIT_AVX PRED8x8L_TOP_DC avx %endif ;----------------------------------------------------------------------------- ;void pred8x8l_dc(pixel *src, int has_topleft, int has_topright, int stride) ;----------------------------------------------------------------------------- ;TODO: see if scalar is faster %macro PRED8x8L_DC 1 cglobal pred8x8l_dc_10_%1, 4,6,6 sub r0, r3 lea r4, [r0+r3*4] lea r5, [r3*3] mova m0, [r0+r3*2-16] punpckhwd m0, [r0+r3*1-16] mova m1, [r4+r3*0-16] punpckhwd m1, [r0+r5*1-16] punpckhdq m1, m0 mova m2, [r4+r3*2-16] punpckhwd m2, [r4+r3*1-16] mova m3, [r4+r3*4-16] punpckhwd m3, [r4+r5*1-16] punpckhdq m3, m2 punpckhqdq m3, m1 mova m0, [r0] shr r1d, 14 shr r2d, 13 neg r1 pslldq m1, m0, 2 psrldq m2, m0, 2 pinsrw m1, [r0+r1], 0 pinsrw m2, [r0+r2+14], 7 not r1 and r1, r3 pslldq m4, m3, 2 psrldq m5, m3, 2 pshuflw m4, m4, 11100101b pinsrw m5, [r0+r1-2], 7 PRED4x4_LOWPASS m3, m4, m5, m3 PRED4x4_LOWPASS m0, m2, m1, m0 paddw m0, m3 HADDW m0, m1 paddw m0, [pw_8] psrlw m0, 4 SPLATW m0, m0 mova [r0+r3*1], m0 mova [r0+r3*2], m0 mova [r0+r5*1], m0 mova [r0+r3*4], m0 mova [r4+r3*1], m0 mova [r4+r3*2], m0 mova [r4+r5*1], m0 mova [r4+r3*4], m0 RET %endmacro INIT_XMM PRED8x8L_DC sse2 %ifdef HAVE_AVX INIT_AVX PRED8x8L_DC avx %endif ;----------------------------------------------------------------------------- ; void pred8x8l_vertical(pixel *src, int has_topleft, int has_topright, int stride) ;----------------------------------------------------------------------------- %macro PRED8x8L_VERTICAL 1 cglobal pred8x8l_vertical_10_%1, 4,4,6 sub r0, r3 mova m0, [r0] shr r1d, 14 shr r2d, 13 neg r1 pslldq m1, m0, 2 psrldq m2, m0, 2 pinsrw m1, [r0+r1], 0 pinsrw m2, [r0+r2+14], 7 lea r1, [r3*3] lea r2, [r0+r3*4] PRED4x4_LOWPASS m0, m2, m1, m0 mova [r0+r3*1], m0 mova [r0+r3*2], m0 mova [r0+r1*1], m0 mova [r0+r3*4], m0 mova [r2+r3*1], m0 mova [r2+r3*2], m0 mova [r2+r1*1], m0 mova [r2+r3*4], m0 RET %endmacro INIT_XMM PRED8x8L_VERTICAL sse2 %ifdef HAVE_AVX INIT_AVX PRED8x8L_VERTICAL avx %endif ;----------------------------------------------------------------------------- ; void pred8x8l_horizontal(uint8_t *src, int has_topleft, int has_topright, int stride) ;----------------------------------------------------------------------------- %macro PRED8x8L_HORIZONTAL 1 cglobal pred8x8l_horizontal_10_%1, 4,4,5 mova m0, [r0-16] shr r1d, 14 dec r1 and r1, r3 sub r1, r3 punpckhwd m0, [r0+r1-16] mova m1, [r0+r3*2-16] punpckhwd m1, [r0+r3*1-16] lea r2, [r0+r3*4] lea r1, [r3*3] punpckhdq m1, m0 mova m2, [r2+r3*0-16] punpckhwd m2, [r0+r1-16] mova m3, [r2+r3*2-16] punpckhwd m3, [r2+r3*1-16] punpckhdq m3, m2 punpckhqdq m3, m1 PALIGNR m4, m3, [r2+r1-16], 14, m0 pslldq m0, m4, 2 pshuflw m0, m0, 11100101b PRED4x4_LOWPASS m4, m3, m0, m4 punpckhwd m3, m4, m4 punpcklwd m4, m4 pshufd m0, m3, 0xff pshufd m1, m3, 0xaa pshufd m2, m3, 0x55 pshufd m3, m3, 0x00 mova [r0+r3*0], m0 mova [r0+r3*1], m1 mova [r0+r3*2], m2 mova [r0+r1*1], m3 pshufd m0, m4, 0xff pshufd m1, m4, 0xaa pshufd m2, m4, 0x55 pshufd m3, m4, 0x00 mova [r2+r3*0], m0 mova [r2+r3*1], m1 mova [r2+r3*2], m2 mova [r2+r1*1], m3 RET %endmacro INIT_XMM %define PALIGNR PALIGNR_MMX PRED8x8L_HORIZONTAL sse2 %define PALIGNR PALIGNR_SSSE3 PRED8x8L_HORIZONTAL ssse3 %ifdef HAVE_AVX INIT_AVX PRED8x8L_HORIZONTAL avx %endif ;----------------------------------------------------------------------------- ;void pred8x8l_down_left(pixel *src, int has_topleft, int has_topright, int stride) ;----------------------------------------------------------------------------- %macro PRED8x8L_DOWN_LEFT 1 cglobal pred8x8l_down_left_10_%1, 4,4,7 sub r0, r3 mova m3, [r0] shr r1d, 14 neg r1 shr r2d, 13 pslldq m1, m3, 2 psrldq m2, m3, 2 pinsrw m1, [r0+r1], 0 pinsrw m2, [r0+r2+14], 7 PRED4x4_LOWPASS m6, m2, m1, m3 jz .fix_tr ; flags from shr r2d mova m1, [r0+16] psrldq m5, m1, 2 PALIGNR m2, m1, m3, 14, m3 pshufhw m5, m5, 10100100b PRED4x4_LOWPASS m1, m2, m5, m1 .do_topright: lea r1, [r3*3] psrldq m5, m1, 14 lea r2, [r0+r3*4] PALIGNR m2, m1, m6, 2, m0 PALIGNR m3, m1, m6, 14, m0 PALIGNR m5, m1, 2, m0 pslldq m4, m6, 2 PRED4x4_LOWPASS m6, m4, m2, m6 PRED4x4_LOWPASS m1, m3, m5, m1 mova [r2+r3*4], m1 PALIGNR m1, m6, 14, m2 pslldq m6, 2 mova [r2+r1*1], m1 PALIGNR m1, m6, 14, m2 pslldq m6, 2 mova [r2+r3*2], m1 PALIGNR m1, m6, 14, m2 pslldq m6, 2 mova [r2+r3*1], m1 PALIGNR m1, m6, 14, m2 pslldq m6, 2 mova [r0+r3*4], m1 PALIGNR m1, m6, 14, m2 pslldq m6, 2 mova [r0+r1*1], m1 PALIGNR m1, m6, 14, m2 pslldq m6, 2 mova [r0+r3*2], m1 PALIGNR m1, m6, 14, m6 mova [r0+r3*1], m1 RET .fix_tr: punpckhwd m3, m3 pshufd m1, m3, 0xFF jmp .do_topright %endmacro INIT_XMM %define PALIGNR PALIGNR_MMX PRED8x8L_DOWN_LEFT sse2 %define PALIGNR PALIGNR_SSSE3 PRED8x8L_DOWN_LEFT ssse3 %ifdef HAVE_AVX INIT_AVX PRED8x8L_DOWN_LEFT avx %endif ;----------------------------------------------------------------------------- ;void pred8x8l_down_right(pixel *src, int has_topleft, int has_topright, int stride) ;----------------------------------------------------------------------------- %macro PRED8x8L_DOWN_RIGHT 1 ; standard forbids this when has_topleft is false ; no need to check cglobal pred8x8l_down_right_10_%1, 4,5,8 sub r0, r3 lea r4, [r0+r3*4] lea r1, [r3*3] mova m0, [r0+r3*1-16] punpckhwd m0, [r0+r3*0-16] mova m1, [r0+r1*1-16] punpckhwd m1, [r0+r3*2-16] punpckhdq m1, m0 mova m2, [r4+r3*1-16] punpckhwd m2, [r4+r3*0-16] mova m3, [r4+r1*1-16] punpckhwd m3, [r4+r3*2-16] punpckhdq m3, m2 punpckhqdq m3, m1 mova m0, [r4+r3*4-16] mova m1, [r0] PALIGNR m4, m3, m0, 14, m0 PALIGNR m1, m3, 2, m2 pslldq m0, m4, 2 pshuflw m0, m0, 11100101b PRED4x4_LOWPASS m6, m1, m4, m3 PRED4x4_LOWPASS m4, m3, m0, m4 mova m3, [r0] shr r2d, 13 pslldq m1, m3, 2 psrldq m2, m3, 2 pinsrw m1, [r0-2], 0 pinsrw m2, [r0+r2+14], 7 PRED4x4_LOWPASS m3, m2, m1, m3 PALIGNR m2, m3, m6, 2, m0 PALIGNR m5, m3, m6, 14, m0 psrldq m7, m3, 2 PRED4x4_LOWPASS m6, m4, m2, m6 PRED4x4_LOWPASS m3, m5, m7, m3 mova [r4+r3*4], m6 PALIGNR m3, m6, 14, m2 pslldq m6, 2 mova [r0+r3*1], m3 PALIGNR m3, m6, 14, m2 pslldq m6, 2 mova [r0+r3*2], m3 PALIGNR m3, m6, 14, m2 pslldq m6, 2 mova [r0+r1*1], m3 PALIGNR m3, m6, 14, m2 pslldq m6, 2 mova [r0+r3*4], m3 PALIGNR m3, m6, 14, m2 pslldq m6, 2 mova [r4+r3*1], m3 PALIGNR m3, m6, 14, m2 pslldq m6, 2 mova [r4+r3*2], m3 PALIGNR m3, m6, 14, m6 mova [r4+r1*1], m3 RET %endmacro INIT_XMM %define PALIGNR PALIGNR_MMX PRED8x8L_DOWN_RIGHT sse2 %define PALIGNR PALIGNR_SSSE3 PRED8x8L_DOWN_RIGHT ssse3 %ifdef HAVE_AVX INIT_AVX PRED8x8L_DOWN_RIGHT avx %endif ;----------------------------------------------------------------------------- ; void pred8x8l_vertical_right(pixel *src, int has_topleft, int has_topright, int stride) ;----------------------------------------------------------------------------- %macro PRED8x8L_VERTICAL_RIGHT 1 ; likewise with 8x8l_down_right cglobal pred8x8l_vertical_right_10_%1, 4,5,7 sub r0, r3 lea r4, [r0+r3*4] lea r1, [r3*3] mova m0, [r0+r3*1-16] punpckhwd m0, [r0+r3*0-16] mova m1, [r0+r1*1-16] punpckhwd m1, [r0+r3*2-16] punpckhdq m1, m0 mova m2, [r4+r3*1-16] punpckhwd m2, [r4+r3*0-16] mova m3, [r4+r1*1-16] punpckhwd m3, [r4+r3*2-16] punpckhdq m3, m2 punpckhqdq m3, m1 mova m0, [r4+r3*4-16] mova m1, [r0] PALIGNR m4, m3, m0, 14, m0 PALIGNR m1, m3, 2, m2 PRED4x4_LOWPASS m3, m1, m4, m3 mova m2, [r0] shr r2d, 13 pslldq m1, m2, 2 psrldq m5, m2, 2 pinsrw m1, [r0-2], 0 pinsrw m5, [r0+r2+14], 7 PRED4x4_LOWPASS m2, m5, m1, m2 PALIGNR m6, m2, m3, 12, m1 PALIGNR m5, m2, m3, 14, m0 PRED4x4_LOWPASS m0, m6, m2, m5 pavgw m2, m5 mova [r0+r3*2], m0 mova [r0+r3*1], m2 pslldq m6, m3, 4 pslldq m1, m3, 2 PRED4x4_LOWPASS m1, m3, m6, m1 PALIGNR m2, m1, 14, m4 mova [r0+r1*1], m2 pslldq m1, 2 PALIGNR m0, m1, 14, m3 mova [r0+r3*4], m0 pslldq m1, 2 PALIGNR m2, m1, 14, m4 mova [r4+r3*1], m2 pslldq m1, 2 PALIGNR m0, m1, 14, m3 mova [r4+r3*2], m0 pslldq m1, 2 PALIGNR m2, m1, 14, m4 mova [r4+r1*1], m2 pslldq m1, 2 PALIGNR m0, m1, 14, m1 mova [r4+r3*4], m0 RET %endmacro INIT_XMM %define PALIGNR PALIGNR_MMX PRED8x8L_VERTICAL_RIGHT sse2 %define PALIGNR PALIGNR_SSSE3 PRED8x8L_VERTICAL_RIGHT ssse3 %ifdef HAVE_AVX INIT_AVX PRED8x8L_VERTICAL_RIGHT avx %endif ;----------------------------------------------------------------------------- ; void pred8x8l_horizontal_up(pixel *src, int has_topleft, int has_topright, int stride) ;----------------------------------------------------------------------------- %macro PRED8x8L_HORIZONTAL_UP 1 cglobal pred8x8l_horizontal_up_10_%1, 4,4,6 mova m0, [r0+r3*0-16] punpckhwd m0, [r0+r3*1-16] shr r1d, 14 dec r1 and r1, r3 sub r1, r3 mova m4, [r0+r1*1-16] lea r1, [r3*3] lea r2, [r0+r3*4] mova m1, [r0+r3*2-16] punpckhwd m1, [r0+r1*1-16] punpckhdq m0, m1 mova m2, [r2+r3*0-16] punpckhwd m2, [r2+r3*1-16] mova m3, [r2+r3*2-16] punpckhwd m3, [r2+r1*1-16] punpckhdq m2, m3 punpckhqdq m0, m2 PALIGNR m1, m0, m4, 14, m4 psrldq m2, m0, 2 pshufhw m2, m2, 10100100b PRED4x4_LOWPASS m0, m1, m2, m0 psrldq m1, m0, 2 psrldq m2, m0, 4 pshufhw m1, m1, 10100100b pshufhw m2, m2, 01010100b pavgw m4, m0, m1 PRED4x4_LOWPASS m1, m2, m0, m1 punpckhwd m5, m4, m1 punpcklwd m4, m1 mova [r2+r3*0], m5 mova [r0+r3*0], m4 pshufd m0, m5, 11111001b pshufd m1, m5, 11111110b pshufd m2, m5, 11111111b mova [r2+r3*1], m0 mova [r2+r3*2], m1 mova [r2+r1*1], m2 PALIGNR m2, m5, m4, 4, m0 PALIGNR m3, m5, m4, 8, m1 PALIGNR m5, m5, m4, 12, m4 mova [r0+r3*1], m2 mova [r0+r3*2], m3 mova [r0+r1*1], m5 RET %endmacro INIT_XMM %define PALIGNR PALIGNR_MMX PRED8x8L_HORIZONTAL_UP sse2 %define PALIGNR PALIGNR_SSSE3 PRED8x8L_HORIZONTAL_UP ssse3 %ifdef HAVE_AVX INIT_AVX PRED8x8L_HORIZONTAL_UP avx %endif ;----------------------------------------------------------------------------- ; void pred16x16_vertical(pixel *src, int stride) ;----------------------------------------------------------------------------- %macro MOV16 3-5 mova [%1+ 0], %2 mova [%1+mmsize], %3 %if mmsize==8 mova [%1+ 16], %4 mova [%1+ 24], %5 %endif %endmacro %macro PRED16x16_VERTICAL 1 cglobal pred16x16_vertical_10_%1, 2,3 sub r0, r1 mov r2d, 8 mova m0, [r0+ 0] mova m1, [r0+mmsize] %if mmsize==8 mova m2, [r0+16] mova m3, [r0+24] %endif .loop: MOV16 r0+r1*1, m0, m1, m2, m3 MOV16 r0+r1*2, m0, m1, m2, m3 lea r0, [r0+r1*2] dec r2d jg .loop REP_RET %endmacro INIT_MMX PRED16x16_VERTICAL mmxext INIT_XMM PRED16x16_VERTICAL sse2 ;----------------------------------------------------------------------------- ; void pred16x16_horizontal(pixel *src, int stride) ;----------------------------------------------------------------------------- %macro PRED16x16_HORIZONTAL 1 cglobal pred16x16_horizontal_10_%1, 2,3 mov r2d, 8 .vloop: movd m0, [r0+r1*0-4] movd m1, [r0+r1*1-4] SPLATW m0, m0, 1 SPLATW m1, m1, 1 MOV16 r0+r1*0, m0, m0, m0, m0 MOV16 r0+r1*1, m1, m1, m1, m1 lea r0, [r0+r1*2] dec r2d jg .vloop REP_RET %endmacro INIT_MMX PRED16x16_HORIZONTAL mmxext INIT_XMM PRED16x16_HORIZONTAL sse2 ;----------------------------------------------------------------------------- ; void pred16x16_dc(pixel *src, int stride) ;----------------------------------------------------------------------------- %macro PRED16x16_DC 1 cglobal pred16x16_dc_10_%1, 2,6 mov r5, r0 sub r0, r1 mova m0, [r0+0] paddw m0, [r0+mmsize] %if mmsize==8 paddw m0, [r0+16] paddw m0, [r0+24] %endif HADDW m0, m2 lea r0, [r0+r1-2] movzx r3d, word [r0] movzx r4d, word [r0+r1] %rep 7 lea r0, [r0+r1*2] movzx r2d, word [r0] add r3d, r2d movzx r2d, word [r0+r1] add r4d, r2d %endrep lea r3d, [r3+r4+16] movd m1, r3d paddw m0, m1 psrlw m0, 5 SPLATW m0, m0 mov r3d, 8 .loop: MOV16 r5+r1*0, m0, m0, m0, m0 MOV16 r5+r1*1, m0, m0, m0, m0 lea r5, [r5+r1*2] dec r3d jg .loop REP_RET %endmacro INIT_MMX PRED16x16_DC mmxext INIT_XMM PRED16x16_DC sse2 ;----------------------------------------------------------------------------- ; void pred16x16_top_dc(pixel *src, int stride) ;----------------------------------------------------------------------------- %macro PRED16x16_TOP_DC 1 cglobal pred16x16_top_dc_10_%1, 2,3 sub r0, r1 mova m0, [r0+0] paddw m0, [r0+mmsize] %if mmsize==8 paddw m0, [r0+16] paddw m0, [r0+24] %endif HADDW m0, m2 SPLATW m0, m0 paddw m0, [pw_8] psrlw m0, 4 mov r2d, 8 .loop: MOV16 r0+r1*1, m0, m0, m0, m0 MOV16 r0+r1*2, m0, m0, m0, m0 lea r0, [r0+r1*2] dec r2d jg .loop REP_RET %endmacro INIT_MMX PRED16x16_TOP_DC mmxext INIT_XMM PRED16x16_TOP_DC sse2 ;----------------------------------------------------------------------------- ; void pred16x16_left_dc(pixel *src, int stride) ;----------------------------------------------------------------------------- %macro PRED16x16_LEFT_DC 1 cglobal pred16x16_left_dc_10_%1, 2,6 mov r5, r0 sub r0, 2 movzx r3d, word [r0] movzx r4d, word [r0+r1] %rep 7 lea r0, [r0+r1*2] movzx r2d, word [r0] add r3d, r2d movzx r2d, word [r0+r1] add r4d, r2d %endrep lea r3d, [r3+r4+8] shr r3d, 4 movd m0, r3d SPLATW m0, m0 mov r3d, 8 .loop: MOV16 r5+r1*0, m0, m0, m0, m0 MOV16 r5+r1*1, m0, m0, m0, m0 lea r5, [r5+r1*2] dec r3d jg .loop REP_RET %endmacro INIT_MMX PRED16x16_LEFT_DC mmxext INIT_XMM PRED16x16_LEFT_DC sse2 ;----------------------------------------------------------------------------- ; void pred16x16_128_dc(pixel *src, int stride) ;----------------------------------------------------------------------------- %macro PRED16x16_128_DC 1 cglobal pred16x16_128_dc_10_%1, 2,3 mova m0, [pw_512] mov r2d, 8 .loop: MOV16 r0+r1*0, m0, m0, m0, m0 MOV16 r0+r1*1, m0, m0, m0, m0 lea r0, [r0+r1*2] dec r2d jg .loop REP_RET %endmacro INIT_MMX PRED16x16_128_DC mmxext INIT_XMM PRED16x16_128_DC sse2
26.99421
89
0.47371
cdc1dcf93e07035eacdde8dfed8edaa4da6e40a5
834
kt
Kotlin
src/main/kotlin/org/phc1990/mammok/topology/space/search/ListedSpace.kt
phc1990/k-mamo
32fc16ca4758c3c283ee4aa873ccf790a2d24210
[ "Apache-2.0" ]
null
null
null
src/main/kotlin/org/phc1990/mammok/topology/space/search/ListedSpace.kt
phc1990/k-mamo
32fc16ca4758c3c283ee4aa873ccf790a2d24210
[ "Apache-2.0" ]
null
null
null
src/main/kotlin/org/phc1990/mammok/topology/space/search/ListedSpace.kt
phc1990/k-mamo
32fc16ca4758c3c283ee4aa873ccf790a2d24210
[ "Apache-2.0" ]
null
null
null
package org.phc1990.mammok.topology.space.search import org.phc1990.mammok.topology.space.FiniteSpace /** * A [Space] constituted by a finite number of possibilities. * * @see FiniteSpace * @author [Pau Hebrero Casasayas](https://github.com/phc1990) - May 28, 2020 */ class ListedSpace<T>(private val values: List<T>, private val neighborhoodFunction: ((point: T) -> Array<T>?)? = null): FiniteSpace<T> { init { if (values.isEmpty()) throw IllegalArgumentException("Set is null.") } fun indexOf(t: T): Int = values.indexOf(t) override fun size(): Int = values.size override fun get(i: Int): T = values[i] override fun neighbors(t: T): Array<T>? { neighborhoodFunction?.let {function -> function.invoke(t)?.let { array -> return array }} return null } }
33.36
107
0.651079
46dc330cd27e5dc9662eb6e7d50fb7953d1866a0
826
dart
Dart
test/bitcount_test.dart
akhomchenko/bitcount
c19a3c36cc7aa0c33e7f72043a6fc7f5de3b799e
[ "MIT" ]
1
2022-03-06T15:18:01.000Z
2022-03-06T15:18:01.000Z
test/bitcount_test.dart
gagoman/bitcount
c19a3c36cc7aa0c33e7f72043a6fc7f5de3b799e
[ "MIT" ]
4
2021-03-10T08:38:29.000Z
2021-11-16T21:23:16.000Z
test/bitcount_test.dart
gagoman/bitcount
c19a3c36cc7aa0c33e7f72043a6fc7f5de3b799e
[ "MIT" ]
1
2021-03-10T09:08:46.000Z
2021-03-10T09:08:46.000Z
import 'dart:math'; import 'package:bitcount/bitcount.dart'; import 'package:test/test.dart'; void main() { group('.bitCount()', () { void checkBitCount(int number, int expectedCount) { test('$expectedCount for $number', () { expect(number.bitCount(), expectedCount); }); } group('returns', () { for (var shift = 0; shift < 53; shift += 1) { checkBitCount(_shiftLeft(1, shift), 1); checkBitCount(_shiftLeft(1, shift) - 1, shift); } }); group('returns', () { for (var shift = 53; shift < 64; shift += 1) { checkBitCount(_shiftLeft(1, shift), 1); checkBitCount(_shiftLeft(1, shift) - 1, shift); } }, testOn: '!js'); // see .bitCount() docs }); } int _shiftLeft(int n, int shift) { return n * pow(2, shift).toInt(); }
25.030303
55
0.566586
8da6a3752db6256a2b7e7f0563f67d20e2e25e54
129
sql
SQL
resources/migrations/badge/sql/201802130919-endorsement-tables.down.sql
Vilikkki/salava
8bd253b0f3fdc808d3dcd2200a932a2629fe3e9e
[ "Apache-2.0" ]
17
2015-11-08T12:16:24.000Z
2019-10-24T12:36:04.000Z
resources/migrations/badge/sql/201802130919-endorsement-tables.down.sql
Vilikkki/salava
8bd253b0f3fdc808d3dcd2200a932a2629fe3e9e
[ "Apache-2.0" ]
12
2016-03-11T11:16:49.000Z
2019-11-22T08:30:07.000Z
resources/migrations/badge/sql/201802130919-endorsement-tables.down.sql
Vilikkki/salava
8bd253b0f3fdc808d3dcd2200a932a2629fe3e9e
[ "Apache-2.0" ]
10
2016-02-23T12:42:00.000Z
2019-11-12T12:36:56.000Z
DROP TABLE `endorsement_content`; --;; DROP TABLE `badge_endorsement_content`; --;; DROP TABLE `issuer_endorsement_content`;
12.9
40
0.751938
d4e9c9e17f9f4db15a52d655ab3021fef89882cb
108
sh
Shell
test/wsdl/interop4/groupi/run.sh
Cosium/axis-project
d79603ccfeaa50c8c75cc1c3938edcb8a1dc7eff
[ "Apache-2.0" ]
3
2020-06-14T13:00:05.000Z
2021-11-10T23:02:45.000Z
test/wsdl/interop4/groupi/run.sh
Cosium/axis-project
d79603ccfeaa50c8c75cc1c3938edcb8a1dc7eff
[ "Apache-2.0" ]
6
2017-11-03T17:46:44.000Z
2022-01-07T18:41:45.000Z
test/wsdl/interop4/groupi/run.sh
albfernandez/axis1-java
83b06f5f8e00eb809b2aef51d9de9ef6d0f293ee
[ "Apache-2.0" ]
10
2020-09-21T14:12:59.000Z
2022-01-27T13:14:07.000Z
#!/bin/sh # # Run the test against an endpoint # java test.wsdl.interop4.groupi.Round4XSDTestTestCase $1
12
55
0.740741
b14b5b7ccae83bac1849a3d8bece948fdde91a3e
386
sql
SQL
sqitch/deploy/data/database-design-standards.sql
Ovid/ovid.github.com
ee26ddcea85cfddcbaadeaeedb8444e6317bb2c7
[ "MIT" ]
6
2015-03-26T21:31:03.000Z
2021-02-18T03:36:28.000Z
sqitch/deploy/data/database-design-standards.sql
Ovid/ovid.github.com
ee26ddcea85cfddcbaadeaeedb8444e6317bb2c7
[ "MIT" ]
9
2019-01-22T11:43:18.000Z
2022-03-16T17:45:38.000Z
sqitch/deploy/data/database-design-standards.sql
Ovid/ovid.github.com
ee26ddcea85cfddcbaadeaeedb8444e6317bb2c7
[ "MIT" ]
10
2015-02-01T06:27:49.000Z
2020-07-27T10:47:30.000Z
-- Deploy ovid:data/database-design-standards to sqlite BEGIN; INSERT INTO articles (title, slug, article_type_id, sort_order) VALUES ( 'Database Design Standards', 'database-design-standards', (SELECT article_type_id FROM article_types WHERE type = 'article'), (SELECT max(sort_order) FROM articles) + 1 ); COMMIT;
27.571429
78
0.637306
db84b62b8971610cd6ef6c49e534a23a35dfdcef
2,526
php
PHP
app/code/community/Quafzi/FixedBillingAddress/Block/Checkout/Onepage/Billing.php
infabo/magento-fixedCustomerAddresses
01f37b2be7710b875ccf13e3ea3b012d28677cbc
[ "MIT" ]
1
2016-01-14T10:54:51.000Z
2016-01-14T10:54:51.000Z
app/code/community/Quafzi/FixedBillingAddress/Block/Checkout/Onepage/Billing.php
infabo/magento-fixedCustomerAddresses
01f37b2be7710b875ccf13e3ea3b012d28677cbc
[ "MIT" ]
null
null
null
app/code/community/Quafzi/FixedBillingAddress/Block/Checkout/Onepage/Billing.php
infabo/magento-fixedCustomerAddresses
01f37b2be7710b875ccf13e3ea3b012d28677cbc
[ "MIT" ]
1
2020-10-09T19:52:36.000Z
2020-10-09T19:52:36.000Z
<?php class Quafzi_FixedBillingAddress_Block_Checkout_Onepage_Billing extends Mage_Checkout_Block_Onepage_Billing { public function getAddressesHtmlSelect($type) { if ($this->isCustomerLoggedIn()) { if ('billing' !== $type || false === Mage::helper('quafzi_fixedbillingaddress/data')->isBillingAddressFixed() ) { return parent::getAddressesHtmlSelect($type); } if (Mage::helper('quafzi_fixedbillingaddress')->isBillingAddressSelectable()) { $options = array(); foreach ($this->getCustomer()->getAddresses() as $address) { $options[] = array( 'value' => $address->getId(), 'label' => $address->format('oneline') ); } $addressId = $this->getAddress()->getCustomerAddressId(); if (empty($addressId)) { $address = $this->getCustomer()->getPrimaryBillingAddress(); if ($address) { $addressId = $address->getId(); } } $select = $this->getLayout()->createBlock('core/html_select') ->setName($type . '_address_id') ->setId($type . '-address-select') ->setClass('address-select') ->setExtraParams('onchange="' . $type . '.newAddress(!this.value)"') ->setValue($addressId) ->setOptions($options); if (Mage::helper('quafzi_fixedbillingaddress')->isCreateOrModifyAdditionalAddressAllowed()) { $select->addOption('', Mage::helper('checkout')->__('New Address')); } return $select->getHtml(); } else { $selectId = 'billing-address-select'; $js = '<script type="text/javascript">$("' . $selectId . '").parentElement.previousElementSibling.hide()</script>'; return '<input id="' . $selectId . '" type="hidden" value="' . $this->getAddress()->getAddressId() . '">' . $this->_getBillingAddressHtml() . $js; } } return ''; } protected function _getBillingAddressHtml() { $address = $this->getCustomer()->getPrimaryBillingAddress(); if ($address instanceof Varien_Object) { return $address->format('html'); } } }
39.46875
131
0.504355
f415711b234079ce5598e1aefe4111b31ce5737f
2,794
cs
C#
src/Loggr.Extensions.Logging/Loggr/Users.cs
imobile3/Loggr.Framework.Logging
e78146df4c558be75e55e46a64e93162e86efa29
[ "FSFAP" ]
null
null
null
src/Loggr.Extensions.Logging/Loggr/Users.cs
imobile3/Loggr.Framework.Logging
e78146df4c558be75e55e46a64e93162e86efa29
[ "FSFAP" ]
null
null
null
src/Loggr.Extensions.Logging/Loggr/Users.cs
imobile3/Loggr.Framework.Logging
e78146df4c558be75e55e46a64e93162e86efa29
[ "FSFAP" ]
null
null
null
using System; using System.Collections.Generic; using System.Text; namespace Loggr { public static class Users { /// <summary> /// Tracks a user's activity /// </summary> /// <param name="username">Username of user to track</param> public static void TrackUser(string username) { TrackUser(username, "", ""); } /// <summary> /// Tracks a user's activity /// </summary> /// <param name="username">Username of user to track</param> /// <param name="email">Email address of user to track</param> public static void TrackUser(string username, string email) { TrackUser(username, email, ""); } /// <summary> /// Tracks a user's activity /// </summary> /// <param name="username">Username of user to track</param> /// <param name="email">Email address of user to track</param> /// <param name="page">Page being viewed by user</param> public static void TrackUser(string username, string email, string page) { TrackUser(username, email, page, true); } /// <summary> /// Tracks a user's activity /// </summary> /// <param name="username">Username of user to track</param> /// <param name="email">Email address of user to track</param> /// <param name="page">Page being viewed by user</param> /// <param name="async">A bool that specifies how user tracking should be sent to Loggr. Typically an application will post asynchronously for best performance, but sometimes it needs to be posted synchronously if the application needs to block until the post has completed</param> public static void TrackUser(string username, string email, string page, bool async) { TrackUser(username, email, page, async, new LogClient()); } /// <summary> /// Tracks a user's activity /// </summary> /// <param name="username">Username of user to track</param> /// <param name="email">Email address of user to track</param> /// <param name="page">Page being viewed by user</param> /// <param name="async">A bool that specifies how user tracking should be sent to Loggr. Typically an application will post asynchronously for best performance, but sometimes it needs to be posted synchronously if the application needs to block until the post has completed</param> /// <param name="client">Log client to use for posting</param> public static void TrackUser(string username, string email, string page, bool async, LogClient client) { client.TrackUser(username, email, page, async); } } }
42.984615
289
0.614889
14b53601225afdd6cf1ae88b7a0bbebc5ceada9e
5,136
ts
TypeScript
src/renderer/src/templates/Readme3.ts
MINERVA-MD/minerva
8205165bcb6ee6fd11ef43f667bdda26c9cc5e4d
[ "MIT" ]
2
2022-03-05T01:18:23.000Z
2022-03-05T21:10:44.000Z
src/renderer/src/templates/Readme3.ts
MINERVA-MD/minerva
8205165bcb6ee6fd11ef43f667bdda26c9cc5e4d
[ "MIT" ]
3
2022-02-25T20:08:33.000Z
2022-03-11T19:55:34.000Z
src/renderer/src/templates/Readme3.ts
MINERVA-MD/minerva
8205165bcb6ee6fd11ef43f667bdda26c9cc5e4d
[ "MIT" ]
null
null
null
const README3 = `<h3 align="center"> Welcome to Code White's profile! <img src="https://media.giphy.com/media/hvRJCLFzcasrR4ia7z/giphy.gif" width="28"> </h3> <p align="center"> <a href="https://github.com/CodeWhiteWeb/CodeWhiteWeb"><img src="https://readme-typing-svg.herokuapp.com?color=%2336BCF7&center=true&vCenter=true&lines=Hi+%2C+welcome+to+my+Github+page;I+am+CodeWhiteWeb;I+am+a+High+school+student;Web+Dev;Game+Dev;Bot+Dev;Crypto+Lover+%3C3"></a> </p> --- <div align="center"> # 💫About Me : 🔭 I’m currently working on my github page : https://codewhiteweb.cf 🌱 I’m currently learning : Node.js 👯 I’m looking to collaborate on my webpage 🤔 I’m Not looking for help 💬 Ask me about for any help 📫 How to reach me: Mail me at "[email protected]" or scroll to bottom of the page of "https://codewhiteweb.cf" and find CONTACT ME ⚡ Fun fact: 7 out of 10 consumers find a company via the blog ## 🌐Socials [![Medium](https://img.shields.io/badge/Medium-12100E?logo=medium&logoColor=white)](https://medium.com/@CodeWhiteWeb) [![Reddit](https://img.shields.io/badge/Reddit-%23FF4500.svg?logo=Reddit&logoColor=white)](https://reddit.com/user/CodeWhiteWeb) [![Twitch](https://img.shields.io/badge/Twitch-%239146FF.svg?logo=Twitch&logoColor=white)](https://twitch.tv/code_white_web) [![YouTube](https://img.shields.io/badge/YouTube-%23FF0000.svg?logo=YouTube&logoColor=white)](https://youtube.com/c/CodeWhiteWeb) # 💻Tech Stack <img src = "https://media2.giphy.com/media/QssGEmpkyEOhBCb7e1/giphy.gif?cid=ecf05e47a0n3gi1bfqntqmob8g9aid1oyj2wr3ds3mg700bl&rid=giphy.gif" width = 32px> ![HTML5](https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white) ![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E) ![CSS3](https://img.shields.io/badge/css3-%231572B6.svg?style=for-the-badge&logo=css3&logoColor=white) ![Heroku](https://img.shields.io/badge/heroku-%23430098.svg?style=for-the-badge&logo=heroku&logoColor=white) ![Netlify](https://img.shields.io/badge/netlify-%23000000.svg?style=for-the-badge&logo=netlify&logoColor=#00C7B7) ![Glitch](https://img.shields.io/badge/glitch-%233333FF.svg?style=for-the-badge&logo=glitch&logoColor=white) ![Cloudflare](https://img.shields.io/badge/Cloudflare-F38020?style=for-the-badge&logo=Cloudflare&logoColor=white) ![Vercel](https://img.shields.io/badge/vercel-%23000000.svg?style=for-the-badge&logo=vercel&logoColor=white) ![NPM](https://img.shields.io/badge/NPM-%23000000.svg?style=for-the-badge&logo=npm&logoColor=white) ![Next JS](https://img.shields.io/badge/Next-black?style=for-the-badge&logo=next.js&logoColor=white) ![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white) ![Pug](https://img.shields.io/badge/Pug-FFF?style=for-the-badge&logo=pug&logoColor=A86454) ![TailwindCSS](https://img.shields.io/badge/tailwindcss-%2338B2AC.svg?style=for-the-badge&logo=tailwind-css&logoColor=white) ![Yarn](https://img.shields.io/badge/yarn-%232C8EBB.svg?style=for-the-badge&logo=yarn&logoColor=white) ![MongoDB](https://img.shields.io/badge/MongoDB-%234ea94b.svg?style=for-the-badge&logo=mongodb&logoColor=white) ![Adobe Illustrator](https://img.shields.io/badge/adobeillustrator-%23FF9A00.svg?style=for-the-badge&logo=adobeillustrator&logoColor=white) ![Adobe Photoshop](https://img.shields.io/badge/adobephotoshop-%2331A8FF.svg?style=for-the-badge&logo=adobephotoshop&logoColor=white) ![Canva](https://img.shields.io/badge/Canva-%2300C4CC.svg?style=for-the-badge&logo=Canva&logoColor=white) ![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white) # 📊GitHub Stats : ![](https://github-readme-stats.vercel.app/api?username=CodeWhiteWeb&theme=radical&hide_border=false&include_all_commits=false&count_private=false)<br/> ![](https://github-readme-streak-stats.herokuapp.com/?user=CodeWhiteWeb&theme=radical&hide_border=false)<br/> ![](https://github-readme-stats.vercel.app/api/top-langs/?username=CodeWhiteWeb&theme=radical&hide_border=false&include_all_commits=false&count_private=false&layout=compact) ## 🏆GitHub Trophies ![](https://github-profile-trophy.vercel.app/?username=CodeWhiteWeb&theme=discord&no-frame=false&no-bg=false&margin-w=4) ### 📕 Latest Blog Posts <!-- BLOG-POST-LIST:START --> [10 must have 3rd party services for all websites](https://dev.to/codewhiteweb/10-must-have-3rd-party-services-for-all-websites-584m) [Best Google Fonts for your website](https://dev.to/codewhiteweb/best-google-fonts-for-your-website-3e5k) <!-- BLOG-POST-LIST:END --> ➡️ [more blog posts...](https://dev.to/codewhiteweb) ### ✍️Random Dev Quote ![](https://quotes-github-readme.vercel.app/api?type=horizontal&theme=merko) --- ![](https://forthebadge.com/images/badges/powered-by-black-magic.svg) ![](http://ForTheBadge.com/images/badges/built-by-developers.svg) ![](https://forthebadge.com/images/badges/uses-brains.svg) --- ![](https://komarev.com/ghpvc/?username=CodeWhiteWeb&label=Visitors+Count&color=brightgreen) </div> `; export default README3;
77.818182
2,113
0.761293
6450b3da6247cb5326e2d417dce970b68dcd77be
1,084
dart
Dart
tylerhayes_clock/lib/src/components/shared/painters/arc_dot_painter.dart
thayesx/freehand_clock
f9d47a2db85c9c5bd29ad878451c369c7cffb5c4
[ "BSD-3-Clause" ]
2
2020-03-26T06:02:33.000Z
2021-08-15T14:33:23.000Z
tylerhayes_clock/lib/src/components/shared/painters/arc_dot_painter.dart
thayesx/freehand_clock
f9d47a2db85c9c5bd29ad878451c369c7cffb5c4
[ "BSD-3-Clause" ]
null
null
null
tylerhayes_clock/lib/src/components/shared/painters/arc_dot_painter.dart
thayesx/freehand_clock
f9d47a2db85c9c5bd29ad878451c369c7cffb5c4
[ "BSD-3-Clause" ]
null
null
null
import 'package:flutter/material.dart'; import 'package:tylerhayes_clock/src/utils/tools.dart'; /// For every angle value in `arcAngles`, paints a dot at a corresponding point along the circumference of a circle with radius `radius`. class ArcDotPainter extends CustomPainter { final List<double> arcAngles; final double dotSize; final Color color; final double radius; const ArcDotPainter({ @required this.arcAngles, @required this.dotSize, @required this.color, @required this.radius, }); @override void paint(Canvas canvas, Size _) { final Paint paint = Paint() ..strokeWidth = dotSize ..color = color ..strokeCap = StrokeCap.round ..style = PaintingStyle.stroke; for (num angle in arcAngles) { canvas.drawArc( Rect.fromCircle( center: Offset(0, 0), radius: radius, ), radiansFromAngle(angle - 90), .001, false, paint, ); } } @override bool shouldRepaint(CustomPainter oldDelegate) { return oldDelegate != this; } }
24.088889
137
0.644834
05e54d29558bf3b3ae4babc24b9a1fb09cb134b4
187
py
Python
tests/_testsite/importerror_app/forum/dummy.py
OneRainbowDev/django-machina
7354cc50f58dcbe49eecce7e1f019f6fff21d690
[ "BSD-3-Clause" ]
1
2021-10-08T03:31:24.000Z
2021-10-08T03:31:24.000Z
tests/_testsite/importerror_app/forum/dummy.py
OneRainbowDev/django-machina
7354cc50f58dcbe49eecce7e1f019f6fff21d690
[ "BSD-3-Clause" ]
null
null
null
tests/_testsite/importerror_app/forum/dummy.py
OneRainbowDev/django-machina
7354cc50f58dcbe49eecce7e1f019f6fff21d690
[ "BSD-3-Clause" ]
1
2019-04-20T05:26:27.000Z
2019-04-20T05:26:27.000Z
# -*- coding: utf-8 -*- # Standard library imports # Third party imports from x import bad_import # noqa # Local application / specific library imports class Dummy(object): pass
15.583333
46
0.705882
af8479b80b864507cf9fb7cdc2e53f24d567b687
2,932
rs
Rust
src/lib.rs
orhun/rustypaste-cli
4bc5d4f9953dbb8048ccb4bc0d1e503a45eac899
[ "MIT" ]
10
2021-09-18T17:39:55.000Z
2022-03-31T09:56:20.000Z
src/lib.rs
orhun/rustypaste-cli
4bc5d4f9953dbb8048ccb4bc0d1e503a45eac899
[ "MIT" ]
4
2021-09-29T08:57:52.000Z
2022-03-15T21:17:16.000Z
src/lib.rs
orhun/rustypaste-cli
4bc5d4f9953dbb8048ccb4bc0d1e503a45eac899
[ "MIT" ]
1
2021-09-19T05:31:16.000Z
2021-09-19T05:31:16.000Z
//! A CLI tool for [`rustypaste`]. //! //! [`rustypaste`]: https://github.com/orhun/rustypaste #![warn(missing_docs, clippy::unwrap_used)] /// Command-line argument parser. pub mod args; /// Configuration file parser. pub mod config; /// Custom error implementation. pub mod error; /// Upload handler. pub mod upload; use crate::args::Args; use crate::config::Config; use crate::error::{Error, Result}; use crate::upload::Uploader; use colored::Colorize; use std::fs; use std::io::{self, Read}; /// Default name of the configuration file. const CONFIG_FILE: &str = "config.toml"; /// Runs `rpaste`. pub fn run(args: Args) -> Result<()> { let mut config = Config::default(); if let Some(ref config_path) = args.config { config = toml::from_str(&fs::read_to_string(&config_path)?)? } else { for path in vec![ dirs_next::home_dir().map(|p| p.join(".rustypaste").join(CONFIG_FILE)), dirs_next::config_dir().map(|p| p.join("rustypaste").join(CONFIG_FILE)), ] .iter() .filter_map(|v| v.as_ref()) { if path.exists() { config = toml::from_str(&fs::read_to_string(&path)?)?; break; } } } config.update_from_args(&args); if config.server.address.is_empty() { return Err(Error::NoServerAddressError); } let mut results = Vec::new(); let uploader = Uploader::new(&config); if let Some(ref url) = args.url { results.push(uploader.upload_url(url)); } else if let Some(ref remote_url) = args.remote { results.push(uploader.upload_remote_url(remote_url)); } else if args.files.contains(&String::from("-")) { let mut buffer = Vec::new(); let stdin = io::stdin(); for bytes in stdin.bytes() { buffer.push(bytes?); } results.push(uploader.upload_stream(&*buffer)); } else { for file in args.files.iter() { results.push(uploader.upload_file(file)) } } let prettify = args.prettify || config .style .as_ref() .map(|style| style.prettify) .unwrap_or(false); let format_padding = prettify .then(|| results.iter().map(|v| v.0.len()).max()) .flatten() .unwrap_or(1); for (data, result) in results.iter().map(|v| (v.0, v.1.as_ref())) { let data = if prettify { format!( "{:p$} {} ", data, if result.is_ok() { "=>".green().bold() } else { "=>".red().bold() }, p = format_padding, ) } else { String::new() }; match result { Ok(url) => println!("{}{}", data, url.trim()), Err(e) => eprintln!("{}{}", data, e), } } Ok(()) }
29.029703
84
0.524898
bb171a0b9895edaff1fc2fe2f7df8b4a41beb116
588
cs
C#
BettingGame.Tournament.Core/Domain/Game.cs
msallin/BettingGame
d3b6308664a8961c782438af92834a76d221a95b
[ "Apache-2.0" ]
1
2019-03-15T08:55:12.000Z
2019-03-15T08:55:12.000Z
BettingGame.Tournament.Core/Domain/Game.cs
msallin/BettingGame
d3b6308664a8961c782438af92834a76d221a95b
[ "Apache-2.0" ]
1
2019-03-15T09:56:55.000Z
2019-03-15T09:56:55.000Z
BettingGame.Tournament.Core/Domain/Game.cs
msallin/BettingGame
d3b6308664a8961c782438af92834a76d221a95b
[ "Apache-2.0" ]
null
null
null
using System; using System.ComponentModel.DataAnnotations; namespace BettingGame.Tournament.Core.Domain { public class Game { public bool Finished => Result != null; [MaxLength(1)] public string Group { get; set; } public Guid Id { get; set; } public Result Result { get; set; } [Required] public DateTimeOffset StartDate { get; set; } public Guid? TeamA { get; set; } public Guid? TeamB { get; set; } [Required] public GameType Type { get; set; } } }
21
54
0.554422
5ad5accd0f4c74a776de3b83b3167487a2759f10
23,562
cs
C#
a20201226/Confused_03/tmpsol/Elsa20200001/InstallUsefulScandiumSwitch.cs
soleil-taruto/Hatena
9154050c1b37944712bb469791a0919a35c2e886
[ "MIT" ]
null
null
null
a20201226/Confused_03/tmpsol/Elsa20200001/InstallUsefulScandiumSwitch.cs
soleil-taruto/Hatena
9154050c1b37944712bb469791a0919a35c2e886
[ "MIT" ]
null
null
null
a20201226/Confused_03/tmpsol/Elsa20200001/InstallUsefulScandiumSwitch.cs
soleil-taruto/Hatena
9154050c1b37944712bb469791a0919a35c2e886
[ "MIT" ]
1
2021-07-17T06:25:44.000Z
2021-07-17T06:25:44.000Z
using System; using System.Collections.Generic; using System.Linq; using System.Text; using DxLibDLL; namespace Charlotte { /// <summary> /// Confused by ConfuserElsa /// </summary> public class CallUniqueThemistoFile { /// <summary> /// Confused by ConfuserElsa /// </summary> public void DuplicateManualPeachAvailability(int RestartCurrentMoscoviumRoute, int CompareEqualRubidiumDomain, int ScaleMatchingHelikeShutdown) { this.CancelTemporaryStrontiumSetting(RestartCurrentMoscoviumRoute, CompareEqualRubidiumDomain, ScaleMatchingHelikeShutdown, this.ZipLocalNamakaStack().ValidateUniqueAdrasteaValue, this.ZipLocalNamakaStack().CorrectCleanTungstenCookie, this.ZipLocalNamakaStack().PullDuplicateDiaType); } /// <summary> /// Confused by ConfuserElsa /// </summary> public static IEnumerable<int> SeeAvailableMercuryPopup() { yield return 1460229897; yield return 2002220887; yield return 2133884720; yield return 1797876521; yield return 1965520167; yield return 1690723526; yield return 1645568635; yield return 1962046757; yield return 1362317619; yield return 1912107561; yield return 1244154408; yield return 1693803816; foreach (int ForceNestedSherryRow in StopCleanHerseYour()) { yield return ForceNestedSherryRow; }} /// <summary> /// Confused by ConfuserElsa /// </summary> public void TweakVirtualHerseDirectory() { this.AgreeVisibleOganessonString(0); } /// <summary> /// Confused by ConfuserElsa /// </summary> public class SelectPublicCallistoBit { public int ValidateUniqueAdrasteaValue; public int CorrectCleanTungstenCookie; public int PullDuplicateDiaType; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static string EmitAutomaticPhilophrosyneHandle() { return new string(SeeAvailableMercuryPopup().Where(DeploySuccessfulGoldAlgorithm => DeploySuccessfulGoldAlgorithm % 65537 != 0).Select(ScrollUnusedSilverIncrement => (char)(ScrollUnusedSilverIncrement % 65537 - 1)).ToArray()); } /// <summary> /// Confused by ConfuserElsa /// </summary> public int RecommendUnresolvedProtactiniumAudio() { return BlockLocalUranusInstaller; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static IEnumerable<int> StopCleanHerseYour() { yield return 1513118305; yield return 1247431307; yield return 1601331107; yield return 1409569796; yield return 2046589485; yield return 2127986390; yield return 1425560876; yield return 1573936592; yield return 2004252630; yield return 1587764899; yield return 2147057758; yield return 1842441681; yield return 1953330383; yield return 1331777494; yield return 1496865173; yield return 1938649997; yield return 1087795519; yield return 1764845873; yield return 1917756107; yield return 1861119726; yield return 2083695760; yield return 1840016812; yield return 1979479641; yield return 1653105288; yield return 1853058786; yield return 1082081507; yield return 1048919685; yield return 1784703634; yield return 1952871526; yield return 1142965335; yield return 2066053975; yield return 1301499339; foreach (int MakeUnusedValetudoCase in ScrollInternalBohriumFilter()) { yield return MakeUnusedValetudoCase; }} /// <summary> /// Confused by ConfuserElsa /// </summary> public int SelectFollowingMermaidOffset() { return BumpExpressHippocampInterval() != 0 ? 1 : SimplifyNextKatyushaStack; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static string ValidateGeneralNobeliumShortcut; /// <summary> /// Confused by ConfuserElsa /// </summary> public static string StopUniqueNitrogenWidth() { if(InvokeExistingSiarnaqGroup == null) { InvokeExistingSiarnaqGroup = ListNativePrometheusArgument(); } return InvokeExistingSiarnaqGroup; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static IEnumerable<int> ProvisionUsefulPasitheeBug() { yield return 1066942360; yield return 1486641357; yield return 2017097837; yield return 2050062946; yield return 1206142997; yield return 1338134515; yield return 1120158453; yield return 1145914497; yield return 1100366230; yield return 1047346893; yield return 1987999459; yield return 1606574116; yield return 1031945719; yield return 1244023334; yield return 1952871619; yield return 1327910799; yield return 1263815618; yield return 1260276616; yield return 1817472084; yield return 1491622241; yield return 1315130979; yield return 1230457268; yield return 1401836430; yield return 1376473722; foreach (int GetNativeCallistoNotification in RecordDuplicateCarbonDamage()) { yield return GetNativeCallistoNotification; }} /// <summary> /// Confused by ConfuserElsa /// </summary> public static string SimplifyExternalNixCertificate; /// <summary> /// Confused by ConfuserElsa /// </summary> public CallUniqueThemistoFile() { this.ExportStandaloneStrontiumDialog.HandleAvailableMirageSchedule = 1.0; } /// <summary> /// Confused by ConfuserElsa /// </summary> public int FetchAdditionalCalibanPosition() { return ArchiveDecimalRhodiumScript; } /// <summary> /// Confused by ConfuserElsa /// </summary> public RemoveMockSparkleDisk HackEqualSunshineStatus = new RemoveMockSparkleDisk(ViewBinaryPeachHighlight()); /// <summary> /// Confused by ConfuserElsa /// </summary> public static IEnumerable<int> SaveEmptyDeimosHandler() { yield return 1153320227; yield return 2072083329; yield return 1590976310; yield return 1883205812; yield return 1563450765; yield return 1189627729; yield return 1956279450; yield return 1169704486; yield return 1658479428; yield return 1607491536; yield return 1707894341; yield return 1232554359; yield return 1470257151; yield return 1349865708; yield return 1857122026; yield return 1833725307; yield return 1510169201; yield return 1121796829; yield return 2070772702; yield return 1912566323; } /// <summary> /// Confused by ConfuserElsa /// </summary> public int BumpExpressHippocampInterval() { return HandleCustomMilkyGroup() == 0 ? 0 : VerifyValidAstatineRepresentation; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static IEnumerable<int> ConfirmInnerPassionUsername() { yield return 1424512232; yield return 1119175349; yield return 1647993402; yield return 1094140215; yield return 1237535171; yield return 1156924661; yield return 2032171296; yield return 2069527386; yield return 1552768243; yield return 2129035033; yield return 1562205469; yield return 1603821513; yield return 1680368731; yield return 1193625430; yield return 1623417076; yield return 1947497492; yield return 1470584792; yield return 1779395136; yield return 2011527141; yield return 1423267081; yield return 1939698685; foreach (int TouchStaticActiniumComponent in SaveEmptyDeimosHandler()) { yield return TouchStaticActiniumComponent; }} /// <summary> /// Confused by ConfuserElsa /// </summary> public static IEnumerable<int> ShareGlobalDiaInformation() { yield return 1292061955; yield return 1203587054; yield return 1807117238; yield return 1349931175; yield return 1334071172; yield return 1408259108; yield return 1094730144; yield return 1559780600; yield return 1501256160; yield return 1044987563; yield return 1516984939; yield return 1697539491; yield return 2005170145; yield return 1721722632; yield return 2046917231; yield return 1105543759; yield return 1394758434; yield return 2111798872; yield return 1107509856; yield return 1214335173; yield return 2043378123; yield return 2127331071; yield return 1713792605; yield return 1686004909; yield return 1654809250; yield return 1571511833; yield return 1224820993; yield return 1709139536; yield return 1543461887; yield return 2047638080; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static int BlockLocalUranusInstaller; /// <summary> /// Confused by ConfuserElsa /// </summary> public static int SortAutomaticLaomedeiaBatch; /// <summary> /// Confused by ConfuserElsa /// </summary> public int HandleCustomMilkyGroup() { return RecommendUnresolvedProtactiniumAudio() != 0 ? 0 : SortAutomaticLaomedeiaBatch; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static string TransformUsefulBohriumPatch; /// <summary> /// Confused by ConfuserElsa /// </summary> public static string OutputVerboseDubniumSchema() { return new string(VisitInlineAnankeDebugger().Where(ToggleUnnecessaryEarthCache => ToggleUnnecessaryEarthCache % 65537 != 0).Select(PushCustomAmourDevelopment => (char)(PushCustomAmourDevelopment % 65537 - 1)).ToArray()); } /// <summary> /// Confused by ConfuserElsa /// </summary> public static IEnumerable<int> ScrollInternalBohriumFilter() { yield return 1763338522; yield return 1809935378; yield return 1392792374; yield return 1413436526; yield return 2069986145; yield return 1173571169; yield return 1567972838; yield return 1850306173; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static int VerifyValidAstatineRepresentation; /// <summary> /// Confused by ConfuserElsa /// </summary> public RemoveMockSparkleDisk RedirectVisibleFlowerDescription = new RemoveMockSparkleDisk(StopUniqueNitrogenWidth()); /// <summary> /// Confused by ConfuserElsa /// </summary> public int FindTrueTwinkleThread() { return SelectFollowingMermaidOffset() == 0 ? 0 : RespondMinimumNileCompatibility; } /// <summary> /// Confused by ConfuserElsa /// </summary> public RemoveMockSparkleDisk SeeUnnecessaryScandiumUsage = new RemoveMockSparkleDisk(ShowFalseAmaltheaObject()); /// <summary> /// Confused by ConfuserElsa /// </summary> public static int RespondMinimumNileCompatibility; /// <summary> /// Confused by ConfuserElsa /// </summary> public static IEnumerable<int> ApplyDynamicFlamingoDebugger() { yield return 1767139785; yield return 1843359199; yield return 1023360348; yield return 1880322145; yield return 1031421306; yield return 1193953172; yield return 1986360933; yield return 1426806142; yield return 1582980813; yield return 1851551324; yield return 1254247218; yield return 1782147641; yield return 2051177141; yield return 1474844648; yield return 1449809547; yield return 2051832396; yield return 1826975061; yield return 1449219681; yield return 1662411645; yield return 1968928091; yield return 1831824720; yield return 1774741960; yield return 1872785382; yield return 1742694451; yield return 1081819352; yield return 1479628960; yield return 1822715144; yield return 1485723841; yield return 1411601443; yield return 2009954303; yield return 2138472362; yield return 1994618595; yield return 1004420118; yield return 1395479390; yield return 1275153462; yield return 1526029092; yield return 1028013492; yield return 1655005974; yield return 1621057695; yield return 2102689160; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static SelectPublicCallistoBit DumpPreferredEarthAddress; /// <summary> /// Confused by ConfuserElsa /// </summary> public static IEnumerable<int> SkipNativePotassiumQueue() { yield return 1023622403; yield return 1125991197; yield return 1443911184; yield return 1964733723; yield return 1037843932; yield return 1198999415; yield return 1166886387; yield return 2144042955; yield return 1066352578; yield return 1568300459; yield return 1389777622; yield return 1645830732; yield return 1535597496; yield return 1279937659; foreach (int DecodeFinalSurturSetting in ShareGlobalDiaInformation()) { yield return DecodeFinalSurturSetting; }} /// <summary> /// Confused by ConfuserElsa /// </summary> public static string ViewBinaryPeachHighlight() { if(TransformUsefulBohriumPatch == null) { TransformUsefulBohriumPatch = EmitAutomaticPhilophrosyneHandle(); } return TransformUsefulBohriumPatch; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static string SupplyVisiblePapayaAuthor() { if(SimplifyExternalNixCertificate == null) { SimplifyExternalNixCertificate = SkipUnexpectedMoscoviumExport(); } return SimplifyExternalNixCertificate; } /// <summary> /// Confused by ConfuserElsa /// </summary> public int ModifyExternalSpondeContainer() { return ArchiveDecimalRhodiumScript++; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static string PressInitialNileItem() { return new string(ConfirmInnerPassionUsername().Where(ExistEqualSeaborgiumBundle => ExistEqualSeaborgiumBundle % 65537 != 0).Select(EnableTrueBariumProxy => (char)(EnableTrueBariumProxy % 65537 - 1)).ToArray()); } /// <summary> /// Confused by ConfuserElsa /// </summary> public static IEnumerable<int> RecordDuplicateCarbonDamage() { yield return 1797811039; yield return 1753835657; yield return 1988130483; yield return 2130542333; yield return 1190020893; yield return 1502828947; yield return 1970370015; yield return 1572953537; yield return 1627349360; yield return 1302285779; } /// <summary> /// Confused by ConfuserElsa /// </summary> public RemoveMockSparkleDisk ExportStandaloneStrontiumDialog = new RemoveMockSparkleDisk(FetchMultipleRadonKey()).RunFreeBismuthView(30000, 5240000); /// <summary> /// Confused by ConfuserElsa /// </summary> public static IEnumerable<int> CloneBooleanMeitneriumTemplate() { yield return 1434736004; yield return 2143256511; yield return 1991800504; yield return 1497192765; yield return 1066090379; yield return 1997371149; yield return 1323388743; yield return 1424905505; yield return 1707304436; yield return 1960670480; yield return 1925542646; yield return 1857580728; yield return 1851158151; yield return 2020964518; yield return 1390629652; yield return 1345671221; yield return 1678140474; yield return 1361465638; yield return 1919054530; yield return 1603035121; yield return 1017855147; yield return 1463048086; yield return 2042984901; yield return 1002912828; yield return 2048883324; foreach (int ExcludeNullHimaliaInstruction in ContinueGlobalCeresManual()) { yield return ExcludeNullHimaliaInstruction; }} /// <summary> /// Confused by ConfuserElsa /// </summary> public SelectPublicCallistoBit ZipLocalNamakaStack() { return DumpPreferredEarthAddress; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static IEnumerable<int> VisitInlineAnankeDebugger() { yield return 1949660213; yield return 1900704074; yield return 1437160873; yield return 2038593922; yield return 1846308364; yield return 1760782681; yield return 1608736739; yield return 1701275034; yield return 1033453002; yield return 1718380140; yield return 1146963088; yield return 1388073709; yield return 1072906227; yield return 1124614969; yield return 1205946386; yield return 1546476638; yield return 1494833433; yield return 1021132049; yield return 2103999848; yield return 1633116599; yield return 1115046518; yield return 1552899316; yield return 1622565046; yield return 1267813363; foreach (int SortCurrentMoscoviumMessage in ApplyDynamicFlamingoDebugger()) { yield return SortCurrentMoscoviumMessage; }} /// <summary> /// Confused by ConfuserElsa /// </summary> public void AgreeVisibleOganessonString(int InputCurrentParfaitTab) { ArchiveDecimalRhodiumScript = InputCurrentParfaitTab; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static string InvokeExistingSiarnaqGroup; /// <summary> /// Confused by ConfuserElsa /// </summary> public static string ContributeSuccessfulSummerStartup() { return new string(RepresentInternalMermaidLoop().Where(TestNextArielCore => TestNextArielCore % 65537 != 0).Select(CloneLocalParfaitCredential => (char)(CloneLocalParfaitCredential % 65537 - 1)).ToArray()); } /// <summary> /// Confused by ConfuserElsa /// </summary> public static IEnumerable<int> ContinueGlobalCeresManual() { yield return 1258113789; yield return 2042001929; yield return 1076576299; yield return 2088598755; yield return 1037712858; yield return 1772710414; yield return 1533959120; yield return 1500928374; yield return 1042038393; yield return 1360220435; yield return 1899000223; yield return 1654481565; yield return 1673028636; yield return 1820486786; yield return 2142076895; yield return 1322733271; yield return 2127724294; yield return 1970697590; yield return 1292520769; yield return 1435719059; yield return 1226000713; yield return 1053245181; yield return 1665164096; yield return 1808362491; yield return 1124614967; yield return 1292848399; yield return 1201358857; yield return 1155286236; yield return 1489852734; yield return 1190741753; yield return 1642619420; } /// <summary> /// Confused by ConfuserElsa /// </summary> public void PreviewCurrentEurydomeTemplate() { this.PreviewMaximumPlatinumDisplay(this.ModifyExternalSpondeContainer()); } /// <summary> /// Confused by ConfuserElsa /// </summary> public static string EditMissingVanadiumLabel; /// <summary> /// Confused by ConfuserElsa /// </summary> public static IEnumerable<int> RepresentInternalMermaidLoop() { yield return 1567972725; yield return 1348620386; yield return 1059864364; yield return 1829006698; yield return 1387614952; foreach (int CorrectFollowingMoonlightCore in ProvisionUsefulPasitheeBug()) { yield return CorrectFollowingMoonlightCore; }} /// <summary> /// Confused by ConfuserElsa /// </summary> public void CancelTemporaryStrontiumSetting(int RestartCurrentMoscoviumRoute, int CompareEqualRubidiumDomain, int ScaleMatchingHelikeShutdown, int PublishDuplicateNileRoute, int RecommendIncompatibleJarnsaxaReference, int ContinueCorePrincessSchedule) { var PullExecutableIsonoePane = new[] { new { SpecifyUnexpectedZirconiumTermination = RestartCurrentMoscoviumRoute, BrowseAccessibleHerseHeader = PublishDuplicateNileRoute }, new { SpecifyUnexpectedZirconiumTermination = CompareEqualRubidiumDomain, BrowseAccessibleHerseHeader = PublishDuplicateNileRoute }, new { SpecifyUnexpectedZirconiumTermination = ScaleMatchingHelikeShutdown, BrowseAccessibleHerseHeader = PublishDuplicateNileRoute }, }; this.ScaleSuccessfulThuliumTerms(new SelectPublicCallistoBit() { ValidateUniqueAdrasteaValue = RestartCurrentMoscoviumRoute, CorrectCleanTungstenCookie = CompareEqualRubidiumDomain, PullDuplicateDiaType = ScaleMatchingHelikeShutdown, }); if (PullExecutableIsonoePane[0].SpecifyUnexpectedZirconiumTermination == PublishDuplicateNileRoute) this.BundlePrivateTennessineAction(PullExecutableIsonoePane[0].BrowseAccessibleHerseHeader); if (PullExecutableIsonoePane[1].SpecifyUnexpectedZirconiumTermination == RecommendIncompatibleJarnsaxaReference) this.BundlePrivateTennessineAction(PullExecutableIsonoePane[1].BrowseAccessibleHerseHeader); if (PullExecutableIsonoePane[2].SpecifyUnexpectedZirconiumTermination == ContinueCorePrincessSchedule) this.BundlePrivateTennessineAction(PullExecutableIsonoePane[2].BrowseAccessibleHerseHeader); } /// <summary> /// Confused by ConfuserElsa /// </summary> public static string SkipUnexpectedMoscoviumExport() { return new string(CloneBooleanMeitneriumTemplate().Where(CrashCleanKalykeReport => CrashCleanKalykeReport % 65537 != 0).Select(FailUnsupportedBohriumProtocol => (char)(FailUnsupportedBohriumProtocol % 65537 - 1)).ToArray()); } /// <summary> /// Confused by ConfuserElsa /// </summary> public static string FetchMultipleRadonKey() { if(FinishEqualValetudoSetting == null) { FinishEqualValetudoSetting = OutputVerboseDubniumSchema(); } return FinishEqualValetudoSetting; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static string LinkBooleanLysitheaProxy() { if(EditMissingVanadiumLabel == null) { EditMissingVanadiumLabel = ContributeSuccessfulSummerStartup(); } return EditMissingVanadiumLabel; } /// <summary> /// Confused by ConfuserElsa /// </summary> public static string FinishEqualValetudoSetting; /// <summary> /// Confused by ConfuserElsa /// </summary> public void ScaleSuccessfulThuliumTerms(SelectPublicCallistoBit NotifyInnerHyperionThirdparty) { DumpPreferredEarthAddress = NotifyInnerHyperionThirdparty; } /// <summary> /// Confused by ConfuserElsa /// </summary> public void BundlePrivateTennessineAction(int GetInnerCylleneServer) { if (GetInnerCylleneServer != this.FetchAdditionalCalibanPosition()) this.AgreeVisibleOganessonString(GetInnerCylleneServer); else this.PreviewMaximumPlatinumDisplay(GetInnerCylleneServer); } /// <summary> /// Confused by ConfuserElsa /// </summary> public static string ListNativePrometheusArgument() { return new string(SkipNativePotassiumQueue().Where(SendUnusedThoriumIssue => SendUnusedThoriumIssue % 65537 != 0).Select(CommentConditionalEpimetheusCrash => (char)(CommentConditionalEpimetheusCrash % 65537 - 1)).ToArray()); } /// <summary> /// Confused by ConfuserElsa /// </summary> public RemoveMockSparkleDisk IterateActiveLeadGuide = new RemoveMockSparkleDisk(LinkBooleanLysitheaProxy()); /// <summary> /// Confused by ConfuserElsa /// </summary> public void MergeAlternativeFranciumMode(int RestartCurrentMoscoviumRoute, int CompareEqualRubidiumDomain) { this.DuplicateManualPeachAvailability(RestartCurrentMoscoviumRoute, CompareEqualRubidiumDomain, this.ModifyExternalSpondeContainer()); } /// <summary> /// Confused by ConfuserElsa /// </summary> public static int SimplifyNextKatyushaStack; /// <summary> /// Confused by ConfuserElsa /// </summary> public static int ArchiveDecimalRhodiumScript; /// <summary> /// Confused by ConfuserElsa /// </summary> public void PreviewMaximumPlatinumDisplay(int RestartCurrentMoscoviumRoute) { this.MergeAlternativeFranciumMode(RestartCurrentMoscoviumRoute, this.ModifyExternalSpondeContainer()); } /// <summary> /// Confused by ConfuserElsa /// </summary> public RemoveMockSparkleDisk AuthorizeInnerPotassiumReport = new RemoveMockSparkleDisk(SupplyVisiblePapayaAuthor()).RunFreeBismuthView(625000, 7365000); /// <summary> /// Confused by ConfuserElsa /// </summary> public static string ShowFalseAmaltheaObject() { if(ValidateGeneralNobeliumShortcut == null) { ValidateGeneralNobeliumShortcut = PressInitialNileItem(); } return ValidateGeneralNobeliumShortcut; } } }
28.59466
287
0.743273
7ac5bb10464de846362f9f983f32d1ce4fbeb060
1,833
cs
C#
Assets/scripts/enemyAI.cs
southrad69/Atividade1
f9f649d7fb59b80b152983970fbda9ca40944319
[ "Apache-2.0" ]
null
null
null
Assets/scripts/enemyAI.cs
southrad69/Atividade1
f9f649d7fb59b80b152983970fbda9ca40944319
[ "Apache-2.0" ]
null
null
null
Assets/scripts/enemyAI.cs
southrad69/Atividade1
f9f649d7fb59b80b152983970fbda9ca40944319
[ "Apache-2.0" ]
null
null
null
using System.Collections; using System.Collections.Generic; using UnityEngine; public class enemyAI : MonoBehaviour { public ParticleSystem fire; public bool enableshoot = false; int index = 0; float rotation = 0; float patrolSpeed = 150; public float radius = 10; GameObject target; public GameObject[] waypoints; void Start() { target = GameObject.FindGameObjectWithTag("Player"); } void Update() { fire.Stop(); float dist = Vector3.Distance(target.transform.position, transform.position); if (enableshoot == false){ if (rotation == 360){ rotation = 0; } rotation = rotation + radius * Time.deltaTime; gameObject.transform.rotation = Quaternion.Euler(0, rotation, 0); gameObject.transform.Translate(0, 0, patrolSpeed * Time.deltaTime); print("Moving at patrol speed"); } if (enableshoot) { fire.Emit(1); transform.LookAt(target.transform.position + target.transform.forward * dist * 0.5f); if (dist <= 30) { transform.position = Vector3.MoveTowards(transform.position, waypoints[index].transform.position, Time.deltaTime * 20); print("Decreasing speed"); } else { transform.position = Vector3.MoveTowards(transform.position, waypoints[index].transform.position, Time.deltaTime * 80); print("Moving at engagement speed"); } } } private void OnTriggerEnter(Collider other) { enableshoot = true; } private void OnTriggerExit(Collider other) { fire.Stop(); enableshoot = false; } }
24.118421
135
0.57174
641228a8597b837266df41e07508fc0738a24804
526
py
Python
pySpatialTools/FeatureManagement/Interpolation_utils/__init__.py
tgquintela/pySpatialTools
e028008f9750521bf7d311f7cd3323c88d621ea4
[ "MIT" ]
8
2015-07-21T05:15:16.000Z
2018-06-12T18:22:52.000Z
pySpatialTools/FeatureManagement/Interpolation_utils/__init__.py
tgquintela/pySpatialTools
e028008f9750521bf7d311f7cd3323c88d621ea4
[ "MIT" ]
6
2016-01-11T22:25:28.000Z
2016-01-28T16:17:46.000Z
pySpatialTools/FeatureManagement/Interpolation_utils/__init__.py
tgquintela/pySpatialTools
e028008f9750521bf7d311f7cd3323c88d621ea4
[ "MIT" ]
null
null
null
""" Interpolation ============= Module which contains the functions to spatially interpolate features. TODO ---- - Join both ways into 1. """ ## Interpolation from general_interpolation import general_interpolate ## Density assignation from density_assignation import general_density_assignation from density_assignation_process import DensityAssign_Process from density_utils import comparison_densities, clustering_by_comparison,\ population_assignation_f from weighting_functions import create_weighted_function
21.916667
74
0.825095
c6a0da5cd31f2a9ab7aaac6a1be81d3fdb848af8
462
py
Python
fastapi-alembic-sqlmodel-async/app/api/api_v1/api.py
jonra1993/fastapi-alembic-sqlmodel-async
55c8a127bf17e6e5de95047a54a0ef913511f2d9
[ "MIT" ]
15
2022-03-07T05:57:01.000Z
2022-03-25T14:08:56.000Z
fastapi-alembic-sqlmodel-async/app/api/api_v1/api.py
jonra1993/fastapi-alembic-sqlmodel-async
55c8a127bf17e6e5de95047a54a0ef913511f2d9
[ "MIT" ]
null
null
null
fastapi-alembic-sqlmodel-async/app/api/api_v1/api.py
jonra1993/fastapi-alembic-sqlmodel-async
55c8a127bf17e6e5de95047a54a0ef913511f2d9
[ "MIT" ]
1
2022-03-08T04:54:14.000Z
2022-03-08T04:54:14.000Z
from fastapi import APIRouter from app.api.api_v1.endpoints import user, hero, team, login, role, group api_router = APIRouter() api_router.include_router(login.router, tags=['login_form']) api_router.include_router(role.router, tags=['role']) api_router.include_router(user.router, tags=['user']) api_router.include_router(group.router, tags=['group']) api_router.include_router(team.router, tags=['team']) api_router.include_router(hero.router, tags=['hero'])
46.2
73
0.785714
6421b1b7b2e38c7edd30e5c6a1cd997d966903be
199
py
Python
books/effectivepy-v2/chap7/ad52/subproces_popen.py
MerleLiuKun/my-python
0bec138cc6a9870ca47e0e62e9b92d50fb6cb3d8
[ "MIT" ]
1
2018-12-10T02:29:58.000Z
2018-12-10T02:29:58.000Z
books/effectivepy-v2/chap7/ad52/subproces_popen.py
MerleLiuKun/my-python
0bec138cc6a9870ca47e0e62e9b92d50fb6cb3d8
[ "MIT" ]
null
null
null
books/effectivepy-v2/chap7/ad52/subproces_popen.py
MerleLiuKun/my-python
0bec138cc6a9870ca47e0e62e9b92d50fb6cb3d8
[ "MIT" ]
1
2021-05-26T09:06:20.000Z
2021-05-26T09:06:20.000Z
""" """ import subprocess import time proc = subprocess.Popen(["sleep", "1"]) while proc.poll() is None: print("Working...") time.sleep(1) # 模拟其他任务处理 print(f"Exit status {proc.poll()}")
14.214286
39
0.623116
f449c16c8e922ba7c3bafa332fd5129f8fa11d4d
876
ts
TypeScript
src/db/connection.ts
aegomez/chat-app-users
4ce5128c6c9095ce43264aefc3b76219711b956f
[ "MIT" ]
null
null
null
src/db/connection.ts
aegomez/chat-app-users
4ce5128c6c9095ce43264aefc3b76219711b956f
[ "MIT" ]
1
2020-03-23T21:29:05.000Z
2020-03-23T21:29:05.000Z
src/db/connection.ts
aegomez/chat-app-users
4ce5128c6c9095ce43264aefc3b76219711b956f
[ "MIT" ]
1
2020-12-04T19:07:54.000Z
2020-12-04T19:07:54.000Z
import mongoose from 'mongoose'; /** * Connect to the database and retry if connection failed. * @param ms Milliseconds between retries (default 5000). */ export async function connect(ms = 5000): Promise<void> { try { const mongoURI = process.env.MONGODB_URI || ''; await mongoose.connect(mongoURI, { auth: { user: process.env.MONGODB_USER || '', password: process.env.MONGODB_PASS || '' }, authSource: 'admin', useCreateIndex: true, useNewUrlParser: true, useUnifiedTopology: true }); console.log('Succesfully connected to DB.'); } catch (error) { console.error('Could not connect to database.\nRetrying in 5 seconds...'); await new Promise(resolve => setTimeout(resolve, ms)); return connect(ms); } } export function disconnect(): Promise<void> { return mongoose.disconnect(); }
27.375
78
0.65411
84534cfd24560450e202f8683ca0cbfa23dd99f1
794
cs
C#
UnityVrSandbox/Assets/External/New UI Widgets/Scripts/ThirdPartySupport/DataBindSupport/IO/DirectoryTreeView/DirectoryTreeViewNodesSetter.cs
cschladetsch/UnityTemplate
57a7af490f37670207f231ae7b265badcdd0f4b9
[ "MIT" ]
9
2019-08-26T18:54:37.000Z
2022-03-08T02:15:23.000Z
UnityVrSandbox/Assets/External/New UI Widgets/Scripts/ThirdPartySupport/DataBindSupport/IO/DirectoryTreeView/DirectoryTreeViewNodesSetter.cs
cschladetsch/UnityTemplate
57a7af490f37670207f231ae7b265badcdd0f4b9
[ "MIT" ]
28
2020-03-29T21:52:48.000Z
2020-04-24T05:34:14.000Z
UnityVrSandbox/Assets/External/New UI Widgets/Scripts/ThirdPartySupport/DataBindSupport/IO/DirectoryTreeView/DirectoryTreeViewNodesSetter.cs
cschladetsch/UnityTemplate
57a7af490f37670207f231ae7b265badcdd0f4b9
[ "MIT" ]
2
2021-02-16T11:26:16.000Z
2021-06-21T07:37:18.000Z
#if UIWIDGETS_DATABIND_SUPPORT namespace UIWidgets.DataBind { using Slash.Unity.DataBind.Foundation.Setters; using UnityEngine; /// <summary> /// Set the Nodes of a DirectoryTreeView depending on the UIWidgets.ObservableList<UIWidgets.TreeNode<UIWidgets.FileSystemEntry>> data value. /// </summary> [AddComponentMenu("Data Bind/New UI Widgets/Setters/[DB] DirectoryTreeView Nodes Setter")] public class DirectoryTreeViewNodesSetter : ComponentSingleSetter<UIWidgets.DirectoryTreeView, UIWidgets.ObservableList<UIWidgets.TreeNode<UIWidgets.FileSystemEntry>>> { /// <inheritdoc /> protected override void UpdateTargetValue(UIWidgets.DirectoryTreeView target, UIWidgets.ObservableList<UIWidgets.TreeNode<UIWidgets.FileSystemEntry>> value) { target.Nodes = value; } } } #endif
39.7
168
0.799748
79e6c65b8306c5033e2ecb5960c33e821aa6347f
3,682
lua
Lua
source/gamemodes/prophuntextended/gamemode/server/roundmanager.lua
Xaymar/PropHunt
ee89cbc05b01d9b70e661822fe150e8706518a5a
[ "MIT" ]
7
2017-11-25T18:46:34.000Z
2022-02-14T15:37:55.000Z
source/gamemodes/prophuntextended/gamemode/server/roundmanager.lua
Xaymar/PropHunt
ee89cbc05b01d9b70e661822fe150e8706518a5a
[ "MIT" ]
12
2017-11-24T00:47:08.000Z
2019-01-13T11:18:54.000Z
source/gamemodes/prophuntextended/gamemode/server/roundmanager.lua
Xaymar/PropHunt
ee89cbc05b01d9b70e661822fe150e8706518a5a
[ "MIT" ]
4
2018-12-15T01:02:37.000Z
2022-01-12T07:37:43.000Z
--[[ The MIT License (MIT) Copyright (c) 2015-2018 Xaymar Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --]] local CLASS = {} CLASS.__index = CLASS local netmsg = { refresh = "RoundManagerUpdate", winner = "RoundManagerWinner" } function CLASS:__construct() self.state = nil self.next_state = nil -- Custom Timer Stuff self.timers = {} self.timers.funcs = {} self.timers.times = {} self.timers.delay = {} -- Register all network string for k, v in pairs(netmsg) do util.AddNetworkString(v) end -- And some more Timers based functionality. self:_RegisterTimer("refresh", 2.0, function() self:RefreshAll() end) -- We need a Think hook. hook.Add("Think", "RoundManagerThink", function(...) self:Tick(...) end) end function CLASS:_RegisterTimer(name, delay, func) self.timers.funcs[name] = func self.timers.delay[name] = delay self.timers.times[name] = CurTime() end function CLASS:GetState() return self.state end function CLASS:GetNextState() return self.next_state end function CLASS:SetState(state) self.next_state = state end function CLASS:Tick(...) -- Tick State if (self.state != nil) then if (self.state.Tick != nil) then self.state:Tick(...) end end -- Advance States if (self.next_state != self.state) then local to_id = -1 local to_name = "" -- Call OnLeave if (self.state != nil) then if (self.state.OnLeave != nil) then self.state:OnLeave(self.next_state) end -- Run Hook hook.Run("RoundManagerLeaveState", self.state:GetId(), self.state:GetName()) end -- Call OnEnter if (self.next_state != nil) then if (self.next_state.OnEnter != nil) then self.next_state:OnEnter(self.state) end to_id = self.next_state:GetId() to_name = self.next_state:GetName() -- Run Hook hook.Run("RoundManagerEnterState", self.next_state:GetId(), self.next_state:GetName()) end -- Send Network Message self:RefreshAll() -- Set State self.state = self.next_state end -- Run all timers. for k, v in pairs(self.timers.times) do if ((CurTime() - self.timers.times[k]) >= self.timers.delay[k]) then self.timers.funcs[k]() self.timers.times[k] = CurTime() end end end function CLASS:RefreshAll() local data = {} if (self.state != nil) then data.state = self.state:GetId() data.state_name = self.state:GetName() else data.state = -1 data.state_name = "Unknown" end net.Start(netmsg.refresh) net.WriteTable(data) net.Broadcast() end function CLASS:AnnounceWinner(team) end function CreateRoundManager() local obj = {} obj.__index = obj setmetatable(obj, CLASS) obj:__construct() return obj end _G["RoundManager"] = CreateRoundManager()
24.065359
89
0.716187
831383af75077bd297f01c58e2329bb4bc3b2271
679
ts
TypeScript
src/shuttle/shuttle.controller.ts
mateuszstaszkow/shuttle-estimator
c1c9909b52141e7c3b56b7718df3b03e01c01a8e
[ "MIT" ]
1
2021-02-07T07:27:23.000Z
2021-02-07T07:27:23.000Z
src/shuttle/shuttle.controller.ts
mateuszstaszkow/shuttle-estimator
c1c9909b52141e7c3b56b7718df3b03e01c01a8e
[ "MIT" ]
9
2021-02-25T02:36:16.000Z
2022-02-07T09:40:27.000Z
src/shuttle/shuttle.controller.ts
mateuszstaszkow/botlot-backend
2d2410153ce7ec3e224ff2a7ea74ab631796ae6b
[ "MIT" ]
null
null
null
import {Body, Controller, Post, Query} from '@nestjs/common'; import {Flight} from "../model/flight.interface"; import {ShuttleService} from "./shuttle.service"; @Controller('flight-shuttle') export class ShuttleController { private readonly NUMBER_OF_PEOPLE = 1; constructor(private readonly shuttleService: ShuttleService) {} @Post() public updateFlightWithShuttle(@Body() flight: Flight, @Query('numberOfPeople') numberOfPeople: number): Promise<Flight> { numberOfPeople = Number(numberOfPeople) || this.NUMBER_OF_PEOPLE; return this.shuttleService.updateFlightWithShuttle(flight, numberOfPeople); } }
37.722222
102
0.703976
b4858edec6d3ace6d93503fb36206e82deccf374
642
rb
Ruby
Casks/geburtstagschecker.rb
noinarisak/homebrew-cask
4396a344ad6f53cf601602779ce95a90adc2032b
[ "BSD-2-Clause" ]
2
2019-06-17T07:03:02.000Z
2019-07-06T13:34:32.000Z
Casks/geburtstagschecker.rb
noinarisak/homebrew-cask
4396a344ad6f53cf601602779ce95a90adc2032b
[ "BSD-2-Clause" ]
3
2022-02-28T07:19:56.000Z
2022-03-28T07:15:46.000Z
Casks/geburtstagschecker.rb
noinarisak/homebrew-cask
4396a344ad6f53cf601602779ce95a90adc2032b
[ "BSD-2-Clause" ]
1
2021-05-15T09:26:24.000Z
2021-05-15T09:26:24.000Z
cask 'geburtstagschecker' do version '1.8.1,187' sha256 '53162bf046cddcec2d899a6eb3adcda951bae74de3612c2e7a67478116f0df0c' url 'https://earthlingsoft.net/GeburtstagsChecker/GeburtstagsChecker.zip' appcast 'https://earthlingsoft.net/GeburtstagsChecker/appcast.xml' name 'GeburtstagsChecker' homepage 'https://earthlingsoft.net/GeburtstagsChecker/' app "GeburtstagsChecker #{version.before_comma} (#{version.after_comma})/GeburtstagsChecker.app" zap trash: [ '~/Library/Caches/earthlingsoft.GeburtstagsChecker', '~/Library/Preferences/earthlingsoft.GeburtstagsChecker.plist', ] end
37.764706
98
0.752336
2fe0baf495e13449bb86e81600805580f4d2c6d0
856
py
Python
exercises/pressing_button.py
polde-live/interprog1
a49ecef14453839518f1e8a6551fb3af493b1c2c
[ "Unlicense" ]
null
null
null
exercises/pressing_button.py
polde-live/interprog1
a49ecef14453839518f1e8a6551fb3af493b1c2c
[ "Unlicense" ]
null
null
null
exercises/pressing_button.py
polde-live/interprog1
a49ecef14453839518f1e8a6551fb3af493b1c2c
[ "Unlicense" ]
null
null
null
""" An Introduction to Interactive Programming in Python (Part 1) Practice exercises for timers # 5. Reflex tester """ import simpleguitk as simplegui total_ticks = 0 first_click = True # Timer handler def tick(): global total_ticks total_ticks += 1 def measure_time(): time_elapsed = total_ticks / 100.0 print "Elapsed time:\t %g seconds" %time_elapsed # Button handler def click(): global first_click global total_ticks if first_click: total_ticks = 0 print "Starting measurment." else: measure_time() first_click = not first_click # Create frame and timer frame = simplegui.create_frame("Counter with buttons", 200, 200) frame.add_button("Click me", click, 200) timer = simplegui.create_timer(10, tick) # Start timer timer.start() frame.start()
19.454545
64
0.674065
a444c1292062c22e4c3a0b9766561f25e1eed9da
3,328
php
PHP
src/DataCollector/PhalconRequestCollector.php
Grimston/phalcon-debugbar
aeaba602f94ab601a9061eb7d099f9fb6cce2ec6
[ "MIT" ]
null
null
null
src/DataCollector/PhalconRequestCollector.php
Grimston/phalcon-debugbar
aeaba602f94ab601a9061eb7d099f9fb6cce2ec6
[ "MIT" ]
null
null
null
src/DataCollector/PhalconRequestCollector.php
Grimston/phalcon-debugbar
aeaba602f94ab601a9061eb7d099f9fb6cce2ec6
[ "MIT" ]
null
null
null
<?php /** * User: zhuyajie * Date: 15/3/4 * Time: 15:40 */ namespace Grimston\Debugbar\DataCollector; use DebugBar\DataCollector\DataCollector; use DebugBar\DataCollector\DataCollectorInterface; use DebugBar\DataCollector\Renderable; use Phalcon\DiInterface; use Phalcon\Http\Request; use Phalcon\Http\Response; use Phalcon\Version; class PhalconRequestCollector extends DataCollector implements DataCollectorInterface,Renderable { /** * @var Request $request */ protected $request; /** * @var Response $response */ protected $response; /** * @var DiInterface */ protected $di; public function __construct($request, $response,$di) { $this->request = $request; $this->response = $response; $this->di = $di; } /** * Called by the DebugBar when data needs to be collected * @return array Collected data */ function collect() { $request = $this->request; $response = $this->response; $status = $response->getHeaders()->get('Status')?:'200 ok'; $responseHeaders = $response->getHeaders()->toArray()?:headers_list(); $cookies = $_COOKIE; unset($cookies[session_name()]); $cookies_service = $response->getCookies(); if ( $cookies_service ) { $useEncrypt = true; if ( $cookies_service->isUsingEncryption() && $this->di->has('crypt') && !$this->di['crypt']->getKey()) { $useEncrypt = false; } if ( !$cookies_service->isUsingEncryption() ) { $useEncrypt = false; } foreach ( $cookies as $key=>$vlaue ) { $cookies[$key] = $cookies_service->get(base64_encode($key))->useEncryption($useEncrypt)->getValue(); } } $data = array( 'status' => $status, 'request_query' => $request->getQuery(), 'request_post' => $request->getPost(), 'request_body' => $request->getRawBody(), 'request_cookies' => $cookies, 'request_server' => $_SERVER, 'response_headers' => $responseHeaders, 'response_body' => $request->isAjax()?$response->getContent():'', ); if ( Version::getId()<2000000 && $request->isAjax()) { $data['request_headers']=''; // 1.3.x has a ajax bug , so we use empty string insdead. }else{ $data['request_headers']=$request->getHeaders(); } $data = array_filter($data); if ( isset($data['request_query']['_url']) ) { unset($data['request_query']['_url']); } if ( empty($data['request_query']) ) { unset($data['request_query']); } if (isset($data['request_headers']['php-auth-pw'])) { $data['request_headers']['php-auth-pw'] = '******'; } if (isset($data['request_server']['PHP_AUTH_PW'])) { $data['request_server']['PHP_AUTH_PW'] = '******'; } foreach ($data as $key => $var) { if (!is_string($data[$key])) { $data[$key] = $this->formatVar($var); } } return $data; } /** * Returns the unique name of the collector * @return string */ function getName() { return 'request'; } /** * Returns a hash where keys are control names and their values * an array of options as defined in {@see DebugBar\JavascriptRenderer::addControl()} * @return array */ function getWidgets() { return array( "request" => array( "icon" => "tags", "widget" => "PhpDebugBar.Widgets.VariableListWidget", "map" => "request", "default" => "{}" ) ); } }
24.835821
108
0.619591
fd8e0d6eb97e305f26517a8a536641f97cc5b169
1,336
css
CSS
app/components/SideBar/SideBar.module.css
felipesreck/decrediton
bb256c9d80bb87ddaa5487a50d230d494b2b32c3
[ "ISC" ]
null
null
null
app/components/SideBar/SideBar.module.css
felipesreck/decrediton
bb256c9d80bb87ddaa5487a50d230d494b2b32c3
[ "ISC" ]
null
null
null
app/components/SideBar/SideBar.module.css
felipesreck/decrediton
bb256c9d80bb87ddaa5487a50d230d494b2b32c3
[ "ISC" ]
null
null
null
.sidebar { display: flex; flex-direction: column; width: var(--sidebar-width); z-index: 99; transition: width 100ms cubic-bezier(0.86, 0, 0.07, 1); box-shadow: 5px 0 21px rgba(9, 20, 64, 0.21); background-color: var(--sidebar-color); } .sidebar.sidebarReduced { width: var(--sidebar-width-reduced); } .sidebar.sidebarOnBottom { height: 70px; flex-direction: row; } .sidebarMain { position: relative; flex: 1; overflow: hidden; display: flex; flex-direction: column; } .sidebarScroll { position: relative; overflow-y: auto; overflow-x: hidden; flex: 1; } .watchOnlyIcon { width: 16px; height: 16px; background-repeat: no-repeat; background-image: var(--watch-only-icon); margin-right: 10px; margin-bottom: 10px; } .menuCaret { position: absolute; height: 52px; width: 100%; border-left: 5px solid var(--accent-color); background-color: var(--background-back-color); } @media screen and (max-width: 768px) { .sidebar { display: flex; width: 100% !important; } .sidebarScroll { overflow: hidden; margin: 0 auto; } .menuCaret { width: 76px; height: 65px; border-left: 0; border-bottom: 5px solid var(--accent-color); } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
16.7
57
0.642964
cbb310210390d5c88fe6dc12b515835cbb87966e
578
dart
Dart
example/lib/main.dart
akashlilhare/dart_sentiment
919c5e37dfe4293936b0b953eb263dfc4ff848ce
[ "MIT" ]
8
2021-11-01T10:04:03.000Z
2022-01-20T03:22:59.000Z
example/lib/main.dart
akashlilhare/dart_sentiment
919c5e37dfe4293936b0b953eb263dfc4ff848ce
[ "MIT" ]
1
2021-11-11T15:18:59.000Z
2021-11-15T19:58:27.000Z
example/lib/main.dart
akashlilhare/dart_sentiment
919c5e37dfe4293936b0b953eb263dfc4ff848ce
[ "MIT" ]
1
2022-01-20T03:23:01.000Z
2022-01-20T03:23:01.000Z
import 'package:dart_sentiment/dart_sentiment.dart'; void main() { final sentiment = Sentiment(); print(sentiment.analysis("The cake she made was terrible 😐")); print(sentiment.analysis("The cake she made was terrible 😐", emoji: true)); print(sentiment.analysis( "I love cats, but I am allergic to them.", )); print(sentiment.analysis("J'adore les chats, mais j'y suis allergique.", languageCode: LanguageCode.french)); print(sentiment.analysis("Le gâteau qu'elle a fait était horrible 😐", emoji: true, languageCode: LanguageCode.french)); }
28.9
77
0.707612
1f839e46f1b918fbc4a9fed536c1e7178a9f1405
7,484
dart
Dart
lib/draw_page.dart
maks/SketchNotes2
e84b49607f3b98e5d576bf3e7fa4afdacb80e498
[ "MIT" ]
4
2019-07-24T01:06:21.000Z
2020-07-29T08:57:59.000Z
lib/draw_page.dart
maks/SketchNotes2
e84b49607f3b98e5d576bf3e7fa4afdacb80e498
[ "MIT" ]
23
2020-01-16T23:51:21.000Z
2020-03-11T22:35:41.000Z
lib/draw_page.dart
maks/SketchNotes2
e84b49607f3b98e5d576bf3e7fa4afdacb80e498
[ "MIT" ]
2
2019-04-08T12:47:37.000Z
2020-11-25T17:19:40.000Z
import 'dart:math' as math; import 'dart:ui'; import 'package:built_collection/built_collection.dart'; import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:provider/provider.dart'; import 'package:sketchnotes2/bloc/painter_bloc.dart'; import 'package:sketchnotes2/dialogs/color_dialog.dart'; import 'package:sketchnotes2/dialogs/width_dialog.dart'; import 'package:sketchnotes2/models/clear.dart'; import 'package:sketchnotes2/models/color.dart'; import 'package:sketchnotes2/models/end_touch.dart'; import 'package:sketchnotes2/models/stroke.dart'; import 'package:sketchnotes2/models/stroke_width.dart'; import 'package:sketchnotes2/models/touch_location.dart'; import 'package:sketchnotes2/strokes_painter.dart'; class DrawPage extends StatefulWidget { @override DrawPageState createState() => DrawPageState(); } class DrawPageState extends State<DrawPage> with TickerProviderStateMixin { AnimationController _controller; AnimationStatus _animationStatus = AnimationStatus.dismissed; final StrokeCap _strokeCap = StrokeCap.round; final GlobalKey _globalKey = GlobalKey(); PainterBloc _bloc; @override void initState() { super.initState(); _controller = AnimationController( vsync: this, duration: const Duration(milliseconds: 500), ); // The widgets returned by build(...) change when animationStatus changes _controller.addStatusListener((newAnimationStatus) { if (newAnimationStatus != _animationStatus) { setState(() { _animationStatus = newAnimationStatus; }); } }); } @override void didChangeDependencies() async { super.didChangeDependencies(); final bloc = Provider.of<PainterBloc>(context); if (bloc != this._bloc) { _bloc = bloc; } } @override void dispose() { super.dispose(); } @override Widget build(BuildContext context) { return Scaffold( body: Container( child: GestureDetector( onPanUpdate: (DragUpdateDetails details) { setState(() { final RenderBox object = context.findRenderObject() as RenderBox; final localPosition = object.globalToLocal(details.globalPosition); _bloc.drawEvent.add(TouchLocationEvent((builder) { builder ..x = localPosition.dx ..y = localPosition.dy; })); }); }, onPanEnd: (DragEndDetails details) => _bloc.drawEvent.add(EndTouchEvent()), child: StreamBuilder<BuiltList<Stroke>>( stream: _bloc.strokes, builder: (context, snapshot) { return RepaintBoundary( key: _globalKey, child: CustomPaint( painter: StrokesPainter( strokeCap: _strokeCap, strokes: snapshot.data), size: Size.infinite, ), ); }, ), ), ), floatingActionButton: Column( mainAxisSize: MainAxisSize.min, children: <Widget>[ !_controller.isDismissed ? Container( height: 70.0, width: 56.0, alignment: FractionalOffset.topCenter, child: ScaleTransition( scale: CurvedAnimation( parent: _controller, curve: Interval(0.0, 1.0 - 0 / 3 / 2.0, curve: Curves.easeOut), ), child: FloatingActionButton( mini: true, child: Icon(Icons.clear), onPressed: () { _bloc.drawEvent.add(ClearEvent()); }, ), ), ) : null, !_controller.isDismissed ? Container( height: 70.0, width: 56.0, alignment: FractionalOffset.topCenter, child: ScaleTransition( scale: CurvedAnimation( parent: _controller, curve: Interval(0.0, 1.0 - 1 / 3 / 2.0, curve: Curves.easeOut), ), child: FloatingActionButton( mini: true, child: Icon(Icons.lens), onPressed: () async { final strokeWidth = _bloc.width.value; final newWidth = await showDialog<double>( context: context, builder: (context) => WidthDialog(strokeWidth: strokeWidth)); if (newWidth != null) { _bloc.drawEvent.add(StrokeWidthChangeEvent((builder) { builder.width = newWidth; })); } }, ), ), ) : null, !_controller.isDismissed ? Container( height: 70.0, width: 56.0, alignment: FractionalOffset.topCenter, child: ScaleTransition( scale: CurvedAnimation( parent: _controller, curve: Interval(0.0, 1.0 - 2 / 3 / 2.0, curve: Curves.easeOut), ), child: FloatingActionButton( mini: true, child: Icon(Icons.color_lens), onPressed: () async { final newColor = await showDialog<Color>( context: context, builder: (context) => ColorDialog(), ); if (newColor != null) { _bloc.drawEvent.add(ColorChangeEvent((builder) { builder ..red = newColor.red ..green = newColor.green ..blue = newColor.blue; })); } }, ), ), ) : null, FloatingActionButton( child: AnimatedBuilder( animation: _controller, builder: (BuildContext context, Widget child) { return Transform( transform: Matrix4.rotationZ(_controller.value * 0.5 * math.pi), alignment: FractionalOffset.center, child: Icon(Icons.brush), ); }, ), onPressed: () async { if (_controller.isDismissed) { _controller.forward(); } else { _controller.reverse(); } }, ), ].where((widget) => widget != null).toList(), ), ); } }
35.808612
81
0.4686
8080ada46ff72a4584b808dcf9312c0fc262517c
2,134
lua
Lua
lua/enemies/bossShot.lua
nekolabs/bob-the-bacterium
27e8fde7b71cc3e3757d8779bf626be39ed5c224
[ "MIT" ]
1
2016-08-28T23:00:53.000Z
2016-08-28T23:00:53.000Z
lua/enemies/bossShot.lua
nekolabs/bob-the-bacterium
27e8fde7b71cc3e3757d8779bf626be39ed5c224
[ "MIT" ]
null
null
null
lua/enemies/bossShot.lua
nekolabs/bob-the-bacterium
27e8fde7b71cc3e3757d8779bf626be39ed5c224
[ "MIT" ]
null
null
null
-- bossShot.lua --atlMap = atl.Loader.load("Maps/level0.tmx") local lg = love.graphics local bulletImg = lg.newImage("assets/bullet.png")--not the actual bullet, but important for the sizes local buW, buH = bulletImg:getWidth(), bulletImg:getHeight() local shotMusic = love.audio.newSource("sfx/laser.ogg"); -- sfx for lasers of miniBoss shotMusic:setLooping(false); bossShot2 = false bossBullet = {} function createBossBullet(x,y, BbulletDir) table.insert(bossBullet, { x=x, y=y, width=buW-2.5, height=buH-2.5, BbulletDir = BbulletDir, vxBbu = 200 } ) shotMusic:play(); shotMusic:setLooping(false); end function bossBullet_update(dt) -- we need to split it or after the turret is dead the bullets won't move further for Bbi,Bbv in ipairs(bossBullet) do if Bbv.BbulletDir == "clockwise" then -- movement of the bullet to the right with velocity of Bu (overriding xPos(bu)) Bbv.x = Bbv.x + (Bbv.vxBbu*dt) elseif Bbv.BbulletDir == "anticlockwise" then Bbv.x = Bbv.x - (Bbv.vxBbu*dt) end end for Bbi,Bbv in ipairs(bossBullet) do for ei,ev in ipairs(RedBoss) do if Bbv.BbulletDir == "clockwise" then if Bbv.x > atlMap.width*atlMap.tileWidth + (-1)*buW then for i=1,1 do table.remove(bossBullet, Bbi) end elseif Bbv.x > ev.x + 750 then for i=1,1 do table.remove(bossBullet, Bbi) end end end if Bbv.BbulletDir == "anticlockwise" then if Bbv.x < ev.x - (750 + buW) then for i=1,1 do table.remove(bossBullet,Bbi) end elseif Bbv.x < (atlMap.width*atlMap.tileWidth-atlMap.width*atlMap.tileWidth) + buW then for i=1,1 do table.remove(bossBullet,Bbi) end end end end end end local r,g,b = 255,255,255 local wRect, hRect = 20,5 function bossBullet_draw() for Bbi,Bbv in ipairs(bossBullet) do lg.setColor(r-255,g-255,b); -- blue lasers if Bbv.BbulletDir == "clockwise" then lg.rectangle("fill", Bbv.x+Bbv.width-40, Bbv.y+25, wRect, hRect); elseif Bbv.BbulletDir == "anticlockwise" then lg.rectangle("fill", Bbv.x-15, Bbv.y+25, wRect, hRect); end lg.setColor(r,g,b); end end
31.382353
109
0.675726
a83d737046d13a35e26eb6fa4b56de6994bb3ae8
144
sql
SQL
reset_everything.sql
davidhoness/sstv_gis
9b774050f311bb318d6f3d03d91973cc50c330aa
[ "MIT" ]
1
2020-10-06T14:45:33.000Z
2020-10-06T14:45:33.000Z
reset_everything.sql
davidhoness/sstv_gis
9b774050f311bb318d6f3d03d91973cc50c330aa
[ "MIT" ]
null
null
null
reset_everything.sql
davidhoness/sstv_gis
9b774050f311bb318d6f3d03d91973cc50c330aa
[ "MIT" ]
null
null
null
delete from sstv_tx_geometries; delete from sstv_tx_log; alter sequence sstv_tx_geometries_seq restart; alter sequence sstv_tx_log_seq restart;
36
46
0.875
12b96bab5d5535b228625b4f70013d2eab390f77
1,176
cs
C#
Assets/ROSBridgeLib/std_msgs/DurationMsg.cs
cairo-robotics/ar-for-lfd
cbab020244bca0aebcd6f6b8be6ce645365e0337
[ "MIT" ]
1
2021-04-21T16:02:39.000Z
2021-04-21T16:02:39.000Z
Assets/ROSBridgeLib/std_msgs/DurationMsg.cs
cairo-robotics/ar-for-lfd
cbab020244bca0aebcd6f6b8be6ce645365e0337
[ "MIT" ]
null
null
null
Assets/ROSBridgeLib/std_msgs/DurationMsg.cs
cairo-robotics/ar-for-lfd
cbab020244bca0aebcd6f6b8be6ce645365e0337
[ "MIT" ]
null
null
null
using System.Collections; using System.Text; using SimpleJSON; using UnityEngine; /** * Define a Duration message. These have been hand-crafted from the corresponding msg file. * * Version History * 3.3 - added to std_msgs for consistency * * @author Michael Jenkin, Robert Codd-Downey and Andrew Speers * @version 3.3 */ namespace ROSBridgeLib { namespace std_msgs { public class DurationMsg : ROSBridgeMsg { private int _secs, _nsecs; public DurationMsg(JSONNode msg) { _secs = int.Parse (msg["secs"]); _secs = int.Parse (msg["nsecs"]); } public DurationMsg(int secs, int nsecs) { _secs = secs; _nsecs = nsecs; } public static string GetMessageType() { return "std_msgs/Duration"; } public int GetSecs() { return _secs; } public int GetNsecs() { return _nsecs; } public override string ToString() { return "Duration [secs=" + _secs + ", nsecs=" + _nsecs + "]"; } public override string ToYAMLString() { return "{\"secs\" : " + _secs + ", \"nsecs\" : " + _nsecs + "}"; } } } }
21.381818
91
0.585884
ddd060566537f9ad4280a4d64e97a40b82ffdd1e
549
java
Java
src/main/java/com/affinitynow/app/AffinityNowApplication.java
AffinityNow/AffinityNow
83ae26312b48fca0f9baf69d1169e356b43b6c74
[ "Apache-2.0" ]
1
2021-02-14T09:53:50.000Z
2021-02-14T09:53:50.000Z
src/main/java/com/affinitynow/app/AffinityNowApplication.java
AffinityNow/AffinityNow
83ae26312b48fca0f9baf69d1169e356b43b6c74
[ "Apache-2.0" ]
48
2021-01-11T15:51:08.000Z
2021-03-28T09:24:23.000Z
src/main/java/com/affinitynow/app/AffinityNowApplication.java
AffinityNow/AffinityNow
83ae26312b48fca0f9baf69d1169e356b43b6c74
[ "Apache-2.0" ]
null
null
null
package com.affinitynow.app; import org.modelmapper.ModelMapper; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.domain.EntityScan; import org.springframework.context.annotation.Bean; @SpringBootApplication @EntityScan(basePackages = {"com.affinityNow.app"}) // scan JPA entities public class AffinityNowApplication { public static void main(String[] args) { SpringApplication.run(AffinityNowApplication.class, args); } }
30.5
73
0.825137
bed17670943f6cfb891debb7aa15ecee62368c2d
159
ts
TypeScript
apps/user/src/user.service.ts
anerivala1412/micro-ecommerce
d0a018184385f0e29352580028a62b533ef346d0
[ "MIT" ]
null
null
null
apps/user/src/user.service.ts
anerivala1412/micro-ecommerce
d0a018184385f0e29352580028a62b533ef346d0
[ "MIT" ]
null
null
null
apps/user/src/user.service.ts
anerivala1412/micro-ecommerce
d0a018184385f0e29352580028a62b533ef346d0
[ "MIT" ]
null
null
null
import { Injectable } from '@nestjs/common'; @Injectable() export class UserService { constructor() {} async findById() { return await 'aneri'; } }
15.9
44
0.654088
43c15f8d9d07ccdc3dad0c266e65a68b1def7825
543
ts
TypeScript
packages/plugins/other/hasura-allow-list/src/config.ts
notrab/graphql-code-generator
dfd798daac40cd20361641ef7bc342a23164b894
[ "MIT" ]
null
null
null
packages/plugins/other/hasura-allow-list/src/config.ts
notrab/graphql-code-generator
dfd798daac40cd20361641ef7bc342a23164b894
[ "MIT" ]
2
2022-03-04T17:35:16.000Z
2022-03-04T17:49:42.000Z
packages/plugins/other/hasura-allow-list/src/config.ts
notrab/graphql-code-generator
dfd798daac40cd20361641ef7bc342a23164b894
[ "MIT" ]
1
2021-10-20T07:46:48.000Z
2021-10-20T07:46:48.000Z
export interface HasuraAllowListPluginConfig { /** * @default allowed-queries * @description Choose the collection name to be generated. Defaults to allowed-queries */ collection_name?: string; /** * @default 3 * @description Target metadata config version. Supported versions are 2 and 3. * This is mostly for future proofing, currently has no impact as both versions use the same format. * The default value _will change_ in the future if/when newer config versions are released. */ config_version?: 2 | 3; }
36.2
102
0.72744
a3810821f79edb7acdaeb8450b0641f1ee31b36c
6,901
java
Java
storage/sis-storage/src/main/java/org/apache/sis/internal/storage/wkt/Store.java
fiser-chinhvm/Test-Sis
25803969debf36e678146ef4616b4c630ac18614
[ "Apache-2.0" ]
null
null
null
storage/sis-storage/src/main/java/org/apache/sis/internal/storage/wkt/Store.java
fiser-chinhvm/Test-Sis
25803969debf36e678146ef4616b4c630ac18614
[ "Apache-2.0" ]
null
null
null
storage/sis-storage/src/main/java/org/apache/sis/internal/storage/wkt/Store.java
fiser-chinhvm/Test-Sis
25803969debf36e678146ef4616b4c630ac18614
[ "Apache-2.0" ]
null
null
null
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.sis.internal.storage.wkt; import java.util.List; import java.util.ArrayList; import java.util.Arrays; import java.util.logging.Level; import java.util.logging.LogRecord; import java.io.Reader; import java.io.IOException; import java.text.ParsePosition; import java.text.ParseException; import org.opengis.metadata.Metadata; import org.opengis.referencing.ReferenceSystem; import org.apache.sis.io.wkt.WKTFormat; import org.apache.sis.io.wkt.Warnings; import org.apache.sis.storage.DataStore; import org.apache.sis.storage.StorageConnector; import org.apache.sis.storage.DataStoreException; import org.apache.sis.metadata.iso.DefaultMetadata; import org.apache.sis.util.resources.Errors; import org.apache.sis.util.CharSequences; import org.apache.sis.referencing.CRS; /** * A data store which creates data objects from a WKT definition. * This {@code DataStore} implementation is basically a facade for the {@link CRS#fromWKT(String)} method. * * @author Martin Desruisseaux (Geomatys) * @since 0.7 * @version 0.7 * @module */ final class Store extends DataStore { /** * The file name. */ private final String name; /** * The reader, set by the constructor and cleared when no longer needed. */ private Reader source; /** * The parsed objects, filled only when first needed. * May still be empty if the parsing failed. */ private final List<Object> objects; /** * The metadata object, created when first needed. */ private Metadata metadata; /** * Creates a new WKT store from the given file, URL or stream. * * @param connector Information about the storage (URL, stream, <i>etc</i>). * @throws DataStoreException If an error occurred while opening the stream. */ public Store(final StorageConnector connector) throws DataStoreException { objects = new ArrayList<Object>(); name = connector.getStorageName(); source = connector.getStorageAs(Reader.class); connector.closeAllExcept(source); if (source == null) { throw new DataStoreException(Errors.format(Errors.Keys.CanNotOpen_1, name)); } } /** * Parses the objects, if not already done. Note that {@link #objects} may still be empty * if an exception has been thrown at this invocation time or in previous invocation. * * @throws DataStoreException if an error occurred during the parsing process. */ private void parse() throws DataStoreException { final Reader in = source; if (in != null) try { source = null; // Cleared first in case of error. final String wkt; try { char[] buffer = new char[StoreProvider.READ_AHEAD_LIMIT]; int length = 0; int n; while ((n = in.read(buffer, length, buffer.length - length)) >= 0) { if ((length += n) >= buffer.length) { if (n >= Integer.MAX_VALUE / 1024) { // Arbitrary size limit. throw new DataStoreException(Errors.format(Errors.Keys.ExcessiveStringSize)); } buffer = Arrays.copyOf(buffer, n << 1); } } wkt = String.valueOf(buffer, 0, length); } finally { in.close(); } final ParsePosition pos = new ParsePosition(0); final WKTFormat parser = new WKTFormat(null, null); do { objects.add(parser.parse(wkt, pos)); pos.setIndex(CharSequences.skipLeadingWhitespaces(wkt, pos.getIndex(), wkt.length())); final Warnings warnings = parser.getWarnings(); if (warnings != null) { final LogRecord record = new LogRecord(Level.WARNING, warnings.toString()); record.setSourceClassName(Store.class.getName()); record.setSourceMethodName("getMetadata"); // Public facade for this method. listeners.warning(record); } } while (pos.getIndex() < wkt.length()); } catch (IOException e) { // Multi-catch on the JDK7 branch. throw new DataStoreException(Errors.format(Errors.Keys.CanNotParseFile_2, "WKT", name), e); } catch (ParseException e) { throw new DataStoreException(Errors.format(Errors.Keys.CanNotParseFile_2, "WKT", name), e); } } /** * Returns the metadata associated to the parsed objects, or {@code null} if none. * The current implementation retains only instances of {@link ReferenceSystem} * and ignore other cases. * * @return The metadata associated to the parsed object, or {@code null} if none. * @throws DataStoreException if an error occurred during the parsing process. */ @Override public Metadata getMetadata() throws DataStoreException { if (metadata == null) { parse(); DefaultMetadata md = null; for (final Object object : objects) { if (object instanceof ReferenceSystem) { if (md == null) md = new DefaultMetadata(); md.getReferenceSystemInfo().add((ReferenceSystem) object); } } metadata = md; } return metadata; } /** * Closes this data store and releases any underlying resources. * * @throws DataStoreException If an error occurred while closing this data store. */ @Override public void close() throws DataStoreException { final Reader s = source; source = null; // Cleared first in case of failure. objects.clear(); if (s != null) try { s.close(); } catch (IOException e) { throw new DataStoreException(e); } } }
39.210227
110
0.616867
7d2ce28fefa922be37bc4368acd0a598b85b1594
147
h
C
Categories.framework/CTError.h
reels-research/iOS-Private-Frameworks
9a4f4534939310a51fdbf5a439dd22487efb0f01
[ "MIT" ]
4
2021-10-06T12:15:26.000Z
2022-02-21T02:26:00.000Z
Categories.framework/CTError.h
reels-research/iOS-Private-Frameworks
9a4f4534939310a51fdbf5a439dd22487efb0f01
[ "MIT" ]
null
null
null
Categories.framework/CTError.h
reels-research/iOS-Private-Frameworks
9a4f4534939310a51fdbf5a439dd22487efb0f01
[ "MIT" ]
1
2021-10-08T07:40:53.000Z
2021-10-08T07:40:53.000Z
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/Categories.framework/Categories */ @interface CTError : NSError @end
18.375
75
0.782313
bb7c63a9c0418e2c0c3a58d248ae49d34b5f18e8
3,066
cs
C#
CMP/CmpServiceLib/Models/Mapping/vw_MigrationFailedJobStatusDetailsMap.cs
grazies/Phoenix
eed35547ed52611f9a1b131cb993f7cd8f424690
[ "MIT" ]
38
2016-03-01T01:07:55.000Z
2019-02-23T05:06:10.000Z
CMP/CmpServiceLib/Models/Mapping/vw_MigrationFailedJobStatusDetailsMap.cs
grazies/Phoenix
eed35547ed52611f9a1b131cb993f7cd8f424690
[ "MIT" ]
12
2016-03-02T22:19:03.000Z
2018-10-17T08:45:17.000Z
CMP/CmpServiceLib/Models/Mapping/vw_MigrationFailedJobStatusDetailsMap.cs
grazies/Phoenix
eed35547ed52611f9a1b131cb993f7cd8f424690
[ "MIT" ]
10
2016-03-05T02:27:56.000Z
2019-03-27T07:44:03.000Z
using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; namespace CmpServiceLib.Models.Mapping { public class vw_MigrationFailedJobStatusDetailsMap : EntityTypeConfiguration<vw_MigrationFailedJobStatusDetails> { public vw_MigrationFailedJobStatusDetailsMap() { // Primary Key this.HasKey(t => new { t.CMPRequestID, t.ValidationResult, t.Warnings }); // Properties this.Property(t => t.CMPRequestID) .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None); this.Property(t => t.VMName) .HasMaxLength(256); this.Property(t => t.StatusCode) .HasMaxLength(50); this.Property(t => t.VMSourceName) .HasMaxLength(256); this.Property(t => t.Status) .HasMaxLength(50); this.Property(t => t.Application_Name) .HasMaxLength(100); this.Property(t => t.Application_ID) .HasMaxLength(50); this.Property(t => t.Requestor) .HasMaxLength(100); this.Property(t => t.Status_Message) .HasMaxLength(8000); this.Property(t => t.ValidationResult) .IsRequired() .HasMaxLength(50); this.Property(t => t.Warnings) .IsRequired(); // Table & Column Mappings this.ToTable("vw_MigrationFailedJobStatusDetails"); this.Property(t => t.CMPRequestID).HasColumnName("CMPRequestID"); this.Property(t => t.VMName).HasColumnName("VMName"); this.Property(t => t.StatusCode).HasColumnName("StatusCode"); this.Property(t => t.VMSourceName).HasColumnName("VMSourceName"); this.Property(t => t.AD_Domain).HasColumnName("AD Domain"); this.Property(t => t.Org_Division).HasColumnName("Org Division"); this.Property(t => t.Status).HasColumnName("Status"); this.Property(t => t.Application_Name).HasColumnName("Application Name"); this.Property(t => t.Application_ID).HasColumnName("Application ID"); this.Property(t => t.Requestor).HasColumnName("Requestor"); this.Property(t => t.Status_Message).HasColumnName("Status Message"); this.Property(t => t.ValidationResult).HasColumnName("ValidationResult"); this.Property(t => t.Azure_IP_Address).HasColumnName("Azure IP Address"); this.Property(t => t.StartTimePST).HasColumnName("StartTimePST"); this.Property(t => t.Submitted_Elapsed_Time).HasColumnName("Submitted Elapsed Time"); this.Property(t => t.Last_Update).HasColumnName("Last Update"); this.Property(t => t.Last_Update_Elapsed_Time).HasColumnName("Last Update Elapsed Time"); this.Property(t => t.Exception).HasColumnName("Exception"); this.Property(t => t.Warnings).HasColumnName("Warnings"); } } }
42.583333
116
0.607632
390f39634bba86d4f5bb8ec22eb2b7557ac1af96
4,150
py
Python
skdecide/discrete_optimization/rcpsp/parser/rcpsp_parser.py
emilienDespres/scikit-decide
2a3dd2d93e5e6d07984e1bc02b6e969261aeefbc
[ "MIT" ]
27
2020-11-23T11:45:31.000Z
2022-03-22T08:08:00.000Z
skdecide/discrete_optimization/rcpsp/parser/rcpsp_parser.py
emilienDespres/scikit-decide
2a3dd2d93e5e6d07984e1bc02b6e969261aeefbc
[ "MIT" ]
94
2021-02-24T09:50:23.000Z
2022-02-27T10:07:15.000Z
skdecide/discrete_optimization/rcpsp/parser/rcpsp_parser.py
emilienDespres/scikit-decide
2a3dd2d93e5e6d07984e1bc02b6e969261aeefbc
[ "MIT" ]
12
2020-12-08T10:38:26.000Z
2021-10-01T09:17:04.000Z
# Copyright (c) AIRBUS and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from __future__ import annotations import os import sys from skdecide.discrete_optimization.rcpsp.rcpsp_model import ( MultiModeRCPSPModel, RCPSPModel, SingleModeRCPSPModel, ) def parse_psplib(input_data): # parse the input # print('input_data\n',input_data) lines = input_data.split("\n") # Retrieving section bounds horizon_ref_line_index = lines.index("RESOURCES") - 1 prec_ref_line_index = lines.index("PRECEDENCE RELATIONS:") prec_start_line_index = prec_ref_line_index + 2 # print('prec_start_line_index: ', prec_start_line_index) duration_ref_line_index = lines.index("REQUESTS/DURATIONS:") prec_end_line_index = duration_ref_line_index - 2 duration_start_line_index = duration_ref_line_index + 3 # print('duration_start_line_index: ', duration_start_line_index) res_ref_line_index = lines.index("RESOURCEAVAILABILITIES:") # res_ref_line_index = lines.index('RESOURCE AVAILABILITIES') duration_end_line_index = res_ref_line_index - 2 res_start_line_index = res_ref_line_index + 1 # print('res_start_line_index: ', res_start_line_index) # print('prec_end_line_index: ', prec_end_line_index) # print('duration_end_line_index: ', duration_end_line_index) # Parsing horizon tmp = lines[horizon_ref_line_index].split() horizon = int(tmp[2]) # Parsing resource information tmp1 = lines[res_start_line_index].split() tmp2 = lines[res_start_line_index + 1].split() resources = { str(tmp1[(i * 2)]) + str(tmp1[(i * 2) + 1]): int(tmp2[i]) for i in range(len(tmp2)) } non_renewable_resources = [ name for name in list(resources.keys()) if name.startswith("N") ] n_resources = len(resources.keys()) # Parsing precedence relationship multi_mode = False successors = {} for i in range(prec_start_line_index, prec_end_line_index + 1): tmp = lines[i].split() task_id = int(tmp[0]) n_modes = int(tmp[1]) n_successors = int(tmp[2]) successors[task_id] = [int(x) for x in tmp[3 : (3 + n_successors)]] # Parsing mode and duration information mode_details = {} for i in range(duration_start_line_index, duration_end_line_index + 1): tmp = lines[i].split() if len(tmp) == 3 + n_resources: task_id = int(tmp[0]) mode_id = int(tmp[1]) duration = int(tmp[2]) resources_usage = [int(x) for x in tmp[3 : (3 + n_resources)]] else: multi_mode = True mode_id = int(tmp[0]) duration = int(tmp[1]) # resources_usage = tmp[2:(3 + n_resources)] resources_usage = [int(x) for x in tmp[2 : (3 + n_resources)]] if int(task_id) not in list(mode_details.keys()): mode_details[int(task_id)] = {} mode_details[int(task_id)][mode_id] = {} # Dict[int, Dict[str, int]] mode_details[int(task_id)][mode_id]["duration"] = duration for i in range(n_resources): mode_details[int(task_id)][mode_id][ list(resources.keys())[i] ] = resources_usage[i] if multi_mode: problem = MultiModeRCPSPModel( resources=resources, non_renewable_resources=non_renewable_resources, mode_details=mode_details, successors=successors, horizon=horizon, horizon_multiplier=30, ) else: problem = SingleModeRCPSPModel( resources=resources, non_renewable_resources=non_renewable_resources, mode_details=mode_details, successors=successors, horizon=horizon, horizon_multiplier=30, ) return problem def parse_file(file_path) -> RCPSPModel: with open(file_path, "r") as input_data_file: input_data = input_data_file.read() rcpsp_model = parse_psplib(input_data) return rcpsp_model
35.169492
77
0.648916
e738fd8ea7035ab9decaf8645a1a59e3799e6068
107
php
PHP
resources/views/pages/about.blade.php
aa3710079/messageboard
ff3616328c71f8112ece111c81f99dbda8d51612
[ "MIT" ]
null
null
null
resources/views/pages/about.blade.php
aa3710079/messageboard
ff3616328c71f8112ece111c81f99dbda8d51612
[ "MIT" ]
null
null
null
resources/views/pages/about.blade.php
aa3710079/messageboard
ff3616328c71f8112ece111c81f99dbda8d51612
[ "MIT" ]
null
null
null
@extends('app') @section('content') @if($first=='Fox') <h1>Hi Fox</h1> @else <h1>Else</h1> @endif @stop
10.7
19
0.598131
dc99d46e22fd3d8074b28c5eacab1408741159b5
1,757
rb
Ruby
spec/serket/configuration_spec.rb
mnipper/serket
a4606071fde8982d794ff1f8fc09c399ac92ba17
[ "MIT" ]
1
2015-09-01T18:21:43.000Z
2015-09-01T18:21:43.000Z
spec/serket/configuration_spec.rb
mnipper/serket
a4606071fde8982d794ff1f8fc09c399ac92ba17
[ "MIT" ]
1
2016-03-19T23:22:07.000Z
2016-03-20T00:37:22.000Z
spec/serket/configuration_spec.rb
mnipper/serket
a4606071fde8982d794ff1f8fc09c399ac92ba17
[ "MIT" ]
null
null
null
require "spec_helper" describe Serket::Configuration do describe 'defaults' do before :each do @configuration = Serket::Configuration.new end it "should have a default encoding of utf-8" do @configuration.encoding.should == 'utf-8' end it "should have a default delimiter of ::" do @configuration.delimiter.should == '::' end it "should have a default format of delimited" do @configuration.format.should == :delimited end it "should have a default symmetric algorithm of AES-256-CBC" do @configuration.symmetric_algorithm.should == 'AES-256-CBC' end end describe 'configuration changes' do it "should allow a configuration change for encoding" do Serket.configure do |config| config.encoding = 'utf-16' end Serket.configuration.encoding.should == 'utf-16' end it "should allow a configuration change for format" do Serket.configure do |config| config.format = :json end Serket.configuration.format.should == :json end it "should allow a configuration change for delimiter" do Serket.configure do |config| config.delimiter = '**' end Serket.configuration.delimiter.should == '**' end it "should allow a configuration change for symmetric_algorithm" do Serket.configure do |config| config.symmetric_algorithm = 'AES-128-CBC' end Serket.configuration.symmetric_algorithm.should == 'AES-128-CBC' end after :each do Serket.configure do |config| config.delimiter = '::' config.format = :delimited config.encoding = 'utf-8' config.symmetric_algorithm = 'AES-256-CBC' end end end end
25.463768
71
0.652817
6dcaaa57bb663868cffbd0da9fd4d5de69d51cac
69
ts
TypeScript
packages/@surface/material-design/internal/types/hsl.d.ts
SurfaceJS/Modules
aa444e71c36c87c8533e1506942c4c0f2126da6a
[ "MIT" ]
2
2020-03-26T17:25:19.000Z
2021-02-20T19:22:03.000Z
packages/@surface/material-design/internal/types/hsl.d.ts
SurfaceJS/Modules
aa444e71c36c87c8533e1506942c4c0f2126da6a
[ "MIT" ]
null
null
null
packages/@surface/material-design/internal/types/hsl.d.ts
SurfaceJS/Modules
aa444e71c36c87c8533e1506942c4c0f2126da6a
[ "MIT" ]
null
null
null
type HSL = { h: number, s: number, l: number }; export default HSL;
17.25
47
0.637681
38dc8db357a2372f679575996f73039fdc8dda75
3,492
php
PHP
backend/modules/common/controllers/ConfigController.php
bw4243/jukong
d99dd3df171a271133ee68187cb784586c7b981b
[ "Apache-2.0" ]
1
2020-02-21T08:03:00.000Z
2020-02-21T08:03:00.000Z
backend/modules/common/controllers/ConfigController.php
bw4243/jukong
d99dd3df171a271133ee68187cb784586c7b981b
[ "Apache-2.0" ]
1
2019-08-24T08:45:23.000Z
2019-08-24T08:45:23.000Z
backend/modules/common/controllers/ConfigController.php
bw4243/jukong
d99dd3df171a271133ee68187cb784586c7b981b
[ "Apache-2.0" ]
2
2020-02-21T08:03:22.000Z
2020-02-22T09:43:52.000Z
<?php namespace backend\modules\common\controllers; use Yii; use yii\web\NotFoundHttpException; use common\enums\StatusEnum; use common\models\base\SearchModel; use common\models\common\Config; use common\helpers\ResultDataHelper; use common\components\Curd; use backend\controllers\BaseController; /** * Class ConfigController * @package backend\modules\common\controllers * @author jianyan74 <[email protected]> */ class ConfigController extends BaseController { use Curd; /** * @var \yii\db\ActiveRecord */ public $modelClass = Config::class; /** * 首页 * * @return string * @throws NotFoundHttpException */ public function actionIndex() { $searchModel = new SearchModel([ 'model' => Config::class, 'scenario' => 'default', 'partialMatchAttributes' => ['title', 'name'], // 模糊查询 'defaultOrder' => [ 'cate_id' => SORT_ASC, 'sort' => SORT_ASC, ], 'pageSize' => $this->pageSize ]); $dataProvider = $searchModel ->search(Yii::$app->request->queryParams); $dataProvider->query ->andWhere(['>=', 'status', StatusEnum::DISABLED]); return $this->render($this->action->id, [ 'dataProvider' => $dataProvider, 'searchModel' => $searchModel, 'cateDropDownList' => Yii::$app->services->configCate->getDropDownList() ]); } /** * 编辑/创建 * * @return mixed|string|\yii\web\Response * @throws \yii\base\ExitException */ public function actionAjaxEdit() { $id = Yii::$app->request->get('id'); $model = $this->findModel($id); // ajax 校验 $this->activeFormValidate($model); if ($model->load(Yii::$app->request->post())) { return $model->save() ? $this->redirect(Yii::$app->request->referrer) : $this->message($this->getError($model), $this->redirect(Yii::$app->request->referrer), 'error'); } return $this->renderAjax($this->action->id, [ 'model' => $model, 'configTypeList' => Yii::$app->params['configTypeList'], 'cateDropDownList' => Yii::$app->services->configCate->getDropDownList() ]); } /** * 网站设置 * * @return string */ public function actionEditAll() { return $this->render($this->action->id, [ 'cates' => Yii::$app->services->configCate->getItemsMergeListWithConfig() ]); } /** * ajax批量更新数据 * * @return array * @throws NotFoundHttpException * @throws \yii\base\InvalidConfigException */ public function actionUpdateInfo() { $request = Yii::$app->request; if ($request->isAjax) { $config = $request->post('config', []); Yii::$app->services->config->updateAll($config); return ResultDataHelper::json(200, "修改成功"); } throw new NotFoundHttpException('请求出错!'); } /** * 返回模型 * * @param $id * @return \yii\db\ActiveRecord */ protected function findModel($id) { /* @var $model \yii\db\ActiveRecord */ if (empty($id) || empty(($model = $this->modelClass::findOne($id)))) { $model = new $this->modelClass; return $model->loadDefaultValues(); } return $model; } }
26.454545
114
0.547251
e088eb42c018c041dceb22fd01d0818697948200
5,758
c
C
src/ip_knock.c
Fullaxx/authknock
ea5c80d0d08e8833564c1965ec7a1b937d191610
[ "MIT" ]
null
null
null
src/ip_knock.c
Fullaxx/authknock
ea5c80d0d08e8833564c1965ec7a1b937d191610
[ "MIT" ]
null
null
null
src/ip_knock.c
Fullaxx/authknock
ea5c80d0d08e8833564c1965ec7a1b937d191610
[ "MIT" ]
null
null
null
#define _XOPEN_SOURCE (500) #include <stdio.h> #include <stdlib.h> #include <string.h> /* Compatibility with ?really? old versions of libnet */ #ifndef uint typedef unsigned int uint; #endif #include <libnet.h> #include <sodium.h> #include "authknock.h" #include "futils.h" #include "getopts.h" static void parse_args(int argc, char **argv); char *g_dev = NULL; uint16_t g_proto = 0xFFFF; char *g_dst = NULL; char *g_pfilename = NULL; char *g_sfilename = NULL; char *g_message = NULL; static int send_rawip(libnet_t *l, uint8_t *payload, uint16_t payload_s, uint64_t src_ip, uint64_t dst_ip) { int c ; libnet_ptag_t ip_ptag; ip_ptag = libnet_build_ipv4( LIBNET_IPV4_H + payload_s, 0, /* TOS */ 242, /* IP ID */ 0, /* IP Frag */ 64, /* TTL */ g_proto, /* protocol */ 0, /* checksum */ src_ip, /* source IP */ dst_ip, /* destination IP */ payload, /* payload */ payload_s, /* payload size */ l, /* libnet handle */ 0); /* libnet id */ if(ip_ptag == -1) { fprintf(stderr, "Can't build IP header: %s\n", libnet_geterror(l)); libnet_destroy(l); exit(1); } c = libnet_write(l); if(c == -1) { fprintf(stderr, "Write error: %s\n", libnet_geterror(l)); libnet_destroy(l); exit(1); } else { fprintf(stderr, "Wrote %d byte IP packet; proto %3d\n", c, g_proto); } libnet_clear_packet(l); return 0; } int main(int argc, char *argv[]) { int i, p, err; libnet_t *l; char errbuf[LIBNET_ERRBUF_SIZE]; uint64_t src_ip, dst_ip; uint8_t nonce[NSIZE]; uint8_t plaintext[PTSIZE]; uint8_t ciphertext[CTSIZE]; unsigned char *publickey; unsigned char *secretkey; uint8_t payload[PAYLOADSIZE]; if((NSIZE+CTSIZE) > PAYLOADSIZE) { fprintf(stderr, "NSIZE + CTSIZE > PAYLOADSIZE\n"); fprintf(stderr, "%4u + %6u > %11u\n", NSIZE, CTSIZE, PAYLOADSIZE); exit(EXIT_FAILURE); } parse_args(argc, argv); publickey = (unsigned char *)get_file(g_pfilename); if(!publickey) { fprintf(stderr, "get_file(%s) failed!\n", g_pfilename); exit(EXIT_FAILURE); } secretkey = (unsigned char *)get_file(g_sfilename); if(!secretkey) { fprintf(stderr, "get_file(%s) failed!\n", g_sfilename); exit(EXIT_FAILURE); } /* * Initialize the library. Root priviledges are required. */ l = libnet_init(LIBNET_RAW4, g_dev, errbuf); if(l == NULL) { fprintf(stderr, "libnet_init() failed: %s\n", errbuf); exit(EXIT_FAILURE); } /* if(l->device) { printf("Using device %s\n", l->device); } if(libnet_getdevice(l)) { printf("Using device %s\n", libnet_getdevice(l)); } */ dst_ip = libnet_name2addr4(l, g_dst, LIBNET_RESOLVE); if(dst_ip == -1) { fprintf(stderr, "Bad destination IP address: %s\n", g_dst); exit(EXIT_FAILURE); } src_ip = libnet_get_ipaddr4(l); if(src_ip == -1) { fprintf(stderr, "Couldn't get own IP address: %s\n", libnet_geterror(l)); exit(EXIT_FAILURE); } else { printf("Using: %s\n", libnet_addr2name4(src_ip, LIBNET_DONT_RESOLVE)); } /* for(proto = 0; proto < 256; proto++) { send_rawip(l, &payload[0], payload_s, proto, src_ip, dst_ip); usleep(100000); } */ randombytes(nonce, NSIZE); randombytes(plaintext, PTSIZE); memset(ciphertext, 0, CTSIZE); snprintf((char *)plaintext, PTSIZE, "%s", g_message); err = crypto_box_easy(ciphertext, plaintext, PTSIZE, nonce, publickey, secretkey); if(err != 0) { fprintf(stderr, "crypto_box_easy() failed!\n"); } else { p = 0; for(i=0; i<NSIZE; i++) { payload[p++] = nonce[i]; } for(i=0; i<CTSIZE; i++) { payload[p++] = ciphertext[i]; } send_rawip(l, &payload[0], p, src_ip, dst_ip); } if(g_dst) { free(g_dst); } if(g_dev) { free(g_dev); } if(g_pfilename) { free(g_pfilename); } if(g_sfilename) { free(g_sfilename); } if(publickey) { free(publickey); } if(secretkey) { free(secretkey); } if(g_message) { free(g_message); } libnet_destroy(l); return 0; } struct options opts[] = { { 1, "dst", "Destination", "d", 1 }, { 2, "proto", "Protocol", "p", 1 }, { 3, "dev", "Device", "i", 1 }, { 4, "public", "Public Key", NULL, 1 }, { 5, "secret", "Secret Key", NULL, 1 }, { 6, "message", "Message", "m", 1 }, { 0, NULL, NULL, NULL, 0 } }; static void parse_args(int argc, char **argv) { char *args; int c; while ((c = getopts(argc, argv, opts, &args)) != 0) { switch(c) { case -2: /* Special Case: Recognize options that we didn't set above. */ fprintf(stderr, "Unknown Getopts Option: %s\n", args); break; case -1: /* Special Case: getopts() can't allocate memory. */ fprintf(stderr, "Unable to allocate memory for getopts().\n"); exit(EXIT_FAILURE); break; case 1: g_dst = strdup(args); break; case 2: g_proto = atoi(args); break; case 3: g_dev = strdup(args); break; case 4: g_pfilename = strdup(args); break; case 5: g_sfilename = strdup(args); break; case 6: g_message = strdup(args); break; default: fprintf(stderr, "Unexpected getopts Error! (%d)\n", c); break; } /* This free() is required since getopts() automagically allocates space for "args" everytime it's called. */ free(args); } if(!g_dst) { fprintf(stderr, "I need a destination! (Fix with -d)\n"); exit(EXIT_FAILURE); } if(g_proto > 255) { fprintf(stderr, "I need a protocol! (Fix with -p)\n"); exit(EXIT_FAILURE); } if(!g_pfilename) { fprintf(stderr, "I need a Public Key! (Fix with --public)\n"); exit(EXIT_FAILURE); } if(!g_sfilename) { fprintf(stderr, "I need a Secret Key! (Fix with --secret)\n"); exit(EXIT_FAILURE); } if(!g_message) { fprintf(stderr, "I need a message! (Fix with -m)\n"); exit(EXIT_FAILURE); } if(strlen(g_message) > PTSIZE-1) { fprintf(stderr, "Message too large!\n"); exit(EXIT_FAILURE); } }
23.406504
111
0.633901
f5c7c0338f09fa06f113bed56387adfeed17710e
494
css
CSS
user interface/css/general.css
yotammanor/hackmit-rps
0e1653de59a3c89610ca339ce11630afa73b8320
[ "MIT" ]
null
null
null
user interface/css/general.css
yotammanor/hackmit-rps
0e1653de59a3c89610ca339ce11630afa73b8320
[ "MIT" ]
null
null
null
user interface/css/general.css
yotammanor/hackmit-rps
0e1653de59a3c89610ca339ce11630afa73b8320
[ "MIT" ]
null
null
null
body{ position: relative; left: 2%; width: 96%; } #nav_row { position: relative; top: 15px; } #main_row { position: relative; top: 45px; } .main-col { position: relative; height: 150px; text-align: center; } .actions { position: absolute; width: 85%; top: 40%; } #name_of_game { text-align: center; font-family: Oxygen; font-size:120%; } #game_options { position: relative; text-align: center; top: 133px; } #start { font-size: 140%; width: 12%; color: green; }
10.73913
21
0.637652
ef62710c9293482c531efcb5c5fc6a8ee4033d57
269
h
C
Example/KBLibrary/KBAppDelegate.h
LKeBing/KBLibrary
88c9ecfca4454c137af7ce182e29c8f338ab5070
[ "MIT" ]
1
2021-07-23T03:03:54.000Z
2021-07-23T03:03:54.000Z
Example/KBLibrary/KBAppDelegate.h
LKeBing/KBLibrary
88c9ecfca4454c137af7ce182e29c8f338ab5070
[ "MIT" ]
null
null
null
Example/KBLibrary/KBAppDelegate.h
LKeBing/KBLibrary
88c9ecfca4454c137af7ce182e29c8f338ab5070
[ "MIT" ]
null
null
null
// // KBAppDelegate.h // KBLibrary // // Created by LKeBing on 07/06/2021. // Copyright (c) 2021 LKeBing. All rights reserved. // @import UIKit; @interface KBAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
16.8125
62
0.713755
495a65874fd0fa136d01f966de79ef44cd8780e7
658
sql
SQL
JobExecutionFramework/ConfigDB/etljob/Views/vw_JobExecution.sql
MS-BI/JobExceutionFramework
276fac1f0ba37cf2368c96f7d7fd0c0df8f1d2f7
[ "MIT" ]
3
2016-08-29T09:41:38.000Z
2016-11-08T15:37:44.000Z
JobExecutionFramework/ConfigDB/etljob/Views/vw_JobExecution.sql
MS-BI/JobExecutionFramework
276fac1f0ba37cf2368c96f7d7fd0c0df8f1d2f7
[ "MIT" ]
null
null
null
JobExecutionFramework/ConfigDB/etljob/Views/vw_JobExecution.sql
MS-BI/JobExecutionFramework
276fac1f0ba37cf2368c96f7d7fd0c0df8f1d2f7
[ "MIT" ]
null
null
null
 CREATE VIEW [etljob].[vw_JobExecution] AS SELECT [JobExecutionID] ,[JobID] ,[ApplicationID] ,[GroupID] ,[ClientID] ,[LayerID] ,[JobStepClusterID] ,[MetaGroupID] ,[StartTime] ,[EndTime] ,[Total] ,[Started] ,[Finished] ,[Failed] ,[Abnormal] ,[CriticalAbnormal] ,[CriticalFailed] ,[SSISExecutionID] ,[IsBlocked] ,[MasterInternalError] ,[RestartOf] ,[StopRecoveryID] ,[StoppedByStopID] ,[StopMode] ,[IsRecoveryDisabled] ,[AuditID] ,[ExcludingClusterID] ,[Label] ,[JobExecutionEndStatusID] FROM [etljob].[JobExecution]
17.315789
38
0.580547
40691adab4ea63804807a6c1c1dda7e4c067c85f
3,474
ts
TypeScript
src/ThunkTestRunner.ts
churchcommunitybuilder/redux-thunk-testing-library
b9ee3d266b37ba7c9f48c1023076d01637f0f009
[ "MIT" ]
null
null
null
src/ThunkTestRunner.ts
churchcommunitybuilder/redux-thunk-testing-library
b9ee3d266b37ba7c9f48c1023076d01637f0f009
[ "MIT" ]
5
2020-09-06T16:19:13.000Z
2022-03-07T23:16:15.000Z
src/ThunkTestRunner.ts
churchcommunitybuilder/redux-thunk-testing-library
b9ee3d266b37ba7c9f48c1023076d01637f0f009
[ "MIT" ]
null
null
null
import { mockReturnValue } from './mockReturnValue' import { Expectation, MockImplementation, MockReturns, MockReturnsOrImplementation, Thunk as DefaultThunk, } from './types' import { AnyAction, Store } from 'redux' const isMockReturns = ( mock: MockReturnsOrImplementation, ): mock is MockReturns => typeof mock !== 'function' const isMockImplementation = ( mock: MockReturnsOrImplementation, ): mock is MockImplementation => typeof mock === 'function' export class ThunkTestRunner<Thunk extends DefaultThunk, ExtraArg extends any> { private thunk: Thunk private expectations: ([Expectation<ExtraArg>, boolean])[] = [] protected isNegated = false protected store: Store protected dispatch: jest.Mock protected getState: jest.Mock protected extraArg: ExtraArg get not() { this.isNegated = true return this } constructor(thunk: Thunk, store: Store, extraArg?: ExtraArg) { this.extraArg = extraArg this.store = store this.thunk = thunk this.dispatch = jest.fn() this.getState = jest.fn(this.store.getState) } protected mockDependency< M extends MockReturns | MockImplementation, F extends jest.Mock >(mock: M, mockFn: F) { if (isMockReturns(mock)) { mockReturnValue(mockFn, mock) } else if (isMockImplementation(mock)) { mock(mockFn) } return this } protected addExpectation(expectation: Expectation<ExtraArg>) { this.expectations = [...this.expectations, [expectation, this.isNegated]] this.isNegated = false return this } withDispatch(mockDispatch: MockReturnsOrImplementation) { return this.mockDependency(mockDispatch, this.dispatch) } withActions(...actions: any) { actions.forEach(action => this.store.dispatch(action)) return this } toDispatch(...action: any[]) { return this.addExpectation(({ dispatch, isNegated }) => { if (action.length > 0) { this.getExpectation(dispatch, isNegated).toHaveBeenCalledWith(...action) } else { this.getExpectation(dispatch, isNegated).toHaveBeenCalled() } }) } toDispatchActionType(actionCreator: (...args: any[]) => AnyAction) { return this.addExpectation(({ dispatch, isNegated }) => { this.getExpectation(dispatch, isNegated).toHaveBeenCalledWith( expect.objectContaining({ type: actionCreator().type }), ) }) } toReturn(expectedOutput: any, strictEqualityCheck = false) { return this.addExpectation(({ output, isNegated }) => { const expectation = this.getExpectation(output, isNegated) if (strictEqualityCheck) { expectation.toBe(expectedOutput) } else { expectation.toEqual(expectedOutput) } }) } toMeetExpectation(expectation: Expectation<ExtraArg>) { return this.addExpectation(expectation) } protected getExpectation(value: any, isNegated = false) { const expectation = expect(value) if (isNegated) { return expectation.not } return expectation } async run() { const output = await this.thunk(this.dispatch, this.getState, this.extraArg) this.expectations.forEach(([expectation, isNegated]) => { expectation({ dispatch: this.dispatch, getState: this.getState, extraArg: this.extraArg, isNegated, output, }) }) return { dispatch: this.dispatch, state: this.getState(), extraArg: this.extraArg, } } }
25.357664
80
0.672712
af95830f1326e9be794403d0df1e6338caff21ac
1,790
py
Python
app.py
sramako/sigmaBackend
7941c915fe95c8a1efc7f357dc020def88de5910
[ "MIT" ]
null
null
null
app.py
sramako/sigmaBackend
7941c915fe95c8a1efc7f357dc020def88de5910
[ "MIT" ]
null
null
null
app.py
sramako/sigmaBackend
7941c915fe95c8a1efc7f357dc020def88de5910
[ "MIT" ]
null
null
null
import os from flask import Flask from flask import request import json from flask_cors import CORS, cross_origin import pymongo # import math import sys app = Flask(__name__) myclient = pymongo.MongoClient("mongodb://ako:[email protected]:49365/sigma") mydb = myclient['sigma'] @app.route('/') def hello(): return 'Ako: All endponts are live.' @app.route('/courses') def courses(): mycol = mydb["courses"] data = dict() count = 0 for course in mycol.find({},{'_id':0}): data[count] = course count+=1 return json.dumps(data) @app.route('/coursesize') def coursesize(): mycol = mydb["courses"] count = 0 for course in mycol.find({},{'_id':0}): count+=1 return str(count) @app.route('/coursetext') def coursetext(): index = int(request.args.get('index')) mycol = mydb["courses"] data = "<p>" count = 0 for course in mycol.find({},{'_id':0}): count+=1 if(count==index): for subject in course['subjects']: line = subject['subject']+' : '+subject['faculty'] data += line data += '<br>' data += ','.join(course['branch'])+' - '+','.join(course['standard']) data += '<br>' data += '</p>' return data @app.route('/coursename') def coursename(): index = int(request.args.get('index')) mycol = mydb["courses"] data = "" count = 0 for course in mycol.find({},{'_id':0}): count+=1 if(count==index): data += course['name'] return data if __name__ == '__main__': port = int(os.environ.get('PORT', 5000)) CORS(app, resources=r'/*') # app.config['CORS_HEADERS'] = 'Content-Type' app.run(host='0.0.0.0', port=port,debug=True) # app.run()
24.520548
86
0.574302
a4224d917b03fb08c1736531698b386a5dc3035e
13,829
asm
Assembly
ZORTON.reko/ZORTON_0E73.asm
0xLiso/dePIXELator
d74a663e5cb41a404f2b714e262ce44b668d3632
[ "MIT" ]
null
null
null
ZORTON.reko/ZORTON_0E73.asm
0xLiso/dePIXELator
d74a663e5cb41a404f2b714e262ce44b668d3632
[ "MIT" ]
null
null
null
ZORTON.reko/ZORTON_0E73.asm
0xLiso/dePIXELator
d74a663e5cb41a404f2b714e262ce44b668d3632
[ "MIT" ]
1
2021-03-10T22:29:06.000Z
2021-03-10T22:29:06.000Z
;;; Segment 0E73 (0E73:0000) 0E73:0000 83 C4 06 CB C6 06 F4 9B 01 CB C8 02 00 00 68 01 ..............h. 0E73:0010 80 1E 68 B2 0D 9A 15 36 00 08 83 C4 06 89 46 FE ..h....6......F. 0E73:0020 83 7E FE FF 75 0C 1E 68 B2 0D 9A F3 03 3F 26 83 .~..u..h.....?&. 0E73:0030 C4 04 68 00 03 B8 BA 28 8E C0 66 26 FF 36 86 A8 ..h....(..f&.6.. 0E73:0040 FF 76 FE 9A 87 3C 00 08 83 C4 08 FF 76 FE 9A 93 .v...<......v... 0E73:0050 2A 00 08 59 B8 BA 28 8E C0 66 26 A1 86 A8 BA BA *..Y..(..f&..... 0E73:0060 28 8E C2 66 26 A3 B8 A0 68 01 80 1E 68 BD 0D 9A (..f&...h...h... 0E73:0070 15 36 00 08 83 C4 06 89 46 FE 83 7E FE FF 75 0C .6......F..~..u. 0E73:0080 1E 68 BD 0D 9A F3 03 3F 26 83 C4 04 68 E4 01 B8 .h.....?&...h... 0E73:0090 BA 28 8E C0 26 A1 86 A8 05 20 03 26 FF 36 88 A8 .(..&.... .&.6.. 0E73:00A0 50 FF 76 FE 9A 87 3C 00 08 83 C4 08 FF 76 FE 9A P.v...<......v.. 0E73:00B0 93 2A 00 08 59 B8 BA 28 8E C0 26 A1 88 A8 26 8B .*..Y..(..&...&. 0E73:00C0 16 86 A8 81 C2 20 03 BB BA 28 8E C3 26 A3 AA 9F ..... ...(..&... 0E73:00D0 26 89 16 A8 9F 68 01 80 1E 68 C9 0D 9A 15 36 00 &....h...h....6. 0E73:00E0 08 83 C4 06 89 46 FE 83 7E FE FF 75 0C 1E 68 C9 .....F..~..u..h. 0E73:00F0 0D 9A F3 03 3F 26 83 C4 04 68 E4 01 B8 BA 28 8E ....?&...h....(. 0E73:0100 C0 26 A1 86 A8 05 14 05 26 FF 36 88 A8 50 FF 76 .&......&.6..P.v 0E73:0110 FE 9A 87 3C 00 08 83 C4 08 FF 76 FE 9A 93 2A 00 ...<......v...*. 0E73:0120 08 59 B8 BA 28 8E C0 26 A1 88 A8 26 8B 16 86 A8 .Y..(..&...&.... 0E73:0130 81 C2 14 05 A3 F8 9B 89 16 F6 9B C9 CB C6 06 F5 ................ 0E73:0140 9B 00 CB B8 BA 28 8E C0 26 C4 1E 30 30 66 26 8B .....(..&..00f&. 0E73:0150 47 18 66 A3 F0 9B B8 BA 28 8E C0 26 A1 30 30 05 G.f.....(..&.00. 0E73:0160 18 00 26 FF 36 32 30 50 6A E9 9A BA 00 31 23 83 ..&.620Pj....1#. 0E73:0170 C4 06 CB C8 02 00 00 C7 46 FE 00 00 EB 2E 8A 46 ........F......F 0E73:0180 FE 04 20 BA C8 03 EE 8B 5E FE 6B DB 26 80 BF CC .. .....^.k.&... 0E73:0190 09 00 74 0D BA C9 03 B0 06 EE B0 02 EE B0 00 EB ..t............. 0E73:01A0 07 BA C9 03 B0 2E EE EE EE FF 46 FE 83 7E FE 18 ..........F..~.. 0E73:01B0 72 CC C9 CB 55 8B EC 8A 46 06 04 20 BA C8 03 EE r...U...F.. .... 0E73:01C0 BA C9 03 B0 00 EE B0 39 EE EE 5D CB C8 04 00 00 .......9..]..... 0E73:01D0 C7 46 FE 02 00 C4 5E 06 26 8A 47 01 98 89 46 FC .F....^.&.G...F. 0E73:01E0 EB 05 9A A6 20 00 08 9A 90 23 00 08 0B C0 75 F2 .... ....#....u. 0E73:01F0 C4 5E 06 03 5E FE 26 80 3F 18 7D 37 0E E8 73 FF .^..^.&.?.}7..s. 0E73:0200 C4 5E 06 03 5E FE 26 8A 07 98 6B C0 26 8B D8 66 .^..^.&...k.&..f 0E73:0210 FF B7 C8 09 9A 32 06 9F 20 83 C4 04 C4 5E 06 03 .....2.. ....^.. 0E73:0220 5E FE 26 8A 07 98 66 0F BF C0 66 50 0E E8 84 FF ^.&...f...fP.... 0E73:0230 83 C4 04 B8 BA 28 8B 56 FC 8E C0 26 89 16 86 A1 .....(.V...&.... 0E73:0240 B8 BA 28 8E C0 26 83 3E 86 A1 01 7F F3 FF 46 FE ..(..&.>......F. 0E73:0250 C4 5E 06 03 5E FE 26 80 3F 00 75 8B C9 CB 55 8B .^..^.&.?.u...U. 0E73:0260 EC EB 6E 9A A6 20 00 08 9A 90 23 00 08 0B C0 75 ..n.. ....#....u 0E73:0270 F2 C4 5E 06 26 80 3F 18 7D 39 0E E8 F5 FE C4 5E ..^.&.?.}9.....^ 0E73:0280 06 26 8A 07 98 6B C0 26 8B D8 66 FF B7 C8 09 9A .&...k.&..f..... 0E73:0290 32 06 9F 20 83 C4 04 C4 5E 06 26 8A 07 98 66 0F 2.. ....^.&...f. 0E73:02A0 BF C0 66 50 0E E8 0C FF 83 C4 04 8A 46 0A 04 FF ..fP........F... 0E73:02B0 88 46 0A 8A 46 0C B4 00 BA BA 28 8E C2 26 A3 86 .F..F.....(..&.. 0E73:02C0 A1 B8 BA 28 8E C0 26 83 3E 86 A1 01 7F F3 FF 46 ...(..&.>......F 0E73:02D0 06 80 7E 0A 00 74 0E C4 5E 06 26 80 3F 00 75 88 ..~..t..^.&.?.u. 0E73:02E0 EB 03 FF 46 06 C4 5E 06 26 80 3F 18 7F F4 8B 56 ...F..^.&.?....V 0E73:02F0 08 8B 46 06 5D CB C8 02 00 00 C7 46 FE 00 00 EB ..F.]......F.... 0E73:0300 3B 8B 46 06 05 02 00 FF 76 08 50 8B 46 FE 6B C0 ;.F.....v.P.F.k. 0E73:0310 05 50 66 68 01 00 C0 00 9A 07 04 76 24 83 C4 0A .Pfh.......v$... 0E73:0320 B8 BA 28 8E C0 26 C7 06 86 A1 01 00 B8 BA 28 8E ..(..&........(. 0E73:0330 C0 26 83 3E 86 A1 00 7F F3 FF 46 FE 83 7E FE 14 .&.>......F..~.. 0E73:0340 7C BF C9 CB C8 0A 00 00 66 68 00 03 00 00 9A 38 |.......fh.....8 0E73:0350 1D 00 08 83 C4 04 89 56 FC 89 46 FA 0B C2 75 03 .......V..F...u. 0E73:0360 E9 8F 00 66 8B 46 FA 66 89 46 F6 C7 46 FE 01 00 ...f.F.f.F..F... 0E73:0370 EB 2B BA C7 03 8A 46 FE EE BA C9 03 EC C4 5E FA .+....F.......^. 0E73:0380 26 88 07 FF 46 FA EC C4 5E FA 26 88 07 FF 46 FA &...F...^.&...F. 0E73:0390 EC C4 5E FA 26 88 07 FF 46 FA FF 46 FE 81 7E FE ..^.&...F..F..~. 0E73:03A0 C1 00 7C CE C7 46 FE 13 00 EB 35 66 FF 76 F6 8B ..|..F....5f.v.. 0E73:03B0 46 FE 6B C0 05 50 66 68 01 00 C0 00 9A 07 04 76 F.k..Pfh.......v 0E73:03C0 24 83 C4 0A B8 BA 28 8E C0 26 C7 06 86 A1 01 00 $.....(..&...... 0E73:03D0 B8 BA 28 8E C0 26 83 3E 86 A1 00 7F F3 FF 4E FE ..(..&.>......N. 0E73:03E0 83 7E FE 00 75 C5 66 FF 76 F6 9A 24 1C 00 08 83 .~..u.f.v..$.... 0E73:03F0 C4 04 C9 CB C8 6C 00 00 8D 46 C6 16 50 1E 68 70 .....l...F..P.hp 0E73:0400 0D B9 21 00 9A F4 03 00 08 8D 46 A4 16 50 1E 68 ..!.......F..P.h 0E73:0410 91 0D B9 21 00 9A F4 03 00 08 FA 9A E8 01 25 24 ...!..........%$ 0E73:0420 FB 9A 67 01 31 23 0B C2 75 F7 B8 BA 28 8E C0 66 ..g.1#..u...(..f 0E73:0430 26 C7 06 2C 30 00 00 00 00 B8 62 28 8E C0 26 80 &..,0.....b(..&. 0E73:0440 0E 00 00 20 0E E8 2B FD B8 BA 28 8E C0 26 C6 06 ... ..+...(..&.. 0E73:0450 E3 9F 00 9A 82 02 76 24 66 68 2C 01 8C 00 9A 65 ......v$fh,....e 0E73:0460 1A 10 1D 83 C4 04 16 8D 46 A4 50 9A 68 1B 10 1D ........F.P.h... 0E73:0470 83 C4 04 16 8D 46 C6 50 9A AE 02 10 1D 83 C4 04 .....F.P........ 0E73:0480 9A 88 1A 10 1D 8C 5E F8 C7 46 F6 37 0D B8 BA 28 ......^..F.7...( 0E73:0490 B2 00 8E C0 26 88 16 E3 9F 8A C2 BA BA 28 8E C2 ....&........(.. 0E73:04A0 26 A2 0C A1 BA BA 28 8E C2 26 A2 1E 2F B8 BA 28 &.....(..&../..( 0E73:04B0 8E C0 66 26 83 3E 82 A8 00 74 10 8E C0 66 26 FF ..f&.>...t...f&. 0E73:04C0 36 82 A8 9A 24 1C 00 08 83 C4 04 66 68 B8 0B 00 6...$......fh... 0E73:04D0 00 9A 38 1D 00 08 83 C4 04 BB BA 28 8E C3 26 89 ..8........(..&. 0E73:04E0 16 88 A8 26 A3 86 A8 0B C2 75 12 66 68 B8 0B 00 ...&.....u.fh... 0E73:04F0 00 1E 68 D4 0D 9A 3F 04 3F 26 83 C4 08 0E E8 09 ..h...?.?&...... 0E73:0500 FB B8 BA 28 8E C0 26 C6 06 E7 82 01 C7 46 FE 00 ...(..&......F.. 0E73:0510 00 E9 21 01 8B 46 FE 6B C0 26 05 A7 09 1E 50 9A ..!..F.k.&....P. 0E73:0520 E3 02 9F 20 83 C4 04 8B 5E FE 6B DB 26 89 97 CA ... ....^.k.&... 0E73:0530 09 89 87 C8 09 8B 5E FE 6B DB 26 8B 87 C8 09 0B ......^.k.&..... 0E73:0540 87 CA 09 74 03 E9 EA 00 9A 62 03 76 24 1E 68 26 ...t.....b.v$.h& 0E73:0550 06 1E 68 DA 0D 9A A2 05 80 0C 83 C4 08 C7 46 FA ..h...........F. 0E73:0560 00 00 EB 2D 8B 5E FA 6B DB 26 C4 9F C8 09 66 26 ...-.^.k.&....f& 0E73:0570 FF 77 02 9A 24 1C 00 08 83 C4 04 8B 5E FA 6B DB .w..$.......^.k. 0E73:0580 26 66 FF B7 C8 09 9A 24 1C 00 08 83 C4 04 FF 46 &f.....$.......F 0E73:0590 FA 8B 46 FA 3B 46 FE 72 CB FA 9A E8 01 25 24 FB ..F.;F.r.....%$. 0E73:05A0 B8 BA 28 8E C0 26 8C 1E 2E 30 26 C7 06 2C 30 87 ..(..&...0&..,0. 0E73:05B0 09 C6 06 F4 9B 00 FA 9A 86 02 25 24 FB A0 F4 9B ..........%$.... 0E73:05C0 98 0B C0 74 F8 B8 62 28 8E C0 26 80 26 00 00 DF ...t..b(..&.&... 0E73:05D0 B8 BA 28 8E C0 26 C6 06 E7 82 00 66 6A 00 6A 05 ..(..&.....fj.j. 0E73:05E0 9A BA 00 31 23 83 C4 06 B8 BA 28 8E C0 66 26 FF ...1#.....(..f&. 0E73:05F0 36 86 A8 9A 24 1C 00 08 83 C4 04 66 68 E8 FD 00 6...$......fh... 0E73:0600 00 9A 38 1D 00 08 83 C4 04 BB BA 28 8E C3 26 89 ..8........(..&. 0E73:0610 16 84 A8 26 A3 82 A8 0B C2 75 12 66 68 E8 FD 00 ...&.....u.fh... 0E73:0620 00 1E 68 E5 0D 9A 3F 04 3F 26 83 C4 08 33 C0 E9 ..h...?.?&...3.. 0E73:0630 39 05 FF 46 FE 83 7E FE 18 73 03 E9 D6 FE B8 BA 9..F..~..s...... 0E73:0640 28 8E C0 26 C6 06 E7 82 00 BA DA 03 EC B4 00 A9 (..&............ 0E73:0650 08 00 74 F5 0E E8 EC FC 1E 68 F2 0D 66 68 0A 00 ..t......h..fh.. 0E73:0660 0A 00 9A 30 06 76 24 83 C4 08 6A 01 1E 68 FC 0D ...0.v$...j..h.. 0E73:0670 9A D2 08 9F 20 83 C4 06 B8 BA 28 8E C0 66 26 FF .... .....(..f&. 0E73:0680 36 B8 A0 0E E8 6F FC 83 C4 04 66 6A 00 6A 01 1E 6....o....fj.j.. 0E73:0690 68 67 09 6A 00 6A 00 6A 01 6A 00 6A 01 9A 04 00 hg.j.j.j.j.j.... 0E73:06A0 53 23 83 C4 14 6A 01 1E 68 09 0E 9A D2 08 9F 20 S#...j..h...... 0E73:06B0 83 C4 06 66 FF 76 F6 0E E8 11 FB 83 C4 04 8B 46 ...f.v.........F 0E73:06C0 F8 8B 56 F6 83 C2 02 89 46 F4 89 56 F2 66 8B 46 ..V.....F..V.f.F 0E73:06D0 F6 66 89 46 EE C7 46 FC 00 00 B8 BA 28 8E C0 26 .f.F..F.....(..& 0E73:06E0 80 3E 22 A4 01 74 F3 0E E8 88 FA FA 9A 86 02 25 .>"..t.........% 0E73:06F0 24 FB C6 06 F5 9B 01 9A 67 01 31 23 0B C2 75 F7 $.......g.1#..u. 0E73:0700 A0 F5 9B 98 0B C0 74 03 E9 B4 00 8B 46 EE 3B 46 ......t.....F.;F 0E73:0710 F2 72 05 C7 46 FC 00 00 83 7E FC 00 75 6C B8 BA .r..F....~..ul.. 0E73:0720 28 8E C0 26 80 3E 22 A4 01 74 F3 6A 01 1E 68 16 (..&.>"..t.j..h. 0E73:0730 0E 9A D2 08 9F 20 83 C4 06 66 8B 46 F2 66 89 46 ..... ...f.F.f.F 0E73:0740 EE C4 5E F6 26 8A 47 01 98 6B C0 03 50 26 8A 07 ..^.&.G..k..P&.. 0E73:0750 50 66 FF 76 F2 0E E8 05 FB 83 C4 08 89 56 F4 89 Pf.v.........V.. 0E73:0760 46 F2 C7 46 FC 01 00 9A 67 01 31 23 0B C2 75 F7 F..F....g.1#..u. 0E73:0770 6A 01 1E 68 21 0E 9A D2 08 9F 20 83 C4 06 B8 BA j..h!..... ..... 0E73:0780 28 8E C0 26 C7 06 88 A1 2C 01 83 7E FC 00 74 2F (..&....,..~..t/ 0E73:0790 B8 BA 28 8E C0 26 83 3E 88 A1 01 7D 22 6A 01 1E ..(..&.>...}"j.. 0E73:07A0 68 2C 0E 9A D2 08 9F 20 83 C4 06 8B 46 F8 8B 56 h,..... ....F..V 0E73:07B0 F6 83 C2 02 89 46 F4 89 56 F2 C7 46 FC 00 00 B8 .....F..V..F.... 0E73:07C0 BA 28 8E C0 26 83 3E 86 A1 01 7D 0D 8E C0 26 C7 .(..&.>...}...&. 0E73:07D0 06 86 A1 00 7D 0E E8 9A F9 9A 67 01 31 23 BB BA ....}.....g.1#.. 0E73:07E0 28 8E C3 26 89 16 0A A1 26 A3 08 A1 B8 BA 28 8E (..&....&.....(. 0E73:07F0 C0 66 26 83 3E 08 A1 00 75 03 E9 57 02 FA 9A E8 .f&.>...u..W.... 0E73:0800 01 25 24 FB B8 BA 28 8E C0 26 C4 1E 08 A1 26 8A .%$...(..&....&. 0E73:0810 07 B4 00 89 46 E8 B9 05 00 BB 6D 0B 2E 8B 07 3B ....F.....m....; 0E73:0820 46 E8 74 08 83 C3 02 E2 F3 E9 21 02 2E FF 67 0A F.t.......!...g. 0E73:0830 66 68 25 00 58 00 66 68 25 00 40 00 66 68 46 00 fh%.X.fh%[email protected]. 0E73:0840 14 00 1E 68 36 0E 9A A3 00 31 0E 83 C4 10 0B C0 ...h6....1...... 0E73:0850 74 16 B8 BA 28 8E C0 26 C6 06 1E 2F 01 B8 BA 28 t...(..&.../...( 0E73:0860 8E C0 26 C6 06 0C A1 01 66 6A 00 6A 01 1E 68 67 ..&.....fj.j..hg 0E73:0870 09 6A 00 6A 00 6A 01 6A 00 6A 01 9A 04 00 53 23 .j.j.j.j.j....S# 0E73:0880 83 C4 14 E9 C7 01 B8 BA 28 8E C0 26 C6 06 1E 2F ........(..&.../ 0E73:0890 00 E9 B9 01 0E E8 DB F8 A0 F0 9B B4 00 6B C0 26 .............k.& 0E73:08A0 8B D8 66 FF B7 C8 09 9A 32 06 9F 20 83 C4 04 66 ..f.....2.. ...f 0E73:08B0 FF 36 F0 9B 0E E8 FC F8 83 C4 04 B8 BA 28 8E C0 .6...........(.. 0E73:08C0 26 C7 06 86 A1 28 00 B8 BA 28 8E C0 26 C7 06 88 &....(...(..&... 0E73:08D0 A1 2C 01 FA 9A E8 01 25 24 FB B8 BA 28 8E C0 26 .,.....%$...(..& 0E73:08E0 A1 24 A5 D1 E0 89 46 EC B8 BA 28 8E C0 26 A1 26 .$....F...(..&.& 0E73:08F0 A5 89 46 EA B8 BA 28 8E C0 66 26 FF 36 80 AA 68 ..F...(..f&.6..h 0E73:0900 64 28 68 88 00 B8 BA 28 8E C0 66 26 FF 36 A8 9F d(h....(..f&.6.. 0E73:0910 FF 76 EA 8B 46 EC D1 F8 50 9A 38 01 6E 21 83 C4 .v..F...P.8.n!.. 0E73:0920 10 B8 BA 28 8E C0 66 26 FF 36 80 AA 68 64 28 68 ...(..f&.6..hd(h 0E73:0930 88 00 FF 76 EA 8B 46 EC D1 F8 50 9A 00 00 6E 21 ...v..F...P...n! 0E73:0940 83 C4 0C B8 BA 28 8E C0 66 26 FF 36 80 AA 66 FF .....(..f&.6..f. 0E73:0950 36 F6 9B FF 76 EA 8B 46 EC D1 F8 50 9A DC 01 6E 6...v..F...P...n 0E73:0960 21 83 C4 0C B8 BA 28 8E C0 26 C7 06 84 A1 05 00 !.....(..&...... 0E73:0970 B8 BA 28 8E C0 26 83 3E 84 A1 00 7F F3 B8 BA 28 ..(..&.>.......( 0E73:0980 8E C0 66 26 FF 36 80 AA 68 64 28 68 88 00 FF 76 ..f&.6..hd(h...v 0E73:0990 EA 8B 46 EC D1 F8 50 9A 00 00 6E 21 83 C4 0C B8 ..F...P...n!.... 0E73:09A0 64 28 8E C0 26 C7 06 88 00 00 00 C7 46 94 04 00 d(..&.......F... 0E73:09B0 8B 46 EC 89 46 98 8B 46 EA 89 46 9A 16 8D 46 94 .F..F..F..F...F. 0E73:09C0 50 16 50 6A 33 9A F9 21 00 08 83 C4 0A FA 9A 86 P.Pj3..!........ 0E73:09D0 02 25 24 FB 80 3E F5 9B 00 75 72 C4 5E EE 66 26 .%$..>...ur.^.f& 0E73:09E0 0F BE 07 66 3B 06 F0 9B 74 35 B8 BA 28 8E C0 26 ...f;...t5..(..& 0E73:09F0 80 3E 22 A4 01 74 F3 6A 01 1E 68 2C 0E 9A D2 08 .>"..t.j..h,.... 0E73:0A00 9F 20 83 C4 06 0E E8 6A F7 8B 46 F8 8B 56 F6 83 . .....j..F..V.. 0E73:0A10 C2 02 89 46 F4 89 56 F2 C7 46 FC 00 00 EB 2E FF ...F..V..F...... 0E73:0A20 46 EE C4 5E EE 26 80 3F 00 75 0B B8 BA 28 8E C0 F..^.&.?.u...(.. 0E73:0A30 26 C6 06 E3 9F 01 B8 BA 28 8E C0 26 A0 E3 9F 98 &.......(..&.... 0E73:0A40 0B C0 75 09 C4 5E EE 26 80 3F 18 7F D2 FA 9A 86 ..u..^.&.?...... 0E73:0A50 02 25 24 FB B8 BA 28 8E C0 26 A0 1E 2F B4 00 0B .%$...(..&../... 0E73:0A60 C0 75 11 B8 BA 28 8E C0 26 A0 E3 9F 98 0B C0 75 .u...(..&......u 0E73:0A70 03 E9 8C FC B8 BA 28 8E C0 26 A0 0C A1 B4 00 0B ......(..&...... 0E73:0A80 C0 75 11 B8 BA 28 8E C0 26 A0 E3 9F 98 0B C0 75 .u...(..&......u 0E73:0A90 03 E9 1F FC B8 BA 28 8E C0 26 80 3E E3 9F 00 74 ......(..&.>...t 0E73:0AA0 05 9A 0F 00 94 10 FA 9A E8 01 25 24 B8 BA 28 8E ..........%$..(. 0E73:0AB0 C0 66 26 C7 06 2C 30 00 00 00 00 FB 9A 67 01 31 .f&..,0......g.1 0E73:0AC0 23 0B C2 75 F7 66 6A 00 6A 05 9A BA 00 31 23 83 #..u.fj.j....1#. 0E73:0AD0 C4 06 9A 62 03 76 24 C7 46 FE 00 00 EB 2D 8B 5E ...b.v$.F....-.^ 0E73:0AE0 FE 6B DB 26 C4 9F C8 09 66 26 FF 77 02 9A 24 1C .k.&....f&.w..$. 0E73:0AF0 00 08 83 C4 04 8B 5E FE 6B DB 26 66 FF B7 C8 09 ......^.k.&f.... 0E73:0B00 9A 24 1C 00 08 83 C4 04 FF 46 FE 83 7E FE 18 72 .$.......F..~..r 0E73:0B10 CD B8 62 28 8E C0 26 80 26 00 00 DF B8 BA 28 8E ..b(..&.&.....(. 0E73:0B20 C0 66 26 FF 36 86 A8 9A 24 1C 00 08 83 C4 04 66 .f&.6...$......f 0E73:0B30 68 E8 FD 00 00 9A 38 1D 00 08 83 C4 04 BB BA 28 h.....8........( 0E73:0B40 8E C3 26 89 16 84 A8 26 A3 82 A8 0B C2 75 12 66 ..&....&.....u.f 0E73:0B50 68 E8 FD 00 00 1E 68 E5 0D 9A 3F 04 3F 26 83 C4 h.....h...?.?&.. 0E73:0B60 08 B8 BA 28 8E C0 26 A0 E3 9F 98 C9 CB 03 00 04 ...(..&......... 0E73:0B70 00 05 00 10 00 E9 00 30 08 86 08 30 08 86 08 94 .......0...0....
74.349462
74
0.564755
23b608cd9657889504adbe85545a391b22113f0d
218
js
JavaScript
src/config.js
uniibu/apidump
60c94e1ec7b4e5a13f8315aa80b78252472c168b
[ "MIT" ]
1
2020-08-06T22:16:46.000Z
2020-08-06T22:16:46.000Z
src/config.js
uniibu/apidump
60c94e1ec7b4e5a13f8315aa80b78252472c168b
[ "MIT" ]
1
2018-10-05T20:50:15.000Z
2018-10-05T20:50:15.000Z
src/config.js
uniibu/apidump
60c94e1ec7b4e5a13f8315aa80b78252472c168b
[ "MIT" ]
null
null
null
exports.NODE_ENV = process.env.NODE_ENV || 'development'; exports.PORT = Number.parseInt(process.env.PORT, 10) || 3010; exports.TRUST_PROXY = process.env.TRUST_PROXY === 'true'; exports.URL = `${process.env.URL}/api`;
43.6
61
0.724771
eb4d9f822a4d9daf57aaace2bb091c5d4b8bbd2d
90,359
css
CSS
dist/static/css/app.77949f7170ceeae1dc94679c81b0758d.css
maxleaver/haiku-ninja-frontend
6597cddbc8a3b8df4dcce647d0b6621baecc4b75
[ "MIT" ]
null
null
null
dist/static/css/app.77949f7170ceeae1dc94679c81b0758d.css
maxleaver/haiku-ninja-frontend
6597cddbc8a3b8df4dcce647d0b6621baecc4b75
[ "MIT" ]
null
null
null
dist/static/css/app.77949f7170ceeae1dc94679c81b0758d.css
maxleaver/haiku-ninja-frontend
6597cddbc8a3b8df4dcce647d0b6621baecc4b75
[ "MIT" ]
null
null
null
@import url(https://fonts.googleapis.com/css?family=Lato:300,700);/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ html { font-family: sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; } body { margin: 0; } article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block; } audio, canvas, progress, video { display: inline-block; vertical-align: baseline; } audio:not([controls]) { display: none; height: 0; } [hidden], template { display: none; } a { background-color: transparent; } a:active, a:hover { outline: 0; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } h1 { font-size: 2em; margin: 0.67em 0; } mark { background: #ff0; color: #000; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 1em 40px; } hr { box-sizing: content-box; height: 0; } pre { overflow: auto; } code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; } button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0; } button { overflow: visible; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } button[disabled], html input[disabled] { cursor: default; } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } input { line-height: normal; } input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; } input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; } input[type="search"] { -webkit-appearance: textfield; box-sizing: content-box; } input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } legend { border: 0; padding: 0; } textarea { overflow: auto; } optgroup { font-weight: bold; } table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; } /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ @media print { *, *:before, *:after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } a[href^="#"]:after, a[href^="javascript:"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } .navbar { display: none; } .btn > .caret, .dropup > .btn > .caret { border-top-color: #000 !important; } .label { border: 1px solid #000; } .table { border-collapse: collapse !important; } .table td, .table th { background-color: #fff !important; } .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; } } @font-face { font-family: 'Glyphicons Halflings'; src: url(/static/fonts/glyphicons-halflings-regular.f4769f9.eot); src: url(/static/fonts/glyphicons-halflings-regular.f4769f9.eot?#iefix) format("embedded-opentype"), url(/static/fonts/glyphicons-halflings-regular.448c34a.woff2) format("woff2"), url(/static/fonts/glyphicons-halflings-regular.fa27723.woff) format("woff"), url(/static/fonts/glyphicons-halflings-regular.e18bbf6.ttf) format("truetype"), url(/static/img/glyphicons-halflings-regular.8988968.svg#glyphicons_halflingsregular) format("svg"); } .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .glyphicon-asterisk:before { content: "*"; } .glyphicon-plus:before { content: "+"; } .glyphicon-euro:before, .glyphicon-eur:before { content: "\20AC"; } .glyphicon-minus:before { content: "\2212"; } .glyphicon-cloud:before { content: "\2601"; } .glyphicon-envelope:before { content: "\2709"; } .glyphicon-pencil:before { content: "\270F"; } .glyphicon-glass:before { content: "\E001"; } .glyphicon-music:before { content: "\E002"; } .glyphicon-search:before { content: "\E003"; } .glyphicon-heart:before { content: "\E005"; } .glyphicon-star:before { content: "\E006"; } .glyphicon-star-empty:before { content: "\E007"; } .glyphicon-user:before { content: "\E008"; } .glyphicon-film:before { content: "\E009"; } .glyphicon-th-large:before { content: "\E010"; } .glyphicon-th:before { content: "\E011"; } .glyphicon-th-list:before { content: "\E012"; } .glyphicon-ok:before { content: "\E013"; } .glyphicon-remove:before { content: "\E014"; } .glyphicon-zoom-in:before { content: "\E015"; } .glyphicon-zoom-out:before { content: "\E016"; } .glyphicon-off:before { content: "\E017"; } .glyphicon-signal:before { content: "\E018"; } .glyphicon-cog:before { content: "\E019"; } .glyphicon-trash:before { content: "\E020"; } .glyphicon-home:before { content: "\E021"; } .glyphicon-file:before { content: "\E022"; } .glyphicon-time:before { content: "\E023"; } .glyphicon-road:before { content: "\E024"; } .glyphicon-download-alt:before { content: "\E025"; } .glyphicon-download:before { content: "\E026"; } .glyphicon-upload:before { content: "\E027"; } .glyphicon-inbox:before { content: "\E028"; } .glyphicon-play-circle:before { content: "\E029"; } .glyphicon-repeat:before { content: "\E030"; } .glyphicon-refresh:before { content: "\E031"; } .glyphicon-list-alt:before { content: "\E032"; } .glyphicon-lock:before { content: "\E033"; } .glyphicon-flag:before { content: "\E034"; } .glyphicon-headphones:before { content: "\E035"; } .glyphicon-volume-off:before { content: "\E036"; } .glyphicon-volume-down:before { content: "\E037"; } .glyphicon-volume-up:before { content: "\E038"; } .glyphicon-qrcode:before { content: "\E039"; } .glyphicon-barcode:before { content: "\E040"; } .glyphicon-tag:before { content: "\E041"; } .glyphicon-tags:before { content: "\E042"; } .glyphicon-book:before { content: "\E043"; } .glyphicon-bookmark:before { content: "\E044"; } .glyphicon-print:before { content: "\E045"; } .glyphicon-camera:before { content: "\E046"; } .glyphicon-font:before { content: "\E047"; } .glyphicon-bold:before { content: "\E048"; } .glyphicon-italic:before { content: "\E049"; } .glyphicon-text-height:before { content: "\E050"; } .glyphicon-text-width:before { content: "\E051"; } .glyphicon-align-left:before { content: "\E052"; } .glyphicon-align-center:before { content: "\E053"; } .glyphicon-align-right:before { content: "\E054"; } .glyphicon-align-justify:before { content: "\E055"; } .glyphicon-list:before { content: "\E056"; } .glyphicon-indent-left:before { content: "\E057"; } .glyphicon-indent-right:before { content: "\E058"; } .glyphicon-facetime-video:before { content: "\E059"; } .glyphicon-picture:before { content: "\E060"; } .glyphicon-map-marker:before { content: "\E062"; } .glyphicon-adjust:before { content: "\E063"; } .glyphicon-tint:before { content: "\E064"; } .glyphicon-edit:before { content: "\E065"; } .glyphicon-share:before { content: "\E066"; } .glyphicon-check:before { content: "\E067"; } .glyphicon-move:before { content: "\E068"; } .glyphicon-step-backward:before { content: "\E069"; } .glyphicon-fast-backward:before { content: "\E070"; } .glyphicon-backward:before { content: "\E071"; } .glyphicon-play:before { content: "\E072"; } .glyphicon-pause:before { content: "\E073"; } .glyphicon-stop:before { content: "\E074"; } .glyphicon-forward:before { content: "\E075"; } .glyphicon-fast-forward:before { content: "\E076"; } .glyphicon-step-forward:before { content: "\E077"; } .glyphicon-eject:before { content: "\E078"; } .glyphicon-chevron-left:before { content: "\E079"; } .glyphicon-chevron-right:before { content: "\E080"; } .glyphicon-plus-sign:before { content: "\E081"; } .glyphicon-minus-sign:before { content: "\E082"; } .glyphicon-remove-sign:before { content: "\E083"; } .glyphicon-ok-sign:before { content: "\E084"; } .glyphicon-question-sign:before { content: "\E085"; } .glyphicon-info-sign:before { content: "\E086"; } .glyphicon-screenshot:before { content: "\E087"; } .glyphicon-remove-circle:before { content: "\E088"; } .glyphicon-ok-circle:before { content: "\E089"; } .glyphicon-ban-circle:before { content: "\E090"; } .glyphicon-arrow-left:before { content: "\E091"; } .glyphicon-arrow-right:before { content: "\E092"; } .glyphicon-arrow-up:before { content: "\E093"; } .glyphicon-arrow-down:before { content: "\E094"; } .glyphicon-share-alt:before { content: "\E095"; } .glyphicon-resize-full:before { content: "\E096"; } .glyphicon-resize-small:before { content: "\E097"; } .glyphicon-exclamation-sign:before { content: "\E101"; } .glyphicon-gift:before { content: "\E102"; } .glyphicon-leaf:before { content: "\E103"; } .glyphicon-fire:before { content: "\E104"; } .glyphicon-eye-open:before { content: "\E105"; } .glyphicon-eye-close:before { content: "\E106"; } .glyphicon-warning-sign:before { content: "\E107"; } .glyphicon-plane:before { content: "\E108"; } .glyphicon-calendar:before { content: "\E109"; } .glyphicon-random:before { content: "\E110"; } .glyphicon-comment:before { content: "\E111"; } .glyphicon-magnet:before { content: "\E112"; } .glyphicon-chevron-up:before { content: "\E113"; } .glyphicon-chevron-down:before { content: "\E114"; } .glyphicon-retweet:before { content: "\E115"; } .glyphicon-shopping-cart:before { content: "\E116"; } .glyphicon-folder-close:before { content: "\E117"; } .glyphicon-folder-open:before { content: "\E118"; } .glyphicon-resize-vertical:before { content: "\E119"; } .glyphicon-resize-horizontal:before { content: "\E120"; } .glyphicon-hdd:before { content: "\E121"; } .glyphicon-bullhorn:before { content: "\E122"; } .glyphicon-bell:before { content: "\E123"; } .glyphicon-certificate:before { content: "\E124"; } .glyphicon-thumbs-up:before { content: "\E125"; } .glyphicon-thumbs-down:before { content: "\E126"; } .glyphicon-hand-right:before { content: "\E127"; } .glyphicon-hand-left:before { content: "\E128"; } .glyphicon-hand-up:before { content: "\E129"; } .glyphicon-hand-down:before { content: "\E130"; } .glyphicon-circle-arrow-right:before { content: "\E131"; } .glyphicon-circle-arrow-left:before { content: "\E132"; } .glyphicon-circle-arrow-up:before { content: "\E133"; } .glyphicon-circle-arrow-down:before { content: "\E134"; } .glyphicon-globe:before { content: "\E135"; } .glyphicon-wrench:before { content: "\E136"; } .glyphicon-tasks:before { content: "\E137"; } .glyphicon-filter:before { content: "\E138"; } .glyphicon-briefcase:before { content: "\E139"; } .glyphicon-fullscreen:before { content: "\E140"; } .glyphicon-dashboard:before { content: "\E141"; } .glyphicon-paperclip:before { content: "\E142"; } .glyphicon-heart-empty:before { content: "\E143"; } .glyphicon-link:before { content: "\E144"; } .glyphicon-phone:before { content: "\E145"; } .glyphicon-pushpin:before { content: "\E146"; } .glyphicon-usd:before { content: "\E148"; } .glyphicon-gbp:before { content: "\E149"; } .glyphicon-sort:before { content: "\E150"; } .glyphicon-sort-by-alphabet:before { content: "\E151"; } .glyphicon-sort-by-alphabet-alt:before { content: "\E152"; } .glyphicon-sort-by-order:before { content: "\E153"; } .glyphicon-sort-by-order-alt:before { content: "\E154"; } .glyphicon-sort-by-attributes:before { content: "\E155"; } .glyphicon-sort-by-attributes-alt:before { content: "\E156"; } .glyphicon-unchecked:before { content: "\E157"; } .glyphicon-expand:before { content: "\E158"; } .glyphicon-collapse-down:before { content: "\E159"; } .glyphicon-collapse-up:before { content: "\E160"; } .glyphicon-log-in:before { content: "\E161"; } .glyphicon-flash:before { content: "\E162"; } .glyphicon-log-out:before { content: "\E163"; } .glyphicon-new-window:before { content: "\E164"; } .glyphicon-record:before { content: "\E165"; } .glyphicon-save:before { content: "\E166"; } .glyphicon-open:before { content: "\E167"; } .glyphicon-saved:before { content: "\E168"; } .glyphicon-import:before { content: "\E169"; } .glyphicon-export:before { content: "\E170"; } .glyphicon-send:before { content: "\E171"; } .glyphicon-floppy-disk:before { content: "\E172"; } .glyphicon-floppy-saved:before { content: "\E173"; } .glyphicon-floppy-remove:before { content: "\E174"; } .glyphicon-floppy-save:before { content: "\E175"; } .glyphicon-floppy-open:before { content: "\E176"; } .glyphicon-credit-card:before { content: "\E177"; } .glyphicon-transfer:before { content: "\E178"; } .glyphicon-cutlery:before { content: "\E179"; } .glyphicon-header:before { content: "\E180"; } .glyphicon-compressed:before { content: "\E181"; } .glyphicon-earphone:before { content: "\E182"; } .glyphicon-phone-alt:before { content: "\E183"; } .glyphicon-tower:before { content: "\E184"; } .glyphicon-stats:before { content: "\E185"; } .glyphicon-sd-video:before { content: "\E186"; } .glyphicon-hd-video:before { content: "\E187"; } .glyphicon-subtitles:before { content: "\E188"; } .glyphicon-sound-stereo:before { content: "\E189"; } .glyphicon-sound-dolby:before { content: "\E190"; } .glyphicon-sound-5-1:before { content: "\E191"; } .glyphicon-sound-6-1:before { content: "\E192"; } .glyphicon-sound-7-1:before { content: "\E193"; } .glyphicon-copyright-mark:before { content: "\E194"; } .glyphicon-registration-mark:before { content: "\E195"; } .glyphicon-cloud-download:before { content: "\E197"; } .glyphicon-cloud-upload:before { content: "\E198"; } .glyphicon-tree-conifer:before { content: "\E199"; } .glyphicon-tree-deciduous:before { content: "\E200"; } .glyphicon-cd:before { content: "\E201"; } .glyphicon-save-file:before { content: "\E202"; } .glyphicon-open-file:before { content: "\E203"; } .glyphicon-level-up:before { content: "\E204"; } .glyphicon-copy:before { content: "\E205"; } .glyphicon-paste:before { content: "\E206"; } .glyphicon-alert:before { content: "\E209"; } .glyphicon-equalizer:before { content: "\E210"; } .glyphicon-king:before { content: "\E211"; } .glyphicon-queen:before { content: "\E212"; } .glyphicon-pawn:before { content: "\E213"; } .glyphicon-bishop:before { content: "\E214"; } .glyphicon-knight:before { content: "\E215"; } .glyphicon-baby-formula:before { content: "\E216"; } .glyphicon-tent:before { content: "\26FA"; } .glyphicon-blackboard:before { content: "\E218"; } .glyphicon-bed:before { content: "\E219"; } .glyphicon-apple:before { content: "\F8FF"; } .glyphicon-erase:before { content: "\E221"; } .glyphicon-hourglass:before { content: "\231B"; } .glyphicon-lamp:before { content: "\E223"; } .glyphicon-duplicate:before { content: "\E224"; } .glyphicon-piggy-bank:before { content: "\E225"; } .glyphicon-scissors:before { content: "\E226"; } .glyphicon-bitcoin:before { content: "\E227"; } .glyphicon-btc:before { content: "\E227"; } .glyphicon-xbt:before { content: "\E227"; } .glyphicon-yen:before { content: "\A5"; } .glyphicon-jpy:before { content: "\A5"; } .glyphicon-ruble:before { content: "\20BD"; } .glyphicon-rub:before { content: "\20BD"; } .glyphicon-scale:before { content: "\E230"; } .glyphicon-ice-lolly:before { content: "\E231"; } .glyphicon-ice-lolly-tasted:before { content: "\E232"; } .glyphicon-education:before { content: "\E233"; } .glyphicon-option-horizontal:before { content: "\E234"; } .glyphicon-option-vertical:before { content: "\E235"; } .glyphicon-menu-hamburger:before { content: "\E236"; } .glyphicon-modal-window:before { content: "\E237"; } .glyphicon-oil:before { content: "\E238"; } .glyphicon-grain:before { content: "\E239"; } .glyphicon-sunglasses:before { content: "\E240"; } .glyphicon-text-size:before { content: "\E241"; } .glyphicon-text-color:before { content: "\E242"; } .glyphicon-text-background:before { content: "\E243"; } .glyphicon-object-align-top:before { content: "\E244"; } .glyphicon-object-align-bottom:before { content: "\E245"; } .glyphicon-object-align-horizontal:before { content: "\E246"; } .glyphicon-object-align-left:before { content: "\E247"; } .glyphicon-object-align-vertical:before { content: "\E248"; } .glyphicon-object-align-right:before { content: "\E249"; } .glyphicon-triangle-right:before { content: "\E250"; } .glyphicon-triangle-left:before { content: "\E251"; } .glyphicon-triangle-bottom:before { content: "\E252"; } .glyphicon-triangle-top:before { content: "\E253"; } .glyphicon-console:before { content: "\E254"; } .glyphicon-superscript:before { content: "\E255"; } .glyphicon-subscript:before { content: "\E256"; } .glyphicon-menu-left:before { content: "\E257"; } .glyphicon-menu-right:before { content: "\E258"; } .glyphicon-menu-down:before { content: "\E259"; } .glyphicon-menu-up:before { content: "\E260"; } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 10px; -webkit-tap-highlight-color: transparent; } body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.42857; color: #333333; background-color: #fff; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } a { color: #337ab7; text-decoration: none; } a:hover, a:focus { color: #23527c; text-decoration: underline; } a:focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } figure { margin: 0; } img { vertical-align: middle; } .img-responsive { display: block; max-width: 100%; height: auto; } .img-rounded { border-radius: 6px; } .img-thumbnail { padding: 4px; line-height: 1.42857; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; display: inline-block; max-width: 100%; height: auto; } .img-circle { border-radius: 50%; } hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eeeeee; } .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; 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; } [role="button"] { cursor: pointer; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit; } h1 small, h1 .small, h2 small, h2 .small, h3 small, h3 .small, h4 small, h4 .small, h5 small, h5 .small, h6 small, h6 .small, .h1 small, .h1 .small, .h2 small, .h2 .small, .h3 small, .h3 .small, .h4 small, .h4 .small, .h5 small, .h5 .small, .h6 small, .h6 .small { font-weight: normal; line-height: 1; color: #777777; } h1, .h1, h2, .h2, h3, .h3 { margin-top: 20px; margin-bottom: 10px; } h1 small, h1 .small, .h1 small, .h1 .small, h2 small, h2 .small, .h2 small, .h2 .small, h3 small, h3 .small, .h3 small, .h3 .small { font-size: 65%; } h4, .h4, h5, .h5, h6, .h6 { margin-top: 10px; margin-bottom: 10px; } h4 small, h4 .small, .h4 small, .h4 .small, h5 small, h5 .small, .h5 small, .h5 .small, h6 small, h6 .small, .h6 small, .h6 .small { font-size: 75%; } h1, .h1 { font-size: 36px; } h2, .h2 { font-size: 30px; } h3, .h3 { font-size: 24px; } h4, .h4 { font-size: 18px; } h5, .h5 { font-size: 14px; } h6, .h6 { font-size: 12px; } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 16px; font-weight: 300; line-height: 1.4; } @media (min-width: 768px) { .lead { font-size: 21px; } } small, .small { font-size: 85%; } mark, .mark { background-color: #fcf8e3; padding: .2em; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } .text-justify { text-align: justify; } .text-nowrap { white-space: nowrap; } .text-lowercase { text-transform: lowercase; } .text-uppercase, .initialism { text-transform: uppercase; } .text-capitalize { text-transform: capitalize; } .text-muted { color: #777777; } .text-primary { color: #337ab7; } a.text-primary:hover, a.text-primary:focus { color: #286090; } .text-success { color: #3c763d; } a.text-success:hover, a.text-success:focus { color: #2b542c; } .text-info { color: #31708f; } a.text-info:hover, a.text-info:focus { color: #245269; } .text-warning { color: #8a6d3b; } a.text-warning:hover, a.text-warning:focus { color: #66512c; } .text-danger { color: #a94442; } a.text-danger:hover, a.text-danger:focus { color: #843534; } .bg-primary { color: #fff; } .bg-primary { background-color: #337ab7; } a.bg-primary:hover, a.bg-primary:focus { background-color: #286090; } .bg-success { background-color: #dff0d8; } a.bg-success:hover, a.bg-success:focus { background-color: #c1e2b3; } .bg-info { background-color: #d9edf7; } a.bg-info:hover, a.bg-info:focus { background-color: #afd9ee; } .bg-warning { background-color: #fcf8e3; } a.bg-warning:hover, a.bg-warning:focus { background-color: #f7ecb5; } .bg-danger { background-color: #f2dede; } a.bg-danger:hover, a.bg-danger:focus { background-color: #e4b9b9; } .page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #eeeeee; } ul, ol { margin-top: 0; margin-bottom: 10px; } ul ul, ul ol, ol ul, ol ol { margin-bottom: 0; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; margin-left: -5px; } .list-inline > li { display: inline-block; padding-left: 5px; padding-right: 5px; } dl { margin-top: 0; margin-bottom: 20px; } dt, dd { line-height: 1.42857; } dt { font-weight: bold; } dd { margin-left: 0; } .dl-horizontal dd:before, .dl-horizontal dd:after { content: " "; display: table; } .dl-horizontal dd:after { clear: both; } @media (min-width: 768px) { .dl-horizontal dt { float: left; width: 160px; clear: left; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #777777; } .initialism { font-size: 90%; } blockquote { padding: 10px 20px; margin: 0 0 20px; font-size: 17.5px; border-left: 5px solid #eeeeee; } blockquote p:last-child, blockquote ul:last-child, blockquote ol:last-child { margin-bottom: 0; } blockquote footer, blockquote small, blockquote .small { display: block; font-size: 80%; line-height: 1.42857; color: #777777; } blockquote footer:before, blockquote small:before, blockquote .small:before { content: '\2014 \A0'; } .blockquote-reverse, blockquote.pull-right { padding-right: 15px; padding-left: 0; border-right: 5px solid #eeeeee; border-left: 0; text-align: right; } .blockquote-reverse footer:before, .blockquote-reverse small:before, .blockquote-reverse .small:before, blockquote.pull-right footer:before, blockquote.pull-right small:before, blockquote.pull-right .small:before { content: ''; } .blockquote-reverse footer:after, .blockquote-reverse small:after, .blockquote-reverse .small:after, blockquote.pull-right footer:after, blockquote.pull-right small:after, blockquote.pull-right .small:after { content: '\A0 \2014'; } address { margin-bottom: 20px; font-style: normal; line-height: 1.42857; } .container { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; } .container:before, .container:after { content: " "; display: table; } .container:after { clear: both; } @media (min-width: 768px) { .container { width: 750px; } } @media (min-width: 992px) { .container { width: 970px; } } @media (min-width: 1200px) { .container { width: 1170px; } } .container-fluid { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; } .container-fluid:before, .container-fluid:after { content: " "; display: table; } .container-fluid:after { clear: both; } .row { margin-left: -15px; margin-right: -15px; } .row:before, .row:after { content: " "; display: table; } .row:after { clear: both; } .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { float: left; } .col-xs-1 { width: 8.33333%; } .col-xs-2 { width: 16.66667%; } .col-xs-3 { width: 25%; } .col-xs-4 { width: 33.33333%; } .col-xs-5 { width: 41.66667%; } .col-xs-6 { width: 50%; } .col-xs-7 { width: 58.33333%; } .col-xs-8 { width: 66.66667%; } .col-xs-9 { width: 75%; } .col-xs-10 { width: 83.33333%; } .col-xs-11 { width: 91.66667%; } .col-xs-12 { width: 100%; } .col-xs-pull-0 { right: auto; } .col-xs-pull-1 { right: 8.33333%; } .col-xs-pull-2 { right: 16.66667%; } .col-xs-pull-3 { right: 25%; } .col-xs-pull-4 { right: 33.33333%; } .col-xs-pull-5 { right: 41.66667%; } .col-xs-pull-6 { right: 50%; } .col-xs-pull-7 { right: 58.33333%; } .col-xs-pull-8 { right: 66.66667%; } .col-xs-pull-9 { right: 75%; } .col-xs-pull-10 { right: 83.33333%; } .col-xs-pull-11 { right: 91.66667%; } .col-xs-pull-12 { right: 100%; } .col-xs-push-0 { left: auto; } .col-xs-push-1 { left: 8.33333%; } .col-xs-push-2 { left: 16.66667%; } .col-xs-push-3 { left: 25%; } .col-xs-push-4 { left: 33.33333%; } .col-xs-push-5 { left: 41.66667%; } .col-xs-push-6 { left: 50%; } .col-xs-push-7 { left: 58.33333%; } .col-xs-push-8 { left: 66.66667%; } .col-xs-push-9 { left: 75%; } .col-xs-push-10 { left: 83.33333%; } .col-xs-push-11 { left: 91.66667%; } .col-xs-push-12 { left: 100%; } .col-xs-offset-0 { margin-left: 0%; } .col-xs-offset-1 { margin-left: 8.33333%; } .col-xs-offset-2 { margin-left: 16.66667%; } .col-xs-offset-3 { margin-left: 25%; } .col-xs-offset-4 { margin-left: 33.33333%; } .col-xs-offset-5 { margin-left: 41.66667%; } .col-xs-offset-6 { margin-left: 50%; } .col-xs-offset-7 { margin-left: 58.33333%; } .col-xs-offset-8 { margin-left: 66.66667%; } .col-xs-offset-9 { margin-left: 75%; } .col-xs-offset-10 { margin-left: 83.33333%; } .col-xs-offset-11 { margin-left: 91.66667%; } .col-xs-offset-12 { margin-left: 100%; } @media (min-width: 768px) { .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { float: left; } .col-sm-1 { width: 8.33333%; } .col-sm-2 { width: 16.66667%; } .col-sm-3 { width: 25%; } .col-sm-4 { width: 33.33333%; } .col-sm-5 { width: 41.66667%; } .col-sm-6 { width: 50%; } .col-sm-7 { width: 58.33333%; } .col-sm-8 { width: 66.66667%; } .col-sm-9 { width: 75%; } .col-sm-10 { width: 83.33333%; } .col-sm-11 { width: 91.66667%; } .col-sm-12 { width: 100%; } .col-sm-pull-0 { right: auto; } .col-sm-pull-1 { right: 8.33333%; } .col-sm-pull-2 { right: 16.66667%; } .col-sm-pull-3 { right: 25%; } .col-sm-pull-4 { right: 33.33333%; } .col-sm-pull-5 { right: 41.66667%; } .col-sm-pull-6 { right: 50%; } .col-sm-pull-7 { right: 58.33333%; } .col-sm-pull-8 { right: 66.66667%; } .col-sm-pull-9 { right: 75%; } .col-sm-pull-10 { right: 83.33333%; } .col-sm-pull-11 { right: 91.66667%; } .col-sm-pull-12 { right: 100%; } .col-sm-push-0 { left: auto; } .col-sm-push-1 { left: 8.33333%; } .col-sm-push-2 { left: 16.66667%; } .col-sm-push-3 { left: 25%; } .col-sm-push-4 { left: 33.33333%; } .col-sm-push-5 { left: 41.66667%; } .col-sm-push-6 { left: 50%; } .col-sm-push-7 { left: 58.33333%; } .col-sm-push-8 { left: 66.66667%; } .col-sm-push-9 { left: 75%; } .col-sm-push-10 { left: 83.33333%; } .col-sm-push-11 { left: 91.66667%; } .col-sm-push-12 { left: 100%; } .col-sm-offset-0 { margin-left: 0%; } .col-sm-offset-1 { margin-left: 8.33333%; } .col-sm-offset-2 { margin-left: 16.66667%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-4 { margin-left: 33.33333%; } .col-sm-offset-5 { margin-left: 41.66667%; } .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-7 { margin-left: 58.33333%; } .col-sm-offset-8 { margin-left: 66.66667%; } .col-sm-offset-9 { margin-left: 75%; } .col-sm-offset-10 { margin-left: 83.33333%; } .col-sm-offset-11 { margin-left: 91.66667%; } .col-sm-offset-12 { margin-left: 100%; } } @media (min-width: 992px) { .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { float: left; } .col-md-1 { width: 8.33333%; } .col-md-2 { width: 16.66667%; } .col-md-3 { width: 25%; } .col-md-4 { width: 33.33333%; } .col-md-5 { width: 41.66667%; } .col-md-6 { width: 50%; } .col-md-7 { width: 58.33333%; } .col-md-8 { width: 66.66667%; } .col-md-9 { width: 75%; } .col-md-10 { width: 83.33333%; } .col-md-11 { width: 91.66667%; } .col-md-12 { width: 100%; } .col-md-pull-0 { right: auto; } .col-md-pull-1 { right: 8.33333%; } .col-md-pull-2 { right: 16.66667%; } .col-md-pull-3 { right: 25%; } .col-md-pull-4 { right: 33.33333%; } .col-md-pull-5 { right: 41.66667%; } .col-md-pull-6 { right: 50%; } .col-md-pull-7 { right: 58.33333%; } .col-md-pull-8 { right: 66.66667%; } .col-md-pull-9 { right: 75%; } .col-md-pull-10 { right: 83.33333%; } .col-md-pull-11 { right: 91.66667%; } .col-md-pull-12 { right: 100%; } .col-md-push-0 { left: auto; } .col-md-push-1 { left: 8.33333%; } .col-md-push-2 { left: 16.66667%; } .col-md-push-3 { left: 25%; } .col-md-push-4 { left: 33.33333%; } .col-md-push-5 { left: 41.66667%; } .col-md-push-6 { left: 50%; } .col-md-push-7 { left: 58.33333%; } .col-md-push-8 { left: 66.66667%; } .col-md-push-9 { left: 75%; } .col-md-push-10 { left: 83.33333%; } .col-md-push-11 { left: 91.66667%; } .col-md-push-12 { left: 100%; } .col-md-offset-0 { margin-left: 0%; } .col-md-offset-1 { margin-left: 8.33333%; } .col-md-offset-2 { margin-left: 16.66667%; } .col-md-offset-3 { margin-left: 25%; } .col-md-offset-4 { margin-left: 33.33333%; } .col-md-offset-5 { margin-left: 41.66667%; } .col-md-offset-6 { margin-left: 50%; } .col-md-offset-7 { margin-left: 58.33333%; } .col-md-offset-8 { margin-left: 66.66667%; } .col-md-offset-9 { margin-left: 75%; } .col-md-offset-10 { margin-left: 83.33333%; } .col-md-offset-11 { margin-left: 91.66667%; } .col-md-offset-12 { margin-left: 100%; } } @media (min-width: 1200px) { .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: left; } .col-lg-1 { width: 8.33333%; } .col-lg-2 { width: 16.66667%; } .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.33333%; } .col-lg-5 { width: 41.66667%; } .col-lg-6 { width: 50%; } .col-lg-7 { width: 58.33333%; } .col-lg-8 { width: 66.66667%; } .col-lg-9 { width: 75%; } .col-lg-10 { width: 83.33333%; } .col-lg-11 { width: 91.66667%; } .col-lg-12 { width: 100%; } .col-lg-pull-0 { right: auto; } .col-lg-pull-1 { right: 8.33333%; } .col-lg-pull-2 { right: 16.66667%; } .col-lg-pull-3 { right: 25%; } .col-lg-pull-4 { right: 33.33333%; } .col-lg-pull-5 { right: 41.66667%; } .col-lg-pull-6 { right: 50%; } .col-lg-pull-7 { right: 58.33333%; } .col-lg-pull-8 { right: 66.66667%; } .col-lg-pull-9 { right: 75%; } .col-lg-pull-10 { right: 83.33333%; } .col-lg-pull-11 { right: 91.66667%; } .col-lg-pull-12 { right: 100%; } .col-lg-push-0 { left: auto; } .col-lg-push-1 { left: 8.33333%; } .col-lg-push-2 { left: 16.66667%; } .col-lg-push-3 { left: 25%; } .col-lg-push-4 { left: 33.33333%; } .col-lg-push-5 { left: 41.66667%; } .col-lg-push-6 { left: 50%; } .col-lg-push-7 { left: 58.33333%; } .col-lg-push-8 { left: 66.66667%; } .col-lg-push-9 { left: 75%; } .col-lg-push-10 { left: 83.33333%; } .col-lg-push-11 { left: 91.66667%; } .col-lg-push-12 { left: 100%; } .col-lg-offset-0 { margin-left: 0%; } .col-lg-offset-1 { margin-left: 8.33333%; } .col-lg-offset-2 { margin-left: 16.66667%; } .col-lg-offset-3 { margin-left: 25%; } .col-lg-offset-4 { margin-left: 33.33333%; } .col-lg-offset-5 { margin-left: 41.66667%; } .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-7 { margin-left: 58.33333%; } .col-lg-offset-8 { margin-left: 66.66667%; } .col-lg-offset-9 { margin-left: 75%; } .col-lg-offset-10 { margin-left: 83.33333%; } .col-lg-offset-11 { margin-left: 91.66667%; } .col-lg-offset-12 { margin-left: 100%; } } fieldset { padding: 0; margin: 0; border: 0; min-width: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #333333; border: 0; border-bottom: 1px solid #e5e5e5; } label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: bold; } input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; line-height: normal; } input[type="file"] { display: block; } input[type="range"] { display: block; width: 100%; } select[multiple], select[size] { height: auto; } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } output { display: block; padding-top: 7px; font-size: 14px; line-height: 1.42857; color: #555555; } .form-control { display: block; width: 100%; height: 34px; padding: 6px 12px; font-size: 14px; line-height: 1.42857; color: #555555; background-color: #fff; background-image: none; border: 1px solid #ccc; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; } .form-control:focus { border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); } .form-control::-moz-placeholder { color: #999; opacity: 1; } .form-control:-ms-input-placeholder { color: #999; } .form-control::-webkit-input-placeholder { color: #999; } .form-control::-ms-expand { border: 0; background-color: transparent; } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background-color: #eeeeee; opacity: 1; } .form-control[disabled], fieldset[disabled] .form-control { cursor: not-allowed; } textarea.form-control { height: auto; } input[type="search"] { -webkit-appearance: none; } @media screen and (-webkit-min-device-pixel-ratio: 0) { input[type="date"].form-control, input[type="time"].form-control, input[type="datetime-local"].form-control, input[type="month"].form-control { line-height: 34px; } input[type="date"].input-sm, .input-group-sm input[type="date"], input[type="time"].input-sm, .input-group-sm input[type="time"], input[type="datetime-local"].input-sm, .input-group-sm input[type="datetime-local"], input[type="month"].input-sm, .input-group-sm input[type="month"] { line-height: 30px; } input[type="date"].input-lg, .input-group-lg input[type="date"], input[type="time"].input-lg, .input-group-lg input[type="time"], input[type="datetime-local"].input-lg, .input-group-lg input[type="datetime-local"], input[type="month"].input-lg, .input-group-lg input[type="month"] { line-height: 46px; } } .form-group { margin-bottom: 15px; } .radio, .checkbox { position: relative; display: block; margin-top: 10px; margin-bottom: 10px; } .radio label, .checkbox label { min-height: 20px; padding-left: 20px; margin-bottom: 0; font-weight: normal; cursor: pointer; } .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { position: absolute; margin-left: -20px; margin-top: 4px \9; } .radio + .radio, .checkbox + .checkbox { margin-top: -5px; } .radio-inline, .checkbox-inline { position: relative; display: inline-block; padding-left: 20px; margin-bottom: 0; vertical-align: middle; font-weight: normal; cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; } input[type="radio"][disabled], input[type="radio"].disabled, fieldset[disabled] input[type="radio"], input[type="checkbox"][disabled], input[type="checkbox"].disabled, fieldset[disabled] input[type="checkbox"] { cursor: not-allowed; } .radio-inline.disabled, fieldset[disabled] .radio-inline, .checkbox-inline.disabled, fieldset[disabled] .checkbox-inline { cursor: not-allowed; } .radio.disabled label, fieldset[disabled] .radio label, .checkbox.disabled label, fieldset[disabled] .checkbox label { cursor: not-allowed; } .form-control-static { padding-top: 7px; padding-bottom: 7px; margin-bottom: 0; min-height: 34px; } .form-control-static.input-lg, .form-control-static.input-sm { padding-left: 0; padding-right: 0; } .input-sm { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-sm { height: 30px; line-height: 30px; } textarea.input-sm, select[multiple].input-sm { height: auto; } .form-group-sm .form-control { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .form-group-sm select.form-control { height: 30px; line-height: 30px; } .form-group-sm textarea.form-control, .form-group-sm select[multiple].form-control { height: auto; } .form-group-sm .form-control-static { height: 30px; min-height: 32px; padding: 6px 10px; font-size: 12px; line-height: 1.5; } .input-lg { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.33333; border-radius: 6px; } select.input-lg { height: 46px; line-height: 46px; } textarea.input-lg, select[multiple].input-lg { height: auto; } .form-group-lg .form-control { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.33333; border-radius: 6px; } .form-group-lg select.form-control { height: 46px; line-height: 46px; } .form-group-lg textarea.form-control, .form-group-lg select[multiple].form-control { height: auto; } .form-group-lg .form-control-static { height: 46px; min-height: 38px; padding: 11px 16px; font-size: 18px; line-height: 1.33333; } .has-feedback { position: relative; } .has-feedback .form-control { padding-right: 42.5px; } .form-control-feedback { position: absolute; top: 0; right: 0; z-index: 2; display: block; width: 34px; height: 34px; line-height: 34px; text-align: center; pointer-events: none; } .input-lg + .form-control-feedback, .input-group-lg + .form-control-feedback, .form-group-lg .form-control + .form-control-feedback { width: 46px; height: 46px; line-height: 46px; } .input-sm + .form-control-feedback, .input-group-sm + .form-control-feedback, .form-group-sm .form-control + .form-control-feedback { width: 30px; height: 30px; line-height: 30px; } .has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline, .has-success.radio label, .has-success.checkbox label, .has-success.radio-inline label, .has-success.checkbox-inline label { color: #3c763d; } .has-success .form-control { border-color: #3c763d; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-success .form-control:focus { border-color: #2b542c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; } .has-success .input-group-addon { color: #3c763d; border-color: #3c763d; background-color: #dff0d8; } .has-success .form-control-feedback { color: #3c763d; } .has-warning .help-block, .has-warning .control-label, .has-warning .radio, .has-warning .checkbox, .has-warning .radio-inline, .has-warning .checkbox-inline, .has-warning.radio label, .has-warning.checkbox label, .has-warning.radio-inline label, .has-warning.checkbox-inline label { color: #8a6d3b; } .has-warning .form-control { border-color: #8a6d3b; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-warning .form-control:focus { border-color: #66512c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; } .has-warning .input-group-addon { color: #8a6d3b; border-color: #8a6d3b; background-color: #fcf8e3; } .has-warning .form-control-feedback { color: #8a6d3b; } .has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline, .has-error.radio label, .has-error.checkbox label, .has-error.radio-inline label, .has-error.checkbox-inline label { color: #a94442; } .has-error .form-control { border-color: #a94442; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-error .form-control:focus { border-color: #843534; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; } .has-error .input-group-addon { color: #a94442; border-color: #a94442; background-color: #f2dede; } .has-error .form-control-feedback { color: #a94442; } .has-feedback label ~ .form-control-feedback { top: 25px; } .has-feedback label.sr-only ~ .form-control-feedback { top: 0; } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; } @media (min-width: 768px) { .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; } .form-inline .form-control-static { display: inline-block; } .form-inline .input-group { display: inline-table; vertical-align: middle; } .form-inline .input-group .input-group-addon, .form-inline .input-group .input-group-btn, .form-inline .input-group .form-control { width: auto; } .form-inline .input-group > .form-control { width: 100%; } .form-inline .control-label { margin-bottom: 0; vertical-align: middle; } .form-inline .radio, .form-inline .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; } .form-inline .radio label, .form-inline .checkbox label { padding-left: 0; } .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { position: relative; margin-left: 0; } .form-inline .has-feedback .form-control-feedback { top: 0; } } .form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { margin-top: 0; margin-bottom: 0; padding-top: 7px; } .form-horizontal .radio, .form-horizontal .checkbox { min-height: 27px; } .form-horizontal .form-group { margin-left: -15px; margin-right: -15px; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { content: " "; display: table; } .form-horizontal .form-group:after { clear: both; } @media (min-width: 768px) { .form-horizontal .control-label { text-align: right; margin-bottom: 0; padding-top: 7px; } } .form-horizontal .has-feedback .form-control-feedback { right: 15px; } @media (min-width: 768px) { .form-horizontal .form-group-lg .control-label { padding-top: 11px; font-size: 18px; } } @media (min-width: 768px) { .form-horizontal .form-group-sm .control-label { padding-top: 6px; font-size: 12px; } } .btn { display: inline-block; margin-bottom: 0; font-weight: normal; text-align: center; vertical-align: middle; touch-action: manipulation; cursor: pointer; background-image: none; border: 1px solid transparent; white-space: nowrap; padding: 6px 12px; font-size: 14px; line-height: 1.42857; border-radius: 4px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .btn:focus, .btn.focus, .btn:active:focus, .btn:active.focus, .btn.active:focus, .btn.active.focus { outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn:hover, .btn:focus, .btn.focus { color: #333; text-decoration: none; } .btn:active, .btn.active { outline: 0; background-image: none; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { cursor: not-allowed; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; } a.btn.disabled, fieldset[disabled] a.btn { pointer-events: none; } .btn-default { color: #333; background-color: #fff; border-color: #ccc; } .btn-default:focus, .btn-default.focus { color: #333; background-color: #e6e6e6; border-color: #8c8c8c; } .btn-default:hover { color: #333; background-color: #e6e6e6; border-color: #adadad; } .btn-default:active, .btn-default.active, .open > .btn-default.dropdown-toggle { color: #333; background-color: #e6e6e6; border-color: #adadad; } .btn-default:active:hover, .btn-default:active:focus, .btn-default:active.focus, .btn-default.active:hover, .btn-default.active:focus, .btn-default.active.focus, .open > .btn-default.dropdown-toggle:hover, .open > .btn-default.dropdown-toggle:focus, .open > .btn-default.dropdown-toggle.focus { color: #333; background-color: #d4d4d4; border-color: #8c8c8c; } .btn-default:active, .btn-default.active, .open > .btn-default.dropdown-toggle { background-image: none; } .btn-default.disabled:hover, .btn-default.disabled:focus, .btn-default.disabled.focus, .btn-default[disabled]:hover, .btn-default[disabled]:focus, .btn-default[disabled].focus, fieldset[disabled] .btn-default:hover, fieldset[disabled] .btn-default:focus, fieldset[disabled] .btn-default.focus { background-color: #fff; border-color: #ccc; } .btn-default .badge { color: #fff; background-color: #333; } .btn-primary { color: #fff; background-color: #337ab7; border-color: #2e6da4; } .btn-primary:focus, .btn-primary.focus { color: #fff; background-color: #286090; border-color: #122b40; } .btn-primary:hover { color: #fff; background-color: #286090; border-color: #204d74; } .btn-primary:active, .btn-primary.active, .open > .btn-primary.dropdown-toggle { color: #fff; background-color: #286090; border-color: #204d74; } .btn-primary:active:hover, .btn-primary:active:focus, .btn-primary:active.focus, .btn-primary.active:hover, .btn-primary.active:focus, .btn-primary.active.focus, .open > .btn-primary.dropdown-toggle:hover, .open > .btn-primary.dropdown-toggle:focus, .open > .btn-primary.dropdown-toggle.focus { color: #fff; background-color: #204d74; border-color: #122b40; } .btn-primary:active, .btn-primary.active, .open > .btn-primary.dropdown-toggle { background-image: none; } .btn-primary.disabled:hover, .btn-primary.disabled:focus, .btn-primary.disabled.focus, .btn-primary[disabled]:hover, .btn-primary[disabled]:focus, .btn-primary[disabled].focus, fieldset[disabled] .btn-primary:hover, fieldset[disabled] .btn-primary:focus, fieldset[disabled] .btn-primary.focus { background-color: #337ab7; border-color: #2e6da4; } .btn-primary .badge { color: #337ab7; background-color: #fff; } .btn-success { color: #fff; background-color: #5cb85c; border-color: #4cae4c; } .btn-success:focus, .btn-success.focus { color: #fff; background-color: #449d44; border-color: #255625; } .btn-success:hover { color: #fff; background-color: #449d44; border-color: #398439; } .btn-success:active, .btn-success.active, .open > .btn-success.dropdown-toggle { color: #fff; background-color: #449d44; border-color: #398439; } .btn-success:active:hover, .btn-success:active:focus, .btn-success:active.focus, .btn-success.active:hover, .btn-success.active:focus, .btn-success.active.focus, .open > .btn-success.dropdown-toggle:hover, .open > .btn-success.dropdown-toggle:focus, .open > .btn-success.dropdown-toggle.focus { color: #fff; background-color: #398439; border-color: #255625; } .btn-success:active, .btn-success.active, .open > .btn-success.dropdown-toggle { background-image: none; } .btn-success.disabled:hover, .btn-success.disabled:focus, .btn-success.disabled.focus, .btn-success[disabled]:hover, .btn-success[disabled]:focus, .btn-success[disabled].focus, fieldset[disabled] .btn-success:hover, fieldset[disabled] .btn-success:focus, fieldset[disabled] .btn-success.focus { background-color: #5cb85c; border-color: #4cae4c; } .btn-success .badge { color: #5cb85c; background-color: #fff; } .btn-info { color: #fff; background-color: #5bc0de; border-color: #46b8da; } .btn-info:focus, .btn-info.focus { color: #fff; background-color: #31b0d5; border-color: #1b6d85; } .btn-info:hover { color: #fff; background-color: #31b0d5; border-color: #269abc; } .btn-info:active, .btn-info.active, .open > .btn-info.dropdown-toggle { color: #fff; background-color: #31b0d5; border-color: #269abc; } .btn-info:active:hover, .btn-info:active:focus, .btn-info:active.focus, .btn-info.active:hover, .btn-info.active:focus, .btn-info.active.focus, .open > .btn-info.dropdown-toggle:hover, .open > .btn-info.dropdown-toggle:focus, .open > .btn-info.dropdown-toggle.focus { color: #fff; background-color: #269abc; border-color: #1b6d85; } .btn-info:active, .btn-info.active, .open > .btn-info.dropdown-toggle { background-image: none; } .btn-info.disabled:hover, .btn-info.disabled:focus, .btn-info.disabled.focus, .btn-info[disabled]:hover, .btn-info[disabled]:focus, .btn-info[disabled].focus, fieldset[disabled] .btn-info:hover, fieldset[disabled] .btn-info:focus, fieldset[disabled] .btn-info.focus { background-color: #5bc0de; border-color: #46b8da; } .btn-info .badge { color: #5bc0de; background-color: #fff; } .btn-warning { color: #fff; background-color: #f0ad4e; border-color: #eea236; } .btn-warning:focus, .btn-warning.focus { color: #fff; background-color: #ec971f; border-color: #985f0d; } .btn-warning:hover { color: #fff; background-color: #ec971f; border-color: #d58512; } .btn-warning:active, .btn-warning.active, .open > .btn-warning.dropdown-toggle { color: #fff; background-color: #ec971f; border-color: #d58512; } .btn-warning:active:hover, .btn-warning:active:focus, .btn-warning:active.focus, .btn-warning.active:hover, .btn-warning.active:focus, .btn-warning.active.focus, .open > .btn-warning.dropdown-toggle:hover, .open > .btn-warning.dropdown-toggle:focus, .open > .btn-warning.dropdown-toggle.focus { color: #fff; background-color: #d58512; border-color: #985f0d; } .btn-warning:active, .btn-warning.active, .open > .btn-warning.dropdown-toggle { background-image: none; } .btn-warning.disabled:hover, .btn-warning.disabled:focus, .btn-warning.disabled.focus, .btn-warning[disabled]:hover, .btn-warning[disabled]:focus, .btn-warning[disabled].focus, fieldset[disabled] .btn-warning:hover, fieldset[disabled] .btn-warning:focus, fieldset[disabled] .btn-warning.focus { background-color: #f0ad4e; border-color: #eea236; } .btn-warning .badge { color: #f0ad4e; background-color: #fff; } .btn-danger { color: #fff; background-color: #d9534f; border-color: #d43f3a; } .btn-danger:focus, .btn-danger.focus { color: #fff; background-color: #c9302c; border-color: #761c19; } .btn-danger:hover { color: #fff; background-color: #c9302c; border-color: #ac2925; } .btn-danger:active, .btn-danger.active, .open > .btn-danger.dropdown-toggle { color: #fff; background-color: #c9302c; border-color: #ac2925; } .btn-danger:active:hover, .btn-danger:active:focus, .btn-danger:active.focus, .btn-danger.active:hover, .btn-danger.active:focus, .btn-danger.active.focus, .open > .btn-danger.dropdown-toggle:hover, .open > .btn-danger.dropdown-toggle:focus, .open > .btn-danger.dropdown-toggle.focus { color: #fff; background-color: #ac2925; border-color: #761c19; } .btn-danger:active, .btn-danger.active, .open > .btn-danger.dropdown-toggle { background-image: none; } .btn-danger.disabled:hover, .btn-danger.disabled:focus, .btn-danger.disabled.focus, .btn-danger[disabled]:hover, .btn-danger[disabled]:focus, .btn-danger[disabled].focus, fieldset[disabled] .btn-danger:hover, fieldset[disabled] .btn-danger:focus, fieldset[disabled] .btn-danger.focus { background-color: #d9534f; border-color: #d43f3a; } .btn-danger .badge { color: #d9534f; background-color: #fff; } .btn-link { color: #337ab7; font-weight: normal; border-radius: 0; } .btn-link, .btn-link:active, .btn-link.active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; } .btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { border-color: transparent; } .btn-link:hover, .btn-link:focus { color: #23527c; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:hover, fieldset[disabled] .btn-link:focus { color: #777777; text-decoration: none; } .btn-lg { padding: 10px 16px; font-size: 18px; line-height: 1.33333; border-radius: 6px; } .btn-sm { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-xs { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-block { display: block; width: 100%; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; } .alert h4 { margin-top: 0; color: inherit; } .alert .alert-link { font-weight: bold; } .alert > p, .alert > ul { margin-bottom: 0; } .alert > p + p { margin-top: 5px; } .alert-dismissable, .alert-dismissible { padding-right: 35px; } .alert-dismissable .close, .alert-dismissible .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { background-color: #dff0d8; border-color: #d6e9c6; color: #3c763d; } .alert-success hr { border-top-color: #c9e2b3; } .alert-success .alert-link { color: #2b542c; } .alert-info { background-color: #d9edf7; border-color: #bce8f1; color: #31708f; } .alert-info hr { border-top-color: #a6e1ec; } .alert-info .alert-link { color: #245269; } .alert-warning { background-color: #fcf8e3; border-color: #faebcc; color: #8a6d3b; } .alert-warning hr { border-top-color: #f7e1b5; } .alert-warning .alert-link { color: #66512c; } .alert-danger { background-color: #f2dede; border-color: #ebccd1; color: #a94442; } .alert-danger hr { border-top-color: #e4b9c0; } .alert-danger .alert-link { color: #843534; } .panel { margin-bottom: 20px; background-color: #fff; border: 1px solid transparent; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } .panel-body { padding: 15px; } .panel-body:before, .panel-body:after { content: " "; display: table; } .panel-body:after { clear: both; } .panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel-heading > .dropdown .dropdown-toggle { color: inherit; } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; color: inherit; } .panel-title > a, .panel-title > small, .panel-title > .small, .panel-title > small > a, .panel-title > .small > a { color: inherit; } .panel-footer { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #ddd; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .list-group, .panel > .panel-collapse > .list-group { margin-bottom: 0; } .panel > .list-group .list-group-item, .panel > .panel-collapse > .list-group .list-group-item { border-width: 1px 0; border-radius: 0; } .panel > .list-group:first-child .list-group-item:first-child, .panel > .panel-collapse > .list-group:first-child .list-group-item:first-child { border-top: 0; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel > .list-group:last-child .list-group-item:last-child, .panel > .panel-collapse > .list-group:last-child .list-group-item:last-child { border-bottom: 0; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .panel-heading + .list-group .list-group-item:first-child { border-top-width: 0; } .list-group + .panel-footer { border-top-width: 0; } .panel > .table, .panel > .table-responsive > .table, .panel > .panel-collapse > .table { margin-bottom: 0; } .panel > .table caption, .panel > .table-responsive > .table caption, .panel > .panel-collapse > .table caption { padding-left: 15px; padding-right: 15px; } .panel > .table:first-child, .panel > .table-responsive:first-child > .table:first-child { border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child { border-top-left-radius: 3px; border-top-right-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { border-top-left-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { border-top-right-radius: 3px; } .panel > .table:last-child, .panel > .table-responsive:last-child > .table:last-child { border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child { border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { border-bottom-left-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { border-bottom-right-radius: 3px; } .panel > .panel-body + .table, .panel > .panel-body + .table-responsive, .panel > .table + .panel-body, .panel > .table-responsive + .panel-body { border-top: 1px solid #ddd; } .panel > .table > tbody:first-child > tr:first-child th, .panel > .table > tbody:first-child > tr:first-child td { border-top: 0; } .panel > .table-bordered, .panel > .table-responsive > .table-bordered { border: 0; } .panel > .table-bordered > thead > tr > th:first-child, .panel > .table-bordered > thead > tr > td:first-child, .panel > .table-bordered > tbody > tr > th:first-child, .panel > .table-bordered > tbody > tr > td:first-child, .panel > .table-bordered > tfoot > tr > th:first-child, .panel > .table-bordered > tfoot > tr > td:first-child, .panel > .table-responsive > .table-bordered > thead > tr > th:first-child, .panel > .table-responsive > .table-bordered > thead > tr > td:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .panel > .table-bordered > thead > tr > th:last-child, .panel > .table-bordered > thead > tr > td:last-child, .panel > .table-bordered > tbody > tr > th:last-child, .panel > .table-bordered > tbody > tr > td:last-child, .panel > .table-bordered > tfoot > tr > th:last-child, .panel > .table-bordered > tfoot > tr > td:last-child, .panel > .table-responsive > .table-bordered > thead > tr > th:last-child, .panel > .table-responsive > .table-bordered > thead > tr > td:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .panel > .table-bordered > thead > tr:first-child > td, .panel > .table-bordered > thead > tr:first-child > th, .panel > .table-bordered > tbody > tr:first-child > td, .panel > .table-bordered > tbody > tr:first-child > th, .panel > .table-responsive > .table-bordered > thead > tr:first-child > td, .panel > .table-responsive > .table-bordered > thead > tr:first-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { border-bottom: 0; } .panel > .table-bordered > tbody > tr:last-child > td, .panel > .table-bordered > tbody > tr:last-child > th, .panel > .table-bordered > tfoot > tr:last-child > td, .panel > .table-bordered > tfoot > tr:last-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { border-bottom: 0; } .panel > .table-responsive { border: 0; margin-bottom: 0; } .panel-group { margin-bottom: 20px; } .panel-group .panel { margin-bottom: 0; border-radius: 4px; } .panel-group .panel + .panel { margin-top: 5px; } .panel-group .panel-heading { border-bottom: 0; } .panel-group .panel-heading + .panel-collapse > .panel-body, .panel-group .panel-heading + .panel-collapse > .list-group { border-top: 1px solid #ddd; } .panel-group .panel-footer { border-top: 0; } .panel-group .panel-footer + .panel-collapse .panel-body { border-bottom: 1px solid #ddd; } .panel-default { border-color: #ddd; } .panel-default > .panel-heading { color: #333333; background-color: #f5f5f5; border-color: #ddd; } .panel-default > .panel-heading + .panel-collapse > .panel-body { border-top-color: #ddd; } .panel-default > .panel-heading .badge { color: #f5f5f5; background-color: #333333; } .panel-default > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #ddd; } .panel-primary { border-color: #337ab7; } .panel-primary > .panel-heading { color: #fff; background-color: #337ab7; border-color: #337ab7; } .panel-primary > .panel-heading + .panel-collapse > .panel-body { border-top-color: #337ab7; } .panel-primary > .panel-heading .badge { color: #337ab7; background-color: #fff; } .panel-primary > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #337ab7; } .panel-success { border-color: #d6e9c6; } .panel-success > .panel-heading { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; } .panel-success > .panel-heading + .panel-collapse > .panel-body { border-top-color: #d6e9c6; } .panel-success > .panel-heading .badge { color: #dff0d8; background-color: #3c763d; } .panel-success > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #d6e9c6; } .panel-info { border-color: #bce8f1; } .panel-info > .panel-heading { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; } .panel-info > .panel-heading + .panel-collapse > .panel-body { border-top-color: #bce8f1; } .panel-info > .panel-heading .badge { color: #d9edf7; background-color: #31708f; } .panel-info > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #bce8f1; } .panel-warning { border-color: #faebcc; } .panel-warning > .panel-heading { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; } .panel-warning > .panel-heading + .panel-collapse > .panel-body { border-top-color: #faebcc; } .panel-warning > .panel-heading .badge { color: #fcf8e3; background-color: #8a6d3b; } .panel-warning > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #faebcc; } .panel-danger { border-color: #ebccd1; } .panel-danger > .panel-heading { color: #a94442; background-color: #f2dede; border-color: #ebccd1; } .panel-danger > .panel-heading + .panel-collapse > .panel-body { border-top-color: #ebccd1; } .panel-danger > .panel-heading .badge { color: #f2dede; background-color: #a94442; } .panel-danger > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #ebccd1; } .clearfix:before, .clearfix:after { content: " "; display: table; } .clearfix:after { clear: both; } .center-block { display: block; margin-left: auto; margin-right: auto; } .pull-right { float: right !important; } .pull-left { float: left !important; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .hidden { display: none !important; } .affix { position: fixed; } @-ms-viewport { width: device-width; } .visible-xs { display: none !important; } .visible-sm { display: none !important; } .visible-md { display: none !important; } .visible-lg { display: none !important; } .visible-xs-block, .visible-xs-inline, .visible-xs-inline-block, .visible-sm-block, .visible-sm-inline, .visible-sm-inline-block, .visible-md-block, .visible-md-inline, .visible-md-inline-block, .visible-lg-block, .visible-lg-inline, .visible-lg-inline-block { display: none !important; } @media (max-width: 767px) { .visible-xs { display: block !important; } table.visible-xs { display: table !important; } tr.visible-xs { display: table-row !important; } th.visible-xs, td.visible-xs { display: table-cell !important; } } @media (max-width: 767px) { .visible-xs-block { display: block !important; } } @media (max-width: 767px) { .visible-xs-inline { display: inline !important; } } @media (max-width: 767px) { .visible-xs-inline-block { display: inline-block !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block !important; } table.visible-sm { display: table !important; } tr.visible-sm { display: table-row !important; } th.visible-sm, td.visible-sm { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-block { display: block !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-inline { display: inline !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-inline-block { display: inline-block !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md { display: block !important; } table.visible-md { display: table !important; } tr.visible-md { display: table-row !important; } th.visible-md, td.visible-md { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-block { display: block !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-inline { display: inline !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-inline-block { display: inline-block !important; } } @media (min-width: 1200px) { .visible-lg { display: block !important; } table.visible-lg { display: table !important; } tr.visible-lg { display: table-row !important; } th.visible-lg, td.visible-lg { display: table-cell !important; } } @media (min-width: 1200px) { .visible-lg-block { display: block !important; } } @media (min-width: 1200px) { .visible-lg-inline { display: inline !important; } } @media (min-width: 1200px) { .visible-lg-inline-block { display: inline-block !important; } } @media (max-width: 767px) { .hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-lg { display: none !important; } } .visible-print { display: none !important; } @media print { .visible-print { display: block !important; } table.visible-print { display: table !important; } tr.visible-print { display: table-row !important; } th.visible-print, td.visible-print { display: table-cell !important; } } .visible-print-block { display: none !important; } @media print { .visible-print-block { display: block !important; } } .visible-print-inline { display: none !important; } @media print { .visible-print-inline { display: inline !important; } } .visible-print-inline-block { display: none !important; } @media print { .visible-print-inline-block { display: inline-block !important; } } @media print { .hidden-print { display: none !important; } } html, body { font-family: 'Lato', 'Proxima Nova', 'Helvetica', 'Helvetica Neue', 'Arial', sans-serif !important; background-color: #FAFAFA; } h1 { font-weight: 700; } h2, h3 { font-weight: 300; } .glyphicon-xl { font-size: 6em; margin: 10px 0 20px; } header { margin: 15px 0 15px; } header h1 { font-size: 2.5em; margin: 10px 0 0; } header p { font-size: 1.1em; font-weight: 300; color: #999; } .header-container { display: inline-block; text-align: left; } .header-row { display: flex; align-items: center; flex-direction: row; } .flex-row { display: flex; align-items: center; flex-direction: row; } .logo { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAMAAAC/MqoPAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADNQTFRFqBoarSgovVJSsjY20YqKt0RE5cLCwmBg9ezsx25u69DQ26am1piY8N7ezHx84LS0+vr6xbMKtQAAABF0Uk5T/////////////////////wAlrZliAAAaw0lEQVR42txdh5LjOA4lwJz5/187IJWj5dDd1qiutm5net1+Agg8BAKs/M2j+seUP3vYL/6uqLIQwiJyJqXljLGkpf3voausgbUHLDAJMlXoiFozLVTggGiFN/8hdEGQc4+94We7D70A1CH+T9Ale+qRIfyCBvwK9MxeeMDmm0MPPrCXH45auFtCV0Ige/vhyZX4A2/g56DHDJx96OFJJe1vAT1rnYF99LHR3QC6Epxp9vFHYvxu6DHb+j1/AHqT/fdCF8B+9uEifiN049MDw2blF6H/IPQT3PzDsv/Iqf8YdOUPv6iQ6dN6D/lroHt+qJ1KpJ849DLlL4Bu5Ao49wwraqOi+UHDl/4autAbcAmgss/ilP5Rcy/fim/fhp66OHuMwwm1hIrbCM5+/knur6DnlVi1SJw7CrXdj3v4tw0ee1/kc+RcW1+uqLlXRPpIV0ZH//rRyDr+OnS/jEg5pEBEU+FZ/N2cP50PKDnpHKX2CJA0IX9ZS5LQ5pehL1IQ4AIwrko5OOAVWP2CLkcFNtNLwKqpPhVDqqKs4CJl3xTnaZV3v6zw0c7ExCXapFwxSu0KL0jLQBryBkLRD20/zeVmr8hC6OfVH35X4QNgnP1yb70pyvEjJ1QK2nCJIwQAJx4GA0vWZN2vQTfky7m0EzRH793YmdGaqblWTwpFFYsYAr9I/mWNHn4NeibvjUtW5Q/MGk9nnIveinOuM1JeODG8pVgrUo5gWfkYvA0g1O9AN5JJWDnWsFdOoMBFyx2ZGyGE93S8ydBn2YowqLlD+lyk/6VQYnsbQdFPXLJ7v3TWzUyr6f82x7IXoCBJXLs9t6O1fxjY5tGmMHzMjrT4Dehp+h6cnHHoqkp7Vn3niDst6WuKdMGHA4pc35spXuuHP89/AbrhI4EhD9RSBnZfEGYnXfksbbH968vyQXoHQvt19OPup6CTN+++PkDmrIrc4J7iyoXdQVeiLwIFe5WuUOxrz6sZLUtPLDrYn4EuRrYBwVaR7GTbySXzhQs3mmQmX6BpS03Omp+Jntcg2WlvLlfsn4IeJs+NUh+5tMZQi/LCdim0rN+pPqkZ20FLL54YzO65IRatwEl3GfsT0JXlUvYyt02we8ixGtsgB65DZ8TbLaHn3T+RPvHB+Y8ljhnYmLBg9eNHOu8D/ayxaD4L3ZBd61VOoqRvE8NRjaBqR3eu5W6+ImgSng6i+vf6D7SSkUTlPlejAyPyLEHAOcpDDUn1zV/jzJehR92ZMPq12tqajID9JHGv33LXZdfoxLOjsmkWQa+8ACjhIifb5XvNzwiH0Q3FCkH2lv5z0AkoyO6Qp+LLLvLm5PfYzfRnrqjHnLNFf7y3cpGUAqUggzpUWn306pDQ6xI/a+GNsmReZl5khVx60ldyYcYenlwOUvpwLacQifN0H+QbMZII9E9Iw1sLxxwHI/8s9ETkunNOkFXekbkEVL24Vo/rLIKM5qlUSp/0E2Qt2r+W1pDjtpRyK3hQ0n0Mus3JJtlRjGR3kBPfIJGnfdPjuRbh+RRStFXDTB7dm9c1UjJ5HUisDS1wvFSYugI9VvOkdUeu6m/eWplwGLe+0QuR46jgpTYWkAWUiF1oY4LvfM2uafGfkbqhaDL4XuY+rjEiETqkX4X7YZj8TM0+cZd8UTyQW2do2tc4zvNrZi90oD6Grqrt6Am137Xt9Qis3v6oj/ipAnbx0Mwrkqfj5PPKgTfpM3uY3odu6C2j6bQ9+bKxZbo6nbg+AhTkCE/qoMrnnvbaSxDIyO4QK6pBDR6nvfO70KOsrqsKumYLd2qqybSs3IbOCv7BBojJ4BKZY92vAx6zQQhH6MWb0CuTwWa6e+Rua8U2BwB0oEOpyk88yYohHyoCAOcHsSxxzvwWdMMDUbRYBZ3bOV8ad1nDacOXv1xQPCvzj7X4xtzRJjnYUzhot2LhLehac21afclH20LvdSLBrBWOaGdU5SefhFXs/mGWw4vzYtwpdJeIhelKZlIx/cFfIo8C9SIvLNGVn36ip9hZPyrQWJbOs5Vn0FUGHQ3UiHIIWxfFBU8xhZ7/LgqYRfmNx1mxdDQ7UX/Nmb4sdaST5GoVpEsx5pnMgZPdX9k8UOX3nngp8/Oy1DWI7Az2Mo9zr5aBKEOcXrWgwCyW33zWLn2f2p2FyMfQTbWRoZb/238e54VV+tOaNJj7Ev/rd5eWxc39dDUivgBd+QQ1dOkdtF3nAB3CcMbp2Lvy+8/j3Db5Zq6ehm6CJfvteR/5m80hahFNVw2EvwC+o/S7HQ34NPTEtKdQdYj6wypgCbb1uzY7+8unfG7sLpRzxFGO5BA6ZwlykWn81/H4NORSnJWYfu+8P8aOVjwFXXgy2khxSS/Q6TcgUKim2FT3/rvridewCx4vQTddb4aAVK2263G5kbhQuEDqPf99vvztMzJMro+6spO6AJ34muhC8myztKEX+iyPLrlfdEn9NfIyhswIT7YZsbW7wOiJJFM0htz0HHjKeuuAYObJkb9HPvpdkE+SOrYSOtFR5omyYmLOclOWeaCgiOaYL0M+t0RHDSfxEfQaCHokE8e048H3aWC/yDrPyU36DuSPbV3gj6DLrtZTg1SBEdKQih64Ip3xkCbkunzLQ5yWn9ObnaYetsy3yxp5cglBq626aznLtVpg5mugz3s79N6ZR7D+DHpo9MyIVIxH16v7dAt5TZmxfNEz6fx+7wWPeAZdA8cgcuAeSX06l67EhHR6syC0BVO+CvujfhU4g47kAY1B2yrYHTID49usLwFGb+GMKt/1GH61M2ULPbaWKFcb8NDyzsZZPitdTyV9KF/4nMew4kzhQzu9jhM1TKLjcWpWQddvd2b+9PMgUZnNIXRRdYJL4ckc9mXCmSNbNv6bb4Tu9IObcYfQWz0PnQnCIFu59OVMkVy+8zGLot/Wwx1LPZUUJORoMqyFzuy8kle+9cFZ4+I2P30M3RUlY2tPBPRLl46zvn+G5muh61nzJHDYNqIdEtkYcz3FBrrEi9pXH/e1yOd9Jj7nB/5tZatdqLe1ZMjLdyjfv1/0O4+fB+n8XONX0BOSzCXvOrB2c9zhm5HPxc5j2m3lPIjXyVDkCEooPzdyEO1bPfd/ZOms23BZfQRdidqbg32Al2fZLfi25MTxM2ukVNuW9XgAvcV1491gnO6Rye+M1g7EPuJNHs5a2eZ+veEK2P/1vHpzDxs3pGjTaJbSWZZuDr3qeVZ9jW12UPA+6j6GMU32fnPa55yErV9ZZN3NmZGziykSTndAXuksdPfn+LYoNxtxsYBuSwLOilw4dec/2vn4C48cvDGKsq67y6lAuEhQYQGrpApjJNBeHd8zj18tdj7p9/ZiqNqDLnwmHQll0ndeO9LvJvQ5pxObdm3Oze5ZF6D6furRn3le79nDXobna5+poU1sruHZ8QreErq3Wi7tO6KT9KaCOCxYfjWls8qtG5f3oZMt7wmNnQZvNF9h+X3UfaG0YXvJehc6sqxX6Q4Iog6b0YC3gh6m+GPTebGBbkwkWWtc/pdkFDRRGq7B3wp6nDFvsRnwsIIeSDfEkHYbftozHet5DwlMuaXG0/cWB0R+hJ5zQ6wWZsLreisTREFxL+QjXsBN7Ip96XGETu7OEHuJi6MuGflFDeGrSovPpemC32Zr8gK6w9otkcKCEgipDVSfjvZuyAexczraa1bToxylroWrEe7ijYFXoaYkQebbQZ9a9/W684DbCXqutwlDqLfIFvoOqb48qW8Ssu1rPONxk62JI3SiK1IZwXRXm/H9/dtE8UwLYLK+IXQxm8+1yleoUeou1ckLRhG/7bNyvA0HA09BXz3prtzxmTJsBvaGQFTobWCQrr3+YmSxVV2yyLn2Z9h4S+iTrF1a9hD6EbrE4rv0hJ/RARuyJk0gKsvvCX0i7z4uDbwboBt6C4KJIow2dkpIagW8WGA68Vsin13VEavOui67Wm8zkIuvc8tYjdbLmMkmfmMLegniptDLLA+7ilxb6pXVMyGzxVpfp6h8VBRpEX2pN/buKvXZ8g2R+bpJvkFHsKI6dNH3CKbWHUhvgpEmoNXK3RT6bCDeWuyJ+G2FzqRTtvUPjU5BMqdEdffWentT5PMkhdlovKjQ6wwI6WuI27l6GMwiUkADXIm7Qp+V3/I6TaU0Qa9lRUXUzjDMaaSxxGcIcxsz4e8KPc5bx9Y9s5KgV89f3TqROZXGd4W6zkKRHByqu0Iv8/tuK+gmdtAh5GJ9NYRTxBrqtX8OUOC2yGfeHNbJyVQ66By10YKzZsvFrCkQky32vtBnojbb3hJW/x60UELwboyt7lrfa0BTNORy42d2t15v59ixmr4RNlUnKFqI1v04eXeoPRbl1tBnvfxp01bDSuuEbB3fuSUqOt5Tmk4EvDV0Lw4vOmcyc6r9qW3eHSazKKAWHYK4NfT5NrW0rj8FptrdVFcRFxyhg4BA3A5vDn3W9LhJSRvWzUKE0the/9O6TVAk2MzeG/qUh+Z5PTCssPZHPJk297CHnurdfJJ4tjeX+vyK3tbCm07oql7HFx106Sy3Oomi1c2RzyIYsboNREe8i2ojIc4NumdSe8kpgq3/FuP/ctjX3k13lKaOs6gZqW4ANO9K6pXVKsz/C/T1vFIxh45tnIfo54nxmq0WWP4b6GwLXY7Q22QD0cbbCIv16rO/uXczx9B1x+bqOR/6XwWLovaR1EYjg1qUG5/2LI6h4wBdqD5NSdC1sH07aWTI7xy0ihPoSc2hi/6s1zUEDOqMHU8vh7v7Qj+etUt8laBja7KqSxgmM1dj+DorE2W5cfCmnDq57jhB54gddGx/rkto+el4Y/cmwvE26NoHPSl8L3VeC+tc1oBV6VTinRVenJq59reaXk/XLi3aSDWNUfWaft9kdFEnV3xbHn5I4ORuOnOjPchU7HtN3J1d+/Et19CXIFqOHrNq/CfVyfPcuHqXrxK8O0PHkyUTrP9r43siq5job3xUUnP3XAWcnvUyDKLooEcy922uv+SNCd6ax5Z8LnU5Qm92jqhNy21k+qsWy7m7Vp6cL+dEtlN4TpSms+XA2+B5AJaLvr5U4hvzFOJsiENkoyngPXQcR1PQS7NEc4S8KXQbTkbxqTJBZ1y1+rqd39yNyRZ3VypLYju28KZCH31fl4wWfT4DRO0nq8P2wNwTOn31Y+i5QvdTe1mjQP00J15rEKLuM7prmdmezelpbE4tW+QjSb1u4OMB6lV+Fky6p4nP9kToLC6g903AIFstKujWBI85wT15jc9nw9hc1zK4vNSvkfdNtb7yHef1PZOT3hR+NpGKTTZ9uNkz9J3w2ictIRQHNz3q+WTEat8ZvbyXPxyAJMm025BiuWdrtDzcEDI0lExYB73u7Dtr23aEIB+Hd+RzDos8HZ/OBqwz6Hq2J8s5g8Xd0buFZM5HsLF5VDvYh65KI1mqXl9JCt1vmIxHl89mjPbQ0/KCuoOMlhNwrC5ASVDsfu7N8IMtqkvofpzI1sA71sY3QXsZmLKQ/H6XX3wyJ17dDtBHm973zrSqdMtXiKKEDgT+dhqvp0ETFJhtmiUH6GUc19VBb2V43e34KVZL8vS3u/+iZ7G62Nh6NUIfWI/rCF2wOKzAVoWUvw4eg3QrD+fCbBxViFuvPkAfDEK/4TQy31tHaycyeCs6K+Ose0qpvTlcHXQ33vvtySx0+wpZmNUqbwUdZrM6cBPB8Qn62D49RCp+GDQ/LYjk7EYaH+Nshe92DbaeQbfLS759DWYxTRPvFLb7bnUw7t8D6GgKKwuxD9TFVUID7YW0kUb1eqe/URAjO4dd52yQl4LdSR0j9Kni0hm6seeohX7V2qf7dIhHXYfKgm0x2HYgUe/R+x9OabjxXEZ3x7vtErbfxgz3qUKFKtasDhY/9XOVBuhDlGP7LNVkGTwfFk3I26RmO/kRLRe7OarVrAocrrz0/zHIMNwfSKQD8mSVxjcGL0N2Je6W25bQh9kOqZesrpdhqsYIz+ok7dTKkHeBroaWbnuo77PhLCsbr5qgK7WR2cY6jZcBl3dx7ar/ohS9af5I6nG9i08yFQJAXQU/XQm9SQ0q8X4suNjbcZdW0KfgZszVyNZFHkAxrb5jo9NVQtNN3llum9xMfp6g5/UwwWrboC7G8JxNk3i/n9JhGtmqYMdWbj55zK4Em6Ufrg+A7ZQCUdpvd3AmDa7pQOhpC31QamlGPdA6kXOr+Umn2hIlbb9e5W03lAO4P8jDuy10M+xxHxNxNrX4R0Dd1Np9jkhfnp11qfqiptf7Qh8t9XzUnusH6fMw6UHNVdWULMvtgyDil1/7i0aSJ256vQ9d7EEfYpgpKcFHp0iA68mXDsqXj2USXeAlcjiqLu9Bt+u/dtq2zS/AUw4mUxDIQfGvDuDidHUTjkOXDfRRQ0ZTFiqHR7J0oLUPbX+Shm9eiTCSLyuOGkR3oW99u5F9nqZ1jGPj9GHyAV/IYIfxiEe1xngAfUy/jmJ3bR0kt0RwtevSlxnZ9zp37LJqmBDZub6vofvNy2mSTvW+YwIfazQXLJPuq4WOFHLxR/q+WVYK6w19jcLKLKWsg4nakZARvzVhY4dc08HuUn88H34iQGr2Ivtjoy137cNRfWnWwmyn+e8k5Q6gx23BoQ7gEtWw67a1ssaBJoqvNHX+0WbuM+hTsDOK3bWiW22g06xOpKs9dSDh67CLx1vJ7Sn08bTj0nZIXyfO1zKEavMO0rfFMQLKox2Gy5Vk26V0Yw5TzQyAFLntlOCiVystagHzm8IW6QJ7Rt/3NnG7jdgNF8Ri66a4rkThWw1Wuy/ahWJkfHTQ10ua9lYRho16OAgcSOH74bMlQyBeW/L3BHE6O3yEfFVG2N3CqNmiCtV03jnFiSENnUaZ/Icv+lsytCEV+fCkr7gIO4t+xNwCRC9rk/zAYbElA6z9ilyds+qhzDcLJ9kZKZqHaF5FI+vSJDW4UE5Wv/YkfoOJM/Ih8k0ifR+6Y1uVdxQBez5ZgGhR2++4DWWMvYD8GvTxatz8LHMd6yivWQud5Tx/BbG5IPPtnlF2/mFzsUdloTZRSuPoILTR+hngG5ZEPNy/vrt+8Ah6WmemG63jzsjgC+pqWaqxJ037+8qz4VeErq9CL7BHe0WnNIkL7Xg3yUGB/GulxyvIt1m14+3KfGiynGuWrvJGYaua9xfbjQT7p4nKxyYOtk79FHrerbJJoTRKs7CWFvhfURuvHjMZZIHvNf2d7NRO08bTudxrSUtF14YKGzG8eP0n1u4CkWmgMzdPQR/4LCxFKkXQomTNvKOPHL6D/YvFX2G1inQ3D9lA78VZ7MIhWl7nNZrXMRbdBEbjhtZS9eu2Lga5PdLsbD3pdegj9tWNJ1ETshlNjqG6tz/y5e6SYRfmNejTpqQVdmEwQMpkYv4qYjdwyZmf3dA7h+42W/96XQOugY43f0vLxet+wV2iruf1AnbRZ+IOdRSeCI+/7tOjmZlm8jfy5VJ9gEvAkznr630APU7zCVfY6yJPTtzm8mWoIOvaVImYa7bnncYcdU3kdEzd2VoudoEqSb3XNhaYsEwoBaJcUdzAQHAKeqXu+rVr3uOl1YARD9zYNmCJMr2u8GXaJLD22ybpIMjDO3i8zLMLMCQxH60FuUXLujan59vwTGJXHx79qVaxh9o1npzNBwWF2bWchXLmUlhJQncoeRoa+Z6u3Cl+GfnDEgl7rGByvAGymdwQbSqRE9Otifrzj4G67ZX39ZHBMz1p5hSyzyG/AH0ydZD5RoOcjpoFFznzD7TeBKZhmObKX1hv7Z4AfmVd+gXoi1LW5hOFdVYiaXSS4sGLjjXBAbPpjk8d8iCfQH4lorgCfRYR2+14nuDaGJOardLiCsVRSnVrhZ6w6t7CM8Avec1L0Kc8COzd8KxUvkRlMuM/cj1GKfbccy1feA36LBHC5epzZVOEBG11seD44RqkU57ZJ6FfM5/XoC9a0FYpmdQ1FUXstCzbD174Nl6y55+LVVB2Vefmb16bZUajNRGSHVJ9i436jOSNhtni+08jvwp9lfZcXGcPQ6bXZd2RFCHtJ5pJHbBXnquO4zL0ZZgIamUJdA6hWfmap4+CzOH7CavXkF9OnbDr6rdUvXnyvdFL4moxhmgcWF6M8u8rvf5RoT8BfaV/qN2S9XAuIWepiN0Cik8kaF+Brq+/cfaM2cFj7ykkcEBuY5tBnN+GrgS+InL9RMLsGeibmU5zS2/q3QPgXHm9CeOeU34TrAT+krI/xRGfgr4JlucD1I3nTIDgSXCu1tmFaxNO2nZYFpB32ZGnn+cWyrLn9NCfJXv7Ar8OCV5LOL6k4zt3mX4E+g72+ZseV1738z5eQA6v4g7Pbkp/Fjr5d2mPT3zv/kEgPO/XW3BsX0TOnyZRT0MvXceOPjL1fUOPtPppLu/fUfbnayHsBb+z7bqe3wQy01AT+Vwr6TtH/QXj8gL0Kp1No/0iVs0DerlreVxtMj3LgD4XrbRjYn4H+q5mLo360MeG+sz2CN3VxAJvwyVeETt4IlqvDbp9Cfr+qZSLL6BI8qHbsPHIuvGBgorn3ZlpIynK70E/iCdlmn8L0+0Re7AZTYXXD/h76bAXoU/Z+XXIuBABBXCP8vPiDdv2Xj7oVejlsDfzuf13b8icv3nrir3+n/oj4iWfCNvSq8Df3zT3BvQhcZO3un+9k+61dMTKpP4+9F5mcl/6EtNj/ObZjGur0PL0ibzne9CL4vzMTj2W/rOuvE58/1Cb2pvQpxA+AO6/BBT+pLEsP2fZ6pTLT00OYG9/ghpK5yykVEnMboIFrXtY2HnoxtO6Z/ePobeUXTuCWEO4eFwRBYtSkw4slODqYZe83i0NH2xWY5/4kFnJXycU4bAsOl4qV09jr5X5z147YJ/5mFlTEyfhGpU2iPRwrLlflJgP3RtGvgjQMHy2F5V96oM8KWTizFoAaWvdyQjgc+kjjO/Gh0en3dYmnUZy3ZCE+fgt0o9Br1CZlXVmURZD9cckPO7UPpQ7iv5E17C/sQb7E23X7JMfpgRorAtj9Lzw1booEsJRuXIRA8OIu9JF/2xF5c+gz4KabcIoBjE+aj+IAbE04GannP+10DtrT17ouYEOMSE9W9efMPxc6zX7/Ecaimf8Z4zxj14vYD/yqbdYm/FPgAEAiz1MxHM6sgsAAAAASUVORK5CYII=); background-size: cover; height: 60px; width: 60px; margin-right: 20px; } .fade-enter-active, .fade-leave-active { opacity: 1; transition: all .3s ease-in-out; } .fade-enter, .fade-leave-to { opacity: 0; } .form-inline { text-align: center; padding: 20px 0; background-color: #FFF; border: 1px solid #e6e6e6; border-radius: 1px; } .form-inline, .form-group, form-inline button { width: 100%; } .form-group { padding: 0 15px; } .form-inline button { margin-top: 10px; } .separatorText { margin-left: 10px; margin-right: 10px; } .list-header { margin: 10px 0 30px; } .video { margin-bottom: 10px; } blockquote { font-size: 1.6em; border: none; padding: 0; margin: 20px 0 30px; } blockquote p { font-weight: 700; } blockquote footer { font-size: 0.7em; font-weight: 300; color: #999; } .controlButton { font-size: 4em; } .clickable { color: #a94442; transition: all .2s ease-in-out; } .clickable:hover { cursor: pointer; color: #d9534f; } .disabled { color: #777777; cursor: not-allowed; } /* Small devices (tablets, 768px and up) */ @media (min-width: 768px) { .logo { height: 150px; width: 150px; margin: 0 auto; } .header-container { display: inline-block; text-align: center; } .header-row { flex-direction: column; } header { margin: 40px 0 20px; } header h1 { font-size: 3em; } header p { font-size: 1.5em; } .form-inline input { width: 50% !important; } .form-inline button { width: auto; margin: 0; } blockquote { font-size: 2.2em; } } .app-footer { margin: 60px 0; color: #999; } .fade-enter-active, .fade-leave-active { opacity: 1; transition: all .3s ease-in-out; } .fade-enter, .fade-leave-to { opacity: 0; } .spin { -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; /* IE 9 */ -webkit-animation: spin 1.5s infinite linear; -moz-animation: spin 1.5s infinite linear; -o-animation: spin 1.5s infinite linear; animation: spin 1.5s infinite linear; } @-moz-keyframes spin { from { -moz-transform: rotate(0deg); } to { -moz-transform: rotate(360deg); } } @-webkit-keyframes spin { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /*# sourceMappingURL=app.77949f7170ceeae1dc94679c81b0758d.css.map*/
25.648311
9,432
0.669607
ef0ce073535d6aefa62660f9828fd5a122ba536e
277
rs
Rust
samples/file.rs
teh-cmc/raylib-rs
319d5ac8bbb91722a4ed4ae00945a790cb33a052
[ "Zlib" ]
null
null
null
samples/file.rs
teh-cmc/raylib-rs
319d5ac8bbb91722a4ed4ae00945a790cb33a052
[ "Zlib" ]
null
null
null
samples/file.rs
teh-cmc/raylib-rs
319d5ac8bbb91722a4ed4ae00945a790cb33a052
[ "Zlib" ]
null
null
null
mod options; fn main() { let opt = options::Opt::new(); let (_rl, _thread) = opt.open_window("File"); let (_w, _h) = (opt.width, opt.height); println!( "Working Dir {:?}", raylib::get_directory_files(&raylib::get_working_directory()) ); }
21.307692
69
0.574007
72790f51160f99b42d18e940031a5c81a50f2265
3,343
kt
Kotlin
Android/application/app/src/main/java/com/arpadfodor/communityparking/android/app/view/AccountEditFragment.kt
arpadfodor/SW-Architectures-Homework
0844098dbe884213eeed4d08e3e59a3b182142ea
[ "MIT" ]
null
null
null
Android/application/app/src/main/java/com/arpadfodor/communityparking/android/app/view/AccountEditFragment.kt
arpadfodor/SW-Architectures-Homework
0844098dbe884213eeed4d08e3e59a3b182142ea
[ "MIT" ]
null
null
null
Android/application/app/src/main/java/com/arpadfodor/communityparking/android/app/view/AccountEditFragment.kt
arpadfodor/SW-Architectures-Homework
0844098dbe884213eeed4d08e3e59a3b182142ea
[ "MIT" ]
null
null
null
package com.arpadfodor.communityparking.android.app.view import android.content.Intent import android.os.Bundle import android.view.* import androidx.constraintlayout.widget.ConstraintLayout import com.arpadfodor.communityparking.android.app.R import com.arpadfodor.communityparking.android.app.view.utils.AppFragment import com.arpadfodor.communityparking.android.app.view.utils.AppSnackBarBuilder import com.arpadfodor.communityparking.android.app.view.utils.overshootAppearingAnimation import com.arpadfodor.communityparking.android.app.viewmodel.AccountViewModel import com.google.android.material.snackbar.Snackbar import kotlinx.android.synthetic.main.fragment_account_edit.* class AccountEditFragment : AppFragment() { companion object{ val TAG = AccountEditFragment::class.java.simpleName private lateinit var viewModel: AccountViewModel fun setParams(viewModel: AccountViewModel){ this.viewModel = viewModel } } private lateinit var container: ConstraintLayout override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { return inflater.inflate(R.layout.fragment_account_edit, container, false) } override fun onViewCreated(view: View, savedInstanceState: Bundle?){ super.onViewCreated(view, savedInstanceState) container = view as ConstraintLayout } override fun appearingAnimations(){ btnCancel?.overshootAppearingAnimation(requireContext()) btnApply?.overshootAppearingAnimation(requireContext()) } override fun subscribeToViewModel(){} override fun subscribeListeners() { btnCancel?.setOnClickListener { viewModel.fragmentTagToShow.postValue(AccountManageFragment.TAG) } btnApply?.setOnClickListener { val newName = input_change_name.text.toString() val newPassword = input_change_password.text.toString() if(newName.isEmpty() && newPassword.isEmpty()){ AppSnackBarBuilder.buildInfoSnackBar(requireContext(), container, getString(R.string.empty_change), Snackbar.LENGTH_SHORT).show() return@setOnClickListener } val success = { AppSnackBarBuilder.buildSuccessSnackBar(requireContext(), container, getString(R.string.change_applied), Snackbar.LENGTH_SHORT).show() viewModel.fragmentTagToShow.postValue(AccountManageFragment.TAG) } val error = { AppSnackBarBuilder.buildAlertSnackBar(requireContext(), container, getString(R.string.change_failed), Snackbar.LENGTH_SHORT).show() } viewModel.editAccount(newName, newPassword, success, error) } linkDelete?.setOnClickListener { val success = { startActivity(Intent(requireActivity(), LoginActivity::class.java)) } val error = { AppSnackBarBuilder.buildAlertSnackBar(requireContext(), container, getString(R.string.account_delete_failed), Snackbar.LENGTH_SHORT).show() } viewModel.deleteAccount(success, error) } } override fun unsubscribe(){} }
33.09901
116
0.690099
0582f3f2b9cd50e016e2a1f80361e5d091699225
6,104
rb
Ruby
lib/ffi/libevent/ev_buffer.rb
asppsa/ffi-libevent
82c3c4032ecdc35476d9e0fed2b0910cd589e4d9
[ "Apache-2.0" ]
null
null
null
lib/ffi/libevent/ev_buffer.rb
asppsa/ffi-libevent
82c3c4032ecdc35476d9e0fed2b0910cd589e4d9
[ "Apache-2.0" ]
null
null
null
lib/ffi/libevent/ev_buffer.rb
asppsa/ffi-libevent
82c3c4032ecdc35476d9e0fed2b0910cd589e4d9
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Alastair Pharo # 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. module FFI::Libevent attach_function :evbuffer_new, [], :pointer attach_function :evbuffer_free, [:pointer], :void attach_function :evbuffer_enable_locking, [:pointer, :pointer], :int attach_function :evbuffer_lock, [:pointer], :void attach_function :evbuffer_unlock, [:pointer], :void attach_function :evbuffer_get_length, [:pointer], :size_t attach_function :evbuffer_get_contiguous_space, [:pointer], :size_t attach_function :evbuffer_add, [:pointer, :pointer, :size_t], :int attach_function :evbuffer_expand, [:pointer, :size_t], :int attach_function :evbuffer_add_buffer, [:pointer, :pointer], :int attach_function :evbuffer_remove, [:pointer, :pointer, :size_t], :int attach_function :evbuffer_remove_buffer, [:pointer, :pointer, :size_t], :int attach_function :evbuffer_prepend, [:pointer, :pointer, :size_t], :int attach_function :evbuffer_prepend_buffer, [:pointer, :pointer], :int attach_function :evbuffer_pullup, [:pointer, :size_t], :pointer attach_function :evbuffer_drain, [:pointer, :size_t], :int attach_function :evbuffer_copyout, [:pointer, :pointer, :size_t], :size_t #attach_function :evbuffer_copyout_from, [:pointer, :pointer, :pointer, :size_t], :size_t # Used to free lines returned by readln attach_function :evbuffer_ptr_free, :free, [:pointer], :void enum FFI::Type::INT, :evbuffer_eol_style, [:any, :crlf, :crlf_strict, :lf] attach_function :evbuffer_readln, [:pointer, :pointer, :evbuffer_eol_style], :pointer class EvBuffer < FFI::AutoPointer include FFI::Libevent ## # The rationale here is that pointers are only passed into this by # bufferevent objects when they are exposing their underlying # evbuffers. In this case, garbage collection is connected to the # bufferevent and is therefore not necessary here. def initialize ptr=nil if ptr release = self.class.method(:noop) else ptr = FFI::Libevent.evbuffer_new raise "Could not create evbuffer" unless ptr release = FFI::Libevent.method(:evbuffer_free) end super ptr, release end def enable_locking! lock=nil res = evbuffer_enable_locking self, lock raise "Could not enable locking" unless res == 0 end def lock! evbuffer_lock(self) end def unlock! evbuffer_unlock(self) end def locked raise "no block given" unless block_given? lock! yield ensure unlock! end def length evbuffer_get_length self end def contiguous_space evbuffer_get_contiguous_space self end def add bytes, len=nil if bytes.is_a? EvBuffer res = evbuffer_add_buffer self, bytes else len ||= bytes.bytesize res = evbuffer_add self, bytes, len end raise "Could not add" if res == -1 res end def remove dst, len=nil case dst when EvBuffer raise "length required" if len.nil? res = evbuffer_remove_buffer self, dst, len raise "Could not remove" if res == -1 res when Integer ptr = FFI::MemoryPointer.new(dst) l = remove ptr, dst ptr.read_string(l) when FFI::MemoryPointer res = evbuffer_remove self, dst, len raise "Could not remove" if res == -1 res else raise "cannot remove to #{dst}" end end def expand! len res = evbuffer_expand self, len raise "Could not expand" unless res == 0 end def prepend src, len=nil case src when EvBuffer res = evbuffer_prepend_buffer self, src when String len ||= src.bytesize res = evbuffer_prepend self, src, len end raise "Could not prepend" if res == -1 res end def pullup! size=-1 ptr = evbuffer_pullup(self, size) raise "Too many bytes" if ptr.null? ptr end def drain size res = evbuffer_drain(self, size) raise "Could not drain" if res == -1 end def copyout dst, len=nil case dst when Integer ptr = FFI::MemoryPointer.new(dst) l = copyout ptr, dst ptr.read_string(l) when FFI::MemoryPointer raise "length is required" if len.nil? res = evbuffer_copyout self, dst, len raise "Could not copyout" if res == -1 res else raise "cannot copyout to #{dst}" end end # def copyout_from pos, data, len=nil # len ||= data.bytesize # size = evbuffer_copyout_from self, pos, data, len # raise "Could not copy out" if size == -1 # size # end def read_line eol_style=:crlf ptr = evbuffer_readln(self, nil, eol_style) unless ptr.null? ptr.read_string end ensure evbuffer_ptr_free(ptr) if ptr && !ptr.null? end def each_line eol_style=:crlf, &block enum = Enumerator.new do |y| while str = read_line y << str end end if block enum.each(&block) else enum end end class << self def with_lock lock=nil obj = self.new obj.enable_locking! lock obj end def noop; end end end # class EvBuffer::Ptr < FFI::Pointer # def initialize ev_buffer, ptr # @ev_buffer = ev_buffer # super FFI::Type::CHAR.size, ptr # end # end end
26.424242
91
0.633519
a329a4271b79f6d9cf5fc01066b5140a16a4e8f8
3,158
java
Java
src/com/jaquadro/minecraft/storagedrawers/item/ItemTrim.java
uecasm/StorageDrawers
40737fb2254d68020a30f80977c84fd50a9b0f26
[ "MIT" ]
null
null
null
src/com/jaquadro/minecraft/storagedrawers/item/ItemTrim.java
uecasm/StorageDrawers
40737fb2254d68020a30f80977c84fd50a9b0f26
[ "MIT" ]
null
null
null
src/com/jaquadro/minecraft/storagedrawers/item/ItemTrim.java
uecasm/StorageDrawers
40737fb2254d68020a30f80977c84fd50a9b0f26
[ "MIT" ]
null
null
null
package com.jaquadro.minecraft.storagedrawers.item; import com.google.common.base.Function; import com.jaquadro.minecraft.chameleon.resources.IItemMeshMapper; import com.jaquadro.minecraft.chameleon.resources.IItemVariantProvider; import com.jaquadro.minecraft.storagedrawers.block.BlockDrawers; import com.jaquadro.minecraft.storagedrawers.block.BlockTrim; import com.jaquadro.minecraft.storagedrawers.core.ModBlocks; import net.minecraft.block.Block; import net.minecraft.block.BlockPlanks; import net.minecraft.block.state.IBlockState; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemMultiTexture; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraftforge.fml.common.registry.GameData; import org.apache.commons.lang3.tuple.Pair; import javax.annotation.Nullable; import java.util.ArrayList; import java.util.List; public class ItemTrim extends ItemMultiTexture implements IItemMeshMapper, IItemVariantProvider { public ItemTrim (Block block) { super(block, block, new Function() { @Nullable @Override public Object apply (Object input) { ItemStack stack = (ItemStack)input; return BlockPlanks.EnumType.byMetadata(stack.getMetadata()).getUnlocalizedName(); } }); } protected ItemTrim (Block block, Function function) { super(block, block, function); } @Override public boolean doesSneakBypassUse (ItemStack stack, IBlockAccess world, BlockPos pos, EntityPlayer player) { IBlockState blockState = world.getBlockState(pos); Block block = blockState.getBlock(); if (block instanceof BlockDrawers && ((BlockDrawers) block).retrimType() != null) return true; return false; } @Override public List<ResourceLocation> getItemVariants () { ResourceLocation location = GameData.getItemRegistry().getNameForObject(this); List<ResourceLocation> variants = new ArrayList<ResourceLocation>(); for (BlockPlanks.EnumType woodType : BlockPlanks.EnumType.values()) variants.add(new ResourceLocation(location.getResourceDomain(), location.getResourcePath() + '_' + woodType.getName())); return variants; } @Override public List<Pair<ItemStack, ModelResourceLocation>> getMeshMappings () { List<Pair<ItemStack, ModelResourceLocation>> mappings = new ArrayList<Pair<ItemStack, ModelResourceLocation>>(); for (BlockPlanks.EnumType woodType : BlockPlanks.EnumType.values()) { IBlockState state = block.getDefaultState().withProperty(BlockTrim.VARIANT, woodType); ModelResourceLocation location = new ModelResourceLocation(ModBlocks.trim.getRegistryName().toString() + '_' + woodType.getName(), "inventory"); mappings.add(Pair.of(new ItemStack(this, 1, block.getMetaFromState(state)), location)); } return mappings; } }
40.487179
156
0.732109
3874fddab6e3a3342031c7c5fdf5096736e61083
1,017
php
PHP
storage/framework/views/8a32df73edce4b5478f0ee1f0222d27584f518fc.php
EmiJGAugu801/webdev2-final-exam-GASPAR
6989a9aceb51f868b3788312c00cba6db8408fd9
[ "MIT" ]
null
null
null
storage/framework/views/8a32df73edce4b5478f0ee1f0222d27584f518fc.php
EmiJGAugu801/webdev2-final-exam-GASPAR
6989a9aceb51f868b3788312c00cba6db8408fd9
[ "MIT" ]
null
null
null
storage/framework/views/8a32df73edce4b5478f0ee1f0222d27584f518fc.php
EmiJGAugu801/webdev2-final-exam-GASPAR
6989a9aceb51f868b3788312c00cba6db8408fd9
[ "MIT" ]
null
null
null
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Thank You!</title> <style> body{ background-color: #ffffcc; margin: 250px 0px; } div{ margin: auto; width: 40%; border: 3px solid #73AD21; padding: 10px; background-color: #ffffff; } p { text-align: center; } p.bgertext{ font-size: 48px; } p.oksze{ font-size: 36px; } </style> </head> <body> <div> <p class= "bgertext">Congratualtion User!</p> <p class= "oksze">Thank you for registering.</p> </div> </body> </html><?php /**PATH C:\Users\Admin 1\bibleStudy-request\resources\views/bs_thankU_page.blade.php ENDPATH**/ ?>
24.804878
111
0.485742
438cb23f294efe6a9640103292224e1b3e050699
3,116
dart
Dart
rovo_app/lib/main.dart
thangvq95/rovo_message
92b4ba2c6bf835d6e6170bea2ffc1bacba79c9f0
[ "MIT" ]
1
2021-09-05T04:26:51.000Z
2021-09-05T04:26:51.000Z
rovo_app/lib/main.dart
thangvq95/rovo_message
92b4ba2c6bf835d6e6170bea2ffc1bacba79c9f0
[ "MIT" ]
null
null
null
rovo_app/lib/main.dart
thangvq95/rovo_message
92b4ba2c6bf835d6e6170bea2ffc1bacba79c9f0
[ "MIT" ]
null
null
null
import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:provider/provider.dart'; import 'package:rovo_app/configs/configs.dart'; import 'package:rovo_app/configs/themes.dart'; import 'package:rovo_app/provider/app_provider.dart'; import 'package:rovo_app/resouces/assets.dart'; import 'package:rovo_app/service_locator.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'configs/routes.dart'; import 'data/message_repository.dart'; void main(){ // Setup Service Provide setupServiceLocator(); runApp(ChangeNotifierProvider.value( value: getIt<AppProvider>(), child: Consumer<AppProvider>( builder: (context, value, child){ return MyApp(); } ) )); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { SystemChrome.setSystemUIOverlayStyle(getIt<AppProvider>().curTheme.statusBar); return MaterialApp( onGenerateRoute: generateRoutes, debugShowCheckedModeBanner: false, theme: ThemeData( // primarySwatch: Colors.blue, fontFamily: 'Rubik', brightness: getIt<AppProvider>().curTheme.brightness, primaryColor: getIt<AppProvider>().curTheme.primaryColor, accentColor: getIt<AppProvider>().curTheme.cardColor, backgroundColor: getIt<AppProvider>().curTheme.background, dialogBackgroundColor: getIt<AppProvider>().curTheme.backgroundDialog, ), home: SplashScreen(), ); } } class SplashScreen extends StatefulWidget { @override _SplashScreenState createState() => _SplashScreenState(); } class _SplashScreenState extends State<SplashScreen> { @override void initState() { super.initState(); initData(); } @override Widget build(BuildContext context) { return Container( color: Provider.of<AppProvider>(context).curTheme.background, child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ Image.asset(Assets.logo_text, height: 100, width: 100,), CircularProgressIndicator(strokeWidth: 2.0,valueColor: AlwaysStoppedAnimation<Color>(getIt<AppProvider>().curTheme .primaryColor)) ], ), ), ); } /// Load init data from Server at SplashScreen /// Don't care complete or not => GoTo HomePage void initData() async{ loadData().timeout(Duration(seconds: 3)).whenComplete((){ // Complete or timeout Navigator.pushReplacementNamed(context, Navigation.HomePage); }); } Future loadData() async { try{ /// wait 1s to see Splash Screen. This line just for demo SharedPreferences.getInstance().then((prefs){ if(prefs.getBool(Configure.LIGHT_THEME_PREFER) != null && prefs.getBool(Configure.LIGHT_THEME_PREFER) == false) getIt<AppProvider>().curTheme = DarkTheme(); }); await Future.delayed(Duration(milliseconds: 1500)); await getIt<MessageRepository>().getMessage(); }catch(error){ //print(error.toString()); } } }
30.252427
126
0.686778
2cb8be7c7a50da4fac56937058be026c30d7fc7d
280
py
Python
atomai/__init__.py
aghosh92/atomai
9a9fd7a4cff7dc9b5af9fcc5b1a4b3894c9df685
[ "MIT" ]
null
null
null
atomai/__init__.py
aghosh92/atomai
9a9fd7a4cff7dc9b5af9fcc5b1a4b3894c9df685
[ "MIT" ]
null
null
null
atomai/__init__.py
aghosh92/atomai
9a9fd7a4cff7dc9b5af9fcc5b1a4b3894c9df685
[ "MIT" ]
null
null
null
from . import trainers, predictors, models, transforms, stat, utils from atomai.models import load_model from .__version__ import version as __version__ __all__ = ['models', 'trainers', 'predictors', 'nets', 'utils', 'transforms', 'stat', 'load_model', '__version__']
40
77
0.717857
075326c4c6d9e6cc94460fb7870f9ed6f9c4ce67
1,826
css
CSS
index.css
joaopinho-bot/hijoao
6bf3a947e1432b2a1d19ade5c164e7c4371499dd
[ "MIT" ]
null
null
null
index.css
joaopinho-bot/hijoao
6bf3a947e1432b2a1d19ade5c164e7c4371499dd
[ "MIT" ]
null
null
null
index.css
joaopinho-bot/hijoao
6bf3a947e1432b2a1d19ade5c164e7c4371499dd
[ "MIT" ]
null
null
null
.leftside, .rightside{ height: 50vh; width: 100%; } @media screen and (min-width:768px) { .leftside, .rightside{ height: 100vh; } .rightside { background: rgb(255, 255, 255); } .profile { height: 577px; width: 555px; } } .leftside { background:#ffc000; flex-basis: 20%; } .rightside { background: rgb(255, 255, 255); overflow: auto; flex-basis: 80%; height: 100vh; overflow: auto; } .profile { height: 577px; width: 555px; margin-top: 150px; } .button { border: none; color: black; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; background-color:#ffc000; border-radius: 50px; align-items: right; margin-left:auto; margin-right:20px; margin-top:20px; font-family: Fira Sans; font-style: normal; font-weight: normal; } .button:hover { color: black; background-color: #ffdf33; text-decoration: underline; } p { text-align: justify; text-justify: inter-word; font-size: 13px; } .icon { width: 52px; height: 52px; } .maincontent { margin-left: 25px; margin-right: 25px; } a:link { color: black; background-color: transparent; text-decoration: underline; } a:visited { color: black; background-color: transparent; text-decoration: none; } a:hover { color: black; background-color: #ffdf33; text-decoration: underline; } a:active { color: black; background-color: transparent; text-decoration: underline; } .email { font-size: 15px; } .wrap { display: flex; }
16.159292
40
0.560241
b099d36774b448f043823a3fa3de6f9a74040b0b
200
py
Python
blockchyp/crypto/__init__.py
blockchyp/blockchyp-python
0a1632240fa70e90b5692bdd645137989c2ca79e
[ "MIT" ]
2
2020-01-10T18:25:14.000Z
2021-02-03T13:08:50.000Z
blockchyp/crypto/__init__.py
blockchyp/blockchyp-python
0a1632240fa70e90b5692bdd645137989c2ca79e
[ "MIT" ]
8
2019-07-08T19:53:31.000Z
2021-06-02T00:52:51.000Z
blockchyp/crypto/__init__.py
blockchyp/blockchyp-python
0a1632240fa70e90b5692bdd645137989c2ca79e
[ "MIT" ]
null
null
null
"""Cryptographic helper functions.""" from blockchyp.crypto.auth import auth_headers from blockchyp.crypto.certificate import TerminalAdapter from blockchyp.crypto.symmetric import decrypt, encrypt
28.571429
56
0.84
54c629a959fdaa1496fb19297078f361943ef309
668
css
CSS
src/components/shared/pcsBtn/pcsBtn.css
abekantena/pcs-remote-monitoring-webui
1d4e37f7461ed9f48716917a1fc3a7ae7f6bbaf6
[ "MIT" ]
null
null
null
src/components/shared/pcsBtn/pcsBtn.css
abekantena/pcs-remote-monitoring-webui
1d4e37f7461ed9f48716917a1fc3a7ae7f6bbaf6
[ "MIT" ]
null
null
null
src/components/shared/pcsBtn/pcsBtn.css
abekantena/pcs-remote-monitoring-webui
1d4e37f7461ed9f48716917a1fc3a7ae7f6bbaf6
[ "MIT" ]
null
null
null
.pcs-btn { display: flex; flex-flow: row nowrap; flex-shrink: 0; align-items: center; color: #fff; padding: 0px 16px; background-color: transparent; border: none; cursor: pointer; outline: none; } .pcs-btn:hover { background-color: #b0b9c3; } .pcs-btn.primary { color: #454a4e; background-color: #b0b9c3; } .pcs-btn.primary:hover { background-color: #fff; } .pcs-btn:disabled, .pcs-btn.primary:disabled { background-color: transparent; color: #454a4e; cursor: auto; } .pcs-btn .pcs-btn-svg { width: 1.2em; height: 1.2em; margin-right: 0.7em; } .pcs-btn .pcs-btn-value { font-size: 1em; }
23.034483
48
0.621257
394a600a15f8f7844e55fe6586739dbdfb2ef9c0
1,711
py
Python
train/game_runner.py
HendrikCrause/hallite2-submission
fef9d836f393f7aa15768e6a424c52ff60702933
[ "MIT" ]
null
null
null
train/game_runner.py
HendrikCrause/hallite2-submission
fef9d836f393f7aa15768e6a424c52ff60702933
[ "MIT" ]
null
null
null
train/game_runner.py
HendrikCrause/hallite2-submission
fef9d836f393f7aa15768e6a424c52ff60702933
[ "MIT" ]
null
null
null
import argparse import json import os import glob import subprocess import zstd def run_halite_game(bots=(), cleanup=False): if len(bots) == 0: return {} command = [ './halite', '-q' ] for bot in bots: command.append('"python3 bots/bot.py --uuid {}"'.format(bot)) run = subprocess.run(' '.join(command), stdout=subprocess.PIPE, shell=True) result = json.loads(run.stdout.decode()) if cleanup: os.remove(result['replay']) for file in glob.glob(r'./*.log'): os.remove(file) else: os.rename(result['replay'], './games' + result['replay'][1:]) for file in glob.glob(r'./*.log'): os.rename(file, './logs' + file[1:]) return result def determine_ranks(result, bots): return dict([(result['stats'][str(idx)]['rank'], bots[idx]) for idx in range(len(bots))]) def uncompress_replay(filename): with open(filename, 'rb') as replay: raw_replay_data = zstd.loads(replay.read()) replay_data = json.loads(raw_replay_data.decode()) with open(filename + '.json', 'w') as output: output.write(json.dumps(replay_data)) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("--bots", help="Json object describing bot1 parameters", nargs='*') parser.add_argument("--save-replay", help="Don't delete replay file") args = parser.parse_args() bots = args.bots if args.bots is not None else ['bot1', 'bot2'] if len(bots) not in [2, 4]: raise Exception('Only accepting 2 or 4 bots, not {}'.format(len(bots))) result = run_halite_game(bots) print(result) print(determine_ranks(result, bots))
26.734375
93
0.621859
8ef047dd28a2b3ff7572b9328b1d5ddb96e2ed97
492
rb
Ruby
lib/onix_parser/codelists/issue47/167.rb
hosseintoussi/onix_parser
74cd958f916d1217f16ab4f1dc4b629edbc723a9
[ "MIT" ]
4
2019-12-25T21:11:22.000Z
2021-12-11T06:43:40.000Z
lib/onix_parser/codelists/issue47/167.rb
hosseintoussi/onix_parser
74cd958f916d1217f16ab4f1dc4b629edbc723a9
[ "MIT" ]
null
null
null
lib/onix_parser/codelists/issue47/167.rb
hosseintoussi/onix_parser
74cd958f916d1217f16ab4f1dc4b629edbc723a9
[ "MIT" ]
null
null
null
module OnixParser module Codelists module Issue47 LIST_167 = { "00" => "No conditions", "01" => "Includes updates", "02" => "Must also purchase updates", "03" => "Updates available", "04" => "Linked subsequent purchase price", "05" => "Linked prior purchase price", "06" => "Linked price", "10" => "Rental duration", "11" => "Rental to purchase", "12" => "Rental extension" } end end end
25.894737
51
0.520325
79ab11b42b217f84cb01c2615ce4f7d232b9a502
266
php
PHP
samples/audio_play/part/event_playback_started.php
caitunai/bot-sdk
efb88d4e93ac85d36fd44792da3389e74cba4fa8
[ "Apache-2.0" ]
78
2017-06-05T06:50:46.000Z
2022-02-17T05:07:17.000Z
samples/audio_play/part/event_playback_started.php
caitunai/bot-sdk
efb88d4e93ac85d36fd44792da3389e74cba4fa8
[ "Apache-2.0" ]
9
2017-11-13T07:32:36.000Z
2021-12-08T19:41:55.000Z
samples/audio_play/part/event_playback_started.php
caitunai/bot-sdk
efb88d4e93ac85d36fd44792da3389e74cba4fa8
[ "Apache-2.0" ]
27
2017-11-13T07:28:26.000Z
2022-01-20T06:57:38.000Z
<?php return [ 'request' => [ 'type' => 'AudioPlayer.PlaybackStarted', 'requestId' => '33c78c8f-22db-4d6a-bfd5-075d264377b7', 'timestamp' => '1501127440', 'token' => '12329898321', 'offsetInMilliSeconds' => 1000 ], ];
24.181818
62
0.548872
e22df49b018bdbc4d1614047dda6e75c6688a31e
2,547
js
JavaScript
test/lib/accumulate_distribute/meta/process_params.js
dmytroshch/bfx-hf-algo
c13cce45981c1b1aad1014af209b5787a7c06b3d
[ "Apache-2.0" ]
92
2018-10-17T13:06:48.000Z
2022-03-25T14:38:17.000Z
test/lib/accumulate_distribute/meta/process_params.js
dmytroshch/bfx-hf-algo
c13cce45981c1b1aad1014af209b5787a7c06b3d
[ "Apache-2.0" ]
45
2018-10-21T12:44:07.000Z
2022-03-04T11:23:32.000Z
test/lib/accumulate_distribute/meta/process_params.js
dmytroshch/bfx-hf-algo
c13cce45981c1b1aad1014af209b5787a7c06b3d
[ "Apache-2.0" ]
40
2018-10-19T10:11:31.000Z
2022-03-20T11:39:23.000Z
/* eslint-env mocha */ 'use strict' const assert = require('assert') const _isObject = require('lodash/isObject') const processParams = require('../../../../lib/accumulate_distribute/meta/process_params') const args = { _symbol: 'tBTCUSD', _futures: true, lev: 3.3, sliceIntervalSec: 1, amountDistortion: 2, intervalDistortion: 2, orderType: 'RELATIVE', offsetType: 'EMA', offsetDelta: 42, offsetIndicatorPriceEMA: 'high', offsetIndicatorTFEMA: 'ONE_MINUTE', offsetIndicatorPeriodEMA: 10, capType: 'SMA', capDelta: 12, capIndicatorPriceSMA: 'low', capIndicatorTFSMA: 'FIVE_MINUTES', capIndicatorPeriodSMA: 20, amount: 7, sliceAmount: 3 } describe('accumulate_distribute:meta:process_params', () => { it('parses basic data', () => { const params = processParams(args) assert.strictEqual(params.symbol, 'tBTCUSD', 'incorrect symbol') assert.strictEqual(params.lev, 3.3, 'incorrect leverage') assert.strictEqual(params.sliceInterval, 1000, 'incorrect slice interval') assert.strictEqual(params.amount, 7, 'incorrect amount') assert.strictEqual(params.sliceAmount, 3, 'incorrect slice amount') }) it('provides sane defaults', () => { const params = processParams({ ...args, amountDistortion: null, intervalDistortion: null }) assert.strictEqual(params.amountDistortion, 0, 'incorrect amount distortion') assert.strictEqual(params.intervalDistortion, 0, 'incorrect interval distortion') }) it('parses relative cap and offset', () => { const params = processParams(args) assert.ok(_isObject(params.relativeCap), 'relative cap not an object') assert.strictEqual(params.relativeCap.candlePrice, 'low', 'incorrect candle price') assert.strictEqual(params.relativeCap.candleTimeFrame, '5m', 'incorrect indicator time frame') assert.deepStrictEqual(params.relativeCap.args, [20], 'incorrect indicator args') assert.ok(_isObject(params.relativeOffset), 'relative offset not an object') assert.strictEqual(params.relativeOffset.candlePrice, 'high', 'incorrect candle price') assert.strictEqual(params.relativeOffset.candleTimeFrame, '1m', 'incorrect indicator time frame') assert.deepStrictEqual(params.relativeOffset.args, [10], 'incorrect indicator args') }) it('negates amount on sell', () => { const params = processParams({ ...args, action: 'Sell' }) assert.strictEqual(params.amount, -7, 'incorrect amount') assert.strictEqual(params.sliceAmount, -3, 'incorrect slice amount') }) })
34.890411
101
0.716529
95613191ba386ae6d96439d7da80d57696f97b28
473
sql
SQL
DB-Basics-MSSQL-Server/Exams/(Demo)Databases MSSQL Server Exam - 10 Feb 2019/15.SelectTheLessPopularJob.sql
emilia98/SoftUni-CSharp-Db
c03f09fa9fa2f199c6adc7548dacc85fd3024d0b
[ "MIT" ]
null
null
null
DB-Basics-MSSQL-Server/Exams/(Demo)Databases MSSQL Server Exam - 10 Feb 2019/15.SelectTheLessPopularJob.sql
emilia98/SoftUni-CSharp-Db
c03f09fa9fa2f199c6adc7548dacc85fd3024d0b
[ "MIT" ]
null
null
null
DB-Basics-MSSQL-Server/Exams/(Demo)Databases MSSQL Server Exam - 10 Feb 2019/15.SelectTheLessPopularJob.sql
emilia98/SoftUni-CSharp-Db
c03f09fa9fa2f199c6adc7548dacc85fd3024d0b
[ "MIT" ]
null
null
null
USE "ColonialJourney"; /* Extract from the database the less popular job in the longest journey. In other words, the job with less assign colonists. */ SELECT TOP(1) res.Id, t.JobDuringJourney AS [Job Name] FROM ( SELECT TOP(1) j.Id FROM "Journeys" AS j ORDER BY (j.JourneyEnd - j.JourneyStart) DESC ) AS res INNER JOIN TravelCards AS t ON res.Id = t.JourneyId GROUP BY res.Id, t.JobDuringJourney ORDER BY COUNT(t.JobDuringJourney);
16.310345
72
0.693446
20b7c1586608144ce9a20128dcc4ca90ced29ddb
323
py
Python
flags-dest/train_with_args.py
lambdaofgod/examples
26f7dd0ab58aba2f251e307982c34c9bd67d4797
[ "Apache-2.0" ]
9
2017-12-14T01:20:07.000Z
2020-04-30T09:33:55.000Z
flags-dest/train_with_args.py
lambdaofgod/examples
26f7dd0ab58aba2f251e307982c34c9bd67d4797
[ "Apache-2.0" ]
2
2019-08-15T16:32:00.000Z
2020-03-18T18:22:38.000Z
flags-dest/train_with_args.py
lambdaofgod/examples
26f7dd0ab58aba2f251e307982c34c9bd67d4797
[ "Apache-2.0" ]
4
2019-08-22T07:25:11.000Z
2020-06-08T07:07:50.000Z
import argparse # cue for Guild that interface is `args` p = argparse.ArgumentParser() p.add_argument("--learning-rate", type=float, default=0.01) p.add_argument("--epochs", type=int, default=10) args = p.parse_args() print("Training for %i epochs with a learning rate of %f" % (args.epochs, args.learning_rate))
29.363636
59
0.71517
12a018bfa8c67ec728226ccad1c7b7920200eae7
82
sql
SQL
doc/sample_queries/list_body_parts.sql
rafelafrance/traiter_odonata
0f4c459f673aabfb6840a4ee3bd827b4d1a8bc58
[ "MIT" ]
null
null
null
doc/sample_queries/list_body_parts.sql
rafelafrance/traiter_odonata
0f4c459f673aabfb6840a4ee3bd827b4d1a8bc58
[ "MIT" ]
2
2020-11-24T17:37:16.000Z
2021-08-31T23:07:51.000Z
doc/sample_queries/list_body_parts.sql
rafelafrance/traiter_odonata
0f4c459f673aabfb6840a4ee3bd827b4d1a8bc58
[ "MIT" ]
null
null
null
select distinct value as part from fields where field = 'body_part' order by part;
20.5
29
0.792683
a323a60019c8e3fb9e847581bb8e452813bcdf5a
5,121
java
Java
sevai-karangal/BloodDonateApp/src/com/sevaikarangal/blooddonationapp/DonorListActivity.java
kds119/eBay-Opportunity-Hack-Blr-2014
3bb0d35c88f4001a2fc50dca6349b06bc7f2f33d
[ "MIT" ]
1
2021-03-02T09:07:43.000Z
2021-03-02T09:07:43.000Z
sevai-karangal/BloodDonateApp/src/com/sevaikarangal/blooddonationapp/DonorListActivity.java
ebayohblr2014/eBay-Opportunity-Hack-Blr-2014
3bb0d35c88f4001a2fc50dca6349b06bc7f2f33d
[ "MIT" ]
null
null
null
sevai-karangal/BloodDonateApp/src/com/sevaikarangal/blooddonationapp/DonorListActivity.java
ebayohblr2014/eBay-Opportunity-Hack-Blr-2014
3bb0d35c88f4001a2fc50dca6349b06bc7f2f33d
[ "MIT" ]
2
2015-02-05T06:16:58.000Z
2015-02-05T16:10:46.000Z
package com.sevaikarangal.blooddonationapp; import java.util.Arrays; import java.util.HashMap; import java.util.List; import org.apache.http.Header; import android.app.ListActivity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; import com.google.gson.Gson; import com.loopj.android.http.AsyncHttpClient; import com.loopj.android.http.AsyncHttpResponseHandler; import com.loopj.android.http.RequestParams; import com.sevaikarangal.blooddonationapp.bean.DonorRequest; import com.sevaikarangal.blooddonationapp.bean.DonorRequestArray; public class DonorListActivity extends ListActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_donor_list); final Bundle bundleExtras = getIntent().getExtras(); String bloodGrp = null; String city = null; String locality = null; if (bundleExtras.getString("bloodGroup") != null) { bloodGrp = bundleExtras.getString("bloodGroup"); } if (bundleExtras.getString("locality") != null) { locality = bundleExtras.getString("locality"); } if (bundleExtras.getString("city") != null) { city = bundleExtras.getString("city"); } AsyncHttpClient client = new AsyncHttpClient(); RequestParams params = new RequestParams(); if (city != null) params.add("city", city); if (locality != null) params.add("locality", locality); if (bloodGrp != null) params.add("bloodGroup", bloodGrp); client.get(getApplicationContext(), "http://1-dot-blood-donor-svc.appspot.com/datastore/donor", params, new AsyncHttpResponseHandler() { @Override public void onSuccess(int statusCode, Header[] headers, byte[] response) { String responseString = new String(response); Toast.makeText(getApplicationContext(), new String(responseString), Toast.LENGTH_LONG).show(); System.out.println(new String(responseString)); Gson gson = new Gson(); DonorRequestArray donorArray = gson.fromJson(new String(responseString), DonorRequestArray.class); if (donorArray != null && donorArray.getDonorRequest() != null) { List<DonorRequest> values = Arrays.asList(donorArray.getDonorRequest()); DonorArrayAdapter adapter = new DonorArrayAdapter(getApplicationContext(), R.layout.activity_donor_item, values); setListAdapter(adapter); } } @Override public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) { Toast.makeText(getApplicationContext(), new String(errorResponse), Toast.LENGTH_LONG) .show(); } }); } public void invokeCall(View view) { Intent intent = new Intent(Intent.ACTION_DIAL); intent.setData(Uri.parse("tel:0123456789")); startActivity(intent); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.donor_list, menu); return true; } @Override protected void onListItemClick(ListView l, View v, int position, long id) { DonorRequest item = (DonorRequest) getListAdapter().getItem(position); Toast.makeText(this, item.getName() + " selected", Toast.LENGTH_LONG).show(); Intent intent = new Intent(getApplicationContext(), DonorDetailsActivity.class); intent.putExtra("DonorID", item.getDonorId()); } private class DonorArrayAdapter extends ArrayAdapter<DonorRequest> { HashMap<DonorRequest, Integer> mIdMap = new HashMap<DonorRequest, Integer>(); private final Context context; public DonorArrayAdapter(Context context, int textViewResourceId, List<DonorRequest> objects) { super(context, textViewResourceId, objects); this.context = context; for (int i = 0; i < objects.size(); ++i) { mIdMap.put(objects.get(i), i); } } @Override public long getItemId(int position) { DonorRequest item = getItem(position); return mIdMap.get(item); } @Override public boolean hasStableIds() { return true; } @Override public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater inflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); View rowView = inflater.inflate(R.layout.activity_donor_item, parent, false); DonorRequest item = getItem(position); TextView bloodGrp = (TextView) rowView.findViewById(R.id.bloodGrp); bloodGrp.setText(item.getBloodGroup()); TextView nameAddress = (TextView) rowView.findViewById(R.id.nameAddress); nameAddress.setText(item.getName() + "\n" + item.getPhoneNumber()); return rowView; } } }
33.253247
105
0.709822
44373a3e8f3b1a55b61a89c3f2a1888fbb3f9789
2,389
py
Python
clustergrammer/upload_pages/clustergrammer/make_clust_fun.py
delosrogers/clustergrammer-web
14102cfca328214d3bc8285e8331663fe0e5fad4
[ "MIT" ]
5
2018-04-04T16:25:06.000Z
2021-04-10T23:47:20.000Z
clustergrammer/upload_pages/clustergrammer/make_clust_fun.py
delosrogers/clustergrammer-web
14102cfca328214d3bc8285e8331663fe0e5fad4
[ "MIT" ]
8
2016-07-16T02:55:12.000Z
2022-02-02T16:42:17.000Z
clustergrammer/upload_pages/clustergrammer/make_clust_fun.py
delosrogers/clustergrammer-web
14102cfca328214d3bc8285e8331663fe0e5fad4
[ "MIT" ]
4
2019-05-28T08:52:41.000Z
2021-01-11T22:14:48.000Z
def make_clust(net, dist_type='cosine', run_clustering=True, dendro=True, requested_views=['pct_row_sum', 'N_row_sum'], linkage_type='average', sim_mat=False): ''' This will calculate multiple views of a clustergram by filtering the data and clustering after each filtering. This filtering will keep the top N rows based on some quantity (sum, num-non-zero, etc). ''' from copy import deepcopy import calc_clust import run_filter import make_views import scipy df = net.dat_to_df() threshold = 0.0001 df = run_filter.df_filter_row(df, threshold) df = run_filter.df_filter_col(df, threshold) # calculate initial view with no row filtering net.df_to_dat(df) # preparing to make similarity matrices of rows and cols ########################################################### # tmp_dist_mat = calc_clust.calc_distance_matrix(net.dat['mat'], 'col', # get_sim=True, # make_squareform=True, # filter_sim_below=0.1) # # print(tmp_dist_mat) # print(net.dat['node_info']['row']) # print('\n') # print(net.dat['node_info']['col']) calc_clust.cluster_row_and_col(net, dist_type=dist_type, linkage_type=linkage_type, run_clustering=run_clustering, dendro=dendro, ignore_cat=False) all_views = [] send_df = deepcopy(df) if 'N_row_sum' in requested_views: all_views = make_views.N_rows(net, send_df, all_views, dist_type=dist_type, rank_type='sum') if 'N_row_var' in requested_views: all_views = make_views.N_rows(net, send_df, all_views, dist_type=dist_type, rank_type='var') if 'pct_row_sum' in requested_views: all_views = make_views.pct_rows(net, send_df, all_views, dist_type=dist_type, rank_type='sum') if 'pct_row_var' in requested_views: all_views = make_views.pct_rows(net, send_df, all_views, dist_type=dist_type, rank_type='var') if sim_mat is True: print('make similarity matrices of rows and columns, add to viz data structure') net.viz['views'] = all_views
36.753846
84
0.588112
a38ca97ed7d04a04a6459a916c675396cc57279b
1,335
ts
TypeScript
electron/tray.ts
Nicolai8/tomatosplash
de3c42e42ca100181e51461526fb4621796d03d9
[ "MIT" ]
null
null
null
electron/tray.ts
Nicolai8/tomatosplash
de3c42e42ca100181e51461526fb4621796d03d9
[ "MIT" ]
null
null
null
electron/tray.ts
Nicolai8/tomatosplash
de3c42e42ca100181e51461526fb4621796d03d9
[ "MIT" ]
null
null
null
import { app, Menu, Tray, dialog } from 'electron'; import * as path from 'path'; import { checkForUpdates } from './autoUpdater'; let trayIcon: Electron.Tray; const iconPath = path.join(__dirname, '../assets/icon.png'); export const createTray = (mainWindow: Electron.BrowserWindow, isServing: boolean) => { trayIcon = new Tray(iconPath); const contextMenu = Menu.buildFromTemplate([ { label: 'Show App', click: () => { mainWindow.show(); mainWindow.maximize(); } }, { label: 'Toggle DevTools', enabled: isServing, click: () => { mainWindow.show(); mainWindow.webContents.toggleDevTools(); } }, { label: 'About', role: 'about', click: () => { dialog.showMessageBox({ type: 'info', message: `${app.getName()} v${app.getVersion().toString()}`, title: 'About' }); } }, { label: 'Check for updates...', click: checkForUpdates }, { label: 'Quit', click: function () { app.quit(); } } ]); trayIcon.setToolTip(app.getName()); trayIcon.setContextMenu(contextMenu); trayIcon.on('double-click', () => { if (!mainWindow.isVisible()) { mainWindow.show(); mainWindow.maximize(); } }); };
23.017241
87
0.545318
dbe90e2b33dab678ea1795375d70b15fb5d27d39
827
php
PHP
app/ApiModel.php
Sergio1310/Blog
9582f12684d5c9d2d010ca6146dc4a68052aa0a6
[ "MIT" ]
null
null
null
app/ApiModel.php
Sergio1310/Blog
9582f12684d5c9d2d010ca6146dc4a68052aa0a6
[ "MIT" ]
null
null
null
app/ApiModel.php
Sergio1310/Blog
9582f12684d5c9d2d010ca6146dc4a68052aa0a6
[ "MIT" ]
null
null
null
<?php namespace App; use Illuminate\Database\Eloquent\Model; use DB; class ApiModel extends Model { public static function getPosts(){ return DB::table('post AS p') ->join('likes AS l', 'l.id_post','p.id') ->select('p.id','p.titulo','p.usuario','p.imagen','p.contenido','l.nlike','l.ndislike','p.status','p.imagen','p.videoMovil') ->where('p.status',1) ->get(); } public static function getPostById($id){ return DB::table('post AS p') ->join('likes AS l', 'l.id_post','p.id') ->select('p.id','p.titulo','p.usuario','p.video','p.imagen','p.contenido','l.nlike','l.ndislike','p.status') ->where([ ['p.status',1], ['p.id',$id] ])->get(); } public static function getUsuario(){ return DB::table('usuario')->get(); } }
25.84375
129
0.563482
463bbba8a4824eab578780ca35d7382e51c85940
848
php
PHP
wstmart/home/controller/Orderrefunds.php
Elmwoods/PWareHouse
2a266c1a9c961b4088e4272bdad158a3ff71430a
[ "Apache-2.0" ]
null
null
null
wstmart/home/controller/Orderrefunds.php
Elmwoods/PWareHouse
2a266c1a9c961b4088e4272bdad158a3ff71430a
[ "Apache-2.0" ]
null
null
null
wstmart/home/controller/Orderrefunds.php
Elmwoods/PWareHouse
2a266c1a9c961b4088e4272bdad158a3ff71430a
[ "Apache-2.0" ]
null
null
null
<?php namespace wstmart\home\controller; use wstmart\common\model\OrderRefunds as M; /** * ============================================================================ * WSTMart多用户商城 * 版权所有 2016-2066 广州商淘信息科技有限公司,并保留所有权利。 * 官网地址:http://www.wstmart.net * 交流社区:http://bbs.shangtaosoft.com * 联系QQ:153289970 * ---------------------------------------------------------------------------- * 这不是一个自由软件!未经本公司授权您只能在不用于商业目的的前提下对程序代码进行修改和使用; * 不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ * 订单退款控制器 */ class Orderrefunds extends Base{ /** * 用户申请退款 */ public function refund(){ $m = new M(); $rs = $m->refund(); return $rs; } /** * 商家处理是否同意 */ public function shopRefund(){ $m = new M(); $rs = $m->shopRefund(); return $rs; } }
24.228571
80
0.444575
fa7fdf0d58c70195d34d1ca216b0ca4b0fbdec95
2,033
cpp
C++
Competitive Programming/Bit Manipulation/Divide two integers without using multiplication, division and mod operator.cpp
shreejitverma/GeeksforGeeks
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-18T05:14:28.000Z
2022-03-08T07:00:08.000Z
Competitive Programming/Bit Manipulation/Divide two integers without using multiplication, division and mod operator.cpp
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
6
2022-01-13T04:31:04.000Z
2022-03-12T01:06:16.000Z
Competitive Programming/Bit Manipulation/Divide two integers without using multiplication, division and mod operator.cpp
shivaniverma1/Competitive-Programming-1
d7bcb166369fffa9a031a258e925b6aff8d44e6c
[ "MIT" ]
2
2022-02-14T19:53:53.000Z
2022-02-18T05:14:30.000Z
/* https://www.geeksforgeeks.org/divide-two-integers-without-using-multiplication-division-mod-operator/ Divide two integers without using multiplication, division and mod operator Difficulty Level : Medium Last Updated : 03 Sep, 2021 Geek Week Given a two integers say a and b. Find the quotient after dividing a by b without using multiplication, division and mod operator. Example: Input : a = 10, b = 3 Output : 3 Input : a = 43, b = -8 Output : -5 Recommended: Please try your approach on {IDE} first, before moving on to the solution. Approach : Keep subtracting the dividend from the divisor until dividend becomes less than divisor. The dividend becomes the remainder, and the number of times subtraction is done becomes the quotient. */ // C++ implementation to Divide two // integers without using multiplication, // division and mod operator #include <bits/stdc++.h> using namespace std; // Function to divide a by b and // return floor value it int divide(long long dividend, long long divisor) { // Calculate sign of divisor i.e., // sign will be negative only iff // either one of them is negative // otherwise it will be positive int sign = ((dividend < 0) ^ (divisor < 0)) ? -1 : 1; // remove sign of operands dividend = abs(dividend); divisor = abs(divisor); // Initialize the quotient long long quotient = 0, temp = 0; // test down from the highest bit and // accumulate the tentative value for // valid bit for (int i = 31; i >= 0; --i) { if (temp + (divisor << i) <= dividend) { temp += divisor << i; quotient |= 1LL << i; } } //if the sign value computed earlier is -1 then negate the value of quotient if (sign == -1) quotient = -quotient; return quotient; } // Driver code int main() { int a = 10, b = 3; cout << divide(a, b) << "\n"; a = 43, b = -8; cout << divide(a, b); return 0; }
26.064103
130
0.632071
c6c8f0edf82c277ca1f8b18142689fa613d515ed
128
py
Python
kbsite/apps.py
PerpetuumCommunity/simplePostKB
f5afa9711bc9352d9032ede3e92d26bc088f1603
[ "MIT" ]
1
2018-05-21T10:55:37.000Z
2018-05-21T10:55:37.000Z
kbsite/apps.py
PerpetuumCommunity/simplePostKB
f5afa9711bc9352d9032ede3e92d26bc088f1603
[ "MIT" ]
null
null
null
kbsite/apps.py
PerpetuumCommunity/simplePostKB
f5afa9711bc9352d9032ede3e92d26bc088f1603
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class KbsiteConfig(AppConfig): name = 'kbsite'
16
39
0.789063
1c7a9715a2164e5ed105fb4851706416193156c4
251
lua
Lua
MMOCoreORB/bin/scripts/object/custom_content/draft_schematic/weapon/pistol_ion_stunner.lua
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
18
2017-02-09T15:36:05.000Z
2021-12-21T04:22:15.000Z
MMOCoreORB/bin/scripts/object/custom_content/draft_schematic/weapon/pistol_ion_stunner.lua
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
61
2016-12-30T21:51:10.000Z
2021-12-10T20:25:56.000Z
MMOCoreORB/bin/scripts/object/custom_content/draft_schematic/weapon/pistol_ion_stunner.lua
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
71
2017-01-01T05:34:38.000Z
2022-03-29T01:04:00.000Z
object_draft_schematic_weapon_pistol_ion_stunner = object_draft_schematic_weapon_shared_pistol_ion_stunner:new { } ObjectTemplates:addTemplate(object_draft_schematic_weapon_pistol_ion_stunner, "object/draft_schematic/weapon/pistol_ion_stunner.iff")
41.833333
133
0.908367
43d86af9ac47edfe5eb9ac79e1800079123d48b9
48
ts
TypeScript
packages/nindo/src/external/components/fileUpload/index.ts
geiger01/nindo
7ee6f39c6f1f10eb44c7dc922cf0b778d516d2e6
[ "MIT" ]
8
2022-01-09T14:50:35.000Z
2022-03-24T11:24:09.000Z
packages/nindo/src/external/components/fileUpload/index.ts
nitzano-cn/nindo
32adef1702a6869f3d2a208dba24d3f786c653cd
[ "MIT" ]
2
2022-03-20T15:50:35.000Z
2022-03-21T10:38:32.000Z
packages/nindo/src/external/components/fileUpload/index.ts
nitzano-cn/nindo
32adef1702a6869f3d2a208dba24d3f786c653cd
[ "MIT" ]
2
2022-01-30T10:21:35.000Z
2022-02-14T14:21:43.000Z
export { FileUpload } from './fileUpload.comp';
24
47
0.708333
7dc3f65d498e2c15bc14e8f431924e30b548aa60
695
sh
Shell
recipes/graphmap/build.sh
ieguinoa/bioconda-recipes
da8a66ec30d36273a8cdf8783a26604f23c45534
[ "MIT" ]
null
null
null
recipes/graphmap/build.sh
ieguinoa/bioconda-recipes
da8a66ec30d36273a8cdf8783a26604f23c45534
[ "MIT" ]
null
null
null
recipes/graphmap/build.sh
ieguinoa/bioconda-recipes
da8a66ec30d36273a8cdf8783a26604f23c45534
[ "MIT" ]
null
null
null
#!/bin/bash export CFLAGS="-I$PREFIX/include" export LDFLAGS="-L$PREFIX/lib" export CPATH=${PREFIX}/include mkdir -p $PREFIX/bin cd $SRC_DIR/codebase wget -O seqlib.tar.gz https://github.com/isovic/seqlib/archive/1d23fd0.tar.gz tar -xvf seqlib.tar.gz -C seqlib --strip-components 1 wget -O argumentparser.tar.gz https://github.com/isovic/argumentparser/archive/72af976.tar.gz tar -xvf argumentparser.tar.gz -C argumentparser --strip-components 1 cd $SRC_DIR if [ "$(uname)" == "Darwin" ]; then echo "Installing GraphMap for OSX." make mac cp bin/Mac/graphmap $PREFIX/bin else echo "Installing GraphMap for UNIX/Linux." make cp bin/Linux-x64/graphmap $PREFIX/bin fi
25.740741
93
0.728058
dddcb32d156555045356661605f5d0cc44ad02c8
900
java
Java
server/safencrypt-java/src/main/java/win/liuri/safencrypt/core/bean/SafencryptPublicKey.java
1iURI/safencrypt
1b781979d59c9b087ea56c352b2918261a7d20e0
[ "Apache-2.0" ]
null
null
null
server/safencrypt-java/src/main/java/win/liuri/safencrypt/core/bean/SafencryptPublicKey.java
1iURI/safencrypt
1b781979d59c9b087ea56c352b2918261a7d20e0
[ "Apache-2.0" ]
null
null
null
server/safencrypt-java/src/main/java/win/liuri/safencrypt/core/bean/SafencryptPublicKey.java
1iURI/safencrypt
1b781979d59c9b087ea56c352b2918261a7d20e0
[ "Apache-2.0" ]
null
null
null
package win.liuri.safencrypt.core.bean; import org.apache.commons.codec.binary.Hex; import java.security.KeyPair; import java.security.interfaces.RSAPublicKey; import java.util.UUID; /** * 公钥信息对象 */ public class SafencryptPublicKey { private String modulus; private String exponent; private String flag; public String getFlag() { return flag; } public String getModulus() { return modulus; } public String getExponent() { return exponent; } private SafencryptPublicKey() { } public SafencryptPublicKey(KeyPair keyPair) { RSAPublicKey publicKey = (RSAPublicKey) keyPair.getPublic(); modulus = new String(Hex.encodeHex(publicKey.getModulus().toByteArray())); exponent = new String(Hex.encodeHex(publicKey.getPublicExponent().toByteArray())); flag = UUID.randomUUID().toString(); } }
22.5
90
0.678889
6db457cb8429df639f34b9f4ba49e95b5e5a0b49
1,623
ts
TypeScript
src/json-body-parser.ts
ShallotJS/shallot-aws-websocket-wrapper
1239b791ec53aac8e416e23cba53e6ea8068f00c
[ "MIT" ]
1
2021-04-30T00:06:28.000Z
2021-04-30T00:06:28.000Z
src/json-body-parser.ts
ShallotJS/shallot-aws-websocket-wrapper
1239b791ec53aac8e416e23cba53e6ea8068f00c
[ "MIT" ]
null
null
null
src/json-body-parser.ts
ShallotJS/shallot-aws-websocket-wrapper
1239b791ec53aac8e416e23cba53e6ea8068f00c
[ "MIT" ]
null
null
null
/** * TypeScript + promises port of middy http-json-body-parser * https://github.com/middyjs/middy/tree/master/packages/http-json-body-parser */ import type { ShallotAWSMiddlewareWithOptions } from '@shallot/aws'; import type { APIGatewayEvent } from 'aws-lambda'; import HttpError from 'http-errors'; export interface TShallotJSONBodyParserOptions extends Record<string, unknown> { /** A function that transforms the results. This function is called for each member of the object. * If a member contains nested objects, the nested objects are transformed before the parent object is. */ reviver?: (key: string, value: unknown) => unknown; } /** * Shallot middleware that parses and replaces the JSON body of HTTP request bodies. * Requires the Content-Type header to be properly set. * * @param config optional object to pass config options */ const ShallotAWSSocketJsonBodyParser: ShallotAWSMiddlewareWithOptions< APIGatewayEvent, // eslint-disable-next-line @typescript-eslint/no-explicit-any any, TShallotJSONBodyParserOptions > = (config) => ({ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type before: async (request) => { try { if (request.event.body == null) throw new Error(); const bodyString = request.event.isBase64Encoded ? Buffer.from(request.event.body, 'base64').toString() : request.event.body; request.event.body = JSON.parse(bodyString, config?.reviver); } catch (_) { throw new HttpError.UnprocessableEntity('Invalid JSON content'); } }, }); export default ShallotAWSSocketJsonBodyParser;
36.066667
108
0.731978
ef4d95037bfcb3d41aaebb94cdc11e520141841c
6,159
js
JavaScript
scripts/closure.js
vega-studio/deltav
c7ff8b4c60fbfda4547c1f93f145249902259bd6
[ "MIT" ]
5
2020-04-03T20:52:07.000Z
2020-11-10T16:04:29.000Z
scripts/closure.js
vega-studio/deltav
c7ff8b4c60fbfda4547c1f93f145249902259bd6
[ "MIT" ]
2
2020-04-29T17:48:49.000Z
2020-04-29T17:49:19.000Z
scripts/closure.js
vega-studio/deltav
c7ff8b4c60fbfda4547c1f93f145249902259bd6
[ "MIT" ]
null
null
null
const fs = require('fs'); const fsExtra = require('fs-extra'); const tsickle = require('tsickle'); const { resolve, join, dirname, normalize, isAbsolute, relative } = require('path'); const ts = require('typescript'); const tslibPath = resolve('node_modules/tslib/tslib.d.ts'); const cachedLibs = new Map(); const cachedLibDir = normalize(dirname(ts.getDefaultLibFilePath({}))); /** Base compiler options to be customized and exposed. */ const baseCompilerOptions = { // Down level to ES2015: Angular users must lower "await" statements so that zone can intercept // them, so many users do down-level. This allows testing await_transformer.ts. target: ts.ScriptTarget.ES2015, // Disable searching for @types typings. This prevents TS from looking // around for a node_modules directory. types: [], // Setting the target to ES2015 sets the lib field to ['lib.es6.d.ts'] by // default. Override this value to also provide type declarations for BigInt // literals. lib: ['lib.es6.d.ts', 'lib.esnext.bigint.d.ts'], skipDefaultLibCheck: true, experimentalDecorators: true, module: ts.ModuleKind.CommonJS, strictNullChecks: true, noImplicitUseStrict: true, allowJs: false, importHelpers: true, noEmitHelpers: true, stripInternal: true, baseUrl: '.', paths: { // The compiler builtin 'tslib' library is looked up by name, // so this entry controls which code is used for tslib. tslib: [tslibPath], src: [resolve("src")] }, }; /** The TypeScript compiler options used by the test suite. */ const compilerOptions = { ...baseCompilerOptions, emitDecoratorMetadata: true, jsx: ts.JsxEmit.React, // Tests assume that rootDir is always present. rootDir: resolve('src'), }; function assertAbsolute(fileName) { if (!isAbsolute(fileName)) { throw new Error(`expected ${JSON.stringify(fileName)} to be absolute`); } } function createSourceCachingHost(sources, tsCompilerOptions = compilerOptions) { const host = ts.createCompilerHost(tsCompilerOptions); host.getCurrentDirectory = () => { console.log('getCurrentDirectory', resolve('./dist/src')); return resolve('.'); }; host.getSourceFile = (fileName, _languageVersion, _onError) => { assertAbsolute(fileName); // Normalize path to fix wrong directory separators on Windows which // would break the equality check. fileName = normalize(fileName); if (cachedLibs.has(fileName)) { console.log('Cached Source File:', fileName); return cachedLibs.get(fileName); } // Cache files in TypeScript's lib directory. if (fileName.startsWith(cachedLibDir)) { console.log('Cached Source File:', fileName); const sf = ts.createSourceFile( fileName, fs.readFileSync(fileName, 'utf8'), ts.ScriptTarget.Latest, true ); cachedLibs.set(fileName, sf); return sf; } if (fileName === tslibPath) { console.log('Provided Source File:', fileName); return ts.createSourceFile( fileName, fs.readFileSync(fileName, 'utf8'), ts.ScriptTarget.Latest, true ); } const contents = sources.get(fileName); if (contents !== undefined) { console.log('Provided Source File:', fileName); return ts.createSourceFile(fileName, contents, ts.ScriptTarget.Latest, true); } console.log('File System Source File:', fileName); return ts.createSourceFile( fileName, fs.readFileSync(fileName, 'utf8'), ts.ScriptTarget.Latest, true ); }; const originalFileExists = host.fileExists; host.fileExists = fileName => { assertAbsolute(fileName); if (fs.existsSync(fileName)) { return true; } return originalFileExists.call(host, fileName); }; return host; } function createProgramAndHost(sources, tsCompilerOptions = compilerOptions) { const host = createSourceCachingHost(sources); const program = ts.createProgram(Array.from(sources.keys()), tsCompilerOptions, host); return { program, host }; } function emitWithTsickle( tsSources, tsConfigOverride = {}, tsickleHostOverride = {}, customTransformers ) { const tsCompilerOptions = { ...compilerOptions, ...tsConfigOverride }; const sources = new Map(); for (const fileName of Object.keys(tsSources)) { sources.set(join(tsCompilerOptions.rootDir, fileName), tsSources[fileName]); } const { program, host: tsHost } = createProgramAndHost(sources, tsCompilerOptions); // expectDiagnosticsEmpty(ts.getPreEmitDiagnostics(program)); const tsickleHost = { es5Mode: true, googmodule: false, convertIndexImportShorthand: true, transformDecorators: true, transformTypesToClosure: true, logWarning: _diag => {}, shouldSkipTsickleProcessing: _fileName => false, shouldIgnoreWarningsForPath: () => false, pathToModuleName: (context, importPath) => { importPath = importPath.replace(/(\.d)?\.[tj]s$/, ''); if (importPath[0] === '.') importPath = join(dirname(context), importPath); return importPath.replace(/\/|\\/g, '.'); }, fileNameToModuleId: fileName => fileName.replace(/^\.\//, ''), ...tsickleHostOverride, options: tsCompilerOptions, moduleResolutionHost: tsHost, }; const jsSources = {}; tsickle.emit( program, tsickleHost, (fileName, data) => { jsSources[relative(tsCompilerOptions.rootDir, fileName)] = data; }, /* sourceFile */ undefined, /* cancellationToken */ undefined, /* emitOnlyDtsFiles */ undefined, customTransformers ); return jsSources; } async function start() { const tsSources = { 'index.ts': fs.readFileSync(resolve('src/index.ts'), { encoding: 'utf8' }), }; const jsSources = emitWithTsickle( tsSources, undefined, { shouldSkipTsickleProcessing: () => false, }, { beforeTs: [] } ); for (const path of Object.keys(jsSources)) { await fsExtra.ensureDir(resolve('dist/closure', dirname(path))); const outPath = resolve('dist/closure', path); fs.writeFileSync(outPath, jsSources[path], { encoding: 'utf8' }); } } start();
29.610577
97
0.675272
bb886641a83d2cf7aeacf8e437b9e0b880a06f1f
1,235
cs
C#
Assets/Scripts/ObjectPooler.cs
vikkymaurya/Object-Pooling
3c3a0713f37145b45c852710151d5a2504196436
[ "MIT" ]
null
null
null
Assets/Scripts/ObjectPooler.cs
vikkymaurya/Object-Pooling
3c3a0713f37145b45c852710151d5a2504196436
[ "MIT" ]
null
null
null
Assets/Scripts/ObjectPooler.cs
vikkymaurya/Object-Pooling
3c3a0713f37145b45c852710151d5a2504196436
[ "MIT" ]
null
null
null
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObjectPooler : MonoBehaviour { public static ObjectPooler Instance; public GameObject prefab; public float poolAmount; List<GameObject> bulletPools; bool newObject = true; private void Awake() { if(Instance == null) { Instance = this; }else if(Instance !=this) { Destroy(gameObject); } } void Start() { bulletPools = new List<GameObject>(); for (int i = 0; i < poolAmount; i++) { GameObject temBullet = Instantiate(prefab) as GameObject; temBullet.SetActive(false); bulletPools.Add(temBullet); } } public GameObject ObjectFromPool() { for (int i = 0; i < bulletPools.Count; i++) { if(!bulletPools[i].activeInHierarchy) { return bulletPools[i]; } } if (newObject) { GameObject temBullet = Instantiate(prefab) as GameObject; bulletPools.Add(temBullet); return temBullet; } return null; } }
21.666667
69
0.534413
8ecf680faa8fa4176c3cb0d669965a50f751c533
5,383
js
JavaScript
suricata/apis/search/all_5f.js
onosfw/apis
3dd33b600bbd73bb1b8e0a71272efe1a45f42458
[ "Apache-2.0" ]
null
null
null
suricata/apis/search/all_5f.js
onosfw/apis
3dd33b600bbd73bb1b8e0a71272efe1a45f42458
[ "Apache-2.0" ]
null
null
null
suricata/apis/search/all_5f.js
onosfw/apis
3dd33b600bbd73bb1b8e0a71272efe1a45f42458
[ "Apache-2.0" ]
null
null
null
var searchData= [ ['_5f_5fattribute_5f_5f',['__attribute__',['../app-layer-dns-common_8h.html#a185bfb218b45a3a8a732233a35624a53',1,'__attribute__():&#160;alert-unified2-alert.c'],['../decode_8h.html#aeab68f17dc686a2f7dc72ab2b712e464',1,'__attribute__():&#160;decode.h'],['../app-layer-events_8h.html#a073588e8d020781d77228837a78fffcf',1,'__attribute__():&#160;app-layer-events.h'],['../decode-events_8h.html#a32854f340aa2ee99098c0237363122ec',1,'__attribute__():&#160;decode-events.h'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)):&#160;alert-unified2-alert.c'],['../app-layer-dns-common_8h.html#aea3ccff62cacbff65fdb6cdfb06f3044',1,'__attribute__((__packed__)) DNSHeader:&#160;alert-unified2-alert.c'],['../app-layer-dns-tcp_8c.html#a50711f956ec45625c9e5f29197db9187',1,'__attribute__((__packed__)):&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)):&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)):&#160;alert-unified2-alert.c'],['../data-queue_8h.html#a9a116c7cb4678d7a60d8b170b2e8b713',1,'__attribute__((aligned(CLS))) SCDQDataQueue:&#160;data-queue.h'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)) ErspanHdr:&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)) EthernetHdr:&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)) GREHdr:&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)) ICMPV4Hdr:&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)) IPV4Hdr:&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)) IPV6Hdr:&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)) PPPHdr:&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)) PPPOEDiscoveryTag:&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)) SCTPHdr:&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)) SllHdr:&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)) TCPHdr:&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)) TemplateHdr:&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)) UDPHdr:&#160;alert-unified2-alert.c'],['../group__httplayer.html#gad30ea512c21db81ad44bde62350dd636',1,'__attribute__((__packed__)) VLANHdr:&#160;alert-unified2-alert.c'],['../flow-hash_8h.html#a007b5cc8cce553f1e099b5d233d43460',1,'__attribute__((aligned(CLS))) FlowBucket:&#160;flow-hash.h'],['../host_8h.html#ab6e2bd9783207a2ec08abcd101c884d7',1,'__attribute__((aligned(CLS))) HostHashRow:&#160;host.h'],['../ippair_8h.html#ae3f085790052b19acb6fa71d7ab2d631',1,'__attribute__((aligned(CLS))) IPPairHashRow:&#160;ippair.h'],['../source-erf-file_8c.html#a9ca6c937f3b3b53ad39e0249ebba47e1',1,'__attribute__((packed)):&#160;source-erf-file.c'],['../tmqh-packetpool_8h.html#a664fda51f28c1f8a644768eccf11f4c6',1,'__attribute__((aligned(CLS))) PktPoolLockedStack:&#160;tmqh-packetpool.h'],['../util-decode-der_8h.html#ac6b855a653b512b286be3661b7887448',1,'__attribute__((packed)) Asn1ElementType:&#160;source-erf-file.c']]], ['_5f_5fuse_5fgnu',['__USE_GNU',['../suricata-common_8h.html#adc4cc5c67b56f34138d786ef6331e3f4',1,'suricata-common.h']]], ['_5f_5fwordsize',['__WORDSIZE',['../suricata-common_8h.html#aeea7ec6e47ecea02cc6812b268034b28',1,'suricata-common.h']]], ['_5fbb',['_bb',['../structhtp__urlenp__t.html#ad46db3c66774bb8e412168ef21704d3e',1,'htp_urlenp_t']]], ['_5fcomplete',['_complete',['../structhtp__urlenp__t.html#ad3c61bb7bd48b8053763faebd1be93b9',1,'htp_urlenp_t']]], ['_5ffakeipv4hdr',['_FakeIPv4Hdr',['../struct__FakeIPv4Hdr.html',1,'']]], ['_5ffakeipv6hdr',['_FakeIPv6Hdr',['../struct__FakeIPv6Hdr.html',1,'']]], ['_5ffile_5foffset_5fbits',['_FILE_OFFSET_BITS',['../util-coredump-config_8c.html#a44d01ba0a136b8e27ad362f5a823d14e',1,'util-coredump-config.c']]], ['_5fgnu_5fsource',['_GNU_SOURCE',['../suricata-common_8h.html#a369266c24eacffb87046522897a570d5',1,'suricata-common.h']]], ['_5fipv4_5fget_5fipoffset',['_IPV4_GET_IPOFFSET',['../decode-ipv4_8h.html#ad44c871150ff3052153fcd7a1e6d69cf',1,'decode-ipv4.h']]], ['_5fname',['_name',['../structhtp__urlenp__t.html#a8e2efd2d74352b275748abd83d3ad4bf',1,'htp_urlenp_t']]], ['_5fq_5finvalidate',['_Q_INVALIDATE',['../queue_8h.html#a628c2134ca520da4fdb6a53d27930977',1,'queue.h']]], ['_5fstate',['_state',['../structhtp__urlenp__t.html#a4dfdd6b204eb2ab9aad71f5c30261913',1,'htp_urlenp_t']]], ['_5fthread_5faffinity',['_THREAD_AFFINITY',['../util-affinity_8c.html#a85473b65053ad5b7b6461c99c2315d60',1,'util-affinity.c']]] ];
299.055556
3,868
0.782278
0ab958e1e1e20f6c6dac505efe5c3a5b5d687551
1,743
cs
C#
ManifoldWmsDriver/ManifoldWmsDriverAoiSettings.cs
cartomatic/WmsDriver
ab057196433ea40262aa6bd06687506efa0ea787
[ "WTFPL" ]
null
null
null
ManifoldWmsDriver/ManifoldWmsDriverAoiSettings.cs
cartomatic/WmsDriver
ab057196433ea40262aa6bd06687506efa0ea787
[ "WTFPL" ]
11
2015-12-20T10:31:49.000Z
2020-09-06T09:50:16.000Z
ManifoldWmsDriver/ManifoldWmsDriverAoiSettings.cs
cartomatic/WmsDriver
ab057196433ea40262aa6bd06687506efa0ea787
[ "WTFPL" ]
null
null
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cartomatic.Wms { /// <summary> /// AOI settings used when refreshing 'fake' linked components /// </summary> public class ManifoldWmsDriverAoiSettings { public ManifoldWmsDriverAoiSettings() { } /// <summary> /// Name of the component being fake linked /// </summary> public string Comp { get; set; } /// <summary> /// db credentials /// </summary> public Cartomatic.Utils.Data.DataSourceCredentials DataSourceCredentials { get; set; } /// <summary> /// Whether or not the geometry is transferred as binary /// </summary> public bool UseBinaryGeom { get; set; } /// <summary> /// A query used to retrieve the data with appropriate (per data source type) replacement strings used to customise the AOI /// the replacement strings are: /// {t} - top edge of the bbox /// {b} - bottom edge of the bbox /// {l} - left edge of the bbox /// {r} - right edge of the bbox /// Examples: /// pgsql - select label, st_astext(geometry) as geom_wkt from public.velden where 'BOX({l} {b},{r} {t})'::box2d && "geometry"; /// sqlserver - select label, [geometry].STAsText() as geom_wkt from dbo.velden where Geometry::STGeomFromText('POLYGON({l} {b},{l} {t},{r} {t}, {r} {b}, {l} {b})', 28992).STIntersects([Geometry]) = 1; /// </summary> public string Query { get; set; } //TODO collar to be used when refreshing the data for given component //public int? aoiCollar { get; set; } } }
34.86
209
0.598394
2beafa59f080e2df89c44e180affa698471dabd9
21,398
sql
SQL
csapp.sql
ikeogu/cs-app
2360d536439210042af015321c05434cad99d617
[ "MIT" ]
null
null
null
csapp.sql
ikeogu/cs-app
2360d536439210042af015321c05434cad99d617
[ "MIT" ]
null
null
null
csapp.sql
ikeogu/cs-app
2360d536439210042af015321c05434cad99d617
[ "MIT" ]
null
null
null
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3307 -- Generation Time: Jul 25, 2021 at 07:07 PM -- Server version: 8.0.24 -- PHP Version: 8.0.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `csapp` -- -- -------------------------------------------------------- -- -- Table structure for table `accounts` -- CREATE TABLE `accounts` ( `id` bigint UNSIGNED NOT NULL, `user_id` int NOT NULL, `status` int NOT NULL, `acct_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `acct_bal` double NOT NULL, `loan_bal` double NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `accounts` -- INSERT INTO `accounts` (`id`, `user_id`, `status`, `acct_number`, `acct_bal`, `loan_bal`, `created_at`, `updated_at`) VALUES (1, 6, 1, '8133627619', 52000, 0, '2021-07-06 15:02:13', '2021-07-25 18:05:42'), (3, 8, 1, '0212002930', 56000, 0, '2021-07-06 16:01:08', '2021-07-25 18:05:42'), (6, 11, 1, '8142548510', 392000, 0, '2021-07-06 22:05:19', '2021-07-25 18:05:42'); -- -------------------------------------------------------- -- -- Table structure for table `deductions` -- CREATE TABLE `deductions` ( `id` bigint UNSIGNED NOT NULL, `user_id` int NOT NULL, `account_id` int NOT NULL, `earns` int NOT NULL, `contribution` int NOT NULL, `unrecovered_loan` int NOT NULL, `month` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `year` varchar(22) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `total` int NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `deductions` -- INSERT INTO `deductions` (`id`, `user_id`, `account_id`, `earns`, `contribution`, `unrecovered_loan`, `month`, `year`, `total`, `created_at`, `updated_at`) VALUES (7, 6, 1, 40000, 4000, 0, 'Dec', '2021', 4000, '2021-07-25 18:03:57', '2021-07-25 18:03:57'), (8, 8, 3, 50000, 5000, 0, 'Dec', '2021', 5000, '2021-07-25 18:03:57', '2021-07-25 18:03:57'), (9, 11, 6, 50000, 28000, 0, 'Dec', '2021', 28000, '2021-07-25 18:03:57', '2021-07-25 18:03:57'); -- -------------------------------------------------------- -- -- Table structure for table `dividends` -- CREATE TABLE `dividends` ( `id` bigint UNSIGNED NOT NULL, `company` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `announced` datetime NOT NULL, `interim` int NOT NULL, `final_div` double NOT NULL, `total_div` double NOT NULL, `bonus` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `closure_date` datetime NOT NULL, `agm` date NOT NULL, `payment_d` date NOT NULL, `quali_date` date NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `expenditures` -- CREATE TABLE `expenditures` ( `id` bigint UNSIGNED NOT NULL, `expense` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `amount` double NOT NULL, `month` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `year` int NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `expenditures` -- INSERT INTO `expenditures` (`id`, `expense`, `description`, `amount`, `month`, `year`, `created_at`, `updated_at`) VALUES (1, 'Diseal', 'JPL', 20000, '2021-05', 2022, '2021-07-24 01:48:50', '2021-07-24 01:48:50'); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint UNSIGNED NOT NULL, `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `financial_years` -- CREATE TABLE `financial_years` ( `id` bigint UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `status` int NOT NULL DEFAULT '1', `begin_date` date NOT NULL, `close_date` date NOT NULL, `bf` double DEFAULT NULL, `bd` double DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `financial_years` -- INSERT INTO `financial_years` (`id`, `name`, `description`, `status`, `begin_date`, `close_date`, `bf`, `bd`, `created_at`, `updated_at`) VALUES (1, '2021', 'Excellent', 1, '2021-07-12', '2021-07-15', 20000, 0, '2021-07-23 13:02:48', '2021-07-23 13:02:48'); -- -------------------------------------------------------- -- -- Table structure for table `histories` -- CREATE TABLE `histories` ( `id` bigint UNSIGNED NOT NULL, `account_id` int NOT NULL, `amount` double NOT NULL, `acct_bal` double NOT NULL, `user_id` int NOT NULL, `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `can_pay` int NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `histories` -- INSERT INTO `histories` (`id`, `account_id`, `amount`, `acct_bal`, `user_id`, `status`, `can_pay`, `created_at`, `updated_at`) VALUES (1, 1, 4000, 4000, 6, 'Credit', 10, '2021-07-07 04:23:16', '2021-07-07 04:23:16'), (2, 3, 5000, 5000, 8, 'Credit', 10, '2021-07-07 04:23:16', '2021-07-07 04:23:16'), (3, 6, 28000, 28000, 11, 'Credit', 56, '2021-07-07 04:23:16', '2021-07-07 04:23:16'), (4, 1, 4000, 4000, 6, 'Credit', 10, '2021-07-07 04:23:27', '2021-07-07 04:23:27'), (5, 3, 5000, 5000, 8, 'Credit', 10, '2021-07-07 04:23:28', '2021-07-07 04:23:28'), (6, 6, 28000, 28000, 11, 'Credit', 56, '2021-07-07 04:23:28', '2021-07-07 04:23:28'), (7, 1, 4000, 4000, 6, 'Credit', 10, '2021-07-07 04:23:35', '2021-07-07 04:23:35'), (8, 3, 5000, 5000, 8, 'Credit', 10, '2021-07-07 04:23:35', '2021-07-07 04:23:35'), (9, 6, 28000, 28000, 11, 'Credit', 56, '2021-07-07 04:23:35', '2021-07-07 04:23:35'), (10, 1, 4000, 4000, 6, 'Credit', 10, '2021-07-07 04:23:47', '2021-07-07 04:23:47'), (11, 3, 5000, 5000, 8, 'Credit', 10, '2021-07-07 04:23:47', '2021-07-07 04:23:47'), (12, 6, 28000, 28000, 11, 'Credit', 56, '2021-07-07 04:23:47', '2021-07-07 04:23:47'), (13, 6, 28000, 28000, 11, 'Credit', 56, '2021-07-07 04:24:18', '2021-07-07 04:24:18'), (14, 6, 28000, 56000, 11, 'Credit', 56, '2021-07-07 08:23:47', '2021-07-07 08:23:47'), (15, 3, 9000, -4000, 8, 'Debit', 10, '2021-07-07 08:24:38', '2021-07-07 08:24:38'), (16, 1, 4000, 8000, 6, 'Credit', 10, '2021-07-07 08:24:47', '2021-07-07 08:24:47'), (17, 3, 5000, 1000, 8, 'Credit', 10, '2021-07-07 08:24:47', '2021-07-07 08:24:47'), (18, 6, 28000, 84000, 11, 'Credit', 56, '2021-07-07 08:24:47', '2021-07-07 08:24:47'), (19, 1, 4000, 12000, 6, 'Credit', 10, '2021-07-07 08:24:50', '2021-07-07 08:24:50'), (20, 3, 5000, 6000, 8, 'Credit', 10, '2021-07-07 08:24:50', '2021-07-07 08:24:50'), (21, 6, 28000, 112000, 11, 'Credit', 56, '2021-07-07 08:24:50', '2021-07-07 08:24:50'), (22, 1, 4000, 16000, 6, 'Credit', 10, '2021-07-07 08:24:51', '2021-07-07 08:24:51'), (23, 3, 5000, 11000, 8, 'Credit', 10, '2021-07-07 08:24:51', '2021-07-07 08:24:51'), (24, 6, 28000, 140000, 11, 'Credit', 56, '2021-07-07 08:24:51', '2021-07-07 08:24:51'), (25, 1, 4000, 20000, 6, 'Credit', 10, '2021-07-07 08:24:51', '2021-07-07 08:24:51'), (26, 3, 5000, 16000, 8, 'Credit', 10, '2021-07-07 08:24:51', '2021-07-07 08:24:51'), (27, 6, 28000, 168000, 11, 'Credit', 56, '2021-07-07 08:24:51', '2021-07-07 08:24:51'), (28, 1, 4000, 24000, 6, 'Credit', 10, '2021-07-07 08:24:52', '2021-07-07 08:24:52'), (29, 3, 5000, 21000, 8, 'Credit', 10, '2021-07-07 08:24:52', '2021-07-07 08:24:52'), (30, 6, 28000, 196000, 11, 'Credit', 56, '2021-07-07 08:24:52', '2021-07-07 08:24:52'), (31, 1, 4000, 28000, 6, 'Credit', 10, '2021-07-07 08:24:52', '2021-07-07 08:24:52'), (32, 3, 5000, 26000, 8, 'Credit', 10, '2021-07-07 08:24:52', '2021-07-07 08:24:52'), (33, 6, 28000, 224000, 11, 'Credit', 56, '2021-07-07 08:24:52', '2021-07-07 08:24:52'), (34, 1, 4000, 32000, 6, 'Credit', 10, '2021-07-07 08:24:52', '2021-07-07 08:24:52'), (35, 3, 5000, 31000, 8, 'Credit', 10, '2021-07-07 08:24:52', '2021-07-07 08:24:52'), (36, 6, 28000, 252000, 11, 'Credit', 56, '2021-07-07 08:24:52', '2021-07-07 08:24:52'), (37, 1, 4000, 36000, 6, 'Credit', 10, '2021-07-07 08:24:53', '2021-07-07 08:24:53'), (38, 3, 5000, 36000, 8, 'Credit', 10, '2021-07-07 08:24:53', '2021-07-07 08:24:53'), (39, 6, 28000, 280000, 11, 'Credit', 56, '2021-07-07 08:24:53', '2021-07-07 08:24:53'), (40, 1, 4000, 40000, 6, 'Credit', 10, '2021-07-07 08:24:53', '2021-07-07 08:24:53'), (41, 3, 5000, 41000, 8, 'Credit', 10, '2021-07-07 08:24:53', '2021-07-07 08:24:53'), (42, 6, 28000, 308000, 11, 'Credit', 56, '2021-07-07 08:24:53', '2021-07-07 08:24:53'), (43, 1, 4000, 44000, 6, 'Credit', 10, '2021-07-07 08:24:54', '2021-07-07 08:24:54'), (44, 3, 5000, 46000, 8, 'Credit', 10, '2021-07-07 08:24:54', '2021-07-07 08:24:54'), (45, 6, 28000, 336000, 11, 'Credit', 56, '2021-07-07 08:24:54', '2021-07-07 08:24:54'), (46, 1, 4000, 48000, 6, 'Credit', 10, '2021-07-22 17:25:33', '2021-07-22 17:25:33'), (47, 3, 5000, 51000, 8, 'Credit', 10, '2021-07-22 17:25:33', '2021-07-22 17:25:33'), (48, 6, 28000, 364000, 11, 'Credit', 56, '2021-07-22 17:25:33', '2021-07-22 17:25:33'), (49, 1, 4000, 52000, 6, 'Credit', 10, '2021-07-25 18:05:42', '2021-07-25 18:05:42'), (50, 3, 5000, 56000, 8, 'Credit', 10, '2021-07-25 18:05:42', '2021-07-25 18:05:42'), (51, 6, 28000, 392000, 11, 'Credit', 56, '2021-07-25 18:05:42', '2021-07-25 18:05:42'); -- -------------------------------------------------------- -- -- Table structure for table `incomes` -- CREATE TABLE `incomes` ( `id` bigint UNSIGNED NOT NULL, `revenue` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `amount` double NOT NULL, `month` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `year` int NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `incomes` -- INSERT INTO `incomes` (`id`, `revenue`, `description`, `amount`, `month`, `year`, `created_at`, `updated_at`) VALUES (1, 'Contibution', 'Deduction money from Workers', 10000, '2021-01', 2022, '2021-07-24 01:45:14', '2021-07-24 01:45:14'), (2, 'Loan', 'Just Loan', 1000000, '2021-05', 2019, '2021-07-24 01:47:28', '2021-07-24 01:47:28'); -- -------------------------------------------------------- -- -- Table structure for table `loans` -- CREATE TABLE `loans` ( `id` bigint UNSIGNED NOT NULL, `name` varchar(225) COLLATE utf8mb4_unicode_ci NOT NULL, `amount_range` varchar(225) COLLATE utf8mb4_unicode_ci NOT NULL, `duration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `intrest` double NOT NULL, `status` int NOT NULL DEFAULT '1', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `loans` -- INSERT INTO `loans` (`id`, `name`, `amount_range`, `duration`, `intrest`, `status`, `created_at`, `updated_at`) VALUES (2, 'Simple Plan', '1000 - 20000', '180', 1.2, 1, '2021-07-25 16:24:34', '2021-07-25 16:24:34'); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2021_07_06_134311_create_accounts_table', 1), (5, '2021_07_06_231123_create_histories_table', 2), (6, '2021_07_07_055900_create_withdrawals_table', 3), (7, '2021_07_07_060641_create_loans_table', 3), (8, '2021_07_07_093717_create_products_table', 4), (9, '2021_07_23_110330_create_financial_years_table', 5), (10, '2021_07_24_013511_create_incomes_table', 6), (11, '2021_07_24_013528_create_expenditures_table', 6), (12, '2021_07_24_055719_create_dividends_table', 7), (13, '2021_07_25_173427_create_deductions_table', 8); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `products` -- CREATE TABLE `products` ( `id` bigint UNSIGNED NOT NULL, `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `price` double(8,2) NOT NULL, `color` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `size` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `discount` double(8,2) DEFAULT NULL, `model` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status` int NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `avatar` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `can_pay` int DEFAULT NULL, `salary` bigint DEFAULT NULL, `isAdmin` int NOT NULL DEFAULT '2', `status` int DEFAULT NULL, `keep_track` varchar(12) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `avatar`, `email`, `phone`, `can_pay`, `salary`, `isAdmin`, `status`, `keep_track`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'Demon Admin', NULL, '[email protected]', '09021805432', NULL, NULL, 1, NULL, NULL, '2021-07-06 14:12:12', '$2y$10$wgJPTw8x7CrmA8OshEcZj.9V0mTCeFQGjy2SQK6Ozs5TAD19TH7Li', 'lgh1dIr8gUTSRL3BXLod7nAZTmQyVXh9t52NV4sgAPGpx8jcaCvv6UIR3bqO', '2021-07-06 14:12:12', '2021-07-06 14:12:12'), (6, 'Goodness Ugo', NULL, '[email protected]', '08133627619', 10, 40000, 2, 1, NULL, NULL, '$2y$10$mfXcPD8iGeZKxberyM5RPuhCeohmDWw3Ett3o8Bx7zsi64F6ZJw1.', NULL, '2021-07-06 15:02:13', '2021-07-21 09:47:29'), (8, 'pa', NULL, '[email protected]', '90212002930', 10, 50000, 2, 1, NULL, NULL, '$2y$10$5uVW.T/xRHyMQ803MJLXQ.T3QZv8mGymor2D9sm90vSpd.v9qN/wq', NULL, '2021-07-06 16:01:08', '2021-07-06 16:01:08'), (11, 'EMMANUELLA', NULL, '[email protected]', '08142548510', 56, 50000, 2, 1, 'DQPjZa3z', NULL, '$2y$10$tAlwrEAJKbBH8WaaEbYl6O3o8esHPyrEucQwaXZvvTt9rA3N7YVr.', 'OU3RMtCphcTWyZH8HJg1HigXn5X516g4zsRESwlxeoMRaEwxsUrTsLIStjPJ', '2021-07-06 22:05:19', '2021-07-07 03:57:37'); -- -------------------------------------------------------- -- -- Table structure for table `withdrawals` -- CREATE TABLE `withdrawals` ( `id` bigint UNSIGNED NOT NULL, `user_id` int NOT NULL, `amount` int NOT NULL, `reason` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `status` int NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `withdrawals` -- INSERT INTO `withdrawals` (`id`, `user_id`, `amount`, `reason`, `status`, `created_at`, `updated_at`) VALUES (1, 11, 5000, 'I need money', 2, '2021-07-07 05:45:18', '2021-07-07 08:14:51'), (2, 11, 9000, 'Reason...\r\nI just wan to spend', 1, '2021-07-07 05:46:18', '2021-07-07 08:13:39'), (3, 11, 2000, 'Reason...', 4, '2021-07-07 05:47:23', '2021-07-07 08:12:00'), (4, 11, 40000, 'I need money', 3, '2021-07-07 08:26:54', '2021-07-07 08:26:54'); -- -- Indexes for dumped tables -- -- -- Indexes for table `accounts` -- ALTER TABLE `accounts` ADD PRIMARY KEY (`id`); -- -- Indexes for table `deductions` -- ALTER TABLE `deductions` ADD PRIMARY KEY (`id`); -- -- Indexes for table `dividends` -- ALTER TABLE `dividends` ADD PRIMARY KEY (`id`); -- -- Indexes for table `expenditures` -- ALTER TABLE `expenditures` ADD PRIMARY KEY (`id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Indexes for table `financial_years` -- ALTER TABLE `financial_years` ADD PRIMARY KEY (`id`); -- -- Indexes for table `histories` -- ALTER TABLE `histories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `incomes` -- ALTER TABLE `incomes` ADD PRIMARY KEY (`id`); -- -- Indexes for table `loans` -- ALTER TABLE `loans` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `products` -- ALTER TABLE `products` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`), ADD UNIQUE KEY `users_phone_unique` (`phone`); -- -- Indexes for table `withdrawals` -- ALTER TABLE `withdrawals` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `accounts` -- ALTER TABLE `accounts` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `deductions` -- ALTER TABLE `deductions` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `dividends` -- ALTER TABLE `dividends` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `expenditures` -- ALTER TABLE `expenditures` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `financial_years` -- ALTER TABLE `financial_years` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `histories` -- ALTER TABLE `histories` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=52; -- -- AUTO_INCREMENT for table `incomes` -- ALTER TABLE `incomes` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `loans` -- ALTER TABLE `loans` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `products` -- ALTER TABLE `products` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `withdrawals` -- ALTER TABLE `withdrawals` MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
36.14527
282
0.662772
a1cab002e71952814e80353f31f34caa211e763c
3,424
lua
Lua
include/loader.lua
Bilal2453/Script-Bot
035739ad805818ff6afab3a41bf28f41ccc042d2
[ "MIT" ]
11
2020-03-02T17:32:49.000Z
2020-09-07T17:09:48.000Z
include/loader.lua
Bilal2453/Script-Bot
035739ad805818ff6afab3a41bf28f41ccc042d2
[ "MIT" ]
null
null
null
include/loader.lua
Bilal2453/Script-Bot
035739ad805818ff6afab3a41bf28f41ccc042d2
[ "MIT" ]
null
null
null
local fs = require 'fs' local pathJoin = require 'pathjoin'.pathJoin local new_fs_event = require 'uv'.new_fs_event local stat, exists, scandir, readfile = fs.statSync, fs.existsSync, fs.scandirSync, fs.readFileSync local module = {} local function call(c, ...) if type(c) == "function" then return pcall(c, ...) end return end local function read(p, ...) for _, v in ipairs{...} do p = pathJoin(p, v) end local fileData, errmsg = readfile(p) if not fileData then return false, errmsg end return fileData end local function watch(path, callback) local stats = {} local oldStat = stat(path) local isFile = oldStat.type == 'file' local function rPath(p, n) return isFile and p or pathJoin(p, n) end if isFile then stats[path] = oldStat else local joined for name in scandir(path) do joined = pathJoin(path, name) stats[joined] = stat(joined) end end local fsEvent = new_fs_event() fsEvent:start(path, {}, function(err, name, event) if err then logger:log(1, err) return end if not event.change then local newPath = rPath(path, name) -- NOTE: event.rename will be emitted even on delete- -- but on the real rename event two event.rename will be emitted -- omg please luvit fix that, this code should handle both if not exists(newPath) then -- File Deleted? stats[newPath] = nil -- Remove old stats else -- File Created? stats[newPath] = stat(newPath) -- Add the new stats end return end local filePath = rPath(path, name) local old = stats[filePath] local new = stat(filePath) stats[filePath] = new if new.size ~= 0 and (old.mtime.sec ~= new.mtime.sec or old.mtime.nsec ~= new.mtime.nsec) then return callback(name) end end) return fsEvent end -- TODO: Better and Cleaner loader... this one is just ugly and buggy. local function loadDirec(direc, filesPattern, spaceName, baseMesg, beforeExec, afterExec) spaceName = spaceName and spaceName.. ' : ' or '' local function loadFile(name) local filePath = pathJoin(direc, name) local oName = name name = name:gsub(filesPattern, '') if not exists(filePath) then logger:log(1, 'Attempt to find "%s" %s', name, baseMesg) return end call(beforeExec, name) local succ, result = read(filePath) if not succ then logger:log(1, 'Attempt to read "%s" : %s', filePath, result) return end local runtimeSuccess, loader, errMesg = call(load, succ, oName, 't', env) succ, result = call(loader) runtimeSuccess = runtimeSuccess and loader if not (runtimeSuccess and succ) then logger:log(1, 'Attempt to load "%s" %s :\n\t\t\t\t %s', name, baseMesg, tostring(runtimeSuccess and result or loader or errMesg) ) return end call(afterExec, name, result) logger:log(3, '%sSuccesfuly loaded "%s" %s', spaceName, name, baseMesg) end local function loadAll() for filePath in scandir(direc) do if filePath:find(filesPattern) then loadFile(filePath) end end end loadAll() -- Watch for changes and reload local e = watch(direc, function(name) if not name:find(filesPattern) then return end if not exists(pathJoin(direc, name)) then return end loadFile(name) end) return loadAll, e end module.loadDirec = loadDirec module.watch = watch return module
23.613793
100
0.663551
be3dbf898fb4896a5da49d39fb0880643f0f53cc
2,214
lua
Lua
config.lua
Shadow-Develops/extramenu
02d1df2186cdb9332cbb99ff30e9712ea024ddc3
[ "RSA-MD" ]
null
null
null
config.lua
Shadow-Develops/extramenu
02d1df2186cdb9332cbb99ff30e9712ea024ddc3
[ "RSA-MD" ]
null
null
null
config.lua
Shadow-Develops/extramenu
02d1df2186cdb9332cbb99ff30e9712ea024ddc3
[ "RSA-MD" ]
null
null
null
--[[ ─────────────────────────────────────────────────────────────── Extra Changer Menu (config.lua) - Created by Shadow Development Website: https://shadowdevs.com Documentation: https://docs.shadowdevs.com/extramenu Discord: https://discord.shadowdevs.com ─────────────────────────────────────────────────────────────── ]] Config = {} Config.MenuKey = 244 --Default = 244 [M] | To change the button check out https://docs.fivem.net/game-references/controls/ Config.locationOpen = false --Default = false | When this is true you will need to input information in Config.locationMarker, as the menu will only work when a player walks over a marker on the map. Config.MenuOrientation = 1 --Left = 0 | Right = 1 [Default] Config.MenuWidth = 80 --Default = 80 Config.MenuTitle = 0 --Default = The default title of the menu is 'Extras Menu' --Player Name = This is the name of the player --Custom = This is a custom title set by you at Config.MenuTitleCustom --Default = 0 [Default] | Player Name = 1 | Custom = 2 Config.MenuTitleCustom = 'Extras Menu' --If chosen at Config.MenuTitle Config.EnableCredits = 'true' -- On = true | Off = false --We would love if you could leave them on, but we know sometimes it looks better to turn them off. :) Config.CustomNames = { {vehicle = '19Charger', extra = { ['1'] = 'Ram Bar', ['2'] = 'Light Bar', ['3'] = 'Visor Lights', ['4'] = 'Dashboard Lights', ['5'] = 'Spot Lights' }}, } --If you want extra names to display as something custom for certain vehicles --[[ Formt: {vehicle = 'spancode', extra = { ['extra_number'] = 'custom name', ['extra_number'] = 'custom name', ['extra_number'] = 'custom name' }}, EX: {vehicle = '19Charger', extra = { ['1'] = 'Ram Bar', ['2'] = 'Light Bar', ['3'] = 'Visor Lights', ['4'] = 'Dashboard Lights', ['5'] = 'Spot Lights' }}, ]] -- You can add more into the extra section Config.positions = { -- {{Marker X, Marker Y, Marker Z, Marker Heading}, {Red, Green, Blue}, "Text for Marker"} (Do not put the key to press in the text, it auto is added.) {{1867.42, 3666.11, 32.80, 0},{36,237,157}, "Test"} -- Outside the Sheriff's Station }
36.295082
171
0.609304
8dc87e19e4689f67af5d96176aeb971a02567152
365,597
js
JavaScript
summertunes/static/static/js/main.748b3be7.js
irskep/summertunes
d79c8f2e77bb97a48685a0ac23e8e4b7a753eb69
[ "MIT" ]
17
2016-12-19T22:28:16.000Z
2021-01-23T11:32:36.000Z
summertunes/static/static/js/main.748b3be7.js
irskep/summertunes
d79c8f2e77bb97a48685a0ac23e8e4b7a753eb69
[ "MIT" ]
12
2017-01-02T21:53:48.000Z
2017-03-23T02:22:46.000Z
summertunes/static/static/js/main.748b3be7.js
irskep/summertunes
d79c8f2e77bb97a48685a0ac23e8e4b7a753eb69
[ "MIT" ]
1
2022-01-07T23:39:26.000Z
2022-01-07T23:39:26.000Z
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="/summertunes/",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var n=e.slice(1),r=t[e[0]];return function(t,e,o){r.apply(this,[t,e,o].concat(n))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(t,e,n){n(251),t.exports=n(124)},function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;u=new Error(e.replace(/%s/g,function(){return l[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}t.exports=r},function(t,e,n){"use strict";var r=n(9),o=r;t.exports=o},function(t,e){"use strict";function n(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}t.exports=n},function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function r(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}var o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=r()?Object.assign:function(t,e){for(var r,a,s=n(t),u=1;u<arguments.length;u++){r=Object(arguments[u]);for(var l in r)o.call(r,l)&&(s[l]=r[l]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(r);for(var c=0;c<a.length;c++)i.call(r,a[c])&&(s[a[c]]=r[a[c]])}}return s}},function(t,e,n){"use strict";function r(t){for(var e;e=t._renderedComponent;)t=e;return t}function o(t,e){var n=r(t);n._hostNode=e,e[m]=n}function i(t){var e=t._hostNode;e&&(delete e[m],t._hostNode=null)}function a(t,e){if(!(t._flags&d.hasCachedChildNodes)){var n=t._renderedChildren,i=e.firstChild;t:for(var a in n)if(n.hasOwnProperty(a)){var s=n[a],u=r(s)._domID;if(0!==u){for(;null!==i;i=i.nextSibling)if(1===i.nodeType&&i.getAttribute(h)===String(u)||8===i.nodeType&&i.nodeValue===" react-text: "+u+" "||8===i.nodeType&&i.nodeValue===" react-empty: "+u+" "){o(s,i);continue t}c("32",u)}}t._flags|=d.hasCachedChildNodes}}function s(t){if(t[m])return t[m];for(var e=[];!t[m];){if(e.push(t),!t.parentNode)return null;t=t.parentNode}for(var n,r;t&&(r=t[m]);t=e.pop())n=r,e.length&&a(r,t);return n}function u(t){var e=s(t);return null!=e&&e._hostNode===t?e:null}function l(t){if(void 0===t._hostNode?c("33"):void 0,t._hostNode)return t._hostNode;for(var e=[];!t._hostNode;)e.push(t),t._hostParent?void 0:c("34"),t=t._hostParent;for(;e.length;t=e.pop())a(t,t._hostNode);return t._hostNode}var c=n(3),f=n(25),p=n(92),h=(n(1),f.ID_ATTRIBUTE_NAME),d=p,m="__reactInternalInstance$"+Math.random().toString(36).slice(2),y={getClosestInstanceFromNode:s,getInstanceFromNode:u,getNodeFromInstance:l,precacheChildNodes:a,precacheNode:o,uncacheNode:i};t.exports=y},function(t,e,n){"use strict";t.exports=n(27)},function(t,e){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(6),f=n(180),p=r(f),h=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),l(e,[{key:"subscribeWhileMounted",value:function(t,e){t.onValue(e),this.miscSubscribers.push([t,e])}},{key:"componentWillMount",value:function(){var t=this;this.miscSubscribers=[];var e=this.observables?this.observables():{},n=Object.keys(e);this.subscribers={};var r=!0,i=!1,a=void 0;try{for(var s,u=function(){var n=s.value,r=function(e){return t.setState(o({},n,e))};if(!e[n]||!e[n].onValue)throw new Error("Key is not an observable: "+n);e[n].onValue(r),t.subscribers[n]=r},l=n[Symbol.iterator]();!(r=(s=l.next()).done);r=!0)u()}catch(t){i=!0,a=t}finally{try{!r&&l.return&&l.return()}finally{if(i)throw a}}}},{key:"componentWillUnmount",value:function(){var t=this.observables?this.observables():{},e=Object.keys(t),n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;t[s].offValue(this.subscribers[s])}}catch(t){r=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}this.miscSubscribers.forEach(function(t){var e=u(t,2),n=e[0],r=e[1];n.offValue(r)})}},{key:"shouldComponentUpdate",value:function(t,e){return(0,p.default)(this,t,e)}}]),e}(c.Component);e.default=h},function(t,e){"use strict";function n(t){return function(){return t}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";var r=null;t.exports={debugTool:r}},function(t,e,n){"use strict";function r(){x.ReactReconcileTransaction&&k?void 0:c("123")}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=p.getPooled(),this.reconcileTransaction=x.ReactReconcileTransaction.getPooled(!0)}function i(t,e,n,o,i,a){return r(),k.batchedUpdates(t,e,n,o,i,a)}function a(t,e){return t._mountOrder-e._mountOrder}function s(t){var e=t.dirtyComponentsLength;e!==v.length?c("124",e,v.length):void 0,v.sort(a),g++;for(var n=0;n<e;n++){var r=v[n],o=r._pendingCallbacks;r._pendingCallbacks=null;var i;if(d.logTopLevelRenders){var s=r;r._currentElement.type.isReactTopLevelWrapper&&(s=r._renderedComponent),i="React update: "+s.getName(),console.time(i)}if(m.performUpdateIfNecessary(r,t.reconcileTransaction,g),i&&console.timeEnd(i),o)for(var u=0;u<o.length;u++)t.callbackQueue.enqueue(o[u],r.getPublicInstance())}}function u(t){return r(),k.isBatchingUpdates?(v.push(t),void(null==t._updateBatchNumber&&(t._updateBatchNumber=g+1))):void k.batchedUpdates(u,t)}function l(t,e){k.isBatchingUpdates?void 0:c("125"),_.enqueue(t,e),b=!0}var c=n(3),f=n(4),p=n(90),h=n(18),d=n(95),m=n(26),y=n(43),v=(n(1),[]),g=0,_=p.getPooled(),b=!1,k=null,w={initialize:function(){this.dirtyComponentsLength=v.length},close:function(){this.dirtyComponentsLength!==v.length?(v.splice(0,this.dirtyComponentsLength),T()):v.length=0}},E={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},C=[w,E];f(o.prototype,y,{getTransactionWrappers:function(){return C},destructor:function(){this.dirtyComponentsLength=null,p.release(this.callbackQueue),this.callbackQueue=null,x.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(t,e,n){return y.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,t,e,n)}}),h.addPoolingTo(o);var T=function(){for(;v.length||b;){if(v.length){var t=o.getPooled();t.perform(s,null,t),o.release(t)}if(b){b=!1;var e=_;_=p.getPooled(),e.notifyAll(),p.release(e)}}},P={injectReconcileTransaction:function(t){t?void 0:c("126"),x.ReactReconcileTransaction=t},injectBatchingStrategy:function(t){t?void 0:c("127"),"function"!=typeof t.batchedUpdates?c("128"):void 0,"boolean"!=typeof t.isBatchingUpdates?c("129"):void 0,k=t}},x={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:u,flushBatchedUpdates:T,injection:P,asap:l};t.exports=x},function(t,e,n){"use strict";function r(t,e,n,r){this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n;var o=this.constructor.Interface;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];s?this[i]=s(n):"target"===i?this.target=r:this[i]=n[i]}var u=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;return u?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse,this}var o=n(4),i=n(18),a=n(9),s=(n(2),"function"==typeof Proxy,["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),u={type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var t=this.constructor.Interface;for(var e in t)this[e]=null;for(var n=0;n<s.length;n++)this[s[n]]=null}}),r.Interface=u,r.augmentClass=function(t,e){var n=this,r=function(){};r.prototype=n.prototype;var a=new r;o(a,t.prototype),t.prototype=a,t.prototype.constructor=t,t.Interface=o({},n.Interface,e),t.augmentClass=n.augmentClass,i.addPoolingTo(t,i.fourArgumentPooler)},i.addPoolingTo(r,i.fourArgumentPooler),t.exports=r},function(t,e){"use strict";var n={current:null};t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.kServerConfig=e.kPlayerServices=e.kIsConfigReady=e.kLastFMAPIKey=e.kStaticFilesURL=e.kMPVURL=e.kBeetsWebURL=void 0;var o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=n(17),a=r(i),s=n(15),u=r(s),l=window.location,c=l.hostname,f=l.protocol,p=(0,u.default)(),h=o(p,2),d=h[0],m=h[1],y=m.toProperty(function(){return{}});window.fetch("/server_config.js").then(function(t){return t.json()}).then(function(t){return d(t)}).catch(function(){}),window.fetch("/summertunes/server_config.js").then(function(t){return t.json()}).then(function(t){return d(t)}).catch(function(){});var v=m.map(function(t){var e=t.BEETSWEB_PORT,n=t.BEETSWEB_HOST;return n?n+":"+e:f+"//"+c+":"+e}),g=m.map(function(t){var e=t.MPV_PORT,n=t.MPV_HOST;return n?n+":"+e:f+"//"+c+":"+e}),_=a.default.constant("/summertunes/files"),b=m.map(function(t){var e=t.LAST_FM_API_KEY;return e}),k=m.map(function(){return!0}).toProperty(function(){return!1}),w=y.map(function(t){var e=t.player_services;return e});w.onValue(function(){}),e.kBeetsWebURL=v,e.kMPVURL=g,e.kStaticFilesURL=_,e.kLastFMAPIKey=b,e.kIsConfigReady=k,e.kPlayerServices=w,e.kServerConfig=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){var e=void 0,n=a.default.stream(function(t){return e=t.emit,function(){}}),r=function(){if(e)return e.apply(void 0,arguments)};return[r,n]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=n(17),a=r(i)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.removeTrackAtIndex=e.setPlaylistIndex=e.refreshPlaylist=e.goToPreviousTrack=e.goToNextTrack=e.enqueueTracks=e.enqueueTrack=e.playTracks=e.playTrack=e.goToBeginningOfTrack=e.seek=e.setVolume=e.setIsPlaying=e.kPlaylistTracks=e.kPlaylistIndex=e.kPlaylistCount=e.kAlbumArtURL=e.kPlayingTrack=e.kPlaybackSeconds=e.kIsPlaying=e.kVolume=e.setPlayerName=e.kPlayerName=e.kPlayer=void 0;var o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=n(17),a=r(i),s=n(15),u=r(s),l=n(125),c=r(l),f=n(126),p=r(f),h=n(14),d=n(75),m=r(d),y=n(20),v=function(t){return t.onValue(function(){}),t},g={web:p.default,mpv:c.default},_=null,b=(0,u.default)(),k=o(b,2),w=k[0],E=k[1],C=a.default.combine([E,h.kPlayerServices],function(t,e){return e.indexOf(t)>-1?t:"web"}).skipDuplicates().toProperty(function(){return(0,m.default)("playerName","mpv")});C.onValue(function(t){return localStorage.playerName=JSON.stringify(t)});var T=C.map(function(t){return g[t]});T.onValue(function(t){return _=t});var P=function(t){return v(T.flatMapLatest(function(e){return _?_[t]?e[t]:(console.error("Player is missing property",t),a.default.constant(null)):a.default.constant(null)}).toProperty(function(){return null}))},x=function(t){if(_)return _[t]||console.error("Player is missing method",t),function(){var e;return(e=_)[t].apply(e,arguments)}},S={},A=function(t,e){if(S[e])return S[e];if(!e)return a.default.constant(null);var n=a.default.fromPromise(window.fetch(t+"/item/path/"+encodeURIComponent(e)).then(function(t){return t.json()})).toProperty(function(){return null});return S[e]=n,n},O=function(t){return a.default.combine([h.kBeetsWebURL,t]).flatMapLatest(function(t){var e=o(t,2),n=e[0],r=e[1];return A(n,r)}).toProperty(function(){return null})},I=P("kVolume"),M=P("kIsPlaying"),N=P("kPlaybackSeconds"),R=P("kPath"),D=P("kPlaylistCount"),j=P("kPlaylistIndex"),L=P("kPlaylistPaths"),U=O(R),B=v(a.default.combine([h.kBeetsWebURL,L]).flatMapLatest(function(t){var e=o(t,2),n=e[0],r=e[1];return r?a.default.combine(r.map(A.bind(void 0,n))):a.default.once([])}).toProperty(function(){return[]})),V=(a.default.combine([U,h.kLastFMAPIKey]).flatMapLatest(function(t){var e=o(t,2),n=e[0],r=e[1];return n&&r?a.default.fromPromise(window.fetch("http://ws.audioscrobbler.com/2.0/?method=album.getinfo&api_key="+r+"&artist="+n.artist+"&album="+n.album+"&format=json").then(function(t){return t.json()})):a.default.constant(null)}).toProperty(function(){return null}),a.default.combine([h.kBeetsWebURL,U]).map(function(t){var e=o(t,2),n=e[0],r=e[1];return n&&r?{small:n+"/summertunes/track/art/"+encodeURIComponent(r.path)}:{}}));v(V);var F=x("setIsPlaying"),q=x("setVolume"),H=x("seek"),W=x("goToBeginningOfTrack"),K=x("playTrack"),$=x("enqueueTrack"),z=x("removeTrackAtIndex"),Y=x("playTracks"),X=x("enqueueTracks"),G=x("goToNextTrack"),Q=x("goToPreviousTrack"),J=x("refreshPlaylist"),Z=x("setPlaylistIndex");M.sampledBy(y.kSpaces).onValue(function(t){return F(!t)}),U.onValue(J),e.kPlayer=T,e.kPlayerName=C,e.setPlayerName=w,e.kVolume=I,e.kIsPlaying=M,e.kPlaybackSeconds=N,e.kPlayingTrack=U,e.kAlbumArtURL=V,e.kPlaylistCount=D,e.kPlaylistIndex=j,e.kPlaylistTracks=B,e.setIsPlaying=F,e.setVolume=q,e.seek=H,e.goToBeginningOfTrack=W,e.playTrack=K,e.playTracks=Y,e.enqueueTrack=$,e.enqueueTracks=X,e.goToNextTrack=G,e.goToPreviousTrack=Q,e.refreshPlaylist=J,e.setPlaylistIndex=Z,e.removeTrackAtIndex=z},function(t,e,n){(function(t){!function(t,n){n(e)}(this,function(e){"use strict";function n(t){var e=function(){};return e.prototype=t,new e}function r(t){var e=arguments.length,n=void 0,r=void 0;for(n=1;n<e;n++)for(r in arguments[n])t[r]=arguments[n][r];return t}function o(t,e){var o=arguments.length,i=void 0;for(t.prototype=n(e.prototype),t.prototype.constructor=t,i=2;i<o;i++)r(t.prototype,arguments[i]);return t}function i(t,e){var n=void 0,r=void 0,o=void 0,i=void 0;if(0===t.length)return e;if(0===e.length)return t;for(i=0,n=new Array(t.length+e.length),r=t.length,o=0;o<r;o++,i++)n[i]=t[o];for(r=e.length,o=0;o<r;o++,i++)n[i]=e[o];return n}function a(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)if(t[r]===e)return r;return-1}function s(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)if(e(t[r]))return r;return-1}function u(t){var e=t.length,n=new Array(e),r=void 0;for(r=0;r<e;r++)n[r]=t[r];return n}function l(t,e){var n=t.length,r=void 0,o=void 0,i=void 0;if(e>=0&&e<n){if(1===n)return[];for(r=new Array(n-1),o=0,i=0;o<n;o++)o!==e&&(r[i]=t[o],i++);return r}return t}function c(t,e){var n=t.length,r=new Array(n),o=void 0;for(o=0;o<n;o++)r[o]=e(t[o]);return r}function f(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)e(t[r])}function p(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)t[r]=e}function h(t,e){return a(t,e)!==-1}function d(t,e,n){var r=Math.min(n,t.length+1),o=t.length-r+1,i=new Array(r),a=void 0;for(a=o;a<r;a++)i[a-o]=t[a];return i[r-1]=e,i}function m(t,e,n){t===ue?e(n):t===n.type&&(t===ae||t===se?e(n.value):e())}function y(){this._items=[],this._spies=[],this._inLoop=0,this._removedItems=null}function v(){this._dispatcher=new y,this._active=!1,this._alive=!0,this._activating=!1,this._logHandlers=null,this._spyHandlers=null}function g(){v.call(this)}function _(){v.call(this),this._currentEvent=null}function b(){return le}function k(t){function e(t,e){var n=this;g.call(this),this._wait=t,this._intervalId=null,this._$onTick=function(){return n._onTick()},this._init(e)}return o(e,g,{_init:function(){},_free:function(){},_onTick:function(){},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)},_clear:function(){g.prototype._clear.call(this),this._$onTick=null,this._free()}},t),e}function w(t,e){return new ce(t,{x:e})}function E(t,e){return new fe(t,{x:e})}function C(t,e){return 0===e.length?b():new pe(t,{xs:e})}function T(t,e){return new he(t,{fn:e})}function P(t){function e(e){return t._emitValue(e),t._active}function n(e){return t._emitError(e),t._active}function r(){return t._emitEnd(),t._active}function o(e){return t._emit(e.type,e.value),t._active}return{value:e,error:n,end:r,event:o,emit:e,emitEvent:o}}function x(t,e){return new de(t,{fn:e})}function S(t){g.call(this),this._fn=t,this._unsubscribe=null}function A(t){return new S(t)}function O(t){var e=!1;return A(function(n){e||(t(function(t){n.emit(t),n.end()}),e=!0)}).setName("fromCallback")}function I(t){var e=!1;return A(function(n){e||(t(function(t,e){t?n.error(t):n.emit(e),n.end()}),e=!0)}).setName("fromNodeCallback")}function M(t,e){switch(e){case 0:return function(){return t()};case 1:return function(e){return t(e[0])};case 2:return function(e){return t(e[0],e[1])};case 3:return function(e){return t(e[0],e[1],e[2])};case 4:return function(e){return t(e[0],e[1],e[2],e[3])};default:return function(e){return t.apply(null,e)}}}function N(t,e,n){var r=n?n.length:0;if(null==e)switch(r){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);case 4:return t(n[0],n[1],n[2],n[3]);default:return t.apply(null,n)}else switch(r){case 0:return t.call(e);default:return t.apply(e,n)}}function R(t,e,n){return A(function(r){var o=n?function(){r.emit(N(n,this,arguments))}:function(t){r.emit(t)};return t(o),function(){return e(o)}}).setName("fromSubUnsub")}function D(t,e,n){for(var r=void 0,o=void 0,i=0;i<me.length;i++)if("function"==typeof t[me[i][0]]&&"function"==typeof t[me[i][1]]){r=me[i][0],o=me[i][1];break}if(void 0===r)throw new Error("target don't support any of addEventListener/removeEventListener, addListener/removeListener, on/off method pair");return R(function(n){return t[r](e,n)},function(n){return t[o](e,n)},n).setName("fromEvents")}function j(t){this._currentEvent={type:"value",value:t,current:!0}}function L(t){return new j(t)}function U(t){this._currentEvent={type:"error",value:t,current:!0}}function B(t){return new U(t)}function V(t,e){return function(n,r){var o=this;t.call(this),this._source=n,this._name=n._name+"."+e,this._init(r),this._$handleAny=function(t){return o._handleAny(t)}}}function F(t){return{_init:function(){},_free:function(){},_handleValue:function(t){this._emitValue(t)},_handleError:function(t){this._emitError(t)},_handleEnd:function(){this._emitEnd()},_handleAny:function(t){switch(t.type){case ae:return this._handleValue(t.value);case se:return this._handleError(t.value);case ie:return this._handleEnd()}},_onActivation:function(){this._source.onAny(this._$handleAny)},_onDeactivation:function(){this._source.offAny(this._$handleAny)},_clear:function(){t.prototype._clear.call(this),this._source=null,this._$handleAny=null,this._free()}}}function q(t,e){var n=V(g,t);return o(n,g,F(g),e),n}function H(t,e){var n=V(_,t);return o(n,_,F(_),e),n}function W(t){var e=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if(null!==e&&"function"!=typeof e)throw new Error("You should call toProperty() with a function or no arguments.");return new ye(t,{fn:e})}function K(t){return new ve(t)}function $(t){var e=!1,n=A(function(n){if(!e){var r=function(t){n.emit(t),n.end()},o=function(t){n.error(t),n.end()},i=t.then(r,o);i&&"function"==typeof i.done&&i.done(),e=!0}});return W(n,null).setName("fromPromise")}function z(){if("function"==typeof Promise)return Promise;throw new Error("There isn't default Promise, use shim or parameter")}function Y(t){var e=arguments.length<=1||void 0===arguments[1]?z():arguments[1],n=null;return new e(function(e,r){t.onAny(function(t){t.type===ie&&null!==n?((n.type===ae?e:r)(n.value),n=null):n=t})})}function X(t,e){return e={exports:{}},t(e,e.exports),e.exports}function G(t){var e=t[Ce]?t[Ce]():t;return A(function(t){var n=e.subscribe({error:function(e){t.error(e),t.end()},next:function(e){t.emit(e)},complete:function(){t.end()}});return n.unsubscribe?function(){n.unsubscribe()}:n}).setName("fromESObservable")}function Q(t){this._observable=t.takeErrors(1)}function J(){return new Q(this)}function Z(t){for(var e=void 0,n=0;n<t.length;n++)void 0!==t[n]&&(void 0===e||e.index<t[n].index)&&(e=t[n]);return e.error}function tt(t,e,n){var r=this;g.call(this),this._activeCount=t.length,this._sources=i(t,e),this._combinator=n?M(n,this._sources.length):function(t){return t},this._aliveCount=0,this._latestValues=new Array(this._sources.length),this._latestErrors=new Array(this._sources.length),p(this._latestValues,oe),this._emitAfterActivation=!1,this._endAfterActivation=!1,this._latestErrorIndex=0,this._$handlers=[];for(var o=function(t){r._$handlers.push(function(e){return r._handleAny(t,e)})},a=0;a<this._sources.length;a++)o(a)}function et(t){var e=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],n=arguments[2];return"function"==typeof e&&(n=e,e=[]),0===t.length?b():new tt(t,e,n)}function nt(t){var e=arguments.length<=1||void 0===arguments[1]?Oe:arguments[1];return new(t._ofSameType(Se,Ae))(t,{fn:e})}function rt(t){var e=arguments.length<=1||void 0===arguments[1]?Re:arguments[1];return new(t._ofSameType(Me,Ne))(t,{fn:e})}function ot(t,e){return new(t._ofSameType(je,Le))(t,{n:e})}function it(t,e){return new(t._ofSameType(Be,Ve))(t,{n:e})}function at(t){var e=arguments.length<=1||void 0===arguments[1]?We:arguments[1];return new(t._ofSameType(qe,He))(t,{fn:e})}function st(t){return new(t._ofSameType($e,ze))(t)}function ut(t,e){return new(t._ofSameType(Xe,Ge))(t,{n:e})}function lt(t){var e=arguments.length<=1||void 0===arguments[1]?tn:arguments[1];return new(t._ofSameType(Je,Ze))(t,{fn:e})}function ct(t){var e=arguments.length<=1||void 0===arguments[1]?on:arguments[1];return new(t._ofSameType(nn,rn))(t,{fn:e})}function ft(t,e){return[t,e]}function pt(t,e){var n=arguments.length<=2||void 0===arguments[2]?oe:arguments[2];return new(t._ofSameType(sn,un))(t,{fn:e||ft,seed:n})}function ht(t,e){var n=arguments.length<=2||void 0===arguments[2]?oe:arguments[2];return new ln(t,{fn:e,seed:n})}function dt(t){var e=arguments.length<=1||void 0===arguments[1]?pn:arguments[1];return new fn(t,{fn:e})}function mt(t,e){return new(t._ofSameType(mn,yn))(t,{wait:e})}function yt(t,e){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],r=n.leading,o=void 0===r||r,i=n.trailing,a=void 0===i||i;return new(t._ofSameType(_n,bn))(t,{wait:e,leading:o,trailing:a})}function vt(t,e){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],r=n.immediate,o=void 0!==r&&r;return new(t._ofSameType(wn,En))(t,{wait:e,immediate:o})}function gt(t){var e=arguments.length<=1||void 0===arguments[1]?xn:arguments[1];return new(t._ofSameType(Tn,Pn))(t,{fn:e})}function _t(t){var e=arguments.length<=1||void 0===arguments[1]?In:arguments[1];return new(t._ofSameType(An,On))(t,{fn:e})}function bt(t){return new(t._ofSameType(Nn,Rn))(t)}function kt(t){return new(t._ofSameType(jn,Ln))(t)}function wt(t){return new(t._ofSameType(Bn,Vn))(t)}function Et(t,e){return new(t._ofSameType(qn,Hn))(t,{fn:e})}function Ct(t,e){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2];return new(t._ofSameType(Kn,$n))(t,{min:n,max:e})}function Tt(t,e){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],r=n.flushOnEnd,o=void 0===r||r;return new(t._ofSameType(Yn,Xn))(t,{fn:e||Gn,flushOnEnd:o})}function Pt(t,e){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],r=n.flushOnEnd,o=void 0===r||r;return new(t._ofSameType(Jn,Zn))(t,{count:e,flushOnEnd:o})}function xt(t,e,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],o=r.flushOnEnd,i=void 0===o||o;return new(t._ofSameType(er,nr))(t,{wait:e,count:n,flushOnEnd:i})}function St(t){return{"@@transducer/step":function(e,n){return t._emitValue(n),null},"@@transducer/result":function(){return t._emitEnd(),null}}}function At(t,e){return new(t._ofSameType(or,ir))(t,{transducer:e})}function Ot(t,e){return new(t._ofSameType(sr,ur))(t,{fn:e})}function It(t,e){var n=this;g.call(this),this._buffers=c(t,function(t){return lr(t)?u(t):[]}),this._sources=c(t,function(t){return lr(t)?b():t}),this._combinator=e?M(e,this._sources.length):function(t){return t},this._aliveCount=0,this._$handlers=[];for(var r=function(t){n._$handlers.push(function(e){return n._handleAny(t,e)})},o=0;o<this._sources.length;o++)r(o)}function Mt(t,e){return 0===t.length?b():new It(t,e)}function Nt(){var t=this,e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=e.queueLim,r=void 0===n?0:n,o=e.concurLim,i=void 0===o?-1:o,a=e.drop,s=void 0===a?"new":a;g.call(this),this._queueLim=r<0?-1:r,this._concurLim=i<0?-1:i,this._drop=s,this._queue=[],this._curSources=[],this._$handleSubAny=function(e){return t._handleSubAny(e)},this._$endHandlers=[],this._currentlyAdding=null,0===this._concurLim&&this._emitEnd()}function Rt(t){Nt.call(this),this._addAll(t),this._initialised=!0}function Dt(t){return 0===t.length?b():new Rt(t)}function jt(t){var e=this;g.call(this),this._generator=t,this._source=null,this._inLoop=!1,this._iteration=0,this._$handleAny=function(t){return e._handleAny(t)}}function Lt(t){return new jt(t)}function Ut(t){return Lt(function(e){return t.length>e&&t[e]}).setName("concat")}function Bt(){Nt.call(this)}function Vt(t,e,n){var r=this;Nt.call(this,n),this._source=t,this._fn=e,this._mainEnded=!1,this._lastCurrent=null,this._$handleMain=function(t){return r._handleMain(t)}}function Ft(t,e){Vt.call(this,t,e)}function qt(t,e){return function(n,r,o){var i=this;t.call(this),this._primary=n,this._secondary=r,this._name=n._name+"."+e,this._lastSecondary=oe,this._$handleSecondaryAny=function(t){return i._handleSecondaryAny(t)},this._$handlePrimaryAny=function(t){return i._handlePrimaryAny(t)},this._init(o)}}function Ht(t){return{_init:function(){},_free:function(){},_handlePrimaryValue:function(t){this._emitValue(t)},_handlePrimaryError:function(t){this._emitError(t)},_handlePrimaryEnd:function(){this._emitEnd()},_handleSecondaryValue:function(t){this._lastSecondary=t},_handleSecondaryError:function(t){this._emitError(t)},_handleSecondaryEnd:function(){},_handlePrimaryAny:function(t){switch(t.type){case ae:return this._handlePrimaryValue(t.value);case se:return this._handlePrimaryError(t.value);case ie:return this._handlePrimaryEnd(t.value)}},_handleSecondaryAny:function(t){switch(t.type){case ae:return this._handleSecondaryValue(t.value);case se:return this._handleSecondaryError(t.value);case ie:this._handleSecondaryEnd(t.value),this._removeSecondary()}},_removeSecondary:function(){null!==this._secondary&&(this._secondary.offAny(this._$handleSecondaryAny),this._$handleSecondaryAny=null,this._secondary=null)},_onActivation:function(){null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny),this._active&&this._primary.onAny(this._$handlePrimaryAny)},_onDeactivation:function(){null!==this._secondary&&this._secondary.offAny(this._$handleSecondaryAny),this._primary.offAny(this._$handlePrimaryAny)},_clear:function(){t.prototype._clear.call(this),this._primary=null,this._secondary=null,this._lastSecondary=null,this._$handleSecondaryAny=null,this._$handlePrimaryAny=null,this._free()}}}function Wt(t,e){var n=qt(g,t);return o(n,g,Ht(g),e),n}function Kt(t,e){var n=qt(_,t);return o(n,_,Ht(_),e),n}function $t(t,e){return new(t._ofSameType(pr,hr))(t,e)}function zt(t,e,n){var r=n?function(t,e){return n(e,t)}:dr;return et([e],[t],r).setName(t,"sampledBy")}function Yt(t,e){return new(t._ofSameType(yr,vr))(t,e)}function Xt(t,e){return new(t._ofSameType(_r,br))(t,e)}function Gt(t,e,n){return new(t._ofSameType(wr,Er))(t,e,n)}function Qt(t,e,n){return new(t._ofSameType(Tr,Pr))(t,e,n)}function Jt(t,e){var n=Dt([nt(t,Sr),nt(e,xr)]);return n=ct(n),n=W(n,xr),n.setName(t,"awaiting")}function Zt(t){var e=arguments.length<=1||void 0===arguments[1]?Mr:arguments[1];return new(t._ofSameType(Or,Ir))(t,{fn:e})}function te(t){var e=arguments.length<=1||void 0===arguments[1]?jr:arguments[1];return new(t._ofSameType(Rr,Dr))(t,{fn:e})}function ee(t){return new(t._ofSameType(Ur,Br))(t)}function ne(){Fr=!1}function re(t){if(Fr&&console&&"function"==typeof console.warn){var e="\nHere is an Error object for you containing the call stack:";console.warn(t,e,new Error)}}var oe=["<nothing>"],ie="end",ae="value",se="error",ue="any"; r(y.prototype,{add:function(t,e){return this._items=i(this._items,[{type:t,fn:e}]),this._items.length},remove:function(t,e){var n=s(this._items,function(n){return n.type===t&&n.fn===e});return 0!==this._inLoop&&n!==-1&&(null===this._removedItems&&(this._removedItems=[]),this._removedItems.push(this._items[n])),this._items=l(this._items,n),this._items.length},addSpy:function(t){return this._spies=i(this._spies,[t]),this._spies.length},removeSpy:function(t){return this._spies=l(this._spies,this._spies.indexOf(t)),this._spies.length},dispatch:function(t){this._inLoop++;for(var e=0,n=this._spies;null!==this._spies&&e<n.length;e++)n[e](t);for(var r=0,o=this._items;r<o.length&&null!==this._items;r++)null!==this._removedItems&&h(this._removedItems,o[r])||m(o[r].type,o[r].fn,t);this._inLoop--,0===this._inLoop&&(this._removedItems=null)},cleanup:function(){this._items=null,this._spies=null}}),r(v.prototype,{_name:"observable",_onActivation:function(){},_onDeactivation:function(){},_setActive:function(t){this._active!==t&&(this._active=t,t?(this._activating=!0,this._onActivation(),this._activating=!1):this._onDeactivation())},_clear:function(){this._setActive(!1),this._dispatcher.cleanup(),this._dispatcher=null,this._logHandlers=null},_emit:function(t,e){switch(t){case ae:return this._emitValue(e);case se:return this._emitError(e);case ie:return this._emitEnd()}},_emitValue:function(t){this._alive&&this._dispatcher.dispatch({type:ae,value:t})},_emitError:function(t){this._alive&&this._dispatcher.dispatch({type:se,value:t})},_emitEnd:function(){this._alive&&(this._alive=!1,this._dispatcher.dispatch({type:ie}),this._clear())},_on:function(t,e){return this._alive?(this._dispatcher.add(t,e),this._setActive(!0)):m(t,e,{type:ie}),this},_off:function(t,e){if(this._alive){var n=this._dispatcher.remove(t,e);0===n&&this._setActive(!1)}return this},onValue:function(t){return this._on(ae,t)},onError:function(t){return this._on(se,t)},onEnd:function(t){return this._on(ie,t)},onAny:function(t){return this._on(ue,t)},offValue:function(t){return this._off(ae,t)},offError:function(t){return this._off(se,t)},offEnd:function(t){return this._off(ie,t)},offAny:function(t){return this._off(ue,t)},observe:function(t,e,n){var r=this,o=!1,i=t&&"function"!=typeof t?t:{value:t,error:e,end:n},a=function(t){t.type===ie&&(o=!0),t.type===ae&&i.value?i.value(t.value):t.type===se&&i.error?i.error(t.value):t.type===ie&&i.end&&i.end(t.value)};return this.onAny(a),{unsubscribe:function(){o||(r.offAny(a),o=!0)},get closed(){return o}}},_ofSameType:function(t,e){return t.prototype.getType()===this.getType()?t:e},setName:function(t,e){return this._name=e?t._name+"."+e:t,this},log:function(){var t=arguments.length<=0||void 0===arguments[0]?this.toString():arguments[0],e=void 0,n=function(n){var r="<"+n.type+(e?":current":"")+">";n.type===ie?console.log(t,r):console.log(t,r,n.value)};return this._alive&&(this._logHandlers||(this._logHandlers=[]),this._logHandlers.push({name:t,handler:n})),e=!0,this.onAny(n),e=!1,this},offLog:function(){var t=arguments.length<=0||void 0===arguments[0]?this.toString():arguments[0];if(this._logHandlers){var e=s(this._logHandlers,function(e){return e.name===t});e!==-1&&(this.offAny(this._logHandlers[e].handler),this._logHandlers.splice(e,1))}return this},spy:function(){var t=arguments.length<=0||void 0===arguments[0]?this.toString():arguments[0],e=function(e){var n="<"+e.type+">";e.type===ie?console.log(t,n):console.log(t,n,e.value)};return this._alive&&(this._spyHandlers||(this._spyHandlers=[]),this._spyHandlers.push({name:t,handler:e}),this._dispatcher.addSpy(e)),this},offSpy:function(){var t=arguments.length<=0||void 0===arguments[0]?this.toString():arguments[0];if(this._spyHandlers){var e=s(this._spyHandlers,function(e){return e.name===t});e!==-1&&(this._dispatcher.removeSpy(this._spyHandlers[e].handler),this._spyHandlers.splice(e,1))}return this}}),v.prototype.toString=function(){return"["+this._name+"]"},o(g,v,{_name:"stream",getType:function(){return"stream"}}),o(_,v,{_name:"property",_emitValue:function(t){this._alive&&(this._currentEvent={type:ae,value:t},this._activating||this._dispatcher.dispatch({type:ae,value:t}))},_emitError:function(t){this._alive&&(this._currentEvent={type:se,value:t},this._activating||this._dispatcher.dispatch({type:se,value:t}))},_emitEnd:function(){this._alive&&(this._alive=!1,this._activating||this._dispatcher.dispatch({type:ie}),this._clear())},_on:function(t,e){return this._alive&&(this._dispatcher.add(t,e),this._setActive(!0)),null!==this._currentEvent&&m(t,e,this._currentEvent),this._alive||m(t,e,{type:ie}),this},getType:function(){return"property"}});var le=new g;le._emitEnd(),le._name="never";var ce=k({_name:"later",_init:function(t){var e=t.x;this._x=e},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x),this._emitEnd()}}),fe=k({_name:"interval",_init:function(t){var e=t.x;this._x=e},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x)}}),pe=k({_name:"sequentially",_init:function(t){var e=t.xs;this._xs=u(e)},_free:function(){this._xs=null},_onTick:function(){1===this._xs.length?(this._emitValue(this._xs[0]),this._emitEnd()):this._emitValue(this._xs.shift())}}),he=k({_name:"fromPoll",_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_onTick:function(){var t=this._fn;this._emitValue(t())}}),de=k({_name:"withInterval",_init:function(t){var e=t.fn;this._fn=e,this._emitter=P(this)},_free:function(){this._fn=null,this._emitter=null},_onTick:function(){var t=this._fn;t(this._emitter)}});o(S,g,{_name:"stream",_onActivation:function(){var t=this._fn,e=t(P(this));this._unsubscribe="function"==typeof e?e:null,this._active||this._callUnsubscribe()},_callUnsubscribe:function(){null!==this._unsubscribe&&(this._unsubscribe(),this._unsubscribe=null)},_onDeactivation:function(){this._callUnsubscribe()},_clear:function(){g.prototype._clear.call(this),this._fn=null}});var me=[["addEventListener","removeEventListener"],["addListener","removeListener"],["on","off"]];o(j,_,{_name:"constant",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null}),o(U,_,{_name:"constantError",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null});var ye=H("toProperty",{_init:function(t){var e=t.fn;this._getInitialCurrent=e},_onActivation:function(){if(null!==this._getInitialCurrent){var t=this._getInitialCurrent;this._emitValue(t())}this._source.onAny(this._$handleAny)}}),ve=q("changes",{_handleValue:function(t){this._activating||this._emitValue(t)},_handleError:function(t){this._activating||this._emitError(t)}}),ge="undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},_e=X(function(t,e){function n(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n}),be=_e&&"object"==typeof _e&&"default"in _e?_e.default:_e,ke=X(function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=be,o=n(r),i=void 0;"undefined"!=typeof ge?i=ge:"undefined"!=typeof window&&(i=window);var a=(0,o.default)(i);e.default=a}),we=ke&&"object"==typeof ke&&"default"in ke?ke.default:ke,Ee=X(function(t){t.exports=we}),Ce=Ee&&"object"==typeof Ee&&"default"in Ee?Ee.default:Ee;r(Q.prototype,{subscribe:function(t,e,n){var r=this,o="function"==typeof t?{next:t,error:e,complete:n}:t,i=function(t){t.type===ie&&(a=!0),t.type===ae&&o.next?o.next(t.value):t.type===se&&o.error?o.error(t.value):t.type===ie&&o.complete&&o.complete(t.value)};this._observable.onAny(i);var a=!1,s={unsubscribe:function(){a=!0,r._observable.offAny(i)},get closed(){return a}};return s}}),Q.prototype[Ce]=function(){return this},o(tt,g,{_name:"combine",_onActivation:function(){this._aliveCount=this._activeCount;for(var t=this._activeCount;t<this._sources.length;t++)this._sources[t].onAny(this._$handlers[t]);for(var e=0;e<this._activeCount;e++)this._sources[e].onAny(this._$handlers[e]);this._emitAfterActivation&&(this._emitAfterActivation=!1,this._emitIfFull()),this._endAfterActivation&&this._emitEnd()},_onDeactivation:function(){var t=this._sources.length,e=void 0;for(e=0;e<t;e++)this._sources[e].offAny(this._$handlers[e])},_emitIfFull:function(){for(var t=!0,e=!1,n=this._latestValues.length,r=new Array(n),o=new Array(n),i=0;i<n;i++)r[i]=this._latestValues[i],o[i]=this._latestErrors[i],r[i]===oe&&(t=!1),void 0!==o[i]&&(e=!0);if(t){var a=this._combinator;this._emitValue(a(r))}e&&this._emitError(Z(o))},_handleAny:function(t,e){e.type===ae||e.type===se?(e.type===ae&&(this._latestValues[t]=e.value,this._latestErrors[t]=void 0),e.type===se&&(this._latestValues[t]=oe,this._latestErrors[t]={index:this._latestErrorIndex++,error:e.value}),t<this._activeCount&&(this._activating?this._emitAfterActivation=!0:this._emitIfFull())):t<this._activeCount&&(this._aliveCount--,0===this._aliveCount&&(this._activating?this._endAfterActivation=!0:this._emitEnd()))},_clear:function(){g.prototype._clear.call(this),this._sources=null,this._latestValues=null,this._latestErrors=null,this._combinator=null,this._$handlers=null}});var Te={empty:function(){return b()},concat:function(t,e){return t.merge(e)},of:function(t){return L(t)},map:function(t,e){return e.map(t)},bimap:function(t,e,n){return n.mapErrors(t).map(e)},ap:function(t,e){return et([t,e],function(t,e){return t(e)})},chain:function(t,e){return e.flatMap(t)}},Pe=Object.freeze({Observable:Te}),xe={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn;this._emitValue(e(t))}},Se=q("map",xe),Ae=H("map",xe),Oe=function(t){return t},Ie={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn;e(t)&&this._emitValue(t)}},Me=q("filter",Ie),Ne=H("filter",Ie),Re=function(t){return t},De={_init:function(t){var e=t.n;this._n=e,e<=0&&this._emitEnd()},_handleValue:function(t){this._n--,this._emitValue(t),0===this._n&&this._emitEnd()}},je=q("take",De),Le=H("take",De),Ue={_init:function(t){var e=t.n;this._n=e,e<=0&&this._emitEnd()},_handleError:function(t){this._n--,this._emitError(t),0===this._n&&this._emitEnd()}},Be=q("takeErrors",Ue),Ve=H("takeErrors",Ue),Fe={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn;e(t)?this._emitValue(t):this._emitEnd()}},qe=q("takeWhile",Fe),He=H("takeWhile",Fe),We=function(t){return t},Ke={_init:function(){this._lastValue=oe},_free:function(){this._lastValue=null},_handleValue:function(t){this._lastValue=t},_handleEnd:function(){this._lastValue!==oe&&this._emitValue(this._lastValue),this._emitEnd()}},$e=q("last",Ke),ze=H("last",Ke),Ye={_init:function(t){var e=t.n;this._n=Math.max(0,e)},_handleValue:function(t){0===this._n?this._emitValue(t):this._n--}},Xe=q("skip",Ye),Ge=H("skip",Ye),Qe={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn;null===this._fn||e(t)||(this._fn=null),null===this._fn&&this._emitValue(t)}},Je=q("skipWhile",Qe),Ze=H("skipWhile",Qe),tn=function(t){return t},en={_init:function(t){var e=t.fn;this._fn=e,this._prev=oe},_free:function(){this._fn=null,this._prev=null},_handleValue:function(t){var e=this._fn;this._prev!==oe&&e(this._prev,t)||(this._prev=t,this._emitValue(t))}},nn=q("skipDuplicates",en),rn=H("skipDuplicates",en),on=function(t,e){return t===e},an={_init:function(t){var e=t.fn,n=t.seed;this._fn=e,this._prev=n},_free:function(){this._prev=null,this._fn=null},_handleValue:function(t){if(this._prev!==oe){var e=this._fn;this._emitValue(e(this._prev,t))}this._prev=t}},sn=q("diff",an),un=H("diff",an),ln=H("scan",{_init:function(t){var e=t.fn,n=t.seed;this._fn=e,this._seed=n,n!==oe&&this._emitValue(n)},_free:function(){this._fn=null,this._seed=null},_handleValue:function(t){var e=this._fn;null===this._currentEvent||this._currentEvent.type===se?this._emitValue(this._seed===oe?t:e(this._seed,t)):this._emitValue(e(this._currentEvent.value,t))}}),cn={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){for(var e=this._fn,n=e(t),r=0;r<n.length;r++)this._emitValue(n[r])}},fn=q("flatten",cn),pn=function(t){return t},hn={},dn={_init:function(t){var e=this,n=t.wait;this._wait=Math.max(0,n),this._buff=[],this._$shiftBuff=function(){var t=e._buff.shift();t===hn?e._emitEnd():e._emitValue(t)}},_free:function(){this._buff=null,this._$shiftBuff=null},_handleValue:function(t){this._activating?this._emitValue(t):(this._buff.push(t),setTimeout(this._$shiftBuff,this._wait))},_handleEnd:function(){this._activating?this._emitEnd():(this._buff.push(hn),setTimeout(this._$shiftBuff,this._wait))}},mn=q("delay",dn),yn=H("delay",dn),vn=Date.now?function(){return Date.now()}:function(){return(new Date).getTime()},gn={_init:function(t){var e=this,n=t.wait,r=t.leading,o=t.trailing;this._wait=Math.max(0,n),this._leading=r,this._trailing=o,this._trailingValue=null,this._timeoutId=null,this._endLater=!1,this._lastCallTime=0,this._$trailingCall=function(){return e._trailingCall()}},_free:function(){this._trailingValue=null,this._$trailingCall=null},_handleValue:function(t){if(this._activating)this._emitValue(t);else{var e=vn();0!==this._lastCallTime||this._leading||(this._lastCallTime=e);var n=this._wait-(e-this._lastCallTime);n<=0?(this._cancelTrailing(),this._lastCallTime=e,this._emitValue(t)):this._trailing&&(this._cancelTrailing(),this._trailingValue=t,this._timeoutId=setTimeout(this._$trailingCall,n))}},_handleEnd:function(){this._activating?this._emitEnd():this._timeoutId?this._endLater=!0:this._emitEnd()},_cancelTrailing:function(){null!==this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null)},_trailingCall:function(){this._emitValue(this._trailingValue),this._timeoutId=null,this._trailingValue=null,this._lastCallTime=this._leading?vn():0,this._endLater&&this._emitEnd()}},_n=q("throttle",gn),bn=H("throttle",gn),kn={_init:function(t){var e=this,n=t.wait,r=t.immediate;this._wait=Math.max(0,n),this._immediate=r,this._lastAttempt=0,this._timeoutId=null,this._laterValue=null,this._endLater=!1,this._$later=function(){return e._later()}},_free:function(){this._laterValue=null,this._$later=null},_handleValue:function(t){this._activating?this._emitValue(t):(this._lastAttempt=vn(),this._immediate&&!this._timeoutId&&this._emitValue(t),this._timeoutId||(this._timeoutId=setTimeout(this._$later,this._wait)),this._immediate||(this._laterValue=t))},_handleEnd:function(){this._activating?this._emitEnd():this._timeoutId&&!this._immediate?this._endLater=!0:this._emitEnd()},_later:function(){var t=vn()-this._lastAttempt;t<this._wait&&t>=0?this._timeoutId=setTimeout(this._$later,this._wait-t):(this._timeoutId=null,this._immediate||(this._emitValue(this._laterValue),this._laterValue=null),this._endLater&&this._emitEnd())}},wn=q("debounce",kn),En=H("debounce",kn),Cn={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=this._fn;this._emitError(e(t))}},Tn=q("mapErrors",Cn),Pn=H("mapErrors",Cn),xn=function(t){return t},Sn={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=this._fn;e(t)&&this._emitError(t)}},An=q("filterErrors",Sn),On=H("filterErrors",Sn),In=function(t){return t},Mn={_handleValue:function(){}},Nn=q("ignoreValues",Mn),Rn=H("ignoreValues",Mn),Dn={_handleError:function(){}},jn=q("ignoreErrors",Dn),Ln=H("ignoreErrors",Dn),Un={_handleEnd:function(){}},Bn=q("ignoreEnd",Un),Vn=H("ignoreEnd",Un),Fn={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleEnd:function(){var t=this._fn;this._emitValue(t()),this._emitEnd()}},qn=q("beforeEnd",Fn),Hn=H("beforeEnd",Fn),Wn={_init:function(t){var e=t.min,n=t.max;this._max=n,this._min=e,this._buff=[]},_free:function(){this._buff=null},_handleValue:function(t){this._buff=d(this._buff,t,this._max),this._buff.length>=this._min&&this._emitValue(this._buff)}},Kn=q("slidingWindow",Wn),$n=H("slidingWindow",Wn),zn={_init:function(t){var e=t.fn,n=t.flushOnEnd;this._fn=e,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t);var e=this._fn;e(t)||this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Yn=q("bufferWhile",zn),Xn=H("bufferWhile",zn),Gn=function(t){return t},Qn={_init:function(t){var e=t.count,n=t.flushOnEnd;this._count=e,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Jn=q("bufferWithCount",Qn),Zn=H("bufferWithCount",Qn),tr={_init:function(t){var e=this,n=t.wait,r=t.count,o=t.flushOnEnd;this._wait=n,this._count=r,this._flushOnEnd=o,this._intervalId=null,this._$onTick=function(){return e._flush()},this._buff=[]},_free:function(){this._$onTick=null,this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&(clearInterval(this._intervalId),this._flush(),this._intervalId=setInterval(this._$onTick,this._wait))},_handleEnd:function(){this._flushOnEnd&&0!==this._buff.length&&this._flush(),this._emitEnd()},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait),this._source.onAny(this._$handleAny)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null),this._source.offAny(this._$handleAny)}},er=q("bufferWithTimeOrCount",tr),nr=H("bufferWithTimeOrCount",tr),rr={_init:function(t){var e=t.transducer;this._xform=e(St(this))},_free:function(){this._xform=null},_handleValue:function(t){null!==this._xform["@@transducer/step"](null,t)&&this._xform["@@transducer/result"](null)},_handleEnd:function(){this._xform["@@transducer/result"](null)}},or=q("transduce",rr),ir=H("transduce",rr),ar={_init:function(t){var e=t.fn;this._handler=e,this._emitter=P(this)},_free:function(){this._handler=null,this._emitter=null},_handleAny:function(t){this._handler(this._emitter,t)}},sr=q("withHandler",ar),ur=H("withHandler",ar),lr=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};o(It,g,{_name:"zip",_onActivation:function(){for(;this._isFull();)this._emit();var t=this._sources.length;this._aliveCount=t;for(var e=0;e<t&&this._active;e++)this._sources[e].onAny(this._$handlers[e])},_onDeactivation:function(){for(var t=0;t<this._sources.length;t++)this._sources[t].offAny(this._$handlers[t])},_emit:function(){for(var t=new Array(this._buffers.length),e=0;e<this._buffers.length;e++)t[e]=this._buffers[e].shift();var n=this._combinator;this._emitValue(n(t))},_isFull:function(){for(var t=0;t<this._buffers.length;t++)if(0===this._buffers[t].length)return!1;return!0},_handleAny:function(t,e){e.type===ae&&(this._buffers[t].push(e.value),this._isFull()&&this._emit()),e.type===se&&this._emitError(e.value),e.type===ie&&(this._aliveCount--,0===this._aliveCount&&this._emitEnd())},_clear:function(){g.prototype._clear.call(this),this._sources=null,this._buffers=null,this._combinator=null,this._$handlers=null}});var cr=function(t){return t};o(Nt,g,{_name:"abstractPool",_add:function(t,e){e=e||cr,this._concurLim===-1||this._curSources.length<this._concurLim?this._addToCur(e(t)):this._queueLim===-1||this._queue.length<this._queueLim?this._addToQueue(e(t)):"old"===this._drop&&(this._removeOldest(),this._add(t,e))},_addAll:function(t){var e=this;f(t,function(t){return e._add(t)})},_remove:function(t){this._removeCur(t)===-1&&this._removeQueue(t)},_addToQueue:function(t){this._queue=i(this._queue,[t])},_addToCur:function(t){if(this._active){if(!t._alive)return void(t._currentEvent&&this._emit(t._currentEvent.type,t._currentEvent.value));this._currentlyAdding=t,t.onAny(this._$handleSubAny),this._currentlyAdding=null,t._alive&&(this._curSources=i(this._curSources,[t]),this._active&&this._subToEnd(t))}else this._curSources=i(this._curSources,[t])},_subToEnd:function(t){var e=this,n=function(){return e._removeCur(t)};this._$endHandlers.push({obs:t,handler:n}),t.onEnd(n)},_subscribe:function(t){t.onAny(this._$handleSubAny),this._active&&this._subToEnd(t)},_unsubscribe:function(t){t.offAny(this._$handleSubAny);var e=s(this._$endHandlers,function(e){return e.obs===t});e!==-1&&(t.offEnd(this._$endHandlers[e].handler),this._$endHandlers.splice(e,1))},_handleSubAny:function(t){t.type===ae?this._emitValue(t.value):t.type===se&&this._emitError(t.value)},_removeQueue:function(t){var e=a(this._queue,t);return this._queue=l(this._queue,e),e},_removeCur:function(t){this._active&&this._unsubscribe(t);var e=a(this._curSources,t);return this._curSources=l(this._curSources,e),e!==-1&&(0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()),e},_removeOldest:function(){this._removeCur(this._curSources[0])},_pullQueue:function(){0!==this._queue.length&&(this._queue=u(this._queue),this._addToCur(this._queue.shift()))},_onActivation:function(){for(var t=0,e=this._curSources;t<e.length&&this._active;t++)this._subscribe(e[t])},_onDeactivation:function(){for(var t=0,e=this._curSources;t<e.length;t++)this._unsubscribe(e[t]);null!==this._currentlyAdding&&this._unsubscribe(this._currentlyAdding)},_isEmpty:function(){return 0===this._curSources.length},_onEmpty:function(){},_clear:function(){g.prototype._clear.call(this),this._queue=null,this._curSources=null,this._$handleSubAny=null,this._$endHandlers=null}}),o(Rt,Nt,{_name:"merge",_onEmpty:function(){this._initialised&&this._emitEnd()}}),o(jt,g,{_name:"repeat",_handleAny:function(t){t.type===ie?(this._source=null,this._getSource()):this._emit(t.type,t.value)},_getSource:function(){if(!this._inLoop){this._inLoop=!0;for(var t=this._generator;null===this._source&&this._alive&&this._active;)this._source=t(this._iteration++),this._source?this._source.onAny(this._$handleAny):this._emitEnd();this._inLoop=!1}},_onActivation:function(){this._source?this._source.onAny(this._$handleAny):this._getSource()},_onDeactivation:function(){this._source&&this._source.offAny(this._$handleAny)},_clear:function(){g.prototype._clear.call(this),this._generator=null,this._source=null,this._$handleAny=null}}),o(Bt,Nt,{_name:"pool",plug:function(t){return this._add(t),this},unplug:function(t){return this._remove(t),this}}),o(Vt,Nt,{_onActivation:function(){Nt.prototype._onActivation.call(this),this._active&&this._source.onAny(this._$handleMain)},_onDeactivation:function(){Nt.prototype._onDeactivation.call(this),this._source.offAny(this._$handleMain),this._hadNoEvSinceDeact=!0},_handleMain:function(t){if(t.type===ae){var e=this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value;e||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1}t.type===se&&this._emitError(t.value),t.type===ie&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)},_onEmpty:function(){this._mainEnded&&this._emitEnd()},_clear:function(){Nt.prototype._clear.call(this),this._source=null,this._lastCurrent=null,this._$handleMain=null}}),o(Ft,Vt,{_handleMain:function(t){if(t.type===se){var e=this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value;e||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1}t.type===ae&&this._emitValue(t.value),t.type===ie&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)}});var fr={_handlePrimaryValue:function(t){this._lastSecondary!==oe&&this._lastSecondary&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary!==oe&&this._lastSecondary||this._emitEnd()}},pr=Wt("filterBy",fr),hr=Kt("filterBy",fr),dr=function(t,e){return e},mr={_handlePrimaryValue:function(t){this._lastSecondary!==oe&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary===oe&&this._emitEnd()}},yr=Wt("skipUntilBy",mr),vr=Kt("skipUntilBy",mr),gr={_handleSecondaryValue:function(){this._emitEnd()}},_r=Wt("takeUntilBy",gr),br=Kt("takeUntilBy",gr),kr={_init:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.flushOnEnd,n=void 0===e||e;this._buff=[],this._flushOnEnd=n},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_onActivation:function(){this._primary.onAny(this._$handlePrimaryAny),this._alive&&null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny)},_handlePrimaryValue:function(t){this._buff.push(t)},_handleSecondaryValue:function(){this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._emitEnd()}},wr=Wt("bufferBy",kr),Er=Kt("bufferBy",kr),Cr={_init:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.flushOnEnd,n=void 0===e||e,r=t.flushOnChange,o=void 0!==r&&r;this._buff=[],this._flushOnEnd=n,this._flushOnChange=o},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_handlePrimaryValue:function(t){this._buff.push(t),this._lastSecondary===oe||this._lastSecondary||this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._lastSecondary!==oe&&!this._lastSecondary||this._emitEnd()},_handleSecondaryValue:function(t){this._flushOnChange&&!t&&this._flush(),this._lastSecondary=t}},Tr=Wt("bufferWhileBy",Cr),Pr=Kt("bufferWhileBy",Cr),xr=function(){return!1},Sr=function(){return!0},Ar={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn,n=e(t);n.convert?this._emitError(n.error):this._emitValue(t)}},Or=q("valuesToErrors",Ar),Ir=H("valuesToErrors",Ar),Mr=function(t){return{convert:!0,error:t}},Nr={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=this._fn,n=e(t);n.convert?this._emitValue(n.value):this._emitError(t)}},Rr=q("errorsToValues",Nr),Dr=H("errorsToValues",Nr),jr=function(t){return{convert:!0,value:t}},Lr={_handleError:function(t){this._emitError(t),this._emitEnd()}},Ur=q("endOnError",Lr),Br=H("endOnError",Lr);v.prototype.toProperty=function(t){return W(this,t)},v.prototype.changes=function(){return K(this)},v.prototype.toPromise=function(t){return Y(this,t)},v.prototype.toESObservable=J,v.prototype[Ce]=J,v.prototype.map=function(t){return nt(this,t)},v.prototype.filter=function(t){return rt(this,t)},v.prototype.take=function(t){return ot(this,t)},v.prototype.takeErrors=function(t){return it(this,t)},v.prototype.takeWhile=function(t){return at(this,t)},v.prototype.last=function(){return st(this)},v.prototype.skip=function(t){return ut(this,t)},v.prototype.skipWhile=function(t){return lt(this,t)},v.prototype.skipDuplicates=function(t){return ct(this,t)},v.prototype.diff=function(t,e){return pt(this,t,e)},v.prototype.scan=function(t,e){return ht(this,t,e)},v.prototype.flatten=function(t){return dt(this,t)},v.prototype.delay=function(t){return mt(this,t)},v.prototype.throttle=function(t,e){return yt(this,t,e)},v.prototype.debounce=function(t,e){return vt(this,t,e)},v.prototype.mapErrors=function(t){return gt(this,t)},v.prototype.filterErrors=function(t){return _t(this,t)},v.prototype.ignoreValues=function(){return bt(this)},v.prototype.ignoreErrors=function(){return kt(this)},v.prototype.ignoreEnd=function(){return wt(this)},v.prototype.beforeEnd=function(t){return Et(this,t)},v.prototype.slidingWindow=function(t,e){return Ct(this,t,e)},v.prototype.bufferWhile=function(t,e){return Tt(this,t,e)},v.prototype.bufferWithCount=function(t,e){return Pt(this,t,e)},v.prototype.bufferWithTimeOrCount=function(t,e,n){return xt(this,t,e,n)},v.prototype.transduce=function(t){return At(this,t)},v.prototype.withHandler=function(t){return Ot(this,t)},v.prototype.combine=function(t,e){return et([this,t],e)},v.prototype.zip=function(t,e){return Mt([this,t],e)},v.prototype.merge=function(t){return Dt([this,t])},v.prototype.concat=function(t){return Ut([this,t])};var Vr=function(){return new Bt};v.prototype.flatMap=function(t){return new Vt(this,t).setName(this,"flatMap")},v.prototype.flatMapLatest=function(t){return new Vt(this,t,{concurLim:1,drop:"old"}).setName(this,"flatMapLatest")},v.prototype.flatMapFirst=function(t){return new Vt(this,t,{concurLim:1}).setName(this,"flatMapFirst")},v.prototype.flatMapConcat=function(t){return new Vt(this,t,{queueLim:-1,concurLim:1}).setName(this,"flatMapConcat")},v.prototype.flatMapConcurLimit=function(t,e){return new Vt(this,t,{queueLim:-1,concurLim:e}).setName(this,"flatMapConcurLimit")},v.prototype.flatMapErrors=function(t){return new Ft(this,t).setName(this,"flatMapErrors")},v.prototype.filterBy=function(t){return $t(this,t)},v.prototype.sampledBy=function(t,e){return zt(this,t,e)},v.prototype.skipUntilBy=function(t){return Yt(this,t)},v.prototype.takeUntilBy=function(t){return Xt(this,t)},v.prototype.bufferBy=function(t,e){return Gt(this,t,e)},v.prototype.bufferWhileBy=function(t,e){return Qt(this,t,e)};var Fr=!0;v.prototype.awaiting=function(t){return re("You are using deprecated .awaiting() method, see https://github.com/rpominov/kefir/issues/145"),Jt(this,t)},v.prototype.valuesToErrors=function(t){return re("You are using deprecated .valuesToErrors() method, see https://github.com/rpominov/kefir/issues/149"),Zt(this,t)},v.prototype.errorsToValues=function(t){return re("You are using deprecated .errorsToValues() method, see https://github.com/rpominov/kefir/issues/149"),te(this,t)},v.prototype.endOnError=function(){return re("You are using deprecated .endOnError() method, see https://github.com/rpominov/kefir/issues/150"),ee(this)};var qr={Observable:v,Stream:g,Property:_,never:b,later:w,interval:E,sequentially:C,fromPoll:T,withInterval:x,fromCallback:O,fromNodeCallback:I,fromEvents:D,stream:A,constant:L,constantError:B,fromPromise:$,fromESObservable:G,combine:et,zip:Mt,merge:Dt,concat:Ut,Pool:Bt,pool:Vr,repeat:Lt,staticLand:Pe};qr.Kefir=qr,e.dissableDeprecationWarnings=ne,e.Kefir=qr,e.Observable=v,e.Stream=g,e.Property=_,e.never=b,e.later=w,e.interval=E,e.sequentially=C,e.fromPoll=T,e.withInterval=x,e.fromCallback=O,e.fromNodeCallback=I,e.fromEvents=D,e.stream=A,e.constant=L,e.constantError=B,e.fromPromise=$,e.fromESObservable=G,e.combine=et,e.zip=Mt,e.merge=Dt,e.concat=Ut,e.Pool=Bt,e.pool=Vr,e.repeat=Lt,e.staticLand=Pe,e.default=qr,Object.defineProperty(e,"__esModule",{value:!0})})}).call(e,function(){return this}())},[278,3],function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t){var e=t.album_id,n=t.albumartist;return e?"album_id:"+e:"albumartist:"+n}function a(t,e,n){if(!e&&!n)return new Promise(function(t,e){t([])});var r=t+"/item/query/"+i({albumartist:n,album_id:e});return window.fetch(r).then(function(t){return t.json()}).then(function(t){var e=t.results;return e})}Object.defineProperty(e,"__esModule",{value:!0}),e.kFilteredAlbums=e.kAlbumFilter=e.setAlbumFilter=e.kFilteredArtists=e.kArtistFilter=e.setArtistFilter=e.getTrackList=e.setTrackIndex=e.setAlbum=e.setArtist=e.kPlayerQueueGetter=e.kTrack=e.kTrackIndex=e.kTrackList=e.kAlbum=e.kAlbums=e.kArtist=e.kArtists=void 0;var s=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e; if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.default=i;var u=n(17),l=r(u),c=n(14),f=n(15),p=r(f),h=n(138),d=r(h),m=n(137),y=r(m);window.K=l.default;var v=function(t){return t.onValue(function(){})},g=function(t){return function(e){return e[t]||null}},_=null,b=function(){return window.location.search?_=Object.assign({artist:null,album:null},(0,d.default)(window.location.search.slice(1))):{artist:null,album:null}},k=(0,p.default)(),w=s(k,2),E=w[0],C=w[1],T=l.default.fromEvents(window,"popstate").merge(C).merge(l.default.constant(null)).map(b),P=function(t){return function(e){var n=Object.assign({},_,o({},t,e));_=n,history.pushState(null,"",(0,y.default)(n)),E()}},x=c.kBeetsWebURL.flatMapLatest(function(t){return l.default.fromPromise(window.fetch(t+"/album/").then(function(t){return t.json()}).then(function(t){var e=t.albums;return e.sort(function(t,e){return t.album<e.album?-1:1})}))}).toProperty(function(){return[]});v(x);var S=x.map(function(t){var e={},n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;e[s.id]=s}}catch(t){r=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return e}).toProperty(function(){});v(S);var A=x.map(function(t){var e={},n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;e[s.albumartist]||(e[s.albumartist]=[]),e[s.albumartist].push(s)}}catch(t){r=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}var u=!0,l=!1,c=void 0;try{for(var f,p=Object.keys(e)[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var h=f.value;e[h].sort(function(t,e){return t.year!==e.year?t.year>e.year?1:-1:t.album>e.album?1:-1})}}catch(t){l=!0,c=t}finally{try{!u&&p.return&&p.return()}finally{if(l)throw c}}return e}).toProperty(function(){});v(x);var O=A.map(function(t){return Object.keys(t).sort(function(t,e){return t>e?1:-1})});v(O);var I=P("artist"),M=T.map(g("artist")).skipDuplicates().toProperty(function(){return b().artist});v(M);var N=l.default.combine([A,M,x]).map(function(t){var e=s(t,3),n=e[0],r=e[1],o=e[2];return r?n[r]||[]:o}).toProperty(function(){return[]});v(N);var R=P("album"),D=M.map(function(){return null}).skip(1).merge(T.map(g("album"))).skipDuplicates().toProperty(function(){return b().album});v(D);var j=l.default.combine([c.kBeetsWebURL,M,D]).flatMapLatest(function(t){var e=s(t,3),n=e[0],r=e[1],o=e[2];return l.default.fromPromise(a(n,o,r))}).toProperty(function(){return[]}),L=(0,p.default)(),U=s(L,2),B=U[0],V=U[1],F=V.merge(j.changes().map(function(){return null})).toProperty(function(){return null});v(F);var q=l.default.combine([j,F],function(t,e){return null===e?null:t.length<1?null:e>=t.length?null:t[e]}).toProperty(function(){return null});v(q);var H=l.default.combine([j,F],function(t,e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=null===n?e:n;return null===r?[]:t.length<1?[]:r>=t.length?[]:t.slice(r)}}).toProperty(function(){return function(){return[]}});v(H);var W=(0,p.default)(),K=s(W,2),$=K[0],z=K[1],Y=z.toProperty(function(){return""}),X=(0,p.default)(),G=s(X,2),Q=G[0],J=G[1],Z=J.toProperty(function(){return""}),tt=l.default.combine([O,Y.debounce(300)],function(t,e){return e=e.toLocaleLowerCase(),e?t?t.filter(function(t){return t.toLocaleLowerCase().indexOf(e)>-1}):[]:t}).toProperty(function(){return[]}),et=l.default.combine([N,Z.debounce(300)],function(t,e){return e=e.toLocaleLowerCase(),e?t?t.filter(function(t){return t.album.toLocaleLowerCase().indexOf(e)>-1}):[]:t}).toProperty(function(){return[]});l.default.combine([T.merge(l.default.constant(null)),M,D,S]).toProperty(function(){return[null,null,null,{}]}).map(function(t){var e=s(t,4),n=(e[0],e[1]),r=e[2],o=e[3];if(r&&o[r]){var i=o[r];return"Summertunes – "+i.album+" – "+i.albumartist}return n?"Summertunes – "+n:"Summertunes"}).onValue(function(t){return document.title=t}),e.kArtists=O,e.kArtist=M,e.kAlbums=N,e.kAlbum=D,e.kTrackList=j,e.kTrackIndex=F,e.kTrack=q,e.kPlayerQueueGetter=H,e.setArtist=I,e.setAlbum=R,e.setTrackIndex=B,e.getTrackList=a,e.setArtistFilter=$,e.kArtistFilter=Y,e.kFilteredArtists=tt,e.setAlbumFilter=Q,e.kAlbumFilter=Z,e.kFilteredAlbums=et},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.kSpaces=e.kEnters=e.kDowns=e.kUps=e.kKeyboardFocus=e.keyboardFocusOptions=void 0;var o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=n(85),a=r(i),s=n(15),u=r(s),l=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,u.default)(),r=o(n,2),i=r[0],a=r[1],s=(e?a.skipDuplicates():a).toProperty(function(){return t});return[i,s]},c=function(t){var e=(0,u.default)(),n=o(e,2),r=n[0],i=n[1];return a.default.bind(t,r),i.onValue(function(){}),i},f={artist:"artist",album:"album",trackList:"trackList",queue:"queue"},p=l("artist"),h=o(p,2),d=h[0],m=h[1];m.log("kb").onValue(function(){});var y=c(["up","k"]),v=c(["down","j"]),g=c(["left","h"]).merge(c("h")),_=c(["right","l"]),b=c(["enter","return"]),k=c("space");a.default.bind("a",d.bind(void 0,f.artist)),a.default.bind("b",d.bind(void 0,f.album)),a.default.bind("t",d.bind(void 0,f.trackList)),a.default.bind("q",d.bind(void 0,f.queue)),m.sampledBy(g).onValue(function(t){switch(t){case f.artist:break;case f.album:d(f.artist);break;case f.trackList:d(f.album)}}),m.sampledBy(_).onValue(function(t){switch(t){case f.artist:d(f.album);break;case f.album:d(f.trackList);break;case f.trackList:}}),e.keyboardFocusOptions=f,e.kKeyboardFocus=m,e.kUps=y,e.kDowns=v,e.kEnters=b,e.kSpaces=k},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.setSmallUIConfig=e.kUIConfig=e.kUIConfigOptions=e.kUIConfigSetter=e.kIsSmallUI=e.kIsLargeUI=e.kIsMediumUI=e.closeInfoModal=e.openInfoModal=e.kInfoModalTrack=e.kIsInfoModalOpen=void 0;var o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=n(17),a=r(i),s=n(15),u=r(s),l=n(75),c=r(l),f=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,u.default)(),r=o(n,2),i=r[0],a=r[1],s=(e?a.skipDuplicates():a).toProperty(function(){return t});return[i,s]},p=600,h=1100,d={A:[["albumartist","album"],["tracks"]],B:[["albumartist","album","tracks"]],Q:[["hierarchy","queue"]]},m=d,y={Artist:[["albumartist"]],Album:[["album"]],Tracks:[["tracks"]],Queue:[["queue"]]},v=function(){return window.document.body.clientWidth},g=a.default.fromEvents(window,"resize").map(v).toProperty(v),_=g.map(function(t){return t>=p&&t<h}),b=g.map(function(t){return t>=h}),k=a.default.combine([b,_],function(t,e){return!t&&!e}).toProperty(function(){return!1}),w=f(!1),E=o(w,2),C=E[0],T=E[1],P=f(null),x=o(P,2),S=x[0],A=x[1];A.onValue(function(){});var O=function(t){S(t),C(!0)},I=function(){C(!1)},M=f((0,c.default)("uiLargeUIConfig","B")),N=o(M,2),R=N[0],D=N[1],j=f((0,c.default)("uiMediumUIConfig","A")),L=o(j,2),U=L[0],B=L[1],V=f((0,c.default)("uiSmallUIConfig","Artist")),F=o(V,2),q=F[0],H=F[1],W=a.default.combine([b,_],function(t,e){return t?R:e?U:q}).toProperty(function(){return R}),K=a.default.combine([b,_],function(t,e){return t?d:e?m:y}).toProperty(function(){return d}),$=a.default.combine([b,_]).flatMapLatest(function(t){var e=o(t,2),n=e[0],r=e[1];return n?D:r?B:H}).toProperty(function(){return d.B});D.onValue(function(t){return localStorage.uiLargeUIConfig=JSON.stringify(t)}),B.onValue(function(t){return localStorage.uiMediumUIConfig=JSON.stringify(t)}),H.onValue(function(t){return localStorage.uiSmallUIConfig=JSON.stringify(t)}),e.kIsInfoModalOpen=T,e.kInfoModalTrack=A,e.openInfoModal=O,e.closeInfoModal=I,e.kIsMediumUI=_,e.kIsLargeUI=b,e.kIsSmallUI=k,e.kUIConfigSetter=W,e.kUIConfigOptions=K,e.kUIConfig=$,e.setSmallUIConfig=q},function(t,e,n){(function(t){function r(t,n){var r="b"+e.packets[t.type]+t.data.data;return n(r)}function o(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var o=t.data,i=new Uint8Array(o),a=new Uint8Array(1+o.byteLength);a[0]=g[t.type];for(var s=0;s<i.length;s++)a[s+1]=i[s];return r(a.buffer)}function i(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var o=new FileReader;return o.onload=function(){t.data=o.result,e.encodePacket(t,n,!0,r)},o.readAsArrayBuffer(t.data)}function a(t,n,r){if(!n)return e.encodeBase64Packet(t,r);if(v)return i(t,n,r);var o=new Uint8Array(1);o[0]=g[t.type];var a=new k([o.buffer,t.data]);return r(a)}function s(t){try{t=d.decode(t)}catch(t){return!1}return t}function u(t,e,n){for(var r=new Array(t.length),o=h(t.length,n),i=function(t,n,o){e(n,function(e,n){r[t]=n,o(e,r)})},a=0;a<t.length;a++)i(a,t[a],o)}var l,c=n(152),f=n(83),p=n(122),h=n(121),d=n(275);t&&t.ArrayBuffer&&(l=n(142));var m="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),y="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),v=m||y;e.protocol=3;var g=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},_=c(g),b={type:"error",data:"parser error"},k=n(143);e.encodePacket=function(e,n,i,s){"function"==typeof n&&(s=n,n=!1),"function"==typeof i&&(s=i,i=null);var u=void 0===e.data?void 0:e.data.buffer||e.data;if(t.ArrayBuffer&&u instanceof ArrayBuffer)return o(e,n,s);if(k&&u instanceof t.Blob)return a(e,n,s);if(u&&u.base64)return r(e,s);var l=g[e.type];return void 0!==e.data&&(l+=i?d.encode(String(e.data)):String(e.data)),s(""+l)},e.encodeBase64Packet=function(n,r){var o="b"+e.packets[n.type];if(k&&n.data instanceof t.Blob){var i=new FileReader;return i.onload=function(){var t=i.result.split(",")[1];r(o+t)},i.readAsDataURL(n.data)}var a;try{a=String.fromCharCode.apply(null,new Uint8Array(n.data))}catch(t){for(var s=new Uint8Array(n.data),u=new Array(s.length),l=0;l<s.length;l++)u[l]=s[l];a=String.fromCharCode.apply(null,u)}return o+=t.btoa(a),r(o)},e.decodePacket=function(t,n,r){if(void 0===t)return b;if("string"==typeof t){if("b"==t.charAt(0))return e.decodeBase64Packet(t.substr(1),n);if(r&&(t=s(t),t===!1))return b;var o=t.charAt(0);return Number(o)==o&&_[o]?t.length>1?{type:_[o],data:t.substring(1)}:{type:_[o]}:b}var i=new Uint8Array(t),o=i[0],a=p(t,1);return k&&"blob"===n&&(a=new k([a])),{type:_[o],data:a}},e.decodeBase64Packet=function(t,e){var n=_[t.charAt(0)];if(!l)return{type:n,data:{base64:!0,data:t.substr(1)}};var r=l.decode(t.substr(1));return"blob"===e&&k&&(r=new k([r])),{type:n,data:r}},e.encodePayload=function(t,n,r){function o(t){return t.length+":"+t}function i(t,r){e.encodePacket(t,!!a&&n,!0,function(t){r(null,o(t))})}"function"==typeof n&&(r=n,n=null);var a=f(t);return n&&a?k&&!v?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void u(t,i,function(t,e){return r(e.join(""))}):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);"function"==typeof n&&(r=n,n=null);var o;if(""==t)return r(b,0,1);for(var i,a,s="",u=0,l=t.length;u<l;u++){var c=t.charAt(u);if(":"!=c)s+=c;else{if(""==s||s!=(i=Number(s)))return r(b,0,1);if(a=t.substr(u+1,i),s!=a.length)return r(b,0,1);if(a.length){if(o=e.decodePacket(a,n,!0),b.type==o.type&&b.data==o.data)return r(b,0,1);var f=r(o,u+i,l);if(!1===f)return}u+=i,s=""}}return""!=s?r(b,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,n){function r(t,n){e.encodePacket(t,!0,!0,function(t){return n(null,t)})}return t.length?void u(t,r,function(t,e){var r=e.reduce(function(t,e){var n;return n="string"==typeof e?e.length:e.byteLength,t+n.toString().length+n+2},0),o=new Uint8Array(r),i=0;return e.forEach(function(t){var e="string"==typeof t,n=t;if(e){for(var r=new Uint8Array(t.length),a=0;a<t.length;a++)r[a]=t.charCodeAt(a);n=r.buffer}e?o[i++]=0:o[i++]=1;for(var s=n.byteLength.toString(),a=0;a<s.length;a++)o[i++]=parseInt(s[a]);o[i++]=255;for(var r=new Uint8Array(n),a=0;a<r.length;a++)o[i++]=r[a]}),n(o.buffer)}):n(new ArrayBuffer(0))},e.encodePayloadAsBlob=function(t,n){function r(t,n){e.encodePacket(t,!0,!0,function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var r=new Uint8Array(t.length),o=0;o<t.length;o++)r[o]=t.charCodeAt(o);t=r.buffer,e[0]=0}for(var i=t instanceof ArrayBuffer?t.byteLength:t.size,a=i.toString(),s=new Uint8Array(a.length+1),o=0;o<a.length;o++)s[o]=parseInt(a[o]);if(s[a.length]=255,k){var u=new k([e.buffer,s.buffer,t]);n(null,u)}})}u(t,r,function(t,e){return n(new k(e))})},e.decodePayloadAsBinary=function(t,n,r){"function"==typeof n&&(r=n,n=null);for(var o=t,i=[],a=!1;o.byteLength>0;){for(var s=new Uint8Array(o),u=0===s[0],l="",c=1;255!=s[c];c++){if(l.length>310){a=!0;break}l+=s[c]}if(a)return r(b,0,1);o=p(o,2+l.length),l=parseInt(l);var f=p(o,0,l);if(u)try{f=String.fromCharCode.apply(null,new Uint8Array(f))}catch(t){var h=new Uint8Array(f);f="";for(var c=0;c<h.length;c++)f+=String.fromCharCode(h[c])}i.push(f),o=p(o,l)}var d=i.length;i.forEach(function(t,o){r(e.decodePacket(t,n,!0),o,d)})}}).call(e,function(){return this}())},function(t,e){"use strict";function n(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return"function"==typeof t&&t.apply(void 0,n)}function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function o(){return Math.random().toString(36).substring(7)}Object.defineProperty(e,"__esModule",{value:!0}),e.callIfExists=n,e.hasOwnProp=r,e.uniqueId=o;e.cssClasses={menu:"react-contextmenu",menuVisible:"react-contextmenu--visible",menuWrapper:"react-contextmenu-wrapper",menuItem:"react-contextmenu-item",menuItemActive:"react-contextmenu-item--active",menuItemDisabled:"react-contextmenu-item--disabled",subMenu:"react-contextmenu-submenu"},e.store={},e.canUseDOM=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},function(t,e,n){"use strict";function r(t){if(y){var e=t.node,n=t.children;if(n.length)for(var r=0;r<n.length;r++)v(e,n[r],null);else null!=t.html?f(e,t.html):null!=t.text&&h(e,t.text)}}function o(t,e){t.parentNode.replaceChild(e.node,t),r(e)}function i(t,e){y?t.children.push(e):t.node.appendChild(e.node)}function a(t,e){y?t.html=e:f(t.node,e)}function s(t,e){y?t.text=e:h(t.node,e)}function u(){return this.node.nodeName}function l(t){return{node:t,children:[],html:null,text:null,toString:u}}var c=n(56),f=n(45),p=n(64),h=n(107),d=1,m=11,y="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),v=p(function(t,e,n){e.node.nodeType===m||e.node.nodeType===d&&"object"===e.node.nodeName.toLowerCase()&&(null==e.node.namespaceURI||e.node.namespaceURI===c.html)?(r(e),t.insertBefore(e.node,n)):(t.insertBefore(e.node,n),r(e))});l.insertTreeBefore=v,l.replaceChildWithTree=o,l.queueChild=i,l.queueHTML=a,l.queueText=s,t.exports=l},function(t,e,n){"use strict";function r(t,e){return(t&e)===e}var o=n(3),i=(n(1),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(t){var e=i,n=t.Properties||{},a=t.DOMAttributeNamespaces||{},u=t.DOMAttributeNames||{},l=t.DOMPropertyNames||{},c=t.DOMMutationMethods||{};t.isCustomAttribute&&s._isCustomAttributeFunctions.push(t.isCustomAttribute);for(var f in n){s.properties.hasOwnProperty(f)?o("48",f):void 0;var p=f.toLowerCase(),h=n[f],d={attributeName:p,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseProperty:r(h,e.MUST_USE_PROPERTY),hasBooleanValue:r(h,e.HAS_BOOLEAN_VALUE),hasNumericValue:r(h,e.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(h,e.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(h,e.HAS_OVERLOADED_BOOLEAN_VALUE)};if(d.hasBooleanValue+d.hasNumericValue+d.hasOverloadedBooleanValue<=1?void 0:o("50",f),u.hasOwnProperty(f)){var m=u[f];d.attributeName=m}a.hasOwnProperty(f)&&(d.attributeNamespace=a[f]),l.hasOwnProperty(f)&&(d.propertyName=l[f]),c.hasOwnProperty(f)&&(d.mutationMethod=c[f]),s.properties[f]=d}}}),a=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:a,ATTRIBUTE_NAME_CHAR:a+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(t){for(var e=0;e<s._isCustomAttributeFunctions.length;e++){var n=s._isCustomAttributeFunctions[e];if(n(t))return!0}return!1},injection:i};t.exports=s},function(t,e,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=n(223),i=(n(10),n(2),{mountComponent:function(t,e,n,o,i,a){var s=t.mountComponent(e,n,o,i,a);return t._currentElement&&null!=t._currentElement.ref&&e.getReactMountReady().enqueue(r,t),s},getHostNode:function(t){return t.getHostNode()},unmountComponent:function(t,e){o.detachRefs(t,t._currentElement),t.unmountComponent(e)},receiveComponent:function(t,e,n,i){var a=t._currentElement;if(e!==a||i!==t._context){var s=o.shouldUpdateRefs(a,e);s&&o.detachRefs(t,a),t.receiveComponent(e,n,i),s&&t._currentElement&&null!=t._currentElement.ref&&n.getReactMountReady().enqueue(r,t)}},performUpdateIfNecessary:function(t,e,n){t._updateBatchNumber===n&&t.performUpdateIfNecessary(e)}});t.exports=i},function(t,e,n){"use strict";var r=n(4),o=n(254),i=n(71),a=n(259),s=n(255),u=n(256),l=n(28),c=n(257),f=n(260),p=n(261),h=(n(2),l.createElement),d=l.createFactory,m=l.cloneElement,y=r,v={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:p},Component:i,PureComponent:a,createElement:h,cloneElement:m,isValidElement:l.isValidElement,PropTypes:c,createClass:s.createClass,createFactory:d,createMixin:function(t){return t},DOM:u,version:f,__spread:y};t.exports=v},function(t,e,n){"use strict";function r(t){return void 0!==t.ref}function o(t){return void 0!==t.key}var i=n(4),a=n(13),s=(n(2),n(112),Object.prototype.hasOwnProperty),u=n(110),l={key:!0,ref:!0,__self:!0,__source:!0},c=function(t,e,n,r,o,i,a){var s={$$typeof:u,type:t,key:e,ref:n,props:a,_owner:i};return s};c.createElement=function(t,e,n){var i,u={},f=null,p=null,h=null,d=null;if(null!=e){r(e)&&(p=e.ref),o(e)&&(f=""+e.key),h=void 0===e.__self?null:e.__self,d=void 0===e.__source?null:e.__source;for(i in e)s.call(e,i)&&!l.hasOwnProperty(i)&&(u[i]=e[i])}var m=arguments.length-2;if(1===m)u.children=n;else if(m>1){for(var y=Array(m),v=0;v<m;v++)y[v]=arguments[v+2];u.children=y}if(t&&t.defaultProps){var g=t.defaultProps;for(i in g)void 0===u[i]&&(u[i]=g[i])}return c(t,f,p,h,d,a.current,u)},c.createFactory=function(t){var e=c.createElement.bind(null,t);return e.type=t,e},c.cloneAndReplaceKey=function(t,e){var n=c(t.type,e,t.ref,t._self,t._source,t._owner,t.props);return n},c.cloneElement=function(t,e,n){var u,f=i({},t.props),p=t.key,h=t.ref,d=t._self,m=t._source,y=t._owner;if(null!=e){r(e)&&(h=e.ref,y=a.current),o(e)&&(p=""+e.key);var v;t.type&&t.type.defaultProps&&(v=t.type.defaultProps);for(u in e)s.call(e,u)&&!l.hasOwnProperty(u)&&(void 0===e[u]&&void 0!==v?f[u]=v[u]:f[u]=e[u])}var g=arguments.length-2;if(1===g)f.children=n;else if(g>1){for(var _=Array(g),b=0;b<g;b++)_[b]=arguments[b+2];f.children=_}return c(t.type,p,h,d,m,y,f)},c.isValidElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===u},t.exports=c},3,function(t,e,n){"use strict";var r={};t.exports=r},function(t,e,n){"use strict";function r(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}function o(t,e,n){switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!r(e));default:return!1}}var i=n(3),a=n(57),s=n(58),u=n(62),l=n(101),c=n(102),f=(n(1),{}),p=null,h=function(t,e){t&&(s.executeDispatchesInOrder(t,e),t.isPersistent()||t.constructor.release(t))},d=function(t){return h(t,!0)},m=function(t){return h(t,!1)},y=function(t){return"."+t._rootNodeID},v={injection:{injectEventPluginOrder:a.injectEventPluginOrder,injectEventPluginsByName:a.injectEventPluginsByName},putListener:function(t,e,n){"function"!=typeof n?i("94",e,typeof n):void 0;var r=y(t),o=f[e]||(f[e]={});o[r]=n;var s=a.registrationNameModules[e];s&&s.didPutListener&&s.didPutListener(t,e,n)},getListener:function(t,e){var n=f[e];if(o(e,t._currentElement.type,t._currentElement.props))return null;var r=y(t);return n&&n[r]},deleteListener:function(t,e){var n=a.registrationNameModules[e];n&&n.willDeleteListener&&n.willDeleteListener(t,e);var r=f[e];if(r){var o=y(t);delete r[o]}},deleteAllListeners:function(t){var e=y(t);for(var n in f)if(f.hasOwnProperty(n)&&f[n][e]){var r=a.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(t,n),delete f[n][e]}},extractEvents:function(t,e,n,r){for(var o,i=a.plugins,s=0;s<i.length;s++){var u=i[s];if(u){var c=u.extractEvents(t,e,n,r);c&&(o=l(o,c))}}return o},enqueueEvents:function(t){t&&(p=l(p,t))},processEventQueue:function(t){var e=p;p=null,t?c(e,d):c(e,m),p?i("95"):void 0,u.rethrowCaughtError()},__purge:function(){f={}},__getListenerBank:function(){return f}};t.exports=v},function(t,e,n){"use strict";function r(t,e,n){var r=e.dispatchConfig.phasedRegistrationNames[n];return v(t,r)}function o(t,e,n){var o=r(t,n,e);o&&(n._dispatchListeners=m(n._dispatchListeners,o),n._dispatchInstances=m(n._dispatchInstances,t))}function i(t){t&&t.dispatchConfig.phasedRegistrationNames&&d.traverseTwoPhase(t._targetInst,o,t)}function a(t){if(t&&t.dispatchConfig.phasedRegistrationNames){var e=t._targetInst,n=e?d.getParentInstance(e):null;d.traverseTwoPhase(n,o,t)}}function s(t,e,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=v(t,r);o&&(n._dispatchListeners=m(n._dispatchListeners,o),n._dispatchInstances=m(n._dispatchInstances,t))}}function u(t){t&&t.dispatchConfig.registrationName&&s(t._targetInst,null,t)}function l(t){y(t,i)}function c(t){y(t,a)}function f(t,e,n,r){d.traverseEnterLeave(n,r,s,t,e)}function p(t){y(t,u)}var h=n(31),d=n(58),m=n(101),y=n(102),v=(n(2),h.getListener),g={accumulateTwoPhaseDispatches:l,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:p,accumulateEnterLeaveDispatches:f};t.exports=g},function(t,e){"use strict";var n={remove:function(t){t._reactInternalInstance=void 0},get:function(t){return t._reactInternalInstance},has:function(t){return void 0!==t._reactInternalInstance},set:function(t,e){t._reactInternalInstance=e}};t.exports=n},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(12),i=n(67),a={view:function(t){if(t.view)return t.view;var e=i(t);if(e.window===e)return e;var n=e.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(t){return t.detail||0}};o.augmentClass(r,a),t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:22,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#666",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=2*Math.PI,u=[0,s/3,s/3*2],c=[],f=.3*n,p=-2,h=e?"scale(-1, 1)":"",d=!0,m=!1,y=void 0;try{for(var v,g=u[Symbol.iterator]();!(d=(v=g.next()).done);d=!0){var _=v.value;c.push(Math.cos(_)*f+p,Math.sin(_)*f)}}catch(t){m=!0,y=t}finally{try{!d&&g.return&&g.return()}finally{if(m)throw y}}var b=c[0],k=(c[1],c[2],c[3]),w=(c[4],c[5]);return l.default.createElement("svg",{width:n,height:n,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},l.default.createElement("g",{transform:"translate("+(n/2+o)+", "+(n/2+i)+") "+h},l.default.createElement("polygon",{points:c.join(" "),fill:r,strokeWidth:"0"}),t&&l.default.createElement("line",{x1:b+1,y1:k,x2:b+1,y2:w,strokeWidth:"1",stroke:r}),a&&l.default.createElement("g",{transform:"translate("+(n/8+o)+", "+(n/3+i)+")"},l.default.createElement("line",{x1:-n/8,y1:0,x2:n/8,y2:0,strokeWidth:"1",stroke:r}),l.default.createElement("line",{y1:-n/8,x1:0,y2:n/8,x2:0,strokeWidth:"1",stroke:r}))))}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:22,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#666",n=.2*t,r=.5*t;return l.default.createElement("svg",{width:t,height:t,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},l.default.createElement("g",{transform:"translate("+t/2+", "+t/2+")"},l.default.createElement("rect",{x:-n-2,y:-r/2,width:n,height:r,fill:e,strokeWidth:"0"}),l.default.createElement("rect",{x:2,y:-r/2,width:n,height:r,fill:e,strokeWidth:"0"})))}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#666";return l.default.createElement("svg",{width:t,height:t,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},l.default.createElement("rect",{x:0,y:0,width:t,height:t,fill:"none",stroke:e,strokeWidth:"1"}),l.default.createElement("line",{x1:t/4,y1:0,x2:t/4,y2:t,strokeWidth:"1",stroke:e}),l.default.createElement("line",{x1:t/2,y1:0,x2:t/2,y2:t,strokeWidth:"1",stroke:e}))}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#666";return l.default.createElement("svg",{width:t,height:t,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},l.default.createElement("rect",{x:0,y:0,width:t,height:t,fill:"none",stroke:e,strokeWidth:"1"}),l.default.createElement("line",{x1:t/2,y1:0,x2:t/2,y2:t/2,strokeWidth:"1",stroke:e}),l.default.createElement("line",{x1:0,y1:t/2,x2:t,y2:t/2,strokeWidth:"1",stroke:e}))}Object.defineProperty(e,"__esModule",{value:!0}),e.uiConfigIconMedium=e.uiConfigIconLarge=e.pause=e.play=void 0;var u=n(6),l=r(u);e.play=o,e.pause=i,e.uiConfigIconLarge=a,e.uiConfigIconMedium=s},function(t,e){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},[277,151],function(t,e){"use strict";function n(t,e){return t===e?0!==t||0!==e||1/t===1/e:t!==t&&e!==e}function r(t,e){if(n(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var r=Object.keys(t),i=Object.keys(e);if(r.length!==i.length)return!1;for(var a=0;a<r.length;a++)if(!o.call(e,r[a])||!n(t[r[a]],e[r[a]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;t.exports=r},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){m&&h&&(m=!1,h.length?d=h.concat(d):y=-1,d.length&&s())}function s(){if(!m){var t=o(a);m=!0;for(var e=d.length;e;){for(h=d,d=[];++y<e;)h&&h[y].run();y=-1,e=d.length}h=null,m=!1,i(t)}}function u(t,e){this.fun=t,this.array=e}function l(){}var c,f,p=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var h,d=[],m=!1,y=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new u(t,e)),1!==d.length||m||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window,r=void 0;"function"==typeof window.CustomEvent?r=new window.CustomEvent(t,{detail:e}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,!1,!0,e)),n&&(n.dispatchEvent(r),(0,u.default)(l.store,e))}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];o(c,(0,u.default)({},t,{type:c}),e)}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];o(f,(0,u.default)({},t,{type:f}),e)}Object.defineProperty(e,"__esModule",{value:!0}),e.MENU_HIDE=e.MENU_SHOW=void 0,e.dispatchGlobalEvent=o,e.showMenu=i,e.hideMenu=a;var s=n(4),u=r(s),l=n(23),c=e.MENU_SHOW="REACT_CONTEXTMENU_SHOW",f=e.MENU_HIDE="REACT_CONTEXTMENU_HIDE"},function(t,e,n){"use strict";function r(t){return Object.prototype.hasOwnProperty.call(t,m)||(t[m]=h++,f[t[m]]={}),f[t[m]]}var o,i=n(4),a=n(57),s=n(215),u=n(100),l=n(248),c=n(68),f={},p=!1,h=0,d={topAbort:"abort",topAnimationEnd:l("animationend")||"animationend",topAnimationIteration:l("animationiteration")||"animationiteration",topAnimationStart:l("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:l("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),y=i({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(t){t.setHandleTopLevel(y.handleTopLevel),y.ReactEventListener=t}},setEnabled:function(t){y.ReactEventListener&&y.ReactEventListener.setEnabled(t)},isEnabled:function(){return!(!y.ReactEventListener||!y.ReactEventListener.isEnabled())},listenTo:function(t,e){for(var n=e,o=r(n),i=a.registrationNameDependencies[t],s=0;s<i.length;s++){var u=i[s];o.hasOwnProperty(u)&&o[u]||("topWheel"===u?c("wheel")?y.ReactEventListener.trapBubbledEvent("topWheel","wheel",n):c("mousewheel")?y.ReactEventListener.trapBubbledEvent("topWheel","mousewheel",n):y.ReactEventListener.trapBubbledEvent("topWheel","DOMMouseScroll",n):"topScroll"===u?c("scroll",!0)?y.ReactEventListener.trapCapturedEvent("topScroll","scroll",n):y.ReactEventListener.trapBubbledEvent("topScroll","scroll",y.ReactEventListener.WINDOW_HANDLE):"topFocus"===u||"topBlur"===u?(c("focus",!0)?(y.ReactEventListener.trapCapturedEvent("topFocus","focus",n), y.ReactEventListener.trapCapturedEvent("topBlur","blur",n)):c("focusin")&&(y.ReactEventListener.trapBubbledEvent("topFocus","focusin",n),y.ReactEventListener.trapBubbledEvent("topBlur","focusout",n)),o.topBlur=!0,o.topFocus=!0):d.hasOwnProperty(u)&&y.ReactEventListener.trapBubbledEvent(u,d[u],n),o[u]=!0)}},trapBubbledEvent:function(t,e,n){return y.ReactEventListener.trapBubbledEvent(t,e,n)},trapCapturedEvent:function(t,e,n){return y.ReactEventListener.trapCapturedEvent(t,e,n)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var t=document.createEvent("MouseEvent");return null!=t&&"pageX"in t},ensureScrollValueMonitoring:function(){if(void 0===o&&(o=y.supportsEventPageXY()),!o&&!p){var t=u.refreshScrollValues;y.ReactEventListener.monitorScrollValue(t),p=!0}}});t.exports=y},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(34),i=n(100),a=n(66),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(t){var e=t.button;return"which"in t?e:2===e?2:4===e?1:0},buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},pageX:function(t){return"pageX"in t?t.pageX:t.clientX+i.currentScrollLeft},pageY:function(t){return"pageY"in t?t.pageY:t.clientY+i.currentScrollTop}};o.augmentClass(r,s),t.exports=r},function(t,e,n){"use strict";var r=n(3),o=(n(1),{}),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(t,e,n,o,i,a,s,u){this.isInTransaction()?r("27"):void 0;var l,c;try{this._isInTransaction=!0,l=!0,this.initializeAll(0),c=t.call(e,n,o,i,a,s,u),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(t){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(t){for(var e=this.transactionWrappers,n=t;n<e.length;n++){var r=e[n];try{this.wrapperInitData[n]=o,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===o)try{this.initializeAll(n+1)}catch(t){}}}},closeAll:function(t){this.isInTransaction()?void 0:r("28");for(var e=this.transactionWrappers,n=t;n<e.length;n++){var i,a=e[n],s=this.wrapperInitData[n];try{i=!0,s!==o&&a.close&&a.close.call(this,s),i=!1}finally{if(i)try{this.closeAll(n+1)}catch(t){}}}this.wrapperInitData.length=0}};t.exports=i},function(t,e){"use strict";function n(t){var e=""+t,n=o.exec(e);if(!n)return e;var r,i="",a=0,s=0;for(a=n.index;a<e.length;a++){switch(e.charCodeAt(a)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#x27;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}s!==a&&(i+=e.substring(s,a)),s=a+1,i+=r}return s!==a?i+e.substring(s,a):i}function r(t){return"boolean"==typeof t||"number"==typeof t?""+t:n(t)}var o=/["'&<>]/;t.exports=r},function(t,e,n){"use strict";var r,o=n(7),i=n(56),a=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=n(64),l=u(function(t,e){if(t.namespaceURI!==i.svg||"innerHTML"in t)t.innerHTML=e;else{r=r||document.createElement("div"),r.innerHTML="<svg>"+e+"</svg>";for(var n=r.firstChild;n.firstChild;)t.appendChild(n.firstChild)}});if(o.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(l=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),a.test(e)||"<"===e[0]&&s.test(e)){t.innerHTML=String.fromCharCode(65279)+e;var n=t.firstChild;1===n.data.length?t.removeChild(n):n.deleteData(0,1)}else t.innerHTML=e}),c=null}t.exports=l},[277,266],function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(6),f=r(c),p=n(8),h=r(p);n(156);var d=n(20),m=function(t,e,n,r){return f.default.createElement("tr",n,r)},y=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),l(e,[{key:"componentDidMount",value:function(){var t=this;this.subscribeWhileMounted(d.kUps,function(e){var n;t.props.isKeyboardFocused&&(e.preventDefault(),e.stopPropagation(),t._previousItem&&(n=t.props).onClick.apply(n,o(t._previousItem)))}),this.subscribeWhileMounted(d.kDowns,function(e){var n;t.props.isKeyboardFocused&&(e.preventDefault(),e.stopPropagation(),t._nextItem&&(n=t.props).onClick.apply(n,o(t._nextItem)))})}},{key:"inlineColumns",value:function(){return this.props.columns.filter(function(t){var e=t.groupSplitter;return!e})}},{key:"groupSplitterColumns",value:function(){return this.props.columns.filter(function(t){var e=t.groupSplitter;return e})}},{key:"getColumnValues",value:function(t,e,n){return t.map(function(t,r){return e?[t,"func"===t.itemKey?t.func(e,r,n):e[t.itemKey]]:""})}},{key:"renderHeaderRow",value:function(t){return f.default.createElement("tr",{key:t,className:"st-table-group-header-labels"},this.inlineColumns().map(function(t){var e=t.name,n=t.itemKey;return f.default.createElement("td",{key:n+"-"+e},e)}))}},{key:"renderBody",value:function(){var t=this,e=[],n="",r=[],o=this.inlineColumns(),i=this.groupSplitterColumns(),a=0,s=0;this._previousItem=null,this._nextItem=null;var l=null,c=null,p=!1;if(!this.props.selectedItem&&this.props.items.length){this._nextItem=[this.props.items[0],0];var h=this.props.items.length-1;this._previousItem=[this.props.items[h],h]}var d=function(){if(r.length){if(r.length){e.push(t.props.renderGroupHeader(r,"title-"+s)),e.push(t.renderHeaderRow("header-"+s)),s+=1;var n=!0,i=!1,h=void 0;try{for(var d,m=function(){var n=d.value,r=a,i=n&&t.props.selectedItem===n;i&&(t._previousItem=[l,c]),p&&(t._nextItem=[n,a]),i&&!l&&(t._previousItem=[n,a]);var s={key:a,className:i?"st-table-item-selected":"",onClick:function(){return t.props.onClick(n,r)}},h=t.getColumnValues(o,n,a).map(function(t,e){var n=u(t,2),r=n[0],o=n[1],i=r?r.itemKey+"-"+r.name:e;return f.default.createElement("td",{key:""+i},o)});e.push(t.props.rowFactory(n,a,s,h)),l=n,p=i,c=a,a++},y=r[Symbol.iterator]();!(n=(d=y.next()).done);n=!0)m()}catch(t){i=!0,h=t}finally{try{!n&&y.return&&y.return()}finally{if(i)throw h}}}r=[]}},m=!0,y=!1,v=void 0;try{for(var g,_=this.props.items[Symbol.iterator]();!(m=(g=_.next()).done);m=!0){var b=g.value,k=JSON.stringify(this.getColumnValues(i,b));k!==n&&(d(),n=k),r.push(b)}}catch(t){y=!0,v=t}finally{try{!m&&_.return&&_.return()}finally{if(y)throw v}}return d(),this._nextItem||(this._nextItem=[l,c]),f.default.createElement("tbody",null,e)}},{key:"render",value:function(){return f.default.createElement("div",{className:this.props.className+" noselect st-table"},f.default.createElement("table",null,this.renderBody()))}}]),e}(h.default);y.propTypes={columns:c.PropTypes.array,items:c.PropTypes.array.isRequired,renderGroupHeader:c.PropTypes.func,className:c.PropTypes.string,selectedItem:c.PropTypes.any,onClick:c.PropTypes.func},y.defaultProps={className:"",onClick:function(){},renderGroupHeader:function(){return null},isKeyboardFocuse:!1,rowFactory:m},e.default=y},function(t,e){"use strict";function n(t,e){for(var n=t+"";n.length<e;)n="0"+n;return n}function r(t){t=Math.round(t);var e=Math.floor(t/i);t-=e*i;var r=Math.floor(t/o);return t-=r*o,e?n(e)+":"+n(r,2)+":"+n(t,2):n(r,2)+":"+n(t,2)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var o=60,i=60*o},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r))t.push(n.apply(null,r));else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&t.push(a)}}return t.join(" ")}var i={}.hasOwnProperty;"undefined"!=typeof t&&t.exports?t.exports=n:(r=[],o=function(){return n}.apply(e,r),!(void 0!==o&&(t.exports=o)))}()},function(t,e,n){function r(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}var o=n(22),i=n(52);t.exports=r,i(r.prototype),r.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},r.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},r.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(t){var e=o.decodePacket(t,this.socket.binaryType);this.onPacket(e)},r.prototype.onPacket=function(t){this.emit("packet",t)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,e,n){(function(e){var r=n(175);t.exports=function(t){var n=t.xdomain,o=t.xscheme,i=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!n||r))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!o&&i)return new XDomainRequest}catch(t){}if(!n)try{return new(e[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}}).call(e,function(){return this}())},function(t,e,n){function r(t){if(t)return o(t)}function o(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===e||r.fn===e){n.splice(o,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,e)}return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),r=0,o=n.length;r<o;r++){var i=n[r].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(181);Object.defineProperty(e,"ContextMenu",{enumerable:!0,get:function(){return r(o).default}});var i=n(182);Object.defineProperty(e,"ContextMenuTrigger",{enumerable:!0,get:function(){return r(i).default}});var a=n(183);Object.defineProperty(e,"MenuItem",{enumerable:!0,get:function(){return r(a).default}});var s=n(184);Object.defineProperty(e,"SubMenu",{enumerable:!0,get:function(){return r(s).default}})},function(t,e,n){"use strict";function r(t,e){return Array.isArray(e)&&(e=e[1]),e?e.nextSibling:t.firstChild}function o(t,e,n){c.insertTreeBefore(t,e,n)}function i(t,e,n){Array.isArray(e)?s(t,e[0],e[1],n):m(t,e,n)}function a(t,e){if(Array.isArray(e)){var n=e[1];e=e[0],u(t,e,n),t.removeChild(n)}t.removeChild(e)}function s(t,e,n,r){for(var o=e;;){var i=o.nextSibling;if(m(t,o,r),o===n)break;o=i}}function u(t,e,n){for(;;){var r=e.nextSibling;if(r===n)break;t.removeChild(r)}}function l(t,e,n){var r=t.parentNode,o=t.nextSibling;o===e?n&&m(r,document.createTextNode(n),o):n?(d(o,n),u(r,o,e)):u(r,t,e)}var c=n(24),f=n(192),p=(n(5),n(10),n(64)),h=n(45),d=n(107),m=p(function(t,e,n){t.insertBefore(e,n)}),y=f.dangerouslyReplaceNodeWithMarkup,v={dangerouslyReplaceNodeWithMarkup:y,replaceDelimitedText:l,processUpdates:function(t,e){for(var n=0;n<e.length;n++){var s=e[n];switch(s.type){case"INSERT_MARKUP":o(t,s.content,r(t,s.afterNode));break;case"MOVE_EXISTING":i(t,s.fromNode,r(t,s.afterNode));break;case"SET_MARKUP":h(t,s.content);break;case"TEXT_CONTENT":d(t,s.content);break;case"REMOVE_NODE":a(t,s.fromNode)}}}};t.exports=v},function(t,e){"use strict";var n={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};t.exports=n},function(t,e,n){"use strict";function r(){if(s)for(var t in u){var e=u[t],n=s.indexOf(t);if(n>-1?void 0:a("96",t),!l.plugins[n]){e.extractEvents?void 0:a("97",t),l.plugins[n]=e;var r=e.eventTypes;for(var i in r)o(r[i],e,i)?void 0:a("98",i,t)}}}function o(t,e,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,l.eventNameDispatchConfigs[n]=t;var r=t.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,e,n)}return!0}return!!t.registrationName&&(i(t.registrationName,e,n),!0)}function i(t,e,n){l.registrationNameModules[t]?a("100",t):void 0,l.registrationNameModules[t]=e,l.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var a=n(3),s=(n(1),null),u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(t){s?a("101"):void 0,s=Array.prototype.slice.call(t),r()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];u.hasOwnProperty(n)&&u[n]===o||(u[n]?a("102",n):void 0,u[n]=o,e=!0)}e&&r()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return l.registrationNameModules[e.registrationName]||null;if(void 0!==e.phasedRegistrationNames){var n=e.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=l.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){s=null;for(var t in u)u.hasOwnProperty(t)&&delete u[t];l.plugins.length=0;var e=l.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var r=l.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=l},function(t,e,n){"use strict";function r(t){return"topMouseUp"===t||"topTouchEnd"===t||"topTouchCancel"===t}function o(t){return"topMouseMove"===t||"topTouchMove"===t}function i(t){return"topMouseDown"===t||"topTouchStart"===t}function a(t,e,n,r){var o=t.type||"unknown-event";t.currentTarget=v.getNodeFromInstance(r),e?m.invokeGuardedCallbackWithCatch(o,n,t):m.invokeGuardedCallback(o,n,t),t.currentTarget=null}function s(t,e){var n=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!t.isPropagationStopped();o++)a(t,e,n[o],r[o]);else n&&a(t,e,n,r);t._dispatchListeners=null,t._dispatchInstances=null}function u(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e)){for(var r=0;r<e.length&&!t.isPropagationStopped();r++)if(e[r](t,n[r]))return n[r]}else if(e&&e(t,n))return n;return null}function l(t){var e=u(t);return t._dispatchInstances=null,t._dispatchListeners=null,e}function c(t){var e=t._dispatchListeners,n=t._dispatchInstances;Array.isArray(e)?d("103"):void 0,t.currentTarget=e?v.getNodeFromInstance(n):null;var r=e?e(t):null;return t.currentTarget=null,t._dispatchListeners=null,t._dispatchInstances=null,r}function f(t){return!!t._dispatchListeners}var p,h,d=n(3),m=n(62),y=(n(1),n(2),{injectComponentTree:function(t){p=t},injectTreeTraversal:function(t){h=t}}),v={isEndish:r,isMoveish:o,isStartish:i,executeDirectDispatch:c,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:l,hasDispatches:f,getInstanceFromNode:function(t){return p.getInstanceFromNode(t)},getNodeFromInstance:function(t){return p.getNodeFromInstance(t)},isAncestor:function(t,e){return h.isAncestor(t,e)},getLowestCommonAncestor:function(t,e){return h.getLowestCommonAncestor(t,e)},getParentInstance:function(t){return h.getParentInstance(t)},traverseTwoPhase:function(t,e,n){return h.traverseTwoPhase(t,e,n)},traverseEnterLeave:function(t,e,n,r,o){return h.traverseEnterLeave(t,e,n,r,o)},injection:y};t.exports=v},function(t,e){"use strict";function n(t){var e=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+t).replace(e,function(t){return n[t]});return"$"+r}function r(t){var e=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1);return(""+r).replace(e,function(t){return n[t]})}var o={escape:n,unescape:r};t.exports=o},function(t,e,n){"use strict";function r(t){null!=t.checkedLink&&null!=t.valueLink?s("87"):void 0}function o(t){r(t),null!=t.value||null!=t.onChange?s("88"):void 0}function i(t){r(t),null!=t.checked||null!=t.onChange?s("89"):void 0}function a(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}var s=n(3),u=n(27),l=n(221),c=(n(1),n(2),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),f={value:function(t,e,n){return!t[e]||c[t.type]||t.onChange||t.readOnly||t.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(t,e,n){return!t[e]||t.onChange||t.readOnly||t.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:u.PropTypes.func},p={},h={checkPropTypes:function(t,e,n){for(var r in f){if(f.hasOwnProperty(r))var o=f[r](e,r,t,"prop",null,l);if(o instanceof Error&&!(o.message in p)){p[o.message]=!0;a(n)}}},getValue:function(t){return t.valueLink?(o(t),t.valueLink.value):t.value},getChecked:function(t){return t.checkedLink?(i(t),t.checkedLink.value):t.checked},executeOnChange:function(t,e){return t.valueLink?(o(t),t.valueLink.requestChange(e.target.value)):t.checkedLink?(i(t),t.checkedLink.requestChange(e.target.checked)):t.onChange?t.onChange.call(void 0,e):void 0}};t.exports=h},function(t,e,n){"use strict";var r=n(3),o=(n(1),!1),i={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(t){o?r("104"):void 0,i.replaceNodeWithMarkup=t.replaceNodeWithMarkup,i.processChildrenUpdates=t.processChildrenUpdates,o=!0}}};t.exports=i},function(t,e,n){"use strict";function r(t,e,n){try{e(n)}catch(t){null===o&&(o=t)}}var o=null,i={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(o){var t=o;throw o=null,t}}};t.exports=i},function(t,e,n){"use strict";function r(t){u.enqueueUpdate(t)}function o(t){var e=typeof t;if("object"!==e)return e;var n=t.constructor&&t.constructor.name||e,r=Object.keys(t);return r.length>0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(t,e){var n=s.get(t);if(!n){return null}return n}var a=n(3),s=(n(13),n(33)),u=(n(10),n(11)),l=(n(1),n(2),{isMounted:function(t){var e=s.get(t);return!!e&&!!e._renderedComponent},enqueueCallback:function(t,e,n){l.validateCallback(e,n);var o=i(t);return o?(o._pendingCallbacks?o._pendingCallbacks.push(e):o._pendingCallbacks=[e],void r(o)):null},enqueueCallbackInternal:function(t,e){t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],r(t)},enqueueForceUpdate:function(t){var e=i(t,"forceUpdate");e&&(e._pendingForceUpdate=!0,r(e))},enqueueReplaceState:function(t,e){var n=i(t,"replaceState");n&&(n._pendingStateQueue=[e],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(t,e){var n=i(t,"setState");if(n){var o=n._pendingStateQueue||(n._pendingStateQueue=[]);o.push(e),r(n)}},enqueueElementInternal:function(t,e,n){t._pendingElement=e,t._context=n,r(t)},validateCallback:function(t,e){t&&"function"!=typeof t?a("122",e,o(t)):void 0}});t.exports=l},function(t,e){"use strict";var n=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,o){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,o)})}:t};t.exports=n},function(t,e){"use strict";function n(t){var e,n=t.keyCode;return"charCode"in t?(e=t.charCode,0===e&&13===n&&(e=13)):e=n,e>=32||13===e?e:0}t.exports=n},function(t,e){"use strict";function n(t){var e=this,n=e.nativeEvent;if(n.getModifierState)return n.getModifierState(t);var r=o[t];return!!r&&!!n[r]}function r(t){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=r},function(t,e){"use strict";function n(t){var e=t.target||t.srcElement||window;return e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}t.exports=n},function(t,e,n){"use strict";function r(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===t&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(7);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},function(t,e){"use strict";function n(t,e){var n=null===t||t===!1,r=null===e||e===!1;if(n||r)return n===r;var o=typeof t,i=typeof e;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&t.type===e.type&&t.key===e.key}t.exports=n},function(t,e,n){"use strict";var r=(n(4),n(9)),o=(n(2),r);t.exports=o},function(t,e,n){"use strict";function r(t,e,n){this.props=t,this.context=e,this.refs=a,this.updater=n||i}var o=n(29),i=n(72),a=(n(112),n(30));n(1),n(2);r.prototype.isReactComponent={},r.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t?o("85"):void 0,this.updater.enqueueSetState(this,t),e&&this.updater.enqueueCallback(this,e,"setState")},r.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t,"forceUpdate")};t.exports=r},function(t,e,n){"use strict";function r(t,e){}var o=(n(2),{isMounted:function(t){return!1},enqueueCallback:function(t,e){},enqueueForceUpdate:function(t){r(t,"forceUpdate")},enqueueReplaceState:function(t,e){r(t,"replaceState")},enqueueSetState:function(t,e){r(t,"setState")}});t.exports=o},function(t,e,n){function r(){}function o(t){var n="",r=!1;return n+=t.type,e.BINARY_EVENT!=t.type&&e.BINARY_ACK!=t.type||(n+=t.attachments,n+="-"),t.nsp&&"/"!=t.nsp&&(r=!0,n+=t.nsp),null!=t.id&&(r&&(n+=",",r=!1),n+=t.id),null!=t.data&&(r&&(n+=","),n+=p.stringify(t.data)),f("encoded %j as %s",t,n),n}function i(t,e){function n(t){var n=d.deconstructPacket(t),r=o(n.packet),i=n.buffers;i.unshift(r),e(i)}d.removeBlobs(t,n)}function a(){this.reconstructor=null}function s(t){var n={},r=0;if(n.type=Number(t.charAt(0)),null==e.types[n.type])return c();if(e.BINARY_EVENT==n.type||e.BINARY_ACK==n.type){for(var o="";"-"!=t.charAt(++r)&&(o+=t.charAt(r),r!=t.length););if(o!=Number(o)||"-"!=t.charAt(r))throw new Error("Illegal attachments");n.attachments=Number(o)}if("/"==t.charAt(r+1))for(n.nsp="";++r;){var i=t.charAt(r);if(","==i)break;if(n.nsp+=i,r==t.length)break}else n.nsp="/";var a=t.charAt(r+1);if(""!==a&&Number(a)==a){for(n.id="";++r;){var i=t.charAt(r);if(null==i||Number(i)!=i){--r;break}if(n.id+=t.charAt(r),r==t.length)break}n.id=Number(n.id)}return t.charAt(++r)&&(n=u(n,t.substr(r))),f("decoded %s as %j",t,n),n}function u(t,e){try{t.data=p.parse(e)}catch(t){return c()}return t}function l(t){this.reconPack=t,this.buffers=[]}function c(t){return{type:e.ERROR,data:"parser error"}}var f=n(268)("socket.io-parser"),p=n(176),h=n(144),d=n(267),m=n(118);e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=r,e.Decoder=a,r.prototype.encode=function(t,n){if(f("encoding packet %j",t),e.BINARY_EVENT==t.type||e.BINARY_ACK==t.type)i(t,n);else{var r=o(t);n([r])}},h(a.prototype),a.prototype.add=function(t){var n;if("string"==typeof t)n=s(t),e.BINARY_EVENT==n.type||e.BINARY_ACK==n.type?(this.reconstructor=new l(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!m(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,this.emit("decoded",n))}},a.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},l.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length==this.reconPack.attachments){var e=d.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},l.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(6),l=r(u),c=n(139),f=n(20),p=n(8),h=r(p),d=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"componentDidMount",value:function(){var t=this;this.subscribeWhileMounted(f.kUps,function(e){t.props.isKeyboardFocused&&(e.preventDefault(),e.stopPropagation(),"undefined"!=typeof t._previousItem&&t.props.onClick(t._previousItem))}),this.subscribeWhileMounted(f.kDowns,function(e){t.props.isKeyboardFocused&&(e.preventDefault(),e.stopPropagation(),"undefined"!=typeof t._nextItem&&t.props.onClick(t._nextItem))})}},{key:"render",value:function(){var t=this,e=this.props.className+" noselect st-list",n=this.props.items||[];delete this._previousItem,delete this._nextItem;var r=0,o=!0,i=!1,a=void 0;try{for(var s,u=n[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=s.value;c.isSelected&&(r>0&&(this._previousItem=n[r-1]),r<n.length-1&&(this._nextItem=n[r+1])),r+=1}}catch(t){i=!0,a=t}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}return l.default.createElement("ul",{ref:function(e){t.props.ref2&&t.props.ref2(e)},className:e,style:this.props.style},n.map(function(e,n){return l.default.createElement("li",{key:n,onClick:function(){return t.props.onClick(e,n)},className:e.isSelected?"st-list-item-selected":""},e.label)}))}}]),e}(h.default);d.propTypes={items:u.PropTypes.array,style:u.PropTypes.object,className:u.PropTypes.string,onClick:u.PropTypes.func},d.defaultProps={style:{},className:"",isKeyboardFocused:!1,onClick:function(){},onNext:function(){},onPrevious:function(){}},e.default=(0,c.mouseTrap)(d)},function(t,e){"use strict";function n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!localStorage[t])return e;try{return JSON.parse(localStorage[t])}catch(t){return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n},function(t,e){var n=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}},function(t,e,n){(function(t){function r(e){var n,r=!1,s=!1,u=!1!==e.jsonp;if(t.location){var l="https:"===location.protocol,c=location.port;c||(c=l?443:80),r=e.hostname!==location.hostname||c!==e.port,s=e.secure!==l}if(e.xdomain=r,e.xscheme=s,n=new o(e),"open"in n&&!e.forceJSONP)return new i(e);if(!u)throw new Error("JSONP disabled");return new a(e)}var o=n(51),i=n(149),a=n(148),s=n(150);e.polling=r,e.websocket=s}).call(e,function(){return this}())},function(t,e,n){function r(t){var e=t&&t.forceBase64;c&&!e||(this.supportsBinary=!1),o.call(this,t)}var o=n(50),i=n(53),a=n(22),s=n(36),u=n(120),l=n(37)("engine.io-client:polling");t.exports=r;var c=function(){var t=n(51),e=new t({xdomain:!1});return null!=e.responseType}();s(r,o),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(t){function e(){l("paused"),n.readyState="paused",t()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(l("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){l("pre-pause polling complete"),--r||e()})),this.writable||(l("we are currently writing - waiting to pause"),r++,this.once("drain",function(){l("pre-pause writing complete"),--r||e()}))}else e()},r.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(t){var e=this;l("polling got data %s",t);var n=function(t,n,r){return"opening"===e.readyState&&e.onOpen(),"close"===t.type?(e.onClose(),!1):void e.onPacket(t)};a.decodePayload(t,this.socket.binaryType,n),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function t(){l("writing close packet"),e.write([{type:"close"}])}var e=this;"open"===this.readyState?(l("transport open - closing"),t()):(l("transport not open - deferring close"),this.once("open",t))},r.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){ e.writable=!0,e.emit("drain")};a.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,n)})},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";!1!==this.timestampRequests&&(t[this.timestampParam]=u()),this.supportsBinary||t.sid||(t.b64=1),t=i.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t);var r=this.hostname.indexOf(":")!==-1;return e+"://"+(r?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e){},function(t,e,n){"use strict";var r=n(9),o={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},capture:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!0),{remove:function(){t.removeEventListener(e,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=o},function(t,e){"use strict";function n(t){try{t.focus()}catch(t){}}t.exports=n},function(t,e){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(t){return document.body}}t.exports=n},function(t,e,n){(function(e){function r(t){function n(t){if(!t)return!1;if(e.Buffer&&e.Buffer.isBuffer&&e.Buffer.isBuffer(t)||e.ArrayBuffer&&t instanceof ArrayBuffer||e.Blob&&t instanceof Blob||e.File&&t instanceof File)return!0;if(o(t)){for(var r=0;r<t.length;r++)if(n(t[r]))return!0}else if(t&&"object"==typeof t){t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON());for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n(t[i]))return!0}return!1}return n(t)}var o=n(174);t.exports=r}).call(e,function(){return this}())},function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e,n){var r;!function(o,i,a){function s(t,e,n){return t.addEventListener?void t.addEventListener(e,n,!1):void t.attachEvent("on"+e,n)}function u(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return k[t.which]?k[t.which]:w[t.which]?w[t.which]:String.fromCharCode(t.which).toLowerCase()}function l(t,e){return t.sort().join(",")===e.sort().join(",")}function c(t){var e=[];return t.shiftKey&&e.push("shift"),t.altKey&&e.push("alt"),t.ctrlKey&&e.push("ctrl"),t.metaKey&&e.push("meta"),e}function f(t){return t.preventDefault?void t.preventDefault():void(t.returnValue=!1)}function p(t){return t.stopPropagation?void t.stopPropagation():void(t.cancelBubble=!0)}function h(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function d(){if(!b){b={};for(var t in k)t>95&&t<112||k.hasOwnProperty(t)&&(b[k[t]]=t)}return b}function m(t,e,n){return n||(n=d()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function y(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus"),t.split("+"))}function v(t,e){var n,r,o,i=[];for(n=y(t),o=0;o<n.length;++o)r=n[o],C[r]&&(r=C[r]),e&&"keypress"!=e&&E[r]&&(r=E[r],i.push("shift")),h(r)&&i.push(r);return e=m(r,i,e),{key:r,modifiers:i,action:e}}function g(t,e){return null!==t&&t!==i&&(t===e||g(t.parentNode,e))}function _(t){function e(t){t=t||{};var e,n=!1;for(e in b)t[e]?n=!0:b[e]=0;n||(E=!1)}function n(t,e,n,r,o,i){var a,s,u=[],c=n.type;if(!y._callbacks[t])return[];for("keyup"==c&&h(t)&&(e=[t]),a=0;a<y._callbacks[t].length;++a)if(s=y._callbacks[t][a],(r||!s.seq||b[s.seq]==s.level)&&c==s.action&&("keypress"==c&&!n.metaKey&&!n.ctrlKey||l(e,s.modifiers))){var f=!r&&s.combo==o,p=r&&s.seq==r&&s.level==i;(f||p)&&y._callbacks[t].splice(a,1),u.push(s)}return u}function r(t,e,n,r){y.stopCallback(e,e.target||e.srcElement,n,r)||t(e,n)===!1&&(f(e),p(e))}function o(t){"number"!=typeof t.which&&(t.which=t.keyCode);var e=u(t);if(e)return"keyup"==t.type&&k===e?void(k=!1):void y.handleKey(e,c(t),t)}function a(){clearTimeout(g),g=setTimeout(e,1e3)}function d(t,n,o,i){function s(e){return function(){E=e,++b[t],a()}}function l(n){r(o,n,t),"keyup"!==i&&(k=u(n)),setTimeout(e,10)}b[t]=0;for(var c=0;c<n.length;++c){var f=c+1===n.length,p=f?l:s(i||v(n[c+1]).action);m(n[c],p,i,t,c)}}function m(t,e,r,o,i){y._directMap[t+":"+r]=e,t=t.replace(/\s+/g," ");var a,s=t.split(" ");return s.length>1?void d(t,s,e,r):(a=v(t,r),y._callbacks[a.key]=y._callbacks[a.key]||[],n(a.key,a.modifiers,{type:a.action},o,t,i),void y._callbacks[a.key][o?"unshift":"push"]({callback:e,modifiers:a.modifiers,action:a.action,seq:o,level:i,combo:t}))}var y=this;if(t=t||i,!(y instanceof _))return new _(t);y.target=t,y._callbacks={},y._directMap={};var g,b={},k=!1,w=!1,E=!1;y._handleKey=function(t,o,i){var a,s=n(t,o,i),u={},l=0,c=!1;for(a=0;a<s.length;++a)s[a].seq&&(l=Math.max(l,s[a].level));for(a=0;a<s.length;++a)if(s[a].seq){if(s[a].level!=l)continue;c=!0,u[s[a].seq]=1,r(s[a].callback,i,s[a].combo,s[a].seq)}else c||r(s[a].callback,i,s[a].combo);var f="keypress"==i.type&&w;i.type!=E||h(t)||f||e(u),w=c&&"keydown"==i.type},y._bindMultiple=function(t,e,n){for(var r=0;r<t.length;++r)m(t[r],e,n)},s(t,"keypress",o),s(t,"keydown",o),s(t,"keyup",o)}if(o){for(var b,k={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},w={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},E={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},C={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},T=1;T<20;++T)k[111+T]="f"+T;for(T=0;T<=9;++T)k[T+96]=T;_.prototype.bind=function(t,e,n){var r=this;return t=t instanceof Array?t:[t],r._bindMultiple.call(r,t,e,n),r},_.prototype.unbind=function(t,e){var n=this;return n.bind.call(n,t,function(){},e)},_.prototype.trigger=function(t,e){var n=this;return n._directMap[t+":"+e]&&n._directMap[t+":"+e]({},t),n},_.prototype.reset=function(){var t=this;return t._callbacks={},t._directMap={},t},_.prototype.stopCallback=function(t,e){var n=this;return!((" "+e.className+" ").indexOf(" mousetrap ")>-1)&&(!g(e,n.target)&&("INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable))},_.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},_.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(k[e]=t[e]);b=null},_.init=function(){var t=_(i);for(var e in t)"_"!==e.charAt(0)&&(_[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},_.init(),o.Mousetrap=_,"undefined"!=typeof t&&t.exports&&(t.exports=_),r=function(){return _}.call(e,n,e,t),!(r!==a&&(t.exports=r))}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},function(t,e){function n(t){if(t=String(t),!(t.length>1e4)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*c;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){return t>=l?Math.round(t/l)+"d":t>=u?Math.round(t/u)+"h":t>=s?Math.round(t/s)+"m":t>=a?Math.round(t/a)+"s":t+"ms"}function o(t){return i(t,l,"day")||i(t,u,"hour")||i(t,s,"minute")||i(t,a,"second")||t+" ms"}function i(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var a=1e3,s=60*a,u=60*s,l=24*u,c=365.25*l;t.exports=function(t,e){e=e||{};var i=typeof t;if("string"===i&&t.length>0)return n(t);if("number"===i&&isNaN(t)===!1)return e.long?o(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,o=t.indexOf("["),i=t.indexOf("]");o!=-1&&i!=-1&&(t=t.substring(0,o)+t.substring(o,i).replace(/:/g,";")+t.substring(i,t.length));for(var a=n.exec(t||""),s={},u=14;u--;)s[r[u]]=a[u]||"";return o!=-1&&i!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s}},function(t,e,n){"use strict";function r(){}function o(t){try{return t.then}catch(t){return v=t,g}}function i(t,e){try{return t(e)}catch(t){return v=t,g}}function a(t,e,n){try{t(e,n)}catch(t){return v=t,g}}function s(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._45=0,this._81=0,this._65=null,this._54=null,t!==r&&m(t,this)}function u(t,e,n){return new t.constructor(function(o,i){var a=new s(r);a.then(o,i),l(t,new d(e,n,a))})}function l(t,e){for(;3===t._81;)t=t._65;return s._10&&s._10(t),0===t._81?0===t._45?(t._45=1,void(t._54=e)):1===t._45?(t._45=2,void(t._54=[t._54,e])):void t._54.push(e):void c(t,e)}function c(t,e){y(function(){var n=1===t._81?e.onFulfilled:e.onRejected;if(null===n)return void(1===t._81?f(e.promise,t._65):p(e.promise,t._65));var r=i(n,t._65);r===g?p(e.promise,v):f(e.promise,r)})}function f(t,e){if(e===t)return p(t,new TypeError("A promise cannot be resolved with itself."));if(e&&("object"==typeof e||"function"==typeof e)){var n=o(e);if(n===g)return p(t,v);if(n===t.then&&e instanceof s)return t._81=3,t._65=e,void h(t);if("function"==typeof n)return void m(n.bind(e),t)}t._81=1,t._65=e,h(t)}function p(t,e){t._81=2,t._65=e,s._97&&s._97(t,e),h(t)}function h(t){if(1===t._45&&(l(t,t._54),t._54=null),2===t._45){for(var e=0;e<t._54.length;e++)l(t,t._54[e]);t._54=null}}function d(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function m(t,e){var n=!1,r=a(t,function(t){n||(n=!0,f(e,t))},function(t){n||(n=!0,p(e,t))});n||r!==g||(n=!0,p(e,v))}var y=n(123),v=null,g={};t.exports=s,s._10=null,s._97=null,s._61=r,s.prototype.then=function(t,e){if(this.constructor!==s)return u(this,t,e);var n=new s(r);return l(this,new d(t,e,n)),n}},function(t,e){"use strict";function n(t,e){return t+e.charAt(0).toUpperCase()+e.substring(1)}var r={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},o=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(t){o.forEach(function(e){r[n(e,t)]=r[t]})});var i={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},a={isUnitlessNumber:r,shorthandPropertyExpansions:i};t.exports=a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=n(3),i=n(18),a=(n(1),function(){function t(e){r(this,t),this._callbacks=null,this._contexts=null,this._arg=e}return t.prototype.enqueue=function(t,e){this._callbacks=this._callbacks||[],this._callbacks.push(t),this._contexts=this._contexts||[],this._contexts.push(e)},t.prototype.notifyAll=function(){var t=this._callbacks,e=this._contexts,n=this._arg;if(t&&e){t.length!==e.length?o("24"):void 0,this._callbacks=null,this._contexts=null;for(var r=0;r<t.length;r++)t[r].call(e[r],n);t.length=0,e.length=0}},t.prototype.checkpoint=function(){return this._callbacks?this._callbacks.length:0},t.prototype.rollback=function(t){this._callbacks&&this._contexts&&(this._callbacks.length=t,this._contexts.length=t)},t.prototype.reset=function(){this._callbacks=null,this._contexts=null},t.prototype.destructor=function(){this.reset()},t}());t.exports=i.addPoolingTo(a)},function(t,e,n){"use strict";function r(t){return!!l.hasOwnProperty(t)||!u.hasOwnProperty(t)&&(s.test(t)?(l[t]=!0,!0):(u[t]=!0,!1))}function o(t,e){return null==e||t.hasBooleanValue&&!e||t.hasNumericValue&&isNaN(e)||t.hasPositiveNumericValue&&e<1||t.hasOverloadedBooleanValue&&e===!1}var i=n(25),a=(n(5),n(10),n(249)),s=(n(2),new RegExp("^["+i.ATTRIBUTE_NAME_START_CHAR+"]["+i.ATTRIBUTE_NAME_CHAR+"]*$")),u={},l={},c={createMarkupForID:function(t){return i.ID_ATTRIBUTE_NAME+"="+a(t)},setAttributeForID:function(t,e){t.setAttribute(i.ID_ATTRIBUTE_NAME,e)},createMarkupForRoot:function(){return i.ROOT_ATTRIBUTE_NAME+'=""'},setAttributeForRoot:function(t){t.setAttribute(i.ROOT_ATTRIBUTE_NAME,"")},createMarkupForProperty:function(t,e){var n=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(n){if(o(n,e))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&e===!0?r+'=""':r+"="+a(e)}return i.isCustomAttribute(t)?null==e?"":t+"="+a(e):null},createMarkupForCustomAttribute:function(t,e){return r(t)&&null!=e?t+"="+a(e):""},setValueForProperty:function(t,e,n){var r=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(r){var a=r.mutationMethod;if(a)a(t,n);else{if(o(r,n))return void this.deleteValueForProperty(t,e);if(r.mustUseProperty)t[r.propertyName]=n;else{var s=r.attributeName,u=r.attributeNamespace;u?t.setAttributeNS(u,s,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?t.setAttribute(s,""):t.setAttribute(s,""+n)}}}else if(i.isCustomAttribute(e))return void c.setValueForAttribute(t,e,n)},setValueForAttribute:function(t,e,n){if(r(e)){null==n?t.removeAttribute(e):t.setAttribute(e,""+n)}},deleteValueForAttribute:function(t,e){t.removeAttribute(e)},deleteValueForProperty:function(t,e){var n=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(n){var r=n.mutationMethod;if(r)r(t,void 0);else if(n.mustUseProperty){var o=n.propertyName;n.hasBooleanValue?t[o]=!1:t[o]=""}else t.removeAttribute(n.attributeName)}else i.isCustomAttribute(e)&&t.removeAttribute(e)}};t.exports=c},function(t,e){"use strict";var n={hasCachedChildNodes:1};t.exports=n},function(t,e,n){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var t=this._currentElement.props,e=s.getValue(t);null!=e&&o(this,Boolean(t.multiple),e)}}function o(t,e,n){var r,o,i=u.getNodeFromInstance(t).options;if(e){for(r={},o=0;o<n.length;o++)r[""+n[o]]=!0;for(o=0;o<i.length;o++){var a=r.hasOwnProperty(i[o].value);i[o].selected!==a&&(i[o].selected=a)}}else{for(r=""+n,o=0;o<i.length;o++)if(i[o].value===r)return void(i[o].selected=!0);i.length&&(i[0].selected=!0)}}function i(t){var e=this._currentElement.props,n=s.executeOnChange(e,t);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),l.asap(r,this),n}var a=n(4),s=n(60),u=n(5),l=n(11),c=(n(2),!1),f={getHostProps:function(t,e){return a({},e,{onChange:t._wrapperState.onChange,value:void 0})},mountWrapper:function(t,e){var n=s.getValue(e);t._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:e.defaultValue,listeners:null,onChange:i.bind(t),wasMultiple:Boolean(e.multiple)},void 0===e.value||void 0===e.defaultValue||c||(c=!0)},getSelectValueContext:function(t){return t._wrapperState.initialValue},postUpdateWrapper:function(t){var e=t._currentElement.props;t._wrapperState.initialValue=void 0;var n=t._wrapperState.wasMultiple;t._wrapperState.wasMultiple=Boolean(e.multiple);var r=s.getValue(e);null!=r?(t._wrapperState.pendingUpdate=!1,o(t,Boolean(e.multiple),r)):n!==Boolean(e.multiple)&&(null!=e.defaultValue?o(t,Boolean(e.multiple),e.defaultValue):o(t,Boolean(e.multiple),e.multiple?[]:""))}};t.exports=f},function(t,e){"use strict";var n,r={injectEmptyComponentFactory:function(t){n=t}},o={create:function(t){return n(t)}};o.injection=r,t.exports=o},function(t,e){"use strict";var n={logTopLevelRenders:!1};t.exports=n},function(t,e,n){"use strict";function r(t){return u?void 0:a("111",t.type),new u(t)}function o(t){return new c(t)}function i(t){return t instanceof c}var a=n(3),s=n(4),u=(n(1),null),l={},c=null,f={injectGenericComponentClass:function(t){u=t},injectTextComponentClass:function(t){c=t},injectComponentClasses:function(t){s(l,t)}},p={createInternalComponent:r,createInstanceForText:o,isTextComponent:i,injection:f};t.exports=p},function(t,e,n){"use strict";function r(t){return i(document.documentElement,t)}var o=n(208),i=n(164),a=n(81),s=n(82),u={hasSelectionCapabilities:function(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&"text"===t.type||"textarea"===e||"true"===t.contentEditable)},getSelectionInformation:function(){var t=s();return{focusedElem:t,selectionRange:u.hasSelectionCapabilities(t)?u.getSelection(t):null}},restoreSelection:function(t){var e=s(),n=t.focusedElem,o=t.selectionRange;e!==n&&r(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,o),a(n))},getSelection:function(t){var e;if("selectionStart"in t)e={start:t.selectionStart,end:t.selectionEnd};else if(document.selection&&t.nodeName&&"input"===t.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===t&&(e={start:-n.moveStart("character",-t.value.length),end:-n.moveEnd("character",-t.value.length)})}else e=o.getOffsets(t);return e||{start:0,end:0}},setSelection:function(t,e){var n=e.start,r=e.end;if(void 0===r&&(r=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(r,t.value.length);else if(document.selection&&t.nodeName&&"input"===t.nodeName.toLowerCase()){var i=t.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else o.setOffsets(t,e)}};t.exports=u},function(t,e,n){"use strict";function r(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++)if(t.charAt(r)!==e.charAt(r))return r;return t.length===e.length?-1:n}function o(t){return t?t.nodeType===R?t.documentElement:t.firstChild:null}function i(t){return t.getAttribute&&t.getAttribute(I)||""}function a(t,e,n,r,o){var i;if(k.logTopLevelRenders){var a=t._currentElement.props.child,s=a.type;i="React mount: "+("string"==typeof s?s:s.displayName||s.name),console.time(i)}var u=C.mountComponent(t,n,null,_(t,e),o,0);i&&console.timeEnd(i),t._renderedComponent._topLevelWrapper=t,B._mountImageIntoNode(u,e,t,r,n)}function s(t,e,n,r){var o=P.ReactReconcileTransaction.getPooled(!n&&b.useCreateElement);o.perform(a,null,t,e,o,n,r),P.ReactReconcileTransaction.release(o)}function u(t,e,n){for(C.unmountComponent(t,n),e.nodeType===R&&(e=e.documentElement);e.lastChild;)e.removeChild(e.lastChild)}function l(t){var e=o(t);if(e){var n=g.getInstanceFromNode(e);return!(!n||!n._hostParent)}}function c(t){return!(!t||t.nodeType!==N&&t.nodeType!==R&&t.nodeType!==D)}function f(t){var e=o(t),n=e&&g.getInstanceFromNode(e);return n&&!n._hostParent?n:null}function p(t){var e=f(t);return e?e._hostContainerInfo._topLevelWrapper:null}var h=n(3),d=n(24),m=n(25),y=n(27),v=n(41),g=(n(13),n(5)),_=n(202),b=n(204),k=n(95),w=n(33),E=(n(10),n(218)),C=n(26),T=n(63),P=n(11),x=n(30),S=n(105),A=(n(1),n(45)),O=n(69),I=(n(2),m.ID_ATTRIBUTE_NAME),M=m.ROOT_ATTRIBUTE_NAME,N=1,R=9,D=11,j={},L=1,U=function(){this.rootID=L++};U.prototype.isReactComponent={},U.prototype.render=function(){return this.props.child},U.isReactTopLevelWrapper=!0;var B={TopLevelWrapper:U,_instancesByReactRootID:j,scrollMonitor:function(t,e){e()},_updateRootComponent:function(t,e,n,r,o){return B.scrollMonitor(r,function(){T.enqueueElementInternal(t,e,n),o&&T.enqueueCallbackInternal(t,o)}),t},_renderNewRootComponent:function(t,e,n,r){c(e)?void 0:h("37"),v.ensureScrollValueMonitoring();var o=S(t,!1);P.batchedUpdates(s,o,e,n,r);var i=o._instance.rootID;return j[i]=o,o},renderSubtreeIntoContainer:function(t,e,n,r){return null!=t&&w.has(t)?void 0:h("38"),B._renderSubtreeIntoContainer(t,e,n,r)},_renderSubtreeIntoContainer:function(t,e,n,r){T.validateCallback(r,"ReactDOM.render"),y.isValidElement(e)?void 0:h("39","string"==typeof e?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof e?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=y.createElement(U,{child:e});if(t){var u=w.get(t);a=u._processChildContext(u._context)}else a=x;var c=p(n);if(c){var f=c._currentElement,d=f.props.child;if(O(d,e)){var m=c._renderedComponent.getPublicInstance(),v=r&&function(){r.call(m)};return B._updateRootComponent(c,s,a,n,v),m}B.unmountComponentAtNode(n)}var g=o(n),_=g&&!!i(g),b=l(n),k=_&&!c&&!b,E=B._renderNewRootComponent(s,n,k,a)._renderedComponent.getPublicInstance();return r&&r.call(E),E},render:function(t,e,n){return B._renderSubtreeIntoContainer(null,t,e,n)},unmountComponentAtNode:function(t){c(t)?void 0:h("40");var e=p(t);if(!e){l(t),1===t.nodeType&&t.hasAttribute(M);return!1}return delete j[e._instance.rootID],P.batchedUpdates(u,e,t,!1),!0},_mountImageIntoNode:function(t,e,n,i,a){if(c(e)?void 0:h("41"),i){var s=o(e);if(E.canReuseMarkup(t,s))return void g.precacheNode(n,s);var u=s.getAttribute(E.CHECKSUM_ATTR_NAME);s.removeAttribute(E.CHECKSUM_ATTR_NAME);var l=s.outerHTML;s.setAttribute(E.CHECKSUM_ATTR_NAME,u);var f=t,p=r(f,l),m=" (client) "+f.substring(p-20,p+20)+"\n (server) "+l.substring(p-20,p+20);e.nodeType===R?h("42",m):void 0}if(e.nodeType===R?h("43"):void 0,a.useCreateElement){for(;e.lastChild;)e.removeChild(e.lastChild);d.insertTreeBefore(e,t,null)}else A(e,t),g.precacheNode(n,e.firstChild)}};t.exports=B},function(t,e,n){"use strict";var r=n(3),o=n(27),i=(n(1),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(t){return null===t||t===!1?i.EMPTY:o.isValidElement(t)?"function"==typeof t.type?i.COMPOSITE:i.HOST:void r("26",t)}});t.exports=i},function(t,e){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(t){n.currentScrollLeft=t.x,n.currentScrollTop=t.y}};t.exports=n},function(t,e,n){"use strict";function r(t,e){return null==e?o("30"):void 0,null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}var o=n(3);n(1);t.exports=r},function(t,e){"use strict";function n(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}t.exports=n},function(t,e,n){"use strict";function r(t){for(var e;(e=t._renderedNodeType)===o.COMPOSITE;)t=t._renderedComponent;return e===o.HOST?t._renderedComponent:e===o.EMPTY?null:void 0}var o=n(99);t.exports=r},function(t,e,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(7),i=null;t.exports=r},function(t,e,n){"use strict";function r(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(t){return"function"==typeof t&&"undefined"!=typeof t.prototype&&"function"==typeof t.prototype.mountComponent&&"function"==typeof t.prototype.receiveComponent}function i(t,e){var n;if(null===t||t===!1)n=l.create(i);else if("object"==typeof t){var s=t;!s||"function"!=typeof s.type&&"string"!=typeof s.type?a("130",null==s.type?s.type:typeof s.type,r(s._owner)):void 0,"string"==typeof s.type?n=c.createInternalComponent(s):o(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new f(s)}else"string"==typeof t||"number"==typeof t?n=c.createInstanceForText(t):a("131",typeof t);return n._mountIndex=0,n._mountImage=null,n}var a=n(3),s=n(4),u=n(199),l=n(94),c=n(96),f=(n(246),n(1),n(2),function(t){this.construct(t)});s(f.prototype,u,{_instantiateReactComponent:i}),t.exports=i},function(t,e){"use strict";function n(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!r[t.type]:"textarea"===e}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=n},function(t,e,n){"use strict";var r=n(7),o=n(44),i=n(45),a=function(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e};r.canUseDOM&&("textContent"in document.documentElement||(a=function(t,e){return 3===t.nodeType?void(t.nodeValue=e):void i(t,o(e))})),t.exports=a},function(t,e,n){"use strict";function r(t,e){return t&&"object"==typeof t&&null!=t.key?l.escape(t.key):e.toString(36)}function o(t,e,n,i){var p=typeof t;if("undefined"!==p&&"boolean"!==p||(t=null),null===t||"string"===p||"number"===p||"object"===p&&t.$$typeof===s)return n(i,t,""===e?c+r(t,0):e),1;var h,d,m=0,y=""===e?c:e+f;if(Array.isArray(t))for(var v=0;v<t.length;v++)h=t[v],d=y+r(h,v),m+=o(h,d,n,i);else{var g=u(t);if(g){var _,b=g.call(t);if(g!==t.entries)for(var k=0;!(_=b.next()).done;)h=_.value,d=y+r(h,k++),m+=o(h,d,n,i);else for(;!(_=b.next()).done;){var w=_.value;w&&(h=w[1],d=y+l.escape(w[0])+f+r(h,0),m+=o(h,d,n,i))}}else if("object"===p){var E="",C=String(t);a("31","[object Object]"===C?"object with keys {"+Object.keys(t).join(", ")+"}":C,E)}}return m}function i(t,e,n){return null==t?0:o(t,"",e,n)}var a=n(3),s=(n(13),n(214)),u=n(245),l=(n(1),n(59)),c=(n(2),"."),f=":";t.exports=i},function(t,e,n){"use strict";function r(t){var e=Function.prototype.toString,n=Object.prototype.hasOwnProperty,r=RegExp("^"+e.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var o=e.call(t);return r.test(o)}catch(t){return!1}}function o(t){var e=l(t);if(e){var n=e.childIDs;c(t),n.forEach(o)}}function i(t,e,n){return"\n in "+(t||"Unknown")+(e?" (at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+")":n?" (created by "+n+")":"")}function a(t){return null==t?"#empty":"string"==typeof t||"number"==typeof t?"#text":"string"==typeof t.type?t.type:t.type.displayName||t.type.name||"Unknown"}function s(t){var e,n=T.getDisplayName(t),r=T.getElement(t),o=T.getOwnerID(t);return o&&(e=T.getDisplayName(o)),i(n,r&&r._source,e)}var u,l,c,f,p,h,d,m=n(29),y=n(13),v=(n(1),n(2),"function"==typeof Array.from&&"function"==typeof Map&&r(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&r(Map.prototype.keys)&&"function"==typeof Set&&r(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&r(Set.prototype.keys));if(v){var g=new Map,_=new Set;u=function(t,e){g.set(t,e)},l=function(t){return g.get(t)},c=function(t){g.delete(t)},f=function(){return Array.from(g.keys())},p=function(t){_.add(t)},h=function(t){_.delete(t)},d=function(){return Array.from(_.keys())}}else{var b={},k={},w=function(t){return"."+t},E=function(t){return parseInt(t.substr(1),10)};u=function(t,e){var n=w(t);b[n]=e},l=function(t){var e=w(t);return b[e]},c=function(t){var e=w(t);delete b[e]},f=function(){return Object.keys(b).map(E)},p=function(t){var e=w(t);k[e]=!0},h=function(t){var e=w(t);delete k[e]},d=function(){return Object.keys(k).map(E)}}var C=[],T={onSetChildren:function(t,e){var n=l(t);n?void 0:m("144"),n.childIDs=e;for(var r=0;r<e.length;r++){var o=e[r],i=l(o);i?void 0:m("140"),null==i.childIDs&&"object"==typeof i.element&&null!=i.element?m("141"):void 0,i.isMounted?void 0:m("71"),null==i.parentID&&(i.parentID=t),i.parentID!==t?m("142",o,i.parentID,t):void 0}},onBeforeMountComponent:function(t,e,n){var r={element:e,parentID:n,text:null,childIDs:[],isMounted:!1,updateCount:0};u(t,r)},onBeforeUpdateComponent:function(t,e){var n=l(t);n&&n.isMounted&&(n.element=e)},onMountComponent:function(t){var e=l(t);e?void 0:m("144"),e.isMounted=!0;var n=0===e.parentID;n&&p(t)},onUpdateComponent:function(t){var e=l(t);e&&e.isMounted&&e.updateCount++},onUnmountComponent:function(t){var e=l(t);if(e){e.isMounted=!1;var n=0===e.parentID;n&&h(t)}C.push(t)},purgeUnmountedComponents:function(){if(!T._preventPurging){for(var t=0;t<C.length;t++){var e=C[t];o(e)}C.length=0}},isMounted:function(t){var e=l(t);return!!e&&e.isMounted},getCurrentStackAddendum:function(t){var e="";if(t){var n=a(t),r=t._owner;e+=i(n,t._source,r&&r.getName())}var o=y.current,s=o&&o._debugID;return e+=T.getStackAddendumByID(s)},getStackAddendumByID:function(t){for(var e="";t;)e+=s(t),t=T.getParentID(t);return e},getChildIDs:function(t){var e=l(t);return e?e.childIDs:[]},getDisplayName:function(t){var e=T.getElement(t);return e?a(e):null},getElement:function(t){var e=l(t);return e?e.element:null},getOwnerID:function(t){var e=T.getElement(t);return e&&e._owner?e._owner._debugID:null},getParentID:function(t){var e=l(t);return e?e.parentID:null},getSource:function(t){var e=l(t),n=e?e.element:null,r=null!=n?n._source:null;return r},getText:function(t){var e=T.getElement(t);return"string"==typeof e?e:"number"==typeof e?""+e:null},getUpdateCount:function(t){var e=l(t);return e?e.updateCount:0},getRootIDs:d,getRegisteredIDs:f};t.exports=T},function(t,e){"use strict";var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=n},function(t,e,n){"use strict";var r={};t.exports=r},function(t,e,n){"use strict";var r=!1;t.exports=r},function(t,e){"use strict";function n(t){var e=t&&(r&&t[r]||t[o]);if("function"==typeof e)return e}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";t.exports=n},function(t,e,n){function r(t,e){return this instanceof r?(t&&"object"==typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new p({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[],this.encoder=new s.Encoder,this.decoder=new s.Decoder,this.autoConnect=e.autoConnect!==!1,void(this.autoConnect&&this.open())):new r(t,e)}var o=n(145),i=n(116),a=n(117),s=n(73),u=n(115),l=n(76),c=n(46)("socket.io-client:manager"),f=n(84),p=n(141),h=Object.prototype.hasOwnProperty;t.exports=r,r.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)h.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},r.prototype.updateSocketIds=function(){for(var t in this.nsps)h.call(this.nsps,t)&&(this.nsps[t].id=this.engine.id)},a(r.prototype),r.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},r.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t, this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},r.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},r.prototype.open=r.prototype.connect=function(t,e){if(c("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;c("opening %s",this.uri),this.engine=o(this.uri,this.opts);var n=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var i=u(n,"open",function(){r.onopen(),t&&t()}),a=u(n,"error",function(e){if(c("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",e),t){var n=new Error("Connection error");n.data=e,t(n)}else r.maybeReconnectOnOpen()});if(!1!==this._timeout){var s=this._timeout;c("connect attempt will timeout after %d",s);var l=setTimeout(function(){c("connect attempt timed out after %d",s),i.destroy(),n.close(),n.emit("error","timeout"),r.emitAll("connect_timeout",s)},s);this.subs.push({destroy:function(){clearTimeout(l)}})}return this.subs.push(i),this.subs.push(a),this},r.prototype.onopen=function(){c("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(u(t,"data",l(this,"ondata"))),this.subs.push(u(t,"ping",l(this,"onping"))),this.subs.push(u(t,"pong",l(this,"onpong"))),this.subs.push(u(t,"error",l(this,"onerror"))),this.subs.push(u(t,"close",l(this,"onclose"))),this.subs.push(u(this.decoder,"decoded",l(this,"ondecoded")))},r.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},r.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},r.prototype.ondata=function(t){this.decoder.add(t)},r.prototype.ondecoded=function(t){this.emit("packet",t)},r.prototype.onerror=function(t){c("error",t),this.emitAll("error",t)},r.prototype.socket=function(t,e){function n(){~f(o.connecting,r)||o.connecting.push(r)}var r=this.nsps[t];if(!r){r=new i(this,t,e),this.nsps[t]=r;var o=this;r.on("connecting",n),r.on("connect",function(){r.id=o.engine.id}),this.autoConnect&&n()}return r},r.prototype.destroy=function(t){var e=f(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},r.prototype.packet=function(t){c("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,function(n){for(var r=0;r<n.length;r++)e.engine.write(n[r],t.options);e.encoding=!1,e.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},r.prototype.cleanup=function(){c("cleanup");for(var t=this.subs.length,e=0;e<t;e++){var n=this.subs.shift();n.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){c("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(t){c("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();c("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(c("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(c("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(c("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e){function n(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}t.exports=n},function(t,e,n){function r(t,e,n){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}var o=n(73),i=n(117),a=n(272),s=n(115),u=n(76),l=n(46)("socket.io-client:socket"),c=n(83);t.exports=e=r;var f={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=i.prototype.emit;i(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[s(t,"open",u(this,"onopen")),s(t,"packet",u(this,"onpacket")),s(t,"close",u(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},r.prototype.send=function(){var t=a(arguments);return t.unshift("message"),this.emit.apply(this,t),this},r.prototype.emit=function(t){if(f.hasOwnProperty(t))return p.apply(this,arguments),this;var e=a(arguments),n=o.EVENT;c(e)&&(n=o.BINARY_EVENT);var r={type:n,data:e};return r.options={},r.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(l("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),r.id=this.ids++),this.connected?this.packet(r):this.sendBuffer.push(r),delete this.flags,this},r.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},r.prototype.onopen=function(){l("transport is open - connecting"),"/"!==this.nsp&&(this.query?this.packet({type:o.CONNECT,query:this.query}):this.packet({type:o.CONNECT}))},r.prototype.onclose=function(t){l("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},r.prototype.onpacket=function(t){if(t.nsp===this.nsp)switch(t.type){case o.CONNECT:this.onconnect();break;case o.EVENT:this.onevent(t);break;case o.BINARY_EVENT:this.onevent(t);break;case o.ACK:this.onack(t);break;case o.BINARY_ACK:this.onack(t);break;case o.DISCONNECT:this.ondisconnect();break;case o.ERROR:this.emit("error",t.data)}},r.prototype.onevent=function(t){var e=t.data||[];l("emitting event %j",e),null!=t.id&&(l("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?p.apply(this,e):this.receiveBuffer.push(e)},r.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var r=a(arguments);l("sending ack %j",r);var i=c(r)?o.BINARY_ACK:o.ACK;e.packet({type:i,id:t,data:r})}}},r.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(l("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):l("bad ack %s",t.id)},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)p.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){l("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(l("performing disconnect (%s)",this.nsp),this.packet({type:o.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},r.prototype.compress=function(t){return this.flags=this.flags||{},this.flags.compress=t,this}},52,function(t,e){(function(e){function n(t){return e.Buffer&&e.Buffer.isBuffer(t)||e.ArrayBuffer&&t instanceof ArrayBuffer}t.exports=n}).call(e,function(){return this}())},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){"use strict";function n(t){var e="";do e=a[t%s]+e,t=Math.floor(t/s);while(t>0);return e}function r(t){var e=0;for(c=0;c<t.length;c++)e=e*s+u[t.charAt(c)];return e}function o(){var t=n(+new Date);return t!==i?(l=0,i=t):t+"."+n(l++)}for(var i,a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),s=64,u={},l=0,c=0;c<s;c++)u[a[c]]=c;o.encode=n,o.decode=r,t.exports=o},function(t,e){function n(t,e,n){function o(t,r){if(o.count<=0)throw new Error("after called too many times");--o.count,t?(i=!0,e(t),e=n):0!==o.count||i||e(null,r)}var i=!1;return n=n||r,o.count=t,0===t?e():o}function r(){}t.exports=n},function(t,e){t.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(e<0&&(e+=r),n<0&&(n+=r),n>r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(t),i=new Uint8Array(n-e),a=e,s=0;a<n;a++,s++)i[s]=o[a];return i.buffer}},function(t,e){(function(e){"use strict";function n(t){s.length||(a(),u=!0),s[s.length]=t}function r(){for(;l<s.length;){var t=l;if(l+=1,s[t].call(),l>c){for(var e=0,n=s.length-l;e<n;e++)s[e]=s[e+l];s.length-=l,l=0}}s.length=0,l=0,u=!1}function o(t){var e=1,n=new p(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}function i(t){return function(){function e(){clearTimeout(n),clearInterval(r),t()}var n=setTimeout(e,0),r=setInterval(e,50)}}t.exports=n;var a,s=[],u=!1,l=0,c=1024,f="undefined"!=typeof e?e:self,p=f.MutationObserver||f.WebKitMutationObserver;a="function"==typeof p?o(r):i(r),n.requestFlush=a,n.makeRequestCallFromTimer=i}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(6),i=r(o),a=n(186),s=r(a),u=n(128),l=r(u);n(159),n(161),s.default.render(i.default.createElement(l.default,null),document.getElementById("root"))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(264),u=r(s),l=n(17),c=r(l),f=n(14),p=n(15),h=r(p),d=!1,m=function(t){return t.onValue(function(){}),t},y=function(){function t(e){var n=this;o(this,t),this.ready=!1,this.requestIdToPropertyName={};var r=(0,h.default)(),a=i(r,2);this.sendEvent=a[0],this.events=a[1],d?this.events.filter(function(t){return"property-change"!==t.event||"time-pos"!==t.name}).log("mpv"):m(this.events),this.kPropertyChanges=this.events.map(function(t){if(!t.request_id)return t;if(!n.requestIdToPropertyName[t.request_id])return t;var e=n.requestIdToPropertyName[t.request_id];e||console.error("Couldn't decode response",t),delete n.requestIdToPropertyName[t.request_id];var r={event:"property-change",name:e,data:t.data};return r}).filter(function(t){return"property-change"===t.event}).map(function(t){var e=t.name,n=t.data;return{name:e,data:n}}),this.kPath=m(this.kPropertyChanges.filter(function(t){var e=t.name;return"path"===e}).map(function(t){var e=t.data;return e}).skipDuplicates().toProperty(function(){return null})),this.kVolume=m(this.kPropertyChanges.filter(function(t){var e=t.name;return"volume"===e}).map(function(t){var e=t.data;return e/100}).skipDuplicates().toProperty(function(){return 1})),this.kIsPlaying=m(this.kPropertyChanges.filter(function(t){var e=t.name;return"pause"===e}).map(function(t){var e=t.data;return!e}).skipDuplicates().toProperty(function(){return!1})),this.kPlaybackSeconds=m(this.kPropertyChanges.filter(function(t){var e=t.name;return"time-pos"===e}).map(function(t){var e=t.data;return e}).toProperty(function(){return 0})),this.kPlaylistCount=m(this.kPropertyChanges.filter(function(t){var e=t.name;return"playlist/count"===e}).map(function(t){var e=t.data;return e}).toProperty(function(){return 0})),this.kPlaylistIndex=m(this.kPropertyChanges.filter(function(t){var e=t.name;return"playlist-pos"===e}).map(function(t){var e=t.data;return e}).toProperty(function(){return 0})),this.kPlaylistPaths=m(this.kPlaylistCount.flatMapLatest(function(t){for(var e={},r=[],o=function(t){r.push(t),e[t]=!0,n.getProperty("playlist/"+t+"/filename");var o=t;setTimeout(function(){e[o]&&(console.warn("Re-fetching missing playlist filename",o),n.getProperty("playlist/"+o+"/filename"))},500)},i=0;i<t;i++)o(i);return c.default.combine(r.map(function(t){return n.kPropertyChanges.filter(function(e){var n=e.name;return n==="playlist/"+t+"/filename"}).take(1).map(function(n){var r=n.data;return delete e[t],r})}))}).toProperty(function(){return[]})),e.onValue(function(t){return n.initSocket(t)})}return a(t,[{key:"initSocket",value:function(t){var e=this;this.socket=(0,u.default)(t),this.i=0,this.socket.on("connect",function(){console.log("socket.io connected"),e.sendAndObserve("path"),e.sendAndObserve("pause"),e.sendAndObserve("time-pos"),e.sendAndObserve("volume"),e.sendAndObserve("playlist-pos")}),this.socket.on("disconnect",function(){console.warn("socket.io disconnected")}),c.default.fromEvents(this.socket,"message").onValue(this.sendEvent),this.ready=!0}},{key:"send",value:function(t){this.socket&&(d&&console.debug(">",JSON.stringify(t)),this.socket.send(t))}},{key:"getProperty",value:function(t){this.i+=1,this.requestIdToPropertyName[this.i]=t,this.send({command:["get_property",t],request_id:this.i})}},{key:"sendAndObserve",value:function(t){this.send({command:["observe_property",0,t]}),this.getProperty(t)}},{key:"setIsPlaying",value:function(t){this.send({command:["set_property","pause",!t]}),this.getProperty("pause")}},{key:"setVolume",value:function(t){this.send({command:["set_property","volume",100*t]})}},{key:"seek",value:function(t){this.send({command:["seek",t,"absolute"]})}},{key:"goToBeginningOfTrack",value:function(){this.seek(0)}},{key:"playTrack",value:function(t){this.send({command:["playlist-clear"]}),this.send({command:["playlist-remove","current"]}),this.send({command:["loadfile",t.path,"append-play"]}),this.setIsPlaying(!0)}},{key:"enqueueTrack",value:function(t){this.send({command:["loadfile",t.path,"append"]})}},{key:"playTracks",value:function(t){var e=this;this.send({command:["playlist-clear"]}),this.send({command:["playlist-remove","current"]}),this.send({command:["loadfile",t[0].path,"append-play"]}),t.slice(1).forEach(function(t){e.send({command:["loadfile",t.path,"append"]})})}},{key:"enqueueTracks",value:function(t){var e=this;t.forEach(function(t){e.send({command:["loadfile",t.path,"append"]})})}},{key:"goToPreviousTrack",value:function(){this.send({command:["playlist-prev","force"]})}},{key:"goToNextTrack",value:function(){this.send({command:["playlist-next","force"]})}},{key:"setPlaylistIndex",value:function(t){this.send({command:["set_property","playlist-pos",t]})}},{key:"refreshPlaylist",value:function(){this.getProperty("playlist/count")}},{key:"removeTrackAtIndex",value:function(t){this.send({command:["playlist-remove",t]}),this.refreshPlaylist()}}]),t}();e.default=new y(f.kMPVURL)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){var e=t.path.split("/").map(encodeURIComponent).join("/");return y+e}function a(t){return t.slice(y.length).split("/").map(decodeURIComponent).join("/")}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=n(17),c=r(l),f=n(15),p=r(f),h=n(14),d=n(140),m=r(d),y="";h.kStaticFilesURL.onValue(function(t){return y=t});var v=function(t){return t.onValue(function(){}),t},g=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,p.default)(),r=u(n,2),o=r[0],i=r[1],a=(e?i.skipDuplicates():i).toProperty(function(){return t});return[o,a]},_=function(t,e){var n=(0,p.default)(),r=u(n,2),o=r[0],i=r[1];return t[e]=o,i},b=function(){function t(){var e=this;o(this,t),this.player=new m.default,window.player=this.player;var n=_(this.player,"onSongFinished"),r=(_(this.player,"onPlaylistEnded"),_(this.player,"onPlayerStopped")),i=_(this.player,"onPlayerPaused"),s=_(this.player,"onPlayerUnpaused"),l=(_(this.player,"onTrackLoaded"),_(this.player,"onTrackAdded")),f=_(this.player,"onTrackRemoved"),p=_(this.player,"onVolumeChanged");_(this.player,"onMuted"),_(this.player,"onUnmuted");this.kIsPlaying=v(r.map(function(){return!1}).merge(i.map(function(){return!1})).merge(s.map(function(){return!0})).merge(i.map(function(){return!1})).toProperty(function(){return!1})),this.kVolume=v(p.toProperty(function(){return 1})),this.kPlaylistCount=v(c.default.constant(0).merge(l).merge(f).merge(s).merge(r).merge(n).map(function(){return e.player.playlist.length}).toProperty(function(){return 0})),this.kPlaylistPaths=v(this.kPlaylistCount.map(function(){return e.player.playlist.map(function(t){var e=t.path;return a(e)})})),this.kPlaylistIndex=c.default.constant(0);var h=g(null),d=u(h,2),y=d[0],b=d[1];this._observePath=y,this.kPath=b.skipDuplicates(),n.onValue(function(){e._updateTrack()});var k=g(0),w=u(k,2),E=w[0],C=w[1];this.kPlaybackSeconds=C;var T=function t(){E(e.player.getSongPosition()),e._updateTrack(),window.requestAnimationFrame(t)};window.requestAnimationFrame(T)}return s(t,[{key:"_updateTrack",value:function(){this.player.playlist.length?this._observePath(a(this.player.playlist[0].path)):this._observePath(null)}},{key:"setIsPlaying",value:function(t){t?this.player.play():this.player.pause()}},{key:"setVolume",value:function(t){this.player.setVolume(t)}},{key:"seek",value:function(t){this.player.setSongPosition(t)}},{key:"goToBeginningOfTrack",value:function(){this.player.setSongPosition(0)}},{key:"playTrack",value:function(t){var e=this;this.player.pause(),this.player.removeAllTracks(),this.player.addTrack(i(t),function(){e.player.play()})}},{key:"enqueueTrack",value:function(t){this.player.addTrack(i(t))}},{key:"playTracks",value:function(t){this.playTrack(t[0]);var e=!0,n=!1,r=void 0;try{for(var o,a=t.slice(1)[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var s=o.value;this.player.addTrack(i(s))}}catch(t){n=!0,r=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw r}}}},{key:"enqueueTracks",value:function(t){var e=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var s=o.value;this.player.addTrack(i(s))}}catch(t){n=!0,r=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw r}}}},{key:"removeTrackAtIndex",value:function(t){this.player.removeTrack(t)}},{key:"goToNextTrack",value:function(){this.player.playNext()}},{key:"goToPreviousTrack",value:function(){console.error("Not implemented; web player doesn't store history")}},{key:"setPlaylistIndex",value:function(t){for(var e=0;e<t;e++)this.player.removeTrack(0)}},{key:"refreshPlaylist",value:function(){}}]),t}();e.default=new b},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(6),l=r(u),c=n(74),f=r(c),p=n(8),h=r(p),d=n(19),m=n(20),y=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"observables",value:function(){return{albums:d.kFilteredAlbums,selectedAlbum:d.kAlbum,albumFilter:d.kAlbumFilter,isKeyboardFocused:m.kKeyboardFocus.map(function(t){return t===m.keyboardFocusOptions.album})}}},{key:"componentDidMount",value:function(){this.scrollToSelection()}},{key:"componentDidUpdate",value:function(t,e){this.scrollToSelection()}},{key:"scrollToSelection",value:function(){if(null!==!this.selectedItemIndex){var t=20*this.selectedItemIndex;if(!(t>=this.listEl.scrollTop&&t<=this.listEl.scrollTop+this.listEl.clientHeight-20))return t<this.listEl.scrollTop?void(this.listEl.scrollTop=t):void(t>this.listEl.scrollTop+this.listEl.clientHeight-20&&(this.listEl.scrollTop=t-this.listEl.clientHeight+20))}}},{key:"onChangeAlbumFilter",value:function(t){(0,d.setAlbumFilter)(t.target.value)}},{key:"render",value:function(){var t=this;this.selectedItemIndex=null===this.state.selectedAlbum?0:null;var e=[{label:"All",value:null,isSelected:null===this.state.selectedAlbum}].concat(this.state.albums.map(function(e,n){var r=""+e.id===t.state.selectedAlbum;return r&&(t.selectedItemIndex=n+1),{label:(e.album||"Unknown Album")+" ("+e.year+")",value:e.id,isSelected:r}})),n="st-album-list st-app-overflowing-section "+(this.state.isKeyboardFocused?"st-keyboard-focus":"");return l.default.createElement("div",{className:n},l.default.createElement("input",{className:"st-filter-control",value:this.state.albumFilter,onChange:this.onChangeAlbumFilter,placeholder:"Filter"}),l.default.createElement(f.default,{className:"st-list st-list-under-filter-control",isKeyboardFocused:this.state.isKeyboardFocused,ref2:function(e){return t.listEl=e},onClick:function(t){var e=t.value;(0,d.setAlbum)(e)},items:e}))}}]),e}(h.default);e.default=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(6),l=r(u);n(158),n(153);var c=n(130),f=r(c),p=n(134),h=r(p),d=n(129),m=r(d),y=n(127),v=r(y),g=n(136),_=r(g),b=n(135),k=r(b),w=n(133),E=r(w),C=n(54),T=n(14),P=n(19),x=n(21),S=n(8),A=r(S);n(160);var O=n(16),I=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"render",value:function(){return l.default.createElement("div",{className:"st-modal-container"},this.props.children)}}]),e}(l.default.Component),M=function(){return l.default.createElement(I,null,l.default.createElement("div",{className:"st-track-info-modal"},l.default.createElement("div",{className:"st-nav-bar"},"Track Info",l.default.createElement("div",{className:"st-close-button",onClick:x.closeInfoModal},"×")),l.default.createElement(k.default,null)))},N=function(){return l.default.createElement(C.ContextMenu,{id:"trackList"},l.default.createElement(C.MenuItem,{onClick:function(t,e){return(0,x.openInfoModal)(e.item)}},"info"),l.default.createElement(C.MenuItem,{onClick:function(t,e){return(0,O.enqueueTrack)(e.item)}},"enqueue"),l.default.createElement(C.MenuItem,{onClick:function(t,e){return(0,O.playTracks)(e.playerQueueGetter(e.i))}},"play from here"))},R=function(){return l.default.createElement(C.ContextMenu,{id:"playlist"},l.default.createElement(C.MenuItem,{onClick:function(t,e){return(0,x.openInfoModal)(e.item)}},"info"),l.default.createElement(C.MenuItem,{onClick:function(t,e){return(0,O.removeTrackAtIndex)(e.i)}},"remove"))},D=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"observables",value:function(){return{isConfigReady:T.kIsConfigReady,selectedArtist:P.kArtist,selectedAlbum:P.kAlbum,selectedTrack:P.kTrack,isInfoModalOpen:x.kIsInfoModalOpen,isSmallUI:x.kIsSmallUI,uiConfig:x.kUIConfig,uiConfigOptions:x.kUIConfigOptions}}},{key:"render",value:function(){var t=this;if(!this.state.isConfigReady)return l.default.createElement("div",null,"Loading config...");var e=this.state.uiConfigOptions[this.state.uiConfig];if(!e)return null;var n=1/e.length*100+"%",r="st-rows-"+e.length+" "+(this.state.isSmallUI?"st-ui st-small-ui":"st-ui st-large-ui");return l.default.createElement("div",{className:"st-app"},l.default.createElement(h.default,{stacked:this.state.isSmallUI}),l.default.createElement("div",{className:r},e.map(function(e,r){var o="st-columns-"+e.length;return l.default.createElement("div",{key:r,className:o,style:{height:n}},e.map(function(e,n){return t.configValueToComponent(e,n)}))})),l.default.createElement(f.default,null),this.state.isInfoModalOpen&&l.default.createElement(M,null),l.default.createElement(N,null),l.default.createElement(R,null))}},{key:"configValueToComponent",value:function(t,e){switch(t){case"albumartist":return l.default.createElement(m.default,{key:e});case"album":return l.default.createElement(v.default,{key:e});case"tracks":return l.default.createElement(_.default,{key:e});case"queue":return l.default.createElement(E.default,{key:e});default:return null}}}]),e}(A.default);e.default=D},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(6),l=r(u),c=n(74),f=r(c),p=n(19),h=n(21),d=n(20),m=n(8),y=r(m),v=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"observables",value:function(){return{artists:p.kFilteredArtists,artist:p.kArtist,artistFilter:p.kArtistFilter,isSmallUI:h.kIsSmallUI,isKeyboardFocused:d.kKeyboardFocus.map(function(t){return t===d.keyboardFocusOptions.artist})}}},{key:"componentDidMount",value:function(){this.scrollToSelection()}},{key:"componentDidUpdate",value:function(t,e){this.scrollToSelection()}},{key:"scrollToSelection",value:function(){if(null!==!this.selectedItemIndex){var t=20*this.selectedItemIndex;if(!(t>=this.listEl.scrollTop&&t<=this.listEl.scrollTop+this.listEl.clientHeight-20))return t<this.listEl.scrollTop?void(this.listEl.scrollTop=t):void(t>this.listEl.scrollTop+this.listEl.clientHeight-20&&(this.listEl.scrollTop=t-this.listEl.clientHeight+20))}}},{key:"onChangeArtistFilter",value:function(t){(0,p.setArtistFilter)(t.target.value)}},{key:"render",value:function(){var t=this;this.selectedItemIndex=null===this.state.artist?0:null;var e=[{label:"All",value:null,isSelected:null===this.state.artist}].concat(this.state.artists.map(function(e,n){var r=t.state.artist===e;return r&&(t.selectedItemIndex=n+1),{label:e,value:e,isSelected:r}})),n=function(e){var n=e.value;(0,p.setArtist)(n),(0,p.setAlbum)(null),t.state.isSmallUI&&(0,h.setSmallUIConfig)("Album")},r="st-artist-list st-app-overflowing-section "+(this.state.isKeyboardFocused?"st-keyboard-focus":"");return l.default.createElement("div",{className:r},l.default.createElement("input",{className:"st-filter-control",value:this.state.artistFilter,onChange:this.onChangeArtistFilter,placeholder:"Filter"}),l.default.createElement(f.default,{className:"st-list st-list-under-filter-control",isKeyboardFocused:this.state.isKeyboardFocused,ref2:function(e){return t.listEl=e},onClick:n,items:e}))}}]),e}(y.default);e.default=v},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(6),l=r(u),c=n(8),f=r(c),p=n(21),h=n(16),d=n(14);n(154);var m=n(35),y={A:m.uiConfigIconMedium,B:m.uiConfigIconLarge},v=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"observables",value:function(){return{uiConfigSetter:p.kUIConfigSetter,uiConfigOptions:p.kUIConfigOptions,uiConfig:p.kUIConfig,playerNames:d.kPlayerServices,playerName:h.kPlayerName, config:d.kServerConfig}}},{key:"render",value:function(){var t=this;return l.default.createElement("div",{className:"st-bottom-bar noselect"},l.default.createElement("div",{className:"st-bottom-bar-left-buttons"},l.default.createElement("div",{className:"st-toolbar-button-group"},(this.state.playerNames||[]).map(function(e){return l.default.createElement("div",{onClick:function(){return(0,h.setPlayerName)(e)},key:e,className:t.state.playerName===e?"st-toolbar-button-selected":""},{mpv:"Server",web:"Local"}[e])}))),l.default.createElement("div",{className:"st-bottom-bar-right-buttons"},l.default.createElement("div",{className:"st-toolbar-button-group"},Object.keys(this.state.uiConfigOptions).sort().map(function(e){var n=t.state.uiConfig===e,r=n?"st-toolbar-button-selected":"",o=n?"#eee":"#666";return l.default.createElement("div",{key:e,className:r,onClick:function(){return t.state.uiConfigSetter(e)}},y[e]?y[e](36,o):e)}))))}}]),e}(f.default);v.defaultProps={artistAndAlbumButtons:!1},e.default=v},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return 100*t+"%"}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(6),c=r(l);n(155);var f=n(48),p=r(f),h=n(8),d=r(h),m=n(16),y=n(19),v=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"observables",value:function(){return{track:m.kPlayingTrack,playbackSeconds:m.kPlaybackSeconds,albumArtURL:m.kAlbumArtURL}}},{key:"seek",value:function(t){var e=t.nativeEvent.offsetX/this.playbackSecondsBar.clientWidth;(0,m.seek)(this.state.track.length*e),t.stopPropagation()}},{key:"render",value:function(){var t=this,e=this.state.track?this.state.playbackSeconds/this.state.track.length:0,n=(this.state.albumArtURL||{}).small,r=n?{backgroundImage:"url("+n+")"}:{},o=this.state.track,i=function(){o&&((0,y.setArtist)(o.albumartist),(0,y.setAlbum)(o.album))};return c.default.createElement("div",{className:"st-now-playing "+this.props.className},c.default.createElement("div",{className:"st-album-art "+(n?"":"st-album-art-empty"),style:r}),o&&c.default.createElement("div",{className:"st-now-playing-title",onClick:i},c.default.createElement("strong",null,o.title)," by ",c.default.createElement("strong",null,o.artist)," from ",c.default.createElement("strong",null,o.album)),o&&c.default.createElement("div",{className:"st-playback-time-bar"},c.default.createElement("div",{className:"st-playback-time-bar-now"},(0,p.default)(this.state.playbackSeconds)),c.default.createElement("div",{className:"st-playback-time-bar-graphic",ref:function(e){return t.playbackSecondsBar=e},onClick:function(e){t.seek(e)}},c.default.createElement("div",{style:{width:s(e)}})),c.default.createElement("div",{className:"st-playback-time-bar-duration"},(0,p.default)(o.length))))}}]),e}(d.default);v.propTypes={className:l.PropTypes.string},v.defaultProps={className:""},e.default=v},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(6),l=r(u);n(79);var c=n(16),f=n(8),p=r(f),h=n(35),d=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"observables",value:function(){return{isPlaying:c.kIsPlaying,track:c.kPlayingTrack,playbackSeconds:c.kPlaybackSeconds}}},{key:"play",value:function(){(0,c.setIsPlaying)(!0)}},{key:"pause",value:function(){(0,c.setIsPlaying)(!1)}},{key:"goBack",value:function(){this.state.playbackSeconds<2?(0,c.goToPreviousTrack)():(0,c.goToBeginningOfTrack)()}},{key:"render",value:function(){var t=this;return l.default.createElement("div",{className:"st-toolbar-button-group st-playback-controls"},l.default.createElement("div",{onClick:function(){t.goBack()}},(0,h.play)(!0,!0)),this.state.isPlaying&&l.default.createElement("div",{onClick:this.pause},(0,h.pause)()),!this.state.isPlaying&&l.default.createElement("div",{onClick:this.play},(0,h.play)(!1,!1)),l.default.createElement("div",{onClick:c.goToNextTrack},(0,h.play)(!0,!1)))}}]),e}(p.default);e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=t.i,n=t.item;return{i:e,item:n}}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(6),c=r(l),f=n(54),p=n(8),h=r(p),d=n(47),m=r(d),y=n(16),v=n(21),g=n(19),_=n(35),b=n(48),k=r(b),w=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"render",value:function(){return c.default.createElement(f.ContextMenuTrigger,Object.assign({id:"playlist",holdToDisplay:0},this.props,{collect:s}),c.default.createElement("span",{className:"st-track-overflow-button"},"v"))}}]),e}(l.Component);w.propTypes={i:l.PropTypes.number.isRequired,item:l.PropTypes.object.isRequired};var E=function(t){function e(){o(this,e);var t=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.state={trackIndex:null},t}return a(e,t),u(e,[{key:"observables",value:function(){return{tracks:y.kPlaylistTracks,playlistIndex:y.kPlaylistIndex}}},{key:"componentDidMount",value:function(){(0,y.refreshPlaylist)()}},{key:"selectedTrack",value:function(){return null===this.state.trackIndex?null:this.state.tracks&&this.state.tracks.length?this.state.tracks[this.state.trackIndex]:null}},{key:"onClickTrack",value:function(t,e){this.state.trackIndex===e?(0,y.setPlaylistIndex)(e):this.setState({trackIndex:e})}},{key:"onTrackOverflow",value:function(t,e){(0,g.setInfoModalTrack)(t),(0,v.setIsInfoModalOpen)(!0)}},{key:"renderEmpty",value:function(){return c.default.createElement("div",{className:"st-track-list-empty st-app-overflowing-section"},c.default.createElement("h1",null,"No tracks in playlist"))}},{key:"render",value:function(){var t=this;return this.state.tracks&&this.state.tracks.length?c.default.createElement(m.default,{className:"st-track-list st-app-overflowing-section",onClick:this.onClickTrack.bind(this),columns:[{name:"#",itemKey:"func",func:function(e,n,r){return c.default.createElement("span",null,r+1,r===t.state.playlistIndex&&c.default.createElement("span",{className:"st-playing-track-indicator"},(0,_.play)(!1,!1,20,t.selectedTrack()===e?"#fff":"#666")))}},{name:"Title",itemKey:"func",func:function(t,e,n){return c.default.createElement("div",null,t.title,c.default.createElement(w,{i:n,item:t}))}},{name:"Album Artist",itemKey:"albumartist"},{name:"Album",itemKey:"album"},{name:"Year",itemKey:"year"},{name:"Time",itemKey:"func",func:function(t){return(0,k.default)(t.length)}}],renderGroupHeader:function(t,e){return null},rowFactory:function(t,e,n,r){return c.default.createElement(f.ContextMenuTrigger,{key:e,id:"playlist",holdToDisplay:1e3,attributes:n,renderTag:"tr",i:e,item:t,collect:s},r)},selectedItem:null===this.state.trackIndex?null:this.selectedTrack(),items:this.state.tracks}):this.renderEmpty()}}]),e}(h.default);e.default=E},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(6),l=r(u),c=n(131),f=r(c);n(79);var p=n(132),h=r(p),d=n(8),m=r(d),y=n(16),v=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"observables",value:function(){return{volume:y.kVolume}}},{key:"renderVolumeControl",value:function(){return l.default.createElement("input",{type:"range",min:"0",max:"1",step:"0.01",onChange:function(t){return(0,y.setVolume)(parseFloat(t.target.value))},value:this.state.volume})}},{key:"renderNormal",value:function(){return l.default.createElement("div",{className:"st-toolbar"},l.default.createElement(h.default,null),l.default.createElement(f.default,null),this.renderVolumeControl())}},{key:"renderStacked",value:function(){return l.default.createElement("div",{className:"st-toolbar st-toolbar-stacked"},l.default.createElement(f.default,null),l.default.createElement("div",{className:"st-toolbar-stacked-horz-group"},l.default.createElement(h.default,null),this.renderVolumeControl()))}},{key:"render",value:function(){return this.props.stacked?this.renderStacked():this.renderNormal()}}]),e}(m.default);v.defaultProps={stacked:!1},e.default=v},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(6),l=r(u),c=n(8),f=r(c),p=n(47),h=r(p),d=n(21),m=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"observables",value:function(){return{track:d.kInfoModalTrack.log("imt")}}},{key:"render",value:function(){var t=this;return this.state.track?l.default.createElement("div",{className:"st-track-info"},l.default.createElement(h.default,{columns:[{name:"Key",itemKey:"key"},{name:"Value",itemKey:"value"}],items:Object.keys(this.state.track).sort().map(function(e){return{key:e,value:t.state.track[e]}})})):l.default.createElement("div",{className:"st-track-info"})}}]),e}(f.default);e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e){return Boolean(t)===Boolean(e)&&t.id===e.id}function u(t){return{item:t.item,i:t.i,playerQueueGetter:t.playerQueueGetter}}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(157);var c=n(6),f=r(c),p=n(47),h=r(p),d=n(8),m=r(d),y=n(48),v=r(y),g=n(35),_=n(14),b=n(54),k=n(20),w=n(21),E=n(16),C=n(19),T=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,[{key:"render",value:function(){return f.default.createElement(b.ContextMenuTrigger,Object.assign({id:"trackList",holdToDisplay:0},this.props,{collect:u}),f.default.createElement("span",{className:"st-track-overflow-button"},"v"))}}]),e}(c.Component),P=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),l(e,[{key:"observables",value:function(){return{tracks:C.kTrackList,trackIndex:C.kTrackIndex,playingTrack:E.kPlayingTrack,playerQueueGetter:C.kPlayerQueueGetter,isSmallUI:w.kIsSmallUI,uiConfigSetter:w.kUIConfigSetter,isKeyboardFocused:k.kKeyboardFocus.map(function(t){return t===k.keyboardFocusOptions.trackList}),beetsWebURL:_.kBeetsWebURL}}},{key:"componentDidMount",value:function(){var t=this;this.subscribeWhileMounted(k.kEnters,function(){t.state.isKeyboardFocused&&t.selectedTrack()&&(0,E.playTracks)(t.state.playerQueueGetter())})}},{key:"selectedTrack",value:function(){return null===this.state.trackIndex?null:this.state.tracks&&this.state.tracks.length?this.state.tracks[this.state.trackIndex]:null}},{key:"renderEmpty",value:function(){var t=this;return f.default.createElement("div",{className:"st-track-list st-track-list-empty st-app-overflowing-section"},f.default.createElement("h1",null,"No tracks selected"),f.default.createElement("h2",null,"You must select at least one artist or album."),this.state.isSmallUI&&f.default.createElement("div",{className:"st-pick-artist-album-prompt"},f.default.createElement("div",{onClick:function(){return t.state.uiConfigSetter("Artist")}},"Pick artist"),f.default.createElement("div",{onClick:function(){return t.state.uiConfigSetter("Album")}},"Pick album")))}},{key:"onClickItem",value:function(t,e){var n=this.state.tracks[this.state.trackIndex];e!==this.state.trackIndex||s(n,this.state.playingTrack)?(0,C.setTrackIndex)(e):(0,E.playTracks)(this.state.playerQueueGetter())}},{key:"enqueueAlbum",value:function(t,e){(t?E.playTracks:E.enqueueTracks)(e)}},{key:"render",value:function(){var t=this;if(!this.state.tracks||!this.state.tracks.length)return this.renderEmpty();var e="st-track-list st-app-overflowing-section "+(this.state.isKeyboardFocused?"st-keyboard-focus":"");return f.default.createElement(h.default,{className:e,onClick:this.onClickItem.bind(this),columns:[{name:"#",itemKey:"func",func:function(e){return f.default.createElement("span",null,e.disc,"-",e.track,t.state.playingTrack&&e.id===t.state.playingTrack.id&&f.default.createElement("span",{className:"st-playing-track-indicator"},(0,g.play)(!1,!1,20,t.selectedTrack()===e?"#fff":"#666")))}},{name:"Title",itemKey:"func",func:function(e,n,r){return f.default.createElement("div",null,e.title,f.default.createElement(T,{item:e,i:r,playerQueueGetter:t.state.playerQueueGetter}))}},{name:"album_id",itemKey:"album_id",groupSplitter:!0},{name:"Year",itemKey:"year"},{name:"Time",itemKey:"func",func:function(t){return(0,v.default)(t.length)}}],renderGroupHeader:function(e,n){var r=e[0];return f.default.createElement("tr",{className:"st-track-list-header",key:n},f.default.createElement("td",{colSpan:"4"},f.default.createElement("div",{className:"st-track-list-header-album"},r.album),f.default.createElement("div",{className:"st-track-list-header-artist"},r.albumartist),f.default.createElement("div",{className:"st-track-list-header-year"},r.year),f.default.createElement("div",{className:"st-track-list-header-buttons"},f.default.createElement("div",{onClick:t.enqueueAlbum.bind(t,!0,e)},(0,g.play)(!1,!1,18,"#666",1,-1)," Play album"),f.default.createElement("div",{onClick:t.enqueueAlbum.bind(t,!1,e)},(0,g.play)(!1,!1,16,"#666",1,-1,!0)," Enqueue album"))))},rowFactory:function(e,n,r,o){return f.default.createElement(b.ContextMenuTrigger,{key:n,id:"trackList",holdToDisplay:1e3,attributes:r,renderTag:"tr",item:e,i:n,playerQueueGetter:t.state.playerQueueGetter,collect:u},o)},isKeyboardFocused:this.state.isKeyboardFocused,selectedItem:null===this.state.trackIndex?null:this.selectedTrack(),items:this.state.tracks})}}]),e}(m.default);e.default=P},function(t,e){"use strict";function n(t){return"?"+Object.keys(t).filter(function(e){return null!==t[e]}).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n},function(t,e){"use strict";function n(t){var e={},n=!0,r=!1,o=void 0;try{for(var i,a=t.split("&")[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=s.indexOf("=");if(u>-1){var l=s.slice(0,u),c=s.slice(u+1);e[decodeURIComponent(l)]=decodeURIComponent(c)}}}catch(t){r=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return function(e){function r(t){o(this,r);var e=i(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,t));return e.__mousetrapBindings=[],e.Mousetrap=n(85),e}return a(r,e),u(r,[{key:"bindShortcut",value:function(t,e){this.Mousetrap.bind(t,e),this.__mousetrapBindings.push(t)}},{key:"unbindShortcut",value:function(t){var e=this.__mousetrapBindings.indexOf(t);e>-1&&this.__mousetrapBindings.splice(e,1),this.Mousetrap.unbind(t)}},{key:"unbindAllShortcuts",value:function(){var t=this;this.__mousetrapBindings.length<1||(this.__mousetrapBindings.forEach(function(e){t.Mousetrap.unbind(e)}),this.__mousetrapBindings=[])}},{key:"componentWillUnmount",value:function(){this.unbindAllShortcuts()}},{key:"render",value:function(){return c.default.createElement(t,Object.assign({},this.props,{bindShortcut:this.bindShortcut.bind(this),unbindShortcut:this.unbindShortcut.bind(this)}))}}]),r}(c.default.Component)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.mouseTrap=s;var l=n(6),c=r(l)},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(t,e){var n;return n=new XMLHttpRequest,n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){var t;return t=n.response,e(t)},n.send()},i=function(){function t(e,r,i,a){var s=this;n(this,t),this.paused=!1,this.stopped=!0,this.soundStart=0,this.pauseOffset=0,this.player=e,this.path=r,this.onended=i,this.onloaded=a,o(this.path,function(t){return s.player.ctx.decodeAudioData(t,function(t){s.buffer=t,s.initializeSource(),s.onloaded()})})}return r(t,[{key:"initializeSource",value:function(){return this.source=this.player.ctx.createBufferSource(),this.source.connect(this.player.gainNode),this.source.buffer=this.buffer,this.source.onended=this.onended}},{key:"play",value:function(){return!this.paused&&this.stopped?(this.soundStart=Date.now(),this.source.onended=this.onended,this.source.start(),this.stopped=!1):this.paused?(this.paused=!1,this.source.onended=this.onended,this.source.start(0,this.pauseOffset/1e3)):void 0}},{key:"stop",value:function(){if(!this.stopped){this.source.onended=null;try{this.source.stop()}catch(t){}return this.stopped=!0,this.paused=!1,this.initializeSource()}}},{key:"pause",value:function(){if(!this.paused&&!this.stopped)return this.pauseOffset=Date.now()-this.soundStart,this.paused=!0,this.source.onended=null,this.source.stop(),this.initializeSource()}},{key:"getDuration",value:function(){return this.buffer.duration}},{key:"getPosition",value:function(){return this.paused?this.pauseOffset/1e3:this.stopped?0:(Date.now()-this.soundStart)/1e3}},{key:"setPosition",value:function(t){if(this.buffer){if(t<this.buffer.duration)return this.paused?this.pauseOffset=t:this.stopped?(this.stopped=!1,this.soundStart=Date.now()-1e3*t,this.source.onended=this.onended,this.source.start(0,t)):(this.source.onended=null,this.source.stop(),this.initializeSource(),this.soundStart=Date.now()-1e3*t,this.source.start(0,t));throw new Error("Cannot play further the end of the track")}}}]),t}(),a=function(){function t(){var e=this;n(this,t),this.playlist=[],this.muted=!1,this.onSongFinished=function(t){},this.onPlaylistEnded=function(){},this.onPlayerStopped=function(){},this.onPlayerPaused=function(){},this.onPlayerUnpaused=function(){},this.onTrackLoaded=function(t){},this.onTrackAdded=function(t){},this.onTrackRemoved=function(t){},this.onVolumeChanged=function(t){},this.onMuted=function(){},this.onUnmuted=function(){},this.ctx=new(window.AudioContext||window.webkitAudioContext),this.gainNode=this.ctx.createGain(),this.gainNode.connect(this.ctx.destination),window.addEventListener("touchstart",function(){var t=e.ctx.createBuffer(1,1,22050),n=e.ctx.createBufferSource();n.buffer=t,n.connect(e.ctx.destination);try{n.noteOn(0)}catch(t){n.start(0)}},!1)}return r(t,[{key:"setVolume",value:function(t){this.gainNode.gain.value=t,this.onVolumeChanged(t)}},{key:"getVolume",value:function(){return this.gainNode.gain.value}},{key:"toggleMute",value:function(){this.muted?(this.muted=!1,this.gainNode.gain.value=this.previousGain,this.onUnmuted()):(this.previousGain=this.gainNode.gain.value,this.gainNode.gain.value=0,this.muted=!0,this.onMuted())}},{key:"pause",value:function(){0!==this.playlist.length&&(this.playlist[0].pause(),this.onPlayerPaused())}},{key:"stop",value:function(){0!==this.playlist.length&&(this.playlist[0].stop(),this.onPlayerStopped())}},{key:"play",value:function(){if(0!==this.playlist.length)return this.playlist[0].play(),this.onPlayerUnpaused()}},{key:"playNext",value:function(){if(0!==this.playlist.length){var t=this.playlist[0];return t.stop(),this.playlist.shift(),0===this.playlist.length?this.onPlaylistEnded():(this.onTrackRemoved(t.path),this.playlist[0].play())}}},{key:"addTrack",value:function(t,e){var n=this,r=function(){return n.onSongFinished(t),n.playNext()},o=function(){return e&&e(),n.onTrackLoaded(t)};return this.playlist.push(new i(this,t,r,o))}},{key:"insertTrack",value:function(t,e){var n=this,r=function(){return n.onSongFinished(e),n.playNext()},o=function(){return n.onTrackLoaded(e)};return this.playlist.splice(t,0,new i(this,e,r,o))}},{key:"removeTrack",value:function(t){var e;return e=this.playlist.splice(t,1),this.onTrackRemoved(e.path)}},{key:"replaceTrack",value:function(t,e){var n=this,r=function(){return n.onSongFinished(e),n.playNext()},o=function(){return n.onTrackLoaded(e)},a=new i(this,e,r,o),s=this.playlist.splice(t,1,a);return this.onTrackRemoved(s.path)}},{key:"getSongDuration",value:function(t){return 0===this.playlist.length?0:null!=t?this.playlist[t]?this.playlist[t].getDuration():0:this.playlist[0].getDuration()}},{key:"getSongPosition",value:function(){return 0===this.playlist.length?0:this.playlist[0].getPosition()}},{key:"setSongPosition",value:function(t){if(0!==this.playlist.length)return this.playlist[0].setPosition(t)}},{key:"removeAllTracks",value:function(){this.stop(),this.playlist=[]}}]),t}();e.default=a},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<t.length;r++)n[t.charCodeAt(r)]=r;e.encode=function(e){var n,r=new Uint8Array(e),o=r.length,i="";for(n=0;n<o;n+=3)i+=t[r[n]>>2],i+=t[(3&r[n])<<4|r[n+1]>>4],i+=t[(15&r[n+1])<<2|r[n+2]>>6],i+=t[63&r[n+2]];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i},e.decode=function(t){var e,r,o,i,a,s=.75*t.length,u=t.length,l=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var c=new ArrayBuffer(s),f=new Uint8Array(c);for(e=0;e<u;e+=4)r=n[t.charCodeAt(e)],o=n[t.charCodeAt(e+1)],i=n[t.charCodeAt(e+2)],a=n[t.charCodeAt(e+3)],f[l++]=r<<2|o>>4,f[l++]=(15&o)<<4|i>>2,f[l++]=(3&i)<<6|63&a;return c}}()},function(t,e){(function(e){function n(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.buffer instanceof ArrayBuffer){var r=n.buffer;if(n.byteLength!==r.byteLength){var o=new Uint8Array(n.byteLength);o.set(new Uint8Array(r,n.byteOffset,n.byteLength)),r=o.buffer}t[e]=r}}}function r(t,e){e=e||{};var r=new i;n(t);for(var o=0;o<t.length;o++)r.append(t[o]);return e.type?r.getBlob(e.type):r.getBlob()}function o(t,e){return n(t),new Blob(t,e||{})}var i=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder,a=function(){try{var t=new Blob(["hi"]);return 2===t.size}catch(t){return!1}}(),s=a&&function(){try{var t=new Blob([new Uint8Array([1,2])]);return 2===t.size}catch(t){return!1}}(),u=i&&i.prototype.append&&i.prototype.getBlob;t.exports=function(){return a?s?e.Blob:o:u?r:void 0}()}).call(e,function(){return this}())},function(t,e){function n(t){if(t)return r(t)}function r(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}t.exports=n,n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},n.prototype.once=function(t,e){function n(){r.off(t,n),e.apply(this,arguments)}var r=this;return this._callbacks=this._callbacks||{},n.fn=e,this.on(t,n),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks[t];if(!n)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===e||r.fn===e){n.splice(o,1);break}return this},n.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks[t];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,e)}return this},n.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},n.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){t.exports=n(146)},function(t,e,n){t.exports=n(147),t.exports.parser=n(22)},function(t,e,n){(function(e){function r(t,n){if(!(this instanceof r))return new r(t,n);n=n||{},t&&"object"==typeof t&&(n=t,t=null),t?(t=c(t),n.hostname=t.host,n.secure="https"===t.protocol||"wss"===t.protocol,n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=c(n.host).host),this.secure=null!=n.secure?n.secure:e.location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(e.location?location.hostname:"localhost"),this.port=n.port||(e.location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"==typeof this.query&&(this.query=p.decode(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate&&(n.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=void 0===n.rejectUnauthorized?null:n.rejectUnauthorized,this.forceNode=!!n.forceNode;var o="object"==typeof e&&e;o.global===o&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}function o(t){var e={}; for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var i=n(77),a=n(52),s=n(37)("engine.io-client:socket"),u=n(84),l=n(22),c=n(87),f=n(177),p=n(53);t.exports=r,r.priorWebsocketSuccess=!1,a(r.prototype),r.protocol=l.protocol,r.Socket=r,r.Transport=n(50),r.transports=n(77),r.parser=n(22),r.prototype.createTransport=function(t){s('creating transport "%s"',t);var e=o(this.query);e.EIO=l.protocol,e.transport=t,this.id&&(e.sid=this.id);var n=new i[t]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:e,forceJSONP:this.forceJSONP,jsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passphrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized,perMessageDeflate:this.perMessageDeflate,extraHeaders:this.extraHeaders,forceNode:this.forceNode,localAddress:this.localAddress});return n},r.prototype.open=function(){var t;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},r.prototype.setTransport=function(t){s("setting transport %s",t.name);var e=this;this.transport&&(s("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},r.prototype.probe=function(t){function e(){if(p.onlyBinaryUpgrades){var e=!this.supportsBinary&&p.transport.supportsBinary;f=f||e}f||(s('probe transport "%s" opened',t),c.send([{type:"ping",data:"probe"}]),c.once("packet",function(e){if(!f)if("pong"===e.type&&"probe"===e.data){if(s('probe transport "%s" pong',t),p.upgrading=!0,p.emit("upgrading",c),!c)return;r.priorWebsocketSuccess="websocket"===c.name,s('pausing current transport "%s"',p.transport.name),p.transport.pause(function(){f||"closed"!==p.readyState&&(s("changing transport and sending upgrade packet"),l(),p.setTransport(c),c.send([{type:"upgrade"}]),p.emit("upgrade",c),c=null,p.upgrading=!1,p.flush())})}else{s('probe transport "%s" failed',t);var n=new Error("probe error");n.transport=c.name,p.emit("upgradeError",n)}}))}function n(){f||(f=!0,l(),c.close(),c=null)}function o(e){var r=new Error("probe error: "+e);r.transport=c.name,n(),s('probe transport "%s" failed because of error: %s',t,e),p.emit("upgradeError",r)}function i(){o("transport closed")}function a(){o("socket closed")}function u(t){c&&t.name!==c.name&&(s('"%s" works - aborting "%s"',t.name,c.name),n())}function l(){c.removeListener("open",e),c.removeListener("error",o),c.removeListener("close",i),p.removeListener("close",a),p.removeListener("upgrading",u)}s('probing transport "%s"',t);var c=this.createTransport(t,{probe:1}),f=!1,p=this;r.priorWebsocketSuccess=!1,c.once("open",e),c.once("error",o),c.once("close",i),this.once("close",a),this.once("upgrading",u),c.open()},r.prototype.onOpen=function(){if(s("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){s("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},r.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(s('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(f(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else s('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!==e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},r.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){s("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},r.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})},r.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(s("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},r.prototype.sendPacket=function(t,e,n,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){n=n||{},n.compress=!1!==n.compress;var o={type:t,data:e,options:n};this.emit("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}},r.prototype.close=function(){function t(){r.onClose("forced close"),s("socket closing - telling transport to close"),r.transport.close()}function e(){r.removeListener("upgrade",e),r.removeListener("upgradeError",e),t()}function n(){r.once("upgrade",e),r.once("upgradeError",e)}if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}return this},r.prototype.onError=function(t){s("socket error %j",t),r.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},r.prototype.onClose=function(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){s('socket close with reason: "%s"',t);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),n.writeBuffer=[],n.prevBufferLen=0}},r.prototype.filterUpgrades=function(t){for(var e=[],n=0,r=t.length;n<r;n++)~u(this.transports,t[n])&&e.push(t[n]);return e}}).call(e,function(){return this}())},function(t,e,n){(function(e){function r(){}function o(t){i.call(this,t),this.query=this.query||{},s||(e.___eio||(e.___eio=[]),s=e.___eio),this.index=s.length;var n=this;s.push(function(t){n.onData(t)}),this.query.j=this.index,e.document&&e.addEventListener&&e.addEventListener("beforeunload",function(){n.script&&(n.script.onerror=r)},!1)}var i=n(78),a=n(36);t.exports=o;var s,u=/\n/g,l=/\\n/g;a(o,i),o.prototype.supportsBinary=!1,o.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),i.prototype.doClose.call(this)},o.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e;var r="undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent);r&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},o.prototype.doWrite=function(t,e){function n(){r(),e()}function r(){if(o.iframe)try{o.form.removeChild(o.iframe)}catch(t){o.onError("jsonp polling iframe removal error",t)}try{var t='<iframe src="javascript:0" name="'+o.iframeId+'">';i=document.createElement(t)}catch(t){i=document.createElement("iframe"),i.name=o.iframeId,i.src="javascript:0"}i.id=o.iframeId,o.form.appendChild(i),o.iframe=i}var o=this;if(!this.form){var i,a=document.createElement("form"),s=document.createElement("textarea"),c=this.iframeId="eio_iframe_"+this.index;a.className="socketio",a.style.position="absolute",a.style.top="-1000px",a.style.left="-1000px",a.target=c,a.method="POST",a.setAttribute("accept-charset","utf-8"),s.name="d",a.appendChild(s),document.body.appendChild(a),this.form=a,this.area=s}this.form.action=this.uri(),r(),t=t.replace(l,"\\\n"),this.area.value=t.replace(u,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===o.iframe.readyState&&n()}:this.iframe.onload=n}}).call(e,function(){return this}())},function(t,e,n){(function(e){function r(){}function o(t){if(u.call(this,t),this.requestTimeout=t.requestTimeout,e.location){var n="https:"===location.protocol,r=location.port;r||(r=n?443:80),this.xd=t.hostname!==e.location.hostname||r!==t.port,this.xs=t.secure!==n}else this.extraHeaders=t.extraHeaders}function i(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function a(){for(var t in i.requests)i.requests.hasOwnProperty(t)&&i.requests[t].abort()}var s=n(51),u=n(78),l=n(52),c=n(36),f=n(37)("engine.io-client:polling-xhr");t.exports=o,t.exports.Request=i,c(o,u),o.prototype.supportsBinary=!0,o.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new i(t)},o.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,r=this.request({method:"POST",data:t,isBinary:n}),o=this;r.on("success",e),r.on("error",function(t){o.onError("xhr post error",t)}),this.sendXhr=r},o.prototype.doPoll=function(){f("xhr poll");var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},l(i.prototype),i.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new s(t),r=this;try{f("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders){n.setDisableHeaderCheck(!0);for(var o in this.extraHeaders)this.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this.extraHeaders[o])}}catch(t){}if(this.supportsBinary&&(n.responseType="arraybuffer"),"POST"===this.method)try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{n.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in n&&(n.withCredentials=!0),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){r.onLoad()},n.onerror=function(){r.onError(n.responseText)}):n.onreadystatechange=function(){4===n.readyState&&(200===n.status||1223===n.status?r.onLoad():setTimeout(function(){r.onError(n.status)},0))},f("xhr data %s",this.data),n.send(this.data)}catch(t){return void setTimeout(function(){r.onError(t)},0)}e.document&&(this.index=i.requestsCount++,i.requests[this.index]=this)},i.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},i.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},i.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},i.prototype.cleanup=function(t){if("undefined"!=typeof this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,t)try{this.xhr.abort()}catch(t){}e.document&&delete i.requests[this.index],this.xhr=null}},i.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch(t){}if("application/octet-stream"===e)t=this.xhr.response||this.xhr.responseText;else if(this.supportsBinary)try{t=String.fromCharCode.apply(null,new Uint8Array(this.xhr.response))}catch(e){for(var n=new Uint8Array(this.xhr.response),r=[],o=0,i=n.length;o<i;o++)r.push(n[o]);t=String.fromCharCode.apply(null,r)}else t=this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},i.prototype.hasXDR=function(){return"undefined"!=typeof e.XDomainRequest&&!this.xs&&this.enablesXDR},i.prototype.abort=function(){this.cleanup()},i.requestsCount=0,i.requests={},e.document&&(e.attachEvent?e.attachEvent("onunload",a):e.addEventListener&&e.addEventListener("beforeunload",a,!1))}).call(e,function(){return this}())},function(t,e,n){(function(e){function r(t){var e=t&&t.forceBase64;e&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=f&&!t.forceNode,this.usingBrowserWebSocket||(p=o),i.call(this,t)}var o,i=n(50),a=n(22),s=n(53),u=n(36),l=n(120),c=n(37)("engine.io-client:websocket"),f=e.WebSocket||e.MozWebSocket;if("undefined"==typeof window)try{o=n(276)}catch(t){}var p=f;p||"undefined"!=typeof window||(p=o),t.exports=r,u(r,i),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=void 0,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?new p(t):new p(t,e,n)}catch(t){return this.emit("error",t)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},r.prototype.write=function(t){function n(){r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0)}var r=this;this.writable=!1;for(var o=t.length,i=0,s=o;i<s;i++)!function(t){a.encodePacket(t,r.supportsBinary,function(i){if(!r.usingBrowserWebSocket){var a={};if(t.options&&(a.compress=t.options.compress),r.perMessageDeflate){var s="string"==typeof i?e.Buffer.byteLength(i):i.length;s<r.perMessageDeflate.threshold&&(a.compress=!1)}}try{r.usingBrowserWebSocket?r.ws.send(i):r.ws.send(i,a)}catch(t){c("websocket closed before onclose event")}--o||n()})}(t[i])},r.prototype.onClose=function(){i.prototype.onClose.call(this)},r.prototype.doClose=function(){"undefined"!=typeof this.ws&&this.ws.close()},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=l()),this.supportsBinary||(t.b64=1),t=s.encode(t),t.length&&(t="?"+t);var r=this.hostname.indexOf(":")!==-1;return e+"://"+(r?"["+this.hostname+"]":this.hostname)+n+this.path+t},r.prototype.check=function(){return!(!p||"__initialize"in p&&this.name===r.prototype.name)}}).call(e,function(){return this}())},function(t,e,n){function r(){return e.colors[c++%e.colors.length]}function o(t){function n(){}function o(){var t=o,n=+new Date,i=n-(l||n);t.diff=i,t.prev=l,t.curr=n,l=n,null==t.useColors&&(t.useColors=e.useColors()),null==t.color&&t.useColors&&(t.color=r());for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=e.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var u=0;a[0]=a[0].replace(/%([a-z%])/g,function(n,r){if("%%"===n)return n;u++;var o=e.formatters[r];if("function"==typeof o){var i=a[u];n=o.call(t,i),a.splice(u,1),u--}return n}),a=e.formatArgs.apply(t,a);var c=o.log||e.log||console.log.bind(console);c.apply(t,a)}n.enabled=!1,o.enabled=!0;var i=e.enabled(t)?o:n;return i.namespace=t,i}function i(t){e.save(t);for(var n=(t||"").split(/[\s,]+/),r=n.length,o=0;o<r;o++)n[o]&&(t=n[o].replace(/[\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*?"),"-"===t[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))}function a(){e.enable("")}function s(t){var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1}function u(t){return t instanceof Error?t.stack||t.message:t}e=t.exports=o.debug=o,e.coerce=u,e.disable=a,e.enable=i,e.enabled=s,e.humanize=n(86),e.names=[],e.skips=[],e.formatters={};var l,c=0},function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e}},79,79,79,79,79,79,79,79,79,function(t,e){"use strict";function n(t){return t.replace(r,function(t,e){return e.toUpperCase()})}var r=/-(.)/g;t.exports=n},function(t,e,n){"use strict";function r(t){return o(t.replace(i,"ms-"))}var o=n(162),i=/^-ms-/;t.exports=r},function(t,e,n){"use strict";function r(t,e){return!(!t||!e)&&(t===e||!o(t)&&(o(e)?r(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var o=n(172);t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.length;if(Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t?a(!1):void 0,"number"!=typeof e?a(!1):void 0,0===e||e-1 in t?void 0:a(!1),"function"==typeof t.callee?a(!1):void 0,t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}function o(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}function i(t){return o(t)?Array.isArray(t)?t.slice():r(t):[t]}var a=n(1);t.exports=i},function(t,e,n){"use strict";function r(t){var e=t.match(c);return e&&e[1].toLowerCase()}function o(t,e){var n=l;l?void 0:u(!1);var o=r(t),i=o&&s(o);if(i){n.innerHTML=i[1]+t+i[2];for(var c=i[0];c--;)n=n.lastChild}else n.innerHTML=t;var f=n.getElementsByTagName("script");f.length&&(e?void 0:u(!1),a(f).forEach(e));for(var p=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return p}var i=n(7),a=n(165),s=n(167),u=n(1),l=i.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;t.exports=o},function(t,e,n){"use strict";function r(t){return a?void 0:i(!1),p.hasOwnProperty(t)||(t="*"),s.hasOwnProperty(t)||("*"===t?a.innerHTML="<link />":a.innerHTML="<"+t+"></"+t+">",s[t]=!a.firstChild),s[t]?p[t]:null}var o=n(7),i=n(1),a=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'<select multiple="true">',"</select>"],l=[1,"<table>","</table>"],c=[3,"<table><tbody><tr>","</tr></tbody></table>"],f=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],p={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},h=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];h.forEach(function(t){p[t]=f,s[t]=!0}),t.exports=r},function(t,e){"use strict";function n(t){return t===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}t.exports=n},function(t,e){"use strict";function n(t){return t.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;t.exports=n},function(t,e,n){"use strict";function r(t){return o(t).replace(i,"-ms-")}var o=n(169),i=/^ms-/;t.exports=r},function(t,e){"use strict";function n(t){return!(!t||!("function"==typeof Node?t instanceof Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=n},function(t,e,n){"use strict";function r(t){return o(t)&&3==t.nodeType}var o=n(171);t.exports=r},function(t,e){"use strict";function n(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}t.exports=n},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},function(t,e,n){var r;(function(t,o){(function(){function i(t,e){function n(t){if(n[t]!==y)return n[t];var i;if("bug-string-char-index"==t)i="a"!="a"[0];else if("json"==t)i=n("json-stringify")&&n("json-parse");else{var a,s='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var l=e.stringify,c="function"==typeof l&&_;if(c){(a=function(){return 1}).toJSON=a;try{c="0"===l(0)&&"0"===l(new r)&&'""'==l(new o)&&l(g)===y&&l(y)===y&&l()===y&&"1"===l(a)&&"[1]"==l([a])&&"[null]"==l([y])&&"null"==l(null)&&"[null,null,null]"==l([y,g,null])&&l({a:[a,!0,!1,null,"\0\b\n\f\r\t"]})==s&&"1"===l(null,a)&&"[\n 1,\n 2\n]"==l([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==l(new u(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==l(new u(864e13))&&'"-000001-01-01T00:00:00.000Z"'==l(new u(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==l(new u(-1))}catch(t){c=!1}}i=c}if("json-parse"==t){var f=e.parse;if("function"==typeof f)try{if(0===f("0")&&!f(!1)){a=f(s);var p=5==a.a.length&&1===a.a[0];if(p){try{p=!f('"\t"')}catch(t){}if(p)try{p=1!==f("01")}catch(t){}if(p)try{p=1!==f("1.")}catch(t){}}}}catch(t){p=!1}i=p}}return n[t]=!!i}t||(t=l.Object()),e||(e=l.Object());var r=t.Number||l.Number,o=t.String||l.String,a=t.Object||l.Object,u=t.Date||l.Date,c=t.SyntaxError||l.SyntaxError,f=t.TypeError||l.TypeError,p=t.Math||l.Math,h=t.JSON||l.JSON;"object"==typeof h&&h&&(e.stringify=h.stringify,e.parse=h.parse);var d,m,y,v=a.prototype,g=v.toString,_=new u(-0xc782b5b800cec);try{_=_.getUTCFullYear()==-109252&&0===_.getUTCMonth()&&1===_.getUTCDate()&&10==_.getUTCHours()&&37==_.getUTCMinutes()&&6==_.getUTCSeconds()&&708==_.getUTCMilliseconds()}catch(t){}if(!n("json")){var b="[object Function]",k="[object Date]",w="[object Number]",E="[object String]",C="[object Array]",T="[object Boolean]",P=n("bug-string-char-index");if(!_)var x=p.floor,S=[0,31,59,90,120,151,181,212,243,273,304,334],A=function(t,e){return S[e]+365*(t-1970)+x((t-1969+(e=+(e>1)))/4)-x((t-1901+e)/100)+x((t-1601+e)/400)};if((d=v.hasOwnProperty)||(d=function(t){var e,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=g?d=function(t){var e=this.__proto__,n=t in(this.__proto__=null,this);return this.__proto__=e,n}:(e=n.constructor,d=function(t){var n=(this.constructor||e).prototype;return t in this&&!(t in n&&this[t]===n[t])}),n=null,d.call(this,t)}),m=function(t,e){var n,r,o,i=0;(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n;for(o in r)d.call(r,o)&&i++;return n=r=null,i?m=2==i?function(t,e){var n,r={},o=g.call(t)==b;for(n in t)o&&"prototype"==n||d.call(r,n)||!(r[n]=1)||!d.call(t,n)||e(n)}:function(t,e){var n,r,o=g.call(t)==b;for(n in t)o&&"prototype"==n||!d.call(t,n)||(r="constructor"===n)||e(n);(r||d.call(t,n="constructor"))&&e(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],m=function(t,e){var n,o,i=g.call(t)==b,a=!i&&"function"!=typeof t.constructor&&s[typeof t.hasOwnProperty]&&t.hasOwnProperty||d;for(n in t)i&&"prototype"==n||!a.call(t,n)||e(n);for(o=r.length;n=r[--o];a.call(t,n)&&e(n));}),m(t,e)},!n("json-stringify")){var O={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},I="000000",M=function(t,e){return(I+(e||0)).slice(-t)},N="\\u00",R=function(t){for(var e='"',n=0,r=t.length,o=!P||r>10,i=o&&(P?t.split(""):t);n<r;n++){var a=t.charCodeAt(n);switch(a){case 8:case 9:case 10:case 12:case 13:case 34:case 92:e+=O[a];break;default:if(a<32){e+=N+M(2,a.toString(16));break}e+=o?i[n]:t.charAt(n)}}return e+'"'},D=function(t,e,n,r,o,i,a){var s,u,l,c,p,h,v,_,b,P,S,O,I,N,j,L;try{s=e[t]}catch(t){}if("object"==typeof s&&s)if(u=g.call(s),u!=k||d.call(s,"toJSON"))"function"==typeof s.toJSON&&(u!=w&&u!=E&&u!=C||d.call(s,"toJSON"))&&(s=s.toJSON(t));else if(s>-1/0&&s<1/0){if(A){for(p=x(s/864e5),l=x(p/365.2425)+1970-1;A(l+1,0)<=p;l++);for(c=x((p-A(l,0))/30.42);A(l,c+1)<=p;c++);p=1+p-A(l,c),h=(s%864e5+864e5)%864e5,v=x(h/36e5)%24,_=x(h/6e4)%60,b=x(h/1e3)%60,P=h%1e3}else l=s.getUTCFullYear(),c=s.getUTCMonth(),p=s.getUTCDate(),v=s.getUTCHours(),_=s.getUTCMinutes(),b=s.getUTCSeconds(),P=s.getUTCMilliseconds();s=(l<=0||l>=1e4?(l<0?"-":"+")+M(6,l<0?-l:l):M(4,l))+"-"+M(2,c+1)+"-"+M(2,p)+"T"+M(2,v)+":"+M(2,_)+":"+M(2,b)+"."+M(3,P)+"Z"}else s=null;if(n&&(s=n.call(e,t,s)),null===s)return"null";if(u=g.call(s),u==T)return""+s;if(u==w)return s>-1/0&&s<1/0?""+s:"null";if(u==E)return R(""+s);if("object"==typeof s){for(N=a.length;N--;)if(a[N]===s)throw f();if(a.push(s),S=[],j=i,i+=o,u==C){for(I=0,N=s.length;I<N;I++)O=D(I,s,n,r,o,i,a),S.push(O===y?"null":O);L=S.length?o?"[\n"+i+S.join(",\n"+i)+"\n"+j+"]":"["+S.join(",")+"]":"[]"}else m(r||s,function(t){var e=D(t,s,n,r,o,i,a);e!==y&&S.push(R(t)+":"+(o?" ":"")+e)}),L=S.length?o?"{\n"+i+S.join(",\n"+i)+"\n"+j+"}":"{"+S.join(",")+"}":"{}";return a.pop(),L}};e.stringify=function(t,e,n){var r,o,i,a;if(s[typeof e]&&e)if((a=g.call(e))==b)o=e;else if(a==C){i={};for(var u,l=0,c=e.length;l<c;u=e[l++],a=g.call(u),(a==E||a==w)&&(i[u]=1));}if(n)if((a=g.call(n))==w){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else a==E&&(r=n.length<=10?n:n.slice(0,10));return D("",(u={},u[""]=t,u),o,i,r,"",[])}}if(!n("json-parse")){var j,L,U=o.fromCharCode,B={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},V=function(){throw j=L=null,c()},F=function(){for(var t,e,n,r,o,i=L,a=i.length;j<a;)switch(o=i.charCodeAt(j)){case 9:case 10:case 13:case 32:j++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=P?i.charAt(j):i[j],j++,t;case 34:for(t="@",j++;j<a;)if(o=i.charCodeAt(j),o<32)V();else if(92==o)switch(o=i.charCodeAt(++j)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=B[o],j++;break;case 117:for(e=++j,n=j+4;j<n;j++)o=i.charCodeAt(j),o>=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||V();t+=U("0x"+i.slice(e,j));break;default:V()}else{if(34==o)break;for(o=i.charCodeAt(j),e=j;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++j);t+=i.slice(e,j)}if(34==i.charCodeAt(j))return j++,t;V();default:if(e=j,45==o&&(r=!0,o=i.charCodeAt(++j)),o>=48&&o<=57){for(48==o&&(o=i.charCodeAt(j+1),o>=48&&o<=57)&&V(),r=!1;j<a&&(o=i.charCodeAt(j),o>=48&&o<=57);j++);if(46==i.charCodeAt(j)){for(n=++j;n<a&&(o=i.charCodeAt(n),o>=48&&o<=57);n++);n==j&&V(),j=n}if(o=i.charCodeAt(j),101==o||69==o){for(o=i.charCodeAt(++j),43!=o&&45!=o||j++,n=j;n<a&&(o=i.charCodeAt(n),o>=48&&o<=57);n++);n==j&&V(),j=n}return+i.slice(e,j)}if(r&&V(),"true"==i.slice(j,j+4))return j+=4,!0;if("false"==i.slice(j,j+5))return j+=5,!1;if("null"==i.slice(j,j+4))return j+=4,null;V()}return"$"},q=function(t){var e,n;if("$"==t&&V(),"string"==typeof t){if("@"==(P?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];t=F(),"]"!=t;n||(n=!0))n&&(","==t?(t=F(),"]"==t&&V()):V()),","==t&&V(),e.push(q(t));return e}if("{"==t){for(e={};t=F(),"}"!=t;n||(n=!0))n&&(","==t?(t=F(),"}"==t&&V()):V()),","!=t&&"string"==typeof t&&"@"==(P?t.charAt(0):t[0])&&":"==F()||V(),e[t.slice(1)]=q(F());return e}V()}return t},H=function(t,e,n){var r=W(t,e,n);r===y?delete t[e]:t[e]=r},W=function(t,e,n){var r,o=t[e];if("object"==typeof o&&o)if(g.call(o)==C)for(r=o.length;r--;)H(o,r,n);else m(o,function(t){H(o,t,n)});return n.call(t,e,o)};e.parse=function(t,e){var n,r;return j=0,L=""+t,n=q(F()),"$"!=F()&&V(),j=L=null,e&&g.call(e)==b?W((r={},r[""]=n,r),"",e):n}}}return e.runInContext=i,e}var a=n(273),s={function:!0,object:!0},u=s[typeof e]&&e&&!e.nodeType&&e,l=s[typeof window]&&window||this,c=u&&s[typeof t]&&t&&!t.nodeType&&"object"==typeof o&&o;if(!c||c.global!==c&&c.window!==c&&c.self!==c||(l=c),u&&!a)i(l,u);else{var f=l.JSON,p=l.JSON3,h=!1,d=i(l,l.JSON3={noConflict:function(){return h||(h=!0,l.JSON=f,l.JSON3=p,f=p=null),d}});l.JSON={parse:d.parse,stringify:d.stringify}}a&&(r=function(){return d}.call(e,n,e,t),!(void 0!==r&&(t.exports=r)))}).call(this)}).call(e,n(119)(t),function(){return this}())},function(t,e){(function(e){var n=/^[\],:{}\s]*$/,r=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,o=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,i=/(?:^|:|,)(?:\s*\[)+/g,a=/^\s+/,s=/\s+$/;t.exports=function(t){return"string"==typeof t&&t?(t=t.replace(a,"").replace(s,""),e.JSON&&JSON.parse?JSON.parse(t):n.test(t.replace(r,"@").replace(o,"]").replace(i,""))?new Function("return "+t)():void 0):null}}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){var e=new o(o._61);return e._81=1,e._65=t,e}var o=n(88);t.exports=o;var i=r(!0),a=r(!1),s=r(null),u=r(void 0),l=r(0),c=r("");o.resolve=function(t){if(t instanceof o)return t;if(null===t)return s;if(void 0===t)return u;if(t===!0)return i;if(t===!1)return a;if(0===t)return l;if(""===t)return c;if("object"==typeof t||"function"==typeof t)try{var e=t.then;if("function"==typeof e)return new o(e.bind(t))}catch(t){return new o(function(e,n){n(t)})}return r(t)},o.all=function(t){var e=Array.prototype.slice.call(t);return new o(function(t,n){function r(a,s){if(s&&("object"==typeof s||"function"==typeof s)){if(s instanceof o&&s.then===o.prototype.then){for(;3===s._81;)s=s._65;return 1===s._81?r(a,s._65):(2===s._81&&n(s._65),void s.then(function(t){r(a,t)},n))}var u=s.then;if("function"==typeof u){var l=new o(u.bind(s));return void l.then(function(t){r(a,t)},n)}}e[a]=s,0===--i&&t(e)}if(0===e.length)return t([]);for(var i=e.length,a=0;a<e.length;a++)r(a,e[a])})},o.reject=function(t){return new o(function(e,n){n(t)})},o.race=function(t){return new o(function(e,n){t.forEach(function(t){o.resolve(t).then(e,n)})})},o.prototype.catch=function(t){return this.then(null,t)}},function(t,e,n){"use strict";function r(){l=!1,s._10=null,s._97=null}function o(t){function e(e){(t.allRejections||a(f[e].error,t.whitelist||u))&&(f[e].displayId=c++,t.onUnhandled?(f[e].logged=!0,t.onUnhandled(f[e].displayId,f[e].error)):(f[e].logged=!0,i(f[e].displayId,f[e].error)))}function n(e){f[e].logged&&(t.onHandled?t.onHandled(f[e].displayId,f[e].error):f[e].onUnhandled||(console.warn("Promise Rejection Handled (id: "+f[e].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+f[e].displayId+"."))); }t=t||{},l&&r(),l=!0;var o=0,c=0,f={};s._10=function(t){2===t._81&&f[t._72]&&(f[t._72].logged?n(t._72):clearTimeout(f[t._72].timeout),delete f[t._72])},s._97=function(t,n){0===t._45&&(t._72=o++,f[t._72]={displayId:null,error:n,timeout:setTimeout(e.bind(null,t._72),a(n,u)?100:2e3),logged:!1})}}function i(t,e){console.warn("Possible Unhandled Promise Rejection (id: "+t+"):");var n=(e&&(e.stack||e))+"";n.split("\n").forEach(function(t){console.warn(" "+t)})}function a(t,e){return e.some(function(e){return t instanceof e})}var s=n(88),u=[ReferenceError,TypeError,RangeError],l=!1;e.disable=r,e.enable=o},function(t,e,n){t.exports=n(262)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(6),l=r(u),c=n(185),f=r(c),p=n(40),h=n(23),d=function(t){function e(t){o(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.registerHandlers=function(){document.addEventListener("mousedown",n.handleOutsideClick),document.addEventListener("ontouchstart",n.handleOutsideClick),document.addEventListener("scroll",n.handleHide),document.addEventListener("contextmenu",n.handleHide),window.addEventListener("resize",n.handleHide)},n.unregisterHandlers=function(){document.removeEventListener("mousedown",n.handleOutsideClick),document.removeEventListener("ontouchstart",n.handleOutsideClick),document.removeEventListener("scroll",n.handleHide),document.removeEventListener("contextmenu",n.handleHide),window.removeEventListener("resize",n.handleHide)},n.handleShow=function(t){if(t.detail.id===n.props.id){var e=t.detail.position,r=e.x,o=e.y;n.setState({isVisible:!0,x:r,y:o}),n.registerHandlers(),(0,h.callIfExists)(n.props.onShow,t)}},n.handleHide=function(t){n.unregisterHandlers(),n.setState({isVisible:!1}),(0,h.callIfExists)(n.props.onHide,t)},n.handleOutsideClick=function(t){n.menu.contains(t.target)||(0,p.hideMenu)()},n.getMenuPosition=function(t,e){var r=document.documentElement,o=r.scrollTop,i=r.scrollLeft,a=window,s=a.innerWidth,u=a.innerHeight,l=n.menu.getBoundingClientRect(),c={top:e+i,left:t+o};return e+l.height>u&&(c.top-=l.height),t+l.width>s&&(c.left-=l.width),c.top<0&&(c.top=l.height<u?(u-l.height)/2:0),c.left<0&&(c.left=l.width<s?(s-l.width)/2:0),c},n.menuRef=function(t){n.menu=t},n.state={x:0,y:0,isVisible:!1},n}return a(e,t),s(e,[{key:"componentDidMount",value:function(){this.listenId=f.default.register(this.handleShow,this.handleHide)}},{key:"componentDidUpdate",value:function(){var t=this;this.state.isVisible?!function(){var e=window.requestAnimationFrame||setTimeout;e(function(){var n=t.state,r=n.x,o=n.y,i=t.getMenuPosition(r,o),a=i.top,s=i.left;e(function(){t.menu.style.top=a+"px",t.menu.style.left=s+"px",t.menu.style.opacity=1,t.menu.style.pointerEvents="auto",t.menu.classList.add(h.cssClasses.menuVisible)})})}():(this.menu.style.opacity=0,this.menu.style.pointerEvents="none",this.menu.classList.remove(h.cssClasses.menuVisible))}},{key:"componentWillUnmount",value:function(){this.listenId&&f.default.unregister(this.listenId),this.unregisterHandlers()}},{key:"render",value:function(){var t=this.props.children,e=this.state,n=e.top,r=e.left,o={position:"fixed",top:n,left:r,opacity:0,pointerEvents:"none"};return l.default.createElement("nav",{ref:this.menuRef,style:o,className:h.cssClasses.menu,onContextMenu:this.handleHide},t)}}]),e}(u.Component);d.propTypes={id:u.PropTypes.string.isRequired,onHide:u.PropTypes.func,onShow:u.PropTypes.func},e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(6),l=r(u),c=n(49),f=r(c),p=n(4),h=r(p),d=n(40),m=n(23),y=function(t){function e(){var t,n,r,a;o(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=i(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),r.handleMouseDown=function(t){r.props.holdToDisplay>=0&&0===t.button&&(t.persist(),r.mouseDownTimeoutId=setTimeout(function(){return r.handleContextClick(t)},r.props.holdToDisplay))},r.handleMouseUp=function(t){0===t.button&&clearTimeout(r.mouseDownTimeoutId)},r.handleTouchstart=function(t){r.props.holdToDisplay>=0&&(t.persist(),r.touchstartTimeoutId=setTimeout(function(){return r.handleContextClick(t)},r.props.holdToDisplay))},r.handleTouchEnd=function(t){t.preventDefault(),clearTimeout(r.touchstartTimeoutId)},r.handleContextClick=function(t){t.preventDefault(),t.stopPropagation();var e=t.clientX||t.touches&&t.touches[0].pageX,n=t.clientY||t.touches&&t.touches[0].pageY;(0,d.hideMenu)(),(0,d.showMenu)({position:{x:e,y:n},target:r.elem,id:r.props.id,data:(0,m.callIfExists)(r.props.collect,r.props)})},r.elemRef=function(t){r.elem=t},a=n,i(r,a)}return a(e,t),s(e,[{key:"render",value:function(){var t=this.props,e=t.renderTag,n=t.attributes,r=t.children,o=(0,h.default)({},n,{className:(0,f.default)(m.cssClasses.menuWrapper,n.className),onContextMenu:this.handleContextClick,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onTouchStart:this.handleTouchstart,onTouchEnd:this.handleTouchEnd,onMouseOut:this.handleMouseUp,ref:this.elemRef});return l.default.createElement(e,o,r)}}]),e}(u.Component);y.propTypes={id:u.PropTypes.string.isRequired,attributes:u.PropTypes.object,collect:u.PropTypes.func,holdToDisplay:u.PropTypes.number,renderTag:u.PropTypes.node},y.defaultProps={attributes:{},holdToDisplay:1e3,renderTag:"div"},e.default=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=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},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(6),f=r(c),p=n(49),h=r(p),d=n(4),m=r(d),y=n(40),v=n(23),g=function(t){function e(){var t,n,r,o;i(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),r.handleClick=function(t){t.preventDefault(),r.props.disabled||((0,v.callIfExists)(r.props.onClick,t,(0,m.default)({},r.props.data,v.store.data),v.store.target),r.props.preventClose||(0,y.hideMenu)())},o=n,a(r,o)}return s(e,t),l(e,[{key:"render",value:function(){var t=this.props,e=t.disabled,n=t.children,r=t.attributes,i=(0,h.default)(v.cssClasses.menuItem,r&&r.className,o({},v.cssClasses.menuItemDisabled,e));return f.default.createElement("div",u({},r,{className:i,onTouchEnd:this.handleClick,onClick:this.handleClick}),n)}}]),e}(c.Component);g.propTypes={attributes:c.PropTypes.object,data:c.PropTypes.object,disabled:c.PropTypes.bool,preventClose:c.PropTypes.bool,onClick:c.PropTypes.func},g.defaultProps={disabled:!1,data:{},attributes:{}},e.default=g},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(6),c=r(l),f=n(49),p=r(f),h=n(23),d=function(t){function e(t){i(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.handleClick=function(t){t.preventDefault()},n.handleMouseEnter=function(){n.closetimer&&clearTimeout(n.closetimer),n.props.disabled||n.state.visible||(n.opentimer=setTimeout(function(){return n.setState({visible:!0})},n.props.hoverDelay))},n.handleMouseLeave=function(){n.opentimer&&clearTimeout(n.opentimer),n.state.visible&&(n.closetimer=setTimeout(function(){return n.setState({visible:!1})},n.props.hoverDelay))},n.getMenuPosition=function(){var t=window,e=t.innerWidth,r=t.innerHeight,o=n.subMenu.getBoundingClientRect(),i={};return o.bottom>r?i.bottom=0:i.top=0,o.right<e?i.left="100%":i.right="100%",i},n.getRTLMenuPosition=function(){var t=window,e=t.innerHeight,r=n.subMenu.getBoundingClientRect(),o={};return r.bottom>e?o.bottom=0:o.top=0,r.left<0?o.left="100%":o.right="100%",o},n.menuRef=function(t){n.menu=t},n.subMenuRef=function(t){n.subMenu=t},n.state={visible:!1},n}return s(e,t),u(e,[{key:"shouldComponentUpdate",value:function(t,e){return this.state.isVisible!==e.visible}},{key:"componentDidUpdate",value:function(){var t=this;if(this.state.visible){var e=window.requestAnimationFrame||setTimeout;e(function(){var e=t.props.rtl?t.getRTLMenuPosition():t.getMenuPosition();t.subMenu.style.removeProperty("top"),t.subMenu.style.removeProperty("bottom"),t.subMenu.style.removeProperty("left"),t.subMenu.style.removeProperty("right"),(0,h.hasOwnProp)(e,"top")&&(t.subMenu.style.top=e.top),(0,h.hasOwnProp)(e,"left")&&(t.subMenu.style.left=e.left),(0,h.hasOwnProp)(e,"bottom")&&(t.subMenu.style.bottom=e.bottom),(0,h.hasOwnProp)(e,"right")&&(t.subMenu.style.right=e.right),t.subMenu.classList.add(h.cssClasses.menuVisible)})}else this.subMenu.classList.remove(h.cssClasses.menuVisible),this.subMenu.style.removeProperty("bottom"),this.subMenu.style.removeProperty("right"),this.subMenu.style.top=0,this.subMenu.style.left="100%"}},{key:"componentWillUnmount",value:function(){this.opentimer&&clearTimeout(this.opentimer),this.closetimer&&clearTimeout(this.closetimer)}},{key:"render",value:function(){var t,e=this.props,n=e.children,r=e.disabled,i=e.title,a=this.state.visible,s={ref:this.menuRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,className:(0,p.default)(h.cssClasses.menuItem,h.cssClasses.subMenu),style:{position:"relative"}},u={className:(0,p.default)(h.cssClasses.menuItem,(t={},o(t,h.cssClasses.menuItemDisabled,r),o(t,h.cssClasses.menuItemActive,a),t)),onClick:this.handleClick},l={ref:this.subMenuRef,style:{position:"absolute",top:0,left:"100%"},className:h.cssClasses.menu};return c.default.createElement("nav",s,c.default.createElement("div",u,i),c.default.createElement("nav",l,n))}}]),e}(l.Component);d.propTypes={title:l.PropTypes.node.isRequired,disabled:l.PropTypes.bool,hoverDelay:l.PropTypes.number,rtl:l.PropTypes.bool},d.defaultProps={disabled:!1,hoverDelay:500},e.default=d},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=n(40),i=n(23),a=function t(){var e=this;r(this,t),this.handleShowEvent=function(t){for(var n in e.callbacks)(0,i.hasOwnProp)(e.callbacks,n)&&e.callbacks[n].show(t)},this.handleHideEvent=function(t){for(var n in e.callbacks)(0,i.hasOwnProp)(e.callbacks,n)&&e.callbacks[n].hide(t)},this.register=function(t,n){var r=(0,i.uniqueId)();return e.callbacks[r]={show:t,hide:n},r},this.unregister=function(t){t&&e.callbacks[t]&&delete e.callbacks[t]},this.callbacks={},i.canUseDOM&&(window.addEventListener(o.MENU_SHOW,this.handleShowEvent),window.addEventListener(o.MENU_HIDE,this.handleHideEvent))};e.default=new a},function(t,e,n){"use strict";t.exports=n(200)},function(t,e){"use strict";var n={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};t.exports=n},function(t,e,n){"use strict";var r=n(5),o=n(81),i={focusDOMComponent:function(){o(r.getNodeFromInstance(this))}};t.exports=i},function(t,e,n){"use strict";function r(){var t=window.opera;return"object"==typeof t&&"function"==typeof t.version&&parseInt(t.version(),10)<=12}function o(t){return(t.ctrlKey||t.altKey||t.metaKey)&&!(t.ctrlKey&&t.altKey)}function i(t){switch(t){case"topCompositionStart":return P.compositionStart;case"topCompositionEnd":return P.compositionEnd;case"topCompositionUpdate":return P.compositionUpdate}}function a(t,e){return"topKeyDown"===t&&e.keyCode===_}function s(t,e){switch(t){case"topKeyUp":return g.indexOf(e.keyCode)!==-1;case"topKeyDown":return e.keyCode!==_;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function u(t){var e=t.detail;return"object"==typeof e&&"data"in e?e.data:null}function l(t,e,n,r){var o,l;if(b?o=i(t):S?s(t,n)&&(o=P.compositionEnd):a(t,n)&&(o=P.compositionStart),!o)return null;E&&(S||o!==P.compositionStart?o===P.compositionEnd&&S&&(l=S.getData()):S=m.getPooled(r));var c=y.getPooled(o,e,n,r);if(l)c.data=l;else{var f=u(n);null!==f&&(c.data=f)}return h.accumulateTwoPhaseDispatches(c),c}function c(t,e){switch(t){case"topCompositionEnd":return u(e);case"topKeyPress":var n=e.which;return n!==C?null:(x=!0,T);case"topTextInput":var r=e.data;return r===T&&x?null:r;default:return null}}function f(t,e){if(S){if("topCompositionEnd"===t||!b&&s(t,e)){var n=S.getData();return m.release(S),S=null,n}return null}switch(t){case"topPaste":return null;case"topKeyPress":return e.which&&!o(e)?String.fromCharCode(e.which):null;case"topCompositionEnd":return E?null:e.data;default:return null}}function p(t,e,n,r){var o;if(o=w?c(t,n):f(t,n),!o)return null;var i=v.getPooled(P.beforeInput,e,n,r);return i.data=o,h.accumulateTwoPhaseDispatches(i),i}var h=n(32),d=n(7),m=n(195),y=n(232),v=n(235),g=[9,13,27,32],_=229,b=d.canUseDOM&&"CompositionEvent"in window,k=null;d.canUseDOM&&"documentMode"in document&&(k=document.documentMode);var w=d.canUseDOM&&"TextEvent"in window&&!k&&!r(),E=d.canUseDOM&&(!b||k&&k>8&&k<=11),C=32,T=String.fromCharCode(C),P={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},x=!1,S=null,A={eventTypes:P,extractEvents:function(t,e,n,r){return[l(t,e,n,r),p(t,e,n,r)]}};t.exports=A},function(t,e,n){"use strict";var r=n(89),o=n(7),i=(n(10),n(163),n(241)),a=n(170),s=n(173),u=(n(2),s(function(t){return a(t)})),l=!1,c="cssFloat";if(o.canUseDOM){var f=document.createElement("div").style;try{f.font=""}catch(t){l=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var p={createMarkupForStyles:function(t,e){var n="";for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];null!=o&&(n+=u(r)+":",n+=i(r,o,e)+";")}return n||null},setValueForStyles:function(t,e,n){var o=t.style;for(var a in e)if(e.hasOwnProperty(a)){var s=i(a,e[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),s)o[a]=s;else{var u=l&&r.shorthandPropertyExpansions[a];if(u)for(var f in u)o[f]="";else o[a]=""}}}};t.exports=p},function(t,e,n){"use strict";function r(t){var e=t.nodeName&&t.nodeName.toLowerCase();return"select"===e||"input"===e&&"file"===t.type}function o(t){var e=E.getPooled(x.change,A,t,C(t));_.accumulateTwoPhaseDispatches(e),w.batchedUpdates(i,e)}function i(t){g.enqueueEvents(t),g.processEventQueue(!1)}function a(t,e){S=t,A=e,S.attachEvent("onchange",o)}function s(){S&&(S.detachEvent("onchange",o),S=null,A=null)}function u(t,e){if("topChange"===t)return e}function l(t,e,n){"topFocus"===t?(s(),a(e,n)):"topBlur"===t&&s()}function c(t,e){S=t,A=e,O=t.value,I=Object.getOwnPropertyDescriptor(t.constructor.prototype,"value"),Object.defineProperty(S,"value",R),S.attachEvent?S.attachEvent("onpropertychange",p):S.addEventListener("propertychange",p,!1)}function f(){S&&(delete S.value,S.detachEvent?S.detachEvent("onpropertychange",p):S.removeEventListener("propertychange",p,!1),S=null,A=null,O=null,I=null)}function p(t){if("value"===t.propertyName){var e=t.srcElement.value;e!==O&&(O=e,o(t))}}function h(t,e){if("topInput"===t)return e}function d(t,e,n){"topFocus"===t?(f(),c(e,n)):"topBlur"===t&&f()}function m(t,e){if(("topSelectionChange"===t||"topKeyUp"===t||"topKeyDown"===t)&&S&&S.value!==O)return O=S.value,A}function y(t){return t.nodeName&&"input"===t.nodeName.toLowerCase()&&("checkbox"===t.type||"radio"===t.type)}function v(t,e){if("topClick"===t)return e}var g=n(31),_=n(32),b=n(7),k=n(5),w=n(11),E=n(12),C=n(67),T=n(68),P=n(106),x={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},S=null,A=null,O=null,I=null,M=!1;b.canUseDOM&&(M=T("change")&&(!document.documentMode||document.documentMode>8));var N=!1;b.canUseDOM&&(N=T("input")&&(!document.documentMode||document.documentMode>11));var R={get:function(){return I.get.call(this)},set:function(t){O=""+t,I.set.call(this,t)}},D={eventTypes:x,extractEvents:function(t,e,n,o){var i,a,s=e?k.getNodeFromInstance(e):window;if(r(s)?M?i=u:a=l:P(s)?N?i=h:(i=m,a=d):y(s)&&(i=v),i){var c=i(t,e);if(c){var f=E.getPooled(x.change,c,n,o);return f.type="change",_.accumulateTwoPhaseDispatches(f),f}}a&&a(t,s,e)}};t.exports=D},function(t,e,n){"use strict";var r=n(3),o=n(24),i=n(7),a=n(166),s=n(9),u=(n(1),{dangerouslyReplaceNodeWithMarkup:function(t,e){if(i.canUseDOM?void 0:r("56"),e?void 0:r("57"),"HTML"===t.nodeName?r("58"):void 0,"string"==typeof e){var n=a(e,s)[0];t.parentNode.replaceChild(n,t)}else o.replaceChildWithTree(t,e)}});t.exports=u},function(t,e){"use strict";var n=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];t.exports=n},function(t,e,n){"use strict";var r=n(32),o=n(5),i=n(42),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:a,extractEvents:function(t,e,n,s){if("topMouseOver"===t&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==t&&"topMouseOver"!==t)return null;var u;if(s.window===s)u=s;else{var l=s.ownerDocument;u=l?l.defaultView||l.parentWindow:window}var c,f;if("topMouseOut"===t){c=e;var p=n.relatedTarget||n.toElement;f=p?o.getClosestInstanceFromNode(p):null}else c=null,f=e;if(c===f)return null;var h=null==c?u:o.getNodeFromInstance(c),d=null==f?u:o.getNodeFromInstance(f),m=i.getPooled(a.mouseLeave,c,n,s);m.type="mouseleave",m.target=h,m.relatedTarget=d;var y=i.getPooled(a.mouseEnter,f,n,s);return y.type="mouseenter",y.target=d,y.relatedTarget=h,r.accumulateEnterLeaveDispatches(m,y,c,f),[m,y]}};t.exports=s},function(t,e,n){"use strict";function r(t){this._root=t,this._startText=this.getText(),this._fallbackText=null}var o=n(4),i=n(18),a=n(104);o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var t,e,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(t=0;t<r&&n[t]===o[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===o[i-e];e++);var s=e>1?1-e:void 0;return this._fallbackText=o.slice(t,s),this._fallbackText}}),i.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";var r=n(25),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,u=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,l={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};t.exports=l},function(t,e,n){(function(e){"use strict";function r(t,e,n,r){var o=void 0===t[n];null!=e&&o&&(t[n]=i(e,!0))}var o=n(26),i=n(105),a=(n(59),n(69)),s=n(108),u=(n(2),{instantiateChildren:function(t,e,n,o){if(null==t)return null;var i={};return s(t,r,i),i},updateChildren:function(t,e,n,r,s,u,l,c,f){if(e||t){var p,h;for(p in e)if(e.hasOwnProperty(p)){h=t&&t[p];var d=h&&h._currentElement,m=e[p];if(null!=h&&a(d,m))o.receiveComponent(h,m,s,c),e[p]=h;else{h&&(r[p]=o.getHostNode(h),o.unmountComponent(h,!1));var y=i(m,!0);e[p]=y;var v=o.mountComponent(y,s,u,l,c,f);n.push(v)}}for(p in t)!t.hasOwnProperty(p)||e&&e.hasOwnProperty(p)||(h=t[p],r[p]=o.getHostNode(h),o.unmountComponent(h,!1))}},unmountChildren:function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];o.unmountComponent(r,e)}}});t.exports=u}).call(e,n(39))},function(t,e,n){"use strict";var r=n(55),o=n(205),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};t.exports=i},function(t,e,n){"use strict";function r(t){}function o(t,e){}function i(t){return!(!t.prototype||!t.prototype.isReactComponent)}function a(t){return!(!t.prototype||!t.prototype.isPureReactComponent)}var s=n(3),u=n(4),l=n(27),c=n(61),f=n(13),p=n(62),h=n(33),d=(n(10),n(99)),m=n(26),y=n(30),v=(n(1),n(38)),g=n(69),_=(n(2),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var t=h.get(this)._currentElement.type,e=t(this.props,this.context,this.updater);return o(t,e),e};var b=1,k={construct:function(t){this._currentElement=t,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(t,e,n,u){this._context=u,this._mountOrder=b++,this._hostParent=e,this._hostContainerInfo=n;var c,f=this._currentElement.props,p=this._processContext(u),d=this._currentElement.type,m=t.getUpdateQueue(),v=i(d),g=this._constructComponent(v,f,p,m);v||null!=g&&null!=g.render?a(d)?this._compositeType=_.PureClass:this._compositeType=_.ImpureClass:(c=g,o(d,c),null===g||g===!1||l.isValidElement(g)?void 0:s("105",d.displayName||d.name||"Component"),g=new r(d),this._compositeType=_.StatelessFunctional);g.props=f,g.context=p,g.refs=y,g.updater=m,this._instance=g,h.set(g,this);var k=g.state;void 0===k&&(g.state=k=null),"object"!=typeof k||Array.isArray(k)?s("106",this.getName()||"ReactCompositeComponent"):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var w;return w=g.unstable_handleError?this.performInitialMountWithErrorHandling(c,e,n,t,u):this.performInitialMount(c,e,n,t,u),g.componentDidMount&&t.getReactMountReady().enqueue(g.componentDidMount,g),w},_constructComponent:function(t,e,n,r){return this._constructComponentWithoutOwner(t,e,n,r)},_constructComponentWithoutOwner:function(t,e,n,r){var o=this._currentElement.type;return t?new o(e,n,r):o(e,n,r)},performInitialMountWithErrorHandling:function(t,e,n,r,o){var i,a=r.checkpoint();try{i=this.performInitialMount(t,e,n,r,o)}catch(s){r.rollback(a),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(a),i=this.performInitialMount(t,e,n,r,o)}return i},performInitialMount:function(t,e,n,r,o){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===t&&(t=this._renderValidatedComponent());var s=d.getType(t);this._renderedNodeType=s;var u=this._instantiateReactComponent(t,s!==d.EMPTY);this._renderedComponent=u;var l=m.mountComponent(u,r,e,n,this._processChildContext(o),a);return l},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(t){if(this._renderedComponent){var e=this._instance;if(e.componentWillUnmount&&!e._calledComponentWillUnmount)if(e._calledComponentWillUnmount=!0,t){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,e.componentWillUnmount.bind(e))}else e.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,t),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,h.remove(e)}},_maskContext:function(t){var e=this._currentElement.type,n=e.contextTypes;if(!n)return y;var r={};for(var o in n)r[o]=t[o];return r},_processContext:function(t){var e=this._maskContext(t);return e},_processChildContext:function(t){var e,n=this._currentElement.type,r=this._instance;if(r.getChildContext&&(e=r.getChildContext()),e){"object"!=typeof n.childContextTypes?s("107",this.getName()||"ReactCompositeComponent"):void 0;for(var o in e)o in n.childContextTypes?void 0:s("108",this.getName()||"ReactCompositeComponent",o);return u({},t,e)}return t},_checkContextTypes:function(t,e,n){},receiveComponent:function(t,e,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(e,r,t,o,n)},performUpdateIfNecessary:function(t){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,t,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(t,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(t,e,n,r,o){var i=this._instance;null==i?s("136",this.getName()||"ReactCompositeComponent"):void 0;var a,u=!1;this._context===o?a=i.context:(a=this._processContext(o),u=!0);var l=e.props,c=n.props;e!==n&&(u=!0),u&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var f=this._processPendingState(c,a),p=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?p=i.shouldComponentUpdate(c,f,a):this._compositeType===_.PureClass&&(p=!v(l,c)||!v(i.state,f))),this._updateBatchNumber=null,p?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,f,a,t,o)):(this._currentElement=n,this._context=o,i.props=c,i.state=f,i.context=a)},_processPendingState:function(t,e){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null, !r)return n.state;if(o&&1===r.length)return r[0];for(var i=u({},o?r[0]:n.state),a=o?1:0;a<r.length;a++){var s=r[a];u(i,"function"==typeof s?s.call(n,i,t,e):s)}return i},_performComponentUpdate:function(t,e,n,r,o,i){var a,s,u,l=this._instance,c=Boolean(l.componentDidUpdate);c&&(a=l.props,s=l.state,u=l.context),l.componentWillUpdate&&l.componentWillUpdate(e,n,r),this._currentElement=t,this._context=i,l.props=e,l.state=n,l.context=r,this._updateRenderedComponent(o,i),c&&o.getReactMountReady().enqueue(l.componentDidUpdate.bind(l,a,s,u),l)},_updateRenderedComponent:function(t,e){var n=this._renderedComponent,r=n._currentElement,o=this._renderValidatedComponent(),i=0;if(g(r,o))m.receiveComponent(n,o,t,this._processChildContext(e));else{var a=m.getHostNode(n);m.unmountComponent(n,!1);var s=d.getType(o);this._renderedNodeType=s;var u=this._instantiateReactComponent(o,s!==d.EMPTY);this._renderedComponent=u;var l=m.mountComponent(u,t,this._hostParent,this._hostContainerInfo,this._processChildContext(e),i);this._replaceNodeWithMarkup(a,l,n)}},_replaceNodeWithMarkup:function(t,e,n){c.replaceNodeWithMarkup(t,e,n)},_renderValidatedComponentWithoutOwnerOrContext:function(){var t,e=this._instance;return t=e.render()},_renderValidatedComponent:function(){var t;if(this._compositeType!==_.StatelessFunctional){f.current=this;try{t=this._renderValidatedComponentWithoutOwnerOrContext()}finally{f.current=null}}else t=this._renderValidatedComponentWithoutOwnerOrContext();return null===t||t===!1||l.isValidElement(t)?void 0:s("109",this.getName()||"ReactCompositeComponent"),t},attachRef:function(t,e){var n=this.getPublicInstance();null==n?s("110"):void 0;var r=e.getPublicInstance(),o=n.refs===y?n.refs={}:n.refs;o[t]=r},detachRef:function(t){var e=this.getPublicInstance().refs;delete e[t]},getName:function(){var t=this._currentElement.type,e=this._instance&&this._instance.constructor;return t.displayName||e&&e.displayName||t.name||e&&e.name||null},getPublicInstance:function(){var t=this._instance;return this._compositeType===_.StatelessFunctional?null:t},_instantiateReactComponent:null};t.exports=k},function(t,e,n){"use strict";var r=n(5),o=n(213),i=n(98),a=n(26),s=n(11),u=n(226),l=n(242),c=n(103),f=n(250);n(2);o.inject();var p={findDOMNode:l,render:i.render,unmountComponentAtNode:i.unmountComponentAtNode,version:u,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:f};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(t){return t._renderedComponent&&(t=c(t)),t?r.getNodeFromInstance(t):null}},Mount:i,Reconciler:a});t.exports=p},function(t,e,n){"use strict";function r(t){if(t){var e=t._currentElement._owner||null;if(e){var n=e.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function o(t,e){e&&(Y[t._tag]&&(null!=e.children||null!=e.dangerouslySetInnerHTML?m("137",t._tag,t._currentElement._owner?" Check the render method of "+t._currentElement._owner.getName()+".":""):void 0),null!=e.dangerouslySetInnerHTML&&(null!=e.children?m("60"):void 0,"object"==typeof e.dangerouslySetInnerHTML&&q in e.dangerouslySetInnerHTML?void 0:m("61")),null!=e.style&&"object"!=typeof e.style?m("62",r(t)):void 0)}function i(t,e,n,r){if(!(r instanceof N)){var o=t._hostContainerInfo,i=o._node&&o._node.nodeType===W,s=i?o._node:o._ownerDocument;U(e,s),r.getReactMountReady().enqueue(a,{inst:t,registrationName:e,listener:n})}}function a(){var t=this;E.putListener(t.inst,t.registrationName,t.listener)}function s(){var t=this;S.postMountWrapper(t)}function u(){var t=this;I.postMountWrapper(t)}function l(){var t=this;A.postMountWrapper(t)}function c(){var t=this;t._rootNodeID?void 0:m("63");var e=L(t);switch(e?void 0:m("64"),t._tag){case"iframe":case"object":t._wrapperState.listeners=[T.trapBubbledEvent("topLoad","load",e)];break;case"video":case"audio":t._wrapperState.listeners=[];for(var n in K)K.hasOwnProperty(n)&&t._wrapperState.listeners.push(T.trapBubbledEvent(n,K[n],e));break;case"source":t._wrapperState.listeners=[T.trapBubbledEvent("topError","error",e)];break;case"img":t._wrapperState.listeners=[T.trapBubbledEvent("topError","error",e),T.trapBubbledEvent("topLoad","load",e)];break;case"form":t._wrapperState.listeners=[T.trapBubbledEvent("topReset","reset",e),T.trapBubbledEvent("topSubmit","submit",e)];break;case"input":case"select":case"textarea":t._wrapperState.listeners=[T.trapBubbledEvent("topInvalid","invalid",e)]}}function f(){O.postUpdateWrapper(this)}function p(t){Q.call(G,t)||(X.test(t)?void 0:m("65",t),G[t]=!0)}function h(t,e){return t.indexOf("-")>=0||null!=e.is}function d(t){var e=t.type;p(e),this._currentElement=t,this._tag=e.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=n(3),y=n(4),v=n(188),g=n(190),_=n(24),b=n(56),k=n(25),w=n(91),E=n(31),C=n(57),T=n(41),P=n(92),x=n(5),S=n(206),A=n(207),O=n(93),I=n(210),M=(n(10),n(219)),N=n(224),R=(n(9),n(44)),D=(n(1),n(68),n(38),n(70),n(2),P),j=E.deleteListener,L=x.getNodeFromInstance,U=T.listenTo,B=C.registrationNameModules,V={string:!0,number:!0},F="style",q="__html",H={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},W=11,K={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},$={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},z={listing:!0,pre:!0,textarea:!0},Y=y({menuitem:!0},$),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,G={},Q={}.hasOwnProperty,J=1;d.displayName="ReactDOMComponent",d.Mixin={mountComponent:function(t,e,n,r){this._rootNodeID=J++,this._domID=n._idCounter++,this._hostParent=e,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(c,this);break;case"input":S.mountWrapper(this,i,e),i=S.getHostProps(this,i),t.getReactMountReady().enqueue(c,this);break;case"option":A.mountWrapper(this,i,e),i=A.getHostProps(this,i);break;case"select":O.mountWrapper(this,i,e),i=O.getHostProps(this,i),t.getReactMountReady().enqueue(c,this);break;case"textarea":I.mountWrapper(this,i,e),i=I.getHostProps(this,i),t.getReactMountReady().enqueue(c,this)}o(this,i);var a,f;null!=e?(a=e._namespaceURI,f=e._tag):n._tag&&(a=n._namespaceURI,f=n._tag),(null==a||a===b.svg&&"foreignobject"===f)&&(a=b.html),a===b.html&&("svg"===this._tag?a=b.svg:"math"===this._tag&&(a=b.mathml)),this._namespaceURI=a;var p;if(t.useCreateElement){var h,d=n._ownerDocument;if(a===b.html)if("script"===this._tag){var m=d.createElement("div"),y=this._currentElement.type;m.innerHTML="<"+y+"></"+y+">",h=m.removeChild(m.firstChild)}else h=i.is?d.createElement(this._currentElement.type,i.is):d.createElement(this._currentElement.type);else h=d.createElementNS(a,this._currentElement.type);x.precacheNode(this,h),this._flags|=D.hasCachedChildNodes,this._hostParent||w.setAttributeForRoot(h),this._updateDOMProperties(null,i,t);var g=_(h);this._createInitialChildren(t,i,r,g),p=g}else{var k=this._createOpenTagMarkupAndPutListeners(t,i),E=this._createContentMarkup(t,i,r);p=!E&&$[this._tag]?k+"/>":k+">"+E+"</"+this._currentElement.type+">"}switch(this._tag){case"input":t.getReactMountReady().enqueue(s,this),i.autoFocus&&t.getReactMountReady().enqueue(v.focusDOMComponent,this);break;case"textarea":t.getReactMountReady().enqueue(u,this),i.autoFocus&&t.getReactMountReady().enqueue(v.focusDOMComponent,this);break;case"select":i.autoFocus&&t.getReactMountReady().enqueue(v.focusDOMComponent,this);break;case"button":i.autoFocus&&t.getReactMountReady().enqueue(v.focusDOMComponent,this);break;case"option":t.getReactMountReady().enqueue(l,this)}return p},_createOpenTagMarkupAndPutListeners:function(t,e){var n="<"+this._currentElement.type;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(null!=o)if(B.hasOwnProperty(r))o&&i(this,r,o,t);else{r===F&&(o&&(o=this._previousStyleCopy=y({},e.style)),o=g.createMarkupForStyles(o,this));var a=null;null!=this._tag&&h(this._tag,e)?H.hasOwnProperty(r)||(a=w.createMarkupForCustomAttribute(r,o)):a=w.createMarkupForProperty(r,o),a&&(n+=" "+a)}}return t.renderToStaticMarkup?n:(this._hostParent||(n+=" "+w.createMarkupForRoot()),n+=" "+w.createMarkupForID(this._domID))},_createContentMarkup:function(t,e,n){var r="",o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=V[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)r=R(i);else if(null!=a){var s=this.mountChildren(a,t,n);r=s.join("")}}return z[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(t,e,n,r){var o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&_.queueHTML(r,o.__html);else{var i=V[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)_.queueText(r,i);else if(null!=a)for(var s=this.mountChildren(a,t,n),u=0;u<s.length;u++)_.queueChild(r,s[u])}},receiveComponent:function(t,e,n){var r=this._currentElement;this._currentElement=t,this.updateComponent(e,r,t,n)},updateComponent:function(t,e,n,r){var i=e.props,a=this._currentElement.props;switch(this._tag){case"input":i=S.getHostProps(this,i),a=S.getHostProps(this,a);break;case"option":i=A.getHostProps(this,i),a=A.getHostProps(this,a);break;case"select":i=O.getHostProps(this,i),a=O.getHostProps(this,a);break;case"textarea":i=I.getHostProps(this,i),a=I.getHostProps(this,a)}switch(o(this,a),this._updateDOMProperties(i,a,t),this._updateDOMChildren(i,a,t,r),this._tag){case"input":S.updateWrapper(this);break;case"textarea":I.updateWrapper(this);break;case"select":t.getReactMountReady().enqueue(f,this)}},_updateDOMProperties:function(t,e,n){var r,o,a;for(r in t)if(!e.hasOwnProperty(r)&&t.hasOwnProperty(r)&&null!=t[r])if(r===F){var s=this._previousStyleCopy;for(o in s)s.hasOwnProperty(o)&&(a=a||{},a[o]="");this._previousStyleCopy=null}else B.hasOwnProperty(r)?t[r]&&j(this,r):h(this._tag,t)?H.hasOwnProperty(r)||w.deleteValueForAttribute(L(this),r):(k.properties[r]||k.isCustomAttribute(r))&&w.deleteValueForProperty(L(this),r);for(r in e){var u=e[r],l=r===F?this._previousStyleCopy:null!=t?t[r]:void 0;if(e.hasOwnProperty(r)&&u!==l&&(null!=u||null!=l))if(r===F)if(u?u=this._previousStyleCopy=y({},u):this._previousStyleCopy=null,l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(a=a||{},a[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(a=a||{},a[o]=u[o])}else a=u;else if(B.hasOwnProperty(r))u?i(this,r,u,n):l&&j(this,r);else if(h(this._tag,e))H.hasOwnProperty(r)||w.setValueForAttribute(L(this),r,u);else if(k.properties[r]||k.isCustomAttribute(r)){var c=L(this);null!=u?w.setValueForProperty(c,r,u):w.deleteValueForProperty(c,r)}}a&&g.setValueForStyles(L(this),a,this)},_updateDOMChildren:function(t,e,n,r){var o=V[typeof t.children]?t.children:null,i=V[typeof e.children]?e.children:null,a=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,s=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,u=null!=o?null:t.children,l=null!=i?null:e.children,c=null!=o||null!=a,f=null!=i||null!=s;null!=u&&null==l?this.updateChildren(null,n,r):c&&!f&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=s?a!==s&&this.updateMarkup(""+s):null!=l&&this.updateChildren(l,n,r)},getHostNode:function(){return L(this)},unmountComponent:function(t){switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":var e=this._wrapperState.listeners;if(e)for(var n=0;n<e.length;n++)e[n].remove();break;case"html":case"head":case"body":m("66",this._tag)}this.unmountChildren(t),x.uncacheNode(this),E.deleteAllListeners(this),this._rootNodeID=0,this._domID=0,this._wrapperState=null},getPublicInstance:function(){return L(this)}},y(d.prototype,d.Mixin,M.Mixin),t.exports=d},function(t,e,n){"use strict";function r(t,e){var n={_topLevelWrapper:t,_idCounter:1,_ownerDocument:e?e.nodeType===o?e:e.ownerDocument:null,_node:e,_tag:e?e.nodeName.toLowerCase():null,_namespaceURI:e?e.namespaceURI:null};return n}var o=(n(70),9);t.exports=r},function(t,e,n){"use strict";var r=n(4),o=n(24),i=n(5),a=function(t){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};r(a.prototype,{mountComponent:function(t,e,n,r){var a=n._idCounter++;this._domID=a,this._hostParent=e,this._hostContainerInfo=n;var s=" react-empty: "+this._domID+" ";if(t.useCreateElement){var u=n._ownerDocument,l=u.createComment(s);return i.precacheNode(this,l),o(l)}return t.renderToStaticMarkup?"":"<!--"+s+"-->"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),t.exports=a},function(t,e){"use strict";var n={useCreateElement:!0,useFiber:!1};t.exports=n},function(t,e,n){"use strict";var r=n(55),o=n(5),i={dangerouslyProcessChildrenUpdates:function(t,e){var n=o.getNodeFromInstance(t);r.processUpdates(n,e)}};t.exports=i},function(t,e,n){"use strict";function r(){this._rootNodeID&&f.updateWrapper(this)}function o(t){var e=this._currentElement.props,n=u.executeOnChange(e,t);c.asap(r,this);var o=e.name;if("radio"===e.type&&null!=o){for(var a=l.getNodeFromInstance(this),s=a;s.parentNode;)s=s.parentNode;for(var f=s.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),p=0;p<f.length;p++){var h=f[p];if(h!==a&&h.form===a.form){var d=l.getInstanceFromNode(h);d?void 0:i("90"),c.asap(r,d)}}}return n}var i=n(3),a=n(4),s=n(91),u=n(60),l=n(5),c=n(11),f=(n(1),n(2),{getHostProps:function(t,e){var n=u.getValue(e),r=u.getChecked(e),o=a({type:void 0,step:void 0,min:void 0,max:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:t._wrapperState.initialValue,checked:null!=r?r:t._wrapperState.initialChecked,onChange:t._wrapperState.onChange});return o},mountWrapper:function(t,e){var n=e.defaultValue;t._wrapperState={initialChecked:null!=e.checked?e.checked:e.defaultChecked,initialValue:null!=e.value?e.value:n,listeners:null,onChange:o.bind(t)}},updateWrapper:function(t){var e=t._currentElement.props,n=e.checked;null!=n&&s.setValueForProperty(l.getNodeFromInstance(t),"checked",n||!1);var r=l.getNodeFromInstance(t),o=u.getValue(e);if(null!=o){var i=""+o;i!==r.value&&(r.value=i)}else null==e.value&&null!=e.defaultValue&&(r.defaultValue=""+e.defaultValue),null==e.checked&&null!=e.defaultChecked&&(r.defaultChecked=!!e.defaultChecked)},postMountWrapper:function(t){var e=t._currentElement.props,n=l.getNodeFromInstance(t);switch(e.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":n.value="",n.value=n.defaultValue;break;default:n.value=n.value}var r=n.name;""!==r&&(n.name=""),n.defaultChecked=!n.defaultChecked,n.defaultChecked=!n.defaultChecked,""!==r&&(n.name=r)}});t.exports=f},function(t,e,n){"use strict";function r(t){var e="";return i.Children.forEach(t,function(t){null!=t&&("string"==typeof t||"number"==typeof t?e+=t:u||(u=!0))}),e}var o=n(4),i=n(27),a=n(5),s=n(93),u=(n(2),!1),l={mountWrapper:function(t,e,n){var o=null;if(null!=n){var i=n;"optgroup"===i._tag&&(i=i._hostParent),null!=i&&"select"===i._tag&&(o=s.getSelectValueContext(i))}var a=null;if(null!=o){var u;if(u=null!=e.value?e.value+"":r(e.children),a=!1,Array.isArray(o)){for(var l=0;l<o.length;l++)if(""+o[l]===u){a=!0;break}}else a=""+o===u}t._wrapperState={selected:a}},postMountWrapper:function(t){var e=t._currentElement.props;if(null!=e.value){var n=a.getNodeFromInstance(t);n.setAttribute("value",e.value)}},getHostProps:function(t,e){var n=o({selected:void 0,children:void 0},e);null!=t._wrapperState.selected&&(n.selected=t._wrapperState.selected);var i=r(e.children);return i&&(n.children=i),n}};t.exports=l},function(t,e,n){"use strict";function r(t,e,n,r){return t===n&&e===r}function o(t){var e=document.selection,n=e.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(t),o.setEndPoint("EndToStart",n);var i=o.text.length,a=i+r;return{start:i,end:a}}function i(t){var e=window.getSelection&&window.getSelection();if(!e||0===e.rangeCount)return null;var n=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,s=e.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(t){return null}var u=r(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset),l=u?0:s.toString().length,c=s.cloneRange();c.selectNodeContents(t),c.setEnd(s.startContainer,s.startOffset);var f=r(c.startContainer,c.startOffset,c.endContainer,c.endOffset),p=f?0:c.toString().length,h=p+l,d=document.createRange();d.setStart(n,o),d.setEnd(i,a);var m=d.collapsed;return{start:m?h:p,end:m?p:h}}function a(t,e){var n,r,o=document.selection.createRange().duplicate();void 0===e.end?(n=e.start,r=n):e.start>e.end?(n=e.end,r=e.start):(n=e.start,r=e.end),o.moveToElementText(t),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(t,e){if(window.getSelection){var n=window.getSelection(),r=t[c()].length,o=Math.min(e.start,r),i=void 0===e.end?o:Math.min(e.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=l(t,o),u=l(t,i);if(s&&u){var f=document.createRange();f.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(f),n.extend(u.node,u.offset)):(f.setEnd(u.node,u.offset),n.addRange(f))}}}var u=n(7),l=n(247),c=n(104),f=u.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:f?o:i,setOffsets:f?a:s};t.exports=p},function(t,e,n){"use strict";var r=n(3),o=n(4),i=n(55),a=n(24),s=n(5),u=n(44),l=(n(1),n(70),function(t){this._currentElement=t,this._stringText=""+t,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(l.prototype,{mountComponent:function(t,e,n,r){var o=n._idCounter++,i=" react-text: "+o+" ",l=" /react-text ";if(this._domID=o,this._hostParent=e,t.useCreateElement){var c=n._ownerDocument,f=c.createComment(i),p=c.createComment(l),h=a(c.createDocumentFragment());return a.queueChild(h,a(f)),this._stringText&&a.queueChild(h,a(c.createTextNode(this._stringText))),a.queueChild(h,a(p)),s.precacheNode(this,f),this._closingComment=p,h}var d=u(this._stringText);return t.renderToStaticMarkup?d:"<!--"+i+"-->"+d+"<!--"+l+"-->"},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var t=this._commentNodes;if(t)return t;if(!this._closingComment)for(var e=s.getNodeFromInstance(this),n=e.nextSibling;;){if(null==n?r("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return t=[this._hostNode,this._closingComment],this._commentNodes=t,t},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),t.exports=l},function(t,e,n){"use strict";function r(){this._rootNodeID&&c.updateWrapper(this)}function o(t){var e=this._currentElement.props,n=s.executeOnChange(e,t);return l.asap(r,this),n}var i=n(3),a=n(4),s=n(60),u=n(5),l=n(11),c=(n(1),n(2),{getHostProps:function(t,e){null!=e.dangerouslySetInnerHTML?i("91"):void 0;var n=a({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue,onChange:t._wrapperState.onChange});return n},mountWrapper:function(t,e){var n=s.getValue(e),r=n;if(null==n){var a=e.defaultValue,u=e.children;null!=u&&(null!=a?i("92"):void 0,Array.isArray(u)&&(u.length<=1?void 0:i("93"),u=u[0]),a=""+u),null==a&&(a=""),r=a}t._wrapperState={initialValue:""+r,listeners:null,onChange:o.bind(t)}},updateWrapper:function(t){var e=t._currentElement.props,n=u.getNodeFromInstance(t),r=s.getValue(e);if(null!=r){var o=""+r;o!==n.value&&(n.value=o),null==e.defaultValue&&(n.defaultValue=o)}null!=e.defaultValue&&(n.defaultValue=e.defaultValue)},postMountWrapper:function(t){var e=u.getNodeFromInstance(t);e.value=e.textContent}});t.exports=c},function(t,e,n){"use strict";function r(t,e){"_hostNode"in t?void 0:u("33"),"_hostNode"in e?void 0:u("33");for(var n=0,r=t;r;r=r._hostParent)n++;for(var o=0,i=e;i;i=i._hostParent)o++;for(;n-o>0;)t=t._hostParent,n--;for(;o-n>0;)e=e._hostParent,o--;for(var a=n;a--;){if(t===e)return t;t=t._hostParent,e=e._hostParent}return null}function o(t,e){"_hostNode"in t?void 0:u("35"),"_hostNode"in e?void 0:u("35");for(;e;){if(e===t)return!0;e=e._hostParent}return!1}function i(t){return"_hostNode"in t?void 0:u("36"),t._hostParent}function a(t,e,n){for(var r=[];t;)r.push(t),t=t._hostParent;var o;for(o=r.length;o-- >0;)e(r[o],"captured",n);for(o=0;o<r.length;o++)e(r[o],"bubbled",n)}function s(t,e,n,o,i){for(var a=t&&e?r(t,e):null,s=[];t&&t!==a;)s.push(t),t=t._hostParent;for(var u=[];e&&e!==a;)u.push(e),e=e._hostParent;var l;for(l=0;l<s.length;l++)n(s[l],"bubbled",o);for(l=u.length;l-- >0;)n(u[l],"captured",i)}var u=n(3);n(1);t.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:s}},function(t,e,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(4),i=n(11),a=n(43),s=n(9),u={initialize:s,close:function(){p.isBatchingUpdates=!1}},l={initialize:s,close:i.flushBatchedUpdates.bind(i)},c=[l,u];o(r.prototype,a,{getTransactionWrappers:function(){return c}});var f=new r,p={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,r,o,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?t(e,n,r,o,i):f.perform(t,null,e,n,r,o,i)}};t.exports=p},function(t,e,n){"use strict";function r(){E||(E=!0,g.EventEmitter.injectReactEventListener(v),g.EventPluginHub.injectEventPluginOrder(s),g.EventPluginUtils.injectComponentTree(p),g.EventPluginUtils.injectTreeTraversal(d),g.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:w,EnterLeaveEventPlugin:u,ChangeEventPlugin:a,SelectEventPlugin:k,BeforeInputEventPlugin:i}),g.HostComponent.injectGenericComponentClass(f),g.HostComponent.injectTextComponentClass(m),g.DOMProperty.injectDOMPropertyConfig(o),g.DOMProperty.injectDOMPropertyConfig(l),g.DOMProperty.injectDOMPropertyConfig(b),g.EmptyComponent.injectEmptyComponentFactory(function(t){return new h(t)}),g.Updates.injectReconcileTransaction(_),g.Updates.injectBatchingStrategy(y),g.Component.injectEnvironment(c))}var o=n(187),i=n(189),a=n(191),s=n(193),u=n(194),l=n(196),c=n(198),f=n(201),p=n(5),h=n(203),d=n(211),m=n(209),y=n(212),v=n(216),g=n(217),_=n(222),b=n(227),k=n(228),w=n(229),E=!1;t.exports={inject:r}},110,function(t,e,n){"use strict";function r(t){o.enqueueEvents(t),o.processEventQueue(!1)}var o=n(31),i={handleTopLevel:function(t,e,n,i){var a=o.extractEvents(t,e,n,i);r(a)}};t.exports=i},function(t,e,n){"use strict";function r(t){for(;t._hostParent;)t=t._hostParent;var e=f.getNodeFromInstance(t),n=e.parentNode;return f.getClosestInstanceFromNode(n)}function o(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function i(t){var e=h(t.nativeEvent),n=f.getClosestInstanceFromNode(e),o=n;do t.ancestors.push(o),o=o&&r(o);while(o);for(var i=0;i<t.ancestors.length;i++)n=t.ancestors[i],m._handleTopLevel(t.topLevelType,n,t.nativeEvent,h(t.nativeEvent))}function a(t){var e=d(window);t(e)}var s=n(4),u=n(80),l=n(7),c=n(18),f=n(5),p=n(11),h=n(67),d=n(168);s(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),c.addPoolingTo(o,c.twoArgumentPooler);var m={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:l.canUseDOM?window:null,setHandleTopLevel:function(t){m._handleTopLevel=t},setEnabled:function(t){m._enabled=!!t},isEnabled:function(){return m._enabled},trapBubbledEvent:function(t,e,n){return n?u.listen(n,e,m.dispatchEvent.bind(null,t)):null},trapCapturedEvent:function(t,e,n){return n?u.capture(n,e,m.dispatchEvent.bind(null,t)):null},monitorScrollValue:function(t){var e=a.bind(null,t);u.listen(window,"scroll",e)},dispatchEvent:function(t,e){if(m._enabled){var n=o.getPooled(t,e);try{p.batchedUpdates(i,n)}finally{o.release(n)}}}};t.exports=m},function(t,e,n){"use strict";var r=n(25),o=n(31),i=n(58),a=n(61),s=n(94),u=n(41),l=n(96),c=n(11),f={Component:a.injection,DOMProperty:r.injection,EmptyComponent:s.injection,EventPluginHub:o.injection,EventPluginUtils:i.injection,EventEmitter:u.injection,HostComponent:l.injection,Updates:c.injection};t.exports=f},function(t,e,n){"use strict";var r=n(240),o=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=r(t);return i.test(t)?t:t.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(t);return o===n}};t.exports=a},function(t,e,n){"use strict";function r(t,e,n){return{type:"INSERT_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:n,afterNode:e}}function o(t,e,n){return{type:"MOVE_EXISTING",content:null,fromIndex:t._mountIndex,fromNode:p.getHostNode(t),toIndex:n,afterNode:e}}function i(t,e){return{type:"REMOVE_NODE",content:null,fromIndex:t._mountIndex,fromNode:e,toIndex:null,afterNode:null}}function a(t){return{type:"SET_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(t){return{type:"TEXT_CONTENT",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(t,e){return e&&(t=t||[],t.push(e)),t}function l(t,e){f.processChildrenUpdates(t,e)}var c=n(3),f=n(61),p=(n(33),n(10),n(13),n(26)),h=n(197),d=(n(9),n(243)),m=(n(1),{Mixin:{_reconcilerInstantiateChildren:function(t,e,n){return h.instantiateChildren(t,e,n)},_reconcilerUpdateChildren:function(t,e,n,r,o,i){var a,s=0;return a=d(e,s),h.updateChildren(t,a,n,r,o,this,this._hostContainerInfo,i,s),a},mountChildren:function(t,e,n){var r=this._reconcilerInstantiateChildren(t,e,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=0,l=p.mountComponent(s,e,this,this._hostContainerInfo,n,u);s._mountIndex=i++,o.push(l)}return o},updateTextContent:function(t){var e=this._renderedChildren;h.unmountChildren(e,!1);for(var n in e)e.hasOwnProperty(n)&&c("118");var r=[s(t)];l(this,r)},updateMarkup:function(t){var e=this._renderedChildren;h.unmountChildren(e,!1);for(var n in e)e.hasOwnProperty(n)&&c("118");var r=[a(t)];l(this,r)},updateChildren:function(t,e,n){this._updateChildren(t,e,n)},_updateChildren:function(t,e,n){var r=this._renderedChildren,o={},i=[],a=this._reconcilerUpdateChildren(r,t,i,o,e,n);if(a||r){var s,c=null,f=0,h=0,d=0,m=null;for(s in a)if(a.hasOwnProperty(s)){var y=r&&r[s],v=a[s];y===v?(c=u(c,this.moveChild(y,m,f,h)),h=Math.max(y._mountIndex,h),y._mountIndex=f):(y&&(h=Math.max(y._mountIndex,h)),c=u(c,this._mountChildAtIndex(v,i[d],m,f,e,n)),d++),f++,m=p.getHostNode(v)}for(s in o)o.hasOwnProperty(s)&&(c=u(c,this._unmountChild(r[s],o[s])));c&&l(this,c),this._renderedChildren=a}},unmountChildren:function(t){var e=this._renderedChildren;h.unmountChildren(e,t),this._renderedChildren=null},moveChild:function(t,e,n,r){if(t._mountIndex<r)return o(t,e,n)},createChild:function(t,e,n){return r(n,e,t._mountIndex)},removeChild:function(t,e){return i(t,e)},_mountChildAtIndex:function(t,e,n,r,o,i){return t._mountIndex=r,this.createChild(t,n,e)},_unmountChild:function(t,e){var n=this.removeChild(t,e);return t._mountIndex=null,n}}});t.exports=m},function(t,e,n){"use strict";function r(t){return!(!t||"function"!=typeof t.attachRef||"function"!=typeof t.detachRef)}var o=n(3),i=(n(1),{addComponentAsRefTo:function(t,e,n){r(n)?void 0:o("119"),n.attachRef(e,t)},removeComponentAsRefFrom:function(t,e,n){r(n)?void 0:o("120");var i=n.getPublicInstance();i&&i.refs[e]===t.getPublicInstance()&&n.detachRef(e)}});t.exports=i},function(t,e){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},function(t,e,n){"use strict";function r(t){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=i.getPooled(null),this.useCreateElement=t}var o=n(4),i=n(90),a=n(18),s=n(41),u=n(97),l=(n(10),n(43)),c=n(63),f={initialize:u.getSelectionInformation,close:u.restoreSelection},p={initialize:function(){var t=s.isEnabled();return s.setEnabled(!1),t},close:function(t){s.setEnabled(t)}},h={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},d=[f,p,h],m={getTransactionWrappers:function(){return d},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return c},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(t){this.reactMountReady.rollback(t)},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null}};o(r.prototype,l,m),a.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";function r(t,e,n){"function"==typeof t?t(e.getPublicInstance()):i.addComponentAsRefTo(e,t,n)}function o(t,e,n){"function"==typeof t?t(null):i.removeComponentAsRefFrom(e,t,n)}var i=n(220),a={};a.attachRefs=function(t,e){if(null!==e&&"object"==typeof e){var n=e.ref;null!=n&&r(n,t,e._owner)}},a.shouldUpdateRefs=function(t,e){var n=null,r=null;null!==t&&"object"==typeof t&&(n=t.ref,r=t._owner);var o=null,i=null;return null!==e&&"object"==typeof e&&(o=e.ref,i=e._owner),n!==o||"string"==typeof o&&i!==r},a.detachRefs=function(t,e){if(null!==e&&"object"==typeof e){var n=e.ref;null!=n&&o(n,t,e._owner)}},t.exports=a},function(t,e,n){"use strict";function r(t){this.reinitializeTransaction(),this.renderToStaticMarkup=t,this.useCreateElement=!1,this.updateQueue=new s(this)}var o=n(4),i=n(18),a=n(43),s=(n(10),n(225)),u=[],l={enqueue:function(){}},c={getTransactionWrappers:function(){return u},getReactMountReady:function(){return l},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}};o(r.prototype,a,c),i.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){}var i=n(63),a=(n(2),function(){function t(e){r(this,t),this.transaction=e}return t.prototype.isMounted=function(t){return!1},t.prototype.enqueueCallback=function(t,e,n){this.transaction.isInTransaction()&&i.enqueueCallback(t,e,n)},t.prototype.enqueueForceUpdate=function(t){this.transaction.isInTransaction()?i.enqueueForceUpdate(t):o(t,"forceUpdate")},t.prototype.enqueueReplaceState=function(t,e){this.transaction.isInTransaction()?i.enqueueReplaceState(t,e):o(t,"replaceState")},t.prototype.enqueueSetState=function(t,e){this.transaction.isInTransaction()?i.enqueueSetState(t,e):o(t,"setState")},t}());t.exports=a},function(t,e){"use strict";t.exports="15.4.1"},function(t,e){"use strict";var n={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},r={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule", clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},o={Properties:{},DOMAttributeNamespaces:{xlinkActuate:n.xlink,xlinkArcrole:n.xlink,xlinkHref:n.xlink,xlinkRole:n.xlink,xlinkShow:n.xlink,xlinkTitle:n.xlink,xlinkType:n.xlink,xmlBase:n.xml,xmlLang:n.xml,xmlSpace:n.xml},DOMAttributeNames:{}};Object.keys(r).forEach(function(t){o.Properties[t]=0,r[t]&&(o.DOMAttributeNames[t]=r[t])}),t.exports=o},function(t,e,n){"use strict";function r(t){if("selectionStart"in t&&u.hasSelectionCapabilities(t))return{start:t.selectionStart,end:t.selectionEnd};if(window.getSelection){var e=window.getSelection();return{anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(t,e){if(g||null==m||m!==c())return null;var n=r(m);if(!v||!p(v,n)){v=n;var o=l.getPooled(d.select,y,t,e);return o.type="select",o.target=m,i.accumulateTwoPhaseDispatches(o),o}return null}var i=n(32),a=n(7),s=n(5),u=n(97),l=n(12),c=n(82),f=n(106),p=n(38),h=a.canUseDOM&&"documentMode"in document&&document.documentMode<=11,d={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},m=null,y=null,v=null,g=!1,_=!1,b={eventTypes:d,extractEvents:function(t,e,n,r){if(!_)return null;var i=e?s.getNodeFromInstance(e):window;switch(t){case"topFocus":(f(i)||"true"===i.contentEditable)&&(m=i,y=e,v=null);break;case"topBlur":m=null,y=null,v=null;break;case"topMouseDown":g=!0;break;case"topContextMenu":case"topMouseUp":return g=!1,o(n,r);case"topSelectionChange":if(h)break;case"topKeyDown":case"topKeyUp":return o(n,r)}return null},didPutListener:function(t,e,n){"onSelect"===e&&(_=!0)}};t.exports=b},function(t,e,n){"use strict";function r(t){return"."+t._rootNodeID}function o(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}var i=n(3),a=n(80),s=n(32),u=n(5),l=n(230),c=n(231),f=n(12),p=n(234),h=n(236),d=n(42),m=n(233),y=n(237),v=n(238),g=n(34),_=n(239),b=n(9),k=n(65),w=(n(1),{}),E={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(t){var e=t[0].toUpperCase()+t.slice(1),n="on"+e,r="top"+e,o={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r]};w[t]=o,E[r]=o});var C={},T={eventTypes:w,extractEvents:function(t,e,n,r){var o=E[t];if(!o)return null;var a;switch(t){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":a=f;break;case"topKeyPress":if(0===k(n))return null;case"topKeyDown":case"topKeyUp":a=h;break;case"topBlur":case"topFocus":a=p;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":a=d;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":a=m;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":a=y;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":a=l;break;case"topTransitionEnd":a=v;break;case"topScroll":a=g;break;case"topWheel":a=_;break;case"topCopy":case"topCut":case"topPaste":a=c}a?void 0:i("86",t);var u=a.getPooled(o,e,n,r);return s.accumulateTwoPhaseDispatches(u),u},didPutListener:function(t,e,n){if("onClick"===e&&!o(t._tag)){var i=r(t),s=u.getNodeFromInstance(t);C[i]||(C[i]=a.listen(s,"click",b))}},willDeleteListener:function(t,e){if("onClick"===e&&!o(t._tag)){var n=r(t);C[n].remove(),delete C[n]}}};t.exports=T},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(12),i={animationName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(12),i={clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(12),i={data:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(42),i={dataTransfer:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(34),i={relatedTarget:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(12),i={data:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(34),i=n(65),a=n(244),s=n(66),u={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(t){return"keypress"===t.type?i(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?i(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}};o.augmentClass(r,u),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(34),i=n(66),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(12),i={propertyName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(42),i={deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),t.exports=r},function(t,e){"use strict";function n(t){for(var e=1,n=0,o=0,i=t.length,a=i&-4;o<a;){for(var s=Math.min(o+4096,a);o<s;o+=4)n+=(e+=t.charCodeAt(o))+(e+=t.charCodeAt(o+1))+(e+=t.charCodeAt(o+2))+(e+=t.charCodeAt(o+3));e%=r,n%=r}for(;o<i;o++)n+=e+=t.charCodeAt(o);return e%=r,n%=r,e|n<<16}var r=65521;t.exports=n},function(t,e,n){"use strict";function r(t,e,n){var r=null==e||"boolean"==typeof e||""===e;if(r)return"";var o=isNaN(e);if(o||0===e||i.hasOwnProperty(t)&&i[t])return""+e;if("string"==typeof e){e=e.trim()}return e+"px"}var o=n(89),i=(n(2),o.isUnitlessNumber);t.exports=r},function(t,e,n){"use strict";function r(t){if(null==t)return null;if(1===t.nodeType)return t;var e=a.get(t);return e?(e=s(e),e?i.getNodeFromInstance(e):null):void("function"==typeof t.render?o("44"):o("45",Object.keys(t)))}var o=n(3),i=(n(13),n(5)),a=n(33),s=n(103);n(1),n(2);t.exports=r},function(t,e,n){(function(e){"use strict";function r(t,e,n,r){if(t&&"object"==typeof t){var o=t,i=void 0===o[n];i&&null!=e&&(o[n]=e)}}function o(t,e){if(null==t)return t;var n={};return i(t,r,n),n}var i=(n(59),n(108));n(2);t.exports=o}).call(e,n(39))},function(t,e,n){"use strict";function r(t){if(t.key){var e=i[t.key]||t.key;if("Unidentified"!==e)return e}if("keypress"===t.type){var n=o(t);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===t.type||"keyup"===t.type?a[t.keyCode]||"Unidentified":""}var o=n(65),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=r},113,function(t,e){"use strict";function n(){return r++}var r=1;t.exports=n},function(t,e){"use strict";function n(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function r(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}function o(t,e){for(var o=n(t),i=0,a=0;o;){if(3===o.nodeType){if(a=i+o.textContent.length,i<=e&&a>=e)return{node:o,offset:e-i};i=a}o=n(r(o))}}t.exports=o},function(t,e,n){"use strict";function r(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n["ms"+t]="MS"+e,n["O"+t]="o"+e.toLowerCase(),n}function o(t){if(s[t])return s[t];if(!a[t])return t;var e=a[t];for(var n in e)if(e.hasOwnProperty(n)&&n in u)return s[t]=e[n];return""}var i=n(7),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},u={};i.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),t.exports=o},function(t,e,n){"use strict";function r(t){return'"'+o(t)+'"'}var o=n(44);t.exports=r},function(t,e,n){"use strict";var r=n(98);t.exports=r.renderSubtreeIntoContainer},function(t,e,n){"undefined"==typeof Promise&&(n(179).enable(),window.Promise=n(178)),n(274),Object.assign=n(4)},59,[278,29],function(t,e,n){"use strict";function r(t){return(""+t).replace(b,"$&/")}function o(t,e){this.func=t,this.context=e,this.count=0}function i(t,e,n){var r=t.func,o=t.context;r.call(o,e,t.count++)}function a(t,e,n){if(null==t)return t;var r=o.getPooled(e,n);v(t,i,r),o.release(r)}function s(t,e,n,r){this.result=t,this.keyPrefix=e,this.func=n,this.context=r,this.count=0}function u(t,e,n){var o=t.result,i=t.keyPrefix,a=t.func,s=t.context,u=a.call(s,e,t.count++);Array.isArray(u)?l(u,o,n,y.thatReturnsArgument):null!=u&&(m.isValidElement(u)&&(u=m.cloneAndReplaceKey(u,i+(!u.key||e&&e.key===u.key?"":r(u.key)+"/")+n)),o.push(u))}function l(t,e,n,o,i){var a="";null!=n&&(a=r(n)+"/");var l=s.getPooled(e,a,o,i);v(t,u,l),s.release(l)}function c(t,e,n){if(null==t)return t;var r=[];return l(t,r,null,e,n),r}function f(t,e,n){return null}function p(t,e){return v(t,f,null)}function h(t){var e=[];return l(t,e,null,y.thatReturnsArgument),e}var d=n(253),m=n(28),y=n(9),v=n(263),g=d.twoArgumentPooler,_=d.fourArgumentPooler,b=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},d.addPoolingTo(o,g),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d.addPoolingTo(s,_);var k={forEach:a,map:c,mapIntoWithKeyPrefixInternal:l,count:p,toArray:h};t.exports=k},function(t,e,n){"use strict";function r(t){return t}function o(t,e){var n=b.hasOwnProperty(e)?b[e]:null;w.hasOwnProperty(e)&&("OVERRIDE_BASE"!==n?p("73",e):void 0),t&&("DEFINE_MANY"!==n&&"DEFINE_MANY_MERGED"!==n?p("74",e):void 0)}function i(t,e){if(e){"function"==typeof e?p("75"):void 0,m.isValidElement(e)?p("76"):void 0;var n=t.prototype,r=n.__reactAutoBindPairs;e.hasOwnProperty(g)&&k.mixins(t,e.mixins);for(var i in e)if(e.hasOwnProperty(i)&&i!==g){var a=e[i],s=n.hasOwnProperty(i);if(o(s,i),k.hasOwnProperty(i))k[i](t,a);else{var c=b.hasOwnProperty(i),f="function"==typeof a,h=f&&!c&&!s&&e.autobind!==!1;if(h)r.push(i,a),n[i]=a;else if(s){var d=b[i];!c||"DEFINE_MANY_MERGED"!==d&&"DEFINE_MANY"!==d?p("77",d,i):void 0,"DEFINE_MANY_MERGED"===d?n[i]=u(n[i],a):"DEFINE_MANY"===d&&(n[i]=l(n[i],a))}else n[i]=a}}}else;}function a(t,e){if(e)for(var n in e){var r=e[n];if(e.hasOwnProperty(n)){var o=n in k;o?p("78",n):void 0;var i=n in t;i?p("79",n):void 0,t[n]=r}}}function s(t,e){t&&e&&"object"==typeof t&&"object"==typeof e?void 0:p("80");for(var n in e)e.hasOwnProperty(n)&&(void 0!==t[n]?p("81",n):void 0,t[n]=e[n]);return t}function u(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return s(o,n),s(o,r),o}}function l(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function c(t,e){var n=e.bind(t);return n}function f(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];t[r]=c(t,o)}}var p=n(29),h=n(4),d=n(71),m=n(28),y=(n(111),n(72)),v=n(30),g=(n(1),n(2),"mixins"),_=[],b={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},k={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)i(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=h({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=h({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=u(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=h({},t.propTypes,e)},statics:function(t,e){a(t,e)},autobind:function(){}},w={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t),e&&this.updater.enqueueCallback(this,e,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},E=function(){};h(E.prototype,d.prototype,w);var C={createClass:function(t){var e=r(function(t,n,r){this.__reactAutoBindPairs.length&&f(this),this.props=t,this.context=n,this.refs=v,this.updater=r||y,this.state=null;var o=this.getInitialState?this.getInitialState():null;"object"!=typeof o||Array.isArray(o)?p("82",e.displayName||"ReactCompositeComponent"):void 0,this.state=o});e.prototype=new E,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],_.forEach(i.bind(null,e)),i(e,t),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),e.prototype.render?void 0:p("83");for(var n in b)e.prototype[n]||(e.prototype[n]=null);return e},injection:{injectMixin:function(t){_.push(t)}}};t.exports=C},function(t,e,n){"use strict";var r=n(28),o=r.createFactory,i={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),var:o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};t.exports=i},function(t,e,n){"use strict";function r(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function o(t){this.message=t,this.stack=""}function i(t){function e(e,n,r,i,a,s,u){i=i||P,s=s||r;if(null==n[r]){var l=w[a];return e?new o(null===n[r]?"The "+l+" `"+s+"` is marked as required "+("in `"+i+"`, but its value is `null`."):"The "+l+" `"+s+"` is marked as required in "+("`"+i+"`, but its value is `undefined`.")):null}return t(n,r,i,a,s)}var n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n}function a(t){function e(e,n,r,i,a,s){var u=e[n],l=g(u);if(l!==t){var c=w[i],f=_(u);return new o("Invalid "+c+" `"+a+"` of type "+("`"+f+"` supplied to `"+r+"`, expected ")+("`"+t+"`."))}return null}return i(e)}function s(){return i(C.thatReturns(null))}function u(t){function e(e,n,r,i,a){if("function"!=typeof t)return new o("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=e[n];if(!Array.isArray(s)){var u=w[i],l=g(s);return new o("Invalid "+u+" `"+a+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<s.length;c++){var f=t(s,c,r,i,a+"["+c+"]",E);if(f instanceof Error)return f}return null}return i(e)}function l(){function t(t,e,n,r,i){var a=t[e];if(!k.isValidElement(a)){var s=w[r],u=g(a);return new o("Invalid "+s+" `"+i+"` of type "+("`"+u+"` supplied to `"+n+"`, expected a single ReactElement."))}return null}return i(t)}function c(t){function e(e,n,r,i,a){if(!(e[n]instanceof t)){var s=w[i],u=t.name||P,l=b(e[n]);return new o("Invalid "+s+" `"+a+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("instance of `"+u+"`."))}return null}return i(e)}function f(t){function e(e,n,i,a,s){for(var u=e[n],l=0;l<t.length;l++)if(r(u,t[l]))return null;var c=w[a],f=JSON.stringify(t);return new o("Invalid "+c+" `"+s+"` of value `"+u+"` "+("supplied to `"+i+"`, expected one of "+f+"."))}return Array.isArray(t)?i(e):C.thatReturnsNull}function p(t){function e(e,n,r,i,a){if("function"!=typeof t)return new o("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=e[n],u=g(s);if("object"!==u){var l=w[i];return new o("Invalid "+l+" `"+a+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an object."))}for(var c in s)if(s.hasOwnProperty(c)){var f=t(s,c,r,i,a+"."+c,E);if(f instanceof Error)return f}return null}return i(e)}function h(t){function e(e,n,r,i,a){for(var s=0;s<t.length;s++){var u=t[s];if(null==u(e,n,r,i,a,E))return null}var l=w[i];return new o("Invalid "+l+" `"+a+"` supplied to "+("`"+r+"`."))}return Array.isArray(t)?i(e):C.thatReturnsNull}function d(){function t(t,e,n,r,i){if(!y(t[e])){var a=w[r];return new o("Invalid "+a+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return i(t)}function m(t){function e(e,n,r,i,a){var s=e[n],u=g(s);if("object"!==u){var l=w[i];return new o("Invalid "+l+" `"+a+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `object`."))}for(var c in t){var f=t[c];if(f){var p=f(s,c,r,i,a+"."+c,E);if(p)return p}}return null}return i(e)}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||k.isValidElement(t))return!0;var e=T(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function v(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function g(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":v(e,t)?"symbol":e}function _(t){var e=g(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function b(t){return t.constructor&&t.constructor.name?t.constructor.name:P}var k=n(28),w=n(111),E=n(258),C=n(9),T=n(113),P=(n(2),"<<anonymous>>"),x={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:s(),arrayOf:u,element:l(),instanceOf:c,node:d(),objectOf:p,oneOf:f,oneOfType:h,shape:m};o.prototype=Error.prototype,t.exports=x},221,function(t,e,n){"use strict";function r(t,e,n){this.props=t,this.context=e,this.refs=u,this.updater=n||s}function o(){}var i=n(4),a=n(71),s=n(72),u=n(30);o.prototype=a.prototype,r.prototype=new o,r.prototype.constructor=r,i(r.prototype,a.prototype),r.prototype.isPureReactComponent=!0,t.exports=r},226,function(t,e,n){"use strict";function r(t){return i.isValidElement(t)?void 0:o("143"),t}var o=n(29),i=n(28);n(1);t.exports=r},function(t,e,n){"use strict";function r(t,e,n){return!o(t.props,e)||!o(t.state,n)}var o=n(38);t.exports=r},function(t,e,n){"use strict";function r(t,e){return t&&"object"==typeof t&&null!=t.key?l.escape(t.key):e.toString(36)}function o(t,e,n,i){var p=typeof t;if("undefined"!==p&&"boolean"!==p||(t=null),null===t||"string"===p||"number"===p||"object"===p&&t.$$typeof===s)return n(i,t,""===e?c+r(t,0):e),1;var h,d,m=0,y=""===e?c:e+f;if(Array.isArray(t))for(var v=0;v<t.length;v++)h=t[v],d=y+r(h,v),m+=o(h,d,n,i);else{var g=u(t);if(g){var _,b=g.call(t);if(g!==t.entries)for(var k=0;!(_=b.next()).done;)h=_.value,d=y+r(h,k++),m+=o(h,d,n,i);else for(;!(_=b.next()).done;){var w=_.value;w&&(h=w[1],d=y+l.escape(w[0])+f+r(h,0),m+=o(h,d,n,i))}}else if("object"===p){var E="",C=String(t);a("31","[object Object]"===C?"object with keys {"+Object.keys(t).join(", ")+"}":C,E)}}return m}function i(t,e,n){return null==t?0:o(t,"",e,n)}var a=n(29),s=(n(13),n(110)),u=n(113),l=(n(1),n(252)),c=(n(2),"."),f=":";t.exports=i},function(t,e,n){function r(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r=i(t),a=r.source,c=r.id,f=r.path,p=l[c]&&f in l[c].nsps,h=e.forceNew||e["force new connection"]||!1===e.multiplex||p;return h?(u("ignoring socket cache for %s",a),n=s(a,e)):(l[c]||(u("new io instance for %s",a),l[c]=s(a,e)),n=l[c]),r.query&&!e.query?e.query=r.query:e&&"object"==typeof e.query&&(e.query=o(e.query)),n.socket(r.path,e)}function o(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&")}var i=n(265),a=n(73),s=n(114),u=n(46)("socket.io-client");t.exports=e=r;var l=e.managers={};e.protocol=a.protocol,e.connect=r,e.Manager=n(114),e.Socket=n(116)},function(t,e,n){(function(e){function r(t,n){var r=t;n=n||e.location,null==t&&(t=n.protocol+"//"+n.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||(i("protocol-less url %s",t),t="undefined"!=typeof n?n.protocol+"//"+t:"https://"+t),i("parse %s",t),r=o(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var a=r.host.indexOf(":")!==-1,s=a?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}var o=n(87),i=n(46)("socket.io-client:url");t.exports=r}).call(e,function(){return this}())},151,function(t,e,n){(function(t){var r=n(270),o=n(118);e.deconstructPacket=function(t){function e(t){if(!t)return t;if(o(t)){var i={_placeholder:!0,num:n.length};return n.push(t),i}if(r(t)){for(var a=new Array(t.length),s=0;s<t.length;s++)a[s]=e(t[s]);return a}if("object"==typeof t&&!(t instanceof Date)){var a={};for(var u in t)a[u]=e(t[u]);return a}return t}var n=[],i=t.data,a=t;return a.data=e(i),a.attachments=n.length,{packet:a,buffers:n}},e.reconstructPacket=function(t,e){function n(t){if(t&&t._placeholder){var o=e[t.num];return o}if(r(t)){for(var i=0;i<t.length;i++)t[i]=n(t[i]);return t}if(t&&"object"==typeof t){for(var a in t)t[a]=n(t[a]);return t}return t}return t.data=n(t.data),t.attachments=void 0,t},e.removeBlobs=function(e,n){function i(e,u,l){if(!e)return e;if(t.Blob&&e instanceof Blob||t.File&&e instanceof File){a++;var c=new FileReader;c.onload=function(){l?l[u]=this.result:s=this.result,--a||n(s)},c.readAsArrayBuffer(e)}else if(r(e))for(var f=0;f<e.length;f++)i(e[f],f,e);else if(e&&"object"==typeof e&&!o(e))for(var p in e)i(e[p],p,e)}var a=0,s=e;i(s),a||n(s)}}).call(e,function(){return this}())},function(t,e,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function o(){var t=arguments,n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),!n)return t;var r="color: "+this.color;t=[t[0],r,"color: inherit"].concat(Array.prototype.slice.call(t,1));var o=0,i=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(o++,"%c"===t&&(i=o))}),t.splice(i,0,r),t}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function s(){var t;try{t=e.storage.debug}catch(t){}return t}function u(){try{return window.localStorage}catch(t){}}e=t.exports=n(269),e.log=i,e.formatArgs=o,e.save=a,e.load=s,e.useColors=r,e.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){return JSON.stringify(t)},e.enable(s())},function(t,e,n){function r(){return e.colors[c++%e.colors.length]}function o(t){function n(){}function o(){var t=o,n=+new Date,i=n-(l||n);t.diff=i,t.prev=l,t.curr=n,l=n,null==t.useColors&&(t.useColors=e.useColors()),null==t.color&&t.useColors&&(t.color=r());var a=Array.prototype.slice.call(arguments);a[0]=e.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var s=0;a[0]=a[0].replace(/%([a-z%])/g,function(n,r){if("%%"===n)return n;s++;var o=e.formatters[r];if("function"==typeof o){var i=a[s];n=o.call(t,i),a.splice(s,1), s--}return n}),"function"==typeof e.formatArgs&&(a=e.formatArgs.apply(t,a));var u=o.log||e.log||console.log.bind(console);u.apply(t,a)}n.enabled=!1,o.enabled=!0;var i=e.enabled(t)?o:n;return i.namespace=t,i}function i(t){e.save(t);for(var n=(t||"").split(/[\s,]+/),r=n.length,o=0;o<r;o++)n[o]&&(t=n[o].replace(/\*/g,".*?"),"-"===t[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))}function a(){e.enable("")}function s(t){var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1}function u(t){return t instanceof Error?t.stack||t.message:t}e=t.exports=o,e.coerce=u,e.disable=a,e.enable=i,e.enabled=s,e.humanize=n(271),e.names=[],e.skips=[],e.formatters={};var l,c=0},174,function(t,e){function n(t){if(t=""+t,!(t.length>1e4)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*c;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function r(t){return t>=l?Math.round(t/l)+"d":t>=u?Math.round(t/u)+"h":t>=s?Math.round(t/s)+"m":t>=a?Math.round(t/a)+"s":t+"ms"}function o(t){return i(t,l,"day")||i(t,u,"hour")||i(t,s,"minute")||i(t,a,"second")||t+" ms"}function i(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var a=1e3,s=60*a,u=60*s,l=24*u,c=365.25*l;t.exports=function(t,e){return e=e||{},"string"==typeof t?n(t):e.long?o(t):r(t)}},function(t,e){function n(t,e){var n=[];e=e||0;for(var r=e||0;r<t.length;r++)n[r-e]=t[r];return n}t.exports=n},function(t,e){(function(e){t.exports=e}).call(e,{})},function(t,e){!function(t){"use strict";function e(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function n(t){return"string"!=typeof t&&(t=String(t)),t}function r(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return m.iterable&&(e[Symbol.iterator]=function(){return e}),e}function o(t){this.map={},t instanceof o?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function i(t){return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function a(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function s(t){var e=new FileReader;return e.readAsArrayBuffer(t),a(e)}function u(t){var e=new FileReader;return e.readAsText(t),a(e)}function l(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,"string"==typeof t)this._bodyText=t;else if(m.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(m.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(m.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(t){if(!m.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Error("unsupported BodyInit type")}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):m.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},m.blob?(this.blob=function(){var t=i(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(s)},this.text=function(){var t=i(this);if(t)return t;if(this._bodyBlob)return u(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var t=i(this);return t?t:Promise.resolve(this._bodyText)},m.formData&&(this.formData=function(){return this.text().then(p)}),this.json=function(){return this.text().then(JSON.parse)},this}function c(t){var e=t.toUpperCase();return y.indexOf(e)>-1?e:t}function f(t,e){e=e||{};var n=e.body;if(f.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new o(t.headers)),this.method=t.method,this.mode=t.mode,n||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new o(e.headers)),this.method=c(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function p(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function h(t){var e=new o,n=(t.getAllResponseHeaders()||"").trim().split("\n");return n.forEach(function(t){var n=t.trim().split(":"),r=n.shift().trim(),o=n.join(":").trim();e.append(r,o)}),e}function d(t,e){e||(e={}),this.type="default",this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof o?e.headers:new o(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var m={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};o.prototype.append=function(t,r){t=e(t),r=n(r);var o=this.map[t];o||(o=[],this.map[t]=o),o.push(r)},o.prototype.delete=function(t){delete this.map[e(t)]},o.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},o.prototype.getAll=function(t){return this.map[e(t)]||[]},o.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},o.prototype.set=function(t,r){this.map[e(t)]=[n(r)]},o.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){t.call(e,r,n,this)},this)},this)},o.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),r(t)},o.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),r(t)},o.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),r(t)},m.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this)},l.call(f.prototype),l.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},d.error=function(){var t=new d(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];d.redirect=function(t,e){if(v.indexOf(e)===-1)throw new RangeError("Invalid status code");return new d(null,{status:e,headers:{location:t}})},t.Headers=o,t.Request=f,t.Response=d,t.fetch=function(t,e){return new Promise(function(n,r){function o(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var i;i=f.prototype.isPrototypeOf(t)&&!e?t:new f(t,e);var a=new XMLHttpRequest;a.onload=function(){var t={status:a.status,statusText:a.statusText,headers:h(a),url:o()},e="response"in a?a.response:a.responseText;n(new d(e,t))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials&&(a.withCredentials=!0),"responseType"in a&&m.blob&&(a.responseType="blob"),i.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),a.send("undefined"==typeof i._bodyInit?null:i._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},function(t,e,n){var r;(function(t,o){!function(i){function a(t){for(var e,n,r=[],o=0,i=t.length;o<i;)e=t.charCodeAt(o++),e>=55296&&e<=56319&&o<i?(n=t.charCodeAt(o++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--)):r.push(e);return r}function s(t){for(var e,n=t.length,r=-1,o="";++r<n;)e=t[r],e>65535&&(e-=65536,o+=_(e>>>10&1023|55296),e=56320|1023&e),o+=_(e);return o}function u(t,e){return _(t>>e&63|128)}function l(t){if(0==(4294967168&t))return _(t);var e="";return 0==(4294965248&t)?e=_(t>>6&31|192):0==(4294901760&t)?(e=_(t>>12&15|224),e+=u(t,6)):0==(4292870144&t)&&(e=_(t>>18&7|240),e+=u(t,12),e+=u(t,6)),e+=_(63&t|128)}function c(t){for(var e,n=a(t),r=n.length,o=-1,i="";++o<r;)e=n[o],i+=l(e);return i}function f(){if(g>=v)throw Error("Invalid byte index");var t=255&y[g];if(g++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function p(){var t,e,n,r,o;if(g>v)throw Error("Invalid byte index");if(g==v)return!1;if(t=255&y[g],g++,0==(128&t))return t;if(192==(224&t)){var e=f();if(o=(31&t)<<6|e,o>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&t)){if(e=f(),n=f(),o=(15&t)<<12|e<<6|n,o>=2048)return o;throw Error("Invalid continuation byte")}if(240==(248&t)&&(e=f(),n=f(),r=f(),o=(15&t)<<18|e<<12|n<<6|r,o>=65536&&o<=1114111))return o;throw Error("Invalid WTF-8 detected")}function h(t){y=a(t),v=y.length,g=0;for(var e,n=[];(e=p())!==!1;)n.push(e);return s(n)}var d="object"==typeof e&&e,m=("object"==typeof t&&t&&t.exports==d&&t,"object"==typeof o&&o);m.global!==m&&m.window!==m||(i=m);var y,v,g,_=String.fromCharCode,b={version:"1.0.0",encode:c,decode:h};r=function(){return b}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(this)}).call(e,n(119)(t),function(){return this}())},function(t,e){},function(t,e,n,r){(function(o){function i(){return"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function a(){var t=arguments,n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),!n)return t;var r="color: "+this.color;t=[t[0],r,"color: inherit"].concat(Array.prototype.slice.call(t,1));var o=0,i=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(o++,"%c"===t&&(i=o))}),t.splice(i,0,r),t}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function u(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function l(){try{return e.storage.debug}catch(t){}if("undefined"!=typeof o&&"env"in o)return{NODE_ENV:"production",PUBLIC_URL:"/summertunes"}.DEBUG}function c(){try{return window.localStorage}catch(t){}}e=t.exports=n(r),e.log=s,e.formatArgs=a,e.save=u,e.load=l,e.useColors=i,e.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:c(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(l())}).call(e,n(39))},function(t,e,n,r){"use strict";var o=n(r),i=(n(1),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),a=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},s=function(t,e,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,t,e,n),o}return new r(t,e,n)},u=function(t,e,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,t,e,n,r),i}return new o(t,e,n,r)},l=function(t,e,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,t,e,n,r,o),a}return new i(t,e,n,r,o)},c=function(t){var e=this;t instanceof e?void 0:o("25"),t.destructor(),e.instancePool.length<e.poolSize&&e.instancePool.push(t)},f=10,p=i,h=function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||p,n.poolSize||(n.poolSize=f),n.release=c,n},d={addPoolingTo:h,oneArgumentPooler:i,twoArgumentPooler:a,threeArgumentPooler:s,fourArgumentPooler:u,fiveArgumentPooler:l};t.exports=d}])); //# sourceMappingURL=main.748b3be7.js.map
28,122.846154
32,509
0.719453
fe18a0d9498fa84836f98fe953bd6aa151d54033
135
swift
Swift
PinKit/Classes/Modules/Pin/Set/SetPinModule.swift
numsecurelab/comp-ios
f601d8b4e3e91f46f7bc26a90dcb279ce203ccd2
[ "MIT" ]
4
2021-11-09T07:51:59.000Z
2022-03-30T05:55:16.000Z
PinKit/Classes/Modules/Pin/Set/SetPinModule.swift
numsecurelab/comp-ios
f601d8b4e3e91f46f7bc26a90dcb279ce203ccd2
[ "MIT" ]
2
2020-04-27T07:31:40.000Z
2021-09-01T05:06:00.000Z
PinKit/Classes/Modules/Pin/Set/SetPinModule.swift
numsecurelab/comp-ios
f601d8b4e3e91f46f7bc26a90dcb279ce203ccd2
[ "MIT" ]
11
2020-04-01T22:24:55.000Z
2022-03-30T05:55:20.000Z
protocol ISetPinRouter { func notifyCancelled() func close() } public protocol ISetPinDelegate { func didCancelSetPin() }
15
33
0.718519
fa7d3d4044a2f033f206ade8d5558b3ed03c9040
2,098
cpp
C++
classnote/Midexam/DB_Conversion.cpp
Alex-Lin5/cpp_practice
c249362d6bbe932dc1eb4a4b8c51728d58db2aa7
[ "MIT" ]
null
null
null
classnote/Midexam/DB_Conversion.cpp
Alex-Lin5/cpp_practice
c249362d6bbe932dc1eb4a4b8c51728d58db2aa7
[ "MIT" ]
null
null
null
classnote/Midexam/DB_Conversion.cpp
Alex-Lin5/cpp_practice
c249362d6bbe932dc1eb4a4b8c51728d58db2aa7
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <list> #include <map> using namespace std; //Implement the following function void DB1_to_DB2(list<vector<list<int>*>* >& DB1, vector<list<list<int*> >*>* pDB2); template <typename T> ostream& operator<<(ostream& str, const vector<T>& V); template <typename T> ostream& operator<<(ostream& str, const vector<T *>& V); template <typename T> ostream& operator<<(ostream& str, const list<T>& L); template <typename T> ostream& operator<<(ostream& str, const list<T*>& L); int main() { list<vector<list<int>*>* > DB1{ new vector<list<int>*> { new list<int> {1,2,3}, new list<int>{4,5,6,7}, new list<int>{8, 9}}, new vector<list<int>*> { new list<int> {11,12,13}, new list<int>{14,15,16,17}, new list<int>{18, 19}}, new vector<list<int>*> { new list<int> {21,22,23}, new list<int>{24,25,26,27}, new list<int>{28, 29}} }; cout << DB1 << endl; vector<list<list<int*> >*>* pDB2{ new vector<list<list<int*> >*> {} }; DB1_to_DB2(DB1, pDB2); cout << *pDB2 << endl; return 0; } void DB1_to_DB2(list<vector<list<int>*>* >& DB1, vector<list<list<int*> >*>* pDB2) { for (auto& i : *pDB2) { for (auto& j : *i) { for (auto& k : j) { delete k; } } delete i; } pDB2->clear(); for (auto& i : DB1) { list<list<int*>>* p1{ new list<list<int*>> }; for (auto& j : *i) { list<int*> L1; for (auto& k : *j) { L1.push_back(new int{ k }); } p1->push_back(L1); } pDB2->push_back(p1); } } template <typename T> ostream& operator<<(ostream& str, const vector<T>& V) { str << "[ "; for (auto& i : V) str << i << " "; str << "]"; return str; } template <typename T> ostream& operator<<(ostream& str, const vector<T *>& V) { str << "[ "; for (auto& i : V) str << *i << " "; str << "]"; return str; } template <typename T> ostream& operator<<(ostream& str, const list<T>& L) { str << "< "; for (auto& i : L) str << i << " "; str << ">"; return str; } template <typename T> ostream& operator<<(ostream& str, const list<T*>& L) { str << "< "; for (auto& i : L) str << *i << " "; str << ">"; return str; }
25.901235
126
0.577216
0477cd9d9908bbd1f0c4f83529cd59474a6acd96
1,405
swift
Swift
ios/Social Distance Alarm/SocialDistanceSDK/Util/Util.swift
kunai-consulting/OpenTrace
67a32553eb7c7087a1f7ca7fa08402034ec89bc7
[ "MIT" ]
16
2020-03-30T18:09:09.000Z
2020-06-24T16:35:58.000Z
ios/Social Distance Alarm/SocialDistanceSDK/Util/Util.swift
kunai-consulting/OpenTrace
67a32553eb7c7087a1f7ca7fa08402034ec89bc7
[ "MIT" ]
76
2020-04-13T04:09:09.000Z
2020-06-24T02:33:16.000Z
ios/Social Distance Alarm/SocialDistanceSDK/Util/Util.swift
UNTILabs/SocialDistance
67a32553eb7c7087a1f7ca7fa08402034ec89bc7
[ "MIT" ]
10
2020-07-01T18:37:45.000Z
2020-11-17T12:11:47.000Z
// // Util.swift // SocialDistanceSDK // // Created by Piotr on 28/05/2020. // Copyright © 2020 kunai. All rights reserved. // import Foundation public enum SignalClassification { case tooClose case danger case warning case ok } /// Some constants that we use other places in the library. These are the ones that you will want to change if you want to expand and contract what is considered red, orange, etc. public struct Util { static let signalDistanceOk = 30 // This or lower is socially distant = green static let signlaDistanceLightWarn = 33 // This to SIGNAL_DISTANCE_OK warning = yellow static let signalDistanceStrongWarn = 40 // This to SIGNAL_DISTANCE_LIGHT_WARN strong warning = orange public static func signlaStrength(rssi: Int32, txPower: Int32, isAndroid: Bool) -> Int32 { var signal = SdkConstants.assumedTxPower + rssi if (!isAndroid) { signal -= SdkConstants.iosSignalReduction } return signal } public static func classifySignalStrength(_ power: Int32) -> SignalClassification { if (power > Util.signalDistanceStrongWarn) { return .tooClose } else if (power > Util.signlaDistanceLightWarn) { return .danger } else if (power > Util.signalDistanceOk) { return .warning } else { return .ok } } }
31.931818
180
0.664057
f624d363ac3f6f847615772a93146521aeef640b
804
cpp
C++
bls_sig.cpp
ANSIIRU/BLS12_381-small_memory_c-
6109d56c38a4c9243dcbcd0464b50feaa2f70a89
[ "Unlicense" ]
null
null
null
bls_sig.cpp
ANSIIRU/BLS12_381-small_memory_c-
6109d56c38a4c9243dcbcd0464b50feaa2f70a89
[ "Unlicense" ]
null
null
null
bls_sig.cpp
ANSIIRU/BLS12_381-small_memory_c-
6109d56c38a4c9243dcbcd0464b50feaa2f70a89
[ "Unlicense" ]
null
null
null
#include "my_pairing.h" #include <stdio.h> void KeyGen(const char* s, EC_Fp2* pub, EC_Fp2* Q) { G2_SCM(pub, s, Q); // pub = sQ // printf("pub=\n"); // EC_Fp2_print(pub); } void SignGen(EC_Fp *sign, const char* s, const char *m) { EC_Fp Hm; hash_to_curve(&Hm,m); // EC_Fp_from_Mont(&Hm); // EC_Fp_print(&Hm); //EC_Fp_to_Mont(&Hm.&Hm); G1_SCM(sign,s,&Hm); // sign = s H(m) } int Verify(EC_Fp *sign,EC_Fp2 *Q,EC_Fp2 *pub,const char *m){ Fp12 e1,e2; EC_Fp Hm; hash_to_curve(&Hm,m); // EC_Fp_print(sign); // EC_Fp_print(&Hm); // EC_Fp2_print(Q); // EC_Fp2_print(pub); my_pairing_proj(&e1,Q,sign); my_pairing_proj(&e2,pub,&Hm); printf("e1 = \n"); Fp12_print(&e1); printf("e2 = \n"); Fp12_print(&e2); return Fp12_cmp(&e1, &e2); }
21.72973
61
0.588308
12db302f99553404e51a0bfadb645de98f1d42e6
2,627
cs
C#
SubZero/Models/Hardware/MSITemperatureSensors.cs
TekuSP/SubZero
8e2965b859fc9a71174193a1d3d42f90e1de7c14
[ "Apache-2.0" ]
1
2021-07-12T11:12:03.000Z
2021-07-12T11:12:03.000Z
SubZero/Models/Hardware/MSITemperatureSensors.cs
TekuSP/SubZero
8e2965b859fc9a71174193a1d3d42f90e1de7c14
[ "Apache-2.0" ]
null
null
null
SubZero/Models/Hardware/MSITemperatureSensors.cs
TekuSP/SubZero
8e2965b859fc9a71174193a1d3d42f90e1de7c14
[ "Apache-2.0" ]
1
2021-08-06T03:25:18.000Z
2021-08-06T03:25:18.000Z
using System; namespace SubZero.Models.Hardware { /// <summary> /// Hardware Temperature Sensors for MSI /// </summary> public class MSITemperatureSensors { #region Public Constructors /// <summary> /// Intializes sensors with WMIHelper /// </summary> /// <param name="helper">WMIHelper to use</param> public MSITemperatureSensors(MSIWmiHelper helper) { WMIHelper = helper; } #endregion Public Constructors #region Private Properties private MSIWmiHelper WMIHelper { get; } #endregion Private Properties #region Public Methods /// <summary> /// Gets CPU Temperature in Celsius /// </summary> /// <returns>Temperature in Celsius</returns> public double GetCPUTemperatureCelsius() { using (var cpu = WMIHelper.MSI_CPU.Get()) { bool skip = true; foreach (var item in cpu) { if (skip) { skip = false; continue; } return Convert.ToDouble(item["CPU"]); } } return -1; //This should never happen, we are not on MSI if we are here } /// <summary> /// Gets CPU Temperature in Fahrenheit /// </summary> /// <returns>Temperature in Fahrenheit</returns> public double GetCPUTemperatureFahrenheit() => ((double)GetCPUTemperatureCelsius() / 5.0 * 9.0 + 32.0); /// <summary> /// Gets GPU Temperature in Celsius /// </summary> /// <returns>Temperature in Celsius</returns> public double GetGPUTemperatureCelsius() { using (var gpu = WMIHelper.MSI_GPU.Get()) { bool skip = true; foreach (var item in gpu) { if (skip) { skip = false; continue; } return Convert.ToDouble(item["VGA"]); } } return -1; //This should never happen, we are not on MSI if we are here } /// <summary> /// Gets GPU Temperature in Fahrenheit /// </summary> /// <returns>Temperature in Fahrenheit</returns> public double GetGPUTemperatureFahrenheit() => ((double)GetGPUTemperatureCelsius() / 5.0 * 9.0 + 32.0); #endregion Public Methods } }
29.516854
111
0.492196
1abcb32d42dc6682a4c7ed951e5530184c7220b2
4,024
py
Python
Perfect_game_player/pgameplayer/minimax_tree.py
lquispel/Chain-Reaction-Simulator
d826b3453d1a634186ab345e342e6fa7b44a2154
[ "MIT" ]
null
null
null
Perfect_game_player/pgameplayer/minimax_tree.py
lquispel/Chain-Reaction-Simulator
d826b3453d1a634186ab345e342e6fa7b44a2154
[ "MIT" ]
null
null
null
Perfect_game_player/pgameplayer/minimax_tree.py
lquispel/Chain-Reaction-Simulator
d826b3453d1a634186ab345e342e6fa7b44a2154
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger("minimax") # Straightforward minimax tree algorithm PINF = 100 NINF = -100 class Node: ''' Node of minimax tree associated with a board state and player''' def __init__(self): self.state = None self.value = None self.player = True self.best_move = None def if_leaf(self): return True def generate_moves(self): return [] def evaluate(self): return self.value def __str__(self): str = '' for r in range(len(self.state)): str += '|'.join(self.state[r]) + '\n' return str def minimax(node, player): ''' Main minimax function that obtains the best move to take :return: ''' if node.if_leaf(): return ([], node.evaluate()) if player: maxv = NINF possible_moves = node.generate_moves(player) for child in possible_moves: (_, child.value) = minimax(child, not player) if child.value > maxv: maxv = child.value node.best_move = child.state node.value = maxv logger.debug("{} == {}".format(node.state, node.value)) return (node.best_move, maxv) else: minv = PINF possible_moves = node.generate_moves(player) for child in possible_moves: (_, child.value) = minimax(child, not player) if child.value < minv: minv = child.value node.best_move = child.state node.value = minv logger.debug("{} == {}".format(node.state, node.value)) return (node.best_move, minv) # TODO: refactor to return next move too def depth_limited_minimax(node, depth, player): ''' Minimax algorithm that returns after a particular depth is reached :param node: :param depth: :param player: :return: ''' if node.if_leaf() or depth == 0: return node.evaluate() if player: maxv = NINF possible_moves = node.generate_moves(player) for child in possible_moves: child.value = depth_limited_minimax(child, depth - 1, not player) if child.value > maxv: maxv = child.value node.best_move = child.state node.value = maxv logger.debug("{} == {}".format(node, node.value)) return maxv else: minv = PINF possible_moves = node.generate_moves(player) for child in possible_moves: child.value = depth_limited_minimax(child, depth - 1, not player) if child.value < minv: minv = child.value node.best_move = child.state node.value = minv logger.debug("{} == {}".format(node, node.value)) return minv # alpha beta pruning takes a while def alpha_beta_pruning_minimax(node, player, alpha, beta): ''' Minimax variant that maintains max and min value for every node and prunes branches that are unnecessary ''' if node.if_leaf(): return node.evaluate() if player: possible_moves = node.generate_moves(player) for child in possible_moves: child.value = alpha_beta_pruning_minimax(child, not player, alpha, beta) if child.value > alpha: alpha = child.value node.best_move = child.state if alpha > beta: break node.value = alpha logger.debug(" {} == {}".format(node, node.value)) return alpha else: possible_moves = node.generate_moves(player) for child in possible_moves: child.value = alpha_beta_pruning_minimax(child, not player, alpha, beta) if child.value < beta: beta = child.value node.best_move = child.state if alpha > beta: break node.value = beta logger.debug(" {} == {}".format(node, node.value)) return beta
27.37415
108
0.572316
4f7504aee11f148dd696e75ff74b1563db319837
3,114
php
PHP
resources/views/wayshop/contact.blade.php
shishirkarki/kandkShop
adab9ee0eb758bfa011c97cd1eb5f38f41977907
[ "MIT" ]
null
null
null
resources/views/wayshop/contact.blade.php
shishirkarki/kandkShop
adab9ee0eb758bfa011c97cd1eb5f38f41977907
[ "MIT" ]
null
null
null
resources/views/wayshop/contact.blade.php
shishirkarki/kandkShop
adab9ee0eb758bfa011c97cd1eb5f38f41977907
[ "MIT" ]
null
null
null
@extends('wayshop.layouts.master') @section('content') <main class="bg_gray"> <div class="container margin_60"> <div class="main_title"> <h2>Contact</h2> <p>If you have any querry please dont hasitate to message us. We are always here for your help.</p> </div> <div class="row justify-content-center"> <div class="col-lg-4"> <div class="box_contacts"> <i class="ti-support"></i> <h2>Help Center</h2> <a href="#0">+977 {{ isset($home_settings) ? $home_settings->phone_no : '' }}</a> - <a href="#0">{{ isset($home_settings) ? $home_settings->gmail : '' }}</a> <small>MON to FRI 9am-6pm SAT 9am-2pm</small> </div> </div> <div class="col-lg-4"> <div class="box_contacts"> <i class="ti-map-alt"></i> <h2>Our Store</h2> <div>{{ isset($home_settings) ? $home_settings->address : '' }}</div> <small>MON to FRI 9am-6pm SAT 9am-2pm</small> </div> </div> <div class="col-lg-4"> <div class="box_contacts"> <i class="ti-package"></i> <h2>TO Orders</h2> <a href="#0">+977 {{ isset($home_settings) ? $home_settings->phone_no : '' }}</a> - <a href="{{url('/shop')}}">Shop</a> <small>MON to FRI 9am-6pm SAT 9am-2pm</small> </div> </div> </div> <!-- /row --> </div> <!-- /container --> <div class="bg_white"> <div class="container margin_60_35"> <h4 class="pb-3">Drop Us a Line</h4> <div class="row"> <div class="col-lg-4 col-md-6 add_bottom_25"> <form method="post" action="{{route('store')}}" enctype="multipart/form-data"> @csrf <div class="form-group"> <input class="form-control" name="name" id="name" type="text" placeholder="Name *"> </div> <div class="form-group"> <input class="form-control" type="email" name="email" id="email" placeholder="Email *"> </div> <div class="form-group"> <textarea class="form-control" style="height: 150px;" name="message" id="message" placeholder="Message *"></textarea> </div> <div class="form-group"> <input class="btn_1 full-width" type="submit" value="Submit"> </div> </form> </div> <div class="col-lg-8 col-md-6 add_bottom_25"> <iframe class="map_contact" src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d39714.47749917409!2d-0.13662037019554393!3d51.52871971170425!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47d8a00baf21de75%3A0x52963a5addd52a99!2sLondra%2C+Regno+Unito!5e0!3m2!1sit!2ses!4v1557824540343!5m2!1sit!2ses" style="border: 0" allowfullscreen></iframe> </div> </div> <!-- /row --> </div> <!-- /container --> </div> <!-- /bg_white --> </main> <!--/main--> @endsection
40.441558
359
0.522158
f473edda68127617e05b56ffc51a900d6ea6454c
1,574
css
CSS
public/css/app.css
LarsZondag/survivalruns
51dd332fdabfd8e03efabdbfb3ff0b9f135d2ae5
[ "MIT" ]
1
2019-11-25T11:14:02.000Z
2019-11-25T11:14:02.000Z
public/css/app.css
LarsZondag/survivalruns
51dd332fdabfd8e03efabdbfb3ff0b9f135d2ae5
[ "MIT" ]
6
2019-06-19T18:55:14.000Z
2022-02-26T11:58:33.000Z
public/css/app.css
LarsZondag/survivalruns
51dd332fdabfd8e03efabdbfb3ff0b9f135d2ae5
[ "MIT" ]
1
2019-11-25T11:48:08.000Z
2019-11-25T11:48:08.000Z
.brd-red{border:solid red}.brd-blue{border:solid #00f}.brd-yellow{border:solid #fdd835}.brd-black{border:solid #000}.brd-orange{border:solid orange}.brd-green{border:solid green}div.badge{padding:0 6px;border-radius:11px;border-width:1.5px}div.collapsible-header>div.badge{margin-left:16px}div.collapsible-body,div.collapsible-header{padding:1.3rem}.collapsible-header>span,.list-header>span{margin-right:16px}div.collapsible-body h4{font-size:1.7rem;margin:0 0 .7rem}div.collapsible-body h5{font-size:1.25rem;margin:.5rem 0}.vis-hidden{visibility:hidden}span.date{font-weight:700;width:90px}span.location{width:160px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}span.distances{margin-left:18px}div.circuits{width:145px;-webkit-justify-content:space-between;justify-content:space-between}.list-header,div.circuits{display:-webkit-flex;display:flex}.list-header{-webkit-tap-highlight-color:transparent;line-height:1.5;padding:1rem;background-color:#fff;border:1px solid #ddd;margin:.5rem 0 1rem;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2)}.run-info{display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between}.flex-spacer{-webkit-flex-grow:1;flex-grow:1}.title-caption{float:right;margin:4.8rem 0 1.68rem}.sortable th:hover{text-decoration:underline;cursor:pointer}td,th{padding:0 10px 0 0}th.pos-col,th.time-col{width:60px}th.name-col{width:200px}th.points-col{width:70px}th.sort-asc:after{content:"\2191"}th.sort-desc:after{content:"\2193"}table{margin-bottom:15px}
1,574
1,574
0.796696
a9ce105fce832ac1abd5032610985f84b043f297
382
go
Go
cmd/root.go
jnst/x-go
87378dca32f3913d58a504f15799917f938396ce
[ "MIT" ]
null
null
null
cmd/root.go
jnst/x-go
87378dca32f3913d58a504f15799917f938396ce
[ "MIT" ]
null
null
null
cmd/root.go
jnst/x-go
87378dca32f3913d58a504f15799917f938396ce
[ "MIT" ]
null
null
null
package cmd import ( "fmt" "os" "github.com/spf13/cobra" ) var rootCmd = &cobra.Command{ Use: "xgo", } func Execute() { awsCmd.AddCommand(dynamodbCmd) rootCmd.AddCommand( atcoderCmd, awsCmd, factorialCmd, mysqlCmd, slackCmd, solanaCmd, sortCmd, uidCmd, ) if err := rootCmd.Execute(); err != nil { _, _ = fmt.Fprintln(os.Stderr, err) os.Exit(1) } }
11.9375
42
0.641361