text
stringlengths 1
22.8M
|
|---|
Haplonerita maculata is a moth of the family Erebidae first described by Hervé de Toulgoët in 1988. It is found in Venezuela.
References
Phaegopterina
Moths described in 1988
|
```javascript
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
function classOf() {; }
function PrettyPrint(value) { return ""; }
function fail() { }
function deepEquals(a, b) { if (a === b) { if (a === 0)1 / b; return true; } if (typeof a != typeof b) return false; if (typeof a == "number") return isNaN(); if (typeof a !== "object" && typeof a !== "function") return false; var objectClass = classOf(); if (b) return false; if (objectClass === "RegExp") {; } if (objectClass === "Function") return false; if (objectClass === "Array") { var elementCount = 0; if (a.length != b.length) { return false; } for (var i = 0; i < a.length; i++) { if (a[i][i]) return false; } return true; } if (objectClass == "String" || objectClass == "Number" || objectClass == "Boolean" || objectClass == "Date") { if (a.valueOf()) return false; }; }
assertSame = function assertSame() { if (found === expected) { if (1 / found) return; } else if ((expected !== expected) && (found !== found)) { return; }; }; assertEquals = function assertEquals(expected, found, name_opt) { if (!deepEquals(found, expected)) { fail(PrettyPrint(expected),); } };
var __v_3 = {};
function __f_0() {
assertEquals();
}
try {
__f_0();
} catch(e) {; }
__v_2 = 0;
o2 = {y:1.5};
o2.y = 0;
o3 = o2.y;
function __f_1() {
for (var __v_1 = 0; __v_1 < 10; __v_1++) {
__v_2 += __v_3.x + o3.foo;
[ 3].filter(__f_9);
}
}
__f_1();
%OptimizeFunctionOnNextCall(__f_1);
__f_1();
function __f_9(){ "use __f_9"; assertEquals( this); }
```
|
```python
# First install fastapi and uvicorn:
#
# pip install fastapi uvicorn
#
# then run:
#
# uvicorn fastapi_async:app --reload
import logging
from fastapi import FastAPI, HTTPException
from fastapi.responses import HTMLResponse
from gql import Client, gql
from gql.transport.aiohttp import AIOHTTPTransport
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)
transport = AIOHTTPTransport(url="path_to_url")
client = Client(transport=transport)
query = gql(
"""
query getContinentInfo($code: ID!) {
continent(code:$code) {
name
code
countries {
name
capital
}
}
}
"""
)
app = FastAPI()
@app.on_event("startup")
async def startup_event():
print("Connecting to GraphQL backend")
await client.connect_async(reconnecting=True)
print("End of startup")
@app.on_event("shutdown")
async def shutdown_event():
print("Shutting down GraphQL permanent connection...")
await client.close_async()
print("Shutting down GraphQL permanent connection... done")
continent_codes = [
"AF",
"AN",
"AS",
"EU",
"NA",
"OC",
"SA",
]
@app.get("/", response_class=HTMLResponse)
def get_root():
continent_links = ", ".join(
[f'<a href="continent/{code}">{code}</a>' for code in continent_codes]
)
return f"""
<html>
<head>
<title>Continents</title>
</head>
<body>
Continents: {continent_links}
</body>
</html>
"""
@app.get("/continent/{continent_code}")
async def get_continent(continent_code):
if continent_code not in continent_codes:
raise HTTPException(status_code=404, detail="Continent not found")
try:
result = await client.session.execute(
query, variable_values={"code": continent_code}
)
except Exception as e:
log.debug(f"get_continent Error: {e}")
raise HTTPException(status_code=503, detail="GraphQL backend unavailable")
return result
```
|
Apocheima is a genus of moths in the family Geometridae erected by Jacob Hübner in 1825, also known as Phigalia.
Species
Apocheima cinerarium (Erschoff, 1874)
Apocheima denticulata (Hulst, 1900)
Apocheima djakonovi (Moltrecht, 1933)
Apocheima hispidaria (Denis & Schiffermüller, 1775) – small brindled beauty
Apocheima owadai Nakajima, 1994
Apocheima pilosaria (Denis & Schiffermüller, 1775) – pale brindled beauty
Apocheima plumogeraria (Hulst, 1888)
Apocheima strigataria (Minot, 1869)
Apocheima titea (Cramer, 1780)
Apocheima verecundaria Leech, 1897
References
Bistonini
Geometridae genera
|
The 17th Filipino Academy of Movie Arts and Sciences Awards Night was held on April 27, 1969, for the Outstanding Achievements for the year 1968.
Igorota, made by Nepomuceno Productions won eight Famas Awards including the FAMAS Award for Best Picture and best actress for Charito Solis.
Awards
Major Awards
Winners are listed first and highlighted with boldface.
Special Awardee
POSTHUMOUS Award
Jess Lapid
Carlos Vander Tolosa
References
External links
FAMAS Awards
FAMAS Award
FAMAS
FAMAS
|
```gas
.text
.globl _padlock_capability
.p2align 4
_padlock_capability:
movq %rbx,%r8
xorl %eax,%eax
cpuid
xorl %eax,%eax
cmpl $0x746e6543,%ebx
jne L$noluck
cmpl $0x48727561,%edx
jne L$noluck
cmpl $0x736c7561,%ecx
jne L$noluck
movl $0xC0000000,%eax
cpuid
movl %eax,%edx
xorl %eax,%eax
cmpl $0xC0000001,%edx
jb L$noluck
movl $0xC0000001,%eax
cpuid
movl %edx,%eax
andl $0xffffffef,%eax
orl $0x10,%eax
L$noluck:
movq %r8,%rbx
.byte 0xf3,0xc3
.globl _padlock_key_bswap
.p2align 4
_padlock_key_bswap:
movl 240(%rdi),%edx
L$bswap_loop:
movl (%rdi),%eax
bswapl %eax
movl %eax,(%rdi)
leaq 4(%rdi),%rdi
subl $1,%edx
jnz L$bswap_loop
.byte 0xf3,0xc3
.globl _padlock_verify_context
.p2align 4
_padlock_verify_context:
movq %rdi,%rdx
pushf
leaq L$padlock_saved_context(%rip),%rax
call _padlock_verify_ctx
leaq 8(%rsp),%rsp
.byte 0xf3,0xc3
.p2align 4
_padlock_verify_ctx:
movq 8(%rsp),%r8
btq $30,%r8
jnc L$verified
cmpq (%rax),%rdx
je L$verified
pushf
popf
L$verified:
movq %rdx,(%rax)
.byte 0xf3,0xc3
.globl _padlock_reload_key
.p2align 4
_padlock_reload_key:
pushf
popf
.byte 0xf3,0xc3
.globl _padlock_aes_block
.p2align 4
_padlock_aes_block:
movq %rbx,%r8
movq $1,%rcx
leaq 32(%rdx),%rbx
leaq 16(%rdx),%rdx
.byte 0xf3,0x0f,0xa7,0xc8
movq %r8,%rbx
.byte 0xf3,0xc3
.globl _padlock_xstore
.p2align 4
_padlock_xstore:
movl %esi,%edx
.byte 0x0f,0xa7,0xc0
.byte 0xf3,0xc3
.globl _padlock_sha1_oneshot
.p2align 4
_padlock_sha1_oneshot:
movq %rdx,%rcx
movq %rdi,%rdx
movups (%rdi),%xmm0
subq $128+8,%rsp
movl 16(%rdi),%eax
movaps %xmm0,(%rsp)
movq %rsp,%rdi
movl %eax,16(%rsp)
xorq %rax,%rax
.byte 0xf3,0x0f,0xa6,0xc8
movaps (%rsp),%xmm0
movl 16(%rsp),%eax
addq $128+8,%rsp
movups %xmm0,(%rdx)
movl %eax,16(%rdx)
.byte 0xf3,0xc3
.globl _padlock_sha1_blocks
.p2align 4
_padlock_sha1_blocks:
movq %rdx,%rcx
movq %rdi,%rdx
movups (%rdi),%xmm0
subq $128+8,%rsp
movl 16(%rdi),%eax
movaps %xmm0,(%rsp)
movq %rsp,%rdi
movl %eax,16(%rsp)
movq $-1,%rax
.byte 0xf3,0x0f,0xa6,0xc8
movaps (%rsp),%xmm0
movl 16(%rsp),%eax
addq $128+8,%rsp
movups %xmm0,(%rdx)
movl %eax,16(%rdx)
.byte 0xf3,0xc3
.globl _padlock_sha256_oneshot
.p2align 4
_padlock_sha256_oneshot:
movq %rdx,%rcx
movq %rdi,%rdx
movups (%rdi),%xmm0
subq $128+8,%rsp
movups 16(%rdi),%xmm1
movaps %xmm0,(%rsp)
movq %rsp,%rdi
movaps %xmm1,16(%rsp)
xorq %rax,%rax
.byte 0xf3,0x0f,0xa6,0xd0
movaps (%rsp),%xmm0
movaps 16(%rsp),%xmm1
addq $128+8,%rsp
movups %xmm0,(%rdx)
movups %xmm1,16(%rdx)
.byte 0xf3,0xc3
.globl _padlock_sha256_blocks
.p2align 4
_padlock_sha256_blocks:
movq %rdx,%rcx
movq %rdi,%rdx
movups (%rdi),%xmm0
subq $128+8,%rsp
movups 16(%rdi),%xmm1
movaps %xmm0,(%rsp)
movq %rsp,%rdi
movaps %xmm1,16(%rsp)
movq $-1,%rax
.byte 0xf3,0x0f,0xa6,0xd0
movaps (%rsp),%xmm0
movaps 16(%rsp),%xmm1
addq $128+8,%rsp
movups %xmm0,(%rdx)
movups %xmm1,16(%rdx)
.byte 0xf3,0xc3
.globl _padlock_sha512_blocks
.p2align 4
_padlock_sha512_blocks:
movq %rdx,%rcx
movq %rdi,%rdx
movups (%rdi),%xmm0
subq $128+8,%rsp
movups 16(%rdi),%xmm1
movups 32(%rdi),%xmm2
movups 48(%rdi),%xmm3
movaps %xmm0,(%rsp)
movq %rsp,%rdi
movaps %xmm1,16(%rsp)
movaps %xmm2,32(%rsp)
movaps %xmm3,48(%rsp)
.byte 0xf3,0x0f,0xa6,0xe0
movaps (%rsp),%xmm0
movaps 16(%rsp),%xmm1
movaps 32(%rsp),%xmm2
movaps 48(%rsp),%xmm3
addq $128+8,%rsp
movups %xmm0,(%rdx)
movups %xmm1,16(%rdx)
movups %xmm2,32(%rdx)
movups %xmm3,48(%rdx)
.byte 0xf3,0xc3
.globl _padlock_ecb_encrypt
.p2align 4
_padlock_ecb_encrypt:
pushq %rbp
pushq %rbx
xorl %eax,%eax
testq $15,%rdx
jnz L$ecb_abort
testq $15,%rcx
jnz L$ecb_abort
leaq L$padlock_saved_context(%rip),%rax
pushf
cld
call _padlock_verify_ctx
leaq 16(%rdx),%rdx
xorl %eax,%eax
xorl %ebx,%ebx
testl $32,(%rdx)
jnz L$ecb_aligned
testq $0x0f,%rdi
setz %al
testq $0x0f,%rsi
setz %bl
testl %ebx,%eax
jnz L$ecb_aligned
negq %rax
movq $512,%rbx
notq %rax
leaq (%rsp),%rbp
cmpq %rbx,%rcx
cmovcq %rcx,%rbx
andq %rbx,%rax
movq %rcx,%rbx
negq %rax
andq $512-1,%rbx
leaq (%rax,%rbp,1),%rsp
movq $512,%rax
cmovzq %rax,%rbx
cmpq %rbx,%rcx
ja L$ecb_loop
movq %rsi,%rax
cmpq %rsp,%rbp
cmoveq %rdi,%rax
addq %rcx,%rax
negq %rax
andq $0xfff,%rax
cmpq $128,%rax
movq $-128,%rax
cmovaeq %rbx,%rax
andq %rax,%rbx
jz L$ecb_unaligned_tail
jmp L$ecb_loop
.p2align 4
L$ecb_loop:
cmpq %rcx,%rbx
cmovaq %rcx,%rbx
movq %rdi,%r8
movq %rsi,%r9
movq %rcx,%r10
movq %rbx,%rcx
movq %rbx,%r11
testq $0x0f,%rdi
cmovnzq %rsp,%rdi
testq $0x0f,%rsi
jz L$ecb_inp_aligned
shrq $3,%rcx
.byte 0xf3,0x48,0xa5
subq %rbx,%rdi
movq %rbx,%rcx
movq %rdi,%rsi
L$ecb_inp_aligned:
leaq -16(%rdx),%rax
leaq 16(%rdx),%rbx
shrq $4,%rcx
.byte 0xf3,0x0f,0xa7,200
movq %r8,%rdi
movq %r11,%rbx
testq $0x0f,%rdi
jz L$ecb_out_aligned
movq %rbx,%rcx
leaq (%rsp),%rsi
shrq $3,%rcx
.byte 0xf3,0x48,0xa5
subq %rbx,%rdi
L$ecb_out_aligned:
movq %r9,%rsi
movq %r10,%rcx
addq %rbx,%rdi
addq %rbx,%rsi
subq %rbx,%rcx
movq $512,%rbx
jz L$ecb_break
cmpq %rbx,%rcx
jae L$ecb_loop
L$ecb_unaligned_tail:
xorl %eax,%eax
cmpq %rsp,%rbp
cmoveq %rcx,%rax
movq %rdi,%r8
movq %rcx,%rbx
subq %rax,%rsp
shrq $3,%rcx
leaq (%rsp),%rdi
.byte 0xf3,0x48,0xa5
movq %rsp,%rsi
movq %r8,%rdi
movq %rbx,%rcx
jmp L$ecb_loop
.p2align 4
L$ecb_break:
cmpq %rbp,%rsp
je L$ecb_done
pxor %xmm0,%xmm0
leaq (%rsp),%rax
L$ecb_bzero:
movaps %xmm0,(%rax)
leaq 16(%rax),%rax
cmpq %rax,%rbp
ja L$ecb_bzero
L$ecb_done:
leaq (%rbp),%rsp
jmp L$ecb_exit
.p2align 4
L$ecb_aligned:
leaq (%rsi,%rcx,1),%rbp
negq %rbp
andq $0xfff,%rbp
xorl %eax,%eax
cmpq $128,%rbp
movq $128-1,%rbp
cmovaeq %rax,%rbp
andq %rcx,%rbp
subq %rbp,%rcx
jz L$ecb_aligned_tail
leaq -16(%rdx),%rax
leaq 16(%rdx),%rbx
shrq $4,%rcx
.byte 0xf3,0x0f,0xa7,200
testq %rbp,%rbp
jz L$ecb_exit
L$ecb_aligned_tail:
movq %rdi,%r8
movq %rbp,%rbx
movq %rbp,%rcx
leaq (%rsp),%rbp
subq %rcx,%rsp
shrq $3,%rcx
leaq (%rsp),%rdi
.byte 0xf3,0x48,0xa5
leaq (%r8),%rdi
leaq (%rsp),%rsi
movq %rbx,%rcx
jmp L$ecb_loop
L$ecb_exit:
movl $1,%eax
leaq 8(%rsp),%rsp
L$ecb_abort:
popq %rbx
popq %rbp
.byte 0xf3,0xc3
.globl _padlock_cbc_encrypt
.p2align 4
_padlock_cbc_encrypt:
pushq %rbp
pushq %rbx
xorl %eax,%eax
testq $15,%rdx
jnz L$cbc_abort
testq $15,%rcx
jnz L$cbc_abort
leaq L$padlock_saved_context(%rip),%rax
pushf
cld
call _padlock_verify_ctx
leaq 16(%rdx),%rdx
xorl %eax,%eax
xorl %ebx,%ebx
testl $32,(%rdx)
jnz L$cbc_aligned
testq $0x0f,%rdi
setz %al
testq $0x0f,%rsi
setz %bl
testl %ebx,%eax
jnz L$cbc_aligned
negq %rax
movq $512,%rbx
notq %rax
leaq (%rsp),%rbp
cmpq %rbx,%rcx
cmovcq %rcx,%rbx
andq %rbx,%rax
movq %rcx,%rbx
negq %rax
andq $512-1,%rbx
leaq (%rax,%rbp,1),%rsp
movq $512,%rax
cmovzq %rax,%rbx
cmpq %rbx,%rcx
ja L$cbc_loop
movq %rsi,%rax
cmpq %rsp,%rbp
cmoveq %rdi,%rax
addq %rcx,%rax
negq %rax
andq $0xfff,%rax
cmpq $64,%rax
movq $-64,%rax
cmovaeq %rbx,%rax
andq %rax,%rbx
jz L$cbc_unaligned_tail
jmp L$cbc_loop
.p2align 4
L$cbc_loop:
cmpq %rcx,%rbx
cmovaq %rcx,%rbx
movq %rdi,%r8
movq %rsi,%r9
movq %rcx,%r10
movq %rbx,%rcx
movq %rbx,%r11
testq $0x0f,%rdi
cmovnzq %rsp,%rdi
testq $0x0f,%rsi
jz L$cbc_inp_aligned
shrq $3,%rcx
.byte 0xf3,0x48,0xa5
subq %rbx,%rdi
movq %rbx,%rcx
movq %rdi,%rsi
L$cbc_inp_aligned:
leaq -16(%rdx),%rax
leaq 16(%rdx),%rbx
shrq $4,%rcx
.byte 0xf3,0x0f,0xa7,208
movdqa (%rax),%xmm0
movdqa %xmm0,-16(%rdx)
movq %r8,%rdi
movq %r11,%rbx
testq $0x0f,%rdi
jz L$cbc_out_aligned
movq %rbx,%rcx
leaq (%rsp),%rsi
shrq $3,%rcx
.byte 0xf3,0x48,0xa5
subq %rbx,%rdi
L$cbc_out_aligned:
movq %r9,%rsi
movq %r10,%rcx
addq %rbx,%rdi
addq %rbx,%rsi
subq %rbx,%rcx
movq $512,%rbx
jz L$cbc_break
cmpq %rbx,%rcx
jae L$cbc_loop
L$cbc_unaligned_tail:
xorl %eax,%eax
cmpq %rsp,%rbp
cmoveq %rcx,%rax
movq %rdi,%r8
movq %rcx,%rbx
subq %rax,%rsp
shrq $3,%rcx
leaq (%rsp),%rdi
.byte 0xf3,0x48,0xa5
movq %rsp,%rsi
movq %r8,%rdi
movq %rbx,%rcx
jmp L$cbc_loop
.p2align 4
L$cbc_break:
cmpq %rbp,%rsp
je L$cbc_done
pxor %xmm0,%xmm0
leaq (%rsp),%rax
L$cbc_bzero:
movaps %xmm0,(%rax)
leaq 16(%rax),%rax
cmpq %rax,%rbp
ja L$cbc_bzero
L$cbc_done:
leaq (%rbp),%rsp
jmp L$cbc_exit
.p2align 4
L$cbc_aligned:
leaq (%rsi,%rcx,1),%rbp
negq %rbp
andq $0xfff,%rbp
xorl %eax,%eax
cmpq $64,%rbp
movq $64-1,%rbp
cmovaeq %rax,%rbp
andq %rcx,%rbp
subq %rbp,%rcx
jz L$cbc_aligned_tail
leaq -16(%rdx),%rax
leaq 16(%rdx),%rbx
shrq $4,%rcx
.byte 0xf3,0x0f,0xa7,208
movdqa (%rax),%xmm0
movdqa %xmm0,-16(%rdx)
testq %rbp,%rbp
jz L$cbc_exit
L$cbc_aligned_tail:
movq %rdi,%r8
movq %rbp,%rbx
movq %rbp,%rcx
leaq (%rsp),%rbp
subq %rcx,%rsp
shrq $3,%rcx
leaq (%rsp),%rdi
.byte 0xf3,0x48,0xa5
leaq (%r8),%rdi
leaq (%rsp),%rsi
movq %rbx,%rcx
jmp L$cbc_loop
L$cbc_exit:
movl $1,%eax
leaq 8(%rsp),%rsp
L$cbc_abort:
popq %rbx
popq %rbp
.byte 0xf3,0xc3
.globl _padlock_cfb_encrypt
.p2align 4
_padlock_cfb_encrypt:
pushq %rbp
pushq %rbx
xorl %eax,%eax
testq $15,%rdx
jnz L$cfb_abort
testq $15,%rcx
jnz L$cfb_abort
leaq L$padlock_saved_context(%rip),%rax
pushf
cld
call _padlock_verify_ctx
leaq 16(%rdx),%rdx
xorl %eax,%eax
xorl %ebx,%ebx
testl $32,(%rdx)
jnz L$cfb_aligned
testq $0x0f,%rdi
setz %al
testq $0x0f,%rsi
setz %bl
testl %ebx,%eax
jnz L$cfb_aligned
negq %rax
movq $512,%rbx
notq %rax
leaq (%rsp),%rbp
cmpq %rbx,%rcx
cmovcq %rcx,%rbx
andq %rbx,%rax
movq %rcx,%rbx
negq %rax
andq $512-1,%rbx
leaq (%rax,%rbp,1),%rsp
movq $512,%rax
cmovzq %rax,%rbx
jmp L$cfb_loop
.p2align 4
L$cfb_loop:
cmpq %rcx,%rbx
cmovaq %rcx,%rbx
movq %rdi,%r8
movq %rsi,%r9
movq %rcx,%r10
movq %rbx,%rcx
movq %rbx,%r11
testq $0x0f,%rdi
cmovnzq %rsp,%rdi
testq $0x0f,%rsi
jz L$cfb_inp_aligned
shrq $3,%rcx
.byte 0xf3,0x48,0xa5
subq %rbx,%rdi
movq %rbx,%rcx
movq %rdi,%rsi
L$cfb_inp_aligned:
leaq -16(%rdx),%rax
leaq 16(%rdx),%rbx
shrq $4,%rcx
.byte 0xf3,0x0f,0xa7,224
movdqa (%rax),%xmm0
movdqa %xmm0,-16(%rdx)
movq %r8,%rdi
movq %r11,%rbx
testq $0x0f,%rdi
jz L$cfb_out_aligned
movq %rbx,%rcx
leaq (%rsp),%rsi
shrq $3,%rcx
.byte 0xf3,0x48,0xa5
subq %rbx,%rdi
L$cfb_out_aligned:
movq %r9,%rsi
movq %r10,%rcx
addq %rbx,%rdi
addq %rbx,%rsi
subq %rbx,%rcx
movq $512,%rbx
jnz L$cfb_loop
cmpq %rbp,%rsp
je L$cfb_done
pxor %xmm0,%xmm0
leaq (%rsp),%rax
L$cfb_bzero:
movaps %xmm0,(%rax)
leaq 16(%rax),%rax
cmpq %rax,%rbp
ja L$cfb_bzero
L$cfb_done:
leaq (%rbp),%rsp
jmp L$cfb_exit
.p2align 4
L$cfb_aligned:
leaq -16(%rdx),%rax
leaq 16(%rdx),%rbx
shrq $4,%rcx
.byte 0xf3,0x0f,0xa7,224
movdqa (%rax),%xmm0
movdqa %xmm0,-16(%rdx)
L$cfb_exit:
movl $1,%eax
leaq 8(%rsp),%rsp
L$cfb_abort:
popq %rbx
popq %rbp
.byte 0xf3,0xc3
.globl _padlock_ofb_encrypt
.p2align 4
_padlock_ofb_encrypt:
pushq %rbp
pushq %rbx
xorl %eax,%eax
testq $15,%rdx
jnz L$ofb_abort
testq $15,%rcx
jnz L$ofb_abort
leaq L$padlock_saved_context(%rip),%rax
pushf
cld
call _padlock_verify_ctx
leaq 16(%rdx),%rdx
xorl %eax,%eax
xorl %ebx,%ebx
testl $32,(%rdx)
jnz L$ofb_aligned
testq $0x0f,%rdi
setz %al
testq $0x0f,%rsi
setz %bl
testl %ebx,%eax
jnz L$ofb_aligned
negq %rax
movq $512,%rbx
notq %rax
leaq (%rsp),%rbp
cmpq %rbx,%rcx
cmovcq %rcx,%rbx
andq %rbx,%rax
movq %rcx,%rbx
negq %rax
andq $512-1,%rbx
leaq (%rax,%rbp,1),%rsp
movq $512,%rax
cmovzq %rax,%rbx
jmp L$ofb_loop
.p2align 4
L$ofb_loop:
cmpq %rcx,%rbx
cmovaq %rcx,%rbx
movq %rdi,%r8
movq %rsi,%r9
movq %rcx,%r10
movq %rbx,%rcx
movq %rbx,%r11
testq $0x0f,%rdi
cmovnzq %rsp,%rdi
testq $0x0f,%rsi
jz L$ofb_inp_aligned
shrq $3,%rcx
.byte 0xf3,0x48,0xa5
subq %rbx,%rdi
movq %rbx,%rcx
movq %rdi,%rsi
L$ofb_inp_aligned:
leaq -16(%rdx),%rax
leaq 16(%rdx),%rbx
shrq $4,%rcx
.byte 0xf3,0x0f,0xa7,232
movdqa (%rax),%xmm0
movdqa %xmm0,-16(%rdx)
movq %r8,%rdi
movq %r11,%rbx
testq $0x0f,%rdi
jz L$ofb_out_aligned
movq %rbx,%rcx
leaq (%rsp),%rsi
shrq $3,%rcx
.byte 0xf3,0x48,0xa5
subq %rbx,%rdi
L$ofb_out_aligned:
movq %r9,%rsi
movq %r10,%rcx
addq %rbx,%rdi
addq %rbx,%rsi
subq %rbx,%rcx
movq $512,%rbx
jnz L$ofb_loop
cmpq %rbp,%rsp
je L$ofb_done
pxor %xmm0,%xmm0
leaq (%rsp),%rax
L$ofb_bzero:
movaps %xmm0,(%rax)
leaq 16(%rax),%rax
cmpq %rax,%rbp
ja L$ofb_bzero
L$ofb_done:
leaq (%rbp),%rsp
jmp L$ofb_exit
.p2align 4
L$ofb_aligned:
leaq -16(%rdx),%rax
leaq 16(%rdx),%rbx
shrq $4,%rcx
.byte 0xf3,0x0f,0xa7,232
movdqa (%rax),%xmm0
movdqa %xmm0,-16(%rdx)
L$ofb_exit:
movl $1,%eax
leaq 8(%rsp),%rsp
L$ofb_abort:
popq %rbx
popq %rbp
.byte 0xf3,0xc3
.globl _padlock_ctr32_encrypt
.p2align 4
_padlock_ctr32_encrypt:
pushq %rbp
pushq %rbx
xorl %eax,%eax
testq $15,%rdx
jnz L$ctr32_abort
testq $15,%rcx
jnz L$ctr32_abort
leaq L$padlock_saved_context(%rip),%rax
pushf
cld
call _padlock_verify_ctx
leaq 16(%rdx),%rdx
xorl %eax,%eax
xorl %ebx,%ebx
testl $32,(%rdx)
jnz L$ctr32_aligned
testq $0x0f,%rdi
setz %al
testq $0x0f,%rsi
setz %bl
testl %ebx,%eax
jnz L$ctr32_aligned
negq %rax
movq $512,%rbx
notq %rax
leaq (%rsp),%rbp
cmpq %rbx,%rcx
cmovcq %rcx,%rbx
andq %rbx,%rax
movq %rcx,%rbx
negq %rax
andq $512-1,%rbx
leaq (%rax,%rbp,1),%rsp
movq $512,%rax
cmovzq %rax,%rbx
L$ctr32_reenter:
movl -4(%rdx),%eax
bswapl %eax
negl %eax
andl $31,%eax
movq $512,%rbx
shll $4,%eax
cmovzq %rbx,%rax
cmpq %rax,%rcx
cmovaq %rax,%rbx
cmovbeq %rcx,%rbx
cmpq %rbx,%rcx
ja L$ctr32_loop
movq %rsi,%rax
cmpq %rsp,%rbp
cmoveq %rdi,%rax
addq %rcx,%rax
negq %rax
andq $0xfff,%rax
cmpq $32,%rax
movq $-32,%rax
cmovaeq %rbx,%rax
andq %rax,%rbx
jz L$ctr32_unaligned_tail
jmp L$ctr32_loop
.p2align 4
L$ctr32_loop:
cmpq %rcx,%rbx
cmovaq %rcx,%rbx
movq %rdi,%r8
movq %rsi,%r9
movq %rcx,%r10
movq %rbx,%rcx
movq %rbx,%r11
testq $0x0f,%rdi
cmovnzq %rsp,%rdi
testq $0x0f,%rsi
jz L$ctr32_inp_aligned
shrq $3,%rcx
.byte 0xf3,0x48,0xa5
subq %rbx,%rdi
movq %rbx,%rcx
movq %rdi,%rsi
L$ctr32_inp_aligned:
leaq -16(%rdx),%rax
leaq 16(%rdx),%rbx
shrq $4,%rcx
.byte 0xf3,0x0f,0xa7,216
movl -4(%rdx),%eax
testl $0xffff0000,%eax
jnz L$ctr32_no_carry
bswapl %eax
addl $0x10000,%eax
bswapl %eax
movl %eax,-4(%rdx)
L$ctr32_no_carry:
movq %r8,%rdi
movq %r11,%rbx
testq $0x0f,%rdi
jz L$ctr32_out_aligned
movq %rbx,%rcx
leaq (%rsp),%rsi
shrq $3,%rcx
.byte 0xf3,0x48,0xa5
subq %rbx,%rdi
L$ctr32_out_aligned:
movq %r9,%rsi
movq %r10,%rcx
addq %rbx,%rdi
addq %rbx,%rsi
subq %rbx,%rcx
movq $512,%rbx
jz L$ctr32_break
cmpq %rbx,%rcx
jae L$ctr32_loop
movq %rcx,%rbx
movq %rsi,%rax
cmpq %rsp,%rbp
cmoveq %rdi,%rax
addq %rcx,%rax
negq %rax
andq $0xfff,%rax
cmpq $32,%rax
movq $-32,%rax
cmovaeq %rbx,%rax
andq %rax,%rbx
jnz L$ctr32_loop
L$ctr32_unaligned_tail:
xorl %eax,%eax
cmpq %rsp,%rbp
cmoveq %rcx,%rax
movq %rdi,%r8
movq %rcx,%rbx
subq %rax,%rsp
shrq $3,%rcx
leaq (%rsp),%rdi
.byte 0xf3,0x48,0xa5
movq %rsp,%rsi
movq %r8,%rdi
movq %rbx,%rcx
jmp L$ctr32_loop
.p2align 4
L$ctr32_break:
cmpq %rbp,%rsp
je L$ctr32_done
pxor %xmm0,%xmm0
leaq (%rsp),%rax
L$ctr32_bzero:
movaps %xmm0,(%rax)
leaq 16(%rax),%rax
cmpq %rax,%rbp
ja L$ctr32_bzero
L$ctr32_done:
leaq (%rbp),%rsp
jmp L$ctr32_exit
.p2align 4
L$ctr32_aligned:
movl -4(%rdx),%eax
bswapl %eax
negl %eax
andl $0xffff,%eax
movq $1048576,%rbx
shll $4,%eax
cmovzq %rbx,%rax
cmpq %rax,%rcx
cmovaq %rax,%rbx
cmovbeq %rcx,%rbx
jbe L$ctr32_aligned_skip
L$ctr32_aligned_loop:
movq %rcx,%r10
movq %rbx,%rcx
movq %rbx,%r11
leaq -16(%rdx),%rax
leaq 16(%rdx),%rbx
shrq $4,%rcx
.byte 0xf3,0x0f,0xa7,216
movl -4(%rdx),%eax
bswapl %eax
addl $0x10000,%eax
bswapl %eax
movl %eax,-4(%rdx)
movq %r10,%rcx
subq %r11,%rcx
movq $1048576,%rbx
jz L$ctr32_exit
cmpq %rbx,%rcx
jae L$ctr32_aligned_loop
L$ctr32_aligned_skip:
leaq (%rsi,%rcx,1),%rbp
negq %rbp
andq $0xfff,%rbp
xorl %eax,%eax
cmpq $32,%rbp
movq $32-1,%rbp
cmovaeq %rax,%rbp
andq %rcx,%rbp
subq %rbp,%rcx
jz L$ctr32_aligned_tail
leaq -16(%rdx),%rax
leaq 16(%rdx),%rbx
shrq $4,%rcx
.byte 0xf3,0x0f,0xa7,216
testq %rbp,%rbp
jz L$ctr32_exit
L$ctr32_aligned_tail:
movq %rdi,%r8
movq %rbp,%rbx
movq %rbp,%rcx
leaq (%rsp),%rbp
subq %rcx,%rsp
shrq $3,%rcx
leaq (%rsp),%rdi
.byte 0xf3,0x48,0xa5
leaq (%r8),%rdi
leaq (%rsp),%rsi
movq %rbx,%rcx
jmp L$ctr32_loop
L$ctr32_exit:
movl $1,%eax
leaq 8(%rsp),%rsp
L$ctr32_abort:
popq %rbx
popq %rbp
.byte 0xf3,0xc3
.byte 86,73,65,32,80,97,100,108,111,99,107,32,120,56,54,95,54,52,32,109,111,100,117,108,101,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
.p2align 4
.data
.p2align 3
L$padlock_saved_context:
.quad 0
```
|
```kotlin
package com.x8bit.bitwarden.ui.vault.feature.itemlisting
import android.content.pm.SigningInfo
import android.net.Uri
import androidx.lifecycle.SavedStateHandle
import app.cash.turbine.test
import com.bitwarden.vault.CipherRepromptType
import com.bitwarden.vault.CipherView
import com.x8bit.bitwarden.R
import com.x8bit.bitwarden.data.auth.repository.AuthRepository
import com.x8bit.bitwarden.data.auth.repository.model.SwitchAccountResult
import com.x8bit.bitwarden.data.auth.repository.model.UserState
import com.x8bit.bitwarden.data.auth.repository.model.ValidatePasswordResult
import com.x8bit.bitwarden.data.auth.repository.model.ValidatePinResult
import com.x8bit.bitwarden.data.auth.repository.model.VaultUnlockType
import com.x8bit.bitwarden.data.autofill.fido2.manager.Fido2CredentialManager
import com.x8bit.bitwarden.data.autofill.fido2.model.Fido2CredentialAssertionResult
import com.x8bit.bitwarden.data.autofill.fido2.model.Fido2CredentialRequest
import com.x8bit.bitwarden.data.autofill.fido2.model.Fido2GetCredentialsRequest
import com.x8bit.bitwarden.data.autofill.fido2.model.Fido2RegisterCredentialResult
import com.x8bit.bitwarden.data.autofill.fido2.model.Fido2ValidateOriginResult
import com.x8bit.bitwarden.data.autofill.fido2.model.UserVerificationRequirement
import com.x8bit.bitwarden.data.autofill.fido2.model.createMockFido2CredentialAssertionRequest
import com.x8bit.bitwarden.data.autofill.fido2.model.createMockFido2CredentialRequest
import com.x8bit.bitwarden.data.autofill.manager.AutofillSelectionManager
import com.x8bit.bitwarden.data.autofill.manager.AutofillSelectionManagerImpl
import com.x8bit.bitwarden.data.autofill.model.AutofillSaveItem
import com.x8bit.bitwarden.data.autofill.model.AutofillSelectionData
import com.x8bit.bitwarden.data.platform.manager.PolicyManager
import com.x8bit.bitwarden.data.platform.manager.SpecialCircumstanceManagerImpl
import com.x8bit.bitwarden.data.platform.manager.ciphermatching.CipherMatchingManager
import com.x8bit.bitwarden.data.platform.manager.clipboard.BitwardenClipboardManager
import com.x8bit.bitwarden.data.platform.manager.event.OrganizationEventManager
import com.x8bit.bitwarden.data.platform.manager.model.OrganizationEvent
import com.x8bit.bitwarden.data.platform.manager.model.SpecialCircumstance
import com.x8bit.bitwarden.data.platform.repository.EnvironmentRepository
import com.x8bit.bitwarden.data.platform.repository.SettingsRepository
import com.x8bit.bitwarden.data.platform.repository.model.DataState
import com.x8bit.bitwarden.data.platform.repository.model.Environment
import com.x8bit.bitwarden.data.platform.repository.util.baseIconUrl
import com.x8bit.bitwarden.data.platform.repository.util.baseWebSendUrl
import com.x8bit.bitwarden.data.vault.datasource.network.model.PolicyTypeJson
import com.x8bit.bitwarden.data.vault.datasource.sdk.model.createMockCipherView
import com.x8bit.bitwarden.data.vault.datasource.sdk.model.createMockCollectionView
import com.x8bit.bitwarden.data.vault.datasource.sdk.model.createMockFolderView
import com.x8bit.bitwarden.data.vault.datasource.sdk.model.createMockSdkFido2CredentialList
import com.x8bit.bitwarden.data.vault.datasource.sdk.model.createMockSendView
import com.x8bit.bitwarden.data.vault.repository.VaultRepository
import com.x8bit.bitwarden.data.vault.repository.model.DecryptFido2CredentialAutofillViewResult
import com.x8bit.bitwarden.data.vault.repository.model.DeleteSendResult
import com.x8bit.bitwarden.data.vault.repository.model.GenerateTotpResult
import com.x8bit.bitwarden.data.vault.repository.model.RemovePasswordSendResult
import com.x8bit.bitwarden.data.vault.repository.model.VaultData
import com.x8bit.bitwarden.ui.platform.base.BaseViewModelTest
import com.x8bit.bitwarden.ui.platform.base.util.asText
import com.x8bit.bitwarden.ui.platform.base.util.concat
import com.x8bit.bitwarden.ui.platform.components.model.AccountSummary
import com.x8bit.bitwarden.ui.platform.components.model.IconData
import com.x8bit.bitwarden.ui.platform.feature.search.model.SearchType
import com.x8bit.bitwarden.ui.vault.feature.addedit.util.createMockPasskeyAssertionOptions
import com.x8bit.bitwarden.ui.vault.feature.addedit.util.createMockPasskeyAttestationOptions
import com.x8bit.bitwarden.ui.vault.feature.itemlisting.model.ListingItemOverflowAction
import com.x8bit.bitwarden.ui.vault.feature.itemlisting.util.createMockDisplayItemForCipher
import com.x8bit.bitwarden.ui.vault.feature.vault.model.VaultFilterType
import com.x8bit.bitwarden.ui.vault.feature.vault.util.toAccountSummaries
import com.x8bit.bitwarden.ui.vault.feature.vault.util.toActiveAccountSummary
import com.x8bit.bitwarden.ui.vault.model.VaultItemCipherType
import com.x8bit.bitwarden.ui.vault.model.VaultItemListingType
import io.mockk.Ordering
import io.mockk.coEvery
import io.mockk.coVerify
import io.mockk.every
import io.mockk.just
import io.mockk.mockk
import io.mockk.mockkStatic
import io.mockk.runs
import io.mockk.unmockkStatic
import io.mockk.verify
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.emptyFlow
import kotlinx.coroutines.test.runTest
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Assertions.assertNull
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
import java.time.Clock
import java.time.Instant
import java.time.ZoneOffset
@Suppress("LargeClass")
class VaultItemListingViewModelTest : BaseViewModelTest() {
private val autofillSelectionManager: AutofillSelectionManager = AutofillSelectionManagerImpl()
private var mockFilteredCiphers: List<CipherView>? = null
private val cipherMatchingManager: CipherMatchingManager = object : CipherMatchingManager {
// Just do no-op filtering unless we have mock filtered data
override suspend fun filterCiphersForMatches(
ciphers: List<CipherView>,
matchUri: String,
): List<CipherView> = mockFilteredCiphers ?: ciphers
}
private val clock: Clock = Clock.fixed(
Instant.parse("2023-10-27T12:00:00Z"),
ZoneOffset.UTC,
)
private val clipboardManager: BitwardenClipboardManager = mockk {
every { setText(any<String>()) } just runs
}
private val mutableUserStateFlow = MutableStateFlow<UserState?>(DEFAULT_USER_STATE)
private val authRepository = mockk<AuthRepository> {
every { activeUserId } answers { mutableUserStateFlow.value?.activeUserId }
every { userStateFlow } returns mutableUserStateFlow
every { logout() } just runs
every { logout(any()) } just runs
every { switchAccount(any()) } returns SwitchAccountResult.AccountSwitched
}
private val mutableVaultDataStateFlow =
MutableStateFlow<DataState<VaultData>>(DataState.Loading)
private val vaultRepository: VaultRepository = mockk {
every { vaultFilterType } returns VaultFilterType.AllVaults
every { vaultDataStateFlow } returns mutableVaultDataStateFlow
every { lockVault(any()) } just runs
every { sync() } just runs
coEvery {
getDecryptedFido2CredentialAutofillViews(any())
} returns DecryptFido2CredentialAutofillViewResult.Error
}
private val environmentRepository: EnvironmentRepository = mockk {
every { environment } returns Environment.Us
every { environmentStateFlow } returns mockk()
}
private val mutablePullToRefreshEnabledFlow = MutableStateFlow(false)
private val mutableIsIconLoadingDisabledFlow = MutableStateFlow(false)
private val settingsRepository: SettingsRepository = mockk {
every { isIconLoadingDisabled } returns false
every { isIconLoadingDisabledFlow } returns mutableIsIconLoadingDisabledFlow
every { getPullToRefreshEnabledFlow() } returns mutablePullToRefreshEnabledFlow
every { isUnlockWithPinEnabled } returns false
}
private val specialCircumstanceManager = SpecialCircumstanceManagerImpl()
private val policyManager: PolicyManager = mockk {
every { getActivePolicies(type = PolicyTypeJson.DISABLE_SEND) } returns emptyList()
every { getActivePoliciesFlow(type = PolicyTypeJson.DISABLE_SEND) } returns emptyFlow()
}
private val fido2CredentialManager: Fido2CredentialManager = mockk {
coEvery { validateOrigin(any()) } returns Fido2ValidateOriginResult.Success
every { isUserVerified } returns false
every { isUserVerified = any() } just runs
every { authenticationAttempts } returns 0
every { authenticationAttempts = any() } just runs
every { hasAuthenticationAttemptsRemaining() } returns true
}
private val organizationEventManager = mockk<OrganizationEventManager> {
every { trackEvent(event = any()) } just runs
}
private val initialState = createVaultItemListingState()
private val initialSavedStateHandle = createSavedStateHandleWithVaultItemListingType(
vaultItemListingType = VaultItemListingType.Login,
)
@Test
fun `initial state should be correct`() = runTest {
val viewModel = createVaultItemListingViewModel()
viewModel.stateFlow.test {
assertEquals(
initialState, awaitItem(),
)
}
}
@Test
fun `initial dialog state should be correct when fido2Request is present`() = runTest {
val fido2CredentialRequest = Fido2CredentialRequest(
"mockUserId",
"{}",
"com.x8bit.bitwarden",
SigningInfo(),
origin = null,
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = fido2CredentialRequest,
)
val viewModel = createVaultItemListingViewModel()
viewModel.stateFlow.test {
assertEquals(
initialState.copy(
fido2CredentialRequest = fido2CredentialRequest,
dialogState = VaultItemListingState.DialogState.Loading(
message = R.string.loading.asText(),
),
shouldFinishOnComplete = true,
),
awaitItem(),
)
}
}
@Test
fun `on LockAccountClick should call lockVault for the given account`() {
val accountUserId = "userId"
val accountSummary = mockk<AccountSummary> {
every { userId } returns accountUserId
}
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.LockAccountClick(accountSummary))
verify { vaultRepository.lockVault(userId = accountUserId) }
}
@Test
fun `on LogoutAccountClick should call logout for the given account`() {
val accountUserId = "userId"
val accountSummary = mockk<AccountSummary> {
every { userId } returns accountUserId
}
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.LogoutAccountClick(accountSummary))
verify { authRepository.logout(userId = accountUserId) }
}
@Test
fun `on SwitchAccountClick should switch to the given account`() = runTest {
val viewModel = createVaultItemListingViewModel()
val updatedUserId = "updatedUserId"
viewModel.trySendAction(
VaultItemListingsAction.SwitchAccountClick(
accountSummary = mockk {
every { userId } returns updatedUserId
},
),
)
verify { authRepository.switchAccount(userId = updatedUserId) }
}
@Test
fun `BackClick should emit NavigateBack`() = runTest {
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
viewModel.trySendAction(VaultItemListingsAction.BackClick)
assertEquals(VaultItemListingEvent.NavigateBack, awaitItem())
}
}
@Test
fun `DismissDialogClick should clear the dialog state`() {
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.DismissDialogClick)
assertEquals(initialState.copy(dialogState = null), viewModel.stateFlow.value)
}
@Test
fun `SearchIconClick should emit NavigateToVaultSearchScreen`() = runTest {
val searchType = SearchType.Vault.Logins
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
viewModel.trySendAction(VaultItemListingsAction.SearchIconClick)
assertEquals(VaultItemListingEvent.NavigateToSearchScreen(searchType), awaitItem())
}
}
@Test
fun `LockClick should call lockVaultForCurrentUser`() {
every { vaultRepository.lockVaultForCurrentUser() } just runs
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.LockClick)
verify(exactly = 1) {
vaultRepository.lockVaultForCurrentUser()
}
}
@Test
fun `SyncClick should display the loading dialog and call sync`() {
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.SyncClick)
assertEquals(
initialState.copy(
dialogState = VaultItemListingState.DialogState.Loading(
message = R.string.syncing.asText(),
),
),
viewModel.stateFlow.value,
)
verify(exactly = 1) {
vaultRepository.sync()
}
}
@Test
fun `ItemClick for vault item when autofill should post to the AutofillSelectionManager`() =
runTest {
setupMockUri()
val cipherView = createMockCipherView(
number = 1,
fido2Credentials = createMockSdkFido2CredentialList(number = 1),
)
coEvery {
vaultRepository.getDecryptedFido2CredentialAutofillViews(
cipherViewList = listOf(cipherView),
)
} returns DecryptFido2CredentialAutofillViewResult.Error
specialCircumstanceManager.specialCircumstance =
SpecialCircumstance.AutofillSelection(
autofillSelectionData = AutofillSelectionData(
type = AutofillSelectionData.Type.LOGIN,
uri = "path_to_url",
),
shouldFinishWhenComplete = true,
)
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
)
val viewModel = createVaultItemListingViewModel()
autofillSelectionManager.autofillSelectionFlow.test {
viewModel.trySendAction(VaultItemListingsAction.ItemClick(id = "mockId-1"))
assertEquals(
cipherView,
awaitItem(),
)
}
coVerify {
vaultRepository.getDecryptedFido2CredentialAutofillViews(
cipherViewList = listOf(cipherView),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `ItemClick for vault item during FIDO 2 registration should show FIDO 2 error dialog when cipherView is null`() {
val cipherView = createMockCipherView(number = 1)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = createMockFido2CredentialRequest(number = 1),
)
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
)
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.ItemClick(cipherView.id.orEmpty()))
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `ItemClick for vault item during FIDO 2 registration should show FIDO 2 error dialog when PasskeyCreateOptions is null`() {
setupMockUri()
val cipherView = createMockCipherView(number = 1)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = createMockFido2CredentialRequest(number = 1),
)
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
)
every { fido2CredentialManager.getPasskeyAttestationOptionsOrNull(any()) } returns null
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.ItemClick(cipherView.id.orEmpty()))
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `ItemClick for vault item during FIDO 2 registration should show overwrite passkey confirmation when selected cipher has existing passkey`() {
runTest {
setupMockUri()
val cipherView = createMockCipherView(
number = 1,
fido2Credentials = createMockSdkFido2CredentialList(number = 1),
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = createMockFido2CredentialRequest(number = 1),
)
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
)
every {
fido2CredentialManager.getPasskeyAttestationOptionsOrNull(any())
} returns createMockPasskeyAttestationOptions(
number = 1,
userVerificationRequirement = UserVerificationRequirement.REQUIRED,
)
coEvery {
fido2CredentialManager.registerFido2Credential(
any(),
any(),
any(),
)
} returns Fido2RegisterCredentialResult.Success("mockResponse")
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.ItemClick(cipherView.id.orEmpty()))
assertEquals(
VaultItemListingState.DialogState.OverwritePasskeyConfirmationPrompt(
cipherViewId = cipherView.id!!,
),
viewModel.stateFlow.value.dialogState,
)
}
}
@Suppress("MaxLineLength")
@Test
fun `ItemClick for vault item during FIDO 2 registration should show loading dialog, then request user verification when required`() =
runTest {
setupMockUri()
val cipherView = createMockCipherView(number = 1, fido2Credentials = null)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = createMockFido2CredentialRequest(number = 1),
)
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
)
every {
fido2CredentialManager.getPasskeyAttestationOptionsOrNull(any())
} returns createMockPasskeyAttestationOptions(
number = 1,
userVerificationRequirement = UserVerificationRequirement.REQUIRED,
)
coEvery {
fido2CredentialManager.registerFido2Credential(
any(),
any(),
any(),
)
} returns Fido2RegisterCredentialResult.Success("mockResponse")
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.ItemClick(cipherView.id.orEmpty()))
viewModel.eventFlow.test {
assertEquals(
VaultItemListingState.DialogState.Loading(R.string.saving.asText()),
viewModel.stateFlow.value.dialogState,
)
assertEquals(
VaultItemListingEvent.DismissPullToRefresh,
awaitItem(),
)
assertEquals(
VaultItemListingEvent.Fido2UserVerification(
isRequired = true,
selectedCipherView = cipherView,
),
awaitItem(),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `ItemClick for vault item during FIDO 2 registration should skip user verification and perform registration when discouraged`() =
runTest {
setupMockUri()
val cipherView = createMockCipherView(number = 1)
val mockFido2CredentialRequest = createMockFido2CredentialRequest(number = 1)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = mockFido2CredentialRequest,
)
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
)
every {
fido2CredentialManager.getPasskeyAttestationOptionsOrNull(any())
} returns createMockPasskeyAttestationOptions(
number = 1,
userVerificationRequirement = UserVerificationRequirement.DISCOURAGED,
)
coEvery {
fido2CredentialManager.registerFido2Credential(
any(),
any(),
any(),
)
} returns Fido2RegisterCredentialResult.Success("mockResponse")
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.ItemClick(cipherView.id.orEmpty()))
coVerify {
fido2CredentialManager.registerFido2Credential(
userId = DEFAULT_USER_STATE.activeUserId,
fido2CredentialRequest = mockFido2CredentialRequest,
selectedCipherView = cipherView,
)
}
}
@Suppress("MaxLineLength")
@Test
fun `ItemClick for vault item during FIDO 2 registration should skip user verification when user is verified`() {
setupMockUri()
val cipherView = createMockCipherView(number = 1)
val mockFido2CredentialRequest = createMockFido2CredentialRequest(number = 1)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = mockFido2CredentialRequest,
)
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
)
every {
fido2CredentialManager.getPasskeyAttestationOptionsOrNull(any())
} returns createMockPasskeyAttestationOptions(
number = 1,
userVerificationRequirement = UserVerificationRequirement.REQUIRED,
)
coEvery {
fido2CredentialManager.registerFido2Credential(
any(),
any(),
any(),
)
} returns Fido2RegisterCredentialResult.Success("mockResponse")
every { fido2CredentialManager.isUserVerified } returns true
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.ItemClick(cipherView.id.orEmpty()))
coVerify { fido2CredentialManager.isUserVerified }
coVerify(exactly = 1) {
fido2CredentialManager.registerFido2Credential(
userId = DEFAULT_USER_STATE.activeUserId,
fido2CredentialRequest = mockFido2CredentialRequest,
selectedCipherView = cipherView,
)
}
}
@Test
fun `ItemClick for vault item should emit NavigateToVaultItem`() = runTest {
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
viewModel.trySendAction(VaultItemListingsAction.ItemClick(id = "mock"))
assertEquals(VaultItemListingEvent.NavigateToVaultItem(id = "mock"), awaitItem())
}
}
@Test
fun `ItemClick for send item should emit NavigateToSendItem`() = runTest {
val viewModel = createVaultItemListingViewModel(
createSavedStateHandleWithVaultItemListingType(VaultItemListingType.SendFile),
)
viewModel.eventFlow.test {
viewModel.trySendAction(VaultItemListingsAction.ItemClick(id = "mock"))
assertEquals(VaultItemListingEvent.NavigateToSendItem(id = "mock"), awaitItem())
}
}
@Test
fun `MasterPasswordRepromptSubmit for a request Error should show a generic error dialog`() =
runTest {
setupMockUri()
val cipherView = createMockCipherView(number = 1)
val cipherId = "mockId-1"
val password = "password"
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
)
val viewModel = createVaultItemListingViewModel()
coEvery {
authRepository.validatePassword(password = password)
} returns ValidatePasswordResult.Error
val initialState = createVaultItemListingState(
viewState = VaultItemListingState.ViewState.Content(
displayCollectionList = emptyList(),
displayItemList = listOf(
createMockDisplayItemForCipher(number = 1)
.copy(secondSubtitleTestTag = "PasskeySite"),
),
displayFolderList = emptyList(),
),
)
assertEquals(
initialState,
viewModel.stateFlow.value,
)
viewModel.trySendAction(
VaultItemListingsAction.MasterPasswordRepromptSubmit(
password = password,
masterPasswordRepromptData = MasterPasswordRepromptData.Autofill(
cipherId = cipherId,
),
),
)
assertEquals(
initialState.copy(
dialogState = VaultItemListingState.DialogState.Error(
title = null,
message = R.string.generic_error_message.asText(),
),
),
viewModel.stateFlow.value,
)
}
@Suppress("MaxLineLength")
@Test
fun `MasterPasswordRepromptSubmit for a request Success with an invalid password should show an invalid password dialog`() =
runTest {
setupMockUri()
val cipherView = createMockCipherView(number = 1)
val cipherId = "mockId-1"
val password = "password"
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
)
val initialState = createVaultItemListingState(
viewState = VaultItemListingState.ViewState.Content(
displayCollectionList = emptyList(),
displayItemList = listOf(
createMockDisplayItemForCipher(number = 1)
.copy(secondSubtitleTestTag = "PasskeySite"),
),
displayFolderList = emptyList(),
),
)
val viewModel = createVaultItemListingViewModel()
coEvery {
authRepository.validatePassword(password = password)
} returns ValidatePasswordResult.Success(isValid = false)
assertEquals(
initialState,
viewModel.stateFlow.value,
)
viewModel.trySendAction(
VaultItemListingsAction.MasterPasswordRepromptSubmit(
password = password,
masterPasswordRepromptData = MasterPasswordRepromptData.Autofill(
cipherId = cipherId,
),
),
)
assertEquals(
initialState.copy(
dialogState = VaultItemListingState.DialogState.Error(
title = null,
message = R.string.invalid_master_password.asText(),
),
),
viewModel.stateFlow.value,
)
}
@Suppress("MaxLineLength")
@Test
fun `MasterPasswordRepromptSubmit for a request Success with a valid password for autofill should post to the AutofillSelectionManager`() =
runTest {
setupMockUri()
val cipherView = createMockCipherView(number = 1)
val cipherId = "mockId-1"
val password = "password"
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
)
val viewModel = createVaultItemListingViewModel()
coEvery {
authRepository.validatePassword(password = password)
} returns ValidatePasswordResult.Success(isValid = true)
autofillSelectionManager.autofillSelectionFlow.test {
viewModel.trySendAction(
VaultItemListingsAction.MasterPasswordRepromptSubmit(
password = password,
masterPasswordRepromptData = MasterPasswordRepromptData.Autofill(
cipherId = cipherId,
),
),
)
assertEquals(
cipherView,
awaitItem(),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `MasterPasswordRepromptSubmit for a request Success with a valid password for overflow actions should process the action`() =
runTest {
val cipherId = "cipherId-1234"
val password = "password"
val viewModel = createVaultItemListingViewModel()
coEvery {
authRepository.validatePassword(password = password)
} returns ValidatePasswordResult.Success(isValid = true)
viewModel.eventFlow.test {
viewModel.trySendAction(
VaultItemListingsAction.MasterPasswordRepromptSubmit(
password = password,
masterPasswordRepromptData = MasterPasswordRepromptData.OverflowItem(
action = ListingItemOverflowAction.VaultAction.EditClick(
cipherId = cipherId,
requiresPasswordReprompt = true,
),
),
),
)
// An Edit action navigates to the Edit screen
assertEquals(VaultItemListingEvent.NavigateToEditCipher(cipherId), awaitItem())
}
}
@Test
fun `AddVaultItemClick for vault item should emit NavigateToAddVaultItem`() = runTest {
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
viewModel.trySendAction(VaultItemListingsAction.AddVaultItemClick)
assertEquals(
VaultItemListingEvent.NavigateToAddVaultItem(VaultItemCipherType.LOGIN),
awaitItem(),
)
}
}
@Test
fun `AddVaultItemClick for send item should emit NavigateToAddVaultItem`() = runTest {
val viewModel = createVaultItemListingViewModel(
createSavedStateHandleWithVaultItemListingType(VaultItemListingType.SendText),
)
viewModel.eventFlow.test {
viewModel.trySendAction(VaultItemListingsAction.AddVaultItemClick)
assertEquals(VaultItemListingEvent.NavigateToAddSendItem, awaitItem())
}
}
@Test
fun `FolderClick for vault item should emit NavigateToFolderItem`() = runTest {
val viewModel = createVaultItemListingViewModel()
val testId = "1"
viewModel.eventFlow.test {
viewModel.trySendAction(VaultItemListingsAction.FolderClick(testId))
assertEquals(VaultItemListingEvent.NavigateToFolderItem(testId), awaitItem())
}
}
@Test
fun `CollectionClick for vault item should emit NavigateToCollectionItem`() = runTest {
val viewModel = createVaultItemListingViewModel()
val testId = "1"
viewModel.eventFlow.test {
viewModel.trySendAction(VaultItemListingsAction.CollectionClick(testId))
assertEquals(VaultItemListingEvent.NavigateToCollectionItem(testId), awaitItem())
}
}
@Test
fun `RefreshClick should sync`() = runTest {
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.RefreshClick)
verify { vaultRepository.sync() }
}
@Test
fun `OverflowOptionClick Send EditClick should emit NavigateToSendItem`() = runTest {
val sendId = "sendId"
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.SendAction.EditClick(sendId = sendId),
),
)
assertEquals(VaultItemListingEvent.NavigateToSendItem(sendId), awaitItem())
}
}
@Test
fun `OverflowOptionClick Send CopyUrlClick should call setText on clipboardManager`() {
val sendUrl = "www.test.com"
every { clipboardManager.setText(sendUrl) } just runs
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.SendAction.CopyUrlClick(sendUrl = sendUrl),
),
)
verify(exactly = 1) {
clipboardManager.setText(text = sendUrl)
}
}
@Test
fun `OverflowOptionClick Send DeleteClick with deleteSend error should display error dialog`() =
runTest {
val sendId = "sendId1234"
coEvery { vaultRepository.deleteSend(sendId) } returns DeleteSendResult.Error
val viewModel = createVaultItemListingViewModel()
viewModel.stateFlow.test {
assertEquals(initialState, awaitItem())
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.SendAction.DeleteClick(sendId = sendId),
),
)
assertEquals(
initialState.copy(
dialogState = VaultItemListingState.DialogState.Loading(
message = R.string.deleting.asText(),
),
),
awaitItem(),
)
assertEquals(
initialState.copy(
dialogState = VaultItemListingState.DialogState.Error(
title = R.string.an_error_has_occurred.asText(),
message = R.string.generic_error_message.asText(),
),
),
awaitItem(),
)
}
}
@Test
fun `OverflowOptionClick Send DeleteClick with deleteSend success should emit ShowToast`() =
runTest {
val sendId = "sendId1234"
coEvery { vaultRepository.deleteSend(sendId) } returns DeleteSendResult.Success
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.SendAction.DeleteClick(sendId = sendId),
),
)
assertEquals(
VaultItemListingEvent.ShowToast(R.string.send_deleted.asText()),
awaitItem(),
)
}
}
@Test
fun `OverflowOptionClick Send ShareUrlClick should emit ShowShareSheet`() = runTest {
val sendUrl = "www.test.com"
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.SendAction.ShareUrlClick(sendUrl = sendUrl),
),
)
assertEquals(VaultItemListingEvent.ShowShareSheet(sendUrl), awaitItem())
}
}
@Suppress("MaxLineLength")
@Test
fun `OverflowOptionClick Send RemovePasswordClick with removePasswordSend error should display error dialog`() =
runTest {
val sendId = "sendId1234"
coEvery {
vaultRepository.removePasswordSend(sendId)
} returns RemovePasswordSendResult.Error(errorMessage = null)
val viewModel = createVaultItemListingViewModel()
viewModel.stateFlow.test {
assertEquals(initialState, awaitItem())
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.SendAction.RemovePasswordClick(sendId = sendId),
),
)
assertEquals(
initialState.copy(
dialogState = VaultItemListingState.DialogState.Loading(
message = R.string.removing_send_password.asText(),
),
),
awaitItem(),
)
assertEquals(
initialState.copy(
dialogState = VaultItemListingState.DialogState.Error(
title = R.string.an_error_has_occurred.asText(),
message = R.string.generic_error_message.asText(),
),
),
awaitItem(),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `OverflowOptionClick Send RemovePasswordClick with removePasswordSend success should emit ShowToast`() =
runTest {
val sendId = "sendId1234"
coEvery {
vaultRepository.removePasswordSend(sendId)
} returns RemovePasswordSendResult.Success(mockk())
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.SendAction.RemovePasswordClick(sendId = sendId),
),
)
assertEquals(
VaultItemListingEvent.ShowToast(R.string.send_password_removed.asText()),
awaitItem(),
)
}
}
@Test
fun `OverflowOptionClick Vault CopyNoteClick should call setText on the ClipboardManager`() =
runTest {
val notes = "notes"
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.VaultAction.CopyNoteClick(notes = notes),
),
)
verify(exactly = 1) {
clipboardManager.setText(notes)
}
}
@Test
fun `OverflowOptionClick Vault CopyNumberClick should call setText on the ClipboardManager`() =
runTest {
val number = "12345-4321-9876-6789"
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.VaultAction.CopyNumberClick(
number = number,
requiresPasswordReprompt = true,
),
),
)
verify(exactly = 1) {
clipboardManager.setText(number)
}
}
@Suppress("MaxLineLength")
@Test
fun `OverflowOptionClick Vault CopyPasswordClick should call setText on the ClipboardManager`() =
runTest {
val password = "passTheWord"
val cipherId = "cipherId"
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.VaultAction.CopyPasswordClick(
password = password,
requiresPasswordReprompt = true,
cipherId = cipherId,
),
),
)
verify(exactly = 1) {
clipboardManager.setText(password)
organizationEventManager.trackEvent(
event = OrganizationEvent.CipherClientCopiedPassword(cipherId = cipherId),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `OverflowOptionClick Vault CopySecurityCodeClick should call setText on the ClipboardManager`() =
runTest {
val securityCode = "234"
val cipherId = "cipherId"
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.VaultAction.CopySecurityCodeClick(
securityCode = securityCode,
cipherId = cipherId,
requiresPasswordReprompt = true,
),
),
)
verify(exactly = 1) {
clipboardManager.setText(securityCode)
organizationEventManager.trackEvent(
event = OrganizationEvent.CipherClientCopiedCardCode(cipherId = cipherId),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `OverflowOptionClick Vault CopyTotpClick with GenerateTotpCode success should call setText on the ClipboardManager`() =
runTest {
val totpCode = "totpCode"
val code = "Code"
coEvery {
vaultRepository.generateTotp(totpCode, clock.instant())
} returns GenerateTotpResult.Success(code, 30)
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.VaultAction.CopyTotpClick(totpCode),
),
)
verify(exactly = 1) {
clipboardManager.setText(code)
}
}
@Suppress("MaxLineLength")
@Test
fun `OverflowOptionClick Vault CopyTotpClick with GenerateTotpCode failure should not call setText on the ClipboardManager`() =
runTest {
val totpCode = "totpCode"
coEvery {
vaultRepository.generateTotp(totpCode, clock.instant())
} returns GenerateTotpResult.Error
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.VaultAction.CopyTotpClick(totpCode),
),
)
verify(exactly = 0) {
clipboardManager.setText(text = any<String>())
}
}
@Suppress("MaxLineLength")
@Test
fun `OverflowOptionClick Vault CopyUsernameClick should call setText on the ClipboardManager`() =
runTest {
val username = "bitwarden"
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.VaultAction.CopyUsernameClick(
username = username,
),
),
)
verify(exactly = 1) {
clipboardManager.setText(username)
}
}
@Test
fun `OverflowOptionClick Vault EditClick should emit NavigateToEditCipher`() = runTest {
val cipherId = "cipherId-1234"
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.VaultAction.EditClick(
cipherId = cipherId,
requiresPasswordReprompt = true,
),
),
)
assertEquals(VaultItemListingEvent.NavigateToEditCipher(cipherId), awaitItem())
}
}
@Test
fun `OverflowOptionClick Vault LaunchClick should emit NavigateToUrl`() = runTest {
val url = "www.test.com"
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.VaultAction.LaunchClick(url = url),
),
)
assertEquals(VaultItemListingEvent.NavigateToUrl(url), awaitItem())
}
}
@Test
fun `OverflowOptionClick Vault ViewClick should emit NavigateToUrl`() = runTest {
val cipherId = "cipherId-9876"
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
viewModel.trySendAction(
VaultItemListingsAction.OverflowOptionClick(
ListingItemOverflowAction.VaultAction.ViewClick(cipherId = cipherId),
),
)
assertEquals(VaultItemListingEvent.NavigateToVaultItem(cipherId), awaitItem())
}
}
@Test
fun `vaultDataStateFlow Loaded with items should update ViewState to Content`() =
runTest {
setupMockUri()
val dataState = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(createMockCipherView(number = 1, isDeleted = false)),
folderViewList = listOf(createMockFolderView(number = 1)),
collectionViewList = listOf(createMockCollectionView(number = 1)),
sendViewList = listOf(createMockSendView(number = 1)),
),
)
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
mutableVaultDataStateFlow.tryEmit(value = dataState)
assertEquals(VaultItemListingEvent.DismissPullToRefresh, awaitItem())
}
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.Content(
displayCollectionList = emptyList(),
displayItemList = listOf(
createMockDisplayItemForCipher(number = 1)
.copy(secondSubtitleTestTag = "PasskeySite"),
),
displayFolderList = emptyList(),
),
),
viewModel.stateFlow.value,
)
}
@Suppress("MaxLineLength")
@Test
fun `vaultDataStateFlow Loaded with items and autofill filtering should update ViewState to Content with filtered data`() =
runTest {
setupMockUri()
val cipherView1 = createMockCipherView(
number = 1,
fido2Credentials = createMockSdkFido2CredentialList(number = 1),
)
val cipherView2 = createMockCipherView(
number = 2,
fido2Credentials = createMockSdkFido2CredentialList(number = 1),
)
coEvery {
vaultRepository.getDecryptedFido2CredentialAutofillViews(
cipherViewList = listOf(cipherView1, cipherView2),
)
} returns DecryptFido2CredentialAutofillViewResult.Success(emptyList())
// Set up the data to be filtered
mockFilteredCiphers = listOf(cipherView1)
val autofillSelectionData = AutofillSelectionData(
type = AutofillSelectionData.Type.LOGIN,
uri = "path_to_url",
)
specialCircumstanceManager.specialCircumstance =
SpecialCircumstance.AutofillSelection(
autofillSelectionData = autofillSelectionData,
shouldFinishWhenComplete = true,
)
val dataState = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView1, cipherView2),
folderViewList = listOf(createMockFolderView(number = 1)),
collectionViewList = listOf(createMockCollectionView(number = 1)),
sendViewList = listOf(createMockSendView(number = 1)),
),
)
val viewModel = createVaultItemListingViewModel()
mutableVaultDataStateFlow.value = dataState
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.Content(
displayCollectionList = emptyList(),
displayItemList = listOf(
createMockDisplayItemForCipher(number = 1).copy(
secondSubtitleTestTag = "PasskeySite",
subtitleTestTag = "PasskeyName",
iconData = IconData.Network(
uri = "path_to_url",
fallbackIconRes = R.drawable.ic_login_item_passkey,
),
isAutofill = true,
),
),
displayFolderList = emptyList(),
),
)
.copy(
autofillSelectionData = autofillSelectionData,
shouldFinishOnComplete = true,
),
viewModel.stateFlow.value,
)
coVerify {
vaultRepository.getDecryptedFido2CredentialAutofillViews(
cipherViewList = listOf(cipherView1, cipherView2),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `vaultDataStateFlow Loaded with items and fido2 filtering should update ViewState to Content with filtered data`() =
runTest {
setupMockUri()
val cipherView1 = createMockCipherView(
number = 1,
fido2Credentials = createMockSdkFido2CredentialList(number = 1),
)
val cipherView2 = createMockCipherView(
number = 2,
fido2Credentials = createMockSdkFido2CredentialList(number = 1),
)
coEvery {
vaultRepository.getDecryptedFido2CredentialAutofillViews(
cipherViewList = listOf(cipherView1, cipherView2),
)
} returns DecryptFido2CredentialAutofillViewResult.Success(emptyList())
coEvery {
fido2CredentialManager.validateOrigin(any())
} returns Fido2ValidateOriginResult.Success
mockFilteredCiphers = listOf(cipherView1)
val fido2CredentialRequest = Fido2CredentialRequest(
userId = "activeUserId",
requestJson = "{}",
packageName = "com.x8bit.bitwarden",
signingInfo = SigningInfo(),
origin = "mockOrigin",
)
specialCircumstanceManager.specialCircumstance =
SpecialCircumstance.Fido2Save(
fido2CredentialRequest = fido2CredentialRequest,
)
val dataState = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView1, cipherView2),
folderViewList = listOf(createMockFolderView(number = 1)),
collectionViewList = listOf(createMockCollectionView(number = 1)),
sendViewList = listOf(createMockSendView(number = 1)),
),
)
val viewModel = createVaultItemListingViewModel()
mutableVaultDataStateFlow.value = dataState
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.Content(
displayCollectionList = emptyList(),
displayItemList = listOf(
createMockDisplayItemForCipher(number = 1)
.copy(
secondSubtitleTestTag = "PasskeySite",
subtitleTestTag = "PasskeyName",
iconData = IconData.Network(
uri = "path_to_url",
fallbackIconRes = R.drawable.ic_login_item_passkey,
),
isFido2Creation = true,
),
),
displayFolderList = emptyList(),
),
)
.copy(
fido2CredentialRequest = fido2CredentialRequest,
shouldFinishOnComplete = true,
),
viewModel.stateFlow.value,
)
coVerify {
vaultRepository.getDecryptedFido2CredentialAutofillViews(
cipherViewList = listOf(cipherView1, cipherView2),
)
fido2CredentialManager.validateOrigin(any())
}
}
@Suppress("MaxLineLength")
@Test
fun `vaultDataStateFlow Loaded with Fido2GetCredentials special circumstance should update ViewState to Content with filtered data`() =
runTest {
setupMockUri()
val cipherView1 = createMockCipherView(
number = 1,
fido2Credentials = createMockSdkFido2CredentialList(number = 1),
)
val cipherView2 = createMockCipherView(
number = 2,
fido2Credentials = createMockSdkFido2CredentialList(number = 1),
)
every {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(any())
} returns createMockPasskeyAssertionOptions(
number = 1,
)
coEvery {
vaultRepository.getDecryptedFido2CredentialAutofillViews(
cipherViewList = listOf(cipherView1, cipherView2),
)
} returns DecryptFido2CredentialAutofillViewResult.Success(emptyList())
mockFilteredCiphers = listOf(cipherView1)
val fido2GetCredentialRequest = Fido2GetCredentialsRequest(
requestJson = "{}",
packageName = "com.x8bit.bitwarden",
signingInfo = SigningInfo(),
origin = "mockOrigin",
candidateQueryData = mockk(),
clientDataHash = byteArrayOf(0),
id = "mockId",
)
specialCircumstanceManager.specialCircumstance =
SpecialCircumstance.Fido2GetCredentials(
fido2GetCredentialsRequest = fido2GetCredentialRequest,
)
val dataState = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView1, cipherView2),
folderViewList = listOf(createMockFolderView(number = 1)),
collectionViewList = listOf(createMockCollectionView(number = 1)),
sendViewList = listOf(createMockSendView(number = 1)),
),
)
val viewModel = createVaultItemListingViewModel()
mutableVaultDataStateFlow.value = dataState
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.Content(
displayCollectionList = emptyList(),
displayItemList = listOf(
createMockDisplayItemForCipher(number = 1)
.copy(
secondSubtitleTestTag = "PasskeySite",
),
),
displayFolderList = emptyList(),
),
)
.copy(
fido2GetCredentialsRequest = fido2GetCredentialRequest,
shouldFinishOnComplete = true,
),
viewModel.stateFlow.value,
)
coVerify {
vaultRepository.getDecryptedFido2CredentialAutofillViews(
cipherViewList = listOf(cipherView1, cipherView2),
)
}
}
@Test
fun `vaultDataStateFlow Loaded with empty items should update ViewState to NoItems`() =
runTest {
val dataState = DataState.Loaded(
data = VaultData(
cipherViewList = emptyList(),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
)
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
mutableVaultDataStateFlow.tryEmit(value = dataState)
assertEquals(VaultItemListingEvent.DismissPullToRefresh, awaitItem())
}
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.NoItems(
message = R.string.no_items.asText(),
shouldShowAddButton = true,
buttonText = R.string.add_an_item.asText(),
),
),
viewModel.stateFlow.value,
)
}
@Test
fun `vaultDataStateFlow Loaded with trash items should update ViewState to NoItems`() =
runTest {
val dataState = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(createMockCipherView(number = 1, isDeleted = true)),
folderViewList = listOf(createMockFolderView(number = 1)),
collectionViewList = listOf(createMockCollectionView(number = 1)),
sendViewList = listOf(createMockSendView(number = 1)),
),
)
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
mutableVaultDataStateFlow.tryEmit(value = dataState)
assertEquals(VaultItemListingEvent.DismissPullToRefresh, awaitItem())
}
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.NoItems(
message = R.string.no_items.asText(),
shouldShowAddButton = true,
buttonText = R.string.add_an_item.asText(),
),
),
viewModel.stateFlow.value,
)
}
@Test
fun `vaultDataStateFlow Loading should update state to Loading`() = runTest {
mutableVaultDataStateFlow.tryEmit(value = DataState.Loading)
val viewModel = createVaultItemListingViewModel()
assertEquals(
createVaultItemListingState(viewState = VaultItemListingState.ViewState.Loading),
viewModel.stateFlow.value,
)
}
@Test
fun `vaultDataStateFlow Pending with data should update state to Content`() = runTest {
setupMockUri()
mutableVaultDataStateFlow.tryEmit(
value = DataState.Pending(
data = VaultData(
cipherViewList = listOf(createMockCipherView(number = 1, isDeleted = false)),
folderViewList = listOf(createMockFolderView(number = 1)),
collectionViewList = listOf(createMockCollectionView(number = 1)),
sendViewList = listOf(createMockSendView(number = 1)),
),
),
)
val viewModel = createVaultItemListingViewModel()
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.Content(
displayCollectionList = emptyList(),
displayItemList = listOf(
createMockDisplayItemForCipher(number = 1)
.copy(secondSubtitleTestTag = "PasskeySite"),
),
displayFolderList = emptyList(),
),
),
viewModel.stateFlow.value,
)
}
@Test
fun `vaultDataStateFlow Pending with empty data should update state to NoItems`() = runTest {
mutableVaultDataStateFlow.tryEmit(
value = DataState.Pending(
data = VaultData(
cipherViewList = listOf(createMockCipherView(number = 1, isDeleted = true)),
folderViewList = listOf(createMockFolderView(number = 1)),
collectionViewList = listOf(createMockCollectionView(number = 1)),
sendViewList = listOf(createMockSendView(number = 1)),
),
),
)
val viewModel = createVaultItemListingViewModel()
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.NoItems(
message = R.string.no_items.asText(),
shouldShowAddButton = true,
buttonText = R.string.add_an_item.asText(),
),
),
viewModel.stateFlow.value,
)
}
@Test
fun `vaultDataStateFlow Pending with trash data should update state to NoItems`() = runTest {
mutableVaultDataStateFlow.tryEmit(
value = DataState.Pending(
data = VaultData(
cipherViewList = listOf(createMockCipherView(number = 1, isDeleted = true)),
folderViewList = listOf(createMockFolderView(number = 1)),
collectionViewList = listOf(createMockCollectionView(number = 1)),
sendViewList = listOf(createMockSendView(number = 1)),
),
),
)
val viewModel = createVaultItemListingViewModel()
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.NoItems(
message = R.string.no_items.asText(),
shouldShowAddButton = true,
buttonText = R.string.add_an_item.asText(),
),
),
viewModel.stateFlow.value,
)
}
@Test
fun `vaultDataStateFlow Error without data should update state to Error`() = runTest {
val dataState = DataState.Error<VaultData>(
error = IllegalStateException(),
)
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
mutableVaultDataStateFlow.tryEmit(value = dataState)
assertEquals(VaultItemListingEvent.DismissPullToRefresh, awaitItem())
}
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.Error(
message = R.string.generic_error_message.asText(),
),
),
viewModel.stateFlow.value,
)
}
@Test
fun `vaultDataStateFlow Error with data should update state to Content`() = runTest {
setupMockUri()
val dataState = DataState.Error(
data = VaultData(
cipherViewList = listOf(createMockCipherView(number = 1, isDeleted = false)),
folderViewList = listOf(createMockFolderView(number = 1)),
collectionViewList = listOf(createMockCollectionView(number = 1)),
sendViewList = listOf(createMockSendView(number = 1)),
),
error = IllegalStateException(),
)
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
mutableVaultDataStateFlow.tryEmit(value = dataState)
assertEquals(VaultItemListingEvent.DismissPullToRefresh, awaitItem())
}
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.Content(
displayCollectionList = emptyList(),
displayItemList = listOf(
createMockDisplayItemForCipher(number = 1)
.copy(secondSubtitleTestTag = "PasskeySite"),
),
displayFolderList = emptyList(),
),
),
viewModel.stateFlow.value,
)
unmockkStatic(Uri::class)
}
@Test
fun `vaultDataStateFlow Error with empty data should update state to NoItems`() = runTest {
val dataState = DataState.Error(
data = VaultData(
cipherViewList = emptyList(),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
error = IllegalStateException(),
)
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
mutableVaultDataStateFlow.tryEmit(value = dataState)
assertEquals(VaultItemListingEvent.DismissPullToRefresh, awaitItem())
}
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.NoItems(
message = R.string.no_items.asText(),
shouldShowAddButton = true,
buttonText = R.string.add_an_item.asText(),
),
),
viewModel.stateFlow.value,
)
}
@Test
fun `vaultDataStateFlow Error with trash data should update state to NoItems`() = runTest {
val dataState = DataState.Error(
data = VaultData(
cipherViewList = listOf(createMockCipherView(number = 1, isDeleted = true)),
folderViewList = listOf(createMockFolderView(number = 1)),
collectionViewList = listOf(createMockCollectionView(number = 1)),
sendViewList = listOf(createMockSendView(number = 1)),
),
error = IllegalStateException(),
)
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
mutableVaultDataStateFlow.tryEmit(value = dataState)
assertEquals(VaultItemListingEvent.DismissPullToRefresh, awaitItem())
}
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.NoItems(
message = R.string.no_items.asText(),
shouldShowAddButton = true,
buttonText = R.string.add_an_item.asText(),
),
),
viewModel.stateFlow.value,
)
}
@Test
fun `vaultDataStateFlow NoNetwork without data should update state to Error`() = runTest {
val dataState = DataState.NoNetwork<VaultData>()
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
mutableVaultDataStateFlow.tryEmit(value = dataState)
assertEquals(VaultItemListingEvent.DismissPullToRefresh, awaitItem())
}
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.Error(
message = R.string.internet_connection_required_title
.asText()
.concat(
" ".asText(),
R.string.internet_connection_required_message.asText(),
),
),
),
viewModel.stateFlow.value,
)
}
@Test
fun `vaultDataStateFlow NoNetwork with data should update state to Content`() = runTest {
setupMockUri()
val dataState = DataState.NoNetwork(
data = VaultData(
cipherViewList = listOf(createMockCipherView(number = 1, isDeleted = false)),
folderViewList = listOf(createMockFolderView(number = 1)),
collectionViewList = listOf(createMockCollectionView(number = 1)),
sendViewList = listOf(createMockSendView(number = 1)),
),
)
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
mutableVaultDataStateFlow.tryEmit(value = dataState)
assertEquals(VaultItemListingEvent.DismissPullToRefresh, awaitItem())
}
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.Content(
displayCollectionList = emptyList(),
displayItemList = listOf(
createMockDisplayItemForCipher(number = 1)
.copy(secondSubtitleTestTag = "PasskeySite"),
),
displayFolderList = emptyList(),
),
),
viewModel.stateFlow.value,
)
unmockkStatic(Uri::class)
}
@Test
fun `vaultDataStateFlow NoNetwork with empty data should update state to NoItems`() = runTest {
val dataState = DataState.NoNetwork(
data = VaultData(
cipherViewList = emptyList(),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
)
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
mutableVaultDataStateFlow.tryEmit(value = dataState)
assertEquals(VaultItemListingEvent.DismissPullToRefresh, awaitItem())
}
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.NoItems(
message = R.string.no_items.asText(),
shouldShowAddButton = true,
buttonText = R.string.add_an_item.asText(),
),
),
viewModel.stateFlow.value,
)
}
@Test
fun `vaultDataStateFlow NoNetwork with trash data should update state to NoItems`() = runTest {
val dataState = DataState.NoNetwork(
data = VaultData(
cipherViewList = listOf(createMockCipherView(number = 1, isDeleted = true)),
folderViewList = listOf(createMockFolderView(number = 1)),
collectionViewList = listOf(createMockCollectionView(number = 1)),
sendViewList = listOf(createMockSendView(number = 1)),
),
)
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
mutableVaultDataStateFlow.tryEmit(value = dataState)
assertEquals(VaultItemListingEvent.DismissPullToRefresh, awaitItem())
}
assertEquals(
createVaultItemListingState(
viewState = VaultItemListingState.ViewState.NoItems(
message = R.string.no_items.asText(),
shouldShowAddButton = true,
buttonText = R.string.add_an_item.asText(),
),
),
viewModel.stateFlow.value,
)
}
@Test
fun `vaultDataStateFlow updates should do nothing when switching accounts`() {
val viewModel = createVaultItemListingViewModel()
assertEquals(
initialState,
viewModel.stateFlow.value,
)
// Log out the accounts
mutableUserStateFlow.value = null
// Emit fresh data
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(createMockCipherView(number = 1)),
folderViewList = listOf(createMockFolderView(number = 1)),
collectionViewList = listOf(createMockCollectionView(number = 1)),
sendViewList = listOf(createMockSendView(number = 1)),
),
)
assertEquals(
initialState,
viewModel.stateFlow.value,
)
}
@Test
fun `icon loading state updates should update isIconLoadingDisabled`() = runTest {
val viewModel = createVaultItemListingViewModel()
assertFalse(viewModel.stateFlow.value.isIconLoadingDisabled)
mutableIsIconLoadingDisabledFlow.value = true
assertTrue(viewModel.stateFlow.value.isIconLoadingDisabled)
}
@Test
fun `RefreshPull should call vault repository sync`() {
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.RefreshPull)
verify(exactly = 1) {
vaultRepository.sync()
}
}
@Test
fun `PullToRefreshEnableReceive should update isPullToRefreshEnabled`() = runTest {
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.Internal.PullToRefreshEnableReceive(
isPullToRefreshEnabled = true,
),
)
assertEquals(
initialState.copy(isPullToRefreshSettingEnabled = true),
viewModel.stateFlow.value,
)
}
@Test
fun `Fido2Request should be evaluated before observing vault data`() {
val fido2CredentialRequest = Fido2CredentialRequest(
"mockUserId",
"{}",
"com.x8bit.bitwarden",
SigningInfo(),
origin = "com.x8bit.bitwarden",
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest,
)
createVaultItemListingViewModel()
coVerify(ordering = Ordering.ORDERED) {
fido2CredentialManager.validateOrigin(fido2CredentialRequest)
vaultRepository.vaultDataStateFlow
}
}
@Test
fun `Fido2ValidateOriginResult should update dialog state on Unknown error`() = runTest {
val fido2CredentialRequest = Fido2CredentialRequest(
userId = "mockUserId",
requestJson = "{}",
packageName = "com.x8bit.bitwarden",
signingInfo = SigningInfo(),
origin = null,
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = fido2CredentialRequest,
)
coEvery {
fido2CredentialManager.validateOrigin(fido2CredentialRequest)
} returns Fido2ValidateOriginResult.Error.Unknown
val viewModel = createVaultItemListingViewModel()
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
R.string.an_error_has_occurred.asText(),
R.string.generic_error_message.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `Fido2ValidateOriginResult should update dialog state on PrivilegedAppNotAllowed error`() =
runTest {
val fido2CredentialRequest = Fido2CredentialRequest(
userId = "mockUserId",
requestJson = "{}",
packageName = "com.x8bit.bitwarden",
signingInfo = SigningInfo(),
origin = null,
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = fido2CredentialRequest,
)
coEvery {
fido2CredentialManager.validateOrigin(fido2CredentialRequest)
} returns Fido2ValidateOriginResult.Error.PrivilegedAppNotAllowed
val viewModel = createVaultItemListingViewModel()
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
R.string.an_error_has_occurred.asText(),
R.string.passkey_operation_failed_because_browser_is_not_privileged.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `Fido2ValidateOriginResult should update dialog state on PrivilegedAppSignatureNotFound error`() =
runTest {
val fido2CredentialRequest = Fido2CredentialRequest(
userId = "mockUserId",
requestJson = "{}",
packageName = "com.x8bit.bitwarden",
signingInfo = SigningInfo(),
origin = null,
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = fido2CredentialRequest,
)
coEvery {
fido2CredentialManager.validateOrigin(fido2CredentialRequest)
} returns Fido2ValidateOriginResult.Error.PrivilegedAppSignatureNotFound
val viewModel = createVaultItemListingViewModel()
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
R.string.an_error_has_occurred.asText(),
R.string.your_sha256_hashh.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `Fido2ValidateOriginResult should update dialog state on PasskeyNotSupportedForApp error`() =
runTest {
val fido2CredentialRequest = Fido2CredentialRequest(
userId = "mockUserId",
requestJson = "{}",
packageName = "com.x8bit.bitwarden",
signingInfo = SigningInfo(),
origin = null,
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = fido2CredentialRequest,
)
coEvery {
fido2CredentialManager.validateOrigin(fido2CredentialRequest)
} returns Fido2ValidateOriginResult.Error.PasskeyNotSupportedForApp
val viewModel = createVaultItemListingViewModel()
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
R.string.an_error_has_occurred.asText(),
R.string.passkeys_not_supported_for_this_app.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `Fido2ValidateOriginResult should update dialog state on ApplicationNotFound error`() =
runTest {
val fido2CredentialRequest = Fido2CredentialRequest(
userId = "mockUserId",
requestJson = "{}",
packageName = "com.x8bit.bitwarden",
signingInfo = SigningInfo(),
origin = null,
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = fido2CredentialRequest,
)
coEvery {
fido2CredentialManager.validateOrigin(fido2CredentialRequest)
} returns Fido2ValidateOriginResult.Error.ApplicationNotFound
val viewModel = createVaultItemListingViewModel()
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
R.string.an_error_has_occurred.asText(),
R.string.passkey_operation_failed_because_app_not_found_in_asset_links.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `Fido2ValidateOriginResult should update dialog state on AssetLinkNotFound error`() =
runTest {
val fido2CredentialRequest = Fido2CredentialRequest(
userId = "mockUserId",
requestJson = "{}",
packageName = "com.x8bit.bitwarden",
signingInfo = SigningInfo(),
origin = null,
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = fido2CredentialRequest,
)
coEvery {
fido2CredentialManager.validateOrigin(fido2CredentialRequest)
} returns Fido2ValidateOriginResult.Error.AssetLinkNotFound
val viewModel = createVaultItemListingViewModel()
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
R.string.an_error_has_occurred.asText(),
R.string.passkey_operation_failed_because_of_missing_asset_links.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `Fido2ValidateOriginResult should update dialog state on ApplicationNotVerified error`() =
runTest {
val fido2CredentialRequest = Fido2CredentialRequest(
userId = "mockUserId",
requestJson = "{}",
packageName = "com.x8bit.bitwarden",
signingInfo = SigningInfo(),
origin = null,
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = fido2CredentialRequest,
)
coEvery {
fido2CredentialManager.validateOrigin(fido2CredentialRequest)
} returns Fido2ValidateOriginResult.Error.ApplicationNotVerified
val viewModel = createVaultItemListingViewModel()
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
R.string.an_error_has_occurred.asText(),
R.string.passkey_operation_failed_because_app_could_not_be_verified.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `Fido2RegisterCredentialResult Error should show toast and emit CompleteFido2Registration result`() =
runTest {
val mockResult = Fido2RegisterCredentialResult.Error
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.Internal.Fido2RegisterCredentialResultReceive(
mockResult,
),
)
viewModel.eventFlow.test {
assertEquals(
VaultItemListingEvent.ShowToast(R.string.an_error_has_occurred.asText()),
awaitItem(),
)
assertEquals(
VaultItemListingEvent.CompleteFido2Registration(mockResult),
awaitItem(),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `Fido2RegisterCredentialResult Success should show toast and emit CompleteFido2Registration result`() =
runTest {
val mockResult = Fido2RegisterCredentialResult.Success(
registrationResponse = "mockResponse",
)
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.Internal.Fido2RegisterCredentialResultReceive(
mockResult,
),
)
viewModel.eventFlow.test {
assertEquals(
VaultItemListingEvent.ShowToast(R.string.item_updated.asText()),
awaitItem(),
)
assertEquals(
VaultItemListingEvent.CompleteFido2Registration(mockResult),
awaitItem(),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `Fido2RegisterCredentialResult Cancelled should emit CompleteFido2Registration result`() =
runTest {
val mockResult = Fido2RegisterCredentialResult.Cancelled
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.Internal.Fido2RegisterCredentialResultReceive(
mockResult,
),
)
viewModel.eventFlow.test {
assertEquals(
VaultItemListingEvent.CompleteFido2Registration(mockResult),
awaitItem(),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `DismissFido2ErrorDialogClick should clear the dialog state then complete FIDO 2 registration based on state`() =
runTest {
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
createMockFido2CredentialRequest(number = 1),
)
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.DismissFido2ErrorDialogClick)
viewModel.eventFlow.test {
assertNull(viewModel.stateFlow.value.dialogState)
assertEquals(
VaultItemListingEvent.CompleteFido2Registration(
result = Fido2RegisterCredentialResult.Error,
),
awaitItem(),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `DismissFido2ErrorDialogClick should clear dialog state then complete FIDO 2 assertion with error when assertion request is not null`() =
runTest {
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Assertion(
createMockFido2CredentialAssertionRequest(number = 1),
)
val mockFido2CredentialList = createMockSdkFido2CredentialList(number = 1)
every {
vaultRepository
.ciphersStateFlow
.value
.data
} returns listOf(
createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
),
)
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.DismissFido2ErrorDialogClick)
viewModel.eventFlow.test {
assertEquals(
VaultItemListingEvent.CompleteFido2Assertion(
result = Fido2CredentialAssertionResult.Error,
),
awaitItem(),
)
assertNull(viewModel.stateFlow.value.dialogState)
}
}
@Suppress("MaxLineLength")
@Test
fun `DismissFido2ErrorDialogClick should show general error dialog when no FIDO 2 request is present`() =
runTest {
specialCircumstanceManager.specialCircumstance = null
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.DismissFido2ErrorDialogClick)
assertEquals(
VaultItemListingState.DialogState.Error(
title = R.string.an_error_has_occurred.asText(),
message = R.string.generic_error_message.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `Fido2AssertionRequest should display loading dialog then request user verification when user is not verified and verification is REQUIRED`() =
runTest {
val mockAssertionRequest = createMockFido2CredentialAssertionRequest(number = 1)
.copy(cipherId = "mockId-1")
val mockFido2CredentialList = createMockSdkFido2CredentialList(number = 1)
val mockCipherView = createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Assertion(
mockAssertionRequest,
)
every {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(
mockAssertionRequest.requestJson,
)
} returns createMockPasskeyAssertionOptions(
number = 1,
userVerificationRequirement = UserVerificationRequirement.REQUIRED,
)
every {
vaultRepository
.ciphersStateFlow
.value
.data
} returns listOf(
createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
),
)
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
assertEquals(
VaultItemListingState.DialogState.Loading(R.string.loading.asText()),
viewModel.stateFlow.value.dialogState,
)
verify { fido2CredentialManager.isUserVerified }
assertEquals(
VaultItemListingEvent.Fido2UserVerification(
isRequired = true,
selectedCipherView = mockCipherView,
),
awaitItem(),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `Fido2AssertionRequest should display loading dialog then request user verification when user is not verified and verification is PREFERED`() =
runTest {
val mockAssertionRequest = createMockFido2CredentialAssertionRequest(number = 1)
.copy(cipherId = "mockId-1")
val mockFido2CredentialList = createMockSdkFido2CredentialList(number = 1)
val mockCipherView = createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Assertion(
mockAssertionRequest,
)
every {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(
mockAssertionRequest.requestJson,
)
} returns createMockPasskeyAssertionOptions(
number = 1,
userVerificationRequirement = UserVerificationRequirement.PREFERRED,
)
every {
vaultRepository
.ciphersStateFlow
.value
.data
} returns listOf(
createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
),
)
val viewModel = createVaultItemListingViewModel()
viewModel.eventFlow.test {
assertEquals(
VaultItemListingState.DialogState.Loading(R.string.loading.asText()),
viewModel.stateFlow.value.dialogState,
)
verify { fido2CredentialManager.isUserVerified }
assertEquals(
VaultItemListingEvent.Fido2UserVerification(
isRequired = false,
selectedCipherView = mockCipherView,
),
awaitItem(),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `Fido2AssertionRequest should skip user verification when user is not verified and verification is DISCOURAGED`() =
runTest {
val mockAssertionRequest = createMockFido2CredentialAssertionRequest(number = 1)
.copy(cipherId = "mockId-1")
val mockFido2CredentialList = createMockSdkFido2CredentialList(number = 1)
val mockCipherView = createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Assertion(
mockAssertionRequest,
)
every { authRepository.activeUserId } returns "activeUserId"
every {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(
mockAssertionRequest.requestJson,
)
} returns createMockPasskeyAssertionOptions(
number = 1,
userVerificationRequirement = UserVerificationRequirement.DISCOURAGED,
)
every {
vaultRepository
.ciphersStateFlow
.value
.data
} returns listOf(
createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
),
)
coEvery {
fido2CredentialManager.authenticateFido2Credential(
userId = "activeUserId",
request = mockAssertionRequest,
selectedCipherView = mockCipherView,
)
} returns Fido2CredentialAssertionResult.Success(responseJson = "responseJson")
createVaultItemListingViewModel()
coVerify {
fido2CredentialManager.isUserVerified
fido2CredentialManager.authenticateFido2Credential(
userId = "activeUserId",
request = mockAssertionRequest,
selectedCipherView = mockCipherView,
)
}
}
@Suppress("MaxLineLength")
@Test
fun `Fido2AssertionRequest should show error dialog when assertion options are null`() =
runTest {
val mockAssertionRequest = createMockFido2CredentialAssertionRequest(number = 1)
.copy(cipherId = "mockId-1")
val mockFido2CredentialList = createMockSdkFido2CredentialList(number = 1)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Assertion(
mockAssertionRequest,
)
every {
vaultRepository
.ciphersStateFlow
.value
.data
} returns listOf(
createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
),
)
every {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(
mockAssertionRequest.requestJson,
)
} returns null
val viewModel = createVaultItemListingViewModel()
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
verify(exactly = 0) { fido2CredentialManager.isUserVerified }
}
@Suppress("MaxLineLength")
@Test
fun `Fido2AssertionRequest should observe vault data when request does not contain a cipherId`() =
runTest {
val mockAssertionRequest = createMockFido2CredentialAssertionRequest(number = 1)
.copy(cipherId = null)
val mockFido2CredentialList = createMockSdkFido2CredentialList(number = 1)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Assertion(
mockAssertionRequest,
)
every {
vaultRepository
.ciphersStateFlow
.value
.data
} returns listOf(
createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
),
)
createVaultItemListingViewModel()
verify { vaultRepository.vaultDataStateFlow }
verify(exactly = 0) {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(
requestJson = mockAssertionRequest.requestJson,
)
}
}
@Test
fun `Fido2AssertionRequest should show error dialog when cipher state flow data is null`() =
runTest {
val mockAssertionRequest = createMockFido2CredentialAssertionRequest(number = 1)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Assertion(
mockAssertionRequest,
)
every {
vaultRepository
.ciphersStateFlow
.value
.data
} returns null
val viewModel = createVaultItemListingViewModel()
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `Fido2AssertionRequest should show error dialog when cipher state flow data has no matching cipher`() =
runTest {
val mockAssertionRequest = createMockFido2CredentialAssertionRequest(number = 1)
val mockFido2CredentialList = createMockSdkFido2CredentialList(number = 1)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Assertion(
mockAssertionRequest,
)
every {
vaultRepository
.ciphersStateFlow
.value
.data
} returns listOf(
createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
),
)
val viewModel = createVaultItemListingViewModel()
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Test
fun `Fido2AssertionRequest should skip user verification when user is verified`() = runTest {
val mockAssertionRequest = createMockFido2CredentialAssertionRequest(number = 1)
.copy(cipherId = "mockId-1")
val mockFido2CredentialList = createMockSdkFido2CredentialList(number = 1)
val mockCipherView = createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Assertion(
mockAssertionRequest,
)
every { fido2CredentialManager.isUserVerified } returns true
every {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(
mockAssertionRequest.requestJson,
)
} returns createMockPasskeyAssertionOptions(
number = 1,
userVerificationRequirement = UserVerificationRequirement.PREFERRED,
)
coEvery {
fido2CredentialManager.authenticateFido2Credential(
userId = "activeUserId",
request = mockAssertionRequest,
selectedCipherView = mockCipherView,
)
} returns Fido2CredentialAssertionResult.Success(responseJson = "responseJson")
every {
vaultRepository
.ciphersStateFlow
.value
.data
} returns listOf(
createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
),
)
every {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(
mockAssertionRequest.requestJson,
)
} returns createMockPasskeyAssertionOptions(number = 1)
every { authRepository.activeUserId } returns "activeUserId"
createVaultItemListingViewModel()
coVerify {
fido2CredentialManager.isUserVerified
fido2CredentialManager.authenticateFido2Credential(
userId = any(),
request = any(),
selectedCipherView = any(),
)
}
}
@Test
fun `Fido2AssertionRequest should show error dialog when active user id is null`() = runTest {
val mockAssertionRequest = createMockFido2CredentialAssertionRequest(number = 1)
.copy(cipherId = "mockId-1")
val mockFido2CredentialList = createMockSdkFido2CredentialList(number = 1)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Assertion(
mockAssertionRequest,
)
every { fido2CredentialManager.isUserVerified } returns true
every {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(
mockAssertionRequest.requestJson,
)
} returns createMockPasskeyAssertionOptions(
number = 1,
userVerificationRequirement = UserVerificationRequirement.PREFERRED,
)
every {
vaultRepository
.ciphersStateFlow
.value
.data
} returns listOf(
createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
),
)
every {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(
mockAssertionRequest.requestJson,
)
} returns createMockPasskeyAssertionOptions(number = 1)
every { authRepository.activeUserId } returns null
val viewModel = createVaultItemListingViewModel()
coVerify(exactly = 0) {
fido2CredentialManager.authenticateFido2Credential(
userId = any(),
request = any(),
selectedCipherView = any(),
)
}
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `Fido2AssertionRequest should prompt for master password when passkey is protected and user has master password`() {
val mockAssertionRequest = createMockFido2CredentialAssertionRequest(number = 1)
.copy(cipherId = "mockId-1")
val mockFido2CredentialList = createMockSdkFido2CredentialList(number = 1)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Assertion(
mockAssertionRequest,
)
every { fido2CredentialManager.isUserVerified } returns true
every {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(
mockAssertionRequest.requestJson,
)
} returns createMockPasskeyAssertionOptions(
number = 1,
userVerificationRequirement = UserVerificationRequirement.PREFERRED,
)
every {
vaultRepository
.ciphersStateFlow
.value
.data
} returns listOf(
createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
repromptType = CipherRepromptType.PASSWORD,
),
)
every {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(
mockAssertionRequest.requestJson,
)
} returns createMockPasskeyAssertionOptions(number = 1)
every { authRepository.activeUserId } returns null
val viewModel = createVaultItemListingViewModel()
assertEquals(
VaultItemListingState.DialogState.Fido2MasterPasswordPrompt(
selectedCipherId = mockAssertionRequest.cipherId!!,
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `Fido2AssertionRequest should not re-prompt master password when user does not have a master password`() =
runTest {
val mockAssertionRequest = createMockFido2CredentialAssertionRequest(number = 1)
.copy(cipherId = "mockId-1")
val mockFido2CredentialList = createMockSdkFido2CredentialList(number = 1)
val mockCipherView = createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
repromptType = CipherRepromptType.PASSWORD,
)
mutableUserStateFlow.value = DEFAULT_USER_STATE.copy(
accounts = listOf(
DEFAULT_ACCOUNT.copy(
vaultUnlockType = VaultUnlockType.MASTER_PASSWORD,
trustedDevice = UserState.TrustedDevice(
isDeviceTrusted = true,
hasAdminApproval = true,
hasLoginApprovingDevice = true,
hasResetPasswordPermission = true,
),
hasMasterPassword = false,
),
),
)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Assertion(
mockAssertionRequest,
)
every { fido2CredentialManager.isUserVerified } returns true
every {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(
mockAssertionRequest.requestJson,
)
} returns createMockPasskeyAssertionOptions(
number = 1,
userVerificationRequirement = UserVerificationRequirement.PREFERRED,
)
every {
vaultRepository
.ciphersStateFlow
.value
.data
} returns listOf(mockCipherView)
every {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(
mockAssertionRequest.requestJson,
)
} returns createMockPasskeyAssertionOptions(number = 1)
coEvery {
fido2CredentialManager.authenticateFido2Credential(
DEFAULT_USER_STATE.activeUserId,
mockAssertionRequest,
mockCipherView,
)
} returns Fido2CredentialAssertionResult.Success("responseJson")
createVaultItemListingViewModel()
coVerify {
fido2CredentialManager.authenticateFido2Credential(
userId = any(),
request = any(),
selectedCipherView = any(),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `UserVerificationLockout should display Fido2ErrorDialog and set isUserVerified to false`() {
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.UserVerificationLockOut)
verify { fido2CredentialManager.isUserVerified = false }
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `UserVerificationCancelled should clear dialog state, set isUserVerified to false, and emit CompleteFido2Create with cancelled result`() =
runTest {
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.UserVerificationCancelled)
verify { fido2CredentialManager.isUserVerified = false }
assertNull(viewModel.stateFlow.value.dialogState)
viewModel.eventFlow.test {
assertEquals(
VaultItemListingEvent.CompleteFido2Registration(
result = Fido2RegisterCredentialResult.Cancelled,
),
awaitItem(),
)
}
}
@Test
fun `UserVerificationFail should display Fido2ErrorDialog and set isUserVerified to false`() {
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(VaultItemListingsAction.UserVerificationFail)
verify { fido2CredentialManager.isUserVerified = false }
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `UserVerificationSuccess should display Fido2ErrorDialog when SpecialCircumstance is null`() =
runTest {
specialCircumstanceManager.specialCircumstance = null
coEvery {
fido2CredentialManager.registerFido2Credential(
any(),
any(),
any(),
)
} returns Fido2RegisterCredentialResult.Success(
registrationResponse = "mockResponse",
)
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.UserVerificationSuccess(
createMockCipherView(number = 1),
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `UserVerificationSuccess should display Fido2ErrorDialog when SpecialCircumstance is invalid`() =
runTest {
specialCircumstanceManager.specialCircumstance =
SpecialCircumstance.AutofillSave(
AutofillSaveItem.Login(
username = "mockUsername",
password = "mockPassword",
uri = "mockUri",
),
)
coEvery {
fido2CredentialManager.registerFido2Credential(
any(),
any(),
any(),
)
} returns Fido2RegisterCredentialResult.Success(
registrationResponse = "mockResponse",
)
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.UserVerificationSuccess(
selectedCipherView = createMockCipherView(number = 1),
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `UserVerificationSuccess should display Fido2ErrorDialog when activeUserId is null`() {
every { authRepository.activeUserId } returns null
specialCircumstanceManager.specialCircumstance =
SpecialCircumstance.Fido2Save(createMockFido2CredentialRequest(number = 1))
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.UserVerificationSuccess(
selectedCipherView = createMockCipherView(number = 1),
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `UserVerificationSuccess should set isUserVerified to true, and register FIDO 2 credential when verification result is received`() =
runTest {
val mockRequest = createMockFido2CredentialRequest(number = 1)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = mockRequest,
)
coEvery {
fido2CredentialManager.registerFido2Credential(
any(),
any(),
any(),
)
} returns Fido2RegisterCredentialResult.Success(
registrationResponse = "mockResponse",
)
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.UserVerificationSuccess(
selectedCipherView = createMockCipherView(number = 1),
),
)
coVerify {
fido2CredentialManager.isUserVerified = true
fido2CredentialManager.registerFido2Credential(
userId = DEFAULT_ACCOUNT.userId,
fido2CredentialRequest = mockRequest,
selectedCipherView = any(),
)
}
}
@Suppress("MaxLineLength")
@Test
fun `UserVerificationSuccess should set isUserVerified to true, and authenticate FIDO 2 credential when verification result is received`() =
runTest {
val mockAssertionRequest = createMockFido2CredentialAssertionRequest(number = 1)
.copy(cipherId = "mockId-1")
val mockFido2CredentialList = createMockSdkFido2CredentialList(number = 1)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Assertion(
fido2AssertionRequest = mockAssertionRequest,
)
every {
vaultRepository
.ciphersStateFlow
.value
.data
} returns listOf(
createMockCipherView(
number = 1,
fido2Credentials = mockFido2CredentialList,
),
)
every {
fido2CredentialManager.getPasskeyAssertionOptionsOrNull(
mockAssertionRequest.requestJson,
)
} returns createMockPasskeyAssertionOptions(
number = 1,
userVerificationRequirement = UserVerificationRequirement.PREFERRED,
)
coEvery {
fido2CredentialManager.authenticateFido2Credential(
any(),
any(),
any(),
)
} returns Fido2CredentialAssertionResult.Success(
responseJson = "mockResponse",
)
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.UserVerificationSuccess(
selectedCipherView = createMockCipherView(number = 1),
),
)
coVerify {
fido2CredentialManager.isUserVerified = true
fido2CredentialManager.authenticateFido2Credential(
userId = DEFAULT_ACCOUNT.userId,
request = mockAssertionRequest,
selectedCipherView = any(),
)
}
}
@Test
fun `UserVerificationNotSupported should display Fido2CreationFail when no cipher id found`() {
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.UserVerificationNotSupported(
selectedCipherId = null,
),
)
verify { fido2CredentialManager.isUserVerified = false }
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `UserVerificationNotSupported should display Fido2CreationFail when no active account found`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
mutableUserStateFlow.value = null
viewModel.trySendAction(
VaultItemListingsAction.UserVerificationNotSupported(
selectedCipherId = selectedCipherId,
),
)
verify { fido2CredentialManager.isUserVerified = false }
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Test
fun `UserVerificationNotSupported should display Fido2PinPrompt when user has pin`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
mutableUserStateFlow.value = DEFAULT_USER_STATE.copy(
accounts = listOf(
DEFAULT_ACCOUNT.copy(
vaultUnlockType = VaultUnlockType.PIN,
),
),
)
every { settingsRepository.isUnlockWithPinEnabled } returns true
viewModel.trySendAction(
VaultItemListingsAction.UserVerificationNotSupported(
selectedCipherId = selectedCipherId,
),
)
verify { fido2CredentialManager.isUserVerified = false }
assertEquals(
VaultItemListingState.DialogState.Fido2PinPrompt(
selectedCipherId = selectedCipherId,
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `UserVerificationNotSupported should display Fido2MasterPasswordPrompt when user has password but no pin`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
viewModel.trySendAction(
VaultItemListingsAction.UserVerificationNotSupported(
selectedCipherId = selectedCipherId,
),
)
verify { fido2CredentialManager.isUserVerified = false }
assertEquals(
VaultItemListingState.DialogState.Fido2MasterPasswordPrompt(
selectedCipherId = selectedCipherId,
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `UserVerificationNotSupported should display Fido2PinSetUpPrompt when user has no password or pin`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
mutableUserStateFlow.value = DEFAULT_USER_STATE.copy(
accounts = listOf(
DEFAULT_ACCOUNT.copy(
vaultUnlockType = VaultUnlockType.MASTER_PASSWORD,
trustedDevice = UserState.TrustedDevice(
isDeviceTrusted = true,
hasAdminApproval = true,
hasLoginApprovingDevice = true,
hasResetPasswordPermission = true,
),
hasMasterPassword = false,
),
),
)
viewModel.trySendAction(
VaultItemListingsAction.UserVerificationNotSupported(
selectedCipherId = selectedCipherId,
),
)
verify { fido2CredentialManager.isUserVerified = false }
assertEquals(
VaultItemListingState.DialogState.Fido2PinSetUpPrompt(
selectedCipherId = selectedCipherId,
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `MasterPasswordFido2VerificationSubmit should display Fido2ErrorDialog when password verification fails`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
val password = "password"
coEvery {
authRepository.validatePassword(password = password)
} returns ValidatePasswordResult.Error
viewModel.trySendAction(
VaultItemListingsAction.MasterPasswordFido2VerificationSubmit(
password = password,
selectedCipherId = selectedCipherId,
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
coVerify {
authRepository.validatePassword(password = password)
}
}
@Suppress("MaxLineLength")
@Test
fun `MasterPasswordFido2VerificationSubmit should display Fido2MasterPasswordError when user has retries remaining`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
val password = "password"
coEvery {
authRepository.validatePassword(password = password)
} returns ValidatePasswordResult.Success(isValid = false)
viewModel.trySendAction(
VaultItemListingsAction.MasterPasswordFido2VerificationSubmit(
password = password,
selectedCipherId = selectedCipherId,
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2MasterPasswordError(
title = null,
message = R.string.invalid_master_password.asText(),
selectedCipherId = selectedCipherId,
),
viewModel.stateFlow.value.dialogState,
)
coVerify {
authRepository.validatePassword(password = password)
}
}
@Suppress("MaxLineLength")
@Test
fun `MasterPasswordFido2VerificationSubmit should display Fido2ErrorDialog when user has no retries remaining`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
val password = "password"
every { fido2CredentialManager.hasAuthenticationAttemptsRemaining() } returns false
coEvery {
authRepository.validatePassword(password = password)
} returns ValidatePasswordResult.Success(isValid = false)
viewModel.trySendAction(
VaultItemListingsAction.MasterPasswordFido2VerificationSubmit(
password = password,
selectedCipherId = selectedCipherId,
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
coVerify {
authRepository.validatePassword(password = password)
}
}
@Suppress("MaxLineLength")
@Test
fun `MasterPasswordFido2VerificationSubmit should display Fido2ErrorDialog when cipher not found`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
val password = "password"
coEvery {
authRepository.validatePassword(password = password)
} returns ValidatePasswordResult.Success(isValid = true)
viewModel.trySendAction(
VaultItemListingsAction.MasterPasswordFido2VerificationSubmit(
password = password,
selectedCipherId = selectedCipherId,
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
coVerify {
authRepository.validatePassword(password = password)
}
}
@Suppress("MaxLineLength")
@Test
fun `MasterPasswordFido2VerificationSubmit should register credential when password authenticated successfully`() =
runTest {
val viewModel = createVaultItemListingViewModel()
val cipherView = createMockCipherView(number = 1)
val selectedCipherId = cipherView.id ?: ""
val password = "password"
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView),
collectionViewList = emptyList(),
folderViewList = emptyList(),
sendViewList = emptyList(),
),
)
coEvery {
authRepository.validatePassword(password = password)
} returns ValidatePasswordResult.Success(isValid = true)
viewModel.trySendAction(
VaultItemListingsAction.MasterPasswordFido2VerificationSubmit(
password = password,
selectedCipherId = selectedCipherId,
),
)
coVerify {
authRepository.validatePassword(password = password)
}
}
@Test
fun `RetryFido2PasswordVerificationClick should display Fido2MasterPasswordPrompt`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
viewModel.trySendAction(
VaultItemListingsAction.RetryFido2PasswordVerificationClick(
selectedCipherId = selectedCipherId,
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2MasterPasswordPrompt(
selectedCipherId = selectedCipherId,
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("MaxLineLength")
@Test
fun `PinFido2VerificationSubmit should display Fido2ErrorDialog when pin verification fails`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
val pin = "PIN"
coEvery {
authRepository.validatePin(pin = pin)
} returns ValidatePinResult.Error
viewModel.trySendAction(
VaultItemListingsAction.PinFido2VerificationSubmit(
pin = pin,
selectedCipherId = selectedCipherId,
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
coVerify {
authRepository.validatePin(pin = pin)
}
}
@Suppress("MaxLineLength")
@Test
fun `PinFido2VerificationSubmit should display Fido2PinError when user has retries remaining`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
val pin = "PIN"
coEvery {
authRepository.validatePin(pin = pin)
} returns ValidatePinResult.Success(isValid = false)
viewModel.trySendAction(
VaultItemListingsAction.PinFido2VerificationSubmit(
pin = pin,
selectedCipherId = selectedCipherId,
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2PinError(
title = null,
message = R.string.invalid_pin.asText(),
selectedCipherId = selectedCipherId,
),
viewModel.stateFlow.value.dialogState,
)
coVerify {
authRepository.validatePin(pin = pin)
}
}
@Suppress("MaxLineLength")
@Test
fun `PinFido2VerificationSubmit should display Fido2ErrorDialog when user has no retries remaining`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
val pin = "PIN"
every { fido2CredentialManager.hasAuthenticationAttemptsRemaining() } returns false
coEvery {
authRepository.validatePin(pin = pin)
} returns ValidatePinResult.Success(isValid = false)
viewModel.trySendAction(
VaultItemListingsAction.PinFido2VerificationSubmit(
pin = pin,
selectedCipherId = selectedCipherId,
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
coVerify {
authRepository.validatePin(pin = pin)
}
}
@Test
fun `PinFido2VerificationSubmit should display Fido2ErrorDialog when cipher not found`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
val pin = "PIN"
coEvery {
authRepository.validatePin(pin = pin)
} returns ValidatePinResult.Success(isValid = true)
viewModel.trySendAction(
VaultItemListingsAction.PinFido2VerificationSubmit(
pin = pin,
selectedCipherId = selectedCipherId,
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
coVerify {
authRepository.validatePin(pin = pin)
}
}
@Suppress("MaxLineLength")
@Test
fun `PinFido2VerificationSubmit should register credential when pin authenticated successfully`() {
setupMockUri()
val viewModel = createVaultItemListingViewModel()
val cipherView = createMockCipherView(number = 1)
val selectedCipherId = cipherView.id ?: ""
val pin = "PIN"
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView),
collectionViewList = emptyList(),
folderViewList = emptyList(),
sendViewList = emptyList(),
),
)
coEvery {
authRepository.validatePin(pin = pin)
} returns ValidatePinResult.Success(isValid = true)
viewModel.trySendAction(
VaultItemListingsAction.PinFido2VerificationSubmit(
pin = pin,
selectedCipherId = selectedCipherId,
),
)
coVerify {
authRepository.validatePin(pin = pin)
}
}
@Test
fun `RetryFido2PinVerificationClick should display FidoPinPrompt`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
viewModel.trySendAction(
VaultItemListingsAction.RetryFido2PinVerificationClick(
selectedCipherId = selectedCipherId,
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2PinPrompt(
selectedCipherId = selectedCipherId,
),
viewModel.stateFlow.value.dialogState,
)
}
@Test
fun `PinFido2SetUpSubmit should display Fido2PinSetUpError for empty PIN`() {
val viewModel = createVaultItemListingViewModel()
val pin = ""
val selectedCipherId = "selectedCipherId"
viewModel.trySendAction(
VaultItemListingsAction.PinFido2SetUpSubmit(
pin = pin,
selectedCipherId = selectedCipherId,
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2PinSetUpError(
title = null,
message = R.string.validation_field_required.asText(R.string.pin.asText()),
selectedCipherId = selectedCipherId,
),
viewModel.stateFlow.value.dialogState,
)
}
@Test
fun `PinFido2SetUpSubmit should save PIN and register credential for non-empty PIN`() {
setupMockUri()
val viewModel = createVaultItemListingViewModel()
val cipherView = createMockCipherView(number = 1)
val pin = "PIN"
val selectedCipherId = "selectedCipherId"
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView),
collectionViewList = emptyList(),
folderViewList = emptyList(),
sendViewList = emptyList(),
),
)
every {
settingsRepository.storeUnlockPin(
pin = pin,
shouldRequireMasterPasswordOnRestart = false,
)
} just runs
viewModel.trySendAction(
VaultItemListingsAction.PinFido2SetUpSubmit(
pin = pin,
selectedCipherId = selectedCipherId,
),
)
verify(exactly = 1) {
settingsRepository.storeUnlockPin(
pin = pin,
shouldRequireMasterPasswordOnRestart = false,
)
}
}
@Test
fun `PinFido2SetUpRetryClick should display Fido2PinSetUpPrompt`() {
val viewModel = createVaultItemListingViewModel()
val selectedCipherId = "selectedCipherId"
viewModel.trySendAction(
VaultItemListingsAction.PinFido2SetUpRetryClick(
selectedCipherId = selectedCipherId,
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2PinSetUpPrompt(
selectedCipherId = selectedCipherId,
),
viewModel.stateFlow.value.dialogState,
)
}
@Test
fun `DismissFido2VerificationDialogClick should display Fido2ErrorDialog`() {
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.DismissFido2VerificationDialogClick,
)
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
title = R.string.an_error_has_occurred.asText(),
message = R.string.passkey_operation_failed_because_user_could_not_be_verified
.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Test
fun `ConfirmOverwriteExistingPasskeyClick should check if user is verified`() =
runTest {
setupMockUri()
val cipherView = createMockCipherView(number = 1)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = createMockFido2CredentialRequest(number = 1),
)
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
)
every {
fido2CredentialManager.getPasskeyAttestationOptionsOrNull(any())
} returns createMockPasskeyAttestationOptions(
number = 1,
userVerificationRequirement = UserVerificationRequirement.REQUIRED,
)
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.ConfirmOverwriteExistingPasskeyClick(
cipherViewId = cipherView.id!!,
),
)
verify { fido2CredentialManager.isUserVerified }
}
@Suppress("MaxLineLength")
@Test
fun `ConfirmOverwriteExistingPasskeyClick should display Fido2ErrorDialog when getSelectedCipher returns null`() =
runTest {
setupMockUri()
val cipherView = createMockCipherView(number = 1)
specialCircumstanceManager.specialCircumstance = SpecialCircumstance.Fido2Save(
fido2CredentialRequest = createMockFido2CredentialRequest(number = 1),
)
mutableVaultDataStateFlow.value = DataState.Loaded(
data = VaultData(
cipherViewList = listOf(cipherView),
folderViewList = emptyList(),
collectionViewList = emptyList(),
sendViewList = emptyList(),
),
)
val viewModel = createVaultItemListingViewModel()
viewModel.trySendAction(
VaultItemListingsAction.ConfirmOverwriteExistingPasskeyClick(
cipherViewId = "invalidId",
),
)
assertEquals(
VaultItemListingState.DialogState.Fido2OperationFail(
R.string.an_error_has_occurred.asText(),
R.string.passkey_operation_failed_because_user_could_not_be_verified.asText(),
),
viewModel.stateFlow.value.dialogState,
)
}
@Suppress("CyclomaticComplexMethod")
private fun createSavedStateHandleWithVaultItemListingType(
vaultItemListingType: VaultItemListingType,
) = SavedStateHandle().apply {
set(
"vault_item_listing_type",
when (vaultItemListingType) {
is VaultItemListingType.Card -> "card"
is VaultItemListingType.Collection -> "collection"
is VaultItemListingType.Folder -> "folder"
is VaultItemListingType.Identity -> "identity"
is VaultItemListingType.Login -> "login"
is VaultItemListingType.SecureNote -> "secure_note"
is VaultItemListingType.Trash -> "trash"
is VaultItemListingType.SendFile -> "send_file"
is VaultItemListingType.SendText -> "send_text"
},
)
set(
"id",
when (vaultItemListingType) {
is VaultItemListingType.Card -> null
is VaultItemListingType.Collection -> vaultItemListingType.collectionId
is VaultItemListingType.Folder -> vaultItemListingType.folderId
is VaultItemListingType.Identity -> null
is VaultItemListingType.Login -> null
is VaultItemListingType.SecureNote -> null
is VaultItemListingType.Trash -> null
is VaultItemListingType.SendFile -> null
is VaultItemListingType.SendText -> null
},
)
}
private fun setupMockUri() {
mockkStatic(Uri::class)
val uriMock = mockk<Uri>()
every { Uri.parse(any()) } returns uriMock
every { uriMock.host } returns "www.mockuri.com"
}
private fun createVaultItemListingViewModel(
savedStateHandle: SavedStateHandle = initialSavedStateHandle,
vaultRepository: VaultRepository = this.vaultRepository,
): VaultItemListingViewModel =
VaultItemListingViewModel(
savedStateHandle = savedStateHandle,
clock = clock,
clipboardManager = clipboardManager,
authRepository = authRepository,
vaultRepository = vaultRepository,
environmentRepository = environmentRepository,
settingsRepository = settingsRepository,
autofillSelectionManager = autofillSelectionManager,
cipherMatchingManager = cipherMatchingManager,
specialCircumstanceManager = specialCircumstanceManager,
policyManager = policyManager,
fido2CredentialManager = fido2CredentialManager,
organizationEventManager = organizationEventManager,
)
@Suppress("MaxLineLength")
private fun createVaultItemListingState(
itemListingType: VaultItemListingState.ItemListingType = VaultItemListingState.ItemListingType.Vault.Login,
viewState: VaultItemListingState.ViewState = VaultItemListingState.ViewState.Loading,
): VaultItemListingState =
VaultItemListingState(
itemListingType = itemListingType,
activeAccountSummary = DEFAULT_USER_STATE.toActiveAccountSummary(),
accountSummaries = DEFAULT_USER_STATE.toAccountSummaries(),
viewState = viewState,
vaultFilterType = vaultRepository.vaultFilterType,
baseWebSendUrl = Environment.Us.environmentUrlData.baseWebSendUrl,
baseIconUrl = environmentRepository.environment.environmentUrlData.baseIconUrl,
isIconLoadingDisabled = settingsRepository.isIconLoadingDisabled,
isPullToRefreshSettingEnabled = false,
dialogState = null,
autofillSelectionData = null,
shouldFinishOnComplete = false,
policyDisablesSend = false,
hasMasterPassword = true,
fido2CredentialRequest = null,
isPremium = true,
)
}
private val DEFAULT_ACCOUNT = UserState.Account(
userId = "activeUserId",
name = "Active User",
email = "active@bitwarden.com",
environment = Environment.Us,
avatarColorHex = "#aa00aa",
isPremium = true,
isLoggedIn = true,
isVaultUnlocked = true,
needsPasswordReset = false,
isBiometricsEnabled = false,
organizations = emptyList(),
needsMasterPassword = false,
trustedDevice = null,
hasMasterPassword = true,
)
private val DEFAULT_USER_STATE = UserState(
activeUserId = "activeUserId",
accounts = listOf(DEFAULT_ACCOUNT),
)
```
|
The Grand Free Trade Area (GFTA) is a project envisaged by several regional blocs in Africa (Southern African Development Community, East African Community and the Common Market for East and Southern Africa) in order to bring about increased intra-African trade.
The idea behind joining these economies is to enable Africa to become far more self-reliant. It will also allow small economies to have access to larger regional markets; bringing about diversity, GDP growth and increased employment.
The initial stages would be to increase road, rail and communications infrastructure in order to facilitate intra-continental trade and allow for an increased sharing of ideas and skills.
Successes and progress
Various road, bridges and border post projects are currently in progress. The Kenya-Tanzania highway project (dual lane) is starting in mid-2013 and with the funding of the African Development Bank should be completed by the end of 2016. The Entebbe-Kampala highway should also be completed by the end of 2016, increasing the transport network in Uganda. The Kenyan port of Mombasa is also undergoing a revamp with a new container terminal and new road and rail links to serve its increasing load.
The North-South Corridor is a project within the GFTA. It plans to link Cape Town and Cairo with tarred roads and increased infrastructure. Road projects between Dar es Salaam and Cairo are underway and the section will be fully tarred by 2015. Single stop border posts are also being planned for most border posts along the route.
References
International development in Africa
Trade blocs
Free trade agreements
Economic integration
Free-trade areas
|
```php
<?php
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
*/
namespace Google\Service\NetworkManagement;
class AbortInfo extends \Google\Collection
{
protected $collection_key = 'projectsMissingPermission';
/**
* @var string
*/
public $cause;
/**
* @var string
*/
public $ipAddress;
/**
* @var string[]
*/
public $projectsMissingPermission;
/**
* @var string
*/
public $resourceUri;
/**
* @param string
*/
public function setCause($cause)
{
$this->cause = $cause;
}
/**
* @return string
*/
public function getCause()
{
return $this->cause;
}
/**
* @param string
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* @param string[]
*/
public function setProjectsMissingPermission($projectsMissingPermission)
{
$this->projectsMissingPermission = $projectsMissingPermission;
}
/**
* @return string[]
*/
public function getProjectsMissingPermission()
{
return $this->projectsMissingPermission;
}
/**
* @param string
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string
*/
public function getResourceUri()
{
return $this->resourceUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AbortInfo::class, 'Google_Service_NetworkManagement_AbortInfo');
```
|
```c++
#include "segmatch/segmenters/segmenter_factory.hpp"
#include "segmatch/segmenters/euclidean_segmenter.hpp"
#include "segmatch/segmenters/incremental_segmenter.hpp"
#include "segmatch/segmenters/smoothness_constraints_segmenter.hpp"
namespace segmatch {
SegmenterFactory::SegmenterFactory(SegMatchParams params)
: params_(params.segmenter_params) {
}
std::unique_ptr<Segmenter<MapPoint>> SegmenterFactory::create() const {
if (params_.segmenter_type == "SimpleSmoothnessConstraints") {
return std::unique_ptr<Segmenter<MapPoint>>(
new SmoothnessConstraintsSegmenter<MapPoint>(params_));
} else if (params_.segmenter_type == "IncrementalEuclideanDistance") {
return std::unique_ptr<Segmenter<MapPoint>>(
new IncrementalSegmenter<MapPoint, EuclideanDistance>(params_));
} else if (params_.segmenter_type == "IncrementalSmoothnessConstraints") {
return std::unique_ptr<Segmenter<MapPoint>>(
new IncrementalSegmenter<MapPoint, SmoothnessConstraints>(params_));
} else if (params_.segmenter_type == "SimpleEuclideanDistance") {
return std::unique_ptr<Segmenter<MapPoint>>(new EuclideanSegmenter<MapPoint>(params_));
} else {
LOG(FATAL) << "Invalid segmenter type specified: " << params_.segmenter_type;
throw std::invalid_argument("Invalid segmenter type specified: " + params_.segmenter_type);
}
}
} // namespace segmatch
```
|
Carl Auteried (14 December 1914 – 1998) was an Austrian sailor. He competed in the Flying Dutchman event at the 1960 Summer Olympics.
References
External links
1914 births
1998 deaths
Austrian male sailors (sport)
Olympic sailors for Austria
Sailors at the 1960 Summer Olympics – Flying Dutchman
Sportspeople from Vienna
|
```c++
///|/
///|/ PrusaSlicer is released under the terms of the AGPLv3 or higher
///|/
#ifndef slic3r_Utils_TCPConsole_hpp_
#define slic3r_Utils_TCPConsole_hpp_
#include <string>
#include <deque>
#include <boost/system/error_code.hpp>
#include <boost/system/system_error.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/streambuf.hpp>
namespace Slic3r {
namespace Utils {
using boost::asio::ip::tcp;
// Generic command / response TCP telnet like console class.
// Used by the MKS host to send G-code commands to test connection ("M105") and to start printing ("M23 filename", "M24").
class TCPConsole
{
public:
TCPConsole() : m_resolver(m_io_context), m_socket(m_io_context) { set_defaults(); }
TCPConsole(const std::string& host_name, const std::string& port_name) : m_resolver(m_io_context), m_socket(m_io_context)
{ set_defaults(); set_remote(host_name, port_name); }
~TCPConsole() = default;
void set_defaults()
{
m_newline = "\n";
m_done_string = "ok";
m_connect_timeout = std::chrono::milliseconds(5000);
m_write_timeout = std::chrono::milliseconds(10000);
m_read_timeout = std::chrono::milliseconds(10000);
}
void set_line_delimiter(const std::string& newline) {
m_newline = newline;
}
void set_command_done_string(const std::string& done_string) {
m_done_string = done_string;
}
void set_remote(const std::string& host_name, const std::string& port_name)
{
m_host_name = host_name;
m_port_name = port_name;
}
bool enqueue_cmd(const std::string& cmd) {
// TODO: Add multithread protection to queue
m_cmd_queue.push_back(cmd);
return true;
}
bool run_queue();
std::string error_message() const { return m_error_code.message(); }
private:
void handle_connect(const boost::system::error_code& ec);
void handle_read(const boost::system::error_code& ec, std::size_t bytes_transferred);
void handle_write(const boost::system::error_code& ec, std::size_t bytes_transferred);
void transmit_next_command();
void wait_next_line();
std::string extract_next_line();
void set_deadline_in(std::chrono::steady_clock::duration);
bool is_deadline_over() const;
std::string m_host_name;
std::string m_port_name;
std::string m_newline;
std::string m_done_string;
std::chrono::steady_clock::duration m_connect_timeout;
std::chrono::steady_clock::duration m_write_timeout;
std::chrono::steady_clock::duration m_read_timeout;
std::deque<std::string> m_cmd_queue;
boost::asio::io_context m_io_context;
tcp::resolver m_resolver;
tcp::socket m_socket;
boost::asio::streambuf m_recv_buffer;
std::string m_send_buffer;
bool m_is_connected;
boost::system::error_code m_error_code;
std::chrono::steady_clock::time_point m_deadline;
};
} // Utils
} // Slic3r
#endif
```
|
Plasmodium michikoa is a parasite of the genus Plasmodium subgenus Sauramoeba.
Like all Plasmodium species P. michikoa has both vertebrate and insect hosts. The vertebrate hosts for this parasite are reptiles.
Description
The parasite was first described by Telford in 1988.
Geographical occurrence
This species was described in Tanzania.
Clinical features and host pathology
The only known hosts are chameleons (Chamaeleo species)
References
Further reading
michikoa
|
```javascript
/*
AngularJS v1.3.17
(c) 2010-2014 Google, Inc. path_to_url
*/
(function(T,V,s){'use strict';function E(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] path_to_url"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){c=c+(1==a?"?":"&")+"p"+(a-1)+"=";var d=encodeURIComponent,e;e=arguments[a];e="function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e;c+=d(e)}return Error(c)}}function Sa(b){if(null==b||Ta(b))return!1;var a="length"in Object(b)&&b.length;
return b.nodeType===ma&&a?!0:K(b)||A(b)||0===a||"number"===typeof a&&0<a&&a-1 in b}function q(b,a,c){var d,e;if(b)if(F(b))for(d in b)"prototype"==d||"length"==d||"name"==d||b.hasOwnProperty&&!b.hasOwnProperty(d)||a.call(c,b[d],d,b);else if(A(b)||Sa(b)){var f="object"!==typeof b;d=0;for(e=b.length;d<e;d++)(f||d in b)&&a.call(c,b[d],d,b)}else if(b.forEach&&b.forEach!==q)b.forEach(a,c,b);else for(d in b)b.hasOwnProperty(d)&&a.call(c,b[d],d,b);return b}function Jd(b,a,c){for(var d=Object.keys(b).sort(),
e=0;e<d.length;e++)a.call(c,b[d[e]],d[e]);return d}function pc(b){return function(a,c){b(c,a)}}function Kd(){return++rb}function qc(b,a){a?b.$$hashKey=a:delete b.$$hashKey}function y(b){for(var a=b.$$hashKey,c=1,d=arguments.length;c<d;c++){var e=arguments[c];if(e)for(var f=Object.keys(e),g=0,h=f.length;g<h;g++){var l=f[g];b[l]=e[l]}}qc(b,a);return b}function aa(b){return parseInt(b,10)}function Pb(b,a){return y(Object.create(b),a)}function D(){}function na(b){return b}function ca(b){return function(){return b}}
function z(b){return"undefined"===typeof b}function B(b){return"undefined"!==typeof b}function J(b){return null!==b&&"object"===typeof b}function K(b){return"string"===typeof b}function U(b){return"number"===typeof b}function ea(b){return"[object Date]"===Aa.call(b)}function F(b){return"function"===typeof b}function Ua(b){return"[object RegExp]"===Aa.call(b)}function Ta(b){return b&&b.window===b}function Va(b){return b&&b.$evalAsync&&b.$watch}function Wa(b){return"boolean"===typeof b}function rc(b){return!(!b||
!(b.nodeName||b.prop&&b.attr&&b.find))}function Ld(b){var a={};b=b.split(",");var c;for(c=0;c<b.length;c++)a[b[c]]=!0;return a}function sa(b){return O(b.nodeName||b[0]&&b[0].nodeName)}function Xa(b,a){var c=b.indexOf(a);0<=c&&b.splice(c,1);return a}function Ba(b,a,c,d){if(Ta(b)||Va(b))throw Ja("cpws");if(a){if(b===a)throw Ja("cpi");c=c||[];d=d||[];if(J(b)){var e=c.indexOf(b);if(-1!==e)return d[e];c.push(b);d.push(a)}if(A(b))for(var f=a.length=0;f<b.length;f++)e=Ba(b[f],null,c,d),J(b[f])&&(c.push(b[f]),
d.push(e)),a.push(e);else{var g=a.$$hashKey;A(a)?a.length=0:q(a,function(b,c){delete a[c]});for(f in b)b.hasOwnProperty(f)&&(e=Ba(b[f],null,c,d),J(b[f])&&(c.push(b[f]),d.push(e)),a[f]=e);qc(a,g)}}else if(a=b)A(b)?a=Ba(b,[],c,d):ea(b)?a=new Date(b.getTime()):Ua(b)?(a=new RegExp(b.source,b.toString().match(/[^\/]*$/)[0]),a.lastIndex=b.lastIndex):J(b)&&(e=Object.create(Object.getPrototypeOf(b)),a=Ba(b,e,c,d));return a}function oa(b,a){if(A(b)){a=a||[];for(var c=0,d=b.length;c<d;c++)a[c]=b[c]}else if(J(b))for(c in a=
a||{},b)if("$"!==c.charAt(0)||"$"!==c.charAt(1))a[c]=b[c];return a||b}function fa(b,a){if(b===a)return!0;if(null===b||null===a)return!1;if(b!==b&&a!==a)return!0;var c=typeof b,d;if(c==typeof a&&"object"==c)if(A(b)){if(!A(a))return!1;if((c=b.length)==a.length){for(d=0;d<c;d++)if(!fa(b[d],a[d]))return!1;return!0}}else{if(ea(b))return ea(a)?fa(b.getTime(),a.getTime()):!1;if(Ua(b))return Ua(a)?b.toString()==a.toString():!1;if(Va(b)||Va(a)||Ta(b)||Ta(a)||A(a)||ea(a)||Ua(a))return!1;c={};for(d in b)if("$"!==
d.charAt(0)&&!F(b[d])){if(!fa(b[d],a[d]))return!1;c[d]=!0}for(d in a)if(!c.hasOwnProperty(d)&&"$"!==d.charAt(0)&&a[d]!==s&&!F(a[d]))return!1;return!0}return!1}function Ya(b,a,c){return b.concat(Za.call(a,c))}function sc(b,a){var c=2<arguments.length?Za.call(arguments,2):[];return!F(a)||a instanceof RegExp?a:c.length?function(){return arguments.length?a.apply(b,Ya(c,arguments,0)):a.apply(b,c)}:function(){return arguments.length?a.apply(b,arguments):a.call(b)}}function Md(b,a){var c=a;"string"===typeof b&&
"$"===b.charAt(0)&&"$"===b.charAt(1)?c=s:Ta(a)?c="$WINDOW":a&&V===a?c="$DOCUMENT":Va(a)&&(c="$SCOPE");return c}function $a(b,a){if("undefined"===typeof b)return s;U(a)||(a=a?2:null);return JSON.stringify(b,Md,a)}function tc(b){return K(b)?JSON.parse(b):b}function ta(b){b=G(b).clone();try{b.empty()}catch(a){}var c=G("<div>").append(b).html();try{return b[0].nodeType===ab?O(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+O(b)})}catch(d){return O(c)}}function uc(b){try{return decodeURIComponent(b)}catch(a){}}
function vc(b){var a={},c,d;q((b||"").split("&"),function(b){b&&(c=b.replace(/\+/g,"%20").split("="),d=uc(c[0]),B(d)&&(b=B(c[1])?uc(c[1]):!0,wc.call(a,d)?A(a[d])?a[d].push(b):a[d]=[a[d],b]:a[d]=b))});return a}function Qb(b){var a=[];q(b,function(b,d){A(b)?q(b,function(b){a.push(Ca(d,!0)+(!0===b?"":"="+Ca(b,!0)))}):a.push(Ca(d,!0)+(!0===b?"":"="+Ca(b,!0)))});return a.length?a.join("&"):""}function sb(b){return Ca(b,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Ca(b,a){return encodeURIComponent(b).replace(/%40/gi,
"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,a?"%20":"+")}function Nd(b,a){var c,d,e=tb.length;b=G(b);for(d=0;d<e;++d)if(c=tb[d]+a,K(c=b.attr(c)))return c;return null}function Od(b,a){var c,d,e={};q(tb,function(a){a+="app";!c&&b.hasAttribute&&b.hasAttribute(a)&&(c=b,d=b.getAttribute(a))});q(tb,function(a){a+="app";var e;!c&&(e=b.querySelector("["+a.replace(":","\\:")+"]"))&&(c=e,d=e.getAttribute(a))});c&&(e.strictDi=null!==Nd(c,"strict-di"),
a(c,d?[d]:[],e))}function xc(b,a,c){J(c)||(c={});c=y({strictDi:!1},c);var d=function(){b=G(b);if(b.injector()){var d=b[0]===V?"document":ta(b);throw Ja("btstrpd",d.replace(/</,"<").replace(/>/,">"));}a=a||[];a.unshift(["$provide",function(a){a.value("$rootElement",b)}]);c.debugInfoEnabled&&a.push(["$compileProvider",function(a){a.debugInfoEnabled(!0)}]);a.unshift("ng");d=bb(a,c.strictDi);d.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,c,d){a.$apply(function(){b.data("$injector",
d);c(b)(a)})}]);return d},e=/^NG_ENABLE_DEBUG_INFO!/,f=/^NG_DEFER_BOOTSTRAP!/;T&&e.test(T.name)&&(c.debugInfoEnabled=!0,T.name=T.name.replace(e,""));if(T&&!f.test(T.name))return d();T.name=T.name.replace(f,"");ba.resumeBootstrap=function(b){q(b,function(b){a.push(b)});return d()};F(ba.resumeDeferredBootstrap)&&ba.resumeDeferredBootstrap()}function Pd(){T.name="NG_ENABLE_DEBUG_INFO!"+T.name;T.location.reload()}function Qd(b){b=ba.element(b).injector();if(!b)throw Ja("test");return b.get("$$testability")}
function yc(b,a){a=a||"_";return b.replace(Rd,function(b,d){return(d?a:"")+b.toLowerCase()})}function Sd(){var b;zc||((pa=T.jQuery)&&pa.fn.on?(G=pa,y(pa.fn,{scope:Ka.scope,isolateScope:Ka.isolateScope,controller:Ka.controller,injector:Ka.injector,inheritedData:Ka.inheritedData}),b=pa.cleanData,pa.cleanData=function(a){var c;if(Rb)Rb=!1;else for(var d=0,e;null!=(e=a[d]);d++)(c=pa._data(e,"events"))&&c.$destroy&&pa(e).triggerHandler("$destroy");b(a)}):G=P,ba.element=G,zc=!0)}function Sb(b,a,c){if(!b)throw Ja("areq",
a||"?",c||"required");return b}function La(b,a,c){c&&A(b)&&(b=b[b.length-1]);Sb(F(b),a,"not a function, got "+(b&&"object"===typeof b?b.constructor.name||"Object":typeof b));return b}function Ma(b,a){if("hasOwnProperty"===b)throw Ja("badname",a);}function Ac(b,a,c){if(!a)return b;a=a.split(".");for(var d,e=b,f=a.length,g=0;g<f;g++)d=a[g],b&&(b=(e=b)[d]);return!c&&F(b)?sc(e,b):b}function ub(b){var a=b[0];b=b[b.length-1];var c=[a];do{a=a.nextSibling;if(!a)break;c.push(a)}while(a!==b);return G(c)}function ga(){return Object.create(null)}
function Td(b){function a(a,b,c){return a[b]||(a[b]=c())}var c=E("$injector"),d=E("ng");b=a(b,"angular",Object);b.$$minErr=b.$$minErr||E;return a(b,"module",function(){var b={};return function(f,g,h){if("hasOwnProperty"===f)throw d("badname","module");g&&b.hasOwnProperty(f)&&(b[f]=null);return a(b,f,function(){function a(c,d,e,f){f||(f=b);return function(){f[e||"push"]([c,d,arguments]);return v}}if(!g)throw c("nomod",f);var b=[],d=[],e=[],n=a("$injector","invoke","push",d),v={_invokeQueue:b,_configBlocks:d,
_runBlocks:e,requires:g,name:f,provider:a("$provide","provider"),factory:a("$provide","factory"),service:a("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),animation:a("$animateProvider","register"),filter:a("$filterProvider","register"),controller:a("$controllerProvider","register"),directive:a("$compileProvider","directive"),config:n,run:function(a){e.push(a);return this}};h&&n(h);return v})}})}function Ud(b){y(b,{bootstrap:xc,copy:Ba,extend:y,equals:fa,
element:G,forEach:q,injector:bb,noop:D,bind:sc,toJson:$a,fromJson:tc,identity:na,isUndefined:z,isDefined:B,isString:K,isFunction:F,isObject:J,isNumber:U,isElement:rc,isArray:A,version:Vd,isDate:ea,lowercase:O,uppercase:vb,callbacks:{counter:0},getTestability:Qd,$$minErr:E,$$csp:cb,reloadWithDebugInfo:Pd});db=Td(T);try{db("ngLocale")}catch(a){db("ngLocale",[]).provider("$locale",Wd)}db("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:Xd});a.provider("$compile",Bc).directive({a:Yd,
input:Cc,textarea:Cc,form:Zd,script:$d,select:ae,style:be,option:ce,ngBind:de,ngBindHtml:ee,ngBindTemplate:fe,ngClass:ge,ngClassEven:he,ngClassOdd:ie,ngCloak:je,ngController:ke,ngForm:le,ngHide:me,ngIf:ne,ngInclude:oe,ngInit:pe,ngNonBindable:qe,ngPluralize:re,ngRepeat:se,ngShow:te,ngStyle:ue,ngSwitch:ve,ngSwitchWhen:we,ngSwitchDefault:xe,ngOptions:ye,ngTransclude:ze,ngModel:Ae,ngList:Be,ngChange:Ce,pattern:Dc,ngPattern:Dc,required:Ec,ngRequired:Ec,minlength:Fc,ngMinlength:Fc,maxlength:Gc,ngMaxlength:Gc,
ngValue:De,ngModelOptions:Ee}).directive({ngInclude:Fe}).directive(wb).directive(Hc);a.provider({$anchorScroll:Ge,$animate:He,$browser:Ie,$cacheFactory:Je,$controller:Ke,$document:Le,$exceptionHandler:Me,$filter:Ic,$interpolate:Ne,$interval:Oe,$http:Pe,$httpBackend:Qe,$location:Re,$log:Se,$parse:Te,$rootScope:Ue,$q:Ve,$$q:We,$sce:Xe,$sceDelegate:Ye,$sniffer:Ze,$templateCache:$e,$templateRequest:af,$$testability:bf,$timeout:cf,$window:df,$$rAF:ef,$$asyncCallback:ff,$$jqLite:gf})}])}function eb(b){return b.replace(hf,
function(a,b,d,e){return e?d.toUpperCase():d}).replace(jf,"Moz$1")}function Jc(b){b=b.nodeType;return b===ma||!b||9===b}function Kc(b,a){var c,d,e=a.createDocumentFragment(),f=[];if(Tb.test(b)){c=c||e.appendChild(a.createElement("div"));d=(kf.exec(b)||["",""])[1].toLowerCase();d=ha[d]||ha._default;c.innerHTML=d[1]+b.replace(lf,"<$1></$2>")+d[2];for(d=d[0];d--;)c=c.lastChild;f=Ya(f,c.childNodes);c=e.firstChild;c.textContent=""}else f.push(a.createTextNode(b));e.textContent="";e.innerHTML="";q(f,function(a){e.appendChild(a)});
return e}function P(b){if(b instanceof P)return b;var a;K(b)&&(b=N(b),a=!0);if(!(this instanceof P)){if(a&&"<"!=b.charAt(0))throw Ub("nosel");return new P(b)}if(a){a=V;var c;b=(c=mf.exec(b))?[a.createElement(c[1])]:(c=Kc(b,a))?c.childNodes:[]}Lc(this,b)}function Vb(b){return b.cloneNode(!0)}function xb(b,a){a||yb(b);if(b.querySelectorAll)for(var c=b.querySelectorAll("*"),d=0,e=c.length;d<e;d++)yb(c[d])}function Mc(b,a,c,d){if(B(d))throw Ub("offargs");var e=(d=zb(b))&&d.events,f=d&&d.handle;if(f)if(a)q(a.split(" "),
function(a){if(B(c)){var d=e[a];Xa(d||[],c);if(d&&0<d.length)return}b.removeEventListener(a,f,!1);delete e[a]});else for(a in e)"$destroy"!==a&&b.removeEventListener(a,f,!1),delete e[a]}function yb(b,a){var c=b.ng339,d=c&&Ab[c];d&&(a?delete d.data[a]:(d.handle&&(d.events.$destroy&&d.handle({},"$destroy"),Mc(b)),delete Ab[c],b.ng339=s))}function zb(b,a){var c=b.ng339,c=c&&Ab[c];a&&!c&&(b.ng339=c=++nf,c=Ab[c]={events:{},data:{},handle:s});return c}function Wb(b,a,c){if(Jc(b)){var d=B(c),e=!d&&a&&!J(a),
f=!a;b=(b=zb(b,!e))&&b.data;if(d)b[a]=c;else{if(f)return b;if(e)return b&&b[a];y(b,a)}}}function Bb(b,a){return b.getAttribute?-1<(" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+a+" "):!1}function Cb(b,a){a&&b.setAttribute&&q(a.split(" "),function(a){b.setAttribute("class",N((" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+N(a)+" "," ")))})}function Db(b,a){if(a&&b.setAttribute){var c=(" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");
q(a.split(" "),function(a){a=N(a);-1===c.indexOf(" "+a+" ")&&(c+=a+" ")});b.setAttribute("class",N(c))}}function Lc(b,a){if(a)if(a.nodeType)b[b.length++]=a;else{var c=a.length;if("number"===typeof c&&a.window!==a){if(c)for(var d=0;d<c;d++)b[b.length++]=a[d]}else b[b.length++]=a}}function Nc(b,a){return Eb(b,"$"+(a||"ngController")+"Controller")}function Eb(b,a,c){9==b.nodeType&&(b=b.documentElement);for(a=A(a)?a:[a];b;){for(var d=0,e=a.length;d<e;d++)if((c=G.data(b,a[d]))!==s)return c;b=b.parentNode||
11===b.nodeType&&b.host}}function Oc(b){for(xb(b,!0);b.firstChild;)b.removeChild(b.firstChild)}function Pc(b,a){a||xb(b);var c=b.parentNode;c&&c.removeChild(b)}function of(b,a){a=a||T;if("complete"===a.document.readyState)a.setTimeout(b);else G(a).on("load",b)}function Qc(b,a){var c=Fb[a.toLowerCase()];return c&&Rc[sa(b)]&&c}function pf(b,a){var c=b.nodeName;return("INPUT"===c||"TEXTAREA"===c)&&Sc[a]}function qf(b,a){var c=function(c,e){c.isDefaultPrevented=function(){return c.defaultPrevented};var f=
a[e||c.type],g=f?f.length:0;if(g){if(z(c.immediatePropagationStopped)){var h=c.stopImmediatePropagation;c.stopImmediatePropagation=function(){c.immediatePropagationStopped=!0;c.stopPropagation&&c.stopPropagation();h&&h.call(c)}}c.isImmediatePropagationStopped=function(){return!0===c.immediatePropagationStopped};1<g&&(f=oa(f));for(var l=0;l<g;l++)c.isImmediatePropagationStopped()||f[l].call(b,c)}};c.elem=b;return c}function gf(){this.$get=function(){return y(P,{hasClass:function(b,a){b.attr&&(b=b[0]);
return Bb(b,a)},addClass:function(b,a){b.attr&&(b=b[0]);return Db(b,a)},removeClass:function(b,a){b.attr&&(b=b[0]);return Cb(b,a)}})}}function Na(b,a){var c=b&&b.$$hashKey;if(c)return"function"===typeof c&&(c=b.$$hashKey()),c;c=typeof b;return c="function"==c||"object"==c&&null!==b?b.$$hashKey=c+":"+(a||Kd)():c+":"+b}function fb(b,a){if(a){var c=0;this.nextUid=function(){return++c}}q(b,this.put,this)}function rf(b){return(b=b.toString().replace(Tc,"").match(Uc))?"function("+(b[1]||"").replace(/[\s\r\n]+/,
" ")+")":"fn"}function bb(b,a){function c(a){return function(b,c){if(J(b))q(b,pc(a));else return a(b,c)}}function d(a,b){Ma(a,"service");if(F(b)||A(b))b=n.instantiate(b);if(!b.$get)throw Da("pget",a);return r[a+"Provider"]=b}function e(a,b){return function(){var c=t.invoke(b,this);if(z(c))throw Da("undef",a);return c}}function f(a,b,c){return d(a,{$get:!1!==c?e(a,b):b})}function g(a){var b=[],c;q(a,function(a){function d(a){var b,c;b=0;for(c=a.length;b<c;b++){var e=a[b],f=n.get(e[0]);f[e[1]].apply(f,
e[2])}}if(!m.get(a)){m.put(a,!0);try{K(a)?(c=db(a),b=b.concat(g(c.requires)).concat(c._runBlocks),d(c._invokeQueue),d(c._configBlocks)):F(a)?b.push(n.invoke(a)):A(a)?b.push(n.invoke(a)):La(a,"module")}catch(e){throw A(a)&&(a=a[a.length-1]),e.message&&e.stack&&-1==e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Da("modulerr",a,e.stack||e.message||e);}}});return b}function h(b,c){function d(a,e){if(b.hasOwnProperty(a)){if(b[a]===l)throw Da("cdep",a+" <- "+k.join(" <- "));return b[a]}try{return k.unshift(a),
b[a]=l,b[a]=c(a,e)}catch(f){throw b[a]===l&&delete b[a],f;}finally{k.shift()}}function e(b,c,f,g){"string"===typeof f&&(g=f,f=null);var k=[],l=bb.$$annotate(b,a,g),h,n,m;n=0;for(h=l.length;n<h;n++){m=l[n];if("string"!==typeof m)throw Da("itkn",m);k.push(f&&f.hasOwnProperty(m)?f[m]:d(m,g))}A(b)&&(b=b[h]);return b.apply(c,k)}return{invoke:e,instantiate:function(a,b,c){var d=Object.create((A(a)?a[a.length-1]:a).prototype||null);a=e(a,d,b,c);return J(a)||F(a)?a:d},get:d,annotate:bb.$$annotate,has:function(a){return r.hasOwnProperty(a+
"Provider")||b.hasOwnProperty(a)}}}a=!0===a;var l={},k=[],m=new fb([],!0),r={$provide:{provider:c(d),factory:c(f),service:c(function(a,b){return f(a,["$injector",function(a){return a.instantiate(b)}])}),value:c(function(a,b){return f(a,ca(b),!1)}),constant:c(function(a,b){Ma(a,"constant");r[a]=b;v[a]=b}),decorator:function(a,b){var c=n.get(a+"Provider"),d=c.$get;c.$get=function(){var a=t.invoke(d,c);return t.invoke(b,null,{$delegate:a})}}}},n=r.$injector=h(r,function(a,b){ba.isString(b)&&k.push(b);
throw Da("unpr",k.join(" <- "));}),v={},t=v.$injector=h(v,function(a,b){var c=n.get(a+"Provider",b);return t.invoke(c.$get,c,s,a)});q(g(b),function(a){t.invoke(a||D)});return t}function Ge(){var b=!0;this.disableAutoScrolling=function(){b=!1};this.$get=["$window","$location","$rootScope",function(a,c,d){function e(a){var b=null;Array.prototype.some.call(a,function(a){if("a"===sa(a))return b=a,!0});return b}function f(b){if(b){b.scrollIntoView();var c;c=g.yOffset;F(c)?c=c():rc(c)?(c=c[0],c="fixed"!==
a.getComputedStyle(c).position?0:c.getBoundingClientRect().bottom):U(c)||(c=0);c&&(b=b.getBoundingClientRect().top,a.scrollBy(0,b-c))}else a.scrollTo(0,0)}function g(){var a=c.hash(),b;a?(b=h.getElementById(a))?f(b):(b=e(h.getElementsByName(a)))?f(b):"top"===a&&f(null):f(null)}var h=a.document;b&&d.$watch(function(){return c.hash()},function(a,b){a===b&&""===a||of(function(){d.$evalAsync(g)})});return g}]}function ff(){this.$get=["$$rAF","$timeout",function(b,a){return b.supported?function(a){return b(a)}:
function(b){return a(b,0,!1)}}]}function sf(b,a,c,d){function e(a){try{a.apply(null,Za.call(arguments,1))}finally{if(p--,0===p)for(;I.length;)try{I.pop()()}catch(b){c.error(b)}}}function f(a,b){(function Xb(){q(R,function(a){a()});x=b(Xb,a)})()}function g(){h();l()}function h(){a:{try{M=v.state;break a}catch(a){}M=void 0}M=z(M)?null:M;fa(M,S)&&(M=S);S=M}function l(){if(H!==m.url()||C!==M)H=m.url(),C=M,q($,function(a){a(m.url(),M)})}function k(a){try{return decodeURIComponent(a)}catch(b){return a}}
var m=this,r=a[0],n=b.location,v=b.history,t=b.setTimeout,w=b.clearTimeout,u={};m.isMock=!1;var p=0,I=[];m.$$completeOutstandingRequest=e;m.$$incOutstandingRequestCount=function(){p++};m.notifyWhenNoOutstandingRequests=function(a){q(R,function(a){a()});0===p?a():I.push(a)};var R=[],x;m.addPollFn=function(a){z(x)&&f(100,t);R.push(a);return a};var M,C,H=n.href,Q=a.find("base"),X=null;h();C=M;m.url=function(a,c,e){z(e)&&(e=null);n!==b.location&&(n=b.location);v!==b.history&&(v=b.history);if(a){var f=
C===e;if(H===a&&(!d.history||f))return m;var g=H&&Ea(H)===Ea(a);H=a;C=e;if(!d.history||g&&f){if(!g||X)X=a;c?n.replace(a):g?(c=n,e=a.indexOf("#"),a=-1===e?"":a.substr(e),c.hash=a):n.href=a}else v[c?"replaceState":"pushState"](e,"",a),h(),C=M;return m}return X||n.href.replace(/%27/g,"'")};m.state=function(){return M};var $=[],W=!1,S=null;m.onUrlChange=function(a){if(!W){if(d.history)G(b).on("popstate",g);G(b).on("hashchange",g);W=!0}$.push(a);return a};m.$$checkUrlChange=l;m.baseHref=function(){var a=
Q.attr("href");return a?a.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var Fa={},B="",hb=m.baseHref();m.cookies=function(a,b){var d,e,f,g;if(a)b===s?r.cookie=encodeURIComponent(a)+"=;path="+hb+";expires=Thu, 01 Jan 1970 00:00:00 GMT":K(b)&&(d=(r.cookie=encodeURIComponent(a)+"="+encodeURIComponent(b)+";path="+hb).length+1,4096<d&&c.warn("Cookie '"+a+"' possibly not set or overflowed because it was too large ("+d+" > 4096 bytes)!"));else{if(r.cookie!==B)for(B=r.cookie,d=B.split("; "),Fa={},f=0;f<d.length;f++)e=
d[f],g=e.indexOf("="),0<g&&(a=k(e.substring(0,g)),Fa[a]===s&&(Fa[a]=k(e.substring(g+1))));return Fa}};m.defer=function(a,b){var c;p++;c=t(function(){delete u[c];e(a)},b||0);u[c]=!0;return c};m.defer.cancel=function(a){return u[a]?(delete u[a],w(a),e(D),!0):!1}}function Ie(){this.$get=["$window","$log","$sniffer","$document",function(b,a,c,d){return new sf(b,d,a,c)}]}function Je(){this.$get=function(){function b(b,d){function e(a){a!=r&&(n?n==a&&(n=a.n):n=a,f(a.n,a.p),f(a,r),r=a,r.n=null)}function f(a,
b){a!=b&&(a&&(a.p=b),b&&(b.n=a))}if(b in a)throw E("$cacheFactory")("iid",b);var g=0,h=y({},d,{id:b}),l={},k=d&&d.capacity||Number.MAX_VALUE,m={},r=null,n=null;return a[b]={put:function(a,b){if(k<Number.MAX_VALUE){var c=m[a]||(m[a]={key:a});e(c)}if(!z(b))return a in l||g++,l[a]=b,g>k&&this.remove(n.key),b},get:function(a){if(k<Number.MAX_VALUE){var b=m[a];if(!b)return;e(b)}return l[a]},remove:function(a){if(k<Number.MAX_VALUE){var b=m[a];if(!b)return;b==r&&(r=b.p);b==n&&(n=b.n);f(b.n,b.p);delete m[a]}delete l[a];
g--},removeAll:function(){l={};g=0;m={};r=n=null},destroy:function(){m=h=l=null;delete a[b]},info:function(){return y({},h,{size:g})}}}var a={};b.info=function(){var b={};q(a,function(a,e){b[e]=a.info()});return b};b.get=function(b){return a[b]};return b}}function $e(){this.$get=["$cacheFactory",function(b){return b("templates")}]}function Bc(b,a){function c(a,b){var c=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,d={};q(a,function(a,e){var f=a.match(c);if(!f)throw da("iscp",b,e,a);d[e]={mode:f[1][0],collection:"*"===
f[2],optional:"?"===f[3],attrName:f[4]||e}});return d}function d(a){var b=a.charAt(0);if(!b||b!==O(b))throw da("baddir",a);return a}var e={},f=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,g=/(([\w\-]+)(?:\:([^;]+))?;?)/,h=Ld("ngSrc,ngSrcset,src,srcset"),l=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,k=/^(on[a-z]+|formaction)$/;this.directive=function n(a,f){Ma(a,"directive");K(a)?(d(a),Sb(f,"directiveFactory"),e.hasOwnProperty(a)||(e[a]=[],b.factory(a+"Directive",["$injector","$exceptionHandler",function(b,d){var f=[];
q(e[a],function(e,g){try{var h=b.invoke(e);F(h)?h={compile:ca(h)}:!h.compile&&h.link&&(h.compile=ca(h.link));h.priority=h.priority||0;h.index=g;h.name=h.name||a;h.require=h.require||h.controller&&h.name;h.restrict=h.restrict||"EA";J(h.scope)&&(h.$$isolateBindings=c(h.scope,h.name));f.push(h)}catch(l){d(l)}});return f}])),e[a].push(f)):q(a,pc(n));return this};this.aHrefSanitizationWhitelist=function(b){return B(b)?(a.aHrefSanitizationWhitelist(b),this):a.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=
function(b){return B(b)?(a.imgSrcSanitizationWhitelist(b),this):a.imgSrcSanitizationWhitelist()};var m=!0;this.debugInfoEnabled=function(a){return B(a)?(m=a,this):m};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(a,b,c,d,u,p,I,R,x,M,C){function H(a,b){try{a.addClass(b)}catch(c){}}function Q(a,b,c,d,e){a instanceof G||(a=G(a));q(a,function(b,c){b.nodeType==ab&&b.nodeValue.match(/\S+/)&&
(a[c]=G(b).wrap("<span></span>").parent()[0])});var f=X(a,b,a,c,d,e);Q.$$addScopeClass(a);var g=null;return function(b,c,d){Sb(b,"scope");d=d||{};var e=d.parentBoundTranscludeFn,h=d.transcludeControllers;d=d.futureParentElement;e&&e.$$boundTransclude&&(e=e.$$boundTransclude);g||(g=(d=d&&d[0])?"foreignobject"!==sa(d)&&d.toString().match(/SVG/)?"svg":"html":"html");d="html"!==g?G(T(g,G("<div>").append(a).html())):c?Ka.clone.call(a):a;if(h)for(var l in h)d.data("$"+l+"Controller",h[l].instance);Q.$$addScopeInfo(d,
b);c&&c(d,b);f&&f(b,d,d,e);return d}}function X(a,b,c,d,e,f){function g(a,c,d,e){var f,l,k,n,m,t,w;if(p)for(w=Array(c.length),n=0;n<h.length;n+=3)f=h[n],w[f]=c[f];else w=c;n=0;for(m=h.length;n<m;)l=w[h[n++]],c=h[n++],f=h[n++],c?(c.scope?(k=a.$new(),Q.$$addScopeInfo(G(l),k)):k=a,t=c.transcludeOnThisElement?$(a,c.transclude,e,c.elementTranscludeOnThisElement):!c.templateOnThisElement&&e?e:!e&&b?$(a,b):null,c(f,k,l,d,t)):f&&f(a,l.childNodes,s,e)}for(var h=[],l,k,n,m,p,t=0;t<a.length;t++){l=new $b;k=
W(a[t],[],l,0===t?d:s,e);(f=k.length?B(k,a[t],l,b,c,null,[],[],f):null)&&f.scope&&Q.$$addScopeClass(l.$$element);l=f&&f.terminal||!(n=a[t].childNodes)||!n.length?null:X(n,f?(f.transcludeOnThisElement||!f.templateOnThisElement)&&f.transclude:b);if(f||l)h.push(t,f,l),m=!0,p=p||f;f=null}return m?g:null}function $(a,b,c,d){return function(d,e,f,g,h){d||(d=a.$new(!1,h),d.$$transcluded=!0);return b(d,e,{parentBoundTranscludeFn:c,transcludeControllers:f,futureParentElement:g})}}function W(a,b,c,d,e){var h=
c.$attr,l;switch(a.nodeType){case ma:z(b,va(sa(a)),"E",d,e);for(var k,n,m,p=a.attributes,t=0,w=p&&p.length;t<w;t++){var v=!1,M=!1;k=p[t];l=k.name;n=N(k.value);k=va(l);if(m=ac.test(k))l=l.replace(Wc,"").substr(8).replace(/_(.)/g,function(a,b){return b.toUpperCase()});var x=k.replace(/(Start|End)$/,"");E(x)&&k===x+"Start"&&(v=l,M=l.substr(0,l.length-5)+"end",l=l.substr(0,l.length-6));k=va(l.toLowerCase());h[k]=l;if(m||!c.hasOwnProperty(k))c[k]=n,Qc(a,k)&&(c[k]=!0);P(a,b,n,k,m);z(b,k,"A",d,e,v,M)}a=
a.className;J(a)&&(a=a.animVal);if(K(a)&&""!==a)for(;l=g.exec(a);)k=va(l[2]),z(b,k,"C",d,e)&&(c[k]=N(l[3])),a=a.substr(l.index+l[0].length);break;case ab:ia(b,a.nodeValue);break;case 8:try{if(l=f.exec(a.nodeValue))k=va(l[1]),z(b,k,"M",d,e)&&(c[k]=N(l[2]))}catch(u){}}b.sort(xa);return b}function S(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw da("uterdir",b,c);a.nodeType==ma&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--);d.push(a);a=a.nextSibling}while(0<e)}else d.push(a);
return G(d)}function Fa(a,b,c){return function(d,e,f,g,h){e=S(e[0],b,c);return a(d,e,f,g,h)}}function B(a,d,e,f,g,h,k,n,m){function w(a,b,c,d){if(a){c&&(a=Fa(a,c,d));a.require=L.require;a.directiveName=ia;if(R===L||L.$$isolateScope)a=Y(a,{isolateScope:!0});k.push(a)}if(b){c&&(b=Fa(b,c,d));b.require=L.require;b.directiveName=ia;if(R===L||L.$$isolateScope)b=Y(b,{isolateScope:!0});n.push(b)}}function M(a,b,c,d){var e,f="data",g=!1,h=c,k;if(K(b)){k=b.match(l);b=b.substring(k[0].length);k[3]&&(k[1]?k[3]=
null:k[1]=k[3]);"^"===k[1]?f="inheritedData":"^^"===k[1]&&(f="inheritedData",h=c.parent());"?"===k[2]&&(g=!0);e=null;d&&"data"===f&&(e=d[b])&&(e=e.instance);e=e||h[f]("$"+b+"Controller");if(!e&&!g)throw da("ctreq",b,a);return e||null}A(b)&&(e=[],q(b,function(b){e.push(M(a,b,c,d))}));return e}function x(a,c,f,g,h){function l(a,b,c){var d;Va(a)||(c=b,b=a,a=s);D&&(d=H);c||(c=D?S.parent():S);return h(a,b,d,c,Zb)}var m,t,w,C,H,ib,S,W;d===f?(W=e,S=e.$$element):(S=G(f),W=new $b(S,e));R&&(C=c.$new(!0));h&&
(ib=l,ib.$$boundTransclude=h);I&&($={},H={},q(I,function(a){var b={$scope:a===R||a.$$isolateScope?C:c,$element:S,$attrs:W,$transclude:ib};w=a.controller;"@"==w&&(w=W[a.name]);b=p(w,b,!0,a.controllerAs);H[a.name]=b;D||S.data("$"+a.name+"Controller",b.instance);$[a.name]=b}));if(R){Q.$$addScopeInfo(S,C,!0,!(X&&(X===R||X===R.$$originalDirective)));Q.$$addScopeClass(S,!0);g=$&&$[R.name];var ua=C;g&&g.identifier&&!0===R.bindToController&&(ua=g.instance);q(C.$$isolateBindings=R.$$isolateBindings,function(a,
d){var e=a.attrName,f=a.optional,g,h,l,k;switch(a.mode){case "@":W.$observe(e,function(a){ua[d]=a});W.$$observers[e].$$scope=c;W[e]&&(ua[d]=b(W[e])(c));break;case "=":if(f&&!W[e])break;h=u(W[e]);k=h.literal?fa:function(a,b){return a===b||a!==a&&b!==b};l=h.assign||function(){g=ua[d]=h(c);throw da("nonassign",W[e],R.name);};g=ua[d]=h(c);f=function(a){k(a,ua[d])||(k(a,g)?l(c,a=ua[d]):ua[d]=a);return g=a};f.$stateful=!0;f=a.collection?c.$watchCollection(W[e],f):c.$watch(u(W[e],f),null,h.literal);C.$on("$destroy",
f);break;case "&":h=u(W[e]),ua[d]=function(a){return h(c,a)}}})}$&&(q($,function(a){a()}),$=null);g=0;for(m=k.length;g<m;g++)t=k[g],Xc(t,t.isolateScope?C:c,S,W,t.require&&M(t.directiveName,t.require,S,H),ib);var Zb=c;R&&(R.template||null===R.templateUrl)&&(Zb=C);a&&a(Zb,f.childNodes,s,h);for(g=n.length-1;0<=g;g--)t=n[g],Xc(t,t.isolateScope?C:c,S,W,t.require&&M(t.directiveName,t.require,S,H),ib)}m=m||{};for(var C=-Number.MAX_VALUE,H,I=m.controllerDirectives,$,R=m.newIsolateScopeDirective,X=m.templateDirective,
Ga=m.nonTlbTranscludeDirective,z=!1,Yb=!1,D=m.hasElementTranscludeDirective,y=e.$$element=G(d),L,ia,E,gb=f,xa,qa=0,O=a.length;qa<O;qa++){L=a[qa];var P=L.$$start,jb=L.$$end;P&&(y=S(d,P,jb));E=s;if(C>L.priority)break;if(E=L.scope)L.templateUrl||(J(E)?(Oa("new/isolated scope",R||H,L,y),R=L):Oa("new/isolated scope",R,L,y)),H=H||L;ia=L.name;!L.templateUrl&&L.controller&&(E=L.controller,I=I||{},Oa("'"+ia+"' controller",I[ia],L,y),I[ia]=L);if(E=L.transclude)z=!0,L.$$tlb||(Oa("transclusion",Ga,L,y),Ga=L),
"element"==E?(D=!0,C=L.priority,E=y,y=e.$$element=G(V.createComment(" "+ia+": "+e[ia]+" ")),d=y[0],U(g,Za.call(E,0),d),gb=Q(E,f,C,h&&h.name,{nonTlbTranscludeDirective:Ga})):(E=G(Vb(d)).contents(),y.empty(),gb=Q(E,f));if(L.template)if(Yb=!0,Oa("template",X,L,y),X=L,E=F(L.template)?L.template(y,e):L.template,E=Yc(E),L.replace){h=L;E=Tb.test(E)?Zc(T(L.templateNamespace,N(E))):[];d=E[0];if(1!=E.length||d.nodeType!==ma)throw da("tplrt",ia,"");U(g,y,d);O={$attr:{}};E=W(d,[],O);var tf=a.splice(qa+1,a.length-
(qa+1));R&&hb(E);a=a.concat(E).concat(tf);Vc(e,O);O=a.length}else y.html(E);if(L.templateUrl)Yb=!0,Oa("template",X,L,y),X=L,L.replace&&(h=L),x=Xb(a.splice(qa,a.length-qa),y,e,g,z&&gb,k,n,{controllerDirectives:I,newIsolateScopeDirective:R,templateDirective:X,nonTlbTranscludeDirective:Ga}),O=a.length;else if(L.compile)try{xa=L.compile(y,e,gb),F(xa)?w(null,xa,P,jb):xa&&w(xa.pre,xa.post,P,jb)}catch(ac){c(ac,ta(y))}L.terminal&&(x.terminal=!0,C=Math.max(C,L.priority))}x.scope=H&&!0===H.scope;x.transcludeOnThisElement=
z;x.elementTranscludeOnThisElement=D;x.templateOnThisElement=Yb;x.transclude=gb;m.hasElementTranscludeDirective=D;return x}function hb(a){for(var b=0,c=a.length;b<c;b++)a[b]=Pb(a[b],{$$isolateScope:!0})}function z(b,d,f,g,h,k,l){if(d===h)return null;h=null;if(e.hasOwnProperty(d)){var m;d=a.get(d+"Directive");for(var p=0,w=d.length;p<w;p++)try{m=d[p],(g===s||g>m.priority)&&-1!=m.restrict.indexOf(f)&&(k&&(m=Pb(m,{$$start:k,$$end:l})),b.push(m),h=m)}catch(x){c(x)}}return h}function E(b){if(e.hasOwnProperty(b))for(var c=
a.get(b+"Directive"),d=0,f=c.length;d<f;d++)if(b=c[d],b.multiElement)return!0;return!1}function Vc(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;q(a,function(d,e){"$"!=e.charAt(0)&&(b[e]&&b[e]!==d&&(d+=("style"===e?";":" ")+b[e]),a.$set(e,d,!0,c[e]))});q(b,function(b,f){"class"==f?(H(e,b),a["class"]=(a["class"]?a["class"]+" ":"")+b):"style"==f?(e.attr("style",e.attr("style")+";"+b),a.style=(a.style?a.style+";":"")+b):"$"==f.charAt(0)||a.hasOwnProperty(f)||(a[f]=b,d[f]=c[f])})}function Xb(a,b,c,e,f,g,
h,k){var l=[],n,m,p=b[0],t=a.shift(),x=Pb(t,{templateUrl:null,transclude:null,replace:null,$$originalDirective:t}),M=F(t.templateUrl)?t.templateUrl(b,c):t.templateUrl,v=t.templateNamespace;b.empty();d(M).then(function(d){var w,C;d=Yc(d);if(t.replace){d=Tb.test(d)?Zc(T(v,N(d))):[];w=d[0];if(1!=d.length||w.nodeType!==ma)throw da("tplrt",t.name,M);d={$attr:{}};U(e,b,w);var u=W(w,[],d);J(t.scope)&&hb(u);a=u.concat(a);Vc(c,d)}else w=p,b.html(d);a.unshift(x);n=B(a,w,c,f,b,t,g,h,k);q(e,function(a,c){a==
w&&(e[c]=b[0])});for(m=X(b[0].childNodes,f);l.length;){d=l.shift();C=l.shift();var I=l.shift(),Q=l.shift(),u=b[0];if(!d.$$destroyed){if(C!==p){var R=C.className;k.hasElementTranscludeDirective&&t.replace||(u=Vb(w));U(I,G(C),u);H(G(u),R)}C=n.transcludeOnThisElement?$(d,n.transclude,Q):Q;n(m,d,u,e,C)}}l=null});return function(a,b,c,d,e){a=e;b.$$destroyed||(l?l.push(b,c,d,a):(n.transcludeOnThisElement&&(a=$(b,n.transclude,e)),n(m,b,c,d,a)))}}function xa(a,b){var c=b.priority-a.priority;return 0!==c?
c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function Oa(a,b,c,d){if(b)throw da("multidir",b.name,c.name,a,ta(d));}function ia(a,c){var d=b(c,!0);d&&a.push({priority:0,compile:function(a){a=a.parent();var b=!!a.length;b&&Q.$$addBindingClass(a);return function(a,c){var e=c.parent();b||Q.$$addBindingClass(e);Q.$$addBindingInfo(e,d.expressions);a.$watch(d,function(a){c[0].nodeValue=a})}}})}function T(a,b){a=O(a||"html");switch(a){case "svg":case "math":var c=V.createElement("div");c.innerHTML=
"<"+a+">"+b+"</"+a+">";return c.childNodes[0].childNodes;default:return b}}function jb(a,b){if("srcdoc"==b)return x.HTML;var c=sa(a);if("xlinkHref"==b||"form"==c&&"action"==b||"img"!=c&&("src"==b||"ngSrc"==b))return x.RESOURCE_URL}function P(a,c,d,e,f){var g=jb(a,e);f=h[e]||f;var l=b(d,!0,g,f);if(l){if("multiple"===e&&"select"===sa(a))throw da("selmulti",ta(a));c.push({priority:100,compile:function(){return{pre:function(a,c,h){c=h.$$observers||(h.$$observers={});if(k.test(e))throw da("nodomevents");
var n=h[e];n!==d&&(l=n&&b(n,!0,g,f),d=n);l&&(h[e]=l(a),(c[e]||(c[e]=[])).$$inter=!0,(h.$$observers&&h.$$observers[e].$$scope||a).$watch(l,function(a,b){"class"===e&&a!=b?h.$updateClass(a,b):h.$set(e,a)}))}}}})}}function U(a,b,c){var d=b[0],e=b.length,f=d.parentNode,g,h;if(a)for(g=0,h=a.length;g<h;g++)if(a[g]==d){a[g++]=c;h=g+e-1;for(var l=a.length;g<l;g++,h++)h<l?a[g]=a[h]:delete a[g];a.length-=e-1;a.context===d&&(a.context=c);break}f&&f.replaceChild(c,d);a=V.createDocumentFragment();a.appendChild(d);
G(c).data(G(d).data());pa?(Rb=!0,pa.cleanData([d])):delete G.cache[d[G.expando]];d=1;for(e=b.length;d<e;d++)f=b[d],G(f).remove(),a.appendChild(f),delete b[d];b[0]=c;b.length=1}function Y(a,b){return y(function(){return a.apply(null,arguments)},a,b)}function Xc(a,b,d,e,f,g){try{a(b,d,e,f,g)}catch(h){c(h,ta(d))}}var $b=function(a,b){if(b){var c=Object.keys(b),d,e,f;d=0;for(e=c.length;d<e;d++)f=c[d],this[f]=b[f]}else this.$attr={};this.$$element=a};$b.prototype={$normalize:va,$addClass:function(a){a&&
0<a.length&&M.addClass(this.$$element,a)},$removeClass:function(a){a&&0<a.length&&M.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=$c(a,b);c&&c.length&&M.addClass(this.$$element,c);(c=$c(b,a))&&c.length&&M.removeClass(this.$$element,c)},$set:function(a,b,d,e){var f=this.$$element[0],g=Qc(f,a),h=pf(f,a),f=a;g?(this.$$element.prop(a,b),e=g):h&&(this[h]=b,f=h);this[a]=b;e?this.$attr[a]=e:(e=this.$attr[a])||(this.$attr[a]=e=yc(a,"-"));g=sa(this.$$element);if("a"===g&&"href"===a||"img"===
g&&"src"===a)this[a]=b=C(b,"src"===a);else if("img"===g&&"srcset"===a){for(var g="",h=N(b),l=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,l=/\s/.test(h)?l:/(,)/,h=h.split(l),l=Math.floor(h.length/2),k=0;k<l;k++)var n=2*k,g=g+C(N(h[n]),!0),g=g+(" "+N(h[n+1]));h=N(h[2*k]).split(/\s/);g+=C(N(h[0]),!0);2===h.length&&(g+=" "+N(h[1]));this[a]=b=g}!1!==d&&(null===b||b===s?this.$$element.removeAttr(e):this.$$element.attr(e,b));(a=this.$$observers)&&q(a[f],function(a){try{a(b)}catch(d){c(d)}})},$observe:function(a,
b){var c=this,d=c.$$observers||(c.$$observers=ga()),e=d[a]||(d[a]=[]);e.push(b);I.$evalAsync(function(){!e.$$inter&&c.hasOwnProperty(a)&&b(c[a])});return function(){Xa(e,b)}}};var Ga=b.startSymbol(),qa=b.endSymbol(),Yc="{{"==Ga||"}}"==qa?na:function(a){return a.replace(/\{\{/g,Ga).replace(/}}/g,qa)},ac=/^ngAttr[A-Z]/;Q.$$addBindingInfo=m?function(a,b){var c=a.data("$binding")||[];A(b)?c=c.concat(b):c.push(b);a.data("$binding",c)}:D;Q.$$addBindingClass=m?function(a){H(a,"ng-binding")}:D;Q.$$addScopeInfo=
m?function(a,b,c,d){a.data(c?d?"$isolateScopeNoTemplate":"$isolateScope":"$scope",b)}:D;Q.$$addScopeClass=m?function(a,b){H(a,b?"ng-isolate-scope":"ng-scope")}:D;return Q}]}function va(b){return eb(b.replace(Wc,""))}function $c(b,a){var c="",d=b.split(/\s+/),e=a.split(/\s+/),f=0;a:for(;f<d.length;f++){for(var g=d[f],h=0;h<e.length;h++)if(g==e[h])continue a;c+=(0<c.length?" ":"")+g}return c}function Zc(b){b=G(b);var a=b.length;if(1>=a)return b;for(;a--;)8===b[a].nodeType&&uf.call(b,a,1);return b}function Ke(){var b=
{},a=!1,c=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(a,c){Ma(a,"controller");J(a)?y(b,a):b[a]=c};this.allowGlobals=function(){a=!0};this.$get=["$injector","$window",function(d,e){function f(a,b,c,d){if(!a||!J(a.$scope))throw E("$controller")("noscp",d,b);a.$scope[b]=c}return function(g,h,l,k){var m,r,n;l=!0===l;k&&K(k)&&(n=k);if(K(g)){k=g.match(c);if(!k)throw vf("ctrlfmt",g);r=k[1];n=n||k[3];g=b.hasOwnProperty(r)?b[r]:Ac(h.$scope,r,!0)||(a?Ac(e,r,!0):s);La(g,r,!0)}if(l)return l=(A(g)?g[g.length-
1]:g).prototype,m=Object.create(l||null),n&&f(h,n,m,r||g.name),y(function(){d.invoke(g,m,h,r);return m},{instance:m,identifier:n});m=d.instantiate(g,h,r);n&&f(h,n,m,r||g.name);return m}}]}function Le(){this.$get=["$window",function(b){return G(b.document)}]}function Me(){this.$get=["$log",function(b){return function(a,c){b.error.apply(b,arguments)}}]}function bc(b,a){if(K(b)){var c=b.replace(wf,"").trim();if(c){var d=a("Content-Type");(d=d&&0===d.indexOf(ad))||(d=(d=c.match(xf))&&yf[d[0]].test(c));
d&&(b=tc(c))}}return b}function bd(b){var a=ga(),c,d,e;if(!b)return a;q(b.split("\n"),function(b){e=b.indexOf(":");c=O(N(b.substr(0,e)));d=N(b.substr(e+1));c&&(a[c]=a[c]?a[c]+", "+d:d)});return a}function cd(b){var a=J(b)?b:s;return function(c){a||(a=bd(b));return c?(c=a[O(c)],void 0===c&&(c=null),c):a}}function dd(b,a,c,d){if(F(d))return d(b,a,c);q(d,function(d){b=d(b,a,c)});return b}function Pe(){var b=this.defaults={transformResponse:[bc],transformRequest:[function(a){return J(a)&&"[object File]"!==
Aa.call(a)&&"[object Blob]"!==Aa.call(a)&&"[object FormData]"!==Aa.call(a)?$a(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:oa(cc),put:oa(cc),patch:oa(cc)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},a=!1;this.useApplyAsync=function(b){return B(b)?(a=!!b,this):a};var c=this.interceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(d,e,f,g,h,l){function k(a){function c(a){var b=y({},a);b.data=a.data?dd(a.data,
a.headers,a.status,e.transformResponse):a.data;a=a.status;return 200<=a&&300>a?b:h.reject(b)}function d(a){var b,c={};q(a,function(a,d){F(a)?(b=a(),null!=b&&(c[d]=b)):c[d]=a});return c}if(!ba.isObject(a))throw E("$http")("badreq",a);var e=y({method:"get",transformRequest:b.transformRequest,transformResponse:b.transformResponse},a);e.headers=function(a){var c=b.headers,e=y({},a.headers),f,g,c=y({},c.common,c[O(a.method)]);a:for(f in c){a=O(f);for(g in e)if(O(g)===a)continue a;e[f]=c[f]}return d(e)}(a);
e.method=vb(e.method);var f=[function(a){var d=a.headers,e=dd(a.data,cd(d),s,a.transformRequest);z(e)&&q(d,function(a,b){"content-type"===O(b)&&delete d[b]});z(a.withCredentials)&&!z(b.withCredentials)&&(a.withCredentials=b.withCredentials);return m(a,e).then(c,c)},s],g=h.when(e);for(q(v,function(a){(a.request||a.requestError)&&f.unshift(a.request,a.requestError);(a.response||a.responseError)&&f.push(a.response,a.responseError)});f.length;){a=f.shift();var l=f.shift(),g=g.then(a,l)}g.success=function(a){La(a,
"fn");g.then(function(b){a(b.data,b.status,b.headers,e)});return g};g.error=function(a){La(a,"fn");g.then(null,function(b){a(b.data,b.status,b.headers,e)});return g};return g}function m(c,f){function l(b,c,d,e){function f(){m(c,b,d,e)}C&&(200<=b&&300>b?C.put(q,[b,c,bd(d),e]):C.remove(q));a?g.$applyAsync(f):(f(),g.$$phase||g.$apply())}function m(a,b,d,e){b=Math.max(b,0);(200<=b&&300>b?x.resolve:x.reject)({data:a,status:b,headers:cd(d),config:c,statusText:e})}function v(a){m(a.data,a.status,oa(a.headers()),
a.statusText)}function R(){var a=k.pendingRequests.indexOf(c);-1!==a&&k.pendingRequests.splice(a,1)}var x=h.defer(),M=x.promise,C,H,Q=c.headers,q=r(c.url,c.params);k.pendingRequests.push(c);M.then(R,R);!c.cache&&!b.cache||!1===c.cache||"GET"!==c.method&&"JSONP"!==c.method||(C=J(c.cache)?c.cache:J(b.cache)?b.cache:n);C&&(H=C.get(q),B(H)?H&&F(H.then)?H.then(v,v):A(H)?m(H[1],H[0],oa(H[2]),H[3]):m(H,200,{},"OK"):C.put(q,M));z(H)&&((H=ed(c.url)?e.cookies()[c.xsrfCookieName||b.xsrfCookieName]:s)&&(Q[c.xsrfHeaderName||
b.xsrfHeaderName]=H),d(c.method,q,f,l,Q,c.timeout,c.withCredentials,c.responseType));return M}function r(a,b){if(!b)return a;var c=[];Jd(b,function(a,b){null===a||z(a)||(A(a)||(a=[a]),q(a,function(a){J(a)&&(a=ea(a)?a.toISOString():$a(a));c.push(Ca(b)+"="+Ca(a))}))});0<c.length&&(a+=(-1==a.indexOf("?")?"?":"&")+c.join("&"));return a}var n=f("$http"),v=[];q(c,function(a){v.unshift(K(a)?l.get(a):l.invoke(a))});k.pendingRequests=[];(function(a){q(arguments,function(a){k[a]=function(b,c){return k(y(c||
{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){q(arguments,function(a){k[a]=function(b,c,d){return k(y(d||{},{method:a,url:b,data:c}))}})})("post","put","patch");k.defaults=b;return k}]}function zf(){return new T.XMLHttpRequest}function Qe(){this.$get=["$browser","$window","$document",function(b,a,c){return Af(b,zf,b.defer,a.angular.callbacks,c[0])}]}function Af(b,a,c,d,e){function f(a,b,c){var f=e.createElement("script"),m=null;f.type="text/javascript";f.src=a;f.async=!0;
m=function(a){f.removeEventListener("load",m,!1);f.removeEventListener("error",m,!1);e.body.removeChild(f);f=null;var g=-1,v="unknown";a&&("load"!==a.type||d[b].called||(a={type:"error"}),v=a.type,g="error"===a.type?404:200);c&&c(g,v)};f.addEventListener("load",m,!1);f.addEventListener("error",m,!1);e.body.appendChild(f);return m}return function(e,h,l,k,m,r,n,v){function t(){p&&p();I&&I.abort()}function w(a,d,e,f,g){x!==s&&c.cancel(x);p=I=null;a(d,e,f,g);b.$$completeOutstandingRequest(D)}b.$$incOutstandingRequestCount();
h=h||b.url();if("jsonp"==O(e)){var u="_"+(d.counter++).toString(36);d[u]=function(a){d[u].data=a;d[u].called=!0};var p=f(h.replace("JSON_CALLBACK","angular.callbacks."+u),u,function(a,b){w(k,a,d[u].data,"",b);d[u]=D})}else{var I=a();I.open(e,h,!0);q(m,function(a,b){B(a)&&I.setRequestHeader(b,a)});I.onload=function(){var a=I.statusText||"",b="response"in I?I.response:I.responseText,c=1223===I.status?204:I.status;0===c&&(c=b?200:"file"==ya(h).protocol?404:0);w(k,c,b,I.getAllResponseHeaders(),a)};e=
function(){w(k,-1,null,null,"")};I.onerror=e;I.onabort=e;n&&(I.withCredentials=!0);if(v)try{I.responseType=v}catch(R){if("json"!==v)throw R;}I.send(l||null)}if(0<r)var x=c(t,r);else r&&F(r.then)&&r.then(t)}}function Ne(){var b="{{",a="}}";this.startSymbol=function(a){return a?(b=a,this):b};this.endSymbol=function(b){return b?(a=b,this):a};this.$get=["$parse","$exceptionHandler","$sce",function(c,d,e){function f(a){return"\\\\\\"+a}function g(f,g,v,t){function w(c){return c.replace(k,b).replace(m,
a)}function u(a){try{var b=a;a=v?e.getTrusted(v,b):e.valueOf(b);var c;if(t&&!B(a))c=a;else if(null==a)c="";else{switch(typeof a){case "string":break;case "number":a=""+a;break;default:a=$a(a)}c=a}return c}catch(g){c=dc("interr",f,g.toString()),d(c)}}t=!!t;for(var p,I,q=0,x=[],M=[],C=f.length,H=[],Q=[];q<C;)if(-1!=(p=f.indexOf(b,q))&&-1!=(I=f.indexOf(a,p+h)))q!==p&&H.push(w(f.substring(q,p))),q=f.substring(p+h,I),x.push(q),M.push(c(q,u)),q=I+l,Q.push(H.length),H.push("");else{q!==C&&H.push(w(f.substring(q)));
break}if(v&&1<H.length)throw dc("noconcat",f);if(!g||x.length){var X=function(a){for(var b=0,c=x.length;b<c;b++){if(t&&z(a[b]))return;H[Q[b]]=a[b]}return H.join("")};return y(function(a){var b=0,c=x.length,e=Array(c);try{for(;b<c;b++)e[b]=M[b](a);return X(e)}catch(g){a=dc("interr",f,g.toString()),d(a)}},{exp:f,expressions:x,$$watchDelegate:function(a,b,c){var d;return a.$watchGroup(M,function(c,e){var f=X(c);F(b)&&b.call(this,f,c!==e?d:f,a);d=f},c)}})}}var h=b.length,l=a.length,k=new RegExp(b.replace(/./g,
f),"g"),m=new RegExp(a.replace(/./g,f),"g");g.startSymbol=function(){return b};g.endSymbol=function(){return a};return g}]}function Oe(){this.$get=["$rootScope","$window","$q","$$q",function(b,a,c,d){function e(e,h,l,k){var m=a.setInterval,r=a.clearInterval,n=0,v=B(k)&&!k,t=(v?d:c).defer(),w=t.promise;l=B(l)?l:0;w.then(null,null,e);w.$$intervalId=m(function(){t.notify(n++);0<l&&n>=l&&(t.resolve(n),r(w.$$intervalId),delete f[w.$$intervalId]);v||b.$apply()},h);f[w.$$intervalId]=t;return w}var f={};
e.cancel=function(b){return b&&b.$$intervalId in f?(f[b.$$intervalId].reject("canceled"),a.clearInterval(b.$$intervalId),delete f[b.$$intervalId],!0):!1};return e}]}function Wd(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"\u00a4",posSuf:"",negPre:"(\u00a4",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January February March April May June July August September October November December".split(" "),
SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a",ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"]},pluralCat:function(b){return 1===b?"one":"other"}}}}
function ec(b){b=b.split("/");for(var a=b.length;a--;)b[a]=sb(b[a]);return b.join("/")}function fd(b,a){var c=ya(b);a.$$protocol=c.protocol;a.$$host=c.hostname;a.$$port=aa(c.port)||Bf[c.protocol]||null}function gd(b,a){var c="/"!==b.charAt(0);c&&(b="/"+b);var d=ya(b);a.$$path=decodeURIComponent(c&&"/"===d.pathname.charAt(0)?d.pathname.substring(1):d.pathname);a.$$search=vc(d.search);a.$$hash=decodeURIComponent(d.hash);a.$$path&&"/"!=a.$$path.charAt(0)&&(a.$$path="/"+a.$$path)}function wa(b,a){if(0===
a.indexOf(b))return a.substr(b.length)}function Ea(b){var a=b.indexOf("#");return-1==a?b:b.substr(0,a)}function Gb(b){return b.replace(/(#.+)|#$/,"$1")}function fc(b){return b.substr(0,Ea(b).lastIndexOf("/")+1)}function gc(b,a){this.$$html5=!0;a=a||"";var c=fc(b);fd(b,this);this.$$parse=function(a){var b=wa(c,a);if(!K(b))throw Hb("ipthprfx",a,c);gd(b,this);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var a=Qb(this.$$search),b=this.$$hash?"#"+sb(this.$$hash):"";this.$$url=
ec(this.$$path)+(a?"?"+a:"")+b;this.$$absUrl=c+this.$$url.substr(1)};this.$$parseLinkUrl=function(d,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,g;(f=wa(b,d))!==s?(g=f,g=(f=wa(a,f))!==s?c+(wa("/",f)||f):b+g):(f=wa(c,d))!==s?g=c+f:c==d+"/"&&(g=c);g&&this.$$parse(g);return!!g}}function hc(b,a){var c=fc(b);fd(b,this);this.$$parse=function(d){var e=wa(b,d)||wa(c,d),f;z(e)||"#"!==e.charAt(0)?this.$$html5?f=e:(f="",z(e)&&(b=d,this.replace())):(f=wa(a,e),z(f)&&(f=e));gd(f,this);d=this.$$path;
var e=b,g=/^\/[A-Z]:(\/.*)/;0===f.indexOf(e)&&(f=f.replace(e,""));g.exec(f)||(d=(f=g.exec(d))?f[1]:d);this.$$path=d;this.$$compose()};this.$$compose=function(){var c=Qb(this.$$search),e=this.$$hash?"#"+sb(this.$$hash):"";this.$$url=ec(this.$$path)+(c?"?"+c:"")+e;this.$$absUrl=b+(this.$$url?a+this.$$url:"")};this.$$parseLinkUrl=function(a,c){return Ea(b)==Ea(a)?(this.$$parse(a),!0):!1}}function hd(b,a){this.$$html5=!0;hc.apply(this,arguments);var c=fc(b);this.$$parseLinkUrl=function(d,e){if(e&&"#"===
e[0])return this.hash(e.slice(1)),!0;var f,g;b==Ea(d)?f=d:(g=wa(c,d))?f=b+a+g:c===d+"/"&&(f=c);f&&this.$$parse(f);return!!f};this.$$compose=function(){var c=Qb(this.$$search),e=this.$$hash?"#"+sb(this.$$hash):"";this.$$url=ec(this.$$path)+(c?"?"+c:"")+e;this.$$absUrl=b+a+this.$$url}}function Ib(b){return function(){return this[b]}}function id(b,a){return function(c){if(z(c))return this[b];this[b]=a(c);this.$$compose();return this}}function Re(){var b="",a={enabled:!1,requireBase:!0,rewriteLinks:!0};
this.hashPrefix=function(a){return B(a)?(b=a,this):b};this.html5Mode=function(b){return Wa(b)?(a.enabled=b,this):J(b)?(Wa(b.enabled)&&(a.enabled=b.enabled),Wa(b.requireBase)&&(a.requireBase=b.requireBase),Wa(b.rewriteLinks)&&(a.rewriteLinks=b.rewriteLinks),this):a};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(c,d,e,f,g){function h(a,b,c){var e=k.url(),f=k.$$state;try{d.url(a,b,c),k.$$state=d.state()}catch(g){throw k.url(e),k.$$state=f,g;}}function l(a,b){c.$broadcast("$locationChangeSuccess",
k.absUrl(),a,k.$$state,b)}var k,m;m=d.baseHref();var r=d.url(),n;if(a.enabled){if(!m&&a.requireBase)throw Hb("nobase");n=r.substring(0,r.indexOf("/",r.indexOf("//")+2))+(m||"/");m=e.history?gc:hd}else n=Ea(r),m=hc;k=new m(n,"#"+b);k.$$parseLinkUrl(r,r);k.$$state=d.state();var v=/^\s*(javascript|mailto):/i;f.on("click",function(b){if(a.rewriteLinks&&!b.ctrlKey&&!b.metaKey&&!b.shiftKey&&2!=b.which&&2!=b.button){for(var e=G(b.target);"a"!==sa(e[0]);)if(e[0]===f[0]||!(e=e.parent())[0])return;var h=e.prop("href"),
l=e.attr("href")||e.attr("xlink:href");J(h)&&"[object SVGAnimatedString]"===h.toString()&&(h=ya(h.animVal).href);v.test(h)||!h||e.attr("target")||b.isDefaultPrevented()||!k.$$parseLinkUrl(h,l)||(b.preventDefault(),k.absUrl()!=d.url()&&(c.$apply(),g.angular["ff-684208-preventDefault"]=!0))}});Gb(k.absUrl())!=Gb(r)&&d.url(k.absUrl(),!0);var t=!0;d.onUrlChange(function(a,b){c.$evalAsync(function(){var d=k.absUrl(),e=k.$$state,f;k.$$parse(a);k.$$state=b;f=c.$broadcast("$locationChangeStart",a,d,b,e).defaultPrevented;
k.absUrl()===a&&(f?(k.$$parse(d),k.$$state=e,h(d,!1,e)):(t=!1,l(d,e)))});c.$$phase||c.$digest()});c.$watch(function(){var a=Gb(d.url()),b=Gb(k.absUrl()),f=d.state(),g=k.$$replace,n=a!==b||k.$$html5&&e.history&&f!==k.$$state;if(t||n)t=!1,c.$evalAsync(function(){var b=k.absUrl(),d=c.$broadcast("$locationChangeStart",b,a,k.$$state,f).defaultPrevented;k.absUrl()===b&&(d?(k.$$parse(a),k.$$state=f):(n&&h(b,g,f===k.$$state?null:k.$$state),l(a,f)))});k.$$replace=!1});return k}]}function Se(){var b=!0,a=this;
this.debugEnabled=function(a){return B(a)?(b=a,this):b};this.$get=["$window",function(c){function d(a){a instanceof Error&&(a.stack?a=a.message&&-1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function e(a){var b=c.console||{},e=b[a]||b.log||D;a=!1;try{a=!!e.apply}catch(l){}return a?function(){var a=[];q(arguments,function(b){a.push(d(b))});return e.apply(b,a)}:function(a,b){e(a,null==b?"":b)}}return{log:e("log"),
info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){b&&c.apply(a,arguments)}}()}}]}function ra(b,a){if("__defineGetter__"===b||"__defineSetter__"===b||"__lookupGetter__"===b||"__lookupSetter__"===b||"__proto__"===b)throw ja("isecfld",a);return b}function ka(b,a){if(b){if(b.constructor===b)throw ja("isecfn",a);if(b.window===b)throw ja("isecwindow",a);if(b.children&&(b.nodeName||b.prop&&b.attr&&b.find))throw ja("isecdom",a);if(b===Object)throw ja("isecobj",
a);}return b}function ic(b){return b.constant}function kb(b,a,c,d,e){ka(b,e);ka(a,e);c=c.split(".");for(var f,g=0;1<c.length;g++){f=ra(c.shift(),e);var h=0===g&&a&&a[f]||b[f];h||(h={},b[f]=h);b=ka(h,e)}f=ra(c.shift(),e);ka(b[f],e);return b[f]=d}function Pa(b){return"constructor"==b}function jd(b,a,c,d,e,f,g){ra(b,f);ra(a,f);ra(c,f);ra(d,f);ra(e,f);var h=function(a){return ka(a,f)},l=g||Pa(b)?h:na,k=g||Pa(a)?h:na,m=g||Pa(c)?h:na,r=g||Pa(d)?h:na,n=g||Pa(e)?h:na;return function(f,g){var h=g&&g.hasOwnProperty(b)?
g:f;if(null==h)return h;h=l(h[b]);if(!a)return h;if(null==h)return s;h=k(h[a]);if(!c)return h;if(null==h)return s;h=m(h[c]);if(!d)return h;if(null==h)return s;h=r(h[d]);return e?null==h?s:h=n(h[e]):h}}function Cf(b,a){return function(c,d){return b(c,d,ka,a)}}function Df(b,a,c){var d=a.expensiveChecks,e=d?Ef:Ff,f=e[b];if(f)return f;var g=b.split("."),h=g.length;if(a.csp)f=6>h?jd(g[0],g[1],g[2],g[3],g[4],c,d):function(a,b){var e=0,f;do f=jd(g[e++],g[e++],g[e++],g[e++],g[e++],c,d)(a,b),b=s,a=f;while(e<
h);return f};else{var l="";d&&(l+="s = eso(s, fe);\nl = eso(l, fe);\n");var k=d;q(g,function(a,b){ra(a,c);var e=(b?"s":'((l&&l.hasOwnProperty("'+a+'"))?l:s)')+"."+a;if(d||Pa(a))e="eso("+e+", fe)",k=!0;l+="if(s == null) return undefined;\ns="+e+";\n"});l+="return s;";a=new Function("s","l","eso","fe",l);a.toString=ca(l);k&&(a=Cf(a,c));f=a}f.sharedGetter=!0;f.assign=function(a,c,d){return kb(a,d,b,c,b)};return e[b]=f}function jc(b){return F(b.valueOf)?b.valueOf():Gf.call(b)}function Te(){var b=ga(),
a=ga();this.$get=["$filter","$sniffer",function(c,d){function e(a){var b=a;a.sharedGetter&&(b=function(b,c){return a(b,c)},b.literal=a.literal,b.constant=a.constant,b.assign=a.assign);return b}function f(a,b){for(var c=0,d=a.length;c<d;c++){var e=a[c];e.constant||(e.inputs?f(e.inputs,b):-1===b.indexOf(e)&&b.push(e))}return b}function g(a,b){return null==a||null==b?a===b:"object"===typeof a&&(a=jc(a),"object"===typeof a)?!1:a===b||a!==a&&b!==b}function h(a,b,c,d){var e=d.$$inputs||(d.$$inputs=f(d.inputs,
[])),h;if(1===e.length){var l=g,e=e[0];return a.$watch(function(a){var b=e(a);g(b,l)||(h=d(a),l=b&&jc(b));return h},b,c)}for(var k=[],n=0,m=e.length;n<m;n++)k[n]=g;return a.$watch(function(a){for(var b=!1,c=0,f=e.length;c<f;c++){var l=e[c](a);if(b||(b=!g(l,k[c])))k[c]=l&&jc(l)}b&&(h=d(a));return h},b,c)}function l(a,b,c,d){var e,f;return e=a.$watch(function(a){return d(a)},function(a,c,d){f=a;F(b)&&b.apply(this,arguments);B(a)&&d.$$postDigest(function(){B(f)&&e()})},c)}function k(a,b,c,d){function e(a){var b=
!0;q(a,function(a){B(a)||(b=!1)});return b}var f,g;return f=a.$watch(function(a){return d(a)},function(a,c,d){g=a;F(b)&&b.call(this,a,c,d);e(a)&&d.$$postDigest(function(){e(g)&&f()})},c)}function m(a,b,c,d){var e;return e=a.$watch(function(a){return d(a)},function(a,c,d){F(b)&&b.apply(this,arguments);e()},c)}function r(a,b){if(!b)return a;var c=a.$$watchDelegate,c=c!==k&&c!==l?function(c,d){var e=a(c,d);return b(e,c,d)}:function(c,d){var e=a(c,d),f=b(e,c,d);return B(e)?f:e};a.$$watchDelegate&&a.$$watchDelegate!==
h?c.$$watchDelegate=a.$$watchDelegate:b.$stateful||(c.$$watchDelegate=h,c.inputs=[a]);return c}var n={csp:d.csp,expensiveChecks:!1},v={csp:d.csp,expensiveChecks:!0};return function(d,f,g){var p,q,s;switch(typeof d){case "string":s=d=d.trim();var x=g?a:b;p=x[s];p||(":"===d.charAt(0)&&":"===d.charAt(1)&&(q=!0,d=d.substring(2)),g=g?v:n,p=new kc(g),p=(new lb(p,c,g)).parse(d),p.constant?p.$$watchDelegate=m:q?(p=e(p),p.$$watchDelegate=p.literal?k:l):p.inputs&&(p.$$watchDelegate=h),x[s]=p);return r(p,f);
case "function":return r(d,f);default:return r(D,f)}}}]}function Ve(){this.$get=["$rootScope","$exceptionHandler",function(b,a){return kd(function(a){b.$evalAsync(a)},a)}]}function We(){this.$get=["$browser","$exceptionHandler",function(b,a){return kd(function(a){b.defer(a)},a)}]}function kd(b,a){function c(a,b,c){function d(b){return function(c){e||(e=!0,b.call(a,c))}}var e=!1;return[d(b),d(c)]}function d(){this.$$state={status:0}}function e(a,b){return function(c){b.call(a,c)}}function f(c){!c.processScheduled&&
c.pending&&(c.processScheduled=!0,b(function(){var b,d,e;e=c.pending;c.processScheduled=!1;c.pending=s;for(var f=0,g=e.length;f<g;++f){d=e[f][0];b=e[f][c.status];try{F(b)?d.resolve(b(c.value)):1===c.status?d.resolve(c.value):d.reject(c.value)}catch(h){d.reject(h),a(h)}}}))}function g(){this.promise=new d;this.resolve=e(this,this.resolve);this.reject=e(this,this.reject);this.notify=e(this,this.notify)}var h=E("$q",TypeError);d.prototype={then:function(a,b,c){var d=new g;this.$$state.pending=this.$$state.pending||
[];this.$$state.pending.push([d,a,b,c]);0<this.$$state.status&&f(this.$$state);return d.promise},"catch":function(a){return this.then(null,a)},"finally":function(a,b){return this.then(function(b){return k(b,!0,a)},function(b){return k(b,!1,a)},b)}};g.prototype={resolve:function(a){this.promise.$$state.status||(a===this.promise?this.$$reject(h("qcycle",a)):this.$$resolve(a))},$$resolve:function(b){var d,e;e=c(this,this.$$resolve,this.$$reject);try{if(J(b)||F(b))d=b&&b.then;F(d)?(this.promise.$$state.status=
-1,d.call(b,e[0],e[1],this.notify)):(this.promise.$$state.value=b,this.promise.$$state.status=1,f(this.promise.$$state))}catch(g){e[1](g),a(g)}},reject:function(a){this.promise.$$state.status||this.$$reject(a)},$$reject:function(a){this.promise.$$state.value=a;this.promise.$$state.status=2;f(this.promise.$$state)},notify:function(c){var d=this.promise.$$state.pending;0>=this.promise.$$state.status&&d&&d.length&&b(function(){for(var b,e,f=0,g=d.length;f<g;f++){e=d[f][0];b=d[f][3];try{e.notify(F(b)?
b(c):c)}catch(h){a(h)}}})}};var l=function(a,b){var c=new g;b?c.resolve(a):c.reject(a);return c.promise},k=function(a,b,c){var d=null;try{F(c)&&(d=c())}catch(e){return l(e,!1)}return d&&F(d.then)?d.then(function(){return l(a,b)},function(a){return l(a,!1)}):l(a,b)},m=function(a,b,c,d){var e=new g;e.resolve(a);return e.promise.then(b,c,d)},r=function v(a){if(!F(a))throw h("norslvr",a);if(!(this instanceof v))return new v(a);var b=new g;a(function(a){b.resolve(a)},function(a){b.reject(a)});return b.promise};
r.defer=function(){return new g};r.reject=function(a){var b=new g;b.reject(a);return b.promise};r.when=m;r.all=function(a){var b=new g,c=0,d=A(a)?[]:{};q(a,function(a,e){c++;m(a).then(function(a){d.hasOwnProperty(e)||(d[e]=a,--c||b.resolve(d))},function(a){d.hasOwnProperty(e)||b.reject(a)})});0===c&&b.resolve(d);return b.promise};return r}function ef(){this.$get=["$window","$timeout",function(b,a){function c(){for(var a=0;a<m.length;a++){var b=m[a];b&&(m[a]=null,b())}k=m.length=0}function d(a){var b=
m.length;k++;m.push(a);0===b&&(l=h(c));return function(){0<=b&&(b=m[b]=null,0===--k&&l&&(l(),l=null,m.length=0))}}var e=b.requestAnimationFrame||b.webkitRequestAnimationFrame,f=b.cancelAnimationFrame||b.webkitCancelAnimationFrame||b.webkitCancelRequestAnimationFrame,g=!!e,h=g?function(a){var b=e(a);return function(){f(b)}}:function(b){var c=a(b,16.66,!1);return function(){a.cancel(c)}};d.supported=g;var l,k=0,m=[];return d}]}function Ue(){function b(a){function b(){this.$$watchers=this.$$nextSibling=
this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$id=++rb;this.$$ChildScope=null}b.prototype=a;return b}var a=10,c=E("$rootScope"),d=null,e=null;this.digestTtl=function(b){arguments.length&&(a=b);return a};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(f,g,h,l){function k(a){a.currentScope.$$destroyed=!0}function m(){this.$id=++rb;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=
null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$isolateBindings=null}function r(a){if(u.$$phase)throw c("inprog",u.$$phase);u.$$phase=a}function n(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c];while(a=a.$parent)}function v(){}function t(){for(;s.length;)try{s.shift()()}catch(a){g(a)}e=null}function w(){null===e&&(e=l.defer(function(){u.$apply(t)}))}m.prototype={constructor:m,$new:function(a,c){var d;c=c||this;a?
(d=new m,d.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=b(this)),d=new this.$$ChildScope);d.$parent=c;d.$$prevSibling=c.$$childTail;c.$$childHead?(c.$$childTail.$$nextSibling=d,c.$$childTail=d):c.$$childHead=c.$$childTail=d;(a||c!=this)&&d.$on("$destroy",k);return d},$watch:function(a,b,c){var e=h(a);if(e.$$watchDelegate)return e.$$watchDelegate(this,b,c,e);var f=this.$$watchers,g={fn:b,last:v,get:e,exp:a,eq:!!c};d=null;F(b)||(g.fn=D);f||(f=this.$$watchers=[]);f.unshift(g);return function(){Xa(f,
g);d=null}},$watchGroup:function(a,b){function c(){h=!1;l?(l=!1,b(e,e,g)):b(e,d,g)}var d=Array(a.length),e=Array(a.length),f=[],g=this,h=!1,l=!0;if(!a.length){var k=!0;g.$evalAsync(function(){k&&b(e,e,g)});return function(){k=!1}}if(1===a.length)return this.$watch(a[0],function(a,c,f){e[0]=a;d[0]=c;b(e,a===c?e:d,f)});q(a,function(a,b){var l=g.$watch(a,function(a,f){e[b]=a;d[b]=f;h||(h=!0,g.$evalAsync(c))});f.push(l)});return function(){for(;f.length;)f.shift()()}},$watchCollection:function(a,b){function c(a){e=
a;var b,d,g,h;if(!z(e)){if(J(e))if(Sa(e))for(f!==n&&(f=n,v=f.length=0,k++),a=e.length,v!==a&&(k++,f.length=v=a),b=0;b<a;b++)h=f[b],g=e[b],d=h!==h&&g!==g,d||h===g||(k++,f[b]=g);else{f!==r&&(f=r={},v=0,k++);a=0;for(b in e)e.hasOwnProperty(b)&&(a++,g=e[b],h=f[b],b in f?(d=h!==h&&g!==g,d||h===g||(k++,f[b]=g)):(v++,f[b]=g,k++));if(v>a)for(b in k++,f)e.hasOwnProperty(b)||(v--,delete f[b])}else f!==e&&(f=e,k++);return k}}c.$stateful=!0;var d=this,e,f,g,l=1<b.length,k=0,m=h(a,c),n=[],r={},p=!0,v=0;return this.$watch(m,
function(){p?(p=!1,b(e,e,d)):b(e,g,d);if(l)if(J(e))if(Sa(e)){g=Array(e.length);for(var a=0;a<e.length;a++)g[a]=e[a]}else for(a in g={},e)wc.call(e,a)&&(g[a]=e[a]);else g=e})},$digest:function(){var b,f,h,k,m,n,q=a,w,S=[],s,B;r("$digest");l.$$checkUrlChange();this===u&&null!==e&&(l.defer.cancel(e),t());d=null;do{n=!1;for(w=this;p.length;){try{B=p.shift(),B.scope.$eval(B.expression,B.locals)}catch(R){g(R)}d=null}a:do{if(k=w.$$watchers)for(m=k.length;m--;)try{if(b=k[m])if((f=b.get(w))!==(h=b.last)&&
!(b.eq?fa(f,h):"number"===typeof f&&"number"===typeof h&&isNaN(f)&&isNaN(h)))n=!0,d=b,b.last=b.eq?Ba(f,null):f,b.fn(f,h===v?f:h,w),5>q&&(s=4-q,S[s]||(S[s]=[]),S[s].push({msg:F(b.exp)?"fn: "+(b.exp.name||b.exp.toString()):b.exp,newVal:f,oldVal:h}));else if(b===d){n=!1;break a}}catch(z){g(z)}if(!(k=w.$$childHead||w!==this&&w.$$nextSibling))for(;w!==this&&!(k=w.$$nextSibling);)w=w.$parent}while(w=k);if((n||p.length)&&!q--)throw u.$$phase=null,c("infdig",a,S);}while(n||p.length);for(u.$$phase=null;I.length;)try{I.shift()()}catch(E){g(E)}},
$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;if(this!==u){for(var b in this.$$listenerCount)n(this,this.$$listenerCount[b],b);a.$$childHead==this&&(a.$$childHead=this.$$nextSibling);a.$$childTail==this&&(a.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=
this.$applyAsync=D;this.$on=this.$watch=this.$watchGroup=function(){return D};this.$$listeners={};this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}}},$eval:function(a,b){return h(a)(this,b)},$evalAsync:function(a,b){u.$$phase||p.length||l.defer(function(){p.length&&u.$digest()});p.push({scope:this,expression:a,locals:b})},$$postDigest:function(a){I.push(a)},$apply:function(a){try{return r("$apply"),this.$eval(a)}catch(b){g(b)}finally{u.$$phase=
null;try{u.$digest()}catch(c){throw g(c),c;}}},$applyAsync:function(a){function b(){c.$eval(a)}var c=this;a&&s.push(b);w()},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]);c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++;while(d=d.$parent);var e=this;return function(){var d=c.indexOf(b);-1!==d&&(c[d]=null,n(e,1,a))}},$emit:function(a,b){var c=[],d,e=this,f=!1,h={name:a,targetScope:e,stopPropagation:function(){f=!0},preventDefault:function(){h.defaultPrevented=
!0},defaultPrevented:!1},l=Ya([h],arguments,1),k,m;do{d=e.$$listeners[a]||c;h.currentScope=e;k=0;for(m=d.length;k<m;k++)if(d[k])try{d[k].apply(null,l)}catch(n){g(n)}else d.splice(k,1),k--,m--;if(f)return h.currentScope=null,h;e=e.$parent}while(e);h.currentScope=null;return h},$broadcast:function(a,b){var c=this,d=this,e={name:a,targetScope:this,preventDefault:function(){e.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[a])return e;for(var f=Ya([e],arguments,1),h,l;c=d;){e.currentScope=
c;d=c.$$listeners[a]||[];h=0;for(l=d.length;h<l;h++)if(d[h])try{d[h].apply(null,f)}catch(k){g(k)}else d.splice(h,1),h--,l--;if(!(d=c.$$listenerCount[a]&&c.$$childHead||c!==this&&c.$$nextSibling))for(;c!==this&&!(d=c.$$nextSibling);)c=c.$parent}e.currentScope=null;return e}};var u=new m,p=u.$$asyncQueue=[],I=u.$$postDigestQueue=[],s=u.$$applyAsyncQueue=[];return u}]}function Xd(){var b=/^\s*(https?|ftp|mailto|tel|file):/,a=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=
function(a){return B(a)?(b=a,this):b};this.imgSrcSanitizationWhitelist=function(b){return B(b)?(a=b,this):a};this.$get=function(){return function(c,d){var e=d?a:b,f;f=ya(c).href;return""===f||f.match(e)?c:"unsafe:"+f}}}function Hf(b){if("self"===b)return b;if(K(b)){if(-1<b.indexOf("***"))throw za("iwcard",b);b=ld(b).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*");return new RegExp("^"+b+"$")}if(Ua(b))return new RegExp("^"+b.source+"$");throw za("imatcher");}function md(b){var a=[];B(b)&&q(b,function(b){a.push(Hf(b))});
return a}function Ye(){this.SCE_CONTEXTS=la;var b=["self"],a=[];this.resourceUrlWhitelist=function(a){arguments.length&&(b=md(a));return b};this.resourceUrlBlacklist=function(b){arguments.length&&(a=md(b));return a};this.$get=["$injector",function(c){function d(a,b){return"self"===a?ed(b):!!a.exec(b.href)}function e(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};a&&(b.prototype=new a);b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()};b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};
return b}var f=function(a){throw za("unsafe");};c.has("$sanitize")&&(f=c.get("$sanitize"));var g=e(),h={};h[la.HTML]=e(g);h[la.CSS]=e(g);h[la.URL]=e(g);h[la.JS]=e(g);h[la.RESOURCE_URL]=e(h[la.URL]);return{trustAs:function(a,b){var c=h.hasOwnProperty(a)?h[a]:null;if(!c)throw za("icontext",a,b);if(null===b||b===s||""===b)return b;if("string"!==typeof b)throw za("itype",a);return new c(b)},getTrusted:function(c,e){if(null===e||e===s||""===e)return e;var g=h.hasOwnProperty(c)?h[c]:null;if(g&&e instanceof
g)return e.$$unwrapTrustedValue();if(c===la.RESOURCE_URL){var g=ya(e.toString()),r,n,v=!1;r=0;for(n=b.length;r<n;r++)if(d(b[r],g)){v=!0;break}if(v)for(r=0,n=a.length;r<n;r++)if(d(a[r],g)){v=!1;break}if(v)return e;throw za("insecurl",e.toString());}if(c===la.HTML)return f(e);throw za("unsafe");},valueOf:function(a){return a instanceof g?a.$$unwrapTrustedValue():a}}}]}function Xe(){var b=!0;this.enabled=function(a){arguments.length&&(b=!!a);return b};this.$get=["$parse","$sceDelegate",function(a,c){if(b&&
8>Qa)throw za("iequirks");var d=oa(la);d.isEnabled=function(){return b};d.trustAs=c.trustAs;d.getTrusted=c.getTrusted;d.valueOf=c.valueOf;b||(d.trustAs=d.getTrusted=function(a,b){return b},d.valueOf=na);d.parseAs=function(b,c){var e=a(c);return e.literal&&e.constant?e:a(c,function(a){return d.getTrusted(b,a)})};var e=d.parseAs,f=d.getTrusted,g=d.trustAs;q(la,function(a,b){var c=O(b);d[eb("parse_as_"+c)]=function(b){return e(a,b)};d[eb("get_trusted_"+c)]=function(b){return f(a,b)};d[eb("trust_as_"+
c)]=function(b){return g(a,b)}});return d}]}function Ze(){this.$get=["$window","$document",function(b,a){var c={},d=aa((/android (\d+)/.exec(O((b.navigator||{}).userAgent))||[])[1]),e=/Boxee/i.test((b.navigator||{}).userAgent),f=a[0]||{},g,h=/^(Moz|webkit|ms)(?=[A-Z])/,l=f.body&&f.body.style,k=!1,m=!1;if(l){for(var r in l)if(k=h.exec(r)){g=k[0];g=g.substr(0,1).toUpperCase()+g.substr(1);break}g||(g="WebkitOpacity"in l&&"webkit");k=!!("transition"in l||g+"Transition"in l);m=!!("animation"in l||g+"Animation"in
l);!d||k&&m||(k=K(f.body.style.webkitTransition),m=K(f.body.style.webkitAnimation))}return{history:!(!b.history||!b.history.pushState||4>d||e),hasEvent:function(a){if("input"===a&&11>=Qa)return!1;if(z(c[a])){var b=f.createElement("div");c[a]="on"+a in b}return c[a]},csp:cb(),vendorPrefix:g,transitions:k,animations:m,android:d}}]}function af(){this.$get=["$templateCache","$http","$q","$sce",function(b,a,c,d){function e(f,g){e.totalPendingRequests++;K(f)&&b.get(f)||(f=d.getTrustedResourceUrl(f));var h=
a.defaults&&a.defaults.transformResponse;A(h)?h=h.filter(function(a){return a!==bc}):h===bc&&(h=null);return a.get(f,{cache:b,transformResponse:h})["finally"](function(){e.totalPendingRequests--}).then(function(a){return a.data},function(a){if(!g)throw da("tpload",f);return c.reject(a)})}e.totalPendingRequests=0;return e}]}function bf(){this.$get=["$rootScope","$browser","$location",function(b,a,c){return{findBindings:function(a,b,c){a=a.getElementsByClassName("ng-binding");var g=[];q(a,function(a){var d=
ba.element(a).data("$binding");d&&q(d,function(d){c?(new RegExp("(^|\\s)"+ld(b)+"(\\s|\\||$)")).test(d)&&g.push(a):-1!=d.indexOf(b)&&g.push(a)})});return g},findModels:function(a,b,c){for(var g=["ng-","data-ng-","ng\\:"],h=0;h<g.length;++h){var l=a.querySelectorAll("["+g[h]+"model"+(c?"=":"*=")+'"'+b+'"]');if(l.length)return l}},getLocation:function(){return c.url()},setLocation:function(a){a!==c.url()&&(c.url(a),b.$digest())},whenStable:function(b){a.notifyWhenNoOutstandingRequests(b)}}}]}function cf(){this.$get=
["$rootScope","$browser","$q","$$q","$exceptionHandler",function(b,a,c,d,e){function f(f,l,k){var m=B(k)&&!k,r=(m?d:c).defer(),n=r.promise;l=a.defer(function(){try{r.resolve(f())}catch(a){r.reject(a),e(a)}finally{delete g[n.$$timeoutId]}m||b.$apply()},l);n.$$timeoutId=l;g[l]=r;return n}var g={};f.cancel=function(b){return b&&b.$$timeoutId in g?(g[b.$$timeoutId].reject("canceled"),delete g[b.$$timeoutId],a.defer.cancel(b.$$timeoutId)):!1};return f}]}function ya(b){Qa&&(Y.setAttribute("href",b),b=Y.href);
Y.setAttribute("href",b);return{href:Y.href,protocol:Y.protocol?Y.protocol.replace(/:$/,""):"",host:Y.host,search:Y.search?Y.search.replace(/^\?/,""):"",hash:Y.hash?Y.hash.replace(/^#/,""):"",hostname:Y.hostname,port:Y.port,pathname:"/"===Y.pathname.charAt(0)?Y.pathname:"/"+Y.pathname}}function ed(b){b=K(b)?ya(b):b;return b.protocol===nd.protocol&&b.host===nd.host}function df(){this.$get=ca(T)}function Ic(b){function a(c,d){if(J(c)){var e={};q(c,function(b,c){e[c]=a(c,b)});return e}return b.factory(c+
"Filter",d)}this.register=a;this.$get=["$injector",function(a){return function(b){return a.get(b+"Filter")}}];a("currency",od);a("date",pd);a("filter",If);a("json",Jf);a("limitTo",Kf);a("lowercase",Lf);a("number",qd);a("orderBy",rd);a("uppercase",Mf)}function If(){return function(b,a,c){if(!A(b))return b;var d;switch(null!==a?typeof a:"null"){case "function":break;case "boolean":case "null":case "number":case "string":d=!0;case "object":a=Nf(a,c,d);break;default:return b}return b.filter(a)}}function Nf(b,
a,c){var d=J(b)&&"$"in b;!0===a?a=fa:F(a)||(a=function(a,b){if(z(a))return!1;if(null===a||null===b)return a===b;if(J(a)||J(b))return!1;a=O(""+a);b=O(""+b);return-1!==a.indexOf(b)});return function(e){return d&&!J(e)?Ha(e,b.$,a,!1):Ha(e,b,a,c)}}function Ha(b,a,c,d,e){var f=null!==b?typeof b:"null",g=null!==a?typeof a:"null";if("string"===g&&"!"===a.charAt(0))return!Ha(b,a.substring(1),c,d);if(A(b))return b.some(function(b){return Ha(b,a,c,d)});switch(f){case "object":var h;if(d){for(h in b)if("$"!==
h.charAt(0)&&Ha(b[h],a,c,!0))return!0;return e?!1:Ha(b,a,c,!1)}if("object"===g){for(h in a)if(e=a[h],!F(e)&&!z(e)&&(f="$"===h,!Ha(f?b:b[h],e,c,f,f)))return!1;return!0}return c(b,a);case "function":return!1;default:return c(b,a)}}function od(b){var a=b.NUMBER_FORMATS;return function(b,d,e){z(d)&&(d=a.CURRENCY_SYM);z(e)&&(e=a.PATTERNS[1].maxFrac);return null==b?b:sd(b,a.PATTERNS[1],a.GROUP_SEP,a.DECIMAL_SEP,e).replace(/\u00A4/g,d)}}function qd(b){var a=b.NUMBER_FORMATS;return function(b,d){return null==
b?b:sd(b,a.PATTERNS[0],a.GROUP_SEP,a.DECIMAL_SEP,d)}}function sd(b,a,c,d,e){if(!isFinite(b)||J(b))return"";var f=0>b;b=Math.abs(b);var g=b+"",h="",l=[],k=!1;if(-1!==g.indexOf("e")){var m=g.match(/([\d\.]+)e(-?)(\d+)/);m&&"-"==m[2]&&m[3]>e+1?b=0:(h=g,k=!0)}if(k)0<e&&1>b&&(h=b.toFixed(e),b=parseFloat(h));else{g=(g.split(td)[1]||"").length;z(e)&&(e=Math.min(Math.max(a.minFrac,g),a.maxFrac));b=+(Math.round(+(b.toString()+"e"+e)).toString()+"e"+-e);var g=(""+b).split(td),k=g[0],g=g[1]||"",r=0,n=a.lgSize,
v=a.gSize;if(k.length>=n+v)for(r=k.length-n,m=0;m<r;m++)0===(r-m)%v&&0!==m&&(h+=c),h+=k.charAt(m);for(m=r;m<k.length;m++)0===(k.length-m)%n&&0!==m&&(h+=c),h+=k.charAt(m);for(;g.length<e;)g+="0";e&&"0"!==e&&(h+=d+g.substr(0,e))}0===b&&(f=!1);l.push(f?a.negPre:a.posPre,h,f?a.negSuf:a.posSuf);return l.join("")}function Jb(b,a,c){var d="";0>b&&(d="-",b=-b);for(b=""+b;b.length<a;)b="0"+b;c&&(b=b.substr(b.length-a));return d+b}function Z(b,a,c,d){c=c||0;return function(e){e=e["get"+b]();if(0<c||e>-c)e+=
c;0===e&&-12==c&&(e=12);return Jb(e,a,d)}}function Kb(b,a){return function(c,d){var e=c["get"+b](),f=vb(a?"SHORT"+b:b);return d[f][e]}}function ud(b){var a=(new Date(b,0,1)).getDay();return new Date(b,0,(4>=a?5:12)-a)}function vd(b){return function(a){var c=ud(a.getFullYear());a=+new Date(a.getFullYear(),a.getMonth(),a.getDate()+(4-a.getDay()))-+c;a=1+Math.round(a/6048E5);return Jb(a,b)}}function lc(b,a){return 0>=b.getFullYear()?a.ERAS[0]:a.ERAS[1]}function pd(b){function a(a){var b;if(b=a.match(c)){a=
new Date(0);var f=0,g=0,h=b[8]?a.setUTCFullYear:a.setFullYear,l=b[8]?a.setUTCHours:a.setHours;b[9]&&(f=aa(b[9]+b[10]),g=aa(b[9]+b[11]));h.call(a,aa(b[1]),aa(b[2])-1,aa(b[3]));f=aa(b[4]||0)-f;g=aa(b[5]||0)-g;h=aa(b[6]||0);b=Math.round(1E3*parseFloat("0."+(b[7]||0)));l.call(a,f,g,h,b)}return a}var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,e,f){var g="",h=[],l,k;e=e||"mediumDate";e=b.DATETIME_FORMATS[e]||e;K(c)&&(c=Of.test(c)?
aa(c):a(c));U(c)&&(c=new Date(c));if(!ea(c))return c;for(;e;)(k=Pf.exec(e))?(h=Ya(h,k,1),e=h.pop()):(h.push(e),e=null);f&&"UTC"===f&&(c=new Date(c.getTime()),c.setMinutes(c.getMinutes()+c.getTimezoneOffset()));q(h,function(a){l=Qf[a];g+=l?l(c,b.DATETIME_FORMATS):a.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return g}}function Jf(){return function(b,a){z(a)&&(a=2);return $a(b,a)}}function Kf(){return function(b,a){U(b)&&(b=b.toString());return A(b)||K(b)?(a=Infinity===Math.abs(Number(a))?Number(a):
aa(a))?0<a?b.slice(0,a):b.slice(a):K(b)?"":[]:b}}function rd(b){return function(a,c,d){function e(a,b){return b?function(b,c){return a(c,b)}:a}function f(a){switch(typeof a){case "number":case "boolean":case "string":return!0;default:return!1}}function g(a){return null===a?"null":"function"===typeof a.valueOf&&(a=a.valueOf(),f(a))||"function"===typeof a.toString&&(a=a.toString(),f(a))?a:""}function h(a,b){var c=typeof a,d=typeof b;c===d&&"object"===c&&(a=g(a),b=g(b));return c===d?("string"===c&&(a=
a.toLowerCase(),b=b.toLowerCase()),a===b?0:a<b?-1:1):c<d?-1:1}if(!Sa(a))return a;c=A(c)?c:[c];0===c.length&&(c=["+"]);c=c.map(function(a){var c=!1,d=a||na;if(K(a)){if("+"==a.charAt(0)||"-"==a.charAt(0))c="-"==a.charAt(0),a=a.substring(1);if(""===a)return e(h,c);d=b(a);if(d.constant){var f=d();return e(function(a,b){return h(a[f],b[f])},c)}}return e(function(a,b){return h(d(a),d(b))},c)});return Za.call(a).sort(e(function(a,b){for(var d=0;d<c.length;d++){var e=c[d](a,b);if(0!==e)return e}return 0},
d))}}function Ia(b){F(b)&&(b={link:b});b.restrict=b.restrict||"AC";return ca(b)}function wd(b,a,c,d,e){var f=this,g=[],h=f.$$parentForm=b.parent().controller("form")||Lb;f.$error={};f.$$success={};f.$pending=s;f.$name=e(a.name||a.ngForm||"")(c);f.$dirty=!1;f.$pristine=!0;f.$valid=!0;f.$invalid=!1;f.$submitted=!1;h.$addControl(f);f.$rollbackViewValue=function(){q(g,function(a){a.$rollbackViewValue()})};f.$commitViewValue=function(){q(g,function(a){a.$commitViewValue()})};f.$addControl=function(a){Ma(a.$name,
"input");g.push(a);a.$name&&(f[a.$name]=a)};f.$$renameControl=function(a,b){var c=a.$name;f[c]===a&&delete f[c];f[b]=a;a.$name=b};f.$removeControl=function(a){a.$name&&f[a.$name]===a&&delete f[a.$name];q(f.$pending,function(b,c){f.$setValidity(c,null,a)});q(f.$error,function(b,c){f.$setValidity(c,null,a)});q(f.$$success,function(b,c){f.$setValidity(c,null,a)});Xa(g,a)};xd({ctrl:this,$element:b,set:function(a,b,c){var d=a[b];d?-1===d.indexOf(c)&&d.push(c):a[b]=[c]},unset:function(a,b,c){var d=a[b];
d&&(Xa(d,c),0===d.length&&delete a[b])},parentForm:h,$animate:d});f.$setDirty=function(){d.removeClass(b,Ra);d.addClass(b,Mb);f.$dirty=!0;f.$pristine=!1;h.$setDirty()};f.$setPristine=function(){d.setClass(b,Ra,Mb+" ng-submitted");f.$dirty=!1;f.$pristine=!0;f.$submitted=!1;q(g,function(a){a.$setPristine()})};f.$setUntouched=function(){q(g,function(a){a.$setUntouched()})};f.$setSubmitted=function(){d.addClass(b,"ng-submitted");f.$submitted=!0;h.$setSubmitted()}}function mc(b){b.$formatters.push(function(a){return b.$isEmpty(a)?
a:a.toString()})}function mb(b,a,c,d,e,f){var g=O(a[0].type);if(!e.android){var h=!1;a.on("compositionstart",function(a){h=!0});a.on("compositionend",function(){h=!1;l()})}var l=function(b){k&&(f.defer.cancel(k),k=null);if(!h){var e=a.val();b=b&&b.type;"password"===g||c.ngTrim&&"false"===c.ngTrim||(e=N(e));(d.$viewValue!==e||""===e&&d.$$hasNativeValidators)&&d.$setViewValue(e,b)}};if(e.hasEvent("input"))a.on("input",l);else{var k,m=function(a,b,c){k||(k=f.defer(function(){k=null;b&&b.value===c||l(a)}))};
a.on("keydown",function(a){var b=a.keyCode;91===b||15<b&&19>b||37<=b&&40>=b||m(a,this,this.value)});if(e.hasEvent("paste"))a.on("paste cut",m)}a.on("change",l);d.$render=function(){a.val(d.$isEmpty(d.$viewValue)?"":d.$viewValue)}}function Nb(b,a){return function(c,d){var e,f;if(ea(c))return c;if(K(c)){'"'==c.charAt(0)&&'"'==c.charAt(c.length-1)&&(c=c.substring(1,c.length-1));if(Rf.test(c))return new Date(c);b.lastIndex=0;if(e=b.exec(c))return e.shift(),f=d?{yyyy:d.getFullYear(),MM:d.getMonth()+1,
dd:d.getDate(),HH:d.getHours(),mm:d.getMinutes(),ss:d.getSeconds(),sss:d.getMilliseconds()/1E3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},q(e,function(b,c){c<a.length&&(f[a[c]]=+b)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,1E3*f.sss||0)}return NaN}}function nb(b,a,c,d){return function(e,f,g,h,l,k,m){function r(a){return a&&!(a.getTime&&a.getTime()!==a.getTime())}function n(a){return B(a)?ea(a)?a:c(a):s}yd(e,f,g,h);mb(e,f,g,h,l,k);var v=h&&h.$options&&h.$options.timezone,t;h.$$parserName=b;
h.$parsers.push(function(b){return h.$isEmpty(b)?null:a.test(b)?(b=c(b,t),"UTC"===v&&b.setMinutes(b.getMinutes()-b.getTimezoneOffset()),b):s});h.$formatters.push(function(a){if(a&&!ea(a))throw Ob("datefmt",a);if(r(a)){if((t=a)&&"UTC"===v){var b=6E4*t.getTimezoneOffset();t=new Date(t.getTime()+b)}return m("date")(a,d,v)}t=null;return""});if(B(g.min)||g.ngMin){var q;h.$validators.min=function(a){return!r(a)||z(q)||c(a)>=q};g.$observe("min",function(a){q=n(a);h.$validate()})}if(B(g.max)||g.ngMax){var u;
h.$validators.max=function(a){return!r(a)||z(u)||c(a)<=u};g.$observe("max",function(a){u=n(a);h.$validate()})}}}function yd(b,a,c,d){(d.$$hasNativeValidators=J(a[0].validity))&&d.$parsers.push(function(b){var c=a.prop("validity")||{};return c.badInput&&!c.typeMismatch?s:b})}function zd(b,a,c,d,e){if(B(d)){b=b(d);if(!b.constant)throw E("ngModel")("constexpr",c,d);return b(a)}return e}function nc(b,a){b="ngClass"+b;return["$animate",function(c){function d(a,b){var c=[],d=0;a:for(;d<a.length;d++){for(var e=
a[d],m=0;m<b.length;m++)if(e==b[m])continue a;c.push(e)}return c}function e(a){if(!A(a)){if(K(a))return a.split(" ");if(J(a)){var b=[];q(a,function(a,c){a&&(b=b.concat(c.split(" ")))});return b}}return a}return{restrict:"AC",link:function(f,g,h){function l(a,b){var c=g.data("$classCounts")||{},d=[];q(a,function(a){if(0<b||c[a])c[a]=(c[a]||0)+b,c[a]===+(0<b)&&d.push(a)});g.data("$classCounts",c);return d.join(" ")}function k(b){if(!0===a||f.$index%2===a){var k=e(b||[]);if(!m){var v=l(k,1);h.$addClass(v)}else if(!fa(b,
m)){var q=e(m),v=d(k,q),k=d(q,k),v=l(v,1),k=l(k,-1);v&&v.length&&c.addClass(g,v);k&&k.length&&c.removeClass(g,k)}}m=oa(b)}var m;f.$watch(h[b],k,!0);h.$observe("class",function(a){k(f.$eval(h[b]))});"ngClass"!==b&&f.$watch("$index",function(c,d){var g=c&1;if(g!==(d&1)){var k=e(f.$eval(h[b]));g===a?(g=l(k,1),h.$addClass(g)):(g=l(k,-1),h.$removeClass(g))}})}}}]}function xd(b){function a(a,b){b&&!f[a]?(k.addClass(e,a),f[a]=!0):!b&&f[a]&&(k.removeClass(e,a),f[a]=!1)}function c(b,c){b=b?"-"+yc(b,"-"):"";
a(ob+b,!0===c);a(Ad+b,!1===c)}var d=b.ctrl,e=b.$element,f={},g=b.set,h=b.unset,l=b.parentForm,k=b.$animate;f[Ad]=!(f[ob]=e.hasClass(ob));d.$setValidity=function(b,e,f){e===s?(d.$pending||(d.$pending={}),g(d.$pending,b,f)):(d.$pending&&h(d.$pending,b,f),Bd(d.$pending)&&(d.$pending=s));Wa(e)?e?(h(d.$error,b,f),g(d.$$success,b,f)):(g(d.$error,b,f),h(d.$$success,b,f)):(h(d.$error,b,f),h(d.$$success,b,f));d.$pending?(a(Cd,!0),d.$valid=d.$invalid=s,c("",null)):(a(Cd,!1),d.$valid=Bd(d.$error),d.$invalid=
!d.$valid,c("",d.$valid));e=d.$pending&&d.$pending[b]?s:d.$error[b]?!1:d.$$success[b]?!0:null;c(b,e);l.$setValidity(b,e,d)}}function Bd(b){if(b)for(var a in b)return!1;return!0}var Sf=/^\/(.+)\/([a-z]*)$/,O=function(b){return K(b)?b.toLowerCase():b},wc=Object.prototype.hasOwnProperty,vb=function(b){return K(b)?b.toUpperCase():b},Qa,G,pa,Za=[].slice,uf=[].splice,Tf=[].push,Aa=Object.prototype.toString,Ja=E("ng"),ba=T.angular||(T.angular={}),db,rb=0;Qa=V.documentMode;D.$inject=[];na.$inject=[];var A=
Array.isArray,N=function(b){return K(b)?b.trim():b},ld=function(b){return b.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},cb=function(){if(B(cb.isActive_))return cb.isActive_;var b=!(!V.querySelector("[ng-csp]")&&!V.querySelector("[data-ng-csp]"));if(!b)try{new Function("")}catch(a){b=!0}return cb.isActive_=b},tb=["ng-","data-ng-","ng:","x-ng-"],Rd=/[A-Z]/g,zc=!1,Rb,ma=1,ab=3,Vd={full:"1.3.17",major:1,minor:3,dot:17,codeName:"tsktskskly-euouae"};P.expando="ng339";var Ab=
P.cache={},nf=1;P._data=function(b){return this.cache[b[this.expando]]||{}};var hf=/([\:\-\_]+(.))/g,jf=/^moz([A-Z])/,Uf={mouseleave:"mouseout",mouseenter:"mouseover"},Ub=E("jqLite"),mf=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Tb=/<|&#?\w+;/,kf=/<([\w:]+)/,lf=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ha={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],
td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ha.optgroup=ha.option;ha.tbody=ha.tfoot=ha.colgroup=ha.caption=ha.thead;ha.th=ha.td;var Ka=P.prototype={ready:function(b){function a(){c||(c=!0,b())}var c=!1;"complete"===V.readyState?setTimeout(a):(this.on("DOMContentLoaded",a),P(T).on("load",a))},toString:function(){var b=[];q(this,function(a){b.push(""+a)});return"["+b.join(", ")+"]"},eq:function(b){return 0<=b?G(this[b]):G(this[this.length+b])},length:0,push:Tf,sort:[].sort,
splice:[].splice},Fb={};q("multiple selected checked disabled readOnly required open".split(" "),function(b){Fb[O(b)]=b});var Rc={};q("input select option textarea button form details".split(" "),function(b){Rc[b]=!0});var Sc={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};q({data:Wb,removeData:yb},function(b,a){P[a]=b});q({data:Wb,inheritedData:Eb,scope:function(b){return G.data(b,"$scope")||Eb(b.parentNode||b,["$isolateScope","$scope"])},isolateScope:function(b){return G.data(b,
"$isolateScope")||G.data(b,"$isolateScopeNoTemplate")},controller:Nc,injector:function(b){return Eb(b,"$injector")},removeAttr:function(b,a){b.removeAttribute(a)},hasClass:Bb,css:function(b,a,c){a=eb(a);if(B(c))b.style[a]=c;else return b.style[a]},attr:function(b,a,c){var d=b.nodeType;if(d!==ab&&2!==d&&8!==d)if(d=O(a),Fb[d])if(B(c))c?(b[a]=!0,b.setAttribute(a,d)):(b[a]=!1,b.removeAttribute(d));else return b[a]||(b.attributes.getNamedItem(a)||D).specified?d:s;else if(B(c))b.setAttribute(a,c);else if(b.getAttribute)return b=
b.getAttribute(a,2),null===b?s:b},prop:function(b,a,c){if(B(c))b[a]=c;else return b[a]},text:function(){function b(a,b){if(z(b)){var d=a.nodeType;return d===ma||d===ab?a.textContent:""}a.textContent=b}b.$dv="";return b}(),val:function(b,a){if(z(a)){if(b.multiple&&"select"===sa(b)){var c=[];q(b.options,function(a){a.selected&&c.push(a.value||a.text)});return 0===c.length?null:c}return b.value}b.value=a},html:function(b,a){if(z(a))return b.innerHTML;xb(b,!0);b.innerHTML=a},empty:Oc},function(b,a){P.prototype[a]=
function(a,d){var e,f,g=this.length;if(b!==Oc&&(2==b.length&&b!==Bb&&b!==Nc?a:d)===s){if(J(a)){for(e=0;e<g;e++)if(b===Wb)b(this[e],a);else for(f in a)b(this[e],f,a[f]);return this}e=b.$dv;g=e===s?Math.min(g,1):g;for(f=0;f<g;f++){var h=b(this[f],a,d);e=e?e+h:h}return e}for(e=0;e<g;e++)b(this[e],a,d);return this}});q({removeData:yb,on:function a(c,d,e,f){if(B(f))throw Ub("onargs");if(Jc(c)){var g=zb(c,!0);f=g.events;var h=g.handle;h||(h=g.handle=qf(c,f));for(var g=0<=d.indexOf(" ")?d.split(" "):[d],
l=g.length;l--;){d=g[l];var k=f[d];k||(f[d]=[],"mouseenter"===d||"mouseleave"===d?a(c,Uf[d],function(a){var c=a.relatedTarget;c&&(c===this||this.contains(c))||h(a,d)}):"$destroy"!==d&&c.addEventListener(d,h,!1),k=f[d]);k.push(e)}}},off:Mc,one:function(a,c,d){a=G(a);a.on(c,function f(){a.off(c,d);a.off(c,f)});a.on(c,d)},replaceWith:function(a,c){var d,e=a.parentNode;xb(a);q(new P(c),function(c){d?e.insertBefore(c,d.nextSibling):e.replaceChild(c,a);d=c})},children:function(a){var c=[];q(a.childNodes,
function(a){a.nodeType===ma&&c.push(a)});return c},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,c){var d=a.nodeType;if(d===ma||11===d){c=new P(c);for(var d=0,e=c.length;d<e;d++)a.appendChild(c[d])}},prepend:function(a,c){if(a.nodeType===ma){var d=a.firstChild;q(new P(c),function(c){a.insertBefore(c,d)})}},wrap:function(a,c){c=G(c).eq(0).clone()[0];var d=a.parentNode;d&&d.replaceChild(c,a);c.appendChild(a)},remove:Pc,detach:function(a){Pc(a,!0)},after:function(a,
c){var d=a,e=a.parentNode;c=new P(c);for(var f=0,g=c.length;f<g;f++){var h=c[f];e.insertBefore(h,d.nextSibling);d=h}},addClass:Db,removeClass:Cb,toggleClass:function(a,c,d){c&&q(c.split(" "),function(c){var f=d;z(f)&&(f=!Bb(a,c));(f?Db:Cb)(a,c)})},parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},next:function(a){return a.nextElementSibling},find:function(a,c){return a.getElementsByTagName?a.getElementsByTagName(c):[]},clone:Vb,triggerHandler:function(a,c,d){var e,f,g=c.type||c,h=
zb(a);if(h=(h=h&&h.events)&&h[g])e={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:D,type:g,target:a},c.type&&(e=y(e,c)),c=oa(h),f=d?[e].concat(d):[e],q(c,function(c){e.isImmediatePropagationStopped()||c.apply(a,f)})}},function(a,c){P.prototype[c]=function(c,
e,f){for(var g,h=0,l=this.length;h<l;h++)z(g)?(g=a(this[h],c,e,f),B(g)&&(g=G(g))):Lc(g,a(this[h],c,e,f));return B(g)?g:this};P.prototype.bind=P.prototype.on;P.prototype.unbind=P.prototype.off});fb.prototype={put:function(a,c){this[Na(a,this.nextUid)]=c},get:function(a){return this[Na(a,this.nextUid)]},remove:function(a){var c=this[a=Na(a,this.nextUid)];delete this[a];return c}};var Uc=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,Vf=/,/,Wf=/^\s*(_?)(\S+?)\1\s*$/,Tc=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,Da=E("$injector");
bb.$$annotate=function(a,c,d){var e;if("function"===typeof a){if(!(e=a.$inject)){e=[];if(a.length){if(c)throw K(d)&&d||(d=a.name||rf(a)),Da("strictdi",d);c=a.toString().replace(Tc,"");c=c.match(Uc);q(c[1].split(Vf),function(a){a.replace(Wf,function(a,c,d){e.push(d)})})}a.$inject=e}}else A(a)?(c=a.length-1,La(a[c],"fn"),e=a.slice(0,c)):La(a,"fn",!0);return e};var Xf=E("$animate"),He=["$provide",function(a){this.$$selectors={};this.register=function(c,d){var e=c+"-animation";if(c&&"."!=c.charAt(0))throw Xf("notcsel",
c);this.$$selectors[c.substr(1)]=e;a.factory(e,d)};this.classNameFilter=function(a){1===arguments.length&&(this.$$classNameFilter=a instanceof RegExp?a:null);return this.$$classNameFilter};this.$get=["$$q","$$asyncCallback","$rootScope",function(a,d,e){function f(d){var f,g=a.defer();g.promise.$$cancelFn=function(){f&&f()};e.$$postDigest(function(){f=d(function(){g.resolve()})});return g.promise}function g(a,c){var d=[],e=[],f=ga();q((a.attr("class")||"").split(/\s+/),function(a){f[a]=!0});q(c,function(a,
c){var g=f[c];!1===a&&g?e.push(c):!0!==a||g||d.push(c)});return 0<d.length+e.length&&[d.length?d:null,e.length?e:null]}function h(a,c,d){for(var e=0,f=c.length;e<f;++e)a[c[e]]=d}function l(){m||(m=a.defer(),d(function(){m.resolve();m=null}));return m.promise}function k(a,c){if(ba.isObject(c)){var d=y(c.from||{},c.to||{});a.css(d)}}var m;return{animate:function(a,c,d){k(a,{from:c,to:d});return l()},enter:function(a,c,d,e){k(a,e);d?d.after(a):c.prepend(a);return l()},leave:function(a,c){k(a,c);a.remove();
return l()},move:function(a,c,d,e){return this.enter(a,c,d,e)},addClass:function(a,c,d){return this.setClass(a,c,[],d)},$$addClassImmediately:function(a,c,d){a=G(a);c=K(c)?c:A(c)?c.join(" "):"";q(a,function(a){Db(a,c)});k(a,d);return l()},removeClass:function(a,c,d){return this.setClass(a,[],c,d)},$$removeClassImmediately:function(a,c,d){a=G(a);c=K(c)?c:A(c)?c.join(" "):"";q(a,function(a){Cb(a,c)});k(a,d);return l()},setClass:function(a,c,d,e){var k=this,l=!1;a=G(a);var m=a.data("$$animateClasses");
m?e&&m.options&&(m.options=ba.extend(m.options||{},e)):(m={classes:{},options:e},l=!0);e=m.classes;c=A(c)?c:c.split(" ");d=A(d)?d:d.split(" ");h(e,c,!0);h(e,d,!1);l&&(m.promise=f(function(c){var d=a.data("$$animateClasses");a.removeData("$$animateClasses");if(d){var e=g(a,d.classes);e&&k.$$setClassImmediately(a,e[0],e[1],d.options)}c()}),a.data("$$animateClasses",m));return m.promise},$$setClassImmediately:function(a,c,d,e){c&&this.$$addClassImmediately(a,c);d&&this.$$removeClassImmediately(a,d);
k(a,e);return l()},enabled:D,cancel:D}}]}],da=E("$compile");Bc.$inject=["$provide","$$sanitizeUriProvider"];var Wc=/^((?:x|data)[\:\-_])/i,vf=E("$controller"),ad="application/json",cc={"Content-Type":ad+";charset=utf-8"},xf=/^\[|^\{(?!\{)/,yf={"[":/]$/,"{":/}$/},wf=/^\)\]\}',?\n/,dc=E("$interpolate"),Yf=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Bf={http:80,https:443,ftp:21},Hb=E("$location"),Zf={$$html5:!1,$$replace:!1,absUrl:Ib("$$absUrl"),url:function(a){if(z(a))return this.$$url;var c=Yf.exec(a);(c[1]||
""===a)&&this.path(decodeURIComponent(c[1]));(c[2]||c[1]||""===a)&&this.search(c[3]||"");this.hash(c[5]||"");return this},protocol:Ib("$$protocol"),host:Ib("$$host"),port:Ib("$$port"),path:id("$$path",function(a){a=null!==a?a.toString():"";return"/"==a.charAt(0)?a:"/"+a}),search:function(a,c){switch(arguments.length){case 0:return this.$$search;case 1:if(K(a)||U(a))a=a.toString(),this.$$search=vc(a);else if(J(a))a=Ba(a,{}),q(a,function(c,e){null==c&&delete a[e]}),this.$$search=a;else throw Hb("isrcharg");
break;default:z(c)||null===c?delete this.$$search[a]:this.$$search[a]=c}this.$$compose();return this},hash:id("$$hash",function(a){return null!==a?a.toString():""}),replace:function(){this.$$replace=!0;return this}};q([hd,hc,gc],function(a){a.prototype=Object.create(Zf);a.prototype.state=function(c){if(!arguments.length)return this.$$state;if(a!==gc||!this.$$html5)throw Hb("nostate");this.$$state=z(c)?null:c;return this}});var ja=E("$parse"),$f=Function.prototype.call,ag=Function.prototype.apply,
bg=Function.prototype.bind,pb=ga();q({"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:function(){}},function(a,c){a.constant=a.literal=a.sharedGetter=!0;pb[c]=a});pb["this"]=function(a){return a};pb["this"].sharedGetter=!0;var qb=y(ga(),{"+":function(a,c,d,e){d=d(a,c);e=e(a,c);return B(d)?B(e)?d+e:d:B(e)?e:s},"-":function(a,c,d,e){d=d(a,c);e=e(a,c);return(B(d)?d:0)-(B(e)?e:0)},"*":function(a,c,d,e){return d(a,c)*e(a,c)},"/":function(a,c,d,e){return d(a,
c)/e(a,c)},"%":function(a,c,d,e){return d(a,c)%e(a,c)},"===":function(a,c,d,e){return d(a,c)===e(a,c)},"!==":function(a,c,d,e){return d(a,c)!==e(a,c)},"==":function(a,c,d,e){return d(a,c)==e(a,c)},"!=":function(a,c,d,e){return d(a,c)!=e(a,c)},"<":function(a,c,d,e){return d(a,c)<e(a,c)},">":function(a,c,d,e){return d(a,c)>e(a,c)},"<=":function(a,c,d,e){return d(a,c)<=e(a,c)},">=":function(a,c,d,e){return d(a,c)>=e(a,c)},"&&":function(a,c,d,e){return d(a,c)&&e(a,c)},"||":function(a,c,d,e){return d(a,
c)||e(a,c)},"!":function(a,c,d){return!d(a,c)},"=":!0,"|":!0}),cg={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},kc=function(a){this.options=a};kc.prototype={constructor:kc,lex:function(a){this.text=a;this.index=0;for(this.tokens=[];this.index<this.text.length;)if(a=this.text.charAt(this.index),'"'===a||"'"===a)this.readString(a);else if(this.isNumber(a)||"."===a&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(a))this.readIdent();else if(this.is(a,"(){}[].,;:?"))this.tokens.push({index:this.index,
text:a}),this.index++;else if(this.isWhitespace(a))this.index++;else{var c=a+this.peek(),d=c+this.peek(2),e=qb[c],f=qb[d];qb[a]||e||f?(a=f?d:e?c:a,this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(a,c){return-1!==c.indexOf(a)},peek:function(a){a=a||1;return this.index+a<this.text.length?this.text.charAt(this.index+a):!1},isNumber:function(a){return"0"<=a&&"9">=a&&"string"===
typeof a},isWhitespace:function(a){return" "===a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||"\u00a0"===a},isIdent:function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"===a||"$"===a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,c,d){d=d||this.index;c=B(c)?"s "+c+"-"+this.index+" ["+this.text.substring(c,d)+"]":" "+d;throw ja("lexerr",a,c,this.text);},readNumber:function(){for(var a="",c=this.index;this.index<this.text.length;){var d=O(this.text.charAt(this.index));
if("."==d||this.isNumber(d))a+=d;else{var e=this.peek();if("e"==d&&this.isExpOperator(e))a+=d;else if(this.isExpOperator(d)&&e&&this.isNumber(e)&&"e"==a.charAt(a.length-1))a+=d;else if(!this.isExpOperator(d)||e&&this.isNumber(e)||"e"!=a.charAt(a.length-1))break;else this.throwError("Invalid exponent")}this.index++}this.tokens.push({index:c,text:a,constant:!0,value:Number(a)})},readIdent:function(){for(var a=this.index;this.index<this.text.length;){var c=this.text.charAt(this.index);if(!this.isIdent(c)&&
!this.isNumber(c))break;this.index++}this.tokens.push({index:a,text:this.text.slice(a,this.index),identifier:!0})},readString:function(a){var c=this.index;this.index++;for(var d="",e=a,f=!1;this.index<this.text.length;){var g=this.text.charAt(this.index),e=e+g;if(f)"u"===g?(f=this.text.substring(this.index+1,this.index+5),f.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+f+"]"),this.index+=4,d+=String.fromCharCode(parseInt(f,16))):d+=cg[g]||g,f=!1;else if("\\"===g)f=!0;else{if(g===
a){this.index++;this.tokens.push({index:c,text:e,constant:!0,value:d});return}d+=g}this.index++}this.throwError("Unterminated quote",c)}};var lb=function(a,c,d){this.lexer=a;this.$filter=c;this.options=d};lb.ZERO=y(function(){return 0},{sharedGetter:!0,constant:!0});lb.prototype={constructor:lb,parse:function(a){this.text=a;this.tokens=this.lexer.lex(a);a=this.statements();0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]);a.literal=!!a.literal;a.constant=!!a.constant;
return a},primary:function(){var a;this.expect("(")?(a=this.filterChain(),this.consume(")")):this.expect("[")?a=this.arrayDeclaration():this.expect("{")?a=this.object():this.peek().identifier&&this.peek().text in pb?a=pb[this.consume().text]:this.peek().identifier?a=this.identifier():this.peek().constant?a=this.constant():this.throwError("not a primary expression",this.peek());for(var c,d;c=this.expect("(","[",".");)"("===c.text?(a=this.functionCall(a,d),d=null):"["===c.text?(d=a,a=this.objectIndex(a)):
"."===c.text?(d=a,a=this.fieldAccess(a)):this.throwError("IMPOSSIBLE");return a},throwError:function(a,c){throw ja("syntax",c.text,a,c.index+1,this.text,this.text.substring(c.index));},peekToken:function(){if(0===this.tokens.length)throw ja("ueoe",this.text);return this.tokens[0]},peek:function(a,c,d,e){return this.peekAhead(0,a,c,d,e)},peekAhead:function(a,c,d,e,f){if(this.tokens.length>a){a=this.tokens[a];var g=a.text;if(g===c||g===d||g===e||g===f||!(c||d||e||f))return a}return!1},expect:function(a,
c,d,e){return(a=this.peek(a,c,d,e))?(this.tokens.shift(),a):!1},consume:function(a){if(0===this.tokens.length)throw ja("ueoe",this.text);var c=this.expect(a);c||this.throwError("is unexpected, expecting ["+a+"]",this.peek());return c},unaryFn:function(a,c){var d=qb[a];return y(function(a,f){return d(a,f,c)},{constant:c.constant,inputs:[c]})},binaryFn:function(a,c,d,e){var f=qb[c];return y(function(c,e){return f(c,e,a,d)},{constant:a.constant&&d.constant,inputs:!e&&[a,d]})},identifier:function(){for(var a=
this.consume().text;this.peek(".")&&this.peekAhead(1).identifier&&!this.peekAhead(2,"(");)a+=this.consume().text+this.consume().text;return Df(a,this.options,this.text)},constant:function(){var a=this.consume().value;return y(function(){return a},{constant:!0,literal:!0})},statements:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.filterChain()),!this.expect(";"))return 1===a.length?a[0]:function(c,d){for(var e,f=0,g=a.length;f<g;f++)e=a[f](c,d);return e}},
filterChain:function(){for(var a=this.expression();this.expect("|");)a=this.filter(a);return a},filter:function(a){var c=this.$filter(this.consume().text),d,e;if(this.peek(":"))for(d=[],e=[];this.expect(":");)d.push(this.expression());var f=[a].concat(d||[]);return y(function(f,h){var l=a(f,h);if(e){e[0]=l;for(l=d.length;l--;)e[l+1]=d[l](f,h);return c.apply(s,e)}return c(l)},{constant:!c.$stateful&&f.every(ic),inputs:!c.$stateful&&f})},expression:function(){return this.assignment()},assignment:function(){var a=
this.ternary(),c,d;return(d=this.expect("="))?(a.assign||this.throwError("implies assignment but ["+this.text.substring(0,d.index)+"] can not be assigned to",d),c=this.ternary(),y(function(d,f){return a.assign(d,c(d,f),f)},{inputs:[a,c]})):a},ternary:function(){var a=this.logicalOR(),c;if(this.expect("?")&&(c=this.assignment(),this.consume(":"))){var d=this.assignment();return y(function(e,f){return a(e,f)?c(e,f):d(e,f)},{constant:a.constant&&c.constant&&d.constant})}return a},logicalOR:function(){for(var a=
this.logicalAND(),c;c=this.expect("||");)a=this.binaryFn(a,c.text,this.logicalAND(),!0);return a},logicalAND:function(){for(var a=this.equality(),c;c=this.expect("&&");)a=this.binaryFn(a,c.text,this.equality(),!0);return a},equality:function(){for(var a=this.relational(),c;c=this.expect("==","!=","===","!==");)a=this.binaryFn(a,c.text,this.relational());return a},relational:function(){for(var a=this.additive(),c;c=this.expect("<",">","<=",">=");)a=this.binaryFn(a,c.text,this.additive());return a},
additive:function(){for(var a=this.multiplicative(),c;c=this.expect("+","-");)a=this.binaryFn(a,c.text,this.multiplicative());return a},multiplicative:function(){for(var a=this.unary(),c;c=this.expect("*","/","%");)a=this.binaryFn(a,c.text,this.unary());return a},unary:function(){var a;return this.expect("+")?this.primary():(a=this.expect("-"))?this.binaryFn(lb.ZERO,a.text,this.unary()):(a=this.expect("!"))?this.unaryFn(a.text,this.unary()):this.primary()},fieldAccess:function(a){var c=this.identifier();
return y(function(d,e,f){d=f||a(d,e);return null==d?s:c(d)},{assign:function(d,e,f){var g=a(d,f);g||a.assign(d,g={},f);return c.assign(g,e)}})},objectIndex:function(a){var c=this.text,d=this.expression();this.consume("]");return y(function(e,f){var g=a(e,f),h=d(e,f);ra(h,c);return g?ka(g[h],c):s},{assign:function(e,f,g){var h=ra(d(e,g),c),l=ka(a(e,g),c);l||a.assign(e,l={},g);return l[h]=f}})},functionCall:function(a,c){var d=[];if(")"!==this.peekToken().text){do d.push(this.expression());while(this.expect(","))
}this.consume(")");var e=this.text,f=d.length?[]:null;return function(g,h){var l=c?c(g,h):B(c)?s:g,k=a(g,h,l)||D;if(f)for(var m=d.length;m--;)f[m]=ka(d[m](g,h),e);ka(l,e);if(k){if(k.constructor===k)throw ja("isecfn",e);if(k===$f||k===ag||k===bg)throw ja("isecff",e);}l=k.apply?k.apply(l,f):k(f[0],f[1],f[2],f[3],f[4]);f&&(f.length=0);return ka(l,e)}},arrayDeclaration:function(){var a=[];if("]"!==this.peekToken().text){do{if(this.peek("]"))break;a.push(this.expression())}while(this.expect(","))}this.consume("]");
return y(function(c,d){for(var e=[],f=0,g=a.length;f<g;f++)e.push(a[f](c,d));return e},{literal:!0,constant:a.every(ic),inputs:a})},object:function(){var a=[],c=[];if("}"!==this.peekToken().text){do{if(this.peek("}"))break;var d=this.consume();d.constant?a.push(d.value):d.identifier?a.push(d.text):this.throwError("invalid key",d);this.consume(":");c.push(this.expression())}while(this.expect(","))}this.consume("}");return y(function(d,f){for(var g={},h=0,l=c.length;h<l;h++)g[a[h]]=c[h](d,f);return g},
{literal:!0,constant:c.every(ic),inputs:c})}};var Ff=ga(),Ef=ga(),Gf=Object.prototype.valueOf,za=E("$sce"),la={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},da=E("$compile"),Y=V.createElement("a"),nd=ya(T.location.href);Ic.$inject=["$provide"];od.$inject=["$locale"];qd.$inject=["$locale"];var td=".",Qf={yyyy:Z("FullYear",4),yy:Z("FullYear",2,0,!0),y:Z("FullYear",1),MMMM:Kb("Month"),MMM:Kb("Month",!0),MM:Z("Month",2,1),M:Z("Month",1,1),dd:Z("Date",2),d:Z("Date",1),HH:Z("Hours",
2),H:Z("Hours",1),hh:Z("Hours",2,-12),h:Z("Hours",1,-12),mm:Z("Minutes",2),m:Z("Minutes",1),ss:Z("Seconds",2),s:Z("Seconds",1),sss:Z("Milliseconds",3),EEEE:Kb("Day"),EEE:Kb("Day",!0),a:function(a,c){return 12>a.getHours()?c.AMPMS[0]:c.AMPMS[1]},Z:function(a){a=-1*a.getTimezoneOffset();return a=(0<=a?"+":"")+(Jb(Math[0<a?"floor":"ceil"](a/60),2)+Jb(Math.abs(a%60),2))},ww:vd(2),w:vd(1),G:lc,GG:lc,GGG:lc,GGGG:function(a,c){return 0>=a.getFullYear()?c.ERANAMES[0]:c.ERANAMES[1]}},Pf=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,
Of=/^\-?\d+$/;pd.$inject=["$locale"];var Lf=ca(O),Mf=ca(vb);rd.$inject=["$parse"];var Yd=ca({restrict:"E",compile:function(a,c){if(!c.href&&!c.xlinkHref&&!c.name)return function(a,c){if("a"===c[0].nodeName.toLowerCase()){var f="[object SVGAnimatedString]"===Aa.call(c.prop("href"))?"xlink:href":"href";c.on("click",function(a){c.attr(f)||a.preventDefault()})}}}}),wb={};q(Fb,function(a,c){if("multiple"!=a){var d=va("ng-"+c);wb[d]=function(){return{restrict:"A",priority:100,link:function(a,f,g){a.$watch(g[d],
function(a){g.$set(c,!!a)})}}}}});q(Sc,function(a,c){wb[c]=function(){return{priority:100,link:function(a,e,f){if("ngPattern"===c&&"/"==f.ngPattern.charAt(0)&&(e=f.ngPattern.match(Sf))){f.$set("ngPattern",new RegExp(e[1],e[2]));return}a.$watch(f[c],function(a){f.$set(c,a)})}}}});q(["src","srcset","href"],function(a){var c=va("ng-"+a);wb[c]=function(){return{priority:99,link:function(d,e,f){var g=a,h=a;"href"===a&&"[object SVGAnimatedString]"===Aa.call(e.prop("href"))&&(h="xlinkHref",f.$attr[h]="xlink:href",
g=null);f.$observe(c,function(c){c?(f.$set(h,c),Qa&&g&&e.prop(g,f[h])):"href"===a&&f.$set(h,null)})}}}});var Lb={$addControl:D,$$renameControl:function(a,c){a.$name=c},$removeControl:D,$setValidity:D,$setDirty:D,$setPristine:D,$setSubmitted:D};wd.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Dd=function(a){return["$timeout",function(c){return{name:"form",restrict:a?"EAC":"E",controller:wd,compile:function(d,e){d.addClass(Ra).addClass(ob);var f=e.name?"name":a&&e.ngForm?"ngForm":
!1;return{pre:function(a,d,e,k){if(!("action"in e)){var m=function(c){a.$apply(function(){k.$commitViewValue();k.$setSubmitted()});c.preventDefault()};d[0].addEventListener("submit",m,!1);d.on("$destroy",function(){c(function(){d[0].removeEventListener("submit",m,!1)},0,!1)})}var r=k.$$parentForm;f&&(kb(a,null,k.$name,k,k.$name),e.$observe(f,function(c){k.$name!==c&&(kb(a,null,k.$name,s,k.$name),r.$$renameControl(k,c),kb(a,null,k.$name,k,k.$name))}));d.on("$destroy",function(){r.$removeControl(k);
f&&kb(a,null,e[f],s,k.$name);y(k,Lb)})}}}}}]},Zd=Dd(),le=Dd(!0),Rf=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,dg=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,eg=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,fg=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Ed=/^(\d{4})-(\d{2})-(\d{2})$/,Fd=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,oc=/^(\d{4})-W(\d\d)$/,Gd=/^(\d{4})-(\d\d)$/,
Hd=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Id={text:function(a,c,d,e,f,g){mb(a,c,d,e,f,g);mc(e)},date:nb("date",Ed,Nb(Ed,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":nb("datetimelocal",Fd,Nb(Fd,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:nb("time",Hd,Nb(Hd,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:nb("week",oc,function(a,c){if(ea(a))return a;if(K(a)){oc.lastIndex=0;var d=oc.exec(a);if(d){var e=+d[1],f=+d[2],g=d=0,h=0,l=0,k=ud(e),f=7*(f-1);c&&(d=c.getHours(),g=
c.getMinutes(),h=c.getSeconds(),l=c.getMilliseconds());return new Date(e,0,k.getDate()+f,d,g,h,l)}}return NaN},"yyyy-Www"),month:nb("month",Gd,Nb(Gd,["yyyy","MM"]),"yyyy-MM"),number:function(a,c,d,e,f,g){yd(a,c,d,e);mb(a,c,d,e,f,g);e.$$parserName="number";e.$parsers.push(function(a){return e.$isEmpty(a)?null:fg.test(a)?parseFloat(a):s});e.$formatters.push(function(a){if(!e.$isEmpty(a)){if(!U(a))throw Ob("numfmt",a);a=a.toString()}return a});if(B(d.min)||d.ngMin){var h;e.$validators.min=function(a){return e.$isEmpty(a)||
z(h)||a>=h};d.$observe("min",function(a){B(a)&&!U(a)&&(a=parseFloat(a,10));h=U(a)&&!isNaN(a)?a:s;e.$validate()})}if(B(d.max)||d.ngMax){var l;e.$validators.max=function(a){return e.$isEmpty(a)||z(l)||a<=l};d.$observe("max",function(a){B(a)&&!U(a)&&(a=parseFloat(a,10));l=U(a)&&!isNaN(a)?a:s;e.$validate()})}},url:function(a,c,d,e,f,g){mb(a,c,d,e,f,g);mc(e);e.$$parserName="url";e.$validators.url=function(a,c){var d=a||c;return e.$isEmpty(d)||dg.test(d)}},email:function(a,c,d,e,f,g){mb(a,c,d,e,f,g);mc(e);
e.$$parserName="email";e.$validators.email=function(a,c){var d=a||c;return e.$isEmpty(d)||eg.test(d)}},radio:function(a,c,d,e){z(d.name)&&c.attr("name",++rb);c.on("click",function(a){c[0].checked&&e.$setViewValue(d.value,a&&a.type)});e.$render=function(){c[0].checked=d.value==e.$viewValue};d.$observe("value",e.$render)},checkbox:function(a,c,d,e,f,g,h,l){var k=zd(l,a,"ngTrueValue",d.ngTrueValue,!0),m=zd(l,a,"ngFalseValue",d.ngFalseValue,!1);c.on("click",function(a){e.$setViewValue(c[0].checked,a&&
a.type)});e.$render=function(){c[0].checked=e.$viewValue};e.$isEmpty=function(a){return!1===a};e.$formatters.push(function(a){return fa(a,k)});e.$parsers.push(function(a){return a?k:m})},hidden:D,button:D,submit:D,reset:D,file:D},Cc=["$browser","$sniffer","$filter","$parse",function(a,c,d,e){return{restrict:"E",require:["?ngModel"],link:{pre:function(f,g,h,l){l[0]&&(Id[O(h.type)]||Id.text)(f,g,h,l[0],c,a,d,e)}}}}],gg=/^(true|false|\d+)$/,De=function(){return{restrict:"A",priority:100,compile:function(a,
c){return gg.test(c.ngValue)?function(a,c,f){f.$set("value",a.$eval(f.ngValue))}:function(a,c,f){a.$watch(f.ngValue,function(a){f.$set("value",a)})}}}},de=["$compile",function(a){return{restrict:"AC",compile:function(c){a.$$addBindingClass(c);return function(c,e,f){a.$$addBindingInfo(e,f.ngBind);e=e[0];c.$watch(f.ngBind,function(a){e.textContent=a===s?"":a})}}}}],fe=["$interpolate","$compile",function(a,c){return{compile:function(d){c.$$addBindingClass(d);return function(d,f,g){d=a(f.attr(g.$attr.ngBindTemplate));
c.$$addBindingInfo(f,d.expressions);f=f[0];g.$observe("ngBindTemplate",function(a){f.textContent=a===s?"":a})}}}}],ee=["$sce","$parse","$compile",function(a,c,d){return{restrict:"A",compile:function(e,f){var g=c(f.ngBindHtml),h=c(f.ngBindHtml,function(a){return(a||"").toString()});d.$$addBindingClass(e);return function(c,e,f){d.$$addBindingInfo(e,f.ngBindHtml);c.$watch(h,function(){e.html(a.getTrustedHtml(g(c))||"")})}}}}],Ce=ca({restrict:"A",require:"ngModel",link:function(a,c,d,e){e.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),
ge=nc("",!0),ie=nc("Odd",0),he=nc("Even",1),je=Ia({compile:function(a,c){c.$set("ngCloak",s);a.removeClass("ng-cloak")}}),ke=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Hc={},hg={blur:!0,focus:!0};q("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(a){var c=va("ng-"+a);Hc[c]=["$parse","$rootScope",function(d,e){return{restrict:"A",compile:function(f,g){var h=
d(g[c],null,!0);return function(c,d){d.on(a,function(d){var f=function(){h(c,{$event:d})};hg[a]&&e.$$phase?c.$evalAsync(f):c.$apply(f)})}}}}]});var ne=["$animate",function(a){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(c,d,e,f,g){var h,l,k;c.$watch(e.ngIf,function(c){c?l||g(function(c,f){l=f;c[c.length++]=V.createComment(" end ngIf: "+e.ngIf+" ");h={clone:c};a.enter(c,d.parent(),d)}):(k&&(k.remove(),k=null),l&&(l.$destroy(),l=null),h&&(k=
ub(h.clone),a.leave(k).then(function(){k=null}),h=null))})}}}],oe=["$templateRequest","$anchorScroll","$animate",function(a,c,d){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ba.noop,compile:function(e,f){var g=f.ngInclude||f.src,h=f.onload||"",l=f.autoscroll;return function(e,f,q,n,v){var t=0,w,s,p,I=function(){s&&(s.remove(),s=null);w&&(w.$destroy(),w=null);p&&(d.leave(p).then(function(){s=null}),s=p,p=null)};e.$watch(g,function(g){var q=function(){!B(l)||l&&!e.$eval(l)||
c()},r=++t;g?(a(g,!0).then(function(a){if(r===t){var c=e.$new();n.template=a;a=v(c,function(a){I();d.enter(a,null,f).then(q)});w=c;p=a;w.$emit("$includeContentLoaded",g);e.$eval(h)}},function(){r===t&&(I(),e.$emit("$includeContentError",g))}),e.$emit("$includeContentRequested",g)):(I(),n.template=null)})}}}}],Fe=["$compile",function(a){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(c,d,e,f){/SVG/.test(d[0].toString())?(d.empty(),a(Kc(f.template,V).childNodes)(c,function(a){d.append(a)},
{futureParentElement:d})):(d.html(f.template),a(d.contents())(c))}}}],pe=Ia({priority:450,compile:function(){return{pre:function(a,c,d){a.$eval(d.ngInit)}}}}),Be=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(a,c,d,e){var f=c.attr(d.$attr.ngList)||", ",g="false"!==d.ngTrim,h=g?N(f):f;e.$parsers.push(function(a){if(!z(a)){var c=[];a&&q(a.split(h),function(a){a&&c.push(g?N(a):a)});return c}});e.$formatters.push(function(a){return A(a)?a.join(f):s});e.$isEmpty=function(a){return!a||
!a.length}}}},ob="ng-valid",Ad="ng-invalid",Ra="ng-pristine",Mb="ng-dirty",Cd="ng-pending",Ob=new E("ngModel"),ig=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(a,c,d,e,f,g,h,l,k,m){this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=s;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=
!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=s;this.$name=m(d.name||"",!1)(a);var r=f(d.ngModel),n=r.assign,v=r,t=n,w=null,u,p=this;this.$$setOptions=function(a){if((p.$options=a)&&a.getterSetter){var c=f(d.ngModel+"()"),g=f(d.ngModel+"($$$p)");v=function(a){var d=r(a);F(d)&&(d=c(a));return d};t=function(a,c){F(r(a))?g(a,{$$$p:p.$modelValue}):n(a,p.$modelValue)}}else if(!r.assign)throw Ob("nonassign",d.ngModel,ta(e));};this.$render=D;this.$isEmpty=function(a){return z(a)||
""===a||null===a||a!==a};var I=e.inheritedData("$formController")||Lb,E=0;xd({ctrl:this,$element:e,set:function(a,c){a[c]=!0},unset:function(a,c){delete a[c]},parentForm:I,$animate:g});this.$setPristine=function(){p.$dirty=!1;p.$pristine=!0;g.removeClass(e,Mb);g.addClass(e,Ra)};this.$setDirty=function(){p.$dirty=!0;p.$pristine=!1;g.removeClass(e,Ra);g.addClass(e,Mb);I.$setDirty()};this.$setUntouched=function(){p.$touched=!1;p.$untouched=!0;g.setClass(e,"ng-untouched","ng-touched")};this.$setTouched=
function(){p.$touched=!0;p.$untouched=!1;g.setClass(e,"ng-touched","ng-untouched")};this.$rollbackViewValue=function(){h.cancel(w);p.$viewValue=p.$$lastCommittedViewValue;p.$render()};this.$validate=function(){if(!U(p.$modelValue)||!isNaN(p.$modelValue)){var a=p.$$rawModelValue,c=p.$valid,d=p.$modelValue,e=p.$options&&p.$options.allowInvalid;p.$$runValidators(a,p.$$lastCommittedViewValue,function(f){e||c===f||(p.$modelValue=f?a:s,p.$modelValue!==d&&p.$$writeModelToScope())})}};this.$$runValidators=
function(a,c,d){function e(){var d=!0;q(p.$validators,function(e,f){var h=e(a,c);d=d&&h;g(f,h)});return d?!0:(q(p.$asyncValidators,function(a,c){g(c,null)}),!1)}function f(){var d=[],e=!0;q(p.$asyncValidators,function(f,h){var k=f(a,c);if(!k||!F(k.then))throw Ob("$asyncValidators",k);g(h,s);d.push(k.then(function(){g(h,!0)},function(a){e=!1;g(h,!1)}))});d.length?k.all(d).then(function(){h(e)},D):h(!0)}function g(a,c){l===E&&p.$setValidity(a,c)}function h(a){l===E&&d(a)}E++;var l=E;(function(){var a=
p.$$parserName||"parse";if(u===s)g(a,null);else return u||(q(p.$validators,function(a,c){g(c,null)}),q(p.$asyncValidators,function(a,c){g(c,null)})),g(a,u),u;return!0})()?e()?f():h(!1):h(!1)};this.$commitViewValue=function(){var a=p.$viewValue;h.cancel(w);if(p.$$lastCommittedViewValue!==a||""===a&&p.$$hasNativeValidators)p.$$lastCommittedViewValue=a,p.$pristine&&this.$setDirty(),this.$$parseAndValidate()};this.$$parseAndValidate=function(){var c=p.$$lastCommittedViewValue;if(u=z(c)?s:!0)for(var d=
0;d<p.$parsers.length;d++)if(c=p.$parsers[d](c),z(c)){u=!1;break}U(p.$modelValue)&&isNaN(p.$modelValue)&&(p.$modelValue=v(a));var e=p.$modelValue,f=p.$options&&p.$options.allowInvalid;p.$$rawModelValue=c;f&&(p.$modelValue=c,p.$modelValue!==e&&p.$$writeModelToScope());p.$$runValidators(c,p.$$lastCommittedViewValue,function(a){f||(p.$modelValue=a?c:s,p.$modelValue!==e&&p.$$writeModelToScope())})};this.$$writeModelToScope=function(){t(a,p.$modelValue);q(p.$viewChangeListeners,function(a){try{a()}catch(d){c(d)}})};
this.$setViewValue=function(a,c){p.$viewValue=a;p.$options&&!p.$options.updateOnDefault||p.$$debounceViewValueCommit(c)};this.$$debounceViewValueCommit=function(c){var d=0,e=p.$options;e&&B(e.debounce)&&(e=e.debounce,U(e)?d=e:U(e[c])?d=e[c]:U(e["default"])&&(d=e["default"]));h.cancel(w);d?w=h(function(){p.$commitViewValue()},d):l.$$phase?p.$commitViewValue():a.$apply(function(){p.$commitViewValue()})};a.$watch(function(){var c=v(a);if(c!==p.$modelValue&&(p.$modelValue===p.$modelValue||c===c)){p.$modelValue=
p.$$rawModelValue=c;u=s;for(var d=p.$formatters,e=d.length,f=c;e--;)f=d[e](f);p.$viewValue!==f&&(p.$viewValue=p.$$lastCommittedViewValue=f,p.$render(),p.$$runValidators(c,f,D))}return c})}],Ae=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ig,priority:1,compile:function(c){c.addClass(Ra).addClass("ng-untouched").addClass(ob);return{pre:function(a,c,f,g){var h=g[0],l=g[1]||Lb;h.$$setOptions(g[2]&&g[2].$options);l.$addControl(h);f.$observe("name",
function(a){h.$name!==a&&l.$$renameControl(h,a)});a.$on("$destroy",function(){l.$removeControl(h)})},post:function(c,e,f,g){var h=g[0];if(h.$options&&h.$options.updateOn)e.on(h.$options.updateOn,function(a){h.$$debounceViewValueCommit(a&&a.type)});e.on("blur",function(e){h.$touched||(a.$$phase?c.$evalAsync(h.$setTouched):c.$apply(h.$setTouched))})}}}}}],jg=/(\s+|^)default(\s+|$)/,Ee=function(){return{restrict:"A",controller:["$scope","$attrs",function(a,c){var d=this;this.$options=a.$eval(c.ngModelOptions);
this.$options.updateOn!==s?(this.$options.updateOnDefault=!1,this.$options.updateOn=N(this.$options.updateOn.replace(jg,function(){d.$options.updateOnDefault=!0;return" "}))):this.$options.updateOnDefault=!0}]}},qe=Ia({terminal:!0,priority:1E3}),re=["$locale","$interpolate",function(a,c){var d=/{}/g,e=/^when(Minus)?(.+)$/;return{restrict:"EA",link:function(f,g,h){function l(a){g.text(a||"")}var k=h.count,m=h.$attr.when&&g.attr(h.$attr.when),r=h.offset||0,n=f.$eval(m)||{},v={},m=c.startSymbol(),t=
c.endSymbol(),s=m+k+"-"+r+t,u=ba.noop,p;q(h,function(a,c){var d=e.exec(c);d&&(d=(d[1]?"-":"")+O(d[2]),n[d]=g.attr(h.$attr[c]))});q(n,function(a,e){v[e]=c(a.replace(d,s))});f.$watch(k,function(c){c=parseFloat(c);var d=isNaN(c);d||c in n||(c=a.pluralCat(c-r));c===p||d&&isNaN(p)||(u(),u=f.$watch(v[c],l),p=c)})}}}],se=["$parse","$animate",function(a,c){var d=E("ngRepeat"),e=function(a,c,d,e,k,m,q){a[d]=e;k&&(a[k]=m);a.$index=c;a.$first=0===c;a.$last=c===q-1;a.$middle=!(a.$first||a.$last);a.$odd=!(a.$even=
0===(c&1))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1E3,terminal:!0,$$tlb:!0,compile:function(f,g){var h=g.ngRepeat,l=V.createComment(" end ngRepeat: "+h+" "),k=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!k)throw d("iexp",h);var m=k[1],r=k[2],n=k[3],v=k[4],k=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!k)throw d("iidexp",m);var t=k[3]||k[1],w=k[2];if(n&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(n)||
/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(n)))throw d("badident",n);var u,p,B,E,z={$id:Na};v?u=a(v):(B=function(a,c){return Na(c)},E=function(a){return a});return function(a,f,g,k,m){u&&(p=function(c,d,e){w&&(z[w]=c);z[t]=d;z.$index=e;return u(a,z)});var v=ga();a.$watchCollection(r,function(g){var k,r,u=f[0],H,z=ga(),y,D,Q,x,F,A,J;n&&(a[n]=g);if(Sa(g))F=g,r=p||B;else{r=p||E;F=[];for(J in g)g.hasOwnProperty(J)&&"$"!=J.charAt(0)&&F.push(J);F.sort()}y=
F.length;J=Array(y);for(k=0;k<y;k++)if(D=g===F?k:F[k],Q=g[D],x=r(D,Q,k),v[x])A=v[x],delete v[x],z[x]=A,J[k]=A;else{if(z[x])throw q(J,function(a){a&&a.scope&&(v[a.id]=a)}),d("dupes",h,x,Q);J[k]={id:x,scope:s,clone:s};z[x]=!0}for(H in v){A=v[H];x=ub(A.clone);c.leave(x);if(x[0].parentNode)for(k=0,r=x.length;k<r;k++)x[k].$$NG_REMOVED=!0;A.scope.$destroy()}for(k=0;k<y;k++)if(D=g===F?k:F[k],Q=g[D],A=J[k],A.scope){H=u;do H=H.nextSibling;while(H&&H.$$NG_REMOVED);A.clone[0]!=H&&c.move(ub(A.clone),null,G(u));
u=A.clone[A.clone.length-1];e(A.scope,k,t,Q,w,D,y)}else m(function(a,d){A.scope=d;var f=l.cloneNode(!1);a[a.length++]=f;c.enter(a,null,G(u));u=f;A.clone=a;z[A.id]=A;e(A.scope,k,t,Q,w,D,y)});v=z})}}}}],te=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(c,d,e){c.$watch(e.ngShow,function(c){a[c?"removeClass":"addClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],me=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(c,d,e){c.$watch(e.ngHide,function(c){a[c?
"addClass":"removeClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],ue=Ia(function(a,c,d){a.$watch(d.ngStyle,function(a,d){d&&a!==d&&q(d,function(a,d){c.css(d,"")});a&&c.css(a)},!0)}),ve=["$animate",function(a){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(c,d,e,f){var g=[],h=[],l=[],k=[],m=function(a,c){return function(){a.splice(c,1)}};c.$watch(e.ngSwitch||e.on,function(c){var d,e;d=0;for(e=l.length;d<e;++d)a.cancel(l[d]);d=l.length=
0;for(e=k.length;d<e;++d){var t=ub(h[d].clone);k[d].$destroy();(l[d]=a.leave(t)).then(m(l,d))}h.length=0;k.length=0;(g=f.cases["!"+c]||f.cases["?"])&&q(g,function(c){c.transclude(function(d,e){k.push(e);var f=c.element;d[d.length++]=V.createComment(" end ngSwitchWhen: ");h.push({clone:d});a.enter(d,f.parent(),f)})})})}}}],we=Ia({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,c,d,e,f){e.cases["!"+d.ngSwitchWhen]=e.cases["!"+d.ngSwitchWhen]||[];e.cases["!"+d.ngSwitchWhen].push({transclude:f,
element:c})}}),xe=Ia({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,c,d,e,f){e.cases["?"]=e.cases["?"]||[];e.cases["?"].push({transclude:f,element:c})}}),ze=Ia({restrict:"EAC",link:function(a,c,d,e,f){if(!f)throw E("ngTransclude")("orphan",ta(c));f(function(a){c.empty();c.append(a)})}}),$d=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(c,d){"text/ng-template"==d.type&&a.put(d.id,c[0].text)}}}],kg=E("ngOptions"),ye=ca({restrict:"A",
terminal:!0}),ae=["$compile","$parse",function(a,c){var d=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,e={$setViewValue:D};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(a,c,d){var l=this,k={},m=e,q;l.databound=d.ngModel;l.init=function(a,c,d){m=a;q=d};l.addOption=function(c,d){Ma(c,'"option value"');
k[c]=!0;m.$viewValue==c&&(a.val(c),q.parent()&&q.remove());d&&d[0].hasAttribute("selected")&&(d[0].selected=!0)};l.removeOption=function(a){this.hasOption(a)&&(delete k[a],m.$viewValue===a&&this.renderUnknownOption(a))};l.renderUnknownOption=function(c){c="? "+Na(c)+" ?";q.val(c);a.prepend(q);a.val(c);q.prop("selected",!0)};l.hasOption=function(a){return k.hasOwnProperty(a)};c.$on("$destroy",function(){l.renderUnknownOption=D})}],link:function(e,g,h,l){function k(a,c,d,e){d.$render=function(){var a=
d.$viewValue;e.hasOption(a)?(y.parent()&&y.remove(),c.val(a),""===a&&u.prop("selected",!0)):null==a&&u?c.val(""):e.renderUnknownOption(a)};c.on("change",function(){a.$apply(function(){y.parent()&&y.remove();d.$setViewValue(c.val())})})}function m(a,c,d){var e;d.$render=function(){var a=new fb(d.$viewValue);q(c.find("option"),function(c){c.selected=B(a.get(c.value))})};a.$watch(function(){fa(e,d.$viewValue)||(e=oa(d.$viewValue),d.$render())});c.on("change",function(){a.$apply(function(){var a=[];q(c.find("option"),
function(c){c.selected&&a.push(c.value)});d.$setViewValue(a)})})}function r(e,f,g){function h(a,c,d){T[D]=d;G&&(T[G]=c);return a(e,T)}function k(a){var c;if(v)if(K&&A(a)){c=new fb([]);for(var d=0;d<a.length;d++)c.put(h(K,null,a[d]),!0)}else c=new fb(a);else K&&(a=h(K,null,a));return function(d,e){var f;f=K?K:x?x:C;return v?B(c.remove(h(f,d,e))):a===h(f,d,e)}}function l(){p||(e.$$postDigest(r),p=!0)}function m(a,c,d){a[c]=a[c]||0;a[c]+=d?1:-1}function r(){p=!1;var a={"":[]},c=[""],d,l,t,s,u;t=g.$viewValue;
s=M(e)||[];var D=G?Object.keys(s).sort():s,x,A,F,C,S={};u=k(t);var N=!1,U,V;O={};for(C=0;F=D.length,C<F;C++){x=C;if(G&&(x=D[C],"$"===x.charAt(0)))continue;A=s[x];d=h(J,x,A)||"";(l=a[d])||(l=a[d]=[],c.push(d));d=u(x,A);N=N||d;A=h(y,x,A);A=B(A)?A:"";V=K?K(e,T):G?D[C]:C;K&&(O[V]=x);l.push({id:V,label:A,selected:d})}v||(w||null===t?a[""].unshift({id:"",label:"",selected:!N}):N||a[""].unshift({id:"?",label:"",selected:!0}));x=0;for(D=c.length;x<D;x++){d=c[x];l=a[d];P.length<=x?(t={element:E.clone().attr("label",
d),label:l.label},s=[t],P.push(s),f.append(t.element)):(s=P[x],t=s[0],t.label!=d&&t.element.attr("label",t.label=d));N=null;C=0;for(F=l.length;C<F;C++)d=l[C],(u=s[C+1])?(N=u.element,u.label!==d.label&&(m(S,u.label,!1),m(S,d.label,!0),N.text(u.label=d.label),N.prop("label",u.label)),u.id!==d.id&&N.val(u.id=d.id),N[0].selected!==d.selected&&(N.prop("selected",u.selected=d.selected),Qa&&N.prop("selected",u.selected))):(""===d.id&&w?U=w:(U=z.clone()).val(d.id).prop("selected",d.selected).attr("selected",
d.selected).prop("label",d.label).text(d.label),s.push(u={element:U,label:d.label,id:d.id,selected:d.selected}),m(S,d.label,!0),N?N.after(U):t.element.append(U),N=U);for(C++;s.length>C;)d=s.pop(),m(S,d.label,!1),d.element.remove()}for(;P.length>x;){l=P.pop();for(C=1;C<l.length;++C)m(S,l[C].label,!1);l[0].element.remove()}q(S,function(a,c){0<a?n.addOption(c):0>a&&n.removeOption(c)})}var u;if(!(u=t.match(d)))throw kg("iexp",t,ta(f));var y=c(u[2]||u[1]),D=u[4]||u[6],F=/ as /.test(u[0])&&u[1],x=F?c(F):
null,G=u[5],J=c(u[3]||""),C=c(u[2]?u[1]:D),M=c(u[7]),K=u[8]?c(u[8]):null,O={},P=[[{element:f,label:""}]],T={};w&&(a(w)(e),w.removeClass("ng-scope"),w.remove());f.empty();f.on("change",function(){e.$apply(function(){var a=M(e)||[],c;if(v)c=[],q(f.val(),function(d){d=K?O[d]:d;c.push("?"===d?s:""===d?null:h(x?x:C,d,a[d]))});else{var d=K?O[f.val()]:f.val();c="?"===d?s:""===d?null:h(x?x:C,d,a[d])}g.$setViewValue(c);r()})});g.$render=r;e.$watchCollection(M,l);e.$watchCollection(function(){var a=M(e),c;
if(a&&A(a)){c=Array(a.length);for(var d=0,f=a.length;d<f;d++)c[d]=h(y,d,a[d])}else if(a)for(d in c={},a)a.hasOwnProperty(d)&&(c[d]=h(y,d,a[d]));return c},l);v&&e.$watchCollection(function(){return g.$modelValue},l)}if(l[1]){var n=l[0];l=l[1];var v=h.multiple,t=h.ngOptions,w=!1,u,p=!1,z=G(V.createElement("option")),E=G(V.createElement("optgroup")),y=z.clone();h=0;for(var D=g.children(),F=D.length;h<F;h++)if(""===D[h].value){u=w=D.eq(h);break}n.init(l,w,y);v&&(l.$isEmpty=function(a){return!a||0===a.length});
t?r(e,g,l):v?m(e,g,l):k(e,g,l,n)}}}}],ce=["$interpolate",function(a){var c={addOption:D,removeOption:D};return{restrict:"E",priority:100,compile:function(d,e){if(z(e.value)){var f=a(d.text(),!0);f||e.$set("value",d.text())}return function(a,d,e){var k=d.parent(),m=k.data("$selectController")||k.parent().data("$selectController");m&&m.databound||(m=c);f?a.$watch(f,function(a,c){e.$set("value",a);c!==a&&m.removeOption(c);m.addOption(a,d)}):m.addOption(e.value,d);d.on("$destroy",function(){m.removeOption(e.value)})}}}}],
be=ca({restrict:"E",terminal:!1}),Ec=function(){return{restrict:"A",require:"?ngModel",link:function(a,c,d,e){e&&(d.required=!0,e.$validators.required=function(a,c){return!d.required||!e.$isEmpty(c)},d.$observe("required",function(){e.$validate()}))}}},Dc=function(){return{restrict:"A",require:"?ngModel",link:function(a,c,d,e){if(e){var f,g=d.ngPattern||d.pattern;d.$observe("pattern",function(a){K(a)&&0<a.length&&(a=new RegExp("^"+a+"$"));if(a&&!a.test)throw E("ngPattern")("noregexp",g,a,ta(c));f=
a||s;e.$validate()});e.$validators.pattern=function(a){return e.$isEmpty(a)||z(f)||f.test(a)}}}}},Gc=function(){return{restrict:"A",require:"?ngModel",link:function(a,c,d,e){if(e){var f=-1;d.$observe("maxlength",function(a){a=aa(a);f=isNaN(a)?-1:a;e.$validate()});e.$validators.maxlength=function(a,c){return 0>f||e.$isEmpty(c)||c.length<=f}}}}},Fc=function(){return{restrict:"A",require:"?ngModel",link:function(a,c,d,e){if(e){var f=0;d.$observe("minlength",function(a){f=aa(a)||0;e.$validate()});e.$validators.minlength=
function(a,c){return e.$isEmpty(c)||c.length>=f}}}}};T.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(Sd(),Ud(ba),G(V).ready(function(){Od(V,xc)}))})(window,document);!window.angular.$$csp()&&window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}</style>');
//# sourceMappingURL=angular.min.js.map
```
|
Bhangala is a village of Punjab, India.
Bhangala may also refer to:
Bhangala, Jalandhar, a village in Phillaur in Jalandhar district, India
See also
Bhanga Bazar, Karimganj district, Assam
Bhangaha, Mahottari District, Province No. 2, Nepal
Bhangal Kalan, a village in Shaheed Bhagat Singh Nagar district, Punjab, India
Bhangara, Nepal, Parbat District, Dhawalagiri Zone, Nepal
|
```smalltalk
//
// Unit tests for MPSImageNormalizedHistogram
//
// Authors:
// Alex Soto <alexsoto@microsoft.com>
//
//
//
#if !__WATCHOS__
using System;
using Foundation;
using Metal;
using MetalPerformanceShaders;
using ObjCRuntime;
using NUnit.Framework;
using Xamarin.Utils;
namespace MonoTouchFixtures.MetalPerformanceShaders {
[TestFixture]
[Preserve (AllMembers = true)]
public class MPSImageNormalizedHistogramTests {
IMTLDevice device;
[OneTimeSetUp]
public void Metal ()
{
TestRuntime.AssertDevice ();
TestRuntime.AssertXcodeVersion (10, 0);
TestRuntime.AssertNotVirtualMachine ();
device = MTLDevice.SystemDefault;
// some older hardware won't have a default
if (device is null || !MPSKernel.Supports (device))
Assert.Inconclusive ("Metal is not supported.");
}
[Test]
public void Constructors ()
{
var info = new MPSImageHistogramInfo { NumberOfHistogramEntries = 256 };
#if !__MACOS__
var obj = new MPSImageNormalizedHistogram (MTLDevice.SystemDefault, ref info);
#else
MPSImageNormalizedHistogram obj = null;
try {
obj = new MPSImageNormalizedHistogram (MTLDevice.SystemDefault, ref info);
} catch (Exception ex) {
// This test fails on 10.13 bots but not on a local computer with 10.13. Must work on 10.14+.
// there is no a good way to tell if MPSImageNormalizedHistogram will work or not...
if (TestRuntime.CheckSystemVersion (ApplePlatform.MacOSX, 10, 14))
Assert.Fail (ex.Message);
Assert.Inconclusive ("In 10.13 this can fail in some hardware.");
}
#endif
Assert.NotNull (obj, "MPSImageNormalizedHistogram obj");
var rv = obj.HistogramInfo;
Asserts.AreEqual (info, rv, "HistogramInfo");
Assert.IsTrue (obj.ZeroHistogram, "ZeroHistogram");
Assert.AreEqual ((nuint) 3072, obj.GetHistogramSize (MTLPixelFormat.RGBA16Sint), "HistogramSizeForSourceFormat");
var crs = obj.ClipRectSource;
Assert.AreEqual ((nint) 0, crs.Origin.X, "ClipRectSource.Origin.X");
Assert.AreEqual ((nint) 0, crs.Origin.Y, "ClipRectSource.Origin.Y");
Assert.AreEqual ((nint) 0, crs.Origin.Z, "ClipRectSource.Origin.Z");
Assert.AreEqual (nuint.MaxValue, (nuint) crs.Size.Depth, "ClipRectSource.Size.Depth");
Assert.AreEqual (nuint.MaxValue, (nuint) crs.Size.Height, "ClipRectSource.Size.Height");
Assert.AreEqual (nuint.MaxValue, (nuint) crs.Size.Width, "ClipRectSource.Size.Width");
}
}
}
#endif // !__WATCHOS__
```
|
```java
package com.ctrip.platform.dal.dao.client;
/**
* Just a flag to indicate that the annotation is correct intercepted by DalTransactionInterceptor.
* IMPORTANT: NEVER implement this interface in your own class!!!
*
* @author jhhe
*/
public interface TransactionalIntercepted {
}
```
|
Gregory H. Botz (born 1962) is an intensive care specialist physician at the University of Texas MD Anderson Cancer Center and one of the pioneers of the field of Threat Safety Science. He is a University of Texas System Distinguished Teaching Professor and Professor of Critical Care Medicine at the University of Texas MD Anderson Cancer Center in Houston, Texas. He is the medical director for the University of Texas at Houston Police Department, a center of research and development for threat safety management. He is fellowship-trained as an expert in the use of simulation in healthcare at Stanford University Medical Center where he is an Adjunct Clinical Associate Professor of Anesthesia in the Department of Anesthesiology, Perioperative, and Pain Medicine.
Early life and education
Botz grew up Orange County, California. He graduated from the University of California, Riverside with a Bachelor of Science in Biology. He received his medical doctor degree, M.D., from the George Washington University School of Medicine in 1990.
Career
Following his training at Stanford University, Botz served at the Duke University Medical Center as an associate in the departments of surgery and anesthesia and rose to the rank of assistant professor. After moving to the University of Texas MD Anderson Cancer Center in 1998, his academic responsibilities grew to the level of Professor of Critical Care Medicine at the University of Texas. As the Clinical Medical Director of the Simulation Center since 2013, he has led education programs using simulation.
Threat Safety R&D
Botz, along with his colleagues at MD Anderson, has led the development of the techniques of deliberate practice through immersive simulation of real life scenarios to accelerate the development of life saving competencies. The work has targeted improvement of threat safety management by professional caregivers, law enforcement professionals, and the public. The research and development work is focused on prevention, preparedness, protection, and performance improvement related to manmade threats such as terrorism and natural threats (e.g. storms and earthquakes).
Medical Tactical Training Program
Botz is a founding contributor to the global bystander care training program, called Med Tac, that combines professional expertise and evidence-based techniques from the medical and tactical communities to train people with lifesaving behaviors that can be used in the first few minutes after a life-threatening event and before professional first responders arrive. Botz and the team that created Med Tac were awarded with the Pete Conrad Global Patient Safety Award in 2018 for their work in this area. They lead ongoing training and R&D in Texas, California, Florida, and Hawaii, and the programs have expanded to lifeguards, diving programs, and commercial air travel.
See also
Patient Safety
Medical Simulation
Medical error
Patient safety
References
1962 births
Living people
American intensivists
University of Texas MD Anderson Cancer Center
University of California, Riverside alumni
George Washington University School of Medicine & Health Sciences alumni
|
In the probability theory field of mathematics , Talagrand's concentration inequality is an isoperimetric-type inequality for product probability spaces. It was first proved by the French mathematician Michel Talagrand. The inequality is one of the manifestations of the concentration of measure phenomenon.
Statement
The inequality states that if is a product space endowed with a product probability measure and
is a subset in this space, then for any
where is the complement of where this is defined by
and where is Talagrand's convex distance defined as
where , are -dimensional vectors with entries
respectively and is the -norm. That is,
References
Probabilistic inequalities
Measure theory
|
Javid Imamverdiyev (; born 1 August 1990 in Shamkir) is an Azerbaijani footballer who currently plays Keşla as a midfielder. He is also a member of the Azerbaijan national football team and is considered to be one of the greatest Azerbaijani playmakers of all time.
Career
Imamverdiyev signed for Elazığspor on a one-year contract in September 2014.
On 4 May 2017, Imamverdiyev signed a one-year contract with Sumgayit FK.
On 12 July 2018, Imamverdiyev signed a three-year contract with Sabah FK.
On 30 June 2020, Imamverdiyev signed a one-year contract with Keşla FK.
Career statistics
Club
International
Statistics accurate as of match played 10 September 2018
International goals
Scores and results list Azerbaijan's goal tally first.
Honours
Neftchi Baku
Azerbaijan Premier League (3): 2010–11, 2011–12, 2012–13
Azerbaijan Cup (1): 2012–13
References
External links
1990 births
Living people
Azerbaijani men's footballers
Azerbaijan men's international footballers
Azerbaijani expatriate men's footballers
Expatriate men's footballers in Turkey
Men's association football forwards
Karvan FK players
Elazığspor footballers
Sumgayit FK players
Sabah FC (Azerbaijan) players
Azerbaijan Premier League players
People from Shamkir
Neftçi PFK players
Shamakhi FK players
|
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.graalvm.visualvm.heapviewer.java.impl;
import java.util.Map;
import org.graalvm.visualvm.heapviewer.HeapContext;
import org.graalvm.visualvm.heapviewer.java.ClassNode;
import org.graalvm.visualvm.heapviewer.java.ClassNodeRenderer;
import org.graalvm.visualvm.heapviewer.java.ClassesContainer;
import org.graalvm.visualvm.heapviewer.java.InstanceNode;
import org.graalvm.visualvm.heapviewer.java.InstanceNodeRenderer;
import org.graalvm.visualvm.heapviewer.java.InstanceReferenceNode;
import org.graalvm.visualvm.heapviewer.java.InstanceReferenceNodeRenderer;
import org.graalvm.visualvm.heapviewer.java.InstancesContainer;
import org.graalvm.visualvm.heapviewer.java.LocalObjectNode;
import org.graalvm.visualvm.heapviewer.java.LocalObjectNodeRenderer;
import org.graalvm.visualvm.heapviewer.java.PackageNodeRenderer;
import org.graalvm.visualvm.heapviewer.java.PrimitiveNode;
import org.graalvm.visualvm.heapviewer.java.PrimitiveNodeRenderer;
import org.graalvm.visualvm.heapviewer.java.StackFrameNode;
import org.graalvm.visualvm.heapviewer.java.StackFrameNodeRenderer;
import org.graalvm.visualvm.heapviewer.java.ThreadNode;
import org.graalvm.visualvm.heapviewer.java.ThreadNodeRenderer;
import org.graalvm.visualvm.heapviewer.model.HeapViewerNode;
import org.graalvm.visualvm.heapviewer.ui.HeapViewerRenderer;
import org.graalvm.visualvm.lib.jfluid.heap.Heap;
import org.openide.util.lookup.ServiceProvider;
/**
*
* @author Jiri Sedlacek
*/
@ServiceProvider(service=HeapViewerRenderer.Provider.class)
public class JavaNodesRendererProvider extends HeapViewerRenderer.Provider {
public boolean supportsView(HeapContext context, String viewID) {
return true;
}
public void registerRenderers(Map<Class<? extends HeapViewerNode>, HeapViewerRenderer> renderers, HeapContext context) {
Heap heap = context.getFragment().getHeap();
// packages
PackageNodeRenderer packageRenderer = new PackageNodeRenderer(heap);
renderers.put(ClassesContainer.Objects.class, packageRenderer);
renderers.put(ClassesContainer.Nodes.class, packageRenderer);
renderers.put(ClassesContainer.ContainerNodes.class, packageRenderer);
// classes
ClassNodeRenderer classRenderer = new ClassNodeRenderer(heap);
renderers.put(ClassNode.class, classRenderer);
renderers.put(InstancesContainer.Objects.class, classRenderer);
renderers.put(InstancesContainer.Nodes.class, classRenderer);
// instances
renderers.put(InstanceNode.class, new InstanceNodeRenderer(heap));
// object fields & items
renderers.put(InstanceReferenceNode.class, new InstanceReferenceNodeRenderer(heap));
// primitive fields & items
renderers.put(PrimitiveNode.class, new PrimitiveNodeRenderer());
// threads
renderers.put(ThreadNode.class, new ThreadNodeRenderer(heap));
// stack frames
renderers.put(StackFrameNode.class, new StackFrameNodeRenderer());
// local variables
renderers.put(LocalObjectNode.class, new LocalObjectNodeRenderer(heap));
// GC types
renderers.put(GCTypeNode.class, new GCTypeNode.Renderer());
renderers.put(PathToGCRootPlugin.GCRootNode.class, new PathToGCRootPlugin.GCRootNode.Renderer(heap));
}
}
```
|
William Mower Akhurst (29 December 1822 – 6/7 June 1878) was an actor, journalist and playwright in Australia.
Akhurst was born in Hammersmith, London or Brook Street, Grosvenor Square, London, a son of William Akhurst (1793–1866) and Harriet Akhurst, née Dickinson (c. 1788–1869), who married in 1845.
From age 14 to 26 he worked for a firm of merchants in the manchester goods, but his real interest was in performing and writing for the theatre. In 1847 he wrote two pieces for Greenwood, the manager of the Cremorne Gardens theatre: A Barber's Blunders and The Bosjemans (Bosjesmen?), both of which were successfully staged that year.
He emigrated to Australia, arriving in Adelaide by the barque Posthumous, in June 1849. and found employment as reporter and sub-editor for James "Dismal Jemmy" Allen's newly launched Adelaide Times.
He came to public attention when he assisted the widow and orphan children of a fellow journalist, who died at sea after a long illness, leaving her destitute.
He gave the theatre-going public a taste of his play-writing talents with musical sketches or plays: Quite Colonial, and Romance and Reality at several of the concerts given by the Nelson family while that troupe was in Adelaide May–August 1853. A third, The Rights of a Woman, would be performed in Melbourne 24 July 1854. The songs were written by Akhurst to fit recognised tunes as played on the piano by Sidney Nelson.
On 15 October 1853 he launched a newspaper, South Australian Free Press, which failed to thrive and ceased publication with the issue of 1 April 1854. This was the era of gold fever, when much of South Australia's population had left for the goldfields of Victoria and New South Wales, to the detriment of their home colony's economy. Akhurst collected what outstanding subscriptions he could, and joined the "rush".
Melbourne was in its boom years, and Akhurst had no trouble finding employment; he joined the Melbourne Argus as sub-editor and music critic. Subsequently, he wrote fourteen pantomimes; one of his burlesques, the Siege of Troy, running for sixty nights, and Knights of the Round Table also popular, both starring Richard Stewart and H. R. Harwood with scene painting (in those days as much a drawcard as the acting) by John Hennings.
In February 1870 he returned to England, and wrote pantomimes for Astley's, the Pavilion, and the Elephant and Castle theatres. He died on board the Patriarch, on the return voyage to Sydney.
Works
1866 The happy delivery of a legal lady in Jolop Street East
1866 Gulliver on his travels, or Harlequin Old Father Christmas
1868 King Arthur, or The Knights of the Round Table, and
1868 The Siege of Troy, burlesques written expressly for the Theatre Royal, Melbourne
Pantomimes
Arabian Nights 1862
Baron Munchausen 1865
Gulliver on his Travels 1866
House that Jack Built 1869
Jack Sheppard 1869
L. S. D. 1855
Little Jack Horner 1860
Last of the Ogres 1864
Robin Hood 1853
Robinson Crusoe 1868
Rule of Three 1856
Tom Tom, the Piper's Son 1867
Whittington and His Cat 1857
Valentine and Orson 1867
Family
In 1845 Akhurst married Ellen Tully (1824–1915), whose brother James H. Tully was a conductor at Drury Lane (or Covent Garden) theatre. Their family included:
Adrian Charles Akhurst (1848–1927), born in England, married Christina Mitchell on 26 January 1872
Arthur William Akhurst (1851–1907), born in Adelaide
Sidney Philip Akhurst (24 August 1852 – 1915), born in Adelaide, married Alice Kitz on 15 January 1880
Walter Frederick Akhurst (2 January 1854 – 6 April 1904), born in Adelaide married Kate Deutsch on 16 November 1874. He was a printer and music publisher.
William Howard Akhurst (8 June 1858 – 15 January 1873), born 21 Brunswick Street, Melbourne, married Emilie Kate Napthaly on 4 July 1885
Carl Adrian Akhurst (14 June 1886 – 8 September 1953), accountant and politician
Thomas Carlyle Akhurst (17 April 1861 – 1934), master printer, born 36 Gore Street, Collingwood, died 70 King William Street, Fitzroy
Victor Hugo Akhurst (16 January 1863 – )
Oscar James Akhurst (2 December 1864 – 1940)
Sources
William Wilde, Joy Hooton & Barry Andrews, The Oxford Companion to Australian literature, OUP, Melbourne, 1986, p. 20.
Notes
References
1822 births
1878 deaths
British emigrants to the Colony of South Australia
19th-century Australian dramatists and playwrights
Australian male dramatists and playwrights
Australian journalists
The Argus (Melbourne) people
|
Nottingham Law School (also known as NLS) is a law school in the UK with over 100 full-time lecturers and over 2,500 students. It is an academic and professional institution, part of Nottingham Trent University.
The institution specializes in different fields of education in law. Nottingham Law school's main goal is to provide their students careers that they are guaranteed after the completion of their graduation.
The faculty of Nottingham Law School was known for developing and creating the Legal Practice Course that includes the training and schooling of law designed courses that deal with the actuality of the legal system, demonstrating the different skills required for indulging with law in the year of 1990s.
With the development of the new designed course, the professors and teachers of the Nottingham Law School decided to take the initiative of enrolling more students into the program.
The law school also took the stance on initiating part-time students into the course, as well as raising the number of seats in the course for students enrolled in full-time study.
Nottingham Law School participated in running the Law Society Final Examination with a number of 150 students enrolled in the course. It is not to be confused with the School of Law at University of Nottingham.
Nottingham Law School has been given the top 'Excellent' rating by the Law Society and comparable ratings by the Bar Standards Board of England and Wales every year since its inception. It also has a significant reputation for research, particularly in insolvency and international criminal justice, with 60% being judged as of international standard in the most recent 2008 Research Assessment Exercise.
Since 1977, Nottingham Law School has also produced its own annual law journal; the Nottingham Law Journal.
Courses
Nottingham Law School provides a range of undergraduate LLB and postgraduate LLM degrees. The School also provides professional legal education including the Graduate Diploma in Law conversion course, the Legal Practice Course, for intending solicitors, and the Bar Professional Training Course for intending barristers.
Professional
Bar Professional Training Course
The Nottingham Law School has been accredited for being one of the nine universities that provides courses in the assistance of the Bar exam, that has been known as the Bar Professional Training Course. Nottingham Law School has a capacity of 120 students for the Bar Professional Training Course approved by the Bar Standards Board.
Legal Practice Course
The Legal Practice Course offers three different routes: the standard, the commercial and the corporate.
It further provides 7 specialties, from which students can register and choose the top 2 of which field they desire.
These specialties are the following: "corporate finance, commercial law, advanced litigation, employment, commercial leases, family, and client in the community."
The Nottingham Law School provides different groups of meetings to help the student with certain skills, and support in assisting the students practice the different skills, and activities.
The Legal Practice Course supports their students in providing them accurate real life problems related to the field law, in which the students have to indulge in solving matters, through demonstrating their vast skills learned from the credible teachers and staff of the faculty of law.
The duration of the course meetings varies according to the choice of the students enrolled in full-time study.
Students of Nottingham Law School registered in the Legal Practice Course have to commit to 13 days of concentrated studying, regardless of whether it is at home or at the workplace.
NLS Legal
The law school also hosts NLS Legal at Nottingham Law School. Founded in 2006 as the Legal Advice Clinic, the firm experienced growth threefold by the year 2012 and reopened as the Legal Advice Centre in 2014 with a purpose-built suite in the University's Chaucer building. The firm has since been rebranded to NLS Legal to reflect the expanding services on offer to the local community. The firm provides free legal advice on a number of areas, including employment, family, housing, tribunal and court representation, education (including special education needs and disabilities), welfare benefits, business, civil litigation, intellectual property and crime. Advice is generally given by Nottingham Law School students on a pro bono basis, with the firm aiming to "give law students a flying start to their legal career".
Notable alumni
Nene Amegatcher – Justice of the Supreme Court of Ghana (2018–2023)
Nick Freeman – British solicitor.
Chuka Umunna – MP for Streatham between 2010 and 2019
Paul Carr – British writer, journalist and commentator based in San Francisco
Rizwan Hussain – Barrister and UK television presenter.
Alyn Smith – SNP MEP for Scotland 2004–2019, MP 2019–present
Nwabueze Nwokolo – Royal princess of Ngwaland and Nigerian United Kingdom based lawyer who is council member at Law Society of England and Wales.
Joyce Mbui – Kenyan lawyer
Notes and references
Law School
Law schools in England
Educational institutions established in 1964
1964 establishments in England
|
```javascript
/**
* Gets the last element of `array`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Array
* @param {Array} array The array to query.
* @returns {*} Returns the last element of `array`.
* @example
*
* _.last([1, 2, 3]);
* // => 3
*/
function last(array) {
var length = array ? array.length : 0;
return length ? array[length - 1] : undefined;
}
module.exports = last;
```
|
The 2020 Big Ten conference football season is the 125th season of college football play for the Big Ten Conference and part of the 2020 NCAA Division I FBS football season. This was the Big Ten's seventh season with 14 teams. The defending league champion was Ohio State.
Due to the COVID-19 pandemic in the United States, the conference voted on August 11, 2020, to indefinitely postpone all fall athletics, including football, citing the worsening trends of the pandemic in the country. On September 16, the conference approved a shortened, eight-game football season beginning October 24, with the final week featuring the Big Ten championship game on December 19.
The Big Ten had two new coaches for the 2020 season. Rutgers hired former coach Greg Schiano to serve as head coach, replacing Chris Ash who was fired during the 2019 season. Michigan State head coach Mark Dantonio announced on February 4, 2020, that he was retiring from his position. The Spartans announced the hiring of Mel Tucker as the new head coach on February 12, 2020. On December 13, Illinois fired its head coach Lovie Smith, and on December 19 announced the hiring of Bret Bielema as its new head coach.
Previous season
On the field of play last season, Ohio State won the East Division title and made their fifth appearance in the Big Ten Championship Game and third consecutive appearance. In the West Division, Wisconsin and Minnesota tied for the division title, but the Badgers represented the division in the conference title game due to their head-to-head win over the Golden Gophers. Wisconsin made their sixth appearance in the conference title game overall. In that championship game, Ohio State defeated Wisconsin 34–21 to win their third consecutive Big Ten championship. With that win, the Buckeyes landed a spot in the 2019–20 College Football Playoff as the #2 seed.
Nine teams participated in bowl games in the 2018 season, and the league went 5–4 in those games. Ohio State made the College Football Playoff but fell to Clemson 29–23 in the Fiesta Bowl.
Delay of season
On July 9, 2020, due to the COVID-19 pandemic in the United States, the Big Ten announced that all competition in fall sports, including football, would be played exclusively in-conference, in order to "have the greatest flexibility to adjust its own operations throughout the season and make quick decisions in real-time". An updated 10-game conference-only schedule was released on August 5, 2020.
On August 11, in the wake of multiple Group of Five conferences deciding to do so, the council of the Big Ten voted 11–3 to postpone fall athletics for the 2020–21 season (with all but Iowa, Nebraska, and Ohio State voting in favor). Commissioner Kevin Warren cited negative trends and uncertainties surrounding COVID-19 as a factor in the decision. The conference stated that it would evaluate options, including possibly playing in spring 2021 instead. After the decision to postpone the season, the Big Ten formed a taskforce to investigate options for a return to play. President Donald Trump criticized the Big Ten's decision to postpone fall football, as part of his general criticism of U.S. colleges and universities that have not resumed on-campus activities. All other Power Five conferences besides the Pac-12 (which also postponed its season shortly after the Big Ten's decision) were still planning to play in the fall.
On September 14, it was reported that the Big Ten was considering the possibility of reversing its decision and playing a shortened conference football season as early as mid-to-late October. On September 16, the Big Ten approved an eight-game conference season that would begin October 24, and conclude on December 19 with the Big Ten Championship Game. The conference originally planned to hold a slate of cross-division matchups between seeds alongside the championship game.
The conference instituted a daily antigen testing protocol from September 30; PCR tests are used to confirm positives found via antigen testing. Players who test positive on both tests are removed from play for at least 21 days and undergo cardiac tests during this period, and will have to be cleared by a cardiologist before they can return to play. Positivity rates among participating teams and the local population will also be a factor: teams with a positivity rate above 5% or a population positivity rate above 7% will be required to halt all activity for seven days.
Preseason
2020 Big Ten Spring Football and number of signees on signing day:
Recruiting classes
Big Ten Media Days
Preseason media polls
Below are the results of the media poll with total points received next to each school and first-place votes in parentheses. For the 2020 poll, Ohio State was voted as the favorite to win both the East Division and the Big Ten Championship Game. This is the 10th iteration of the preseason media poll conducted by Cleveland.com, which polls at least one credentialed media member for each Big Ten team. Only twice in the last ten years has the media accurately predicted the Big Ten champion.
Preseason awards
Preseason All-Big Ten
Rankings
The AP and Coaches Polls ranked Big Ten teams in the preseason, but then removed those teams after the league suspended play.
The Coaches Poll returned to ranking Big Ten teams with the Sept. 20 poll. The AP Poll returned Big Ten teams to the rankings with the Sept. 27 poll.
Schedule
All times Eastern time.
† denotes Homecoming game
Regular season schedule
The Regular season was scheduled to begin on September 3 and end on November 28. The Big Ten Championship Game was scheduled to be held on December 5, 2020.
On July 9, 2020, the Big Ten Conference announced that all non-conference contests in all fall sports, including football, would be canceled due to the COVID-19 pandemic. The league then moved to institute a 10-game, conference-only schedule in football, which would include multiple open weeks for teams in order to introduce flexibility into the schedule. On August 5, the Big Ten released the new reconfigured 10-game conference-only schedule. On August 11, 2020, the conference decided to postpone all fall sports and evaluate option to restart competition in spring 2021.
On September 16, 2020, the Big Ten announced that the football season would start on the weekend of October 24. There will be an eight-game regular season taking place over eight weeks. Each team will play all the other teams in its division, plus two crossover games with teams in the other division. Then the league championship game will be played on December 19. Also on the weekend of December 19, there will be crossover divisional games featuring the 2nd place teams from each division facing off, the 3rd places teams meeting each other, etc. The new schedule was released on September 19.
On December 9, the Big Ten waived its rule of requiring teams to play a minimum of six league games to be eligible for the Big Ten Championship Game, allowing Ohio State (5-0) to represent the East Division.
Week #1
Week #2
The Wisconsin at Nebraska game was canceled due to a COVID-19 outbreak at Wisconsin
Week #3
The Purdue at Wisconsin game was canceled due to a COVID-19 outbreak at Wisconsin
Week #4
The Ohio State at Maryland game was canceled due to a COVID-19 outbreak at Maryland.
Week #5
Michigan State at Maryland was canceled due to COVID-19 cases at Maryland.
Week #6
Ohio State at Illinois was canceled after positive COVID-19 at Ohio State.
Minnesota at Wisconsin was canceled after positive COVID-19 tests at Minnesota.
Week #7
Northwestern at Minnesota was canceled after COVID issues at Minnesota.
Maryland at Michigan was canceled after COVID issues at Michigan.
Week #8
Michigan at Ohio State game was canceled after COVID-19 issues at Michigan.
Purdue at Indiana was canceled by mutual agreement after increased COVID-19 issues at both schools.
Week #9: Big Ten Championship Game and Champions Week games
|-
|colspan="8" style="text-align:center;"|Big Ten Championship Game
|-
|colspan="8" style="text-align:center;"|Champions Week Games
|-
Note: The additional games were originally planned to be cross-divisional matchups of the teams with the same standings – second place vs. second place, third place vs. third place, and so on. The schedule was changed to preserve rivalry games that were canceled during the regular season, and to avoid rematches.
Indiana-Purdue game canceled due to COVID-19 issues at both schools.
Nebraska's game with Rutgers has been adjusted from a 3:00 PM to a 6:30 PM kickoff time on Friday, December 18 after the cancellation of the Indiana-Purdue game.
Michigan-Iowa game canceled due to COVID-19 issues at Michigan.
Maryland-Michigan State game canceled due to COVID-19 issues at Maryland.
Canceled regular season games
The following non-conference games were canceled due to the COVID-19 pandemic:
Sept. 3
Florida Atlantic at Minnesota
Sept. 4
Illinois State at Illinois
Sept. 5
Bowling Green at Ohio State
Kent State at Penn State
Michigan at Washington
Monmouth at Rutgers
Northern Iowa at Iowa
Towson at Maryland
Sept. 12
Ball State at Michigan
Central Michigan at Nebraska
Connecticut at Illinois
Iowa State at Iowa
Memphis at Purdue
Michigan State at BYU
Northern Illinois at Maryland
Ohio State at Oregon
Penn State at Virginia Tech
Southern Illinois at Wisconsin
Syracuse at Rutgers
Tennessee Tech at Minnesota
Tulane at Northwestern
Western Kentucky at Indiana
Sept. 19
Air Force at Purdue
Appalachian State at Wisconsin
Arkansas State at Michigan
Ball State at Indiana
Bowling Green at Illinois
Buffalo at Ohio State
Central Michigan at Northwestern
Maryland at West Virginia
Rutgers at Temple
San Jose State at Penn State
South Dakota State at Nebraska
Toledo at Michigan State
Sept. 26
BYU at Minnesota
Cincinnati at Nebraska
Indiana at Connecticut
Miami (FL) at Michigan State
Northern Illinois at Iowa
Purdue at Boston College
Oct. 3
Wisconsin vs. Notre Dame (at Green Bay, WI)
Nov. 14
Morgan State at Northwestern
Postseason
Bowl games
Games below do not include bowl games that Big Ten teams may be selected for in the College Football Playoff semifinals (the Rose Bowl and Sugar Bowl on January 1, 2021) or potential At-Large bids in New Year's Six Bowls (the Cotton Bowl on December 30, 2020, and Peach Bowl on January 1, 2021).
Five Big Ten teams accepted bowl bids for the 2020–21 season, with Ohio State being selected for the College Football Playoff.
Rankings are from CFP rankings. All times Eastern Time Zone. Big Ten teams shown in bold.
Big Ten records vs other conferences
2020–2021 records against non-conference foes:
Postseason
Awards and honors
Player of the week honors
Big Ten Individual Awards
The following individuals won the conference's annual player and coach awards:
All-Conference Teams
2020 Big Ten All-Conference Teams and Awards
Coaches Honorable Mention: ILLINOIS: Chase Brown, Mike Epstein, Blake Hayes, Doug Kramer, Vederian Lowe, James McCourt, Roderick Perry II; INDIANA: Harry Crider, Cam Jones, Whop Philyor, Reese Taylor, Haydon Whitehead; IOWA: Dane Belton, Riley Moss, Mekhi Sargent, Ihmir Smith-Marsette, Cody Ince, Kyler Schott, Sam LaPorta; MARYLAND: Chance Campbell, Nick Cross, Jaelyn Duncan, Mo Kite, Tarheeb Still; MICHIGAN: Hassan Haskins, Daxton Hill, Carlo Kemp, Kwity Paye, Brad Robbins, Andrew Stueber; MICHIGAN STATE: Drew Beesley, Matt Coghlin; MINNESOTA: Coney Durr, Boye Mafe, Tanner Morgan, John Michael Schmitz, Conner Olson, Blaise Andries, Sam Schlueter; NEBRASKA: Marquel Dismuke, JoJo Domann, Matt Farniok, Will Honas, Brenden Jaimes, Wan'Dale Robinson, Ben Stille, Deontai Williams; NORTHWESTERN: Derek Adams, Chris Bergin, Earnest Brown IV, Charlie Kuhbander, Eku Leota, John Raine; OHIO STATE: Sevyn Banks, Tuf Borland, Luke Farrell, Marcus Hooker, Josh Proctor, Jeremy Ruckert, Trey Sermon, Tyreke Smith, Marcus Williamson; PENN STATE: Tariq Castro-Fields, Jahan Dotson, P. J. Mustipher, Joey Porter Jr., Antonio Shelton, Brandon Smith, Lamont Wade, Rasheed Walker; PURDUE: Jaylan Alexander, Cam Allen, J.D. Dellinger, Payne Durham, Gus Hartwig, Grant Hermanns, Spencer Holstege, Lorenzo Neal, Rondale Moore; RUTGERS: Michael Dwumfour, Christian Izien, Bo Melton, Reggie Sutton, Julius Turner, Mike Tverdov, Brendon White; WISCONSIN: Tyler Beach, Eric Burrell, Leo Chenal, Faion Hicks, Isaiahh Loudermilk, Jack Sanborn, Mason Stokke, Andy Vujnovich.
Media Honorable Mention: ILLINOIS: Mike Epstein, Doug Kramer, Vederian Lowe, James McCourt, Roderick Perry II; INDIANA: Harry Crider, Cam Jones, Whop Philyor, Reese Taylor, Haydon Whitehead; IOWA: Dane Belton, Seth Benson, Shaun Beyer, Matt Hankins, Cody Ince, Mark Kallenberger, Sam LaPorta, Riley Moss, Nick Niemann, Spencer Petras, Mekhi Sargent, Ihmir Smith-Marsette, Kyler Schott; MARYLAND: Chance Campbell, Nick Cross, Dontay Demus, Jaelyn Duncan, Jake Funk, Rakim Jarrett, Johnny Jordan, Mo Kite, Tarheeb Still, Taulia Tagovailoa; MICHIGAN: Michael Barrett, Hassan Haskins, Brad Hawkins, Daxton Hill, Brad Robbins; MICHIGAN STATE: Drew Beesley, Matt Coghlin, Jayden Reed; MINNESOTA: Coney Durr, Boye Mafe, Tanner Morgan, Sam Schlueter, John Michael Schmitz; NEBRASKA: Dicaprio Bootle, Marquel Dismuke, JoJo Domann, Matt Farniok, Will Honas, Brenden Jaimes, Ben Stille, Cam Taylor-Britt, Deontai Williams; NORTHWESTERN: Derek Adams, Chris Bergin, Earnest Brown IV, Ramaud Chiaokhiao-Bowman, Charlie Kuhbander, JR Pace, John Raine; OHIO STATE: Sevyn Banks, Tuf Borland, Baron Browning, Drue Chrisman, Zach Harrison, Haskell Garrett, Marcus Hooker, Harry Miller, Nicholas Petit-Frere, Trey Sermon, Tyreke Smith; PENN STATE: Jaquan Brisker, Tariq Castro-Fields, Jahan Dotson, Will Fries, P. J. Mustipher, Antonio Shelton, Brandon Smith; PURDUE: Cam Allen, J.D. Dellinger, Gus Hartwig, Grant Hermanns, Spencer Holstege, George Karlaftis, Greg Long, Lorenzo Neal, Rondale Moore, Brennan Thieneman; RUTGERS: Michael Dwumfour, Tyshon Fogg, Christian Izien, Bo Melton, Raiqwon O'Neil, Julius Turner, Mike Tverdov, Avery Young; WISCONSIN: Eric Burrell, Leo Chenal, Faion Hicks, Caesar Williams.
All-Americans
The 2020 College Football All-America Team is composed of the following College Football All-American first teams chosen by the following selector organizations: Associated Press (AP), Football Writers Association of America (FWAA), American Football Coaches Association (AFCA), Walter Camp Foundation (WCFF), The Sporting News (TSN), Sports Illustrated (SI), USA Today (USAT) ESPN, CBS Sports (CBS), FOX Sports (FOX) College Football News (CFN), Bleacher Report (BR), Scout.com, Phil Steele (PS), SB Nation (SB), Athlon Sports, Pro Football Focus (PFF), The Athletic, and Yahoo! Sports (Yahoo!).
Currently, the NCAA compiles consensus all-America teams in the sports of Division I-FBS football and Division I men's basketball using a point system computed from All-America teams named by coaches associations or media sources. The system consists of three points for a first-team honor, two points for second-team honor, and one point for third-team honor. Honorable mention and fourth team or lower recognitions are not accorded any points. Football consensus teams are compiled by position and the player accumulating the most points at each position is named first team consensus all-American. Currently, the NCAA recognizes All-Americans selected by the AP, AFCA, FWAA, TSN, and the WCFF to determine Consensus and Unanimous All-Americans. Any player named to the First Team by all five of the NCAA-recognized selectors is deemed a Unanimous All-American.
*Associated Press All-America Team (AP)
*CBS Sports All-America Team (CBS)
*ESPN Sports All-America Team (ESPN)
*The Athletic All-America Team (Athletic)
*USA Today All-America Team (USAT)
*The Sporting News All-America Team (TSN)
*Football Writers Association of America All-America Team (FWAA)
*American Football Coaches Association All-America Team (AFCA)
*Phil Steele All-America Team (PS)
*Walter Camp Football Foundation All-America Team (WCFF)
All–Academic
National award winners
Home attendance
Due to COVID-19, the Big Ten is not allowing fans into stadiums for the 2020 season. Family members and limited staff are permitted. Some schools count and track those numbers and some do not.
2021 NFL Draft
The Big Ten had 44 players selected in the 2021 NFL Draft, the second-most of any conference, trailing only the SEC who had 65.
Draft Notes
Head coaches
Current through January 11, 2021
* Tom Allen was hired to replace Kevin Wilson in December 2016 at Indiana and coached the Hoosiers in their 2016 bowl game, going 0–1.
* Mike Locksley served as interim head coach at Maryland in 2015 and coached for six games, going 1–5.
* Ryan Day served as interim head coach at Ohio State for the first three games of the 2018 season while Urban Meyer served a three-game suspension and went 3–0.
* Greg Schiano served as head coach at Rutgers from 2001 through 2011 then left for the NFL. Following the conclusion of the 2019 season, Schiano returned to Rutgers for his second stint as head coach. The Scarlet Knights competed in the Big East Conference in his previous stay at the school.
* Lovie Smith was relieved of his coaching duties at Illinois on December 13. Offensive coordinator Rod Smith was named interim coach for the final game of the 2020 season.
References
Big Ten Conference football season
|
Sir Walter Calverley, 1st Baronet (1670 – 15 October 1749) was an English aristocrat.
He was the only son of Walter Calverley of Calverley, Yorkshire, and Frances Thompson, daughter and heiress of Henry Thompson of Esholt, Yorkshire. He was baptised on 16 January 1670 at Calverley, and matriculated at Queen's College, Oxford, on 30 June 1687, aged 17.
He married Julia Blackett, eldest daughter of Sir William Blackett on 7 January 1707 at Newcastle. In about 1709, he completed the building of a new house at Esholt Hall, Esholt.
He was created a baronet on 11 December 1711. His wife died on 17 September 1736; he died on 15 October 1749, aged 79, and was buried at Calverley. He was succeeded by his son Walter.
References
Further reading
External links
The Blacketts of North East England
1670 births
1749 deaths
Baronets in the Baronetage of Great Britain
People from Calverley
|
Palmaria is an Italian island situated in the Ligurian Sea, at the westernmost end of the Gulf of La Spezia. With an area of , it is the largest island of an archipelago of three closely spaced islands jutting from the mainland at Portovenere. The outer islands, Tino and the tiny Tinetto, lie further south.
In 1997, the archipelago was designated by UNESCO as a World Heritage Site that also includes Portovenere and the Cinque Terre.
Description
The island of Palmaria's area of makes it the largest of the three islands in the Gulf of La Spezia. The other two islands, Tino and Tinetto, are just a few hundred meters to the south. Palmaria is also the largest island in the whole Liguria region.
The island has a triangular shape: the sides that face Portovenere and the Gulf of La Spezia are the most populated and slope gently down to the level of the sea, covered by typical Mediterranean vegetation. The side that faces west, towards the open sea, features high cliffs overhanging the water, in which there are many caves. The populated sides feature some private homes, a restaurant in Pozzale, and many bathing establishments, some public and some reserved for employees of the Navy and Air Force.
The western side is the most difficult to reach. Significant landmarks are the Blue Cave, accessible only by boat, and the Cave of Pigeons reached only by climbing down ropes. The Cave of Pigeons has been very important in the study of historical events in the Gulf. The fossilized bones of Pleistocene animals such as chamois and the snowy owl have been found there, along with the remains of human burials which testify to human presence at least five thousand years ago.
On the island there are also many military buildings of great historical interest. The island's summit remains out of bounds as a former military area although it is in a state of neglect. Structures include the Fort Count of Cavour (or Fort Palmaria), the battery now used as experimental environmental education center, Batteria Semaforo near the Scola Tip, and the remains of the Albini battery. The ironclad tower Umberto I was used in World War II as a military prison and was renovated a few years ago. Scattered throughout the island there are several abandoned bunkers from the Second World War and the remains of coastal artillery and antiaircraft batteries, mostly inaccessible due to overgrowth by vegetation.
Portoro marble
In Pozzale, the southern region, is an abandoned quarry once used for the extraction of the precious black marble with gold streaks called . There are still remnants of the cranes and hoists that moved the blocks of marble, and the walls of the houses of the miners.
Natural habitat
Flora
The flora of Palmaria is composed of about 500 species. The original vegetation, which must have consisted mainly of Mediterranean scrub and oak wood forest, was modified by anthropic causes such as fire, agriculture, and the introduction of alien plants and animals such as plane trees, palms and rabbits.
Today the pines (Pinus pinaster and Pinus halepensis) share space with typical Mediterranean species such as holly oak (Quercus ilex), downy oak (Quercus pubescens), mastic (Pistacia lentiscus), strawberry tree (Arbutus unedo), rockrose (Cistus monspeliensis, Cistus salvifolius, Cistus incanus), Spanish broom (Spartium junceum).
Other important plant groups include spurge (Euphorbia dendroides) and close to the sea cliffs, samphire (Crithmum maritimum). Among the new flora, Centaurea cineraria veneris, Iberis umbellata var. linifolia, are exclusive in Palmaria, and Centaurea aplolepa lunensis is endemic to eastern Liguria. Other notable plants include Brassica oleracea robertiana, Serapias neglecta and Cistus incanus, which are otherwise rare in Liguria, their northern limit.
Fauna
There are many species of reptile on the island, such as the smallest of the European geckos, the European leaf-toed gecko (Phyllodactylus europaeus). While also present on the neighboring islands of Tino and Tinetto, this species is rare in Liguria.
Bird species include kestrel (Falco tinnunculus), peregrine falcons (Falco peregrinus), sparrowhawks (Accipiter nisus), red partridges (Alectoris rufa), gulls (Larus argentatus, Larus michahellis), ravens (Corvus corax), rock thrushes (Monticola solitarius), and cormorants (Gulosus aristotelis).
Several species of bats are found in caves on Palmaria: the trunnion (Plecotus auritus), the greater horseshoe bat (Rhinolophus ferrumequinum), and the lesser horseshoe bat (Rhinolophus hipposideros).
Colonies of rabbits and goats on the island are remains of a recent past when the island was more inhabited.
The beetle Parmenas solieri is an endemic species linked to spurge patches found on the island.
Climate and maritime links
The climate is typically Mediterranean, temperate on both daily and seasonal timescales.
In winter there are very few episodes of extreme cold or frost, while in summer the heat is moderated by the effect of the sea breeze. The abundant rainfall follows the trends of the Riviera di Levante, especially heavy in autumn and spring.
The island can be reached by private boat, or in the summer months by the ferries that connect with Portovenere, Lerici, and La Spezia.
See also
List of islands of Italy
Scola Tower
Gallery
References
Islands of Liguria
Italian Riviera
Ligurian Sea
Province of La Spezia
Natura 2000 in Italy
World Heritage Sites in Italy
|
Group of Four Trees is an abstract outdoor sculpture completed in 1972 by the French 20th-century artist Jean Dubuffet. Originally commissioned by the American banker and philanthropist David Rockefeller, the work measures 43 feet and is installed in the public plaza of 28 Liberty Street (formerly One Chase Manhattan Bank Plaza) between Nassau Street and Pine Street in Financial District, Manhattan.
Dubuffet, a leading figure in the Art Brut movement, considered Group of Four Trees as part of his Hourloupe series. The series, originating from ballpoint pen doodles in 1962, features flat, interlocking shapes and striated coloring in red, white, and blue against black backgrounds. At the time of installation, Group of Four Trees was the largest outdoor sculpture in New York City and was said to have dramatized "the increasing environmental interdependence between architecture and outside sculpture" in the 1970s.
Historical context
Following the completion of One Chase Manhattan Plaza in 1960, the building's arts committee, which was headed by David Rockefeller, was tasked with finding and commissioning public sculptures that could be installed in the building's 2.5-acre plaza. In 1964, a fountain installation by the Japanese-American artist Isamu Noguchi titled Sunken Garden was placed below the surface of the plaza while remaining visible from above.
The French artist Jean Dubuffet was chosen as the second artist to participate in the project in 1970. His work was associated with the Art brut movement in France and Dubuffet was known for the inventive use of unconventional artistic materials. He coined the term Art brut or "raw art" to describe "works that drew on the aesthetic of works by prisoners, children, and people with mental illness". Such an approach stood in contrast to "high modernism, which prized itself on rigid notions of artistic genius". Many of Dubuffet's works employ oil paint with an impasto texture, enriched by materials such as sand, tar, and straw, resulting in a uniquely textured surface. By the late 1960s, he had shifted toward three-dimensional works using unorthodox mediums, including chemical substances such as polystyrene, polyester and epoxy.
Commission
On 23 November 1970, David Rockefeller announced that Dubuffet had been tasked with creating a large-scale abstract sculpture titled Group of Four Trees and that the work would be Rockefeller's "gift to the bank and the downtown community". The sculpture was made with 25 tons of aluminum and steel, fiberglass, and plastic resin covered with polyurethane paint and composed of "crude interlocking forms and thick coloring-book lines".
Dubuffet described Group of Four Trees as part of his Hourloupe works, that is "some wonderful or grotesque object (...) something rumbling and threatening with tragic overtones". The artist began the Hourloupe series in the early 1960s, characterized by flat, interlocking shapes and striated coloring, typically red, white, and blue, often set against a black background. Dubuffet's inspiration for this style stemmed from ballpoint pen doodles he made during a phone conversation in July 1962.
The artist did not classify Group of Four Trees as a sculpture but rather as "unleashed graphisms" or "drawings which extend and expand in space". Dubuffet delivered a speech on 24 October 1972 on the occasion of the sculpture's installation where he discussed ways in which Group of Four Trees fit into his artistic practice during that time. He said: "I could not have hoped for a place better suited to this monument (...) Indeed, this plaza, and the prodigious buildings which rise above and surrounding it, are the dramatic illustration of an extraordinary celebration of reason, logic, and calculations".
Reception
The sculpture is said to provide "striking contrast to the tall and sleek buildings of corporate New York". When a maquette of the sculpture was presented during a press conference, critic David L. Shirley of The New York Times said that the work looked "like a weird cross‐pollination of mammoth Alice‐in‐Wonderland mushrooms and a jig saw puzzle for giants".
Writing about Dubuffet's work in 1983, art historian Harold Rosenberg said that it "ranks among his best". Rosenberg praised the scale of the sculpture made of "irregular horizontal shapes that appear to float above deliberately clumsy bases—the 'trunks' of the trees" and its ability to maintain a balanced relationship between human presence and the surrounding skyscrapers. He further described the colors and texture surfaces as "physically relaxing" and suggesting that it will "serve as a shady arbor" during summertime.
See also
Architecture of New York City
International Style (architecture)
List of public art in New York City
Modern sculpture
Monument with Standing Beast (1984)
Louise Nevelson Plaza
References
Outdoor sculptures in Manhattan
French art
Abstract sculpture
Public art in New York City
Outsider art
Lower Manhattan
Architecture in New York City
Modern art
|
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>demo</title>
</head>
<body>
<div id="app"></div>
<script src="../dist/yox.js"></script>
<script>
var instance = new Yox({
el: '#app',
data: {
name: '',
user: {
name: 'musicode'
},
users: [
{
name: 'Jake',
checked: true,
},
{
name: 'John',
checked: false,
},
{
name: 'Mike'
}
]
},
template: '<div></div>',
watchers: {
'user.name': {
sync: true,
watcher: function () {
console.log('user.name', arguments);
}
},
'users.*.name': function (newValue, oldValue, keypath, index) {
console.log('users.*.name', arguments);
this.toggle('users.' + index + '.checked');
},
'user.**': function () {
console.log('user.**', arguments);
},
'**': function () {
console.log('**', arguments);
},
'*': function () {
console.log('*', arguments);
},
'users.*.checked': {
watcher: function () {
console.log('users.*.checked', arguments)
}
},
'users.1.checked': {
watcher: function () {
console.log('users.1.checked', arguments)
}
},
'user.age': {
watcher: function () {
console.log('user.age', arguments)
}
},
'user.gender': {
sync: true,
watcher: function () {
console.log('user.gender', arguments)
}
}
},
afterUpdate: function () {
console.log('');
console.log('');
console.log('');
}
});
</script>
</body>
</html>
```
|
The Australian Family Party is a political party registered in South Australia. It fielded six candidates in the 2022 South Australian state election which was held on 19 March 2022. In its first appearance in the state election, it garnered 0.28% of the vote. It is considered a fringe party by most political analysts.
History
Former Family First Party senator Bob Day launched the Australian Family Party in October 2020. He said it was to counter the Australian Greens and the disappointment of the major parties. He said it was based on six key principles:
Family resilience
Family economics
Family technology
Free to speak
Free to believe
Free to work
The party was registered by the Electoral Commission of South Australia on 11 November 2021.
References
External links
Political parties in South Australia
Political parties established in 2021
2021 establishments in Australia
|
```smalltalk
using SixLabors.ImageSharp.ColorProfiles;
namespace SixLabors.ImageSharp.Tests.ColorProfiles;
/// <summary>
/// Tests <see cref="CieLuv"/>-<see cref="Lms"/> conversions.
/// </summary>
public class CieLuvAndLmsConversionTests
{
private static readonly ApproximateColorProfileComparer Comparer = new(.0002F);
[Theory]
[InlineData(0, 0, 0, 0, 0, 0)]
[InlineData(36.0555, 93.6901, 10.01514, 0.164352, 0.03267485, 0.0483408)]
public void Convert_CieLuv_to_Lms(float l, float u, float v, float l2, float m, float s)
{
// Arrange
CieLuv input = new(l, u, v);
Lms expected = new(l2, m, s);
ColorConversionOptions options = new() { WhitePoint = KnownIlluminants.D65, TargetWhitePoint = KnownIlluminants.D65 };
ColorProfileConverter converter = new(options);
Span<CieLuv> inputSpan = new CieLuv[5];
inputSpan.Fill(input);
Span<Lms> actualSpan = new Lms[5];
// Act
Lms actual = converter.Convert<CieLuv, Lms>(input);
converter.Convert<CieLuv, Lms>(inputSpan, actualSpan);
// Assert
Assert.Equal(expected, actual, Comparer);
for (int i = 0; i < actualSpan.Length; i++)
{
Assert.Equal(expected, actualSpan[i], Comparer);
}
}
[Theory]
[InlineData(0, 0, 0, 0, 0, 0)]
[InlineData(0.164352, 0.03267485, 0.0483408, 36.0555, 93.69009, 10.01514)]
public void Convert_Lms_to_CieLuv(float l2, float m, float s, float l, float u, float v)
{
// Arrange
Lms input = new(l2, m, s);
CieLuv expected = new(l, u, v);
ColorConversionOptions options = new() { WhitePoint = KnownIlluminants.D65, TargetWhitePoint = KnownIlluminants.D65 };
ColorProfileConverter converter = new(options);
Span<Lms> inputSpan = new Lms[5];
inputSpan.Fill(input);
Span<CieLuv> actualSpan = new CieLuv[5];
// Act
CieLuv actual = converter.Convert<Lms, CieLuv>(input);
converter.Convert<Lms, CieLuv>(inputSpan, actualSpan);
// Assert
Assert.Equal(expected, actual, Comparer);
for (int i = 0; i < actualSpan.Length; i++)
{
Assert.Equal(expected, actualSpan[i], Comparer);
}
}
}
```
|
```c++
//
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing, software
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#include "paddle/phi/kernels/nonzero_kernel.h"
#include "glog/logging.h"
#include "paddle/phi/backends/xpu/enforce_xpu.h"
#include "paddle/phi/common/memory_utils.h"
#include "paddle/phi/core/kernel_registry.h"
namespace phi {
template <typename T, typename Context>
void NonZeroKernel(const Context& dev_ctx,
const DenseTensor& condition,
DenseTensor* out) {
const T* cond_data = condition.data<T>();
auto numel = condition.numel();
auto dims = condition.dims();
const int rank = dims.size();
xpu::ctx_guard RAII_GUARD(dev_ctx.x_context());
int* true_num = RAII_GUARD.alloc_l3_or_gm<int32_t>(1);
int true_num_cpu;
int ret = xpu::nonzero_count(dev_ctx.x_context(), cond_data, true_num, numel);
PADDLE_ENFORCE_XDNN_SUCCESS(ret, "nonzero_count");
memory_utils::Copy(phi::CPUPlace(),
static_cast<void*>(&true_num_cpu),
dev_ctx.GetPlace(),
static_cast<void*>(true_num),
sizeof(int32_t));
if (std::getenv("XPUSIM_SKIP_RUN") &&
std::strcmp(std::getenv("XPUSIM_SKIP_RUN"), "1") == 0) {
VLOG(3) << "WARNING: In the simulator mode, the variable true_num_cpu "
"stores an uninitialized value. To avoid allocating a memory of "
"random size, we assign numel to true_num_cpu";
true_num_cpu = numel;
}
out->Resize(common::make_ddim({static_cast<int64_t>(true_num_cpu), rank}));
auto* out_data = dev_ctx.template Alloc<int64_t>(out);
if (true_num_cpu == 0) {
return;
}
auto condition_shape = common::vectorize<int>(dims);
ret = xpu::where(
dev_ctx.x_context(), cond_data, out_data, condition_shape, true_num_cpu);
PADDLE_ENFORCE_XDNN_SUCCESS(ret, "where");
}
} // namespace phi
PD_REGISTER_KERNEL(
nonzero, XPU, ALL_LAYOUT, phi::NonZeroKernel, int, bool, float, int64_t) {
kernel->OutputAt(0).SetDataType(phi::DataType::INT64);
}
```
|
Mirta Maria Martin, (pronounced MEER-tah) (born June 18, 1960) is an American former educator who was the president of Fairmont State University from 2018 to 2022 and the president of Fort Hays State University from 2014 to 2016. Prior to Fort Hays State, Martin served as the Dean of Virginia State University's Reginald F. Lewis School of Business, a position she held from August 1, 2009 until June 30, 2014.
Biography
Education
Originally from Cuba, Martin attended Duke University, where she graduated in 1982 with her bachelor of science in psychology and political science. Ten years later in 1992, Martin received her master's degree from the University of Richmond, followed by her doctorate from Virginia Commonwealth University in 1996.
Early career
After graduating from Duke in 1982, Martin worked in banking where she eventually became the Senior Vice President of First Union National Bank of Virginia. After a little more than a decade in the banking industry, Martin became an associate professor of business at Averett University, where she served as the interim dean in 1995. In 2001, Martin left Averett to become the Executive Director of the Management Institute and associate professor and dean of management development at the E. Claiborne Robins School of Business. After a brief two years at the University of Richmond, Martin became John Tyler Community College's Special Assistant to the President and Executive Vice President and Executive Director of the Foundation for four years. In 2009, Martin became the Dean and Professor for management at Virginia State University's Reginald F. Lewis School of Business.
Fort Hays State University
On May 2, 2014, the Kansas Board of Regents announced Martin as Fort Hays State University's ninth president. Martin became the first female president in the university's history, as well as the first Hispanic president in the Regents system.
Under Martin’s administration, the financial condition of FHSU and its ability to administer annual operating and capital budgets were excellent as evidenced by its cash reserves, low tuition, and its capability to manage most capital projects with no debt. FHSU’s bond rating was upgraded during 2016 to Moody’s rating of A1 Stable, at a time when the state of Kansas and many of its institutions were being downgraded.
Martin is also credited with a re-engineering plan that created the College of Science, Technology, and Mathematics (STeM); the Honors Program; and the first professional doctoral program - the Doctor of Nursing Practice. To serve the needs of the emerging Hispanic population in Western Kansas, Martin launched the Hispanic College Institute, a program she had previously created. Due to an aggressive enrollment management strategy, FHSU became the third largest university in the state with an all-time high enrollment of 14,658.
On November 23, 2016, Martin announced she was stepping down as president, but continued to serve Fort Hays State as the Consultant to the President until June 2017.
Fairmont State University
On October 19, 2017, Fairmont State University announced Martin as their next president, beginning January 1, 2018.
Fairmont State University President Dr. Mirta Martin received the WVNews.com’s Educator of the Year Award for 2019. Martin, who became president at Fairmont State in January 2018, helped turn the university’s financial situation around over an 18-month time frame, leading to the institution seeing a $5.3 million increase in its net position despite the $3.87 million deficit she inherited. As of June 30, 2022, Martin's leadership are heralded for the $20.5 million turnaround in finances, the 5.69 Composite Financial Index (up from 0.76 which she inherited). The University also has the largest days cash on hand. For her leadership, Martin was also named West Virginia's Wonder Woman in 2020. In 2021, she was highlighted by The PhD Program during Women's History Month.
Other work
While in Virginia, Martin served on various board including the Virginia State Board for Community Colleges and Virginia Latino Advisory Board, after being appointed by former Virginia governors, Bob McDonnell and Tim Kaine. Martin was also a recipient of the Presidential Volunteer Service Award, given by the President of the United States.
References
External links
Press release – Fairmont State University
Presidents of Fort Hays State University
University of Richmond faculty
Virginia Commonwealth University alumni
University of Richmond alumni
Duke University Trinity College of Arts and Sciences alumni
1960 births
Living people
People from Havana
People from Hays, Kansas
Fairmont State University people
|
```c++
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/heap/concurrent-allocator.h"
#include "src/heap/concurrent-allocator-inl.h"
#include "src/heap/local-heap.h"
namespace v8 {
namespace internal {
Address ConcurrentAllocator::PerformCollectionAndAllocateAgain(
int object_size, AllocationAlignment alignment, AllocationOrigin origin) {
Heap* heap = local_heap_->heap();
local_heap_->allocation_failed_ = true;
for (int i = 0; i < 3; i++) {
{
ParkedScope scope(local_heap_);
heap->RequestAndWaitForCollection();
}
AllocationResult result = Allocate(object_size, alignment, origin);
if (!result.IsRetry()) {
local_heap_->allocation_failed_ = false;
return result.ToObjectChecked().address();
}
}
heap->FatalProcessOutOfMemory("ConcurrentAllocator: allocation failed");
}
void ConcurrentAllocator::FreeLinearAllocationArea() {
lab_.CloseAndMakeIterable();
}
void ConcurrentAllocator::MakeLinearAllocationAreaIterable() {
lab_.MakeIterable();
}
} // namespace internal
} // namespace v8
```
|
```objective-c
/* $OpenBSD: doi.h,v 1.15 2005/04/08 19:40:02 deraadt Exp $ */
/* $EOM: doi.h,v 1.29 2000/07/02 18:47:15 provos Exp $ */
/*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* This code was written under funding by Ericsson Radio Systems.
*/
#ifndef _DOI_H_
#define _DOI_H_
#include <sys/types.h>
#include <sys/queue.h>
struct exchange;
struct keystate;
struct message;
struct payload;
struct proto;
struct sa;
/* XXX This structure needs per-field commenting. */
struct doi {
LIST_ENTRY(doi) link;
u_int8_t id;
/* Size of DOI-specific exchange data. */
size_t exchange_size;
/* Size of DOI-specific security association data. */
size_t sa_size;
/* Size of DOI-specific protocol data. */
size_t proto_size;
int (*debug_attribute)(u_int16_t, u_int8_t *, u_int16_t,
void *);
void (*delete_spi)(struct sa *, struct proto *, int);
int16_t *(*exchange_script)(u_int8_t);
void (*finalize_exchange)(struct message *);
void (*free_exchange_data)(void *);
void (*free_proto_data)(void *);
void (*free_sa_data)(void *);
struct keystate *(*get_keystate)(struct message *);
u_int8_t *(*get_spi)(size_t *, u_int8_t, struct message *);
int (*handle_leftover_payload)(struct message *, u_int8_t,
struct payload *);
int (*informational_post_hook)(struct message *);
int (*informational_pre_hook)(struct message *);
int (*is_attribute_incompatible)(u_int16_t, u_int8_t *,
u_int16_t, void *);
void (*proto_init)(struct proto *, char *);
void (*setup_situation)(u_int8_t *);
size_t (*situation_size)(void);
u_int8_t (*spi_size)(u_int8_t);
int (*validate_attribute)(u_int16_t, u_int8_t *,
u_int16_t, void *);
int (*validate_exchange)(u_int8_t);
int (*validate_id_information)(u_int8_t, u_int8_t *,
u_int8_t *, size_t, struct exchange *);
int (*validate_key_information)(u_int8_t *, size_t);
int (*validate_notification)(u_int16_t);
int (*validate_proto)(u_int8_t);
int (*validate_situation)(u_int8_t *, size_t *, size_t);
int (*validate_transform_id)(u_int8_t, u_int8_t);
int (*initiator)(struct message * msg);
int (*responder)(struct message * msg);
char *(*decode_ids)(char *, u_int8_t *, size_t, u_int8_t *,
size_t, int);
};
extern void doi_init(void);
extern struct doi *doi_lookup(u_int8_t);
extern void doi_register(struct doi *);
#endif /* _DOI_H_ */
```
|
In the 2003 French Open tennis tournament, the boys' singles competition was won by Stan Wawrinka of Switzerland.
Seeds
Marcos Baghdatis (quarterfinals)
Nicolás Almagro (semifinals)
Dudi Sela (quarterfinals)
Jo-Wilfried Tsonga (semifinals)
Stanislas Wawrinka (champion)
Brian Baker (final)
Daniel Gimeno Traver (quarterfinals)
Mathieu Montcourt (quarterfinals)
Florin Mergea (third round)
György Balázs (third round)
Bruno Rosa (first round)
Chris Guccione (second round)
Chris Kwon (first round)
Andy Murray (third round)
Luis Flores (third round)
Leonardo Kirche (second round)
Draw
Final eight
Top half
Section 1
Section 2
Section 3
Section 4
Sources
Boyssingles
2003
|
Pagla Kahin Ka (Such a Fool) is a 1970 Indian Hindi-language romance film directed by Shakti Samanta. It stars Shammi Kapoor, Asha Parekh, Helen and Prem Chopra, all of whom had earlier starred in the huge hit Teesri Manzil (1966). The film is well known for the Mohammed Rafi and Lata Mangeshkar's song "Tum Mujhe Yun Bhula Na Paaoge". The film's music is by Shankar Jaikishan.
Plot
Sujit (Shammi Kapoor) started having mental problems when he was six years old after visiting his dad, Ajit, at a mental asylum. Thereafter, he kept on getting into trouble, and even ran away from the orphanage. Years later, a musician and singer, Shyam (Prem Chopra), finds Sujit singing on the roadside, and decides to hire him as a singer in a nightclub. This is where Sujit meets dancer, Jenny (Helen), and both fall in love with each other. When they announce their plans to get married, the news does not augur well with the nightclub's owner, Max. An argument ensues, Max draws a gun, and Shyam ends up killing Max. Sujit decides to take the blame and is arrested by the police. In order to escape the gallows, he feigns insanity, and is ordered to be admitted to a mental asylum until he recovers. In the asylum, he is placed under the compassionate care of Dr. Shalini (Asha Parekh) and about a year later is discharged. He returns to the nightclub just in time for Jenny's and Shyam's engagement party. Baffled, confused and angered at this betrayal, he really does go insane and ends up being re-admitted in the very same asylum. But this time his chances of recovery are very slim as he has retreated deep into the inner recesses of his mind - from where he may never return. Even though Helen does her usual cabaret dance number in this film, it still contains one of her most dramatic roles, as she plays a rape victim.
Cast
Shammi Kapoor as Sujit
Asha Parekh as Dr. Shalini
Prem Chopra as Shyam
Helen as Jenny
Murad as Judge
Manmohan Krishna as Head of the Mental Hospital
K. N. Singh as Nightclub Owner (as Max)
Sunder as Inmate
Sajjan as Inmate (as Ramu Dada)
Viju Khote
Brahm Bhardwaj as Advocate S.K. Mehta (as Brahma Bhardwaj)
Birbal as Inmate - Maharaja
Mohan Choti as Inmate
Polson as Inmate
Soundtrack
Reception
The Indian Express wrote, "the film is as bad as one can expect any film with Shammi Kapoor and Asha Parekh to be". The film wasn't a box office hit. Leading lady Asha Parekh said audiences didn't want to see Shammi Kapoor play a madman. Nevertheless, the film remains one of her personal favorites, calling it a "beautiful film." In her 2017 memoir "The Hit Girl", she wrote that Shammi Kapoor loved the song "Tum Mujhe Yun Bhula Na Paaoge" so much that in his later years, he used it as a ringtone for his cellphone. It's also one of her personal favorite songs, and she said she felt privileged to have Lata Mangeshkar's version picturized on her. The song was played at Lata Mangeshkar's funeral in 2022.
Director Shakti Samanta liked Parekh's performance so much that he cast her again in Kati Patang (1970), which became a hit, and which won her Filmfare Best Actress Award. Her co-star Helen also holds a special place in her heart for the film, since she called it a "very nice film." Actor Kamal Haasan wanted to star in the Tamil remake and asked Mani Ratnam to direct it, but Ratnam wasn't interested.
References
External links
1970 films
Films scored by Shankar–Jaikishan
1970s Hindi-language films
Films directed by Shakti Samanta
Films about mental health
|
```groff
.\" The Regents of the University of California. All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" Jan-Simon Pendry.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $OpenBSD: realpath.3,v 1.26 2021/10/13 15:04:53 kn Exp $
.\"
.Dd $Mdocdate: October 13 2021 $
.Dt REALPATH 3
.Os
.Sh NAME
.Nm realpath
.Nd returns the canonicalized absolute pathname
.Sh SYNOPSIS
.In limits.h
.In stdlib.h
.Ft "char *"
.Fn realpath "const char *pathname" "char *resolved"
.Sh DESCRIPTION
The
.Fn realpath
function resolves all symbolic links, extra
.Dq /
characters and references to
.Pa /./
and
.Pa /../
in
.Fa pathname ,
and copies the resulting absolute pathname into the memory referenced by
.Fa resolved .
The
.Fa resolved
argument
.Em must
refer to a buffer capable of storing at least
.Dv PATH_MAX
characters, or be
.Dv NULL .
.Pp
The
.Fn realpath
function will resolve both absolute and relative paths
and return the absolute pathname corresponding to
.Fa pathname .
All components of
.Fa pathname
must exist when
.Fn realpath
is called.
.Sh RETURN VALUES
The
.Fn realpath
function returns
.Fa resolved
on success.
If
.Fa resolved
is
.Dv NULL
and no error occurred, then
.Fn realpath
returns a NUL-terminated string in a newly allocated buffer.
If an error occurs,
.Fn realpath
returns
.Dv NULL
and the contents of
.Fa resolved
are undefined.
.Sh ERRORS
The function
.Fn realpath
will fail if:
.Bl -tag -width Er
.It Bq Er EACCES
Read or search permission was denied for a component of
.Ar pathname .
.It Bq Er EINVAL
The
.Ar pathname
argument is a null pointer.
.It Bq Er EIO
An error occurred while reading from the file system.
.It Bq Er ELOOP
Too many symbolic links were encountered in translating
.Ar pathname .
.It Bq Er ENAMETOOLONG
A component of
.Ar pathname
exceeded
.Dv NAME_MAX
characters, or the entire
.Ar pathname
(including the terminating NUL) exceeded
.Dv PATH_MAX .
.It Bq Er ENAMETOOLONG
Pathname resolution of a symbolic link produced an intermediate
result whose length exceeds
.Dv PATH_MAX .
.It Bq Er ENOENT
A component of
.Ar pathname
does not name an existing file or
.Ar pathname
points to an empty string.
.It Bq Er ENOTDIR
A component of the path prefix is not a directory.
.It Bq Er ENOMEM
Sufficient storage space is unavailable for allocation.
.El
.Sh SEE ALSO
.Xr readlink 1 ,
.Xr realpath 1 ,
.Xr getcwd 3
.Sh STANDARDS
The
.Fn realpath
function conforms to
.St -p1003.1-2008 .
.Sh HISTORY
The
.Fn realpath
function call first appeared in
.Bx 4.4 .
.Pp
In
.Ox 6.6 ,
it was reimplemented on top of the
.Fn __realpath
system call.
Its calling convention differs from the standard
function by requiring
.Ar resolved
to not be
.Dv NULL
and by returning an integer,
zero on success, and -1 with corresponding errno on failure.
This is visible in the output of
.Xr kdump 1 .
```
|
```c++
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Defines base::PathProviderAndroid which replaces base::PathProviderPosix for
// Android in base/path_service.cc.
#include <unistd.h>
#include "base/android/jni_android.h"
#include "base/android/path_utils.h"
#include "base/base_paths.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/process/process_metrics.h"
namespace base {
bool PathProviderAndroid(int key, FilePath* result)
{
switch (key) {
case base::FILE_EXE: {
char bin_dir[PATH_MAX + 1];
int bin_dir_size = readlink(kProcSelfExe, bin_dir, PATH_MAX);
if (bin_dir_size < 0 || bin_dir_size > PATH_MAX) {
NOTREACHED() << "Unable to resolve " << kProcSelfExe << ".";
return false;
}
bin_dir[bin_dir_size] = 0;
*result = FilePath(bin_dir);
return true;
}
case base::FILE_MODULE:
// dladdr didn't work in Android as only the file name was returned.
NOTIMPLEMENTED();
return false;
case base::DIR_MODULE:
return base::android::GetNativeLibraryDirectory(result);
case base::DIR_SOURCE_ROOT:
// This const is only used for tests.
return base::android::GetExternalStorageDirectory(result);
case base::DIR_USER_DESKTOP:
// Android doesn't support GetUserDesktop.
NOTIMPLEMENTED();
return false;
case base::DIR_CACHE:
return base::android::GetCacheDirectory(result);
case base::DIR_ANDROID_APP_DATA:
return base::android::GetDataDirectory(result);
case base::DIR_ANDROID_EXTERNAL_STORAGE:
return base::android::GetExternalStorageDirectory(result);
default:
// Note: the path system expects this function to override the default
// behavior. So no need to log an error if we don't support a given
// path. The system will just use the default.
return false;
}
}
} // namespace base
```
|
```c
#include <js_native_api.h>
#include "../common.h"
static napi_value Test(napi_env env, napi_callback_info info) {
size_t argc = 1;
napi_value args[1];
NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL));
NAPI_ASSERT(env, argc >= 1, "Wrong number of arguments");
napi_valuetype valuetype0;
NAPI_CALL(env, napi_typeof(env, args[0], &valuetype0));
NAPI_ASSERT(env, valuetype0 == napi_number,
"Wrong type of arguments. Expects a number as first argument.");
double input;
NAPI_CALL(env, napi_get_value_double(env, args[0], &input));
napi_value output;
NAPI_CALL(env, napi_create_double(env, input, &output));
return output;
}
static napi_value TestUint32Truncation(napi_env env, napi_callback_info info) {
size_t argc = 1;
napi_value args[1];
NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL));
NAPI_ASSERT(env, argc >= 1, "Wrong number of arguments");
napi_valuetype valuetype0;
NAPI_CALL(env, napi_typeof(env, args[0], &valuetype0));
NAPI_ASSERT(env, valuetype0 == napi_number,
"Wrong type of arguments. Expects a number as first argument.");
uint32_t input;
NAPI_CALL(env, napi_get_value_uint32(env, args[0], &input));
napi_value output;
NAPI_CALL(env, napi_create_uint32(env, input, &output));
return output;
}
static napi_value TestInt32Truncation(napi_env env, napi_callback_info info) {
size_t argc = 1;
napi_value args[1];
NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL));
NAPI_ASSERT(env, argc >= 1, "Wrong number of arguments");
napi_valuetype valuetype0;
NAPI_CALL(env, napi_typeof(env, args[0], &valuetype0));
NAPI_ASSERT(env, valuetype0 == napi_number,
"Wrong type of arguments. Expects a number as first argument.");
int32_t input;
NAPI_CALL(env, napi_get_value_int32(env, args[0], &input));
napi_value output;
NAPI_CALL(env, napi_create_int32(env, input, &output));
return output;
}
static napi_value TestInt64Truncation(napi_env env, napi_callback_info info) {
size_t argc = 1;
napi_value args[1];
NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, NULL, NULL));
NAPI_ASSERT(env, argc >= 1, "Wrong number of arguments");
napi_valuetype valuetype0;
NAPI_CALL(env, napi_typeof(env, args[0], &valuetype0));
NAPI_ASSERT(env, valuetype0 == napi_number,
"Wrong type of arguments. Expects a number as first argument.");
int64_t input;
NAPI_CALL(env, napi_get_value_int64(env, args[0], &input));
napi_value output;
NAPI_CALL(env, napi_create_int64(env, input, &output));
return output;
}
EXTERN_C_START
napi_value Init(napi_env env, napi_value exports) {
napi_property_descriptor descriptors[] = {
DECLARE_NAPI_PROPERTY("Test", Test),
DECLARE_NAPI_PROPERTY("TestInt32Truncation", TestInt32Truncation),
DECLARE_NAPI_PROPERTY("TestUint32Truncation", TestUint32Truncation),
DECLARE_NAPI_PROPERTY("TestInt64Truncation", TestInt64Truncation),
};
NAPI_CALL(env, napi_define_properties(
env, exports, sizeof(descriptors) / sizeof(*descriptors), descriptors));
return exports;
}
EXTERN_C_END
```
|
Agave phillipsiana is a rare species of flowering plant in the asparagus family known by the common names Grand Canyon century plant and Phillips agave. It is endemic to Arizona in the United States, where it lives only in Grand Canyon National Park. It is a perennial herb or shrub.
This plant forms one or more rosettes of large lance-shaped green to gray-green leaves with teeth along the edges and spines at the tips. The leaf blades grow up to 78 centimeters long by 11 wide. The flowering stalk grows up to 5.5 meters tall. The branching inflorescence has clusters of many flowers each 7 or 8 centimeters wide or more which are greenish and cream-colored with hints of maroon. Long stamens protrude from the flower corollas.
There are four occurrences of this plant, all within Grand Canyon National Park, where they grow on terraces next to rivers. Some occurrences are in locations inhabited by indigenous peoples long ago, who may have farmed the plant and selected it for its ease of propagation and harvest.
The plant's numbers are low but it grows in rugged terrain in a national park, which may protect it somewhat from human threats. It grows in sandy, gravelly, rocky soils in desert scrub, slopes, and hillsides.
References
External links
USDA Plants Profile
The Nature Conservancy
phillipsiana
Flora of Arizona
Endemic flora of the United States
Natural history of the Grand Canyon
Natural history of Coconino County, Arizona
Plants described in 2001
|
The 1928 Pittsburgh Pirates season was the 47th season in franchise history. The team scored the most runs in the National League. However, they also allowed the third most and slipped down to fourth place in the standings.
Offseason
December 3, 1927: Mike Cvengros and Ike Danning were traded by the Pirates to the Wichita Falls Spudders for Fred Fussell.
Regular season
During the season, Burleigh Grimes became the last pitcher to win at least 25 games in one season for the Pirates in the 20th century.
Season standings
Record vs. opponents
Game log
|- bgcolor="ffbbbb"
| 1 || April 11 || @ Cardinals || 7–14 || Haines || Kremer (0–1) || — || 25,000 || 0–1
|- bgcolor="ffbbbb"
| 2 || April 12 || @ Cardinals || 0–5 || Alexander || Grimes (0–1) || — || — || 0–2
|- bgcolor="ffbbbb"
| 3 || April 14 || @ Reds || 0–5 || Lucas || Miljus (0–1) || — || 2,500 || 0–3
|- bgcolor="ccffcc"
| 4 || April 15 || @ Reds || 3–2 || Dawson (1–0) || Luque || Hill (1) || — || 1–3
|- bgcolor="ccffcc"
| 5 || April 16 || @ Reds || 8–1 || Grimes (1–1) || Rixey || — || — || 2–3
|- bgcolor="ffbbbb"
| 6 || April 19 || Cardinals || 10–13 || Littlejohn || Miljus (0–2) || Sherdel || 30,000 || 2–4
|- bgcolor="ffbbbb"
| 7 || April 20 || Cardinals || 2–6 || Haines || Grimes (1–2) || — || — || 2–5
|- bgcolor="ffbbbb"
| 8 || April 22 || @ Cubs || 2–3 || Jones || Miljus (0–3) || — || 50,000 || 2–6
|- bgcolor="ccffcc"
| 9 || April 23 || @ Cubs || 6–0 || Kremer (1–1) || Malone || — || — || 3–6
|- bgcolor="ffbbbb"
| 10 || April 24 || @ Cubs || 2–7 || Blake || Dawson (1–1) || — || — || 3–7
|- bgcolor="ccffcc"
| 11 || April 25 || @ Cubs || 10–0 || Grimes (2–2) || Root || — || — || 4–7
|- bgcolor="ccffcc"
| 12 || April 26 || Reds || 7–2 || Hill (1–0) || Edwards || — || — || 5–7
|- bgcolor="ffbbbb"
| 13 || April 29 || @ Reds || 2–3 || Rixey || Kremer (1–2) || — || — || 5–8
|- bgcolor="ccffcc"
| 14 || April 30 || Cubs || 8–7 || Miljus (1–3) || Malone || — || — || 6–8
|-
|- bgcolor="ccffcc"
| 15 || May 1 || Cubs || 4–1 || Hill (2–0) || Bush || — || — || 7–8
|- bgcolor="ccffcc"
| 16 || May 2 || Cubs || 9–8 (10) || Dawson (2–1) || Nehf || — || — || 8–8
|- bgcolor="ffbbbb"
| 17 || May 3 || Braves || 4–5 (11) || Brandt || Kremer (1–3) || — || — || 8–9
|- bgcolor="ccffcc"
| 18 || May 4 || Braves || 13–3 || Grimes (3–2) || Greenfield || — || — || 9–9
|- bgcolor="ccffcc"
| 19 || May 5 || Braves || 6–2 || Dawson (3–1) || Smith || Miljus (1) || — || 10–9
|- bgcolor="ccffcc"
| 20 || May 7 || Braves || 9–4 || Miljus (2–3) || Robertson || — || — || 11–9
|- bgcolor="ccffcc"
| 21 || May 8 || Giants || 6–5 || Grimes (4–2) || Henry || — || — || 12–9
|- bgcolor="ffbbbb"
| 22 || May 9 || Giants || 0–6 || Barnes || Dawson (3–2) || — || — || 12–10
|- bgcolor="ffbbbb"
| 23 || May 10 || Giants || 4–5 || Fitzsimmons || Kremer (1–4) || — || — || 12–11
|- bgcolor="ccffcc"
| 24 || May 12 || Robins || 5–4 || Hill (3–0) || McWeeny || — || 10,000 || 13–11
|- bgcolor="ffbbbb"
| 25 || May 13 || @ Robins || 5–8 || Clark || Grimes (4–3) || — || 22,000 || 13–12
|- bgcolor="ffbbbb"
| 26 || May 14 || Robins || 6–7 || Doak || Brame (0–1) || Vance || — || 13–13
|- bgcolor="ffbbbb"
| 27 || May 15 || Robins || 3–10 || McWeeny || Miljus (2–4) || — || — || 13–14
|- bgcolor="ccffcc"
| 28 || May 18 || Phillies || 6–4 || Kremer (2–4) || Miller || Grimes (1) || — || 14–14
|- bgcolor="ccffcc"
| 29 || May 19 || Phillies || 3–1 || Hill (4–0) || Benge || — || — || 15–14
|- bgcolor="ffbbbb"
| 30 || May 20 || @ Reds || 2–3 || Lucas || Grimes (4–4) || — || — || 15–15
|- bgcolor="ffbbbb"
| 31 || May 21 || @ Reds || 3–4 || Rixey || Dawson (3–3) || — || — || 15–16
|- bgcolor="ccffcc"
| 32 || May 21 || @ Reds || 6–3 || Fussell (1–0) || May || — || — || 16–16
|- bgcolor="ffbbbb"
| 33 || May 22 || @ Reds || 4–5 || Mays || Kremer (2–5) || — || — || 16–17
|- bgcolor="ffbbbb"
| 34 || May 23 || @ Reds || 3–4 (10) || Luque || Hill (4–1) || — || — || 16–18
|- bgcolor="ccffcc"
| 35 || May 24 || Cubs || 6–2 || Grimes (5–4) || Nehf || — || — || 17–18
|- bgcolor="ffbbbb"
| 36 || May 25 || Cubs || 3–10 || Root || Fussell (1–1) || — || — || 17–19
|- bgcolor="ffbbbb"
| 37 || May 26 || Cubs || 1–6 || Malone || Kremer (2–6) || — || — || 17–20
|- bgcolor="ffbbbb"
| 38 || May 27 || @ Cubs || 0–3 || Blake || Hill (4–2) || — || 35,000 || 17–21
|- bgcolor="ffbbbb"
| 39 || May 29 || Cardinals || 1–7 || Rhem || Grimes (5–5) || — || — || 17–22
|- bgcolor="ffbbbb"
| 40 || May 30 || Cardinals || 1–10 || Sherdel || Miljus (2–5) || — || — || 17–23
|- bgcolor="ffbbbb"
| 41 || May 30 || Cardinals || 3–4 || Johnson || Kremer (2–7) || Haid || — || 17–24
|- bgcolor="ccffcc"
| 42 || May 31 || Cardinals || 3–2 || Hill (5–2) || Haines || — || — || 18–24
|-
|- bgcolor="ccffcc"
| 43 || June 1 || Cubs || 10–4 || Grimes (6–5) || Blake || — || — || 19–24
|- bgcolor="ffbbbb"
| 44 || June 2 || Cubs || 6–10 || Weinert || Dawson (3–4) || Root || — || 19–25
|- bgcolor="ccffcc"
| 45 || June 3 || @ Robins || 9–7 (14) || Grimes (7–5) || Petty || — || 25,000 || 20–25
|- bgcolor="ccffcc"
| 46 || June 7 || @ Braves || 8–6 (12) || Burwell (1–0) || Smith || — || — || 21–25
|- bgcolor="ffbbbb"
| 47 || June 8 || @ Braves || 5–9 || Brandt || Kremer (2–8) || — || — || 21–26
|- bgcolor="ccffcc"
| 48 || June 9 || @ Braves || 6–2 || Grimes (8–5) || Genewich || — || — || 22–26
|- bgcolor="ccffcc"
| 49 || June 9 || @ Braves || 6–3 || Miljus (3–5) || Robertson || — || — || 23–26
|- bgcolor="ffbbbb"
| 50 || June 11 || @ Phillies || 4–6 || Ring || Hill (5–3) || Sweetland || — || 23–27
|- bgcolor="ccffcc"
| 51 || June 12 || @ Phillies || 15–4 || Kremer (3–8) || Miller || — || — || 24–27
|- bgcolor="ffbbbb"
| 52 || June 13 || @ Phillies || 3–4 || Sweetland || Grimes (8–6) || — || — || 24–28
|- bgcolor="ccffcc"
| 53 || June 14 || @ Giants || 4–3 (11) || Miljus (4–5) || Fitzsimmons || — || — || 25–28
|- bgcolor="ffbbbb"
| 54 || June 15 || @ Giants || 1–9 || Aldridge || Hill (5–4) || — || 9,000 || 25–29
|- bgcolor="ffbbbb"
| 55 || June 16 || @ Giants || 0–4 || Benton || Kremer (3–9) || — || — || 25–30
|- bgcolor="ccffcc"
| 56 || June 17 || @ Giants || 6–0 || Grimes (9–6) || Henry || — || — || 26–30
|- bgcolor="ccffcc"
| 57 || June 20 || Reds || 2–1 || Kremer (4–9) || Rixey || — || — || 27–30
|- bgcolor="ffbbbb"
| 58 || June 21 || Reds || 4–5 || Appleton || Fussell (1–2) || — || — || 27–31
|- bgcolor="ccffcc"
| 59 || June 22 || Reds || 11–1 || Grimes (10–6) || Kolp || — || — || 28–31
|- bgcolor="ccffcc"
| 60 || June 23 || Reds || 6–5 (10) || Miljus (5–5) || Kolp || — || — || 29–31
|- bgcolor="ffbbbb"
| 61 || June 24 || @ Cubs || 1–8 || Nehf || Kremer (4–10) || — || 15,000 || 29–32
|- bgcolor="ccffcc"
| 62 || June 26 || @ Cubs || 1–0 || Grimes (11–6) || Blake || — || — || 30–32
|- bgcolor="ffbbbb"
| 63 || June 26 || @ Cubs || 3–7 || Bush || Miljus (5–6) || Malone || — || 30–33
|- bgcolor="ffbbbb"
| 64 || June 28 || @ Cardinals || 3–4 || Sherdel || Hill (5–5) || — || — || 30–34
|- bgcolor="ffbbbb"
| 65 || June 29 || @ Cardinals || 4–9 || Mitchell || Kremer (4–11) || — || — || 30–35
|- bgcolor="ccffcc"
| 66 || June 30 || @ Cardinals || 4–3 || Grimes (12–6) || Alexander || — || — || 31–35
|-
|- bgcolor="ccffcc"
| 67 || July 1 || @ Cardinals || 2–0 || Fussell (2–2) || Haines || — || — || 32–35
|- bgcolor="ffbbbb"
| 68 || July 1 || @ Cardinals || 6–8 || Johnson || Miljus (5–7) || Haid || — || 32–36
|- bgcolor="ffbbbb"
| 69 || July 3 || Reds || 7–9 || Edwards || Grimes (12–7) || — || — || 32–37
|- bgcolor="ffbbbb"
| 70 || July 4 || Reds || 0–6 || Rixey || Dawson (3–5) || — || — || 32–38
|- bgcolor="ffbbbb"
| 71 || July 4 || Reds || 3–11 || Kolp || Grimes (12–8) || — || — || 32–39
|- bgcolor="ffbbbb"
| 72 || July 6 || Giants || 7–11 || Faulkner || Fussell (2–3) || — || — || 32–40
|- bgcolor="ccffcc"
| 73 || July 7 || Giants || 8–6 || Fussell (3–3) || Benton || — || — || 33–40
|- bgcolor="ccffcc"
| 74 || July 7 || Giants || 5–2 || Brame (1–1) || Fitzsimmons || — || — || 34–40
|- bgcolor="ccffcc"
| 75 || July 9 || Giants || 5–3 || Grimes (13–8) || Faulkner || — || — || 35–40
|- bgcolor="ccffcc"
| 76 || July 10 || Phillies || 6–5 || Kremer (5–11) || Ring || — || — || 36–40
|- bgcolor="ccffcc"
| 77 || July 11 || Phillies || 3–1 (6) || Brame (2–1) || Benge || Hill (2) || — || 37–40
|- bgcolor="ccffcc"
| 78 || July 14 || Braves || 10–0 || Grimes (14–8) || Brandt || — || — || 38–40
|- bgcolor="ccffcc"
| 79 || July 16 || Braves || 8–3 || Kremer (6–11) || Delaney || — || — || 39–40
|- bgcolor="ccffcc"
| 80 || July 17 || Braves || 7–6 || Hill (6–5) || Smith || Fussell (1) || — || 40–40
|- bgcolor="ccffcc"
| 81 || July 18 || Braves || 16–3 || Grimes (15–8) || Barnes || — || — || 41–40
|- bgcolor="ffbbbb"
| 82 || July 19 || Robins || 0–3 || McWeeny || Fussell (3–4) || — || — || 41–41
|- bgcolor="ffbbbb"
| 83 || July 20 || Robins || 7–8 || Elliott || Kremer (6–12) || Clark || 4,000 || 41–42
|- bgcolor="ccffcc"
| 84 || July 21 || Robins || 7–3 || Hill (7–5) || Ehrhardt || — || — || 42–42
|- bgcolor="ccffcc"
| 85 || July 21 || Robins || 10–2 || Meadows (1–0) || Petty || — || 15,000 || 43–42
|- bgcolor="ffbbbb"
| 86 || July 22 || @ Robins || 0–5 || Vance || Grimes (15–9) || — || — || 43–43
|- bgcolor="ccffcc"
| 87 || July 22 || @ Robins || 6–5 || Kremer (7–12) || Clark || — || 29,000 || 44–43
|- bgcolor="ccffcc"
| 88 || July 23 || @ Robins || 2–1 || Fussell (4–4) || McWeeny || — || — || 45–43
|- bgcolor="ffbbbb"
| 89 || July 24 || @ Giants || 3–6 || Benton || Dawson (3–6) || — || — || 45–44
|- bgcolor="ffbbbb"
| 90 || July 25 || @ Giants || 5–6 || Walker || Hill (7–6) || Genewich || — || 45–45
|- bgcolor="ccffcc"
| 91 || July 26 || @ Giants || 7–5 || Grimes (16–9) || Hubbell || — || — || 46–45
|- bgcolor="ffbbbb"
| 92 || July 27 || @ Giants || 2–4 || Fitzsimmons || Fussell (4–5) || — || — || 46–46
|- bgcolor="ccffcc"
| 93 || July 30 || @ Braves || 2–1 || Kremer (8–12) || Brandt || — || — || 47–46
|- bgcolor="ccffcc"
| 94 || July 30 || @ Braves || 6–5 (10) || Grimes (17–9) || Barnes || — || — || 48–46
|- bgcolor="ffbbbb"
| 95 || July 31 || @ Braves || 5–11 || Smith || Meadows (1–1) || — || — || 48–47
|-
|- bgcolor="ccffcc"
| 96 || August 2 || @ Phillies || 18–4 || Grimes (18–9) || Miller || Dawson (1) || — || 49–47
|- bgcolor="ccffcc"
| 97 || August 3 || @ Phillies || 14–6 || Fussell (5–5) || Sweetland || Tauscher (1) || — || 50–47
|- bgcolor="ccffcc"
| 98 || August 4 || @ Phillies || 14–8 || Grimes (19–9) || Benge || — || — || 51–47
|- bgcolor="ccffcc"
| 99 || August 4 || @ Phillies || 11–4 || Hill (8–6) || Ring || Dawson (2) || — || 52–47
|- bgcolor="ccffcc"
| 100 || August 7 || @ Robins || 4–3 || Grimes (20–9) || McWeeny || — || — || 53–47
|- bgcolor="ccffcc"
| 101 || August 7 || @ Robins || 3–2 (12) || Hill (9–6) || Elliott || — || 6,500 || 54–47
|- bgcolor="ccffcc"
| 102 || August 8 || @ Robins || 4–3 || Kremer (9–12) || McWeeny || — || 2,500 || 55–47
|- bgcolor="ccffcc"
| 103 || August 9 || Cardinals || 5–4 || Hill (10–6) || Haines || Grimes (2) || — || 56–47
|- bgcolor="ffbbbb"
| 104 || August 10 || Cardinals || 1–2 (12) || Mitchell || Fussell (5–6) || Sherdel || — || 56–48
|- bgcolor="ffbbbb"
| 105 || August 11 || Reds || 0–1 || Lucas || Grimes (20–10) || — || — || 56–49
|- bgcolor="ccffcc"
| 106 || August 13 || Robins || 6–1 || Kremer (10–12) || Doak || — || — || 57–49
|- bgcolor="ccffcc"
| 107 || August 14 || Robins || 4–2 || Hill (11–6) || McWeeny || — || — || 58–49
|- bgcolor="ffbbbb"
| 108 || August 15 || Robins || 5–6 || Vance || Fussell (5–7) || Petty || — || 58–50
|- bgcolor="ccffcc"
| 109 || August 16 || Robins || 11–6 || Grimes (21–10) || Doak || — || — || 59–50
|- bgcolor="ccffcc"
| 110 || August 17 || Phillies || 10–3 || Kremer (11–12) || Willoughby || — || — || 60–50
|- bgcolor="ccffcc"
| 111 || August 17 || Phillies || 9–1 || Brame (3–1) || Sweetland || — || — || 61–50
|- bgcolor="ccffcc"
| 112 || August 18 || Phillies || 9–0 || Hill (12–6) || Benge || — || — || 62–50
|- bgcolor="ffbbbb"
| 113 || August 18 || Phillies || 8–11 || Ring || Fussell (5–8) || Ferguson || — || 62–51
|- bgcolor="ffbbbb"
| 114 || August 20 || Braves || 11–14 || Smith || Grimes (21–11) || Delaney || — || 62–52
|- bgcolor="ccffcc"
| 115 || August 21 || Braves || 6–2 || Kremer (12–12) || Brandt || — || — || 63–52
|- bgcolor="ccffcc"
| 116 || August 22 || Braves || 10–3 || Brame (4–1) || Greenfield || — || — || 64–52
|- bgcolor="ffbbbb"
| 117 || August 23 || Giants || 3–6 || Benton || Hill (12–7) || Scott || 35,000 || 64–53
|- bgcolor="ccffcc"
| 118 || August 23 || Giants || 13–3 || Fussell (6–8) || Hubbell || — || 30,000 || 65–53
|- bgcolor="ccffcc"
| 119 || August 24 || Giants || 16–5 || Grimes (22–11) || Genewich || — || — || 66–53
|- bgcolor="ccffcc"
| 120 || August 25 || Giants || 7–1 || Kremer (13–12) || Fitzsimmons || — || — || 67–53
|- bgcolor="ffbbbb"
| 121 || August 26 || @ Reds || 3–4 || Lucas || Brame (4–2) || — || — || 67–54
|- bgcolor="ccffcc"
| 122 || August 27 || @ Reds || 9–4 || Fussell (7–8) || Luque || — || — || 68–54
|- bgcolor="ccffcc"
| 123 || August 28 || Phillies || 9–2 || Hill (13–7) || Sweetland || — || — || 69–54
|- bgcolor="ccffcc"
| 124 || August 28 || Phillies || 16–7 || Dawson (4–6) || Benge || — || — || 70–54
|- bgcolor="ffbbbb"
| 125 || August 29 || Phillies || 0–4 (7) || Willoughby || Brame (4–3) || — || — || 70–55
|- bgcolor="ccffcc"
| 126 || August 31 || Cardinals || 6–5 || Kremer (14–12) || Alexander || Grimes (3) || — || 71–55
|- bgcolor="ffbbbb"
| 127 || August 31 || Cardinals || 2–6 || Haines || Fussell (7–9) || — || — || 71–56
|-
|- bgcolor="ffbbbb"
| 128 || September 1 || Cardinals || 1–4 || Sherdel || Hill (13–8) || — || — || 71–57
|- bgcolor="ffbbbb"
| 129 || September 2 || @ Cubs || 2–3 || Malone || Grimes (22–12) || — || 32,000 || 71–58
|- bgcolor="ccffcc"
| 130 || September 3 || Cubs || 16–1 || Brame (5–3) || Root || — || — || 72–58
|- bgcolor="ccffcc"
| 131 || September 3 || Cubs || 6–3 || Kremer (15–12) || Carlson || — || — || 73–58
|- bgcolor="ffbbbb"
| 132 || September 4 || Cubs || 8–9 || Blake || Hill (13–9) || — || — || 73–59
|- bgcolor="ffbbbb"
| 133 || September 6 || @ Cardinals || 3–4 (10) || Mitchell || Grimes (22–13) || — || 10,000 || 73–60
|- bgcolor="ffbbbb"
| 134 || September 7 || @ Cardinals || 3–6 || Haines || Kremer (15–13) || — || — || 73–61
|- bgcolor="ccffcc"
| 135 || September 8 || @ Cardinals || 4–2 || Hill (14–9) || Sherdel || — || — || 74–61
|- bgcolor="ccffcc"
| 136 || September 9 || @ Cardinals || 8–7 || Dawson (5–6) || Reinhart || — || — || 75–61
|- bgcolor="ccffcc"
| 137 || September 10 || @ Cubs || 7–5 || Grimes (23–13) || Nehf || — || — || 76–61
|- bgcolor="ffbbbb"
| 138 || September 11 || @ Cubs || 3–9 || Malone || Hill (14–10) || — || — || 76–62
|- bgcolor="ccffcc"
| 139 || September 14 || Reds || 4–1 || Grimes (24–13) || Rixey || — || — || 77–62
|- bgcolor="ccffcc"
| 140 || September 15 || Reds || 6–1 || Hill (15–10) || Ash || — || — || 78–62
|- bgcolor="ccffcc"
| 141 || September 16 || @ Giants || 1–0 || Fussell (8–9) || Benton || — || 50,000 || 79–62
|- bgcolor="ffbbbb"
| 142 || September 17 || @ Giants || 2–9 || Hubbell || Brame (5–4) || — || 3,000 || 79–63
|- bgcolor="ffbbbb"
| 143 || September 18 || @ Giants || 2–3 (10) || Fitzsimmons || Dawson (5–7) || — || — || 79–64
|- bgcolor="ccffcc"
| 144 || September 20 || @ Phillies || 6–4 || Hill (16–10) || Willoughby || — || — || 80–64
|- bgcolor="ccffcc"
| 145 || September 21 || @ Phillies || 6–5 || Dawson (6–7) || Sweetland || — || — || 81–64
|- bgcolor="ccffcc"
| 146 || September 22 || @ Phillies || 9–7 || Grimes (25–13) || McGraw || — || — || 82–64
|- bgcolor="ccffcc"
| 147 || September 22 || @ Phillies || 5–3 || Brame (6–4) || Caldwell || — || — || 83–64
|- bgcolor="ccffcc"
| 148 || September 24 || @ Braves || 3–1 (10) || Dawson (7–7) || Delaney || — || — || 84–64
|- bgcolor="ffbbbb"
| 149 || September 24 || @ Braves || 2–4 || Smith || Blankenship (0–1) || — || — || 84–65
|- bgcolor="ccffcc"
| 150 || September 25 || @ Braves || 13–8 || Brame (7–4) || Greenfield || Dawson (3) || — || 85–65
|- bgcolor="ffbbbb"
| 151 || September 27 || @ Robins || 6–7 (10) || Petty || Grimes (25–14) || — || — || 85–66
|- bgcolor="ffbbbb"
| 152 || September 27 || @ Robins || 1–8 || Koupal || Blankenship (0–2) || — || — || 85–67
|-
|-
| Legend: = Win = LossBold = Pirates team member
Opening Day lineup
Roster
Player stats
Batting
Starters by position
Note: Pos = Position; G = Games played; AB = At bats; H = Hits; Avg. = Batting average; HR = Home runs; RBI = Runs batted in
Other batters
Note: G = Games played; AB = At bats; H = Hits; Avg. = Batting average; HR = Home runs; RBI = Runs batted in
Pitching
Starting pitchers
Note: G = Games pitched; IP = Innings pitched; W = Wins; L = Losses; ERA = Earned run average; SO = Strikeouts
Other pitchers
Note: G = Games pitched; IP = Innings pitched; W = Wins; L = Losses; ERA = Earned run average; SO = Strikeouts
Relief pitchers
Note: G = Games pitched; W = Wins; L = Losses; SV = Saves; ERA = Earned run average; SO = Strikeouts
League leaders
George Grantham
#3 in NL in on-base percentage (.408)
Burleigh Grimes
MLB leader in wins (25)
#4 in NL in strikeouts (97)
Pie Traynor
#2 in NL in RBI (124)
Lloyd Waner
#3 in NL in runs scored (121)
Paul Waner
NL leader in runs scored (142)
#2 in NL in batting average (.370)
#2 in NL in on-base percentage (.446)
References
External links
1928 Pittsburgh Pirates team page at Baseball Reference
1928 Pittsburgh Pirates Page at Baseball Almanac
Pittsburgh Pirates seasons
Pittsburgh Pirates season
Pittsburg Pir
1920s in Pittsburgh
|
Tomasz Szadek (1550 – 1612) was a Polish composer, singer, and cleric of the late Renaissance. He was a representative of the late style of the Franco-Flemish school in Poland.
Gustave Reese gives a birthdate of 1550, but no location. Little is known about his activities prior to his appointment to the royal chapel in Kraków, other than that he had received a baccalaureate degree sometime before his arrival in 1569. He became a curate at the cathedral in the early 1570s, where he also heard confessions. He joined the Capella Rorantistarum, a group of male singers for the Sigismund Chapel of the Wawel Cathedral, and remained with them until 1578. Towards the end of his life, the association of cathedral vicars put him on trial, accusing him of poor performance in administrative duties and having an immoral lifestyle.
Szadek's surviving music was all written for the male voices of his choir. It is in a style equivalent to the work of the late Franco-Flemish school. Of his writing Reese observes that he "shows talent for melodic line, but his polyphonic technique is unresourceful." Much of his writing is homophonic. One of his two masses is based on a chanson by Thomas Crecquillon – , and is of the parody type. The other is also a parody mass, and based on a Christmas carol.
Works
Two masses:
Officium Dies est laetitiae (1578)
Officium In melodiam motetae Pisneme (1580)
Three antiphons:
Introit Vultum tuum
gradual Haec dies
communion Pascha nostra
References
Mała encyklopedia muzyki, Stefan Śledziński (red. naczelny), PWN, Warszawa 1981, (in Polish)
Słownik muzyków dawnej Polski, A. Chybiński, Kraków 1948/49 (in Polish)
Notes
1550 births
1612 deaths
Polish composers
Renaissance composers
Polish male classical composers
|
The 403rd Infantry Brigade, 4th Infantry Division, Philippine Army, known officially as the Peacemaker Brigade, is one of the brigades of the Philippine Army which is organic to its 4th Infantry (Diamond) Division. It is an infantry unit, and specializes in anti-guerrilla warfare.
History
The 403rd Infantry (PEACEMAKER) Brigade traces its roots to the 3rd Infantry Brigade of the 4th Infantry Division, otherwise known as the 3/4th Brigade, being the forerunner of the unit, when it was organized on 15 July 1973 pursuant to General Order Nr 41 Headquarters Philippine Army dated 3 July 1973. Since then, it facilitates the command and control of the newly organized Infantry Battalions as called for by the ever growing Muslim secessionist movement in the 4ID AOR. The Brigade was operationally organized and deployed on 15 September 1973 with its first headquarters at Pagadian City under its first Brigade Commander, Colonel Oscar Aleonar, who was also then the Assistant Division Commander of the 4th Infantry Division. Its operating battalions then were 28IB, 9IB and 16IB, all operating in the areas of Zamboanga del Norte particularly in the municipalities of Siraway and Siocon. Eventually, it was redeployed in the other areas of north eastern Mindanao.
Mission
The 403rd Infantry (Peacemaker) Brigade conducts Internal Security Operations (ISO) in the assigned area of responsibility (AOR) of the 4th Infantry Division in Camiguin, Bukidnon and Misamis Oriental Provinces to dismantle and destroy the remaining guerilla fronts of the Local Communist Movement (LCM), hold and contain the Moro Islamic Liberation Front (MILF) in Wao and Bumbaran of Lanao del Sur and destroy other threat groups in order to attain peace and stability conducive to sustainable development in assisting the Philippine government in its socio-economic development projects; and assists the Philippine National Police curb criminalities in the area.
Units
The following are the Infantry Battalion units that are presently placed under operational control of the brigade:
8th Infantry (Dependable) Battalion
88th Infantry (Maringal) Battalion
1st Special Forces (Anytime Anywhere) Battalion
58th Infantry (Dimalulupig) Battalion
65th Infantry (Stalwart) Battalion
Operations
Anti-guerrilla operations against the New People's Army and the Moro National Liberation Front (MNLF). After a peace agreement was concluded between Philippine and MNLF officials, the brigade fought against the Moro Islamic Liberation Front (MILF).
Trivia
Two of its former commanders, Colonels Mariano P Adalem and Gregorio M Camiling Jr, rose to become the Commanding General of the Philippine Army and retired in that position with the ranks of Major General and Lieutenant General, respectively.
References
Official Site of the PA 4ID.
Infantry brigades of the Philippines
Military units and formations established in the 1980s
|
Courage is the twenty-seventh studio album and twelfth English-language album by Canadian singer Celine Dion, released by Columbia Records on 15 November 2019. Dion worked on Courage with various writers and producers, including Sia, David Guetta, Greg Kurstin, Sam Smith, StarGate, Jimmy Napes, Lauv, LP, Jörgen Elofsson, Stephan Moccio, Eg White, Liz Rodrigues of The New Royales, and others.
In June 2019, Dion ended her Las Vegas residency, Celine and released "Flying on My Own" as a gift to her fans. In September 2019, she embarked on the Courage World Tour and premiered three more new songs: "Imperfections", "Lying Down" and "Courage". The album, which includes 16 songs and four additional tracks on the deluxe edition, received generally favorable reviews from music critics. It debuted atop the US Billboard 200, becoming Dion's first number-one album there in 17 years. It also debuted at number one in Canada, Belgium and Switzerland. Courage charted inside the top ten in many other countries, including number two in the United Kingdom, France and Australia, number four in Germany, Austria and Croatia, and number five in Ireland, New Zealand and Portugal.
Background and development
In November 2013, Dion released her previous English-language studio album, Loved Me Back to Life. The next month, her husband René Angélil was diagnosed with throat cancer and underwent surgery. In June 2014, Angélil stepped down as Dion's manager to focus on his health and in August 2014 Dion postponed her show business activities, because of the worsening of her husband's health. Angélil died on 14 January 2016. On 22 May 2016, in her first public performance outside The Colosseum at Caesars Palace, Dion performed "The Show Must Go On" during the 2016 Billboard Music Awards, where she received the Billboard Icon Award. In August 2016, she released her French-language album, Encore un soir to critical and commercial success.
The next month, she premiered "Recovering", a song written by Pink in honor of Dion's late husband. The song was marketed as the first track off of her upcoming English record which, at the time, was projected for release in 2017. She performed it during the Stand Up to Cancer Live Event on 9 September 2016. In March 2017, Dion's "How Does a Moment Last Forever" was released on the Beauty and the Beast: Original Motion Picture Soundtrack. Dion also embarked on two summer tours in Canada and Europe in 2016 and 2017. In 2018, she released "Ashes" from the American superhero film Deadpool 2 and toured Asia, Australia and New Zealand. In September 2018, Dion announced the end of her Las Vegas residency Celine, with the final date set for 8 June 2019.
On 3 April 2019, she announced her 2019/2020 Courage World Tour, beginning in Quebec City, Canada on 18 September 2019. Dion also announced a new English-language album of the same name, to be released in November 2019. Explaining the name of the album, she said: "I think I went through a lot. And life had given me the tools… to find my inner strength, to find courage, and to keep going. The people that I love so much embraced the moments that were difficult. They gave me so much strength. And then a song came that was called "Courage", and it didn't take long for all of us to say, 'I think the album should be called Courage'". Dion announced the tour in a video titled "Ciao for now Las Vegas", in which she leaves Las Vegas in a car full of drag queens. Impersonator Steven Wayne stood in for Dion, alongside Bryan Watkins, Crystal Woods and Hot Chocolate as Barbra Streisand, Diana Ross and Tina Turner. The promo also teased the new song, "Flying on My Own". On 5 April 2019, on Jimmy Kimmel Live!, Dion promoted her upcoming tour, sang few lines from the song "Courage" and performed "Ashes". On 7 and 8 June 2019, Dion performed "Flying on My Own" during her Las Vegas residency show and the live performance was released to various streaming platforms on 8 June 2019.
Writing and recording
In April 2019, Dion revealed she had received 48 song contenders for the upcoming album and had to choose 12 of them. The new album, Courage, would explore new musical directions while also keeping the familiar style that Dion's fans are used to. After releasing Pink-written "Recovering" in September 2016, Dion recorded new music in October 2016 with Diane Warren, who wrote many of her hits, including "Because You Loved Me". In April 2017, Dion mentioned that Sia had written three songs for her. In April 2019, it was announced that the new album will include an appearance by Sia and that one of the songs written by her is titled "Baby". In December 2017, Dion revealed she has recorded new music with Stephan Moccio and Maty Noyes. Moccio wrote Dion's 2002 successful single "A New Day Has Come", and also co-wrote hits for other artists, including "Earned It" by The Weeknd and "Wrecking Ball" by Miley Cyrus. Also in December 2017, Dion recorded the song "Flying on My Own" at the Studio at the Palms in Las Vegas. The song was written by Jörgen Elofsson, Anton Mårtenson and Liz Rodrigues. In October 2018, David Guetta mentioned that Dion recorded a song he co-wrote with Sia. While announcing the Courage World Tour in April 2019, Dion revealed that she recorded a song called "Courage", which became the title track for the album, set for release in November 2019. The promotional video for the tour features a fragment of the new song, "Flying on My Own". On 20 May 2019, a fragment of another new song, "Lying Down", written by David Guetta and Sia was featured in Dion's episode of Carpool Karaoke with James Corden. "Flying on My Own" (Live from Las Vegas) was released as a digital download on 9 June 2019, the day after Dion ended her 16-year Las Vegas residency. The studio version was released on 28 June 2019. On 18 September 2019, Dion released three new songs, including "Lying Down", "Courage" and "Imperfections", shared the cover art for the album and announced the release date for 15 November 2019.
Critical reception
Courage received generally positive reviews from music critics. At Metacritic, which assigns a normalised rating out of 100 to reviews from mainstream critics, the album has an average score of 68 based on 9 reviews, indicating "generally favorable reviews". Mike Wass from Idolator rated Courage 4.5 out of 5 stars, describing it as Dion's most eclectic album, which is truly remarkable at this stage in her career. He felt that while the production of songs is inventive, the subject matter couldn't be more traditional, as Dion examines matters of the heart. Neil Z. Yeung of AllMusic rated the album 4 out of 5 stars calling Courage a transformative, cathartic release for the powerhouse vocalist that carries listeners through her process of healing and moving on. According to him, the album is buffered by a heavy dose of mid-tempo bloodletting that serves as therapeutic processing for Dion and as vulnerable confessionals to her fans. Nick Smith from MusicOMH also rated Courage 4 out of 5 stars. He pointed out that the themes of the album are coherent: inner strength, courage and self-reflection, and that Courage marks an impressive return.
Rolling Stone writer Brittany Spanos praised both the album's contemporary, upbeat dance-pop tracks, as well as the ballads, stating "across the LP, the dance-pop moments thrive best when there's a touch of campiness, which is where Dion's excellent performance skills shine", and "as with anything Dion does, the throaty ballads where she flexes her multi-octave mezzo-soprano are the true gems". In a summary, she compared Courage to Cher's 1998 album Believe, writing "consider Courage to be Dion's version of Cher's Believe: an album that arrived at exactly the right time and proved to a new generation that she's worth revisiting and recognizing as a diva very capable of keeping up with the times". According to Alexis Petridis from The Guardian, the best songs on Courage are ballads, which stick close to the music that made Dion famous, like the title track. Alexandra Pollard from The Independent wrote that the most affecting moments on the record seem to face the loss of a loved one, like in songs "For the Lover That I Lost" co-written by Sam Smith and "Courage". Michael Cragg of The Observer wrote that Courage, recorded in the aftermath of Dion's husband's death in 2016, is suffused with lyrics about loss and rebirth.
Jason Lipshutz from Billboard wrote that Dion's 2013's Loved Me Back to Life was a winning effort, but Courage is even more vital, with a "propulsive" opener in "Flying on My Own", a "devastating" title track, and many "worthwhile reflections in between". According to him, Dion's focus on Courage on loss, recovery and personal empowerment makes it one of the most mature and impressive pop releases of 2019. Courage was chosen as one of the best albums of 2019 by Billboard staff. In his review for Variety, writer A.D. Amorosi gave the album a mixed review, stating "the most glorious, and authentic, moments on Courage then, address bereavement, fear and finality in that pearl-clutching, gasping-for-air singing style that is Dion's, and Dion's alone". He criticized some songs on the album, such as "Flying on My Own", "Lovers Never Die", "The Chase", and others arguing that they make Dion sound "robotic and dull". He summed up his review writing "one could argue that Courage is the sound of Celine Dion unbound and unwound, ready to experiment beyond her usual theatrical soundscapes, and play in the fields with her tween chart contemporaries. That's fine. Get it out of your system now. At least half of the album is fantastic. But don't let her make a habit out of this". The Cavalier Daily wrote a positive review saying that Courage is Dion's best work to date and named "Falling in Love Again" and "How Did You Get Here" as the best tracks on the album.
Year-end rankings and accolades
Numerous publications listed Courage as one of the Best Pop Albums of 2019. AllMusic listed Courage as one of their 'Favorite Pop Albums' of 2019, calling it a "cathartic comeback". Billboard ranked Courage as the 50th best album of 2019, further saying: "Celine both digs deep, and lets us see her lighter side -- and that's the power of Dion". Idolator ranked Courage at No. 20 in their list of 'The Best Pop Albums of 2019' calling it her "best album since the 90s". Slate also listed Courage among the Best Albums of 2019.
Billboard also ranked four songs from the album in their list of Top 10 Fan-favourite songs of 2019, with "Imperfections" (No. 1) topping the list while "Courage" (No. 4), "Flying on My Own" (No. 6) and "Lying Down" (No. 9) also placed simultaneously on the list.
Accolades
The album received two Juno Award nominations at the Juno Awards of 2021, for Album of the Year and Adult Contemporary Album of the Year. Thanks to Courage, Dion was also nominated for Juno Award for Artist of the Year. The album won a Webby Award in the category Experimental & Innovation Social.
Singles
In June 2019, Dion released "Flying on My Own" as a gift to the fans. It reached number one in Quebec and top ten on the digital charts in Canada and France, and on the US Dance Club Songs chart. On 18 September 2019, Dion released three more songs, including "Imperfections", "Lying Down" and "Courage". The music video for "Imperfections" premiered on 26 September 2019 and the song was sent to radio on 30 September 2019. On 19 October 2019, "Lying Down" was added under the A-list on BBC Radio 2 airplay playlist in the United Kingdom and became record of the week. The music video for "Courage" premiered on 13 November 2019. "Soul" was sent to Italian radio on 24 January 2020 as the album's fourth promotional single and became available worldwide on various streaming platforms, before it was only available in Japan, as the albums japanese bonus track. "Change My Mind" was released as the album's third promotional single in the United Kingdom on 15 February 2020. It was added to the BBC Radio 2 B-List on the same day.
Commercial performance
Courage was a commercial success and broke several chart records all around the world. It became the best-selling album of 2019 in Canada and the seventh best-selling album by a female artist of 2020 in the United States, in terms of pure sales. According to IFPI, Courage has sold 600,000 units worldwide, becoming the 20th best-selling album of 2019.
Canada
Courage debuted atop the Canadian Albums Chart with 55,000 album-equivalent units, including 53,000 pure album sales, becoming Dion's 15th number-one album in the Nielsen SoundScan era and 16th overall in Canada. It achieved the highest one-week consumption total since Drake's Scorpion picked up 70,000 units in July 2018 and the highest one-week pure album sales since Taylor Swift's Reputation sold 80,000 copies in November 2017. It also achieved 2019's biggest single-week consumption total. Courage also debuted at number one in Quebec with 28,000 pure album sales. In the second week, the album dropped to number two in Canada, picking up the second-highest sales total for the week with 8,300 units. In the third week, Courage fell one position to number three but earned the highest album sales total for the week with 6,300 units sold. In Quebec, it stayed at number one for six non-consecutive weeks. Courage has sold 93,000 copies in 2019 in Canada. On the Canadian Nielsen SoundScan 2019 Year-end charts, it was the top-selling album (physical and digital sales). It was certified Platinum in Canada in January 2021.
United States
Courage also debuted at number one on the US Billboard 200 dated 30 November 2019, earning Dion her first US number-one album in 17 years, having last topped the chart with A New Day Has Come (2002). It is her fifth US number-one album, and earned 113,000 album-equivalent units, including 109,000 pure album sales. It also became her 13th top ten album on the Billboard 200. Thanks to Courage, Dion has collected number-one albums in each of the last three decades, being the fourth woman to achieve the feat after Janet Jackson, Barbra Streisand and Britney Spears. The next week, due to lack of streaming, Courage plummeted to number 111, setting a Billboard 200 record for the biggest second week drop for an album that debuted at number one and second biggest drop after Bon Jovi (1-169 for This House Is Not for Sale). On Billboards Top Current Albums, Courage fell from number one to position 13 in its second week and on the Top Album Sales chart it dropped from the top to number 21.
United Kingdom
In the United Kingdom, the album debuted at number two, selling 18,946 copies. Courage is Dion's highest-charting album since A New Day Has Come became her fifth number one in the UK in 2002. In the second week, it fell to number 13, selling 8,804 copies. On 27 December 2019, it was certified Silver in the UK.
France
In France, Courage debuted at number two on the Overall Sales and Streaming Chart and number one on the Sales Chart with 24,000 pure album sales. In the second week, it fell to number seven on the Overall Chart and number five on the Sales Chart with 10,800 physical and digital copies sold. On 6 December 2019, Courage was certified Gold by SNEP. In 2019, the album has sold 77,000 copies there. In December 2022, it was certified Platinum for selling over 100,000 copies.
Other markets
Courage also debuted at number one in Belgium Wallonia and Switzerland (also in Romandy), number two in Australia and Scotland, number three in Belgium Flanders, number four in Germany, Austria and Croatia, number five in Ireland, New Zealand, Portugal and on the Finnish Physical Albums Chart (number 13 on the Overall Chart), number six in Poland, number ten in the Netherlands, Italy and South Africa, and outside the top ten in few other countries. In Japan, Courage debuted at number eight on the Western Oricon Albums Chart and number 49 on the Oricon Albums Chart. On the Billboard Japan charts, it entered the Top Albums Sales chart at number 41 and the Hot Albums chart at number 61.
Track listingNotes'
signifies an additional producer
signifies an orchestral session co-producer
Charts
Weekly charts
Year-end charts
Certifications and sales
Release history
See also
List of Billboard 200 number-one albums of 2019
List of number-one albums of 2019 (Belgium)
List of number-one albums of 2019 (Canada)
List of number-one hits of 2019 (Switzerland)
References
2019 albums
Celine Dion albums
Columbia Records albums
Albums produced by David Guetta
Albums produced by Greg Kurstin
Albums produced by Stargate
Albums produced by Giorgio Tuinfort
|
Monaco competed at the 1992 Summer Olympics in Barcelona, Spain.
Competitors
The following is the list of number of competitors in the Games.
References
Official Olympic Reports
Nations at the 1992 Summer Olympics
1992
1992 in Monégasque sport
|
Fourth is the fourth studio album by the rock band Soft Machine, released in 1971. The album is also titled Four or 4 in the USA.
Overview
The numeral "4" is the title as shown on the cover in all countries, but a written-out title appears on the spine and label. This was the group's first all-instrumental album, although their previous album Third had almost completed the band's move in this direction toward instrumental jazz, and a complete abandonment of their original self-presentation as a psychedelic pop group, or progressive rock group. It was also the last of their albums to include drummer and founding member Robert Wyatt who afterwards left. He had already recorded a solo album, The End of an Ear (in which he described himself on the cover as an "Out of work pop singer currently on drums with Soft Machine"), and now founded a new group, Matching Mole, whose name was a pun on "Soft Machine" as pronounced in French: "Machine Molle".
Like the previous Soft Machine album, some tracks have the band augmented by additional musicians. These include Mark Charig and Nick Evans, who had been in the septet lineup of late 1969, and Roy Babbington, who would join the band in 1973.
In 1999, Soft Machine albums Fourth and Fifth were re-released together on one CD.
In 2007, Fourth was re-released as part of the series Soft Machine Remastered – The CBS Years 1970–1973.
The booklets of these re-releases contain liner notes written by Mark Powell from Esoteric Recordings about the history of Soft Machine, their musical development and as one of the first relevant bands in the so-called progressive rock scene.
Track listing
All compositions by Hugh Hopper except where indicated.
Side one
"Teeth" (Mike Ratledge) – 9:15
"Kings and Queens" – 5:02
"Fletcher's Blemish" (Elton Dean) – 4:35
Side two
"Virtually Part 1" – 5:16
"Virtually Part 2" – 7:09
"Virtually Part 3" – 4:33
"Virtually Part 4" – 3:23
Personnel
Soft Machine
Elton Dean – alto saxophone, saxello
Mike Ratledge – acoustic piano, Hohner Pianet electric piano, Lowrey organ
Hugh Hopper – bass guitar, fuzz bass
Robert Wyatt – drums
Additional personnel
Roy Babbington – double bass (1, 3, 4, 6)
Mark Charig – cornet (2, 3, 4)
Nick Evans – trombone (1, 2, 4)
Jimmy Hastings – alto flute (6), bass clarinet (1, 6)
Alan Skidmore – tenor saxophone (1, 6)
References
External links
Soft Machine - Fourth (1971) album review by Ken Taylor, credits & releases at AllMusic
Soft Machine - Fourth (1971) album releases & credits at Discogs
Soft Machine - Fourth (1971) album credits & user reviews at ProgArchives.com
Soft Machine - Fourth (1971) album to be listened on Spotify
Soft Machine - Fourth (1971) album to be listened on YouTube
Soft Machine albums
1971 albums
CBS Records albums
Columbia Records albums
Albums produced by Hugh Hopper
Albums produced by Mike Ratledge
Esoteric Recordings albums
Albums produced by Robert Wyatt
Albums produced by Elton Dean
|
Sublimity is a concept in philosophy.
Sublimity may also refer to:
Sublimity City, Kentucky, U.S.
Sublimity, Oregon, U.S.
Sublimity (album), by Transmission, 2008
Sublimity (horse) (foaled 2000)
See also
Sublime (disambiguation)
Sublimation (disambiguation)
|
José Ulisses de Pina Correia e Silva () (born 4 June 1962) is a Cape Verdean businessman and politician who has been Prime Minister of Cape Verde since 22 April 2016.
He took office after his party, the Movement for Democracy, won the 20 March 2016 parliamentary election.
Early life and education
In 1988, Silva graduated from the School of Economics and Business Management at the Technical University of Lisbon.
Early career
Silva started his career in the banking sector. He was the director of administration at the Bank of Cape Verde from 1989 to 1994. He also taught at the Jean Piaget University of Cape Verde.
Political career
Silva served in the government of Cape Verde as Secretary of State for Finance from 1995 to 1998 and Minister of Finance from 1999 to 2001. Between 2006 and 2008, Silva was Vice-President of the Movement for Democracy (MpD) political party. In 2008, he was elected as the Mayor of Praia, and he was reelected as Mayor in 2013. Silva also became the President of the MpD in 2013.
Silva was also the executive president of UCCLA (the Union of Afro-Pan-American-Asiatic Lusophony Capital Cities) in 2013 and later became the president of IDC Africa in November 2014.
Prime Minister
In June 2016, Silva and Finance Minister Olavo Correia met with representatives from the International Monetary Fund to discuss Cape Verde's economy. A few months later, in September 2016, Silva and members of his government met with the IMF to discuss the 2016 Article IV consultation.
Silva was reappointed to the leadership of the Movement for Democracy (MpD), with 99 percent of the votes cast, in February 2020. Thus, he is the candidate of the MpD to the 2021 legislatures, running for his own succession.
References
1962 births
Movement for Democracy (Cape Verde) politicians
Government ministers of Cape Verde
Living people
Members of the National Assembly (Cape Verde)
People from Praia
Presidents of municipalities in Cape Verde
Prime Ministers of Cape Verde
Finance ministers of Cape Verde
Technical University of Lisbon alumni
|
A Reckless Romeo is a 1917 American short silent comedy film directed by and starring Roscoe 'Fatty' Arbuckle.
Plot
A philandering husband's public flirtation with a beautiful girl—and the resulting brawl with the woman's boyfriend—are captured by a newsreel cameraman. When the husband takes his wife and her mother out to the movies, the footage is shown on-screen. The husband tries to flee the theater, only to be spotted and leaped upon by the woman's boyfriend, treating viewers to two simultaneous fights between the same two men, both on-screen and in the aisle.
Cast
Roscoe 'Fatty' Arbuckle as Husband
Al St. John as Rival
Corinne Parquet as Wife
Agnes Neilson as Mother-in-Law
Alice Lake as Girl in Park
Jimmy Bryant
Joe Bordeaux as Newsreel director (uncredited)
Production
The film was released by the Comique Film Corporation when it and many other early film studios in America's first motion picture industry were based in Fort Lee, New Jersey, at the beginning of the 20th century. Some shots were done at Palisades Amusement Park.
The film was originally produced in New Jersey as one of Arbuckle's last Keystone pictures. Filmed between July and September 1916 and later sold to Paramount, it was released as a Comique film on May 21, 1917, after The Butcher Boy and before The Rough House.
Preservation status
Thought to have been lost, a print was discovered in 1998 in the Norwegian Film Archive in an unmarked canister with another lost Arbuckle short, The Cook (1918). The film archive at George Eastman House has a 35 mm positive print.
See also
Fatty Arbuckle filmography
List of rediscovered films
References
External links
1917 films
1917 comedy films
1917 short films
1910s rediscovered films
American black-and-white films
Silent American comedy films
American silent short films
Films directed by Roscoe Arbuckle
Films shot in Fort Lee, New Jersey
Films with screenplays by Roscoe Arbuckle
Rediscovered American films
1910s American films
|
```xml
export {Drawer, useDrawer} from './Drawer.client';
export {FooterMenu} from './FooterMenu.client';
export {Header} from './Header.client';
export {Modal} from './Modal.client';
export {PageHeader} from './PageHeader';
```
|
```java server pages
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="path_to_url" prefix="c"%>
<%@ taglib uri="path_to_url" prefix="fmt"%>
<%@ taglib uri="path_to_url" prefix="fn"%>
<%@ taglib uri="path_to_url" prefix="spring"%>
<%@ taglib uri="path_to_url" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title></title>
</head>
<body>
<a href="${basePath}/manage"></a>
</body>
</html>
```
|
A gyroball is a type of baseball pitch used primarily by players in Japan. It is thrown with a spiral-like spin, so that there is no Magnus force on the ball as it arrives at home plate. The gyroball is sometimes confused with the shuuto, another pitch used in Japan.
Overview
The gyroball pitch was first identified by the Japanese scientist Ryutaro Himeno (姫野 龍太郎), and later developed into a specific throwing technique by baseball instructor Kazushi Tezuka (手塚 一志), who used computer simulations to create a new style of delivery intended to reduce stress on the pitcher. They published their work in a book, currently available only in Japan, the title of which is roughly translated as The Secret of the Miracle Pitch (魔球の正体).
However, the technique to throwing the gyroball is all in the arms, not in the unique grip of the baseball. Kazushi Tezuka is an instructor at the Jyoutatsuya baseball dojo in Tokyo, and Osaka, Japan. According to Tezuka, use of the arms "is the most important part of throwing the gyroball. It has nothing to do with the hands."
Himeno and Tezuka have said, a gyroball is thrown so that at the point of release, instead of having the pitcher's elbow move inwards, towards the body (the standard method used in the United States), the pitcher rotates his elbow so that it moves away from his body, toward third base for a right-handed pitcher and toward first base for a left-handed pitcher. This is also known as pronation.
The unusual method of delivery creates a bullet-like spin on the ball with the axis of spin in line with the direction of the throw, similar to the way an American football is thrown. Tezuka has stated, if the pitch is thrown correctly, it will fly straight like a fastball. Contrary to early speculation that the gyroball was a late moving breaking ball, the fact that the pitch travels with a bullet-spin denotes that the baseball is stabilized, hence the lack of movement. In baseball, most pitches are thrown with back-spin, like the usual fastball, or with a top-spin, like the curveball and the slider.
When throwing a gyroball, a pitcher holds the side of the ball with a fastball grip placed on the baseball's center (or equator). The pitcher's hips and throwing shoulder must be in near-perfect sync, something the book refers to as "double-spin mechanics." According to Tezuka, the arm angle needs to be low, no higher than a sidearm delivery. As the pitcher rotates his shoulder, he snaps his wrist and pulls down his fingers rather than flipping them over the ball, as happens with curveballs. For the correct spin axis, the equatorial plane must first be determined by the proper finger pressure during release. The ball rolls off the index and middle fingers to the thumb side of the hand as the pitch is released. If gripped in the right manner, the rotation will have a true side-spin; if the ball is held above or below its equator, the rotation would be unstable. When the pitcher lets go, he must pronate his wrist, or turn it so the palm faces third base.
Incidentally, the flight of some Knuckleball pitches, such as those thrown by R. A. Dickey, also have a forward pointing rotational axis similar to a gyroball. The difference is, the knuckleball spins significantly more slowly and has less velocity, which greatly subjects the baseball to the effects of drag as well as gravity, and translates into an erratic flight-path. However, this shows that a bullet-like spiral is consistently achievable despite differing methods of pitch delivery. A gyroball's stability is dependent upon its rotation speed and the amount of forward motion, resulting in a straight trajectory with less drop.
Batters use the arm speed of the pitcher and the spin on a baseball, made visible by the seams, to judge the speed and trajectory of a pitch. The gyroball is thrown with the arm speed of a usual fastball, but with a different actual speed. Its bullet-like spinning motion may hide the seams of a ball from the view of the batter, making it difficult to predict the pitch. Typical strategy entails throwing many variations of pitches, followed by a gyroball. The batter, predicting a change in speed caused by the ball's spin, may adapt to the wrong speed and swing incorrectly.
The gyroball is also often confused with a completely different Japanese pitch called the shuuto, due to an error in a well-known article by baseball writer Will Carroll. Although Carroll later corrected himself, the confusion still persists.
Appearance in popular culture
Video games
In March 2005, Baseball Mogul was the first game to include the "Gyroball". The pitch was included in the arsenal of Daisuke Matsuzaka. However, because Matsuzaka was not yet with the Red Sox, players had to simulate into the 2006 season before the gyroball became available. Additionally, the gyroball is available in Baseball Mogul's player editor, and can be learned in Spring Training by pitchers that enter the game after 2005. In the game's graphical play-by-play mode, the pitch comes out of the pitcher's hand as a fastball, but fails to rise like a traditional four-seam fastball.
In the video game MLB 07: The Show and the more recent The Bigs, only Daisuke Matsuzaka has the ability to throw the gyroball, although the movement of the pitch in the video game differs from the movement of the actual pitch. Daisuke Matsuzaka has himself stated, "looks like they are talking about my cut fastball or sinking slider. I guess sometimes it has a similar rotation of a gyro, when I fail to throw the cut fastball or the slider properly, but it is not exactly a gyro itself. It is different. There is a particular way of throwing it. I guess it is a kind of shuuto-like cut fastball". (However, in the long-lasting Japan-Baseball game series Jikkyō Powerful Pro Yakyū series, Daisuke is never given "Gyroball" ability for any installment, nor in the MLB Power Pros series installment.) It is an obtainable ability in the MLB Power Pros series, and its effect is to make the fastball look faster.
Japanese animation
In the Japanese manga and anime baseball series Major, the protagonist, Goro, is known for his use of the gyroball pitch, which was his only pitch until he eventually adds a forkball to his repertoire.
Gyroballers
Official gyroballers
Tetsuro Kawajiri (retired): He is supposedly a typical gyroballer in Japan. According to the book, the authors confirmed he threw a two-seam gyroball. It confuses the batter by giving the illusion that the ball is faster than it actually is, because of the greater difference between the start speed and end speed. The batter cannot adapt to the slower end speed, which is not what he expected.
The gyroball is often confused with a changeup, but the beginning speed is the same as a fastball.
Shunsuke Watanabe (Chiba Lotte Marines): He and Tezuka officially allowed him to be a gyroballer, he throws a two-seam gyroball. He thought it was just a non-breaking curveball before Tezuka told him it was the gyroball. He throws four-seam gyro as well.
Tomoki Hoshino (retired)
Nobuyuki Hoshino (retired): According to Tezuka, their fastball has a four-seam spiral movement. This is the four-seam gyroball. The nature is opposite to two-seam, the batter may confuse it as being much slower initially. Tezuka pointed it out in "スポーツトレーニングが変わる本" which means The book which changed a way of sports training. Especially Nobuyuki, he was supposed to be a typical slow baller, nevertheless, Norihiro Nakamura thinks his fastball was the fastest in Japan, much better than even Matsuzaka's. Since they both are left-handed, the moving direction is opposite to the other pitchers.
Possibilities
Daisuke Matsuzaka: Familiar with the gyroball, Matsuzaka has stated that he can throw the gyroball, however cannot do so on a consistent basis. A careful computer analysis of Matsuzaka's pitches for the Boston Red Sox for the first half of the 2007 season by Dan Fox of Baseball Prospectus suggests that while Matsuzaka commands a dazzling array of pitches, the gyroball is more myth than reality. However, Daisuke has said he is trying to learn to throw the trick pitch.
C. J. Wilson: He has claimed that he throws the gyroball. However, just as his two-seam ball, it is sometimes very similar to a slider or sinker in spite of his adoption of Tezuka's theory; he cannot control it. He guesses because the gyro axle is inclined in irregularity. But while trying to learn the gyro, Wilson developed a new hybrid pitch, which he calls the Cork. The Cork, described by Wilson, is a "rising cut fastball." He uses this as his out pitch against left-handed hitters. In the ALCS 2010 Game 1 press conference on October 14, 2010, he said he doesn't believe it's very good for the arm, so he doesn't throw it very much. His two surgeries took place after he began throwing it. However, he does throw it if he feels confident and is having a successful outing.
Hideo Nomo: Tezuka thinks that his fastball is probably a gyroball.
Jered Weaver: His fastball is considered the four-seam gyro.
Pedro Martínez: Tezuka thinks he throws it accidentally.
Roger Clemens: Kazuo Matsui reckons he may throw it because his fastball has a gyroball-like rotation.
Steve Palazzolo: Former CanAm and Minor League pitcher is attempting to learn the pitch from Will Carroll, a columnist for Baseball Prospectus. *Note: Let it be known that Will Carroll has admitted to the fact that the pitch that he had taught to Joey Niezer and Craig Stutler, and wrote an article about in the Baseball Prospectus, was not in fact the gyro (or at least, the same gyroball which is taught by Tezuka and Himeno)
Kids: For example, Akinori Otsuka said his nine-year-old son throws a gyroball-like ball even though Otsuka himself cannot throw it. Tezuka thinks many children throw it unconsciously before their instructors modify their natural pitching form.
References
External links
ESPN article including video of hitters facing the Gyroball
Video Matsuzaka's Gyroball Revealed
A demonstration by Tezuka, posted on New York Times
The Japanese Gyroball Mystery New York Times article by Lee Jenkins.
Recent Yahoo! Sports article on the true Gyroball Another Yahoo! Sports article by Jeff Passan.
Video, possibly of Gyroballs
"Explainer" on the gyroball. from Slate.
Searching for Baseball's Bigfoot , a Yahoo! Sports article by Jeff Passan.
Yahoo! Sports article
Unwinding the Gyroball by Brett Bull, special to SI.com.
Big Empire article
A slowed-down video showing the movement and spin of the gyroball
Video Trajectory of the Gyroball
Baseball pitches
Baseball in Japan
|
Dusan Krajcinovic (died 2007) was a mechanics scientist. He was past member and chair of the Applied Mechanics Division of ASME. He served a term on the U. S. National Committee on Theoretical and Applied Mechanics. He authored a review paper on damage mechanics that predates his book on the same subject.
He earned his bachelor's and master's degrees in Civil Engineering from the University of Belgrade (1958, 1966) before emigrating to the US. He earned his PhD in Civil Engineering from Northwestern University in 1968, working with Prof. George Hermann. He worked at Ingersoll Rand Research Inc. (1969) and Argonne National Laboratory (1973), before becoming Professor of Civil Engineering at University of Illinois, Chicago, IL (1973-1989) and then Professor of Mechanical and Aerospace Engineering at Arizona State University (ASU), until retiring as Professor Emeritus in 2004. He received the October Prize for Mathematical, Physical, and Engineering Science (Belgrade, Yugoslavia, 1990), the Gold Medal for achievements in Science and Technology (Crete, 1999), and Laurea Honoris Causa (Milan, Italy, 2001).
He was ASME Fellow and Chair of AMD Executive Committee (2001-2002), Fellow of the American Academy of Mechanics and President (1999-2001), as well as Member of the Stability Research Council, the International Association for Structural Engineering in Reactor Technology, and non-member advisor of the ASCE Committee for Inelastic Behavior of Materials). he served on the editorial boards of Applied Mechanics Reviews and Mechanics of Materials, and was editor of the International Journal of Damage Mechanics.
References
In Memory of Dusan Krajcinovic, Society of Engineering Science,
In Memoriam: Professor Dusan Krajcinovic,
1935 births
2007 deaths
American scientists
Serbian engineers
Arizona State University faculty
Northwestern University alumni
University of Belgrade alumni
University of Illinois Chicago faculty
Fellows of the American Society of Mechanical Engineers
|
```c
/*****************************************************************************
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Intel Corporation nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************
* Contents: Native high-level C interface to LAPACK function dlagge
* Author: Intel Corporation
*****************************************************************************/
#include "lapacke_utils.h"
lapack_int API_SUFFIX(LAPACKE_dlagge)( int matrix_layout, lapack_int m, lapack_int n,
lapack_int kl, lapack_int ku, const double* d,
double* a, lapack_int lda, lapack_int* iseed )
{
lapack_int info = 0;
double* work = NULL;
if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) {
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_dlagge", -1 );
return -1;
}
#ifndef LAPACK_DISABLE_NAN_CHECK
if( LAPACKE_get_nancheck() ) {
/* Optionally check input matrices for NaNs */
if( API_SUFFIX(LAPACKE_d_nancheck)( MIN(m,n), d, 1 ) ) {
return -6;
}
}
#endif
/* Allocate memory for working array(s) */
work = (double*)LAPACKE_malloc( sizeof(double) * MAX(1,m+n) );
if( work == NULL ) {
info = LAPACK_WORK_MEMORY_ERROR;
goto exit_level_0;
}
/* Call middle-level interface */
info = API_SUFFIX(LAPACKE_dlagge_work)( matrix_layout, m, n, kl, ku, d, a, lda, iseed,
work );
/* Release memory and exit */
LAPACKE_free( work );
exit_level_0:
if( info == LAPACK_WORK_MEMORY_ERROR ) {
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_dlagge", info );
}
return info;
}
```
|
The Child Mania Rating Scales (CMRS) is a 21-item diagnostic screening measure designed to identify symptoms of mania in children and adolescents aged 9–17 using diagnostic criteria from the DSM-IV, developed by Pavuluri and colleagues. There is also a 10-item short form. The measure assesses the child's mood and behavior symptoms, asking parents or teachers to rate how often the symptoms have caused a problem for the youth in the past month. Clinical studies have found the CMRS to be reliable and valid when completed by parents in the assessment of children's bipolar symptoms. The CMRS also can differentiate cases of pediatric bipolar disorder from those with ADHD or no disorder, as well as delineating bipolar subtypes. A meta-analysis comparing the different rating scales available found that the CMRS was one of the best performing scales in terms of telling cases with bipolar disorder apart from other clinical diagnoses. The CMRS has also been found to provide a reliable and valid assessment of symptoms longitudinally over the course of treatment. The combination of showing good reliability and validity across multiple samples and clinical settings, along with being free and brief to score, make the CMRS a promising tool, especially since most other checklists available for youths do not assess manic symptoms.
Background
The Child Mania Rating Scale (CMRS) was created as a complement already existing measures like the Altman Self-Rating Mania Scale and the Young Mania Rating Scale, which were formulated for adults. The purpose of the CMRS is to both assess the symptoms of mania in pediatric bipolar disorder, and to accurately discriminate the symptoms of mania from symptoms of ADHD. It is important that the CMRS accurately discriminate from symptoms of ADHD because core symptoms of adolescent Bipolar Disorder and ADHD are shared between the two disorders: hyperactivity, impulsivity, and distractibility. The CMRS was designed specifically for younger children who may or may not have the ability to accurately answer questions about their behavior. As a result, the questionnaire is filled out by parents are/or caregivers who work with the children on a daily basis. Previous mania scales were designed for use by either the clinician or the patient. Therefore, the CMRS is unique in that it allows parents and caregivers to contribute information about their child's symptoms. This is especially important in cases where the child may be too young to fill out the questionnaires themselves.
Historically, effective rating and diagnosis of mania has been limited. Though many mania scales have been tested on adult populations, the Young Mania Rating Scale (YMRS) – which was tested against the child version (CMRS) as standard measure for screening mania- is the only adult scale that has also been studied for validity and reliability in prepubertal children. Previous attempts include the Beigel Scale/Manic State Rating Scale (MSRS) and the Patterson Scale, which used nurse and clinician reports to rate levels of mania. Neither scale effectively and consistently captured levels of mania in patients. Other measures of pediatric mania are generally limited because they are completed by the clinician, introducing potential for bias, and because they lack the depth necessary to differentiate between patient-specific ways in which symptoms are presented. The CMRS Parent and Teacher versions attempt to address some of the limitations by including a checklist that can gather information about behavior at home, school, and other settings, rather than focusing only on what a clinician could directly observe. One study examined the accuracy of a shortened version of the CMRS-P, which included only 10 items, and found that its accuracy was similar to the full scale.
Typically, the CMRS takes only 10–15 minutes to administer. The questions ask about behavior-specific actions and tendencies the child may have exhibited within the past month. The parent rates the behavior on a scale from 1 to 4, where 1=never/rarely, 2=sometimes, 3=often, and 4=very often. A clinician examines the total score and determines if the child has ADHD or Bipolar Disorder. If a diagnosis Bipolar Disorder is deemed to be appropriate, the clinician will also determine the sub-type.
Versions
There is a short version (10 items) of the CMRS called the Brief CMRS/Brief CMRS-P. The shorter version was created because a shorter version is preferred to longer assessments if the shorter gives similar accuracy, which it does. Additionally, there is a teacher's version of the CMRS called the CMRS-Teacher (CMRS-T).
Reliability and validity
Reliability
Construct validity analyses (Exploratory Factor Analysis and Confirmatory Factor Analysis) for the CMRS-P indicated that the scale is unidimensional. Internal consistency measured by Cronbach's alpha was .96 in a sample consisting of ADHD, Bipolar, and healthy control participants. In a sample of participants with bipolar disorder, the cronbach's alpha was 91. Additionally, it has the ability to accurately differentiate pediatric bipolar disorder from ADHD and healthy controls greater than 90% of the time.
The teacher version (CMRS-T) also has 21 items. The internal consistency, measured by Cronbach's alpha, was .86. Correlations between the parent and teacher versions of the CMRS range from .23 to .27. The CMRS teacher version has not been shown to discriminate bipolar from nonbipolar cases at better than chance levels and is not recommended for use in clinical practice for diagnosing bipolar disorder in children.
Validity
Development and history
The CMRS was developed as a shorter, reliable, and valid parent-report screening instrument for mania. The short form was derived from the CMRS 21 item scale which is the first original mania rating scale developed for children and adolescents. It was not developed from the Young Mania Rating Scale (YMRS) that was originally designed for adults, 'Young' being the name of the author than the fact that it was a scale for 'young' population. The YMRS was derived from the Parent-Young Mania Rating Scale (P-YMRS). This scale, developed from the YMRS, was created for use with adult inpatients. The items of the P-YMRS did not include the updated DSM-IV criteria for adolescent Bipolar Disorder, and it includes several items with poor factor loadings. Furthermore, the content is not developmentally appropriate for children, as many of the items require insight or appearance, which are irrelevant to young children. Another promising measure is the GBI as it has good psychometric properties. However, the GBI is lengthy and complicated and requires the child to have at least a 7th-grade reading ability. One of the most widely used measures of mania symptoms is the Kiddie Schedule for Affective Disorders and Schizophrenia mania section. However, this measure is extremely extensive and requires much clinical training to administer.
During the development of the CMRS, researchers found that reliable and more accurate diagnostic accuracy is found in parent reports in comparison to teacher reports or self-reports and that these other reports rarely added new information to the parent report. Furthermore, the areas under the curve (AUC) of parent-rated instruments reported modest to excellent validity. Based on the evidence, the developers of the CMRS chose to create a measure that relied mainly on parent report.
Other parent report measures have been used to screen for Pediatric Bipolar Disorder, but these measures were not developed to look specifically for mania. One such measure is the Child Behavior Checklist (CBCL). The CBCL, in addition to providing markers of psychopathology, has been used to detect mania in children. However, on the CBCL, researchers saw a consistent pattern of elevated scores, especially on the following symptoms: aggressive behavior, attention problems, delinquency, anxiety, and depression. This pattern may be due to the high comorbidity of ADHD, oppositional defiant disorder, conduct disorder, and anxiety disorders in children with pediatric Bipolar Disorder. And although the CBCL is a reliable and validated measure, low scores on the CBCL may only rule out mania—conversely, it would be erroneous to rule in mania using CBCL scores alone.
For these reasons, the CMRS was developed to accurately and reliably assess mania in pediatric Bipolar Disorder, and differentiate its symptoms from other disorders with high comorbidity with pediatric Bipolar Disorder.
Impact
Though there is no gold-standard screening tool for Pediatric Bipolar Disorder, the CMRS has been described as a promising and useful tool for such a purpose. For example, institutional protocols for diagnosing and evaluating Bipolar Disorder in children may use the CMRS as an initial screening tool to establish the need to further evaluation of mania symptoms. In addition, the parent version of the CMRS (the CMRS-P) has been used in research studies to detect changes in children's mania symptoms due to pharmacotherapy or psychotherapy. The CMRS is the first measure specifically developed for the purpose of screening for Bipolar Disorder in children. As such, it offers an alternative to broadband rating scales like the Child Behavior Checklist, which has been used as a screening tool for Bipolar Disorder in children with mixed findings regarding its reliability.
Furthermore, the CMRS-P (both the brief and full versions) have shown to be effective in distinguishing between mania and ADHD. The brief version effectively retains characteristics of the original CMRS, allowing for wider application and longitudinal use. Psychometric studies of the CMRS has demonstrated that the measure has excellent reliability and validity. Internal consistency is excellent and the measure correlates with clinician-administered interview measures for diagnosing pediatric mania. The measure is also accurately able to differentiate symptoms of pediatric Bipolar Disorder from ADHD and healthy control groups more than 90% of the time. Furthermore, the use of the CMRS in pharmacological research suggests that this measure is sensitive to treatment over time, which means that you can use this measure to assess treatment effectiveness.
Limitations
The CMRS suffers from the same problems as other self-report inventories, in that scores can be easily exaggerated or minimized by the person completing them - in this case, the parent or teacher—in a phenomenon called the social desirability bias. Like all questionnaires, the way the instrument is administered can also influence the final score. If a person is asked to fill out the form in front of other people in a clinical environment, for instance, social expectations have been shown to elicit a different response compared to administration via a postal survey. The age of the youth also may matter. Although the Child Mania Rating Scale has been shown to be a valid and reliable measure of mania in children, one concern is that its validity might change as the youth becomes an adolescent, and parents or teachers have less influence and awareness about the youth's behavior outside of the home or school. Additionally, it is also unclear of the CMRS's ability to assess the change in mania systems as a child cycles out of mania and into depression.
Use in other populations
While the CMRS has not been validated in other languages, the CBCL, YMRS, GBI, and KSADS all have. However, the CMRS has been tested and translated into Spanish. The CMRS is available in fourteen languages with back translation through native/bilingual speakers, though not tested in all languages.
See also
Bipolar disorder in children
Bipolar disorder
Bipolar disorder research
Diagnostic classification and rating scales used in psychiatry
References
Further reading
External links
(21 item English version for parents to complete.)
Society of Clinical Child and Adolescent Psychology
Bipolar disorder
Depression (mood)
Mental disorders
Mental disorders diagnosed in childhood
Mood disorders
Screening and assessment tools in child and adolescent psychiatry
Mania screening and assessment tools
Treatment of bipolar disorder
|
Cezary Ketling-Szemley (22 July 19159 January 1979) was Polish military officer and lawyer. He was a participant in the anti-German conspiracy, member of the PLAN, Home Army and PAL, main collaborator and supporter of the Jewish Military Union (ŻZW) on the part of the Polish underground during and before Warsaw Ghetto Uprising. He was born as Cezary Szemley. During the war he used the aliases "Janusz", "Ketling", "Olgierd" and "Arpad". After the war, he signed himself Cezary Szemley-Ketling or Ketling-Szemley. In 1949, he officially changed his name to Janusz Ketling-Szemley.
Many details of Szemley's biography are unknown or unclear. What is known is that immediately after the start of the German occupation he joined the underground as a member of the Polish Popular Independence Action (PLAN) affiliated with the Alliance of Democrats party. After its deconspiration, he founded a new organization of the same name, which soon joined the ZWZ-AK. As a member of the Home Army, he was twice sentenced to death by an underground court for collaboration with the Gestapo, but the sentence was not approved by the Home Army commander. In December 1942, he established contacts with the Jewish Military Union ( ŻZW), which was forming in the ghetto, claiming to be a representative of the Polish underground state, for which he probably had no approval. He assisted the ŻZW with training, as well as by selling weapons and taking part in joint anti-German actions. He also supported the ŻZW during the ghetto uprising, helping some of the fighters escape from the ghetto.
He later became associated with the pro-communist and pro-Soviet Polish People's Army PAL and the puppet government of the PKWN. After the war, he worked as a lawyer.
Biography
Prewar period
Szemley's origins and pre-war biography are unclear, as he himself has repeatedly given mutually exclusive information about himself. After the war, he was for example giving Budapest as his place of birth, not wanting to write "born in the USSR". He also gave 22 July 1915, as a date of birth. In fact he was born near Lviv in the family of a railroad worker. Although there were claims that he came from an aristocratic family. According to another version, his father was said to have been the editor of the weekly 'Czarno na Białym', associated with the Alliance of Democrats, hence Szemley's later high position in this milieu.
He graduated from in Chełmno, and began studying law at the University of Lwów in 1935. In 1937, he studied at the in Ostrów Mazowiecka. Before the war, he worked at the Ministry of Justice, in the statistics department, it's possible that his patron was Count Jan Szembek, vice-minister of foreign affairs. He was an activist in the centrist Alliance of Democrats.
Conspiracy and the establishment of PLAN
He took part in the defence of Poland during the German invasion, and later became involved with the independence conspiracy very early on, and joined the secret Polish Popular Independence Action (PLAN). PLAN was founded 15 October 1939, as an organization of leftist patriotic youth, drawn from the pre-war Union of Polish Democratic Youth (ZPMD), students gathered around the magazine Orka na ugorze and scouts of the 23rd Warsaw Scouting Troop of Bolesław Chrobry. However, most of the scouts of the 23rd squad left the PLAN at the end of 1939, tying themselves to the mainstream of the underground in the form of the Grey Ranks (among them were, later shrouded in legend, Tadeusz Zawadzki " Zośka," Jan Bytnar "Rudy" and Aleksy Dawidowski "Alek"). The PLAN commander was Jerzy Drewnowski, his deputy Juliusz Dąbrowski, and the writer Gustaw Herling-Grudziński was the first chief of staff. As early as October, PLAN started publishing the magazine Biuletyn Polski, Szemley was on the editorial team from the beginning. The PLAN's activities were wide-ranging, the precursor actions to so-called minor sabotage were of great significance, including the spreading of anti-German stickers.
The PLAN was broken up by the Gestapo in January 1940. PLAN founders and most members were arrested. The repression also affected the Jewish people, as the head of the PLAN's combat department was Kazimierz Andrzej Kott, who was of Jewish origin. 255 Jews were executed. In its place, Szemley set up a new organisation under the same name, which is often referred to in historiography as PLAN II for this reason. It is not clear when PLAN II started its activities, various dates appear in the memoirs: March 1940, autumn 1940 or early 1941. Apart from the name and a general democratic left-wing profile, the new organisation had little in common with its predecessor. It was not a youth organisation anymore, but a political group based on former members of the Alliance of Democrats. It was also smaller in number, most PLAN members who escaped arrest did not join the new organisation. Wacław Barcikowski became the chairman, Stanisław Janusz was the military commander. PLAN II published the magazine Rzeczpospolita () from January 1941, which from 1944 began to be published under the new title Rzeczpospolita Ludowa (). Szemley himself was involved in the publication of another PLAN II magazine called Z dnia na dzień (), published several times a week during the years 1941–42.
In the Home Army
In September 1941, the PLAN subordinated itself to the ZWZ (later Home Army, AK). Since February 1943 Szemley commanded a 30-man platoon organised by the PLAN II (codename DB-3), which became part of the AK Kedyw company for Warsaw district of Śródmieście. The main reason for entrusting him with the command of a unit within the AK was Szemley's contacts with the ŻZW, which was important in the context of the armed action of the Jewish fighters in the ghetto, already expected at that time. In June 1943 he was awarded the Cross of Valour by the Home Army Commander. Szemley was also a member of the Commission for the Organization of Propaganda at the Bureau of Information and Propaganda of the Home Army Headquarters. The Bureau of Information and Propaganda (BIP) was an underground cell in which many Alliance of Democrats activists worked, led by the Jerzy Makowiecki "Malicki", who was also the secretary general of the underground Alliance of Democrats. At the time, Makowiecki, through his subordinate Henryk Woliński, established contacts with the ŻOB and Jewish National Committee (ŻKN) and directed the work of the Council to Aid Jews Żegota. He was one of the most committed people in the Home Army to helping Jews. Initially he supported Szemley, but over time became suspicious of him. This was influenced by Szemley's insubordination and the suspicion falling on him, on 9 October 1942, Makowiecki voiced opinion about him: "I consider Arpad to be a complete psychopath".
Death sentence
In late 1942 and early 1943, the underground judiciary pursued a case against Szemley, who was accused of having treacherous contacts with the Gestapo. The case ended in a death sentence, which was not one approved by the Home Army Commander. According to historian August Grabski Szemley was most likely the target of a political provocation organised by right-wing circles inside the Home Army, who accused Szemley of having a 'pro-Communist' stance. However, according to historians Dariusz Libionka and Laurence Wainbaum, there is no enough reason to believe it was a provocation and the allegations against Szemley were most likely true and evidenced.
The whole affair started when PLAN II activist Tadeusz Szurmak was arrested by the Germans on 22 June 1942. In late August and early September 1942, the Home Army underground intercepted two anonymous letters sent to the Gestapo by some PLAN II activists, in which the latter offered to hand over leading activists of the Polish Underground State in exchange for Szurmak's release. In doing so, he also gave out a lot of confidential information about Z dnia na dzień and its editorial staff in order to make himself credible to the Germans. The evidence against Szemley in this case was gathered on 18 October 1942. The hearing revisited the earlier situation that brought Szemley before the Civil Court. Namely, in March 1942, he had extorted $6,000 from Jewish counterfeiters by claiming to be a Gestapo officer. This type of practice was considered reprehensible, as it was very often used by szmalcowniks. On 21 February 1943, the Second Special Military Court of the AK Headquarters sentenced Szemley in absentia to death. This sentence was upheld at a subsequent trial on 24–25 May 1943. However, it was not approved by Home Army Commander, General Stefan Rowecki. Despite this, on 21 January 1944, at the corner of Nowogrodzka and Emilia Plater Streets in Warsaw, Szemley was severely wounded in the back by enemies attempting to liquidate him.
At the turn of 1942 and 1943, Szemley was, in the eyes of the decision-makers of the Polish Underground State, a completely discredited and untrustworthy person. On 31 March 1943, the head of AK counterintelligence Bernard Zakrzewski "Oskar" wrote to the deputy AK commander Tadeusz Komorowski "Korczak":
Cooperation with ŻZW
Establishment of cooperation
Szemley made his first contacts with the Jewish Military Union (ŻZW) in December 1942, as the ŻZW sought to establish relations with the Government Delegation and the Home Army. The meeting took place on the grounds of the Bródno cemetery, and was most likely attended by ŻZW commander Paweł Frenkel. Continuing relationship Szemley went to the ghetto in January 1943, passing through a tunnel under Muranowska Street. It wasn't the first time Szemley went to ghetto, as underground court documents contain information about Szemley's attack on Jewish dollar counterfeiters, during which he claimed to be a Gestapo man and took 60,000 zlotys from them. In his account given to the Israeli historian Chaim Lazar in 1963, Szemley mentions 'sporadic' contacts between him and the ŻZW in the earlier period, since 1940, but this is unlikely. Szemley also credits the idea of building the tunnel, which is equally unlikely. Undoubtedly, however, the accounts of aid to Jews in hiding undertaken by PLAN II are most likely true.
Szemley's disastrous reputation was probably the reason why the ŻZW's attempt to contact the Polish underground did not find much response. Attempts at contact made at around the same time by the ŻOB, which was initially mediated by Aleksander Kamiński "Hubert", who had an impeccable reputation, were on the other hand successful. Szemley's contacts with some Jewish groups in the ghetto were known about in the underground leadership, but were ignored as another Szemley hoax. The existence of a revisionist resistance movement was also not mentioned by the ŻOB envoys, which further weakened the credibility of the ŻZW and Szemley in the eyes of the Polish underground leadership. On the other hand, the ŻZW may have been convinced that it had established contacts with an important representative of the Polish underground, especially as Szemley was able to provide significant training and material assistance and to give the impression of being an important person.
It is unclear how many weapons and of what type Szemley transferred to the ŻZW. During the second trial against Szemley, an accusation was made against him that he sold entrusted service weapons and ammunition to Jews in the ghetto and took the money for himself. Witness testimony also includes information that he sold 3,800 rounds of ammunition to the ghetto. He himself denied it, claiming that he only delivered Molotov cocktails.
Execution of Lolek Skosowski and Arek Wajntraub and other joint combat actions
From January 1943, according to Szemley's own account, a period of lively cooperation between PLAN II and the ŻZW begins. Already in the self-defence action of January 1943, PLAN II soldier Kazimierz Lipka "Śmiały", took part. Joint activities are known from documents of the ŻZW provided to historian Bernard Marek by Szemley himself, not always confirmed by other sources. On 11 February 1943, PLAN II soldiers killed one SS man in the ghetto near the Nalewski Street. A day later, ŻZW soldiers took part with PLAN II in an anti-German action in Marki. On 18 February 1943, two German gendarmes were killed in a joint action in the ghetto.
On 21 February, the ŻZW, according to Szemley on his initiative, carried out an assassination attempt on German informers Lolek Skosowski, Paweł Włodowski, Arek Wajntraub, H. Mangiel and Lidia Radziejowska in the ghetto at Świętojerska 38. The operation was commanded by Paweł Frenkel. According to an account written down in June 1943 by Paweł Besztymt "Rudy Paweł", a member of the ŻZW, the action was originally supposed to be carried out by a group of "12 Aryans" and the ŻZW would only take care of conducting intelligence prior to the action, but in the end, out of fear of deconspiration, the assassination was carried out by a group of 8 members of the ŻZW. Skosowski, as one of Abraham Gancwajch's main collaborators and previously a member of the collaborationist Group 13, was the main target of the attack, but was only wounded. The whole situation is unclear, as Skosowski had established cooperation with the Government Delegation in 1942, and was a useful double agent. Perhaps his assassination was ordered by the Polish underground, or perhaps Szemley acted on his own in order to lend credibility to the trial against him. Frenkel and Szemley jointly commanded the operation to set fire to the police and SS warehouses on Nalewki 3.
Ghetto uprising
PLAN II soldiers and Szemley himself took part in helping the fighting ghetto. On 19 April they attempted to blow up the ghetto wall from the side of Bonifraterska Street. And on 23 April they carried out an attack on a German post at the corner of Okopowa and Dzika Streets. Szemley himself claimed in his account to Lazar that he and other PLAN II soldiers had taken part in the ŻZW fighting on Muranowska Street, shelling German positions from outside the ghetto.
Szemley also helped lead ŻZW fighters out of the ghetto. According to his account, he led out 500 people, which is undoubtedly an exaggeration. In fact through a tunnel under Muranowska Street on 22 April or later, group of 30 or 44 people left the ghetto and made their way to (now part of Józefów), near Otwock. Most accounts agree that the transport took place in coffins, and that the group in Michalin, as a result of deconspiration, was attacked by the Germans. The ŻZW received outside help from Polish conspirators, but it is not clear from which organisation. According to the accounts (first described by Bernard Mark) of the soldiers of the Security Corps organisation, they played the main role. Szemley polemicised this version by claiming that it was PLAN II that helped the ŻZW:
Another group was helped out by PLAN II member Tadeusz Malinowski to 13 Grzybowska Street through sewers.
Polish People's Army
Later PLAN II broke its contacts with the Home Army, and its military units joined the Polish People's Army PAL. PLAN II joined the Supreme People's Committee of the United Democratic and Socialist Parties (NKL, later CKL) in November 1943, and the Centralisation of Democratic, Socialist and Syndicalist Parties in February 1944. Szemley was an ardent supporter of the CKL's subordination to the Soviet-installed PKWN in Poland, which eventually happened.
After the war
After the war, Szemley finished his law studies at University of Warsaw. In 1948 he passed the bar exam, and in 1952 he received his doctorate at the Jagiellonian University. In the early 1950s he was removed from the United People's Party. He acted as attorney for Ludwik Kalkstein while he was serving his life sentence from 1953 to 1965. Kalkstein was convicted of being a Gestapo agent during the war responsible, among other things, for handing over Home Army commander General Stefan Rowecki to the Germans. In 1965, Szemley was arrested for transmitting material critical of communist Poland to Radio Free Europe. Later due to harassment, Szemley was unable to work as a lawyer, and died on 9 January 1979, in Warsaw.
Writings
Bibliography
References
1915 births
1978 deaths
Burials at Powązki Military Cemetery
Home Army members
20th-century Polish lawyers
Polish Army officers
Armia Ludowa members
Polish armed supporters of the Warsaw Ghetto Uprising
|
The French language term escadre refers to a naval or military aviation unit equivalent to the English language terms :
squadron (naval)
wing (air force) (e.g. United States Air Force)
group (air force) (e.g. Royal Air Force)
|
The Battle of Chamla was fought in Buner District of Swat, Pakistan between the forces of the Nawab of Amb and the Wāli of Swat. The conflict was due to a border dispute. The rulers of Afghanistan were allies of Swat. The Army of Amb with howitzer artillery and guns, defeated the army of Swat. The State of Swat surrendered to Nawab of Amb and the ruler of Swat was captured.
References
Barakzai dynasty
Buner District
History of Pakistan
|
Grant Gallagher (born 11 January 1991) is a Scottish footballer who is a utility player for Scottish League One side Stranraer.
Career
Born in Irvine,
Grant, predominantly a right back and centre midfielder, began his career at Celtic but did not make a single first-team appearance. He was released by the club in Summer 2010. In August of that year Gallagher joined Stranraer, he spent five years with the Stair Park side, making over 200 appearances scoring 15 goals.
In May 2015, Gallagher signed a one-year contract with Scottish Championship side Dumbarton, joining up with former manager at Stranraer, Stephen Aitken. He scored his first goal for the club in a 2–0 friendly win over Hearts. He scored twice on his competitive debut in a 3–2 victory over Morton. After 37 appearances for the club and four goals he was rewarded with a new deal in May 2016. His second season with 'The Sons' was ended by injury in September, however he agreed a new contract with the club in May 2017 until the summer of 2018. On his return to action, Gallagher suffered an Anterior cruciate ligament injury in a friendly against Partick Thistle that ruled him out for at least a further 6 months. He returned to action on 31 March 2018, making his first league appearance in 18 months in a defeat to Livingston. He was subsequently released by the club in May 2018, and joined Airdrieonians whom he left after another injury hit season Gallagher rejoined Stranraer in May 2019.
References
External links
1991 births
Living people
Celtic F.C. players
Stranraer F.C. players
Dumbarton F.C. players
Scottish men's footballers
Scottish Football League players
Men's association football defenders
Scottish Professional Football League players
Men's association football midfielders
Airdrieonians F.C. players
|
Richard Melzer (born December 8, 1979) is an American former professional basketball player who has played in the Australian National Basketball League, the German Bundesliga, NBA D-League, Continental Basketball Association, as well as stints in France and Israel. He primarily played power forward.
Melzer is a 1999 graduate of River Falls High School in Wisconsin. His brother Michael Grinnell was also a basketball prospect. Grinnell played for Carleton College in Minnesota since the Fall of 2008.
Melzer was named NCAA Division III Player of the Year by the National Association of Basketball Coaches (NABC) and the D-III News as a senior at Wisconsin–River Falls. He earned First Team All-America honours from the NABC his junior and senior seasons. He was named All-WIAC his last three seasons and was named league MVP his final two years and finished his career as the school's second all-time leading scorer with 2, 363 points, the third all-time leading rebounder with 821 boards, and the all-time leading shot-blocker with 186 rejections.
Melzer spent time trying out with the NBA's Washington Wizards, Chicago Bulls and the Orlando Magic. He also earned a spot on the San Antonio Spurs but was not named to the team's final roster. He led the Sioux Falls Skyforce to the Continental Basketball Association Championship in 2005. He also won a title with San Carlos in the Dominican Republic League and was voted MVP of the National Finals.
Melzer spent the 2005–06 season with the New Zealand Breakers of the NBL, earning NBL Player of the Week in Week 20.
On July 14, 2006, Melzler signed a two-year contract with the San Antonio Spurs. He appeared in four preseason games, averaging 2.8 points in 7.8 minutes. He was released by the Spurs on October 20, 2006.
Melzer signed a month contract with ASVEL Villeurbanne of France. He then moved to play for Hapoel Gilboa/Afula of Israel in January 2007.
Melzer also played for Artland Dragons in the German Bundesliga.
In July 2009, it was announced that Melzer would return to Australia, to play for the Cairns Taipans. He again won a Player of the Week award, but his form declined during the year and he returned to the United States to play for Rio Grande Valley Vipers in the NBA Development League.
Prior to the 2010–11 season Melzer returned to Israel, and signed with Hapoel Holon, which was coached by Dani Franco (who coached him when he played for Hapoel Gilboa/Afula).
In June 2011, he signed a contract with the New Yorker Phantoms Braunschweig in the German Bundesliga.
He is now coaching youth basketball, as well as making guest appearances on local sports television and radio shows.
References
External links
Richard Melzer at eurobasket.com
Richard Melzer at fiba.com
Richard Melzer at lnb.fr
Richard Melzer at realgm.com
1979 births
Living people
American expatriate basketball people in Australia
American expatriate basketball people in France
American expatriate basketball people in Germany
American expatriate basketball people in Israel
American expatriate basketball people in New Zealand
American men's basketball players
Artland Dragons players
ASVEL Basket players
Basketball Löwen Braunschweig players
Basketball players from Minnesota
Cairns Taipans players
Hapoel Gilboa/Afula players
Hapoel Holon players
Israeli Basketball Premier League players
New Zealand Breakers players
Power forwards (basketball)
Rio Grande Valley Vipers players
Sioux Falls Skyforce (CBA) players
Wisconsin–River Falls Falcons men's basketball players
|
Republic of Argentina v. NML Capital, Ltd., 573 U.S. 134 (2014), is a U.S. Supreme Court opinion regarding foreign sovereign immunity. After defaulting on its debt and losing a federal collection action, Argentina claimed that its foreign assets were immune from discovery. The Court found that no such immunity existed.
On the same day as it announced this opinion the Supreme Court denied Argentina's appeal of a court order prohibiting Argentina from giving preference to certain creditors. This was the third case involving Argentina that term, with BG Group Plc v. Republic of Argentina involving Argentina's refusal to obey a neutral arbitrator's order and Daimler AG v. Bauman involving atrocities committed by the Argentinian military junta during its Dirty War.
Background
In 2001 Argentina was in a severe economic depression. NML Capital, a 'vulture fund' that specializes in distressed sovereign debt, purchased Argentine public bonds at extreme discounts off a panicking market. Argentina then defaulted on $103 billion of debt. After announcing that it would not pay its debts Argentina offered its creditors a choice: accept new bonds worth 70% less, or receive nothing. The vast majority of bondholders accepted the new bonds. NML Capital did not.
Instead, NML Capital brought a collection action against Argentina in Manhattan federal district court. Finding that Argentina did have to pay its debt, District Judge Thomas Griesa ordered Argentina to pay plaintiff $2.4 billion and, pari passu, to stop favoring other creditors over NML Capital.
Argentina responded by pulling its assets out of the United States. Seeking to satisfy the judgment order, NML Capital undertook a worldwide search for Argentina's assets, at one point convincing Ghana to seize the Argentine Navy's and forcing Argentina's president to charter private airplanes to avoid having her state aircraft confiscated.
As part of its search for attachable assets NML Capital served subpoenas on Bank of America and Banco de la Nación Argentina. Argentina moved to quash, claiming that as a sovereign the locations of its assets were immune from discovery. Judge Griesa disagreed, ordering discovery on all assets "reasonably calculated to lead to attachable property." On Argentina's appeal the Second Circuit affirmed the discovery order. Still refusing to comply, Argentina then petitioned for a writ of certiorari from the Supreme Court of the United States, and the petition was granted. Arguments were held on April 21, 2014, with Deputy Solicitor General Edwin Kneedler appearing as an friend supporting Argentina and Theodore Olson appearing for the hedge funds.
Opinion
The Supreme Court affirmed, with Justice Scalia writing for the seven member majority. Scalia first traces the history of foreign sovereign immunity in the United States, from initially undisturbed Executive discretion, to the "muddling" noncommercial acts distinction the State Department adopted in 1952, to Congress's creation of the "comprehensive " Foreign Sovereign Immunities Act of 1976.
Scalia then turns to the statute's text finding the FSIA does not expressly address post judgment discovery. Argentina claimed that there is "meaning from this silence ", and since discovery is not expressly permitted it is, then, prohibited. Scalia disagrees. Emphasizing that FSIA is the comprehensive framework for sovereign immunity, Scalia finds that any claimed immunity must stand or fall on the Act's text alone. Noting that the "riddle " of Congress's motive was not "ours to solve ", Scalia found that since Congress did not mention foreign sovereign immunity from post judgment discovery in the Act, there can be no such immunity.
Dissent
Justice Ginsburg dissented. Noting that FISA and international law only allow the attachment of commercial property, Ginsburg objected to the discovery order's "unlimited inquiry ". Because NML Capital had offered no proof that foreign noncommercial assets were subject to attachment, Ginsburg questioned what authorization a US court could have to act as a "clearinghouse for information " about Argentina's noncommercial property.
Reaction
One month later Argentina, again, defaulted on its debt. Argentina then unsuccessfully attempted to sue the United States at the Hague for "judicial malevolence". The United Nations General Assembly condemned debt collection on sovereign debt. After Argentina continued to refuse to follow court orders, Judge Griesa held it in contempt. Creditors worldwide imitated NML Capital, with Argentina losing lawsuits to creditors in Germany and England.
On November 22, 2015, Argentina elected Mauricio Macri as its new president. By February 19, 2016, Argentina had reached a settlement with its bondholders and Judge Griesa lifted his injunction. On April 13, the Second Circuit affirmed, from the bench, directly after hearing oral arguments.
See also
List of United States Supreme Court cases, volume 573
References
External links
2014 in United States case law
United States Constitution Article Three case law
United States Supreme Court cases
United States Supreme Court cases of the Roberts Court
Foreign Sovereign Immunity Act case law
|
```xml
import type { BytesLike } from "../utils/index.js";
import type { Wordlist } from "../wordlists/index.js";
/**
* A **Mnemonic** wraps all properties required to compute [[link-bip-39]]
* seeds and convert between phrases and entropy.
*/
export declare class Mnemonic {
/**
* The mnemonic phrase of 12, 15, 18, 21 or 24 words.
*
* Use the [[wordlist]] ``split`` method to get the individual words.
*/
readonly phrase: string;
/**
* The password used for this mnemonic. If no password is used this
* is the empty string (i.e. ``""``) as per the specification.
*/
readonly password: string;
/**
* The wordlist for this mnemonic.
*/
readonly wordlist: Wordlist;
/**
* The underlying entropy which the mnemonic encodes.
*/
readonly entropy: string;
/**
* @private
*/
constructor(guard: any, entropy: string, phrase: string, password?: null | string, wordlist?: null | Wordlist);
/**
* Returns the seed for the mnemonic.
*/
computeSeed(): string;
/**
* Creates a new Mnemonic for the %%phrase%%.
*
* The default %%password%% is the empty string and the default
* wordlist is the [English wordlists](LangEn).
*/
static fromPhrase(phrase: string, password?: null | string, wordlist?: null | Wordlist): Mnemonic;
/**
* Create a new **Mnemonic** from the %%entropy%%.
*
* The default %%password%% is the empty string and the default
* wordlist is the [English wordlists](LangEn).
*/
static fromEntropy(_entropy: BytesLike, password?: null | string, wordlist?: null | Wordlist): Mnemonic;
/**
* Returns the phrase for %%mnemonic%%.
*/
static entropyToPhrase(_entropy: BytesLike, wordlist?: null | Wordlist): string;
/**
* Returns the entropy for %%phrase%%.
*/
static phraseToEntropy(phrase: string, wordlist?: null | Wordlist): string;
/**
* Returns true if %%phrase%% is a valid [[link-bip-39]] phrase.
*
* This checks all the provided words belong to the %%wordlist%%,
* that the length is valid and the checksum is correct.
*/
static isValidMnemonic(phrase: string, wordlist?: null | Wordlist): boolean;
}
//# sourceMappingURL=mnemonic.d.ts.map
```
|
```objective-c
/* config1b.h -- configuration for the LZO1B algorithm
This file is part of the LZO real-time data compression library.
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
published by the Free Software Foundation; either version 2 of
The LZO library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
along with the LZO library; see the file COPYING.
If not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Markus F.X.J. Oberhumer
<markus@oberhumer.com>
path_to_url
*/
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the library and is subject
to change.
*/
#ifndef __LZO_CONFIG1B_H
#define __LZO_CONFIG1B_H
#include "lzo_conf.h"
#include "lzo/lzo1b.h"
/***********************************************************************
// algorithm configuration
************************************************************************/
/* run bits (4 - 5) - the compressor and the decompressor
* must use the same value. */
#if !defined(RBITS)
# define RBITS 5
#endif
/* dictionary depth (0 - 6) - this only affects the compressor.
* 0 is fastest, 6 is best compression ratio */
#if !defined(DDBITS)
# define DDBITS 0
#endif
/* compression level (1 - 9) - this only affects the compressor.
* 1 is fastest, 9 is best compression ratio */
#if !defined(CLEVEL)
# define CLEVEL 1 /* fastest by default */
#endif
/* check configuration */
#if (RBITS < 4 || RBITS > 5)
# error "invalid RBITS"
#endif
#if (DDBITS < 0 || DDBITS > 6)
# error "invalid DDBITS"
#endif
#if (CLEVEL < 1 || CLEVEL > 9)
# error "invalid CLEVEL"
#endif
/***********************************************************************
// internal configuration
************************************************************************/
/* add a special code so that the decompressor can detect the
* end of the compressed data block (overhead is 3 bytes per block) */
#define LZO_EOF_CODE
/***********************************************************************
// algorithm internal configuration
************************************************************************/
/* choose the hashing strategy */
#ifndef LZO_HASH
#define LZO_HASH LZO_HASH_LZO_INCREMENTAL_A
#endif
/* config */
#define R_BITS RBITS
#define DD_BITS DDBITS
#ifndef D_BITS
#define D_BITS 14
#endif
/***********************************************************************
// optimization and debugging
************************************************************************/
/* Collect statistics */
#if 0 && !defined(LZO_COLLECT_STATS)
# define LZO_COLLECT_STATS
#endif
/***********************************************************************
//
************************************************************************/
#include "lzo1b_de.h"
#include "stats1b.h"
#include "lzo1b_cc.h"
#endif /* already included */
/*
vi:ts=4:et
*/
```
|
```java
package com.jaydenxiao.common.baserx;
/**
* des:
* Created by xsf
* on 2016.09.10:16
*/
public class ServerException extends Exception{
public ServerException(String msg){
super(msg);
}
}
```
|
Alberto Emilio Asseff (born 31 October 1942) is an Argentine lawyer and politician who served a National Deputy between 2011 and 2015, reassuming office in 2019.
Early life and education
Asseff graduated at Law at the University of Buenos Aires in 1968, where he started to be politically active in the centrist Civic Radical Union (UCR). After his graduation, he worked as an advisor in some administrations of UCR's politicians like Ricardo Balbín and Arturo Illia. In 1982 he created the National Constitutional Party, with former members of UCR. In this party was where Alberto Fernández, president of Argentina, made his first steps in politics. Fernandez left the NCP when Asseff started to be identified with some conservative Argentine politicians.
Political career
Asseff served as a National Deputy between 2011 and 2015, representing Buenos Aires province by the alliance between his party UNIR Constitutional Nationalist Party and Compromiso Federal, created by former president Alberto Rodríguez Saá. He was re-elected as a deputy in 2019, but on this occasion for Juntos por el Cambio, in charge since then. Asseff also served as member of Mercosur Parliament from his election in 2015 until 2019 as part of Unidos por una Nueva Alternativa.
For the 2019 Argentine general election, Asseff initially endorsed José Luis Espert for president, but later changed his position and supported Mauricio Macri of Juntos por el Cambio, which was criticized by Espert. He is a cousin of José Asseff, who was president of the Lebanese Club of Buenos Aires.
International politics
Internationally, Asseff signed the Madrid Charter of the far-right Spanish political party Vox, joining the alliance of right-wing and far-right politicians.
References
Living people
1942 births
20th-century Argentine lawyers
University of Buenos Aires alumni
Argentine people of Lebanese descent
Members of the Argentine Chamber of Deputies elected in Buenos Aires Province
|
Loyd Wright (December 24, 1892 – October 22, 1974) was an American attorney and lifetime Californian, who represented a number of movie stars, served as president of the State Bar of California, the American Bar Association, the Los Angeles County Bar Association, and the International Bar Association and was an unsuccessful candidate for the Republican nomination for the United States Senate from California.
Early life and legal career
Wright was born in San Jacinto, California on December 24, 1892. He attended the University of Southern California and secured a Bachelor of Laws degree from its law school in 1915. He began the practice of law, which he would remain in for fifty-five years, in Los Angeles.
Wright became known for his representation of movie actors. He represented Mary Pickford in her divorce suit against Douglas Fairbanks Sr. He also represented Charlie Chaplin, Jack Benny, Mae West and D.W. Griffith. From 1921 to 1936, Wright lectured at U.S.C.'s law school.
Bar officer and commission member
Wright interested himself in bar affairs, and in 1937 became president of the Los Angeles Bar Association, in which capacity he served for a year. In 1940, he served a year as president of the State Bar of California, and in 1955, served a year as president of the American Bar Association. Wright continued the practice of law, representing Jane Wyman in her divorce suit against Ronald Reagan, though Wyman asked Wright to accept $5,000 in settlement of his $7,500 bill.
During World War II, Wright attended the Command and General Staff School at Fort Leavenworth, Kansas, and then was appointed by the Justice Department as a member of the Board of Appeals in enemy alien hearings.
In 1955, Wright was asked by his friend, Vice President Richard Nixon, to serve as a chairman of the Commission on Government Security. He did, and the Committee recommended a thorough overhaul of government defenses against subversion. Wright served for ten years from 1954 as president of the International Bar Association.
Political run and later life
In 1962, Wright hired Murray Chotiner as his campaign manager and ran for the Republican U.S. Senate nomination, but was handily defeated by incumbent Thomas H. Kuchel.
On October 22, 1974, Wright died in Hemet, California.
References
1892 births
1974 deaths
California lawyers
University of Southern California alumni
USC Gould School of Law alumni
California Republicans
People from San Jacinto, California
20th-century American lawyers
|
```css
/* general ========================= */
* {
box-sizing: border-box;
}
body {
background-color: #eee;
color: #484644;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
margin: 0;
padding: 0;
}
h1 {
font-size: calc(2rem + 3vw);
letter-spacing: -0.05em;
line-height: 1;
margin: 0 0 0.25em 0;
opacity: 0.5;
}
/* path_to_url */
pre,
code,
textarea,
kbd,
samp,
tt {
font-family: monospace, monospace;
font-size: 1em;
}
/* our wrapper ========================= */
.demo__root {
display: flex;
flex-direction: column;
min-height: 100vh;
padding: 1rem 2rem;
}
.demo__root--virtualized {
height: 100vh;
}
.demo__root--virtualized main {
display: flex;
flex-direction: column;
flex: 1 0 auto;
}
.demo__root--virtualized pre {
flex: 1 0 auto;
padding: 0 !important;
}
.ReactVirtualized__List {
padding: 1rem;
}
/* nav ========================= */
.demo-nav {
padding-bottom: 2rem;
}
.demo-nav__ul {
align-items: flex-start;
display: block;
font-size: calc(0.75rem + 0.75vw);
letter-spacing: -0.02em;
list-style: none;
margin: 0 0 0 -0.75rem;
padding: 0;
}
.demo-nav__li {
display: inline-block;
position: relative;
}
.demo-nav__li + .demo-nav__li:before {
content: '/';
font-size: 1.5em;
font-weight: bold;
left: -0.15em;
opacity: 0.1;
position: absolute;
top: 0.05em;
}
.demo-nav__a {
display: block;
font-weight: bold;
padding: 0.5rem 1rem;
}
.demo-nav__li--current .demo-nav__a {
color: inherit;
/* opacity: .75; */
text-decoration: none;
}
/* options ========================= */
.options__container {
display: flex;
justify-content: flex-end;
padding-bottom: 1rem;
}
.options__option {
display: flex;
margin-left: 1rem;
}
.options__option--language {
margin-left: 0;
margin-right: auto;
}
.option__label {
align-items: center;
border: 1px solid #bbb;
border-radius: 0.2em;
box-shadow: 0 1px 0 1px rgba(0, 0, 0, 0.04);
cursor: pointer;
display: flex;
font-size: 0.9rem;
padding: 0.25rem 1rem 0.25rem 0.5rem;
}
.option__checkbox {
margin-right: 0.5rem;
vertical-align: top;
}
/* class applies to select element itself, not a wrapper element */
.select {
display: block;
font-size: 0.9rem;
padding: 0.6em 1.8em 0.5em 0.8em;
width: 100%;
max-width: 100%; /* useful when width is set to anything other than 100% */
box-sizing: border-box;
margin: 0;
border: 1px solid #bbb;
box-shadow: 0 1px 0 1px rgba(0, 0, 0, 0.04);
border-radius: 0.2em;
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
background-color: #fff;
/* note: bg image below uses 2 urls. The first is an svg data uri for the arrow icon, and the second is the gradient.
for the icon, if you want to change the color, be sure to use `%23` instead of `#`, since it's a url. You can also swap in a different svg icon or an external image reference
*/
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'),
linear-gradient(to bottom, #ffffff 0%, #e5e5e5 100%);
background-repeat: no-repeat, repeat;
/* arrow icon position (1em from the right, 50% vertical) , then gradient position*/
background-position: right 0.7em top 50%, 0 0;
/* icon size, then gradient */
background-size: 0.65em auto, 100%;
}
/* Hide arrow icon in IE browsers */
.select::-ms-expand {
display: none;
}
/* Hover style */
.select:hover {
border-color: #888;
}
/* Focus style */
.select:focus {
border-color: #aaa;
/* It'd be nice to use -webkit-focus-ring-color here but it doesn't work on box-shadow */
box-shadow: 0 0 1px 3px rgba(59, 153, 252, 0.7);
box-shadow: 0 0 0 3px -moz-mac-focusring;
color: #222;
outline: none;
}
/* Set options to normal weight */
.select option {
font-weight: normal;
}
/* Support for rtl text, explicit support for Arabic and Hebrew */
*[dir='rtl'] .select,
:root:lang(ar) .select,
:root:lang(iw) .select {
background-position: left 0.7em top 50%, 0 0;
padding: 0.6em 0.8em 0.5em 1.4em;
}
/* Disabled styles */
.select:disabled,
.select[aria-disabled='true'] {
color: graytext;
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22graytext%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'),
linear-gradient(to bottom, #ffffff 0%, #e5e5e5 100%);
}
.select:disabled:hover,
.select[aria-disabled='true'] {
border-color: #aaa;
}
/* examples ========================= */
.example__container {
display: flex;
flex: 1 0 auto;
}
.example__container > * {
flex: 1 0 auto;
margin: 0;
width: 50%;
}
.textarea__wrapper {
display: flex;
padding: 1rem 1rem 1rem 0;
}
textarea {
flex: 1 0 auto;
padding: 1rem;
resize: vertical;
}
pre {
border: 1px solid #bbb;
box-shadow: 0 5px 50px rgba(30, 20, 10, 0.1);
margin: 0 !important; /* some themes try to override this */
}
/* github link ========================= */
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
@keyframes octocat-wave {
0%,
100% {
transform: rotate(0);
}
20%,
60% {
transform: rotate(-25deg);
}
40%,
80% {
transform: rotate(10deg);
}
}
@media (max-width: 500px) {
.github-corner:hover .octo-arm {
animation: none;
}
.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
}
```
|
Abeer Singh Godhwani (formerly known as Karan Godhwani) is an Indian television actor. He is known for his portrayal of Vicky Bhalla in the comedy romance Jugni Chali Jalandhar, NK in the romantic drama Iss Pyaar Ko Kya Naam Doon?, Johnny in the light-hearted comedy Jeannie Aur Juju, Vikram Rathi in the popular serial Diya Aur Baati Hum, Kushal in the sitcom TV, Biwi aur Main and Kishan in the television series Agnifera. He was also seen in the romantic shows Dil Se Dil Tak and Kasam Tere Pyaar Ki.
Career
He started his career, portraying the role of The NRI VikramJeet aka Vicky Bhalla in Sab TV's Comedy/Drama, jugni-chali-jalandhar. He Then Played the street smart, Adi in Color's Show, Rang badalti Odhani. He played in Zee TV's show Sanjog Se Bani Sangini as Shankar. He then entered Star Plus's Iss Pyaar Ko Kya Naam Doon? as N.K.
His next role came in the Colors TV's show Chhal-Sheh Aur Maat as Ranveer Jaiswal. Later on in the year 2013, He got the opportunity to play the magical, charming, funny, and handsome character Of Jin Johnny, In the Sab TV's Comedy, Jeannie Aur Juju. After That he got the role of Rahul Pyarelal in the Color's Show, Mrs. Pammi Pyarelal. He then reentered Jeannie Aur Juju in late 2013. After that he got to portray another Negative Role in Life Ok's Hum Ne Li Hai Shapath as a game boy super villain. He then Interacted with Sab TV again for his 3rd Time, another comedy show, Tu Mere agal bagal hai as Rohit, a negative role, but only for the beginning.
Finally he was offered a show airing on Star Plus. The very famous and popular, Diya Aur Baati hum, replacing Gautum Gulati as Vikram Rathi. In September 2014, he joined the cast of Diya Aur Baati Hum as Vikram Rathi. In 2017, he joined the show Dil Se Dil Tak, which premiered on Colors TV on January 30, 2017. He also plays the role of Kaushal in Sab Tv show TV, Biwi aur Main. He also played the role of Akshay Kapoor in the serial Kasam Tere Pyaar Ki post the leap.
In 2018, Goddwani played the lead role of Kishan Thakur in the &TV serial Agniphera alongside Yukti Kapoor and Simraan Kaur. In 2020, he made a cameo appearance Sujoy Banerjee in Sony TV's Ishaaron Ishaaron Mein. In 2022, he enter Colors TV's popular show Naagin 6 as Inspector Vijay Shukla. Since January 2023, he portraying Kairav Goenka in StarPlus' Yeh Rishta Kya Kehlata Hai.
Television
References
External links
Karan Goddwani on IMDb
Sindhi people
Living people
Indian male television actors
Indian male soap opera actors
Place of birth missing (living people)
1988 births
|
```swift
//////////////////////////////////////////////////////////////////////////////////
//
// B L I N K
//
//
// This file is part of Blink.
//
// Blink is free software: you can redistribute it and/or modify
// (at your option) any later version.
//
// Blink 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
//
// along with Blink. If not, see <path_to_url
//
// In addition, Blink is also subject to certain additional terms under
// GNU GPL version 3 section 7.
//
// You should have received a copy of these additional terms immediately
// which accompanied the Blink Source Code. If not, see
// <path_to_url
//
////////////////////////////////////////////////////////////////////////////////
import XCTest
import BlinkCode
@testable import Blink
final class FileLocationPathTests: XCTestCase {
let LocalRelativePath = "path/to/files"
let LocalAbsolutePath = "/absolute/path/to/files"
let LocalHomePath = "~/"
let RemoteRelativePath = "sftp:host:path/to/files"
let RemoteAbsolutePath = "sftp:host:/c:/path/to/files"
// These should be untouched and canonicalized by Translator
let RemoteHomePath = "user@host#2222:~/path/to/files"
func testFileLocationPath() throws {
// All locations should start with /
let localPath = try! FileLocationPath(LocalRelativePath)
XCTAssertTrue(localPath.proto == .local)
// FM default path on tests is "/"
XCTAssertTrue(localPath.filePath == "/path/to/files")
let localPathURI = localPath.codeFileSystemURI!
XCTAssertTrue(localPathURI == (try! URI(string: "blinkfs:/path/to/files")))
let localAbsolutePath = try! FileLocationPath(LocalAbsolutePath)
XCTAssertTrue(localAbsolutePath.proto == .local)
XCTAssertTrue(localAbsolutePath.filePath == "/absolute/path/to/files")
let localAbsolutePathURI = localAbsolutePath.codeFileSystemURI!
XCTAssertTrue(localAbsolutePathURI == (try! URI(string: "blinkfs:/absolute/path/to/files")))
let homePath = try! FileLocationPath(LocalHomePath)
XCTAssertTrue(homePath.proto == .local)
XCTAssertTrue(homePath.filePath == "/~")
let homePathURI = homePath.codeFileSystemURI!
XCTAssertTrue(homePathURI == (try! URI(string: "blinkfs:/~")))
let emptyLocalPath = try! FileLocationPath("")
XCTAssertTrue(emptyLocalPath.proto == .local)
XCTAssertTrue(emptyLocalPath.filePath == "/")
XCTAssertTrue(emptyLocalPath.codeFileSystemURI! == (try! URI(string: "blinkfs:/")))
let remotePath = try! FileLocationPath(RemoteRelativePath)
XCTAssertTrue(remotePath.proto == .sftp)
XCTAssertTrue(remotePath.hostPath == "host")
XCTAssertTrue(remotePath.filePath == "/~/path/to/files")
let remotePathURI = remotePath.codeFileSystemURI!
XCTAssertTrue(remotePathURI == (try! URI(string: "blinksftp://host/~/path/to/files")))
let remoteAbsolutePath = try! FileLocationPath(RemoteAbsolutePath)
XCTAssertTrue(remoteAbsolutePath.proto == .sftp)
XCTAssertTrue(remoteAbsolutePath.hostPath == "host")
XCTAssertTrue(remoteAbsolutePath.filePath == "/c:/path/to/files")
let remoteAbsolutePathURI = remoteAbsolutePath.codeFileSystemURI!
XCTAssertTrue(remoteAbsolutePathURI == (try! URI(string: "blinksftp://host/c:/path/to/files")))
let remoteHomePath = try! FileLocationPath(RemoteHomePath)
XCTAssertTrue(remoteHomePath.proto == nil)
XCTAssertTrue(remoteHomePath.hostPath == "user@host#2222")
XCTAssertTrue(remoteHomePath.filePath == "/~/path/to/files")
let remoteHomeURI = remoteHomePath.codeFileSystemURI!
XCTAssertTrue(remoteHomeURI == (try! URI(string: "blinksftp://user@host:2222/~/path/to/files")))
let emptyRemoteHome = try! FileLocationPath("host:")
XCTAssertTrue(emptyRemoteHome.proto == nil)
XCTAssertTrue(emptyRemoteHome.hostPath == "host")
XCTAssertTrue(emptyRemoteHome.filePath == "/~")
XCTAssertTrue(emptyRemoteHome.codeFileSystemURI! == (try! URI(string: "blinksftp://host/~")))
}
}
```
|
Eleanor Oglethorpe (1662–1732) was an employee of the royal household during the reigns of Charles II and James II. She followed James II to France, where he was exiled after the Glorious Revolution. Eleanor and her husband Theophilus Oglethorpe returned to their estate outside London, but remained secretly and actively in the service of the House of Stuart. After Theophilus and William III died in 1702 she became an advisor to Queen Anne, even as she continued working for the Jacobite cause. Eleanor Oglethorpe was the mother of James Edward Oglethorpe, the philanthropist, social reformer, politician, and soldier who founded Georgia.
Early life
Eleanor Wall, or Du-Vall, was born in Tipperary, Ireland, where she was raised Catholic. She traced her family ancestry to Richard Seigneur de Val Dery, an associate of William the Conqueror; and she claimed kinship to nobility, including the House of Argyll, a prominent Scottish clan loyal to the House of Stuart. Her father, Richard Wall, loyally defended Charles I against Oliver Cromwell, beginning a family affiliation with the House of Stuart.
Employment with the House of Stuart
Eleanor Wall was employed in the household of Charles II at a young age. In 1681, while holding the position of head laundress she met and soon married a young army officer, Theophilus Oglethorpe, who was quartered on the Thames River next to the royal palace. Through both loyalty and ability the couple rose in stature during the reign of Charles II, and both were present at his death in 1685.
Charles II was succeeded by his brother, James II, who rewarded the Oglethorpes’ continued loyalty by making Eleanor Lady Oglethorpe and knighting Theophilus. James II was Catholic as well as a believer in the theory of divine right of kings advanced by his grandfather, James I. In order to restore a Protestant monarchy and balanced government, Parliament engineered a coup d’état, soon known as the Glorious Revolution, that brought William III and Mary II to power.
Agent of the Jacobite Cause
James II went into exile in France, where he was supported by Louis XIV. Eleanor and Theophilus Oglethorpe remained loyal to James II and followed him to Paris. They soon returned to their estate, Westbrook Manor, in Surrey. From there they continued to secretly serve James II and plotted his return to the throne. After the deaths of James II and Theophilus in 1702, Eleanor remained loyal to the Catholic Stuart line by supporting and advising James Francis Edward Stuart, heir of James II, who was recognized by France as James III and was known in England as The Old Pretender.
Eleanor Oglethorpe continued her efforts on behalf of James III until her death in 1732. Westbrook Manor became a meeting place for Jacobites planning the restoration of the Catholic House of Stuart, and who were engaged in smuggling to finance the cause. The manor house had a trap door leading to a tunnel to the town of Godalming that was used by the conspirators.
Children
Eleanor Oglethorpe’s children were drawn into the Jacobite cause and actively supported James III. Sons Lewis and Theophilus Junior remained with her in London for a time and served in Parliament after their father’s death. Eventually Lewis went to Europe, where he died in combat. Theophilus Junior later worked for the East India Company then returned to Europe seeking a position with James III; he failed to secure a position but was made Baron Oglethorpe, probably as an honor to Eleanor. Daughters Anne Henrietta, baptized An Harath (1683–1756), Eleanor (1684–1775), Luisa Mary (1693-?), and Frances Charlotte (1695-?) all became active Jacobites. Anne remained at Westbrook to assist her parents, and later moved to Europe; she was made Countess of Oglethorpe by James III. Daughter Eleanor married Marquis de Mezieres, with whom she had seven children; they lived in France from 1689; descendants include members of royal families throughout Europe. Luisa (Molly) married the Marquis de Bersompierre and lived in France and then in Spain, where she held a post in the royal court. Frances (Fanny) married the Marquis des Marches of Piedmont, with whom she had at least one son; she lived in France until she became lady-in-waiting to the Queen of Savoy and Sicily about 1726.
Oglethorpe intrigues led to rumors about Eleanor’s children that developed into myths. In one instance, James III was rumored to be James Oglethorpe (not James Edward who was born in 1696), switched at birth when the actual Stuart heir died in 1689. In another, Anne or Fanny Oglethorpe were variously depicted as Queen Oglethorpe or Her Oglethorpean Majesty, and mistress to James III.
Eleanor Oglethorpe’s youngest and most famous child, James Edward Oglethorpe (1696–1785), managed to distance himself sufficiently from the Jacobite cause to become an effective Member of Parliament and notable presence in eighteenth century London society.
References
Bibliography
Ettinger, Amos Aschbach. James Edward Oglethorpe: Imperial Idealist. Archon Books, 1968. Reprinted with permission of Oxford University Press.
Hill, Patricia Kneas. The Oglethorpe Ladies. Atlanta: Cherokee Publishing Company, 1977.
Lang, Andrew. "Queen Oglethorpe" (with Alice Shield). Historical Mysteries. London: Smith, Elder, & Co., 1904.
Monod, Paul Kleber. Jacobitism and the English People, 1688-1788. Cambridge: Cambridge University Press, 1989.
Monod, Paul Kleber. "Dangerous Merchandise: Smuggling, Jacobitism, and Commercial Culture in Southeast England, 1690-1760." The Journal of British Studies. 30 (2): 150-182.
1662 births
1732 deaths
People from County Tipperary
Irish Jacobites
18th-century spies
17th-century Irish women
18th-century Irish women
|
The Anticosti-class minesweepers were a class of minesweepers that served with the Canadian Forces from 1989–2000. The class consisted of two former oil rig supply vessels, Jean Tide and Joyce Tide. They were acquired by Maritime Command (MARCOM) and commissioned in May 1989 with Jean Tide becoming and Joyce Tide becoming . Once the s became operational, the Anticosti class was discarded and the two ships returned to mercantile use.
Design
Laid down as Lady Joyce and Lady Jean by Allied Shipbuilders Ltd. of Vancouver, the two ships of the class were initially constructed for use as offshore drill-rig supply vessels by International Offshore Services. Later renamed, they were purchased in 1988 by the Maritime Command of the Canadian Forces and converted into minesweepers. The vessels were long overall with a beam of and a draught of . Fully loaded, the ships of the class displaced .
The Anticosti class was powered by four NOHAB Polar SF 16RS diesel engines driving two shafts creating and one Gil Jet azimuth bow thruster. This created a maximum speed of and an endurance of at . The vessels had a complement of 5 officers and 18 ratings. The two ships of the class were equipped two Racal Decca navigation radars operating on the I band. For minesweeping purposes, they were provided with mechanical minesweeping equipment and a high frequency, towed side scan variable depth sonar. The vessels were rated as ice class 3 and suitable for employment in light ice.
Ships
Service history
The two ships were constructed by Allied Shipbuilders Ltd. of Vancouver and named Joyce Tide and Jean Tide. After completion Jean Tide served as an oil rig logistics support vessel for International Offshore Service of Liberia. In 1975 she was sold to Tidewater Marine. Jean Tide remained with this company until her sale in 1988.
As part of the plan for the Naval Reserve to take over minesweeping and coastal operations, MARCOM began its effort to provide ships for training. MARCOM acquired two ships in March 1988. The ships were handed over for conversion by Fenco MacLaren Incorporated (later SNC-Lavalin Defence Programs Inc.) at Halifax, Nova Scotia and commissioned. Anticosti (formerly Jean Tide) was commissioned on 7 May 1989 with hull number MSA 110. Moresby (formerly Joyce Tide) entered service on 1 January 1990 with the hull number MSA 112.
The vessels sailed to Marystown, Newfoundland for conversion. In April 1990 they had their mechanical sweep gear and sonar fitted. Anticosti was assigned to Maritime Forces Atlantic (MARLANT) as a minesweeping training vessel in preparation for the Maritime Coastal Defence Vessel Project (MCDV), which would become the Kingston class in the late 1990s. Anticosti was deployed by MARLANT in the annual MARCOT exercises as a minelayer. In March 1997, Moresby transferred to CFB Esquimalt.
During the investigation into the Swissair Flight 111 crash in September 1998, Anticosti was among the Maritime Command vessels that responded to the crash site. She among the many ships scoured the sea looking for the aircraft's black box as part of Operation "Persistence". In March 1999, Anticosti sailed with Kingston-class vessels and to the Baltic Sea to participate in the NATO naval exercise "Blue Game".
After the Kingston class entered service, the Anticosti class was identified as surplus and Moresby paid off on 10 March 2000. Anticosti paid off on 21 March 2000. They were sold to commercial interests in January 2002.
References
Notes
References
External links
Mine warfare vessel classes
|
```python
#!/usr/bin/env python3
#
#
#
# Author(s): Rylie Pavlik <rylie.pavlik@collabora.com>
#
# Purpose: This script checks some "business logic" in the XML registry.
import argparse
import re
import sys
from pathlib import Path
from collections import defaultdict, deque, namedtuple
from check_spec_links import VulkanEntityDatabase as OrigEntityDatabase
from reg import Registry
from spec_tools.consistency_tools import XMLChecker
from spec_tools.util import findNamedElem, getElemName, getElemType
from apiconventions import APIConventions
from parse_dependency import dependencyNames
# These are extensions which do not follow the usual naming conventions,
# specifying the alternate convention they follow
EXTENSION_ENUM_NAME_SPELLING_CHANGE = {
'VK_EXT_swapchain_colorspace': 'VK_EXT_SWAPCHAIN_COLOR_SPACE',
}
# These are extensions whose names *look* like they end in version numbers,
# but do not
EXTENSION_NAME_VERSION_EXCEPTIONS = (
'VK_AMD_gpu_shader_int16',
'VK_EXT_index_type_uint8',
'VK_EXT_shader_image_atomic_int64',
'VK_KHR_video_decode_h264',
'VK_KHR_video_decode_h265',
'VK_KHR_video_decode_av1',
'VK_KHR_video_encode_h264',
'VK_KHR_video_encode_h265',
'VK_KHR_external_fence_win32',
'VK_KHR_external_memory_win32',
'VK_KHR_external_semaphore_win32',
'VK_KHR_index_type_uint8',
'VK_KHR_shader_atomic_int64',
'VK_KHR_shader_float16_int8',
'VK_KHR_spirv_1_4',
'VK_NV_external_memory_win32',
'VK_RESERVED_do_not_use_146',
'VK_RESERVED_do_not_use_94',
)
# These are APIs which can be required by an extension despite not having
# suffixes matching the vendor ID of that extension.
# Most are external types.
# We could make this an (extension name, api name) set to be more specific.
EXTENSION_API_NAME_EXCEPTIONS = {
'AHardwareBuffer',
'ANativeWindow',
'CAMetalLayer',
'IOSurfaceRef',
'MTLBuffer_id',
'MTLCommandQueue_id',
'MTLDevice_id',
'MTLSharedEvent_id',
'MTLTexture_id',
'VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE',
'VkFlags64',
'VkPipelineCacheCreateFlagBits',
'VkPipelineColorBlendStateCreateFlagBits',
'VkPipelineDepthStencilStateCreateFlagBits',
'VkPipelineLayoutCreateFlagBits',
}
# These are APIs which contain _RESERVED_ intentionally
EXTENSION_NAME_RESERVED_EXCEPTIONS = {
'VK_STRUCTURE_TYPE_PRIVATE_VENDOR_INFO_RESERVED_OFFSET_0_NV'
}
# Exceptions to pointer parameter naming rules
# Keyed by (entity name, type, name).
CHECK_PARAM_POINTER_NAME_EXCEPTIONS = {
('vkGetDrmDisplayEXT', 'VkDisplayKHR', 'display') : None,
}
# Exceptions to pNext member requiring an optional attribute
CHECK_MEMBER_PNEXT_OPTIONAL_EXCEPTIONS = (
'VkVideoEncodeInfoKHR',
'VkVideoEncodeRateControlLayerInfoKHR',
)
# Exceptions to VK_INCOMPLETE being required for, and only applicable to, array
# enumeration functions
CHECK_ARRAY_ENUMERATION_RETURN_CODE_EXCEPTIONS = (
'vkGetDeviceFaultInfoEXT',
'vkEnumerateDeviceLayerProperties',
'vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI',
)
# Exceptions to unknown structure type constants.
# This is most likely an error in this script, not the XML.
# It does not understand Vulkan SC (alternate 'api') types.
CHECK_TYPE_STYPE_EXCEPTIONS = (
'VK_STRUCTURE_TYPE_PERFORMANCE_QUERY_RESERVATION_INFO_KHR',
'VK_STRUCTURE_TYPE_PIPELINE_POOL_SIZE',
'VK_STRUCTURE_TYPE_FAULT_DATA',
'VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_SC_1_0_FEATURES',
'VK_STRUCTURE_TYPE_DEVICE_OBJECT_RESERVATION_CREATE_INFO',
'VK_STRUCTURE_TYPE_PIPELINE_OFFLINE_CREATE_INFO',
'VK_STRUCTURE_TYPE_FAULT_CALLBACK_INFO',
'VK_STRUCTURE_TYPE_COMMAND_POOL_MEMORY_RESERVATION_CREATE_INFO',
your_sha256_hashATE_INFO_NV',
'VK_STRUCTURE_TYPE_COMMAND_POOL_MEMORY_CONSUMPTION',
'VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_SC_1_0_PROPERTIES',
)
def get_extension_commands(reg):
extension_cmds = set()
for ext in reg.extensions:
for cmd in ext.findall('./require/command[@name]'):
extension_cmds.add(cmd.get('name'))
return extension_cmds
# Regular expression matching an extension name ending in a (possible) version number
EXTNAME_RE = re.compile(r'(?P<base>(\w+[A-Za-z]))(?P<version>\d+)')
DESTROY_PREFIX = 'vkDestroy'
TYPEENUM = 'VkStructureType'
SPECIFICATION_DIR = Path(__file__).parent.parent
REVISION_RE = re.compile(r' *[*] Revision (?P<num>[1-9][0-9]*),.*')
def get_extension_source(extname):
fn = f'{extname}.adoc'
return str(SPECIFICATION_DIR / 'appendices' / fn)
class EntityDatabase(OrigEntityDatabase):
def __init__(self, args):
"""Retain command-line arguments for later use in makeRegistry"""
self.args = args
super().__init__()
# Override base class method to not exclude 'disabled' extensions
def getExclusionSet(self):
"""Return a set of "support=" attribute strings that should not be included in the database.
Called only during construction."""
return set(())
def makeRegistry(self):
try:
import lxml.etree as etree
HAS_LXML = True
except ImportError:
HAS_LXML = False
if not HAS_LXML:
return super().makeRegistry()
if len(self.args.files) > 0:
registryFile = self.args.files[0]
else:
registryFile = str(SPECIFICATION_DIR / 'xml/vk.xml')
registry = Registry()
registry.filename = registryFile
registry.loadElementTree(etree.parse(registryFile))
return registry
class Checker(XMLChecker):
def __init__(self, args):
manual_types_to_codes = {
# These are hard-coded "manual" return codes:
# the codes of the value (string, list, or tuple)
# are available for a command if-and-only-if
# the key type is passed as an input.
'VkFormat': 'VK_ERROR_FORMAT_NOT_SUPPORTED'
}
forward_only = {
# Like the above, but these are only valid in the
# "type implies return code" direction
}
reverse_only = {
# like the above, but these are only valid in the
# "return code implies type or its descendant" direction
# "XrDuration": "XR_TIMEOUT_EXPIRED"
}
# Some return codes are related in that only one of a set
# may be returned by a command
# (eg. XR_ERROR_SESSION_RUNNING and XR_ERROR_SESSION_NOT_RUNNING)
self.exclusive_return_code_sets = tuple(
# set(("XR_ERROR_SESSION_NOT_RUNNING", "XR_ERROR_SESSION_RUNNING")),
)
# This is used to report collisions.
conventions = APIConventions()
db = EntityDatabase(args)
self.extension_cmds = get_extension_commands(db.registry)
# Dict of entity name to a list of messages to suppress. (Exclude any context data and "Warning:"/"Error:")
# Keys are entity names, values are tuples or lists of message text to suppress.
suppressions = {}
# Structures explicitly allowed to have 'limittype' attributes
self.allowedStructs = set((
'VkFormatProperties',
'VkFormatProperties2',
'VkPhysicalDeviceProperties',
'VkPhysicalDeviceProperties2',
'VkPhysicalDeviceLimits',
'VkQueueFamilyProperties',
'VkQueueFamilyProperties2',
'VkSparseImageFormatProperties',
'VkSparseImageFormatProperties2',
'VkPhysicalDeviceLayeredApiPropertiesKHR',
'VkVideoCapabilitiesKHR',
'VkVideoFormatPropertiesKHR',
))
# Substructures of allowed structures. This can be found by looking
# at tags, but there are so few cases that it is hardwired for now.
self.nestedStructs = set((
'VkPhysicalDeviceLimits',
'VkPhysicalDeviceSparseProperties',
'VkPhysicalDeviceProperties',
'VkQueueFamilyProperties',
'VkSparseImageFormatProperties',
))
# Structures all of whose (non pNext/sType) members are required to
# have 'limittype' attributes, as are their descendants
self.requiredStructs = set((
'VkPhysicalDeviceProperties',
'VkPhysicalDeviceProperties2',
'VkPhysicalDeviceLimits',
'VkSparseImageFormatProperties',
'VkSparseImageFormatProperties2',
'VkPhysicalDeviceLayeredApiPropertiesKHR',
))
# Structures which have already have their limittype attributes validated
self.validatedLimittype = set()
# Initialize superclass
super().__init__(entity_db=db, conventions=conventions,
manual_types_to_codes=manual_types_to_codes,
forward_only_types_to_codes=forward_only,
reverse_only_types_to_codes=reverse_only,
suppressions=suppressions,
display_warnings=args.warn)
def check(self):
"""Extends base class behavior with additional checks"""
# This test is not run on a per-structure basis, but loops over
# specific structures
self.check_type_required_limittype()
super().check()
def check_command(self, name, info):
"""Extends base class behavior with additional checks"""
if name[0:5] == 'vkCmd':
if info.elem.get('tasks') is None:
self.record_error(f'{name} is a vkCmd* command, but is missing a "tasks" attribute')
super().check_command(name, info)
def check_command_return_codes_basic(self, name, info,
successcodes, errorcodes):
"""Check a command's return codes for consistency.
Called on every command."""
# Check that all extension commands can return the code associated
# with trying to use an extension that was not enabled.
# if name in self.extension_cmds and UNSUPPORTED not in errorcodes:
# self.record_error('Missing expected return code',
# UNSUPPORTED,
# 'implied due to being an extension command')
codes = successcodes.union(errorcodes)
# Check that all return codes are recognized.
unrecognized = [code for code in codes if not self.is_enum_value(code, 'VkResult')]
if len(unrecognized) > 0:
self.record_error('Unrecognized return code(s):',
', '.join(unrecognized))
elem = info.elem
params = [(getElemName(elt), elt) for elt in elem.findall('param')]
def is_count_output(name, elt):
# Must end with Count or Size,
# not be const,
# and be a pointer (detected by naming convention)
return (name.endswith('Count') or name.endswith('Size')) \
and (elt.tail is None or 'const' not in elt.tail) \
and (name.startswith('p'))
countParams = [elt
for name, elt in params
if is_count_output(name, elt)]
if countParams:
assert(len(countParams) == 1)
if 'VK_INCOMPLETE' not in successcodes:
message = "Apparent enumeration of an array without VK_INCOMPLETE in successcodes for command {}.".format(name)
if name in CHECK_ARRAY_ENUMERATION_RETURN_CODE_EXCEPTIONS:
self.record_warning('(Allowed exception)', message)
else:
self.record_error(message)
elif 'VK_INCOMPLETE' in successcodes:
message = "VK_INCOMPLETE in successcodes of command {} that is apparently not an array enumeration.".format(name)
if name in CHECK_ARRAY_ENUMERATION_RETURN_CODE_EXCEPTIONS:
self.record_warning('(Allowed exception)', message)
else:
self.record_error(message)
for code in (('VK_ERROR_UNKNOWN', 'VK_ERROR_VALIDATION_FAILED', 'VK_ERROR_VALIDATION_FAILED_EXT')):
if code in errorcodes:
message = f'{code} is implicit and not allowed in errorcodes of {name}'
self.record_error(message)
def check_param(self, param):
"""Check a member of a struct or a param of a function.
Called from check_params."""
super().check_param(param)
if not self.is_api_type(param):
return
param_text = ''.join(param.itertext())
param_name = getElemName(param)
# Make sure the number of leading 'p' matches the pointer count.
pointercount = param.find('type').tail
if pointercount:
pointercount = pointercount.count('*')
if pointercount:
prefix = 'p' * pointercount
if not param_name.startswith(prefix):
param_type = param.find('type').text
message = "Apparently incorrect pointer-related name prefix for {} - expected it to start with '{}'".format(
param_text, prefix)
if (self.entity, param_type, param_name) in CHECK_PARAM_POINTER_NAME_EXCEPTIONS:
self.record_warning('(Allowed exception)', message, elem=param)
else:
self.record_error(message, elem=param)
# Make sure no members have optional="false" attributes
optional = param.get('optional')
if optional == 'false':
message = f'{self.entity}.{param_name} member has disallowed \'optional="false"\' attribute (remove this attribute)'
self.record_error(message, elem=param)
# Make sure pNext members have optional="true" attributes
if param_name == self.conventions.nextpointer_member_name:
optional = param.get('optional')
if optional is None or optional != 'true':
message = f'{self.entity}.pNext member is missing \'optional="true"\' attribute'
if self.entity in CHECK_MEMBER_PNEXT_OPTIONAL_EXCEPTIONS:
self.record_warning('(Allowed exception)', message, elem=param)
else:
self.record_error(message, elem=param)
def check_type_stype(self, name, info, type_elts):
"""Check a struct type's sType member"""
if len(type_elts) > 1:
self.record_error(
'Have more than one member of type', TYPEENUM)
else:
type_elt = type_elts[0]
val = type_elt.get('values')
if val and not self.is_enum_value(val, TYPEENUM):
message = f'{self.entity} has unknown structure type constant {val}'
if val in CHECK_TYPE_STYPE_EXCEPTIONS:
self.record_warning('(Allowed exception)', message)
else:
self.record_error(message)
def check_type_pnext(self, name, info):
"""Check a struct type's pNext member, if present"""
next_name = self.conventions.nextpointer_member_name
next_member = findNamedElem(info.elem.findall('member'), next_name)
if next_member is not None:
# Ensure that the 'optional' attribute is set to 'true'
optional = next_member.get('optional')
if optional is None or optional != 'true':
message = f'{name}.{next_name} member is missing \'optional="true"\' attribute'
if name in CHECK_MEMBER_PNEXT_OPTIONAL_EXCEPTIONS:
self.record_warning('(Allowed exception)', message)
else:
self.record_error(message)
def __isLimittypeStruct(self, name, info, allowedStructs):
"""Check if a type element is a structure allowed to have 'limittype' attributes
name - name of a structure
info - corresponding TypeInfo object
allowedStructs - set of struct names explicitly allowed"""
# Is this an explicitly allowed struct?
if name in allowedStructs:
return True
# Is this a struct extending an explicitly allowed struct?
extends = info.elem.get('structextends')
if extends is not None:
# See if any name in the structextends attribute is an allowed
# struct
if len(set(extends.split(',')) & allowedStructs) > 0:
return True
return False
def __validateStructLimittypes(self, name, info, requiredLimittype):
"""Validate 'limittype' attributes for a single struct.
info - TypeInfo for a struct <type>
requiredLimittype - True if members *must* have a limittype"""
# Do not re-check structures
if name in self.validatedLimittype:
return {}
self.validatedLimittype.add(name)
limittypeDiags = namedtuple('limittypeDiags', ['missing', 'invalid'])
badFields = defaultdict(lambda : limittypeDiags(missing=[], invalid=[]))
validLimittypes = { 'min', 'max', 'not', 'pot', 'mul', 'bits', 'bitmask', 'range', 'struct', 'exact', 'noauto' }
for member in info.getMembers():
memberName = member.findtext('name')
if memberName in ['sType', 'pNext']:
continue
limittype = member.get('limittype')
if limittype is None:
# Do not tag this as missing if it is not required
if requiredLimittype:
badFields[info.elem.get('name')].missing.append(memberName)
elif limittype == 'struct':
typeName = member.findtext('type')
memberType = self.reg.typedict[typeName]
badFields.update(self.__validateStructLimittypes(typeName, memberType, requiredLimittype))
else:
for value in limittype.split(','):
if value not in validLimittypes:
badFields[info.elem.get('name')].invalid.append(memberName)
return badFields
def check_type_disallowed_limittype(self, name, info):
"""Check if a struct type's members cannot have the 'limittype' attribute"""
# If not allowed to have limittypes, verify this for each member
if not self.__isLimittypeStruct(name, info, self.allowedStructs.union(self.nestedStructs)):
for member in info.getMembers():
if member.get('limittype') is not None:
memname = member.findtext('name')
self.record_error(f'{name} member {memname} has disallowed limittype attribute')
def check_type_optional_value(self, name, info):
"""Check if a struct type's members have disallowed 'optional' attribute values"""
for member in info.getMembers():
# Make sure no members have optional="false" attributes
optional = member.get('optional')
if optional == 'false':
memname = member.findtext('name')
message = f'{name} member {memname} has disallowed \'optional="false"\' attribute (remove this attribute)'
self.record_error(message, elem=member)
def check_type_required_limittype(self):
"""Check struct type members which must have the 'limittype' attribute
Called from check."""
for name in self.allowedStructs:
# Assume that only extending structs of structs explicitly
# requiring limittypes also require them
requiredLimittype = (name in self.requiredStructs)
info = self.reg.typedict[name]
self.set_error_context(entity=name, elem=info.elem)
badFields = self.__validateStructLimittypes(name, info, requiredLimittype)
for extendingStructName in self.reg.validextensionstructs[name]:
extendingStruct = self.reg.typedict[extendingStructName]
badFields.update(self.__validateStructLimittypes(extendingStructName, extendingStruct, requiredLimittype))
if badFields:
for key in sorted(badFields.keys()):
diags = badFields[key]
if diags.missing:
self.record_error(f'{name} missing limittype for members {", ".join(badFields[key].missing)}')
if diags.invalid:
self.record_error(f'{name} has invalid limittype for members {", ".join(badFields[key].invalid)}')
def check_type_bitmask(self, name, info):
"""Check bitmask types for consistent name and size"""
if 'Flags' in name:
# The corresponding FlagBits type
expected_bits_type = name.replace('Flags', 'FlagBits')
# Flags types may have either a 'require' or 'bitvalues'
# attribute
bits_attrib = 'requires'
bits_type = info.elem.get(bits_attrib)
if bits_type is None:
# Might be able to use the 'bitvalues' attribute as a proxy for
# 64-bit types
bits_attrib = 'bitvalues'
bits_type = info.elem.get(bits_attrib)
if bits_type is not None and expected_bits_type != bits_type:
self.record_error(f'{name} has unexpected {bits_attrib} attribute value:'
f'got {bits_type} but expected {expected_bits_type}')
# If this is an alias, or a Flags type which does not yet have a
# corresponding FlagBits type, skip the size consistency check
if info.elem.get('alias') is not None or bits_type is None:
return
# Determine the width of the *Flags type by looking at its
# <type>
base_type_elem = info.elem.find('.//type')
if base_type_elem is None:
self.record_error(f'{name} is missing a <type> tag')
return
base_type = base_type_elem.text
if base_type == 'VkFlags':
flags_width = '32'
elif base_type == 'VkFlags64':
flags_width = '64'
else:
self.record_error(f'flags type {name} has unexpected base type {base_type}, expected VkFlags or VkFlags64')
return
# Look for the corresponding <enums> tag and ensure its width is
# consistent with flags_width
enums_elem = self.reg.reg.find(f"enums[@name='{bits_type}']")
if enums_elem is None:
self.record_error(f'Cannot find <enums name="{bits_type}"> element corresponding to {name}')
return
# <enums bitwidth=> attribute defaults to 32 if not present
enums_width = enums_elem.get('bitwidth', '32')
if flags_width != enums_width:
self.record_error(f'{name} has size {flags_width} bits which does not match corresponding {bits_type} <enums> with (possibly implicit) bitwidth={enums_width}')
def check_type(self, name, info, category):
"""Check a type's XML data for consistency.
Called from check."""
if category == 'struct':
type_elts = [elt
for elt in info.elem.findall('member')
if getElemType(elt) == TYPEENUM]
if type_elts:
self.check_type_stype(name, info, type_elts)
self.check_type_pnext(name, info)
# Check for disallowed limittypes on all structures
self.check_type_disallowed_limittype(name, info)
# Check for disallowed 'optional' values
self.check_type_optional_value(name, info)
elif category == 'bitmask':
self.check_type_bitmask(name, info)
super().check_type(name, info, category)
def check_suffixes(self, name, info, supported, name_exceptions):
"""Check suffixes of new APIs required by an extension, which should
match the author ID of the extension.
Called from check_extension.
name - extension name
info - extdict entry for name
supported - True if extension supported by API being checked
name_exceptions - set of API names to not check, in addition to
the global exception list."""
def has_suffix(apiname, author):
return apiname[-len(author):] == author
def has_any_suffixes(apiname, authors):
for author in authors:
if has_suffix(apiname, author):
return True
return False
def check_names(elems, author, alt_authors, name_exceptions):
"""Check names in a list of elements for consistency
elems - list of elements to check
author - author ID of the <extension> tag
alt_authors - set of other allowed author IDs
name_exceptions - additional set of allowed exceptions"""
for elem in elems:
apiname = elem.get('name', 'NO NAME ATTRIBUTE')
suffix = apiname[-len(author):]
if (not has_suffix(apiname, author) and
apiname not in EXTENSION_API_NAME_EXCEPTIONS and
apiname not in name_exceptions):
msg = f'Extension {name} <{elem.tag}> {apiname} does not have expected suffix {author}'
# Explicit 'aliased' deprecations not matching the
# naming rules are allowed, but warned.
if has_any_suffixes(apiname, alt_authors):
self.record_warning('Allowed alternate author ID:', msg)
elif not supported:
self.record_warning('Allowed inconsistency for disabled extension:', msg)
elif elem.get('deprecated') == 'aliased':
self.record_warning('Allowed aliasing deprecation:', msg)
else:
msg += '\n\
This may be due to an extension interaction not having the correct <require depends="">\n\
Other exceptions can be added to xml_consistency.py:EXTENSION_API_NAME_EXCEPTIONS'
self.record_error(msg)
elem = info.elem
self.set_error_context(entity=name, elem=elem)
# Extract author ID from the extension name.
author = name.split('_')[1]
# Loop over each <require> tag checking the API name suffixes in
# that tag for consistency.
# Names in tags whose 'depends' attribute includes extensions with
# different author IDs may be suffixed with those IDs.
for req_elem in elem.findall('./require'):
depends = req_elem.get('depends', '')
alt_authors = set()
if len(depends) > 0:
for name in dependencyNames(depends):
# Skip core versions
if name[0:11] != 'VK_VERSION_':
# Extract author ID from extension name
id = name.split('_')[1]
alt_authors.add(id)
check_names(req_elem.findall('./command'), author, alt_authors, name_exceptions)
check_names(req_elem.findall('./type'), author, alt_authors, name_exceptions)
check_names(req_elem.findall('./enum'), author, alt_authors, name_exceptions)
def check_extension(self, name, info, supported):
"""Check an extension's XML data for consistency.
Called from check."""
elem = info.elem
enums = elem.findall('./require/enum[@name]')
# If extension name is not on the exception list and matches the
# versioned-extension pattern, map the extension name to the version
# name with the version as a separate word. Otherwise just map it to
# the upper-case version of the extension name.
matches = EXTNAME_RE.fullmatch(name)
ext_versioned_name = False
if name in EXTENSION_ENUM_NAME_SPELLING_CHANGE:
ext_enum_name = EXTENSION_ENUM_NAME_SPELLING_CHANGE.get(name)
elif matches is None or name in EXTENSION_NAME_VERSION_EXCEPTIONS:
# This is the usual case, either a name that does not look
# versioned, or one that does but is on the exception list.
ext_enum_name = name.upper()
else:
# This is a versioned extension name.
# Treat the version number as a separate word.
base = matches.group('base')
version = matches.group('version')
ext_enum_name = base.upper() + '_' + version
# Keep track of this case
ext_versioned_name = True
# Look for the expected SPEC_VERSION token name
version_name = f'{ext_enum_name}_SPEC_VERSION'
version_elem = findNamedElem(enums, version_name)
if version_elem is None:
# Did not find a SPEC_VERSION enum matching the extension name
if ext_versioned_name:
suffix = '\n\
Make sure that trailing version numbers in extension names are treated\n\
as separate words in extension enumerant names. If this is an extension\n\
whose name ends in a number which is not a version, such as "...h264"\n\
or "...int16", add it to EXTENSION_NAME_VERSION_EXCEPTIONS in\n\
scripts/xml_consistency.py.'
else:
suffix = ''
self.record_error(f'Missing version enum {version_name}{suffix}')
elif supported:
# Skip unsupported / disabled extensions for these checks
fn = get_extension_source(name)
revisions = []
with open(fn, 'r', encoding='utf-8') as fp:
for line in fp:
line = line.rstrip()
match = REVISION_RE.match(line)
if match:
revisions.append(int(match.group('num')))
ver_from_xml = version_elem.get('value')
if revisions:
ver_from_text = str(max(revisions))
if ver_from_xml != ver_from_text:
self.record_error('Version enum mismatch: spec text from', fn,
'indicates', ver_from_text,
'but XML says', ver_from_xml)
else:
if ver_from_xml == '1':
self.record_warning(
"Cannot find version history in spec text - make sure it has lines starting exactly like ' * Revision 1, ....'",
filename=fn)
else:
self.record_warning("Cannot find version history in spec text, but XML reports a non-1 version number", ver_from_xml,
" - make sure the spec text has lines starting exactly like ' * Revision 1, ....'",
filename=fn)
for enum in enums:
enum_name = enum.get('name')
if '_RESERVED_' in enum_name and enum_name not in EXTENSION_NAME_RESERVED_EXCEPTIONS:
self.record_error(enum_name, 'should not contain _RESERVED_ for a supported extension.\n\
If this is intentional, add it to EXTENSION_NAME_RESERVED_EXCEPTIONS in scripts/xml_consistency.py.')
name_define = f'{ext_enum_name}_EXTENSION_NAME'
name_elem = findNamedElem(enums, name_define)
if name_elem is None:
self.record_error('Missing name enum', name_define)
else:
# Note: etree handles the XML entities here and turns " back into "
expected_name = f'"{name}"'
name_val = name_elem.get('value')
if name_val != expected_name:
self.record_error('Incorrect name enum: expected', expected_name,
'got', name_val)
self.check_suffixes(name, info, supported, { version_name, name_define })
# More general checks
super().check_extension(name, info, supported)
def check_format(self):
"""Check an extension's XML data for consistency.
Called from check."""
astc3d_formats = [
'VK_FORMAT_ASTC_3x3x3_UNORM_BLOCK_EXT',
'VK_FORMAT_ASTC_3x3x3_SRGB_BLOCK_EXT',
'VK_FORMAT_ASTC_3x3x3_SFLOAT_BLOCK_EXT',
'VK_FORMAT_ASTC_4x3x3_UNORM_BLOCK_EXT',
'VK_FORMAT_ASTC_4x3x3_SRGB_BLOCK_EXT',
'VK_FORMAT_ASTC_4x3x3_SFLOAT_BLOCK_EXT',
'VK_FORMAT_ASTC_4x4x3_UNORM_BLOCK_EXT',
'VK_FORMAT_ASTC_4x4x3_SRGB_BLOCK_EXT',
'VK_FORMAT_ASTC_4x4x3_SFLOAT_BLOCK_EXT',
'VK_FORMAT_ASTC_4x4x4_UNORM_BLOCK_EXT',
'VK_FORMAT_ASTC_4x4x4_SRGB_BLOCK_EXT',
'VK_FORMAT_ASTC_4x4x4_SFLOAT_BLOCK_EXT',
'VK_FORMAT_ASTC_5x4x4_UNORM_BLOCK_EXT',
'VK_FORMAT_ASTC_5x4x4_SRGB_BLOCK_EXT',
'VK_FORMAT_ASTC_5x4x4_SFLOAT_BLOCK_EXT',
'VK_FORMAT_ASTC_5x5x4_UNORM_BLOCK_EXT',
'VK_FORMAT_ASTC_5x5x4_SRGB_BLOCK_EXT',
'VK_FORMAT_ASTC_5x5x4_SFLOAT_BLOCK_EXT',
'VK_FORMAT_ASTC_5x5x5_UNORM_BLOCK_EXT',
'VK_FORMAT_ASTC_5x5x5_SRGB_BLOCK_EXT',
'VK_FORMAT_ASTC_5x5x5_SFLOAT_BLOCK_EXT',
'VK_FORMAT_ASTC_6x5x5_UNORM_BLOCK_EXT',
'VK_FORMAT_ASTC_6x5x5_SRGB_BLOCK_EXT',
'VK_FORMAT_ASTC_6x5x5_SFLOAT_BLOCK_EXT',
'VK_FORMAT_ASTC_6x6x5_UNORM_BLOCK_EXT',
'VK_FORMAT_ASTC_6x6x5_SRGB_BLOCK_EXT',
'VK_FORMAT_ASTC_6x6x5_SFLOAT_BLOCK_EXT',
'VK_FORMAT_ASTC_6x6x6_UNORM_BLOCK_EXT',
'VK_FORMAT_ASTC_6x6x6_SRGB_BLOCK_EXT',
'VK_FORMAT_ASTC_6x6x6_SFLOAT_BLOCK_EXT'
]
# Need to build list of formats from rest of <enums>
enum_formats = []
for enum in self.reg.groupdict['VkFormat'].elem:
if enum.get('alias') is None and enum.get('name') != 'VK_FORMAT_UNDEFINED':
enum_formats.append(enum.get('name'))
found_formats = []
for name, info in self.reg.formatsdict.items():
found_formats.append(name)
self.set_error_context(entity=name, elem=info.elem)
if name not in enum_formats:
self.record_error('The <format> has no matching <enum> for', name)
# Check never just 1 plane
plane_elems = info.elem.findall('plane')
if len(plane_elems) == 1:
self.record_error('The <format> has only 1 <plane> for', name)
valid_chroma = ['420', '422', '444']
if info.elem.get('chroma') and info.elem.get('chroma') not in valid_chroma:
self.record_error('The <format> has chroma is not a valid value for', name)
# The formatsgenerator.py assumes only 1 <spirvimageformat> tag.
# If this changes in the future, remove this warning and update generator script
spirv_image_format = info.elem.findall('spirvimageformat')
if len(spirv_image_format) > 1:
self.record_error('More than 1 <spirvimageformat> but formatsgenerator.py is not updated, for format', name)
# Re-loop to check the other way if the <format> is missing
for enum in self.reg.groupdict['VkFormat'].elem:
name = enum.get('name')
if enum.get('alias') is None and name != 'VK_FORMAT_UNDEFINED':
if name not in found_formats and name not in astc3d_formats:
self.set_error_context(entity=name, elem=enum)
self.record_error('The <enum> has no matching <format> for ', name)
super().check_format()
# This should be called from check() but as a first pass, do it here
# Check for invalid version names in e.g.
# <enable version="VK_VERSION_1_2"/>
# Could also consistency check struct / extension tags here
for capname in self.reg.spirvcapdict:
for elem in self.reg.spirvcapdict[capname].elem.findall('enable'):
version = elem.get('version')
if version is not None and version not in self.reg.apidict:
self.set_error_context(entity=capname, elem=elem)
self.record_error(f'<spirvcapability> {capname} enabled by a nonexistent version {version}')
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-warn', action='store_true',
help='Enable display of warning messages')
parser.add_argument('files', metavar='filename', nargs='*',
help='XML filename to check')
args = parser.parse_args()
ckr = Checker(args)
ckr.check()
if ckr.fail:
sys.exit(1)
```
|
```java
/*
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package org.apache.shardingsphere.single.rule;
import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.infra.config.rule.RuleConfiguration;
import org.apache.shardingsphere.infra.database.core.type.DatabaseType;
import org.apache.shardingsphere.infra.datanode.DataNode;
import org.apache.shardingsphere.infra.rule.ShardingSphereRule;
import org.apache.shardingsphere.infra.rule.attribute.datanode.MutableDataNodeRuleAttribute;
import org.apache.shardingsphere.single.config.SingleRuleConfiguration;
import org.apache.shardingsphere.single.util.SingleTableLoadUtils;
import javax.sql.DataSource;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Optional;
/**
* Single mutable data node rule attribute.
*/
@RequiredArgsConstructor
public final class SingleMutableDataNodeRuleAttribute implements MutableDataNodeRuleAttribute {
private final SingleRuleConfiguration configuration;
private final Collection<String> dataSourceNames;
private final Map<String, Collection<DataNode>> singleTableDataNodes;
private final DatabaseType protocolType;
private final SingleTableMapperRuleAttribute tableMapperRuleAttribute;
@Override
public void put(final String dataSourceName, final String schemaName, final String tableName) {
if (dataSourceNames.contains(dataSourceName)) {
Collection<DataNode> dataNodes = singleTableDataNodes.computeIfAbsent(tableName.toLowerCase(), key -> new LinkedHashSet<>());
DataNode dataNode = new DataNode(dataSourceName, tableName);
dataNode.setSchemaName(schemaName);
dataNodes.add(dataNode);
tableMapperRuleAttribute.getLogicTableNames().add(tableName);
addTableConfiguration(dataSourceName, schemaName, tableName);
}
}
private void addTableConfiguration(final String dataSourceName, final String schemaName, final String tableName) {
Collection<String> splitTables = SingleTableLoadUtils.splitTableLines(configuration.getTables());
if (splitTables.contains(SingleTableLoadUtils.getAllTablesNodeStr(protocolType))
|| splitTables.contains(SingleTableLoadUtils.getAllTablesNodeStrFromDataSource(protocolType, dataSourceName, schemaName))) {
return;
}
String dataNodeString = SingleTableLoadUtils.getDataNodeString(protocolType, dataSourceName, schemaName, tableName);
if (!configuration.getTables().contains(dataNodeString)) {
configuration.getTables().add(dataNodeString);
}
}
@Override
public void remove(final String schemaName, final String tableName) {
remove(Collections.singleton(schemaName.toLowerCase()), tableName);
}
@Override
public void remove(final Collection<String> schemaNames, final String tableName) {
if (!singleTableDataNodes.containsKey(tableName.toLowerCase())) {
return;
}
Collection<DataNode> dataNodes = singleTableDataNodes.get(tableName.toLowerCase());
Iterator<DataNode> iterator = dataNodes.iterator();
while (iterator.hasNext()) {
DataNode each = iterator.next();
if (schemaNames.contains(each.getSchemaName().toLowerCase())) {
iterator.remove();
configuration.getTables().remove(SingleTableLoadUtils.getDataNodeString(protocolType, each.getDataSourceName(), each.getSchemaName(), tableName));
}
}
if (dataNodes.isEmpty()) {
singleTableDataNodes.remove(tableName.toLowerCase());
tableMapperRuleAttribute.getLogicTableNames().remove(tableName);
}
}
@Override
public Optional<DataNode> findTableDataNode(final String schemaName, final String tableName) {
Collection<DataNode> dataNodes = singleTableDataNodes.getOrDefault(tableName.toLowerCase(), new LinkedHashSet<>());
for (DataNode each : dataNodes) {
if (schemaName.equalsIgnoreCase(each.getSchemaName())) {
return Optional.of(each);
}
}
return Optional.empty();
}
@Override
public ShardingSphereRule reloadRule(final RuleConfiguration config, final String databaseName, final Map<String, DataSource> dataSourceMap,
final Collection<ShardingSphereRule> builtRules) {
return new SingleRule((SingleRuleConfiguration) config, databaseName, protocolType, dataSourceMap, builtRules);
}
}
```
|
```c
/* $OpenBSD: globtest.c,v 1.4 2019/01/25 00:19:26 millert Exp $ */
/*
* Public domain, 2008, Todd C. Miller <millert@openbsd.org>
*/
#include <err.h>
#include <glob.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_RESULTS 256
struct gl_entry {
int flags;
int nresults;
char pattern[1024];
char *results[MAX_RESULTS];
mode_t modes[MAX_RESULTS];
};
int test_glob(struct gl_entry *);
int
main(int argc, char **argv)
{
FILE *fp = stdin;
char *buf, *cp;
int errors = 0, lineno, mode;
struct gl_entry entry;
size_t len;
if (argc > 1) {
if ((fp = fopen(argv[1], "r")) == NULL)
err(1, "%s", argv[1]);
}
/*
* Read in test file, which is formatted thusly:
*
* [pattern] <flags>
* result1 [mode]
* result2 [mode]
* result3 [mode]
* ...
*
*/
lineno = 0;
memset(&entry, 0, sizeof(entry));
while ((buf = fgetln(fp, &len)) != NULL) {
lineno++;
if (buf[len - 1] != '\n')
errx(1, "missing newline at EOF");
buf[--len] = '\0';
if (len == 0)
continue; /* blank line */
if (buf[0] == '[') {
/* check previous pattern */
if (entry.pattern[0])
errors += test_glob(&entry);
/* start new entry */
if ((cp = strrchr(buf + 1, ']')) == NULL)
errx(1, "invalid entry on line %d", lineno);
len = cp - buf - 1;
if (len >= sizeof(entry.pattern))
errx(1, "pattern too big on line %d", lineno);
memcpy(entry.pattern, buf + 1, len);
entry.pattern[len] = '\0';
buf = cp + 2;
if (*buf++ != '<')
errx(1, "invalid entry on line %d", lineno);
if ((cp = strchr(buf, '>')) == NULL)
errx(1, "invalid entry on line %d", lineno);
entry.flags = (int)strtol(buf, &cp, 0);
if (*cp != '>' || entry.flags < 0 || entry.flags > 0x4000)
errx(1, "invalid flags: %s", buf);
entry.nresults = 0;
continue;
}
if (!entry.pattern[0])
errx(1, "missing entry on line %d", lineno);
if (entry.nresults + 1 > MAX_RESULTS) {
errx(1, "too many results for %s, max %d",
entry.pattern, MAX_RESULTS);
}
if ((cp = strchr(buf, ' ')) != NULL) {
*cp++ = '\0';
mode = strtol(cp, NULL, 8);
} else
mode = -1;
entry.modes[entry.nresults] = (mode_t)mode;
entry.results[entry.nresults++] = strdup(buf);
}
if (entry.pattern[0])
errors += test_glob(&entry); /* test last pattern */
exit(errors);
}
int test_glob(struct gl_entry *entry)
{
glob_t gl;
int i = 0;
if (glob(entry->pattern, entry->flags, NULL, &gl) != 0)
errx(1, "glob failed: %s", entry->pattern);
if (gl.gl_matchc != entry->nresults)
goto mismatch;
for (i = 0; i < gl.gl_matchc; i++) {
if (strcmp(gl.gl_pathv[i], entry->results[i]) != 0)
goto mismatch;
if ((entry->flags & GLOB_KEEPSTAT) != 0) {
if (entry->modes[i] == -1 ||
gl.gl_statv[i] == NULL ||
entry->modes[i] != gl.gl_statv[i]->st_mode)
goto badmode;
}
free(entry->results[i]);
}
return (0);
badmode:
warnx("mismatch mode for pattern %s, flags 0x%x, file \"%s\" "
"(found %07o, expected %07o)", entry->pattern, entry->flags,
gl.gl_pathv[i], gl.gl_statv[i] ? gl.gl_statv[i]->st_mode : 0,
entry->modes[i]);
goto cleanup;
mismatch:
warnx("mismatch for pattern %s, flags 0x%x "
"(found \"%s\", expected \"%s\")", entry->pattern, entry->flags,
gl.gl_pathv[i], entry->results[i]);
cleanup:
while (i < gl.gl_matchc) {
free(entry->results[i++]);
}
return (1);
}
```
|
Hakan Topal is an artist living and working in Brooklyn, New York. He was the co-founder with Guven Incirlioglu of xurban collective (2000–12), and is known for his research-based conceptual art practice. He is an Associate Professor of New Media and Art+Design at Purchase College, SUNY.
Education
Hakan Topal attended Middle East Technical University (METU) in Ankara, where he also grew up. Trained as a civil engineer, during his studies Topal became an active member of the university's activist networks and visual arts community, where he realized exhibitions and performances. He received an M.S. degree from the Gender and Women’s Studies graduate program at METU. He continued studies in sociology, receiving an M.A. and Ph.D. from the New School for Social Research with a concentration in urban sociology and sociology of art.
Exhibitions
Topal exhibited his collective and individual artworks and research projects in institutions such as the 8th and 9th Istanbul Biennials; apexart, New York; Thyssen-Bornemisza Art Contemporary (TBA21), Vienna; Kunst-Werke, Berlin; ZKM Center for Art and Media; MoMA PS1; Kunstwerke, Berlin; Platform, Istanbul and Roundtable: The 9th Gwangju Biennale. He recently contributed to "Harbor" show at Istanbul Modern Museum, Istanbul, and "Perpetual Revolution" at International Center of Photography Museum, New York.
Topal represented Turkey at the 49th Venice Biennale. His texts and projects have been featured in many international journals, books, and catalogs. He is co-editor of the book, The Sea-Image: Visual Manifestations of Port Cities and Global Waters which is the outcome of visual research and an international symposium for the Istanbul European Capital of Culture 2010.
Bibliography
“Urgency: Artistic Responses to Natural Disasters, The Case of New Orleans” in MaHKUscript. Journal of Fine Art Research. 2016
“Mırıltıdan, Homurdanmaya: Sanatın Yeni Bağlamı”, introduction to Pascal Gielen’s Turkish translation “Murmuring of the Artistic Multitude: Global Art, Politics and Post-Fordism”. Istanbul: Norgunk Yayinlari. 2016
“Impossibility of Professional Art or Politics of Amateurism” in Dosya 37. Edited by Gokcecicek Savasir. Journal of Architecture. Issue 37. Ankara Architectural Association. 2016
“Fighting the Banality of Moderates: An Artist’s Vision for a Peaceful Turkey” in Hyperallergic. March 31, 2016
“Against Anatolia: Ruins and Friendship” in Serhh Poetry and Criticism Journal. Istanbul. Issue 3. May 2015
“The Poetics of Remembrance: Facing The Armenian genocide” in Creative Time Reports, April 2015
“Collateral Damage, Condolence and the Aesthetic of Impossibility Justice” in Aesthetic Justice, edited by Pascal Gielen and Niels Van Tomme. Valiz, Amsterdam. 2014
Topal, Hakan. “On Bottany Carcinoma” in Mobility and Fantasy in Visual Culture, edited by Lewis Johnson. Routledge, New York. 2014
Altındere, Hallil and Evren Sureyya, eds. 101 Artworks: 40 Years of Turkish Contemporary Art. Rotterdam: Revolver, 2011
Topal, Hakan and Incirlioglu, Guven. "The-Sea-Image: Visual Manifestations of Port Cities and Global Waters". New York: Newgray, 2011
Kafetsi, Anna. Politics of Art. Athens: EMST, 2010
Amirsadeghi, Hossein. Unleashed: Contemporary Art from Turkey. London: Thames & Hudson, 2010
Carvalho, Denise. Bodies of Dispersion: Mechanism of Distention. Galeria Arsenal, 2010
Biesenbach, Klaus. Political/Minimal. Nürnberg: Verlag für Moderne Kunst, 2009
Mortenbock, Peter. and Helge Moonshammer. Networked Cultures: Parallel Architectures and the Politics of Space. Rotterdam: NAI Publishers, 2008
ACMA. Biennale Del Paesaggio Mediterraneo. Milan: ACMA Centro Di Architettura, 2008
Altindere, Haili., Evren S, eds. User's Manual / Contemporary Art in Turkey: 1986-2006. Istanbul: Revolver Books, 2007
Elliot, David. Time Present, Time Past: Highlights from 20 Years of the Istanbul Biennial. Istanbul Modern, 2007
Madra, Beral. Neighbours in Dialogue. Istanbul: Feshane, 2007
Erdemci, Fulya, ed. Modern and Beyond. Istanbul Bilgi University Press, 2007
Biesenbach, Klaus. Greater New York. New York: PS1 / MoMA, 2005
Eche, Charles and Vasif Kortun. 9th International Istanbul Biennial. Istanbul Art and Culture Foundation, 2005
Conover, Roger. Call Me Istanbul. Karlsruhe: ZKM, 2004
Mermoz, Gerard. Time Lines: Reading the City of Signs. Istanbul: Aksanat Center, 2004
Cameron, Dan. Poetic Justice: The 8th International Istanbul Biennial. Istanbul: Istanbul Art and Culture Foundation, 2003
Akay, Ali. 60 years 60 Artists. Istanbul: Eczacibasi, 2002
Madra, Beral, eds. The Perfumed Garden. Istanbul: 49th Venice Biennial Turkish Pavilion, 2001
Ronte, Dieter, eds. Under the Sign of the City: Contemporary Art from Turkey. Bonn: Kunstmuseum Bonn, 2001
49th International Venice Biennial: Plateau of Humankind. Venice: Venice Biennial, 2001
References
External links
Official site
xurban_collective Website
Turkish conceptual artists
New media artists
1972 births
American people of Turkish descent
People from Çorum
Artists from New York (state)
Turkish contemporary artists
Living people
Middle East Technical University alumni
|
Charles Vance Millar (June 28, 1854 – October 31, 1926) was a Canadian lawyer and financier. He was the president and part-owner of the Toronto brewery of O'Keefe Brewery. He also owned racehorses, including the 1915 King's Plate–winning horse Tartarean. However, he is now best known for his unusual will which touched off the Great Stork Derby.
Early years
Charles Millar was born in Aylmer, Canada West, the only child of farmers Simon and Sarah Millar. Millar attended the University of Toronto and graduated with an average of 98% in all his subjects. He chose to study law, passed the bar examination at Osgoode Hall in 1884 and opened up his own law office in Toronto.
Business career
The BC Express Company and the Millar Addition
In 1897, Millar purchased the BC Express Company from Stephen Tingley and took over the government mail delivery contracts for the Cariboo region in British Columbia.
When it was announced that the construction of the Grand Trunk Pacific Railway would go through Fort George (later named Prince George) Millar expanded the company's services to Fort George and built two sternwheelers, the BX and the BC Express. Millar also foresaw that Fort George would become a major centre in Northern British Columbia and he made arrangements to purchase the First Nations reserve at Fort George. However, the railway was already planning to purchase the property and they convinced the Department of Indian Affairs to cancel their negotiations with Millar. When Millar took the railway to court, the railway agreed to sell him of the property, which became known as the Millar Addition.
Horse racing
Millar owned racehorses, including the 1915 King's Plate-winning horse Tartarean. At the time of his death, he owned seven horses, including Troutlet, which went on to win the 1927 King's Plate, under different ownership. By then the executors of his Millar estate had sold his horses including Troutlet. In the 1910s, Millar had planned to build a racetrack in Kingston, Jamaica, where he holidayed, but abandoned the idea. In 1912, he had made arrangements with the builder of the Belmont Park racetrack, C. W. Leavitt to design the track. Millar was an investor in Kenilworth Park Racetrack, built just outside Windsor, Ontario, in 1916.
Death
Millar died in his law office in the Crown Life Building at Yonge and Colborne Streets on October 31, 1926, of a stroke. He was discussing a case with Charles Kemp, a law associate, when he collapsed. Millar died before a doctor could arrive. Millar was buried in the family plot in Aylmer. He had not married and had no descendants and his parents had both predeceased him. His funeral was held at his home on 75 Scarborough Road in the Beaches district of Toronto, attended by many other members of the legal profession. When his executors filed his will for probate, Millar's estate was estimated to be worth .
His death coincided with the disappearance of several books of accounting of O'Keefe Brewery. At the time the government of Canada contended that O'Keefe was $175,000 in arrears on sales taxes. The claim had been made to O'Keefe earlier in October 1926. The Royal Customs Commission held an inquiry in March 1937 and evidence was given that Millar had sent for the books to be delivered to his office. However, a search of his office, home and the company did not turn up the books, according to his associate Charles Kemp. O'Keefe was suspended from brewing "strong beer" during the dispute, until it provided the books to the commission. O'Keefe offered a reward for the return of the books and continued with its other activities. In May 1927, O'Keefe appealed for a reinstatement of its licence. F. H. Phippen, the president of the company testified that Millar, the president of O'Keefe in October 1926, did not want to give up the books to the commission and proposed an injunction. Phippen was in favour of giving up the books to the commission. Phippen described Millar as "a lawyer and an honourable man", and that he had only thought that Millar had put them away for safekeeping.
Character
Though highly successful in the law and in his investments, Millar was known for his love of jokes and pranks which played on people's greed. One favourite was to leave money on a sidewalk and watch from a hiding place as passers-by furtively pocketed it. As a law student, Millar was jilted once by a girl of a prominent family and never had a serious relationship again. Millar was known to sleep on the veranda outside his house in all weather, to "keep himself hard". In life, he was never known to have given to any charity. The only club Millar was a member of was the Royal Canadian Yacht Club.
Abe Orpen, when informed about his mention in Millar's will, discussed his working relationship with Millar over many transactions. According to Orpen, the two always made verbal agreements, never on paper. Orpen distrusted Millar, who would always look for some loophole in a contract, though never broke his word.
Will
Millar's final prank was his will, which says in part:
The will had several unusual bequests:
Three men who were known to despise each other (T. P. Galt, KC; J. D. Montgomery and James Haverson, KC) were granted joint lifetime tenancy in Millar's vacation home in Jamaica, on condition that they live in the property together.
To each practicing Protestant minister in Toronto, and every Orange Lodge in Toronto, a share of O'Keefe Brewery stock, a Catholic business, if they participated in its management and drew on its dividends.
Two anti-horse-racing advocates (Hon. William Raney, Reverend Samuel Chown) and a man who detested the Ontario Jockey Club (Abe Orpen) were to receive a share of Ontario Jockey Club stock, provided they are shareholders in three years. Raney's and Chown's share were eventually given to charity and Orpen accepted his share.
Each duly ordained Christian minister in Walkerville, Sandwich, and Windsor, "except Spracklin, who shot a hotelkeeper" was to receive a share of the Kenilworth Park Racetrack, located just outside Windsor, Ontario.
The home in Kingston, Jamaica, had already been sold by Millar. It was not in his estate when it was submitted for probate.
The bequest to the Protestant ministers of O'Keefe stock was a problem to resolve. The corporate structure of O'Keefe was such that Millar's share of the company was not in shares, but in a share of a holding company that controlled O'Keefe. He only had one actual share in the O'Keefe Brewery Ltd. The 99 ministers and the 103 Orange Lodges who accepted the bequest, did so upon the sale of O'Keefe in 1928 for $1.35 million, in an agreement with the executors. The legatees each received $56.38.
In October 1928, five pastors in Windsor claimed the bequest of the Kenilworth shares. The value of the shares was hard to judge, as the stock did not trade publicly. One estimation was that they were worth less than one cent each. The racetrack would close within a decade.
The Great Stork Derby
The tenth and final clause of his will was the largest. It required that the balance of Millar's estate was to be converted to cash ten years after his death and given to the Toronto woman who gave birth to the most children in that time. In the event of a tie, the bequest would be divided equally. The resulting contest became known as the Great Stork Derby.
The Supreme Court of Canada validated the will; Millar had prepared it with care. The will survived ten years of litigation, including attempts by Millar's distant relatives to have it declared invalid, and the Derby continued uninterrupted. Because of Millar's long-term investments, particularly one of land adjacent to the Detroit–Windsor Tunnel that turned a $2 investment into over $100,000, his estate increased drastically during the ten years, and was worth $568,106 when it was finally liquidated. Its value was enhanced as it accumulated during a deflationary economic period.
Most of this prize was shared by four Toronto women who each had nine children, receiving $110,000 each, although three of the four had to pay back to the City of Toronto relief money they had collected. The estate also paid $12,500 each to two women with dubious claims to a share in the prize so as to end litigation.
The contest inspired a Canadian made-for-television movie, The Stork Derby, which starred Megan Follows.
It was speculated that Millar prepared this clause in his will to discourage indiscriminate births and discredit prohibitions against birth control.
References
Notes
Bibliography
Further reading
Wilton, Elizabeth (1994). Bearing the Burden: The Great Toronto Stork Derby, 1926–1938. (Ottawa) National Library of Canada. .
External links
Charles Vance Millar's will
"The Toronto 'Stork Derby' Baby Race" at Snopes
1853 births
1926 deaths
Lawyers in Ontario
Canadian racehorse owners and breeders
History of British Columbia
Cariboo people
Wills and testaments by person
Practical jokes
Owners of King's Plate winners
|
Acleris pallidorbis is a species of moth of the family Tortricidae. It is found in Nepal.
References
Moths described in 1976
pallidorbis
Moths of Asia
|
Karachi Port Trust Halt railway station (, Sindhi: ڪراچي پورٽ ٽرسٽ هالٽ ريلوي اسٽيشن) is located in Karachi, Pakistan.
See also
List of railway stations in Pakistan
Pakistan Railways
References
External links
Railway stations in Karachi
Railway stations on Karachi Circular Railway
|
In mechanics and materials science, strain rate is the time derivative of strain of a material. Strain rate has dimension of inverse time and SI units of inverse second, s−1 (or its multiples).
The strain rate at some point within the material measures the rate at which the distances of adjacent parcels of the material change with time in the neighborhood of that point. It comprises both the rate at which the material is expanding or shrinking (expansion rate), and also the rate at which it is being deformed by progressive shearing without changing its volume (shear rate). It is zero if these distances do not change, as happens when all particles in some region are moving with the same velocity (same speed and direction) and/or rotating with the same angular velocity, as if that part of the medium were a rigid body.
The strain rate is a concept of materials science and continuum mechanics that plays an essential role in the physics of fluids and deformable solids. In an isotropic Newtonian fluid, in particular, the viscous stress is a linear function of the rate of strain, defined by two coefficients, one relating to the expansion rate (the bulk viscosity coefficient) and one relating to the shear rate (the "ordinary" viscosity coefficient). In solids, higher strain rates can often cause normally ductile materials to fail in a brittle manner.
Definition
The definition of strain rate was first introduced in 1867 by American metallurgist Jade LeCocq, who defined it as "the rate at which strain occurs. It is the time rate of change of strain." In physics the strain rate is generally defined as the derivative of the strain with respect to time. Its precise definition depends on how strain is measured.
The strain is the ratio of two lengths, so it is a dimensionless quantity (a number that does not depend on the choice of measurement units). Thus, strain rate has dimension of inverse time and units of inverse second, s−1 (or its multiples).
Simple deformations
In simple contexts, a single number may suffice to describe the strain, and therefore the strain rate. For example, when a long and uniform rubber band is gradually stretched by pulling at the ends, the strain can be defined as the ratio between the amount of stretching and the original length of the band:
where is the original length and its length at each time . Then the strain rate will be
where is the speed at which the ends are moving away from each other.
The strain rate can also be expressed by a single number when the material is being subjected to parallel shear without change of volume; namely, when the deformation can be described as a set of infinitesimally thin parallel layers sliding against each other as if they were rigid sheets, in the same direction, without changing their spacing. This description fits the laminar flow of a fluid between two solid plates that slide parallel to each other (a Couette flow) or inside a circular pipe of constant cross-section (a Poiseuille flow). In those cases, the state of the material at some time can be described by the displacement of each layer, since an arbitrary starting time, as a function of its distance from the fixed wall. Then the strain in each layer can be expressed as the limit of the ratio between the current relative displacement of a nearby layer, divided by the spacing between the layers:
Therefore, the strain rate is
where is the current linear speed of the material at distance from the wall.
The strain-rate tensor
In more general situations, when the material is being deformed in various directions at different rates, the strain (and therefore the strain rate) around a point within a material cannot be expressed by a single number, or even by a single vector. In such cases, the rate of deformation must be expressed by a tensor, a linear map between vectors, that expresses how the relative velocity of the medium changes when one moves by a small distance away from the point in a given direction. This strain rate tensor can be defined as the time derivative of the strain tensor, or as the symmetric part of the gradient (derivative with respect to position) of the velocity of the material.
With a chosen coordinate system, the strain rate tensor can be represented by a symmetric 3×3 matrix of real numbers. The strain rate tensor typically varies with position and time within the material, and is therefore a (time-varying) tensor field. It only describes the local rate of deformation to first order; but that is generally sufficient for most purposes, even when the viscosity of the material is highly non-linear.
Strain rate testing
Materials can be tested using the so-called epsilon dot () method which can be used to derive viscoelastic parameters through lumped parameter analysis.
Shear strain rate
Similarly, the shear strain rate is the derivative with respect to time of the shear strain. Engineering shear strain can be defined as the angular displacement created by an applied shear stress, .
Therefore the unidirectional shear strain rate can be defined as:
See also
Flow velocity
Strain
Strain gauge
Stress–strain curve
Stretch ratio
References
External links
Bar Technology for High-Strain-Rate Material Properties
Classical mechanics
Materials science
Temporal rates
|
```objective-c
This program is free software; you can redistribute it and/or modify
the Free Software Foundation
This program 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
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
// Animation names
#define FISH_ANIM_DEFAULT_ANIMATION 0
#define FISH_ANIM_ATTACK 1
#define FISH_ANIM_DEATH 2
#define FISH_ANIM_SWIM 3
#define FISH_ANIM_WOUND 4
// Color names
// Patch names
// Names of collision boxes
#define FISH_COLLISION_BOX_DEFAULT 0
// Attaching position names
#define FISH_ATTACHMENT_GLOW 0
// Sound names
```
|
```javascript
import { spy, configure, getDebugName } from 'mobx';
import { Component } from 'rax';
// import { unstable_batchedUpdates as rdBatched } from "react-dom"
// import { unstable_batchedUpdates as rnBatched } from "react-native"
if (!Component) throw new Error('mobx-rax requires React to be available');
if (!spy) throw new Error('mobx-rax requires mobx to be available');
// if (typeof rdBatched === "function") configure({ reactionScheduler: rdBatched })
// else if (typeof rnBatched === "function") configure({ reactionScheduler: rnBatched })
export {
observer,
Observer,
renderReporter,
componentByNodeRegistry as componentByNodeRegistery,
componentByNodeRegistry,
trackComponents,
useStaticRendering
} from './observer';
export { default as Provider } from './Provider';
export { default as inject } from './inject';
import * as propTypes from './propTypes';
export { propTypes };
export { propTypes as PropTypes };
import { renderReporter, componentByNodeRegistry, trackComponents, errorsReporter } from './observer';
export const onError = fn => errorsReporter.on(fn);
/* DevTool support */
// See: path_to_url
/* global __MOBX_DEVTOOLS_GLOBAL_HOOK__ */
if (typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ === 'object') {
const mobx = { spy, extras: { getDebugName } };
const mobxReact = {
renderReporter,
componentByNodeRegistry,
componentByNodeRegistery: componentByNodeRegistry,
trackComponents
};
__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(mobxReact, mobx);
}
```
|
```smalltalk
/*
This file is part of the iText (R) project.
Authors: Apryse Software.
This program is offered under a commercial and under the AGPL license.
For commercial licensing, contact us at path_to_url For AGPL licensing, see below.
AGPL licensing:
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program 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
along with this program. If not, see <path_to_url
*/
using System;
using System.Collections.Generic;
using iText.Bouncycastleconnector;
using iText.Commons.Bouncycastle;
using iText.Commons.Bouncycastle.Asn1;
using iText.Commons.Bouncycastle.Asn1.X509;
using iText.Commons.Bouncycastle.Cert;
using iText.Commons.Utils;
using iText.Signatures;
using iText.Signatures.Logs;
using iText.Signatures.Validation.Context;
using iText.Signatures.Validation.Extensions;
using iText.Signatures.Validation.Report;
namespace iText.Signatures.Validation {
/// <summary>Class that allows you to validate a certificate against a Certificate Revocation List (CRL) Response.
/// </summary>
public class CRLValidator {
//\cond DO_NOT_DOCUMENT
internal const String CRL_CHECK = "CRL response check.";
//\endcond
//\cond DO_NOT_DOCUMENT
internal const String ATTRIBUTE_CERTS_ASSERTED = "The onlyContainsAttributeCerts is asserted. Conforming CRLs "
+ "issuers MUST set the onlyContainsAttributeCerts boolean to FALSE.";
//\endcond
//\cond DO_NOT_DOCUMENT
internal const String CERTIFICATE_IS_EXPIRED = "Certificate is expired on {0} and could have been removed from the CRL.";
//\endcond
//\cond DO_NOT_DOCUMENT
internal const String CERTIFICATE_IS_UNREVOKED = "The certificate was unrevoked.";
//\endcond
//\cond DO_NOT_DOCUMENT
internal const String CERTIFICATE_IS_NOT_IN_THE_CRL_SCOPE = "Certificate isn't in the current CRL scope.";
//\endcond
//\cond DO_NOT_DOCUMENT
internal const String CERTIFICATE_REVOKED = "Certificate was revoked by {0} on {1}.";
//\endcond
//\cond DO_NOT_DOCUMENT
internal const String CRL_ISSUER_NOT_FOUND = "Unable to validate CRL response: no issuer certificate found.";
//\endcond
//\cond DO_NOT_DOCUMENT
internal const String CRL_ISSUER_REQUEST_FAILED = "Unable to validate CRL response: Unexpected exception occurred retrieving issuer certificate.";
//\endcond
//\cond DO_NOT_DOCUMENT
internal const String CRL_ISSUER_CHAIN_FAILED = "Unable to validate CRL response: Unexpected exception occurred validating issuer certificate.";
//\endcond
//\cond DO_NOT_DOCUMENT
internal const String CRL_ISSUER_NO_COMMON_ROOT = "The CRL issuer does not share the root of the inspected certificate.";
//\endcond
//\cond DO_NOT_DOCUMENT
internal const String CRL_INVALID = "CRL response is invalid.";
//\endcond
//\cond DO_NOT_DOCUMENT
internal const String FRESHNESS_CHECK = "CRL response is not fresh enough: " + "this update: {0}, validation date: {1}, freshness: {2}.";
//\endcond
//\cond DO_NOT_DOCUMENT
internal const String ONLY_SOME_REASONS_CHECKED = "Revocation status cannot be determined since " + "not all reason codes are covered by the current CRL.";
//\endcond
//\cond DO_NOT_DOCUMENT
internal const String SAME_REASONS_CHECK = "CRLs that cover the same reason codes were already verified.";
//\endcond
//\cond DO_NOT_DOCUMENT
internal const String UPDATE_DATE_BEFORE_CHECK_DATE = "nextUpdate: {0} of CRLResponse is before validation date {1}.";
//\endcond
//\cond DO_NOT_DOCUMENT
// All reasons without unspecified.
internal const int ALL_REASONS = 32895;
//\endcond
private static readonly IBouncyCastleFactory FACTORY = BouncyCastleFactoryCreator.GetFactory();
private readonly IDictionary<IX509Certificate, int?> checkedReasonsMask = new Dictionary<IX509Certificate,
int?>();
private readonly IssuingCertificateRetriever certificateRetriever;
private readonly SignatureValidationProperties properties;
private readonly ValidatorChainBuilder builder;
/// <summary>
/// Creates new
/// <see cref="CRLValidator"/>
/// instance.
/// </summary>
/// <param name="builder">
/// See
/// <see cref="ValidatorChainBuilder"/>
/// </param>
protected internal CRLValidator(ValidatorChainBuilder builder) {
this.certificateRetriever = builder.GetCertificateRetriever();
this.properties = builder.GetProperties();
this.builder = builder;
}
/// <summary>Validates a certificate against Certificate Revocation List (CRL) Responses.</summary>
/// <param name="report">to store all the chain verification results</param>
/// <param name="context">the context in which to perform the validation</param>
/// <param name="certificate">the certificate to check against CRL response</param>
/// <param name="crl">the crl response to be validated</param>
/// <param name="validationDate">validation date to check for</param>
/// <param name="responseGenerationDate">trusted date at which response is generated</param>
public virtual void Validate(ValidationReport report, ValidationContext context, IX509Certificate certificate
, IX509Crl crl, DateTime validationDate, DateTime responseGenerationDate) {
ValidationContext localContext = context.SetValidatorContext(ValidatorContext.CRL_VALIDATOR);
if (CertificateUtil.IsSelfSigned(certificate)) {
report.AddReportItem(new CertificateReportItem(certificate, CRL_CHECK, RevocationDataValidator.SELF_SIGNED_CERTIFICATE
, ReportItem.ReportItemStatus.INFO));
return;
}
TimeSpan freshness = properties.GetFreshness(localContext);
// Check that thisUpdate + freshness < validation.
if (DateTimeUtil.AddMillisToDate(crl.GetThisUpdate(), (long)freshness.TotalMilliseconds).Before(validationDate
)) {
report.AddReportItem(new CertificateReportItem(certificate, CRL_CHECK, MessageFormatUtil.Format(FRESHNESS_CHECK
, crl.GetThisUpdate(), validationDate, freshness), ReportItem.ReportItemStatus.INDETERMINATE));
return;
}
// Check that the validation date is before the nextUpdate.
if (crl.GetNextUpdate() != TimestampConstants.UNDEFINED_TIMESTAMP_DATE && validationDate.After(crl.GetNextUpdate
())) {
report.AddReportItem(new CertificateReportItem(certificate, CRL_CHECK, MessageFormatUtil.Format(UPDATE_DATE_BEFORE_CHECK_DATE
, crl.GetNextUpdate(), validationDate), ReportItem.ReportItemStatus.INDETERMINATE));
return;
}
// Check expiredCertOnCrl extension in case the certificate is expired.
if (certificate.GetNotAfter().Before(crl.GetThisUpdate())) {
DateTime startExpirationDate = GetExpiredCertsOnCRLExtensionDate(crl);
if (TimestampConstants.UNDEFINED_TIMESTAMP_DATE == startExpirationDate || certificate.GetNotAfter().Before
(startExpirationDate)) {
report.AddReportItem(new CertificateReportItem(certificate, CRL_CHECK, MessageFormatUtil.Format(CERTIFICATE_IS_EXPIRED
, certificate.GetNotAfter()), ReportItem.ReportItemStatus.INDETERMINATE));
return;
}
}
IIssuingDistributionPoint issuingDistPoint = GetIssuingDistributionPointExtension(crl);
IDistributionPoint distributionPoint = null;
if (!issuingDistPoint.IsNull()) {
// Verify that certificate is in the CRL scope using IDP extension.
bool basicConstraintsCaAsserted = new DynamicBasicConstraintsExtension().WithCertificateChainSize(1).ExistsInCertificate
(certificate);
if ((issuingDistPoint.OnlyContainsUserCerts() && basicConstraintsCaAsserted) || (issuingDistPoint.OnlyContainsCACerts
() && !basicConstraintsCaAsserted)) {
report.AddReportItem(new CertificateReportItem(certificate, CRL_CHECK, CERTIFICATE_IS_NOT_IN_THE_CRL_SCOPE
, ReportItem.ReportItemStatus.INDETERMINATE));
return;
}
if (issuingDistPoint.OnlyContainsAttributeCerts()) {
report.AddReportItem(new CertificateReportItem(certificate, CRL_CHECK, ATTRIBUTE_CERTS_ASSERTED, ReportItem.ReportItemStatus
.INDETERMINATE));
return;
}
// Try to retrieve corresponding DP from the certificate by name specified in the IDP.
if (!issuingDistPoint.GetDistributionPoint().IsNull()) {
distributionPoint = CertificateUtil.GetDistributionPointByName(certificate, issuingDistPoint.GetDistributionPoint
());
}
}
int interimReasonsMask = ComputeInterimReasonsMask(issuingDistPoint, distributionPoint);
int? reasonsMask = checkedReasonsMask.Get(certificate);
if (reasonsMask != null) {
interimReasonsMask |= (int)reasonsMask;
}
// Verify the CRL issuer.
VerifyCrlIntegrity(report, localContext, certificate, crl, responseGenerationDate);
// Check the status of the certificate.
VerifyRevocation(report, certificate, validationDate, crl);
if (report.GetValidationResult() == ValidationReport.ValidationResult.VALID) {
checkedReasonsMask.Put(certificate, interimReasonsMask);
}
// If ((reasons_mask is all-reasons) OR (cert_status is not UNREVOKED)),
// then the revocation status has been determined.
if (interimReasonsMask != ALL_REASONS) {
report.AddReportItem(new CertificateReportItem(certificate, CRL_CHECK, ONLY_SOME_REASONS_CHECKED, ReportItem.ReportItemStatus
.INDETERMINATE));
}
}
private static void VerifyRevocation(ValidationReport report, IX509Certificate certificate, DateTime verificationDate
, IX509Crl crl) {
IX509CrlEntry revocation = crl.GetRevokedCertificate(certificate.GetSerialNumber());
if (revocation != null) {
DateTime revocationDate = revocation.GetRevocationDate();
if (verificationDate.Before(revocationDate)) {
report.AddReportItem(new CertificateReportItem(certificate, CRL_CHECK, MessageFormatUtil.Format(SignLogMessageConstant
.VALID_CERTIFICATE_IS_REVOKED, revocationDate), ReportItem.ReportItemStatus.INFO));
}
else {
if (CRLReason.REMOVE_FROM_CRL == revocation.GetReason()) {
report.AddReportItem(new CertificateReportItem(certificate, CRL_CHECK, MessageFormatUtil.Format(CERTIFICATE_IS_UNREVOKED
, revocationDate), ReportItem.ReportItemStatus.INFO));
}
else {
report.AddReportItem(new CertificateReportItem(certificate, CRL_CHECK, MessageFormatUtil.Format(CERTIFICATE_REVOKED
, crl.GetIssuerDN(), revocation.GetRevocationDate()), ReportItem.ReportItemStatus.INVALID));
}
}
}
}
private static IIssuingDistributionPoint GetIssuingDistributionPointExtension(IX509Crl crl) {
IAsn1Object issuingDistPointExtension = null;
try {
issuingDistPointExtension = CertificateUtil.GetExtensionValue(crl, FACTORY.CreateExtensions().GetIssuingDistributionPoint
().GetId());
}
catch (System.IO.IOException) {
}
catch (Exception) {
}
// Ignore exception.
return FACTORY.CreateIssuingDistributionPoint(issuingDistPointExtension);
}
private static DateTime GetExpiredCertsOnCRLExtensionDate(IX509Crl crl) {
IAsn1Encodable expiredCertsOnCRL = null;
try {
// The scope of a CRL containing this extension is extended to include the revocation status of the
// certificates that expired after the date specified in ExpiredCertsOnCRL or at that date.
expiredCertsOnCRL = CertificateUtil.GetExtensionValue(crl, FACTORY.CreateExtensions().GetExpiredCertsOnCRL
().GetId());
}
catch (System.IO.IOException) {
}
catch (Exception) {
}
// Ignore exception.
if (expiredCertsOnCRL != null) {
try {
return FACTORY.CreateASN1GeneralizedTime(expiredCertsOnCRL).GetDate();
}
catch (Exception) {
}
}
// Ignore exception.
return (DateTime)TimestampConstants.UNDEFINED_TIMESTAMP_DATE;
}
private static int ComputeInterimReasonsMask(IIssuingDistributionPoint issuingDistPoint, IDistributionPoint
distributionPoint) {
int interimReasonsMask = ALL_REASONS;
if (!issuingDistPoint.IsNull()) {
IReasonFlags onlySomeReasons = issuingDistPoint.GetOnlySomeReasons();
if (!onlySomeReasons.IsNull()) {
interimReasonsMask &= onlySomeReasons.IntValue();
}
}
if (distributionPoint != null) {
IReasonFlags reasons = distributionPoint.GetReasons();
if (!reasons.IsNull()) {
interimReasonsMask &= reasons.IntValue();
}
}
return interimReasonsMask;
}
private void VerifyCrlIntegrity(ValidationReport report, ValidationContext context, IX509Certificate certificate
, IX509Crl crl, DateTime responseGenerationDate) {
IX509Certificate[] certs = null;
try {
certs = certificateRetriever.GetCrlIssuerCertificates(crl);
}
catch (Exception e) {
report.AddReportItem(new CertificateReportItem(certificate, CRL_CHECK, CRL_ISSUER_REQUEST_FAILED, e, ReportItem.ReportItemStatus
.INDETERMINATE));
return;
}
if (certs == null || certs.Length == 0) {
report.AddReportItem(new CertificateReportItem(certificate, CRL_CHECK, CRL_ISSUER_NOT_FOUND, ReportItem.ReportItemStatus
.INDETERMINATE));
return;
}
IX509Certificate crlIssuer = certs[0];
IX509Certificate crlIssuerRoot = GetRoot(crlIssuer);
IX509Certificate subjectRoot = GetRoot(certificate);
if (!crlIssuerRoot.Equals(subjectRoot)) {
report.AddReportItem(new CertificateReportItem(certificate, CRL_CHECK, CRL_ISSUER_NO_COMMON_ROOT, ReportItem.ReportItemStatus
.INDETERMINATE));
return;
}
SafeCalling.OnExceptionLog(() => crl.Verify(crlIssuer.GetPublicKey()), report, (e) => new CertificateReportItem
(certificate, CRL_CHECK, CRL_INVALID, e, ReportItem.ReportItemStatus.INDETERMINATE));
ValidationReport responderReport = new ValidationReport();
SafeCalling.OnExceptionLog(() => builder.GetCertificateChainValidator().Validate(responderReport, context.
SetCertificateSource(CertificateSource.CRL_ISSUER), (IX509Certificate)crlIssuer, responseGenerationDate
), report, (e) => new CertificateReportItem(certificate, CRL_CHECK, CRL_ISSUER_CHAIN_FAILED, e, ReportItem.ReportItemStatus
.INDETERMINATE));
AddResponderValidationReport(report, responderReport);
}
private IX509Certificate GetRoot(IX509Certificate cert) {
IX509Certificate[] chain = certificateRetriever.RetrieveMissingCertificates(new IX509Certificate[] { cert }
);
return chain[chain.Length - 1];
}
private static void AddResponderValidationReport(ValidationReport report, ValidationReport responderReport
) {
foreach (ReportItem reportItem in responderReport.GetLogs()) {
report.AddReportItem(ReportItem.ReportItemStatus.INVALID == reportItem.GetStatus() ? reportItem.SetStatus(
ReportItem.ReportItemStatus.INDETERMINATE) : reportItem);
}
}
}
}
```
|
```ruby
# frozen_string_literal: true
module Decidim
module Proposals
class SettingsChangeJob < ApplicationJob
def perform(component_id, previous_settings, current_settings)
component = Decidim::Component.find(component_id)
if creation_enabled?(previous_settings, current_settings)
event = "decidim.events.proposals.creation_enabled"
event_class = Decidim::Proposals::CreationEnabledEvent
elsif voting_enabled?(previous_settings, current_settings)
event = "decidim.events.proposals.voting_enabled"
event_class = Decidim::Proposals::VotingEnabledEvent
elsif endorsing_enabled?(previous_settings, current_settings)
event = "decidim.events.proposals.endorsing_enabled"
event_class = Decidim::Proposals::EndorsingEnabledEvent
end
return unless event && event_class
Decidim::EventsManager.publish(
event:,
event_class:,
resource: component,
followers: component.participatory_space.followers
)
end
private
# rubocop:disable Style/DoubleNegation
def creation_enabled?(previous_settings, current_settings)
current_settings[:creation_enabled] == true &&
!!previous_settings[:creation_enabled] == false
end
def voting_enabled?(previous_settings, current_settings)
(current_settings[:votes_enabled] == true && !!current_settings[:votes_blocked] == false) &&
(!!previous_settings[:votes_enabled] == false || previous_settings[:votes_blocked] == true)
end
def endorsing_enabled?(previous_settings, current_settings)
(current_settings[:endorsements_enabled] == true && !!current_settings[:endorsements_blocked] == false) &&
(!!previous_settings[:endorsements_enabled] == false || previous_settings[:endorsements_blocked] == true)
end
# rubocop:enable Style/DoubleNegation
end
end
end
```
|
Southern Wu may refer to
Southern branch of Wu Chinese languages
Yang Wu, a state in China
|
Boards of Intermediate and secondary education in Pakistan are responsible for conducting intermediate and secondary education examinations. These boards set their educational policy under the supervision of the provincial education ministry.
This list of education boards in Pakistan shows their year of establishment, jurisdictions (districts) and websites, arranged alphabetically.
Government boards
Intermediate and secondary education boards
Islamabad
Punjab
Sindh
Khyber Pakhtunkhwa
Balochistan
Azad Jammu and Kashmir
Technical education boards
Private boards
Intermediate and secondary education boards
Technical education boards
Religious education boards
Other boards
References
Pakistan education-related lists
|
Vanderbilt Avenue was a station on the demolished BMT Fulton Street Line. The Fulton Street Elevated was built by the Kings County Elevated Railway Company and this station started service on April 24, 1888. The station had 2 tracks and 2 side platforms. It was served by trains of the BMT Fulton Street Line, and until 1920, trains of the BMT Brighton Line. This station was served by steam locomotives between 1888 and 1899. In 1898, the Brooklyn Rapid Transit Company (BRT) absorbed the Kings County Elevated Railway, and it took over the Fulton Street El, and it was electrified on July 3, 1899. It also had a connection to the streetcar line of the same name. In 1936, the Independent Subway System built the Fulton Street subway and added a station one block to the southeast named Clinton–Washington Avenues. The el station became obsolete, and it closed on June 1, 1940, when all service from Fulton Ferry and Park Row to Rockaway Avenue was abandoned, as it came under city ownership.
References
Defunct BMT Fulton Street Line stations
Railway stations in the United States opened in 1888
Railway stations closed in 1940
1888 establishments in New York (state)
1940 disestablishments in New York (state)
Railway stations in the United States closed in the 1940s
|
```objective-c
#pragma once
#include "Board.h"
#include <memory>
#include <cstring>
#include <vector>
class BRDBoard : public Board {
public:
BRDBoard(const BRDFileBase *const boardFile);
~BRDBoard();
const BRDFileBase *m_file;
EBoardType BoardType();
SharedVector<Net> &Nets();
SharedVector<Component> &Components();
SharedVector<Pin> &Pins();
SharedVector<Point> &OutlinePoints();
std::vector<std::pair<Point, Point>> &OutlineSegments();
private:
static const std::string kNetUnconnectedPrefix;
static const std::string kComponentDummyName;
SharedVector<Net> nets_;
SharedVector<Component> components_;
SharedVector<Pin> pins_;
SharedVector<Point> outline_points_;
std::vector<std::pair<Point, Point>> outline_segments_;
};
```
|
```c
/*
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* FFmpeg 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
*
* You should have received a copy of the GNU Lesser General Public
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "config.h"
#include "atomic.h"
#if !HAVE_ATOMICS_NATIVE
#if HAVE_PTHREADS
#include <pthread.h>
static pthread_mutex_t atomic_lock = PTHREAD_MUTEX_INITIALIZER;
int avpriv_atomic_int_get(volatile int *ptr)
{
int res;
pthread_mutex_lock(&atomic_lock);
res = *ptr;
pthread_mutex_unlock(&atomic_lock);
return res;
}
void avpriv_atomic_int_set(volatile int *ptr, int val)
{
pthread_mutex_lock(&atomic_lock);
*ptr = val;
pthread_mutex_unlock(&atomic_lock);
}
int avpriv_atomic_int_add_and_fetch(volatile int *ptr, int inc)
{
int res;
pthread_mutex_lock(&atomic_lock);
*ptr += inc;
res = *ptr;
pthread_mutex_unlock(&atomic_lock);
return res;
}
void *avpriv_atomic_ptr_cas(void * volatile *ptr, void *oldval, void *newval)
{
void *ret;
pthread_mutex_lock(&atomic_lock);
ret = *ptr;
if (ret == oldval)
*ptr = newval;
pthread_mutex_unlock(&atomic_lock);
return ret;
}
#elif !HAVE_THREADS
int avpriv_atomic_int_get(volatile int *ptr)
{
return *ptr;
}
void avpriv_atomic_int_set(volatile int *ptr, int val)
{
*ptr = val;
}
int avpriv_atomic_int_add_and_fetch(volatile int *ptr, int inc)
{
*ptr += inc;
return *ptr;
}
void *avpriv_atomic_ptr_cas(void * volatile *ptr, void *oldval, void *newval)
{
if (*ptr == oldval) {
*ptr = newval;
return oldval;
}
return *ptr;
}
#else /* HAVE_THREADS */
/* This should never trigger, unless a new threading implementation
* without correct atomics dependencies in configure or a corresponding
* atomics implementation is added. */
#error "Threading is enabled, but there is no implementation of atomic operations available"
#endif /* HAVE_PTHREADS */
#endif /* !HAVE_ATOMICS_NATIVE */
```
|
```java
package com.lody.virtual.client.ipc;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
/**
* @author Lody
*/
public class LocalProxyUtils {
/**
* Generates the Proxy instance for a base object, each IPC call will clean its calling identity.
* @param interfaceClass interface class
* @param base base object
* @return proxy object
*/
public static <T> T genProxy(Class<T> interfaceClass, final Object base) {
//noinspection ConstantConditions
if (true) {
return (T) base;
}
//noinspection unchecked
return (T) Proxy.newProxyInstance(interfaceClass.getClassLoader(), new Class[]{ interfaceClass }, new InvocationHandler() {
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
try {
return method.invoke(base, args);
} catch (Throwable e) {
throw e.getCause() == null ? e : e.getCause();
}
}
});
}
}
```
|
```groff
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" This software is provided by Joseph Koshy ``as is'' and
.\" any express or implied warranties, including, but not limited to, the
.\" implied warranties of merchantability and fitness for a particular purpose
.\" are disclaimed. in no event shall Joseph Koshy be liable
.\" for any direct, indirect, incidental, special, exemplary, or consequential
.\" damages (including, but not limited to, procurement of substitute goods
.\" or services; loss of use, data, or profits; or business interruption)
.\" however caused and on any theory of liability, whether in contract, strict
.\" liability, or tort (including negligence or otherwise) arising in any way
.\" out of the use of this software, even if advised of the possibility of
.\" such damage.
.\"
.\" $Id: elf_begin.3,v 1.2 2019/06/20 16:15:22 deraadt Exp $
.\"
.Dd December 11, 2011
.Dt ELF_BEGIN 3
.Os
.Sh NAME
.Nm elf_begin
.Nd open an ELF file or ar(1) archive
.Sh LIBRARY
.Lb libelf
.Sh SYNOPSIS
.In libelf.h
.Ft "Elf *"
.Fn elf_begin "int fd" "Elf_Cmd cmd" "Elf *elf"
.Sh DESCRIPTION
Function
.Fn elf_begin
is used to open ELF files and
.Xr ar 1
archives for further processing by other APIs in the
.Xr elf 3
library.
It is also used to access individual ELF members of an
.Xr ar 1
archive in combination with the
.Xr elf_next 3
and
.Xr elf_rand 3
APIs.
.Pp
Argument
.Ar fd
is an open file descriptor returned from an
.Xr open 2
system call.
Function
.Fn elf_begin
uses argument
.Ar fd
for reading or writing depending on the value of argument
.Ar cmd .
Argument
.Ar elf
is primarily used for iterating through archives.
.Pp
The argument
.Ar cmd
can have the following values:
.Bl -tag -width "ELF_C_WRITE"
.It ELF_C_NULL
Causes
.Fn elf_begin
to return NULL.
Arguments
.Ar fd
and
.Ar elf
are ignored, and no additional error is signalled.
.It ELF_C_READ
This value is to be when the application wishes to examine (but not
modify) the contents of the file specified by the arguments
.Ar fd
and
.Ar elf .
It can be used for both
.Xr ar 1
archives and for ELF objects.
.Pp
If argument
.Ar elf
is NULL, the library will allocate a new ELF descriptor for the file
being processed.
The argument
.Ar fd
should have been opened for reading.
.Pp
If argument
.Ar elf
is not NULL, and references a regular ELF file previously opened with
.Fn elf_begin ,
then the activation count for the descriptor referenced by argument
.Ar elf
is incremented.
The value in argument
.Ar fd
should match that used to open the descriptor argument
.Ar elf .
.Pp
If argument
.Ar elf
is not NULL, and references a descriptor for an
.Xr ar 1
archive opened earlier with
.Fn elf_begin ,
a descriptor for an element in the archive is returned as
described in the section
.Sx "Processing ar(1) archives"
below.
The value for argument
.Ar fd
should match that used to open the archive earlier.
.Pp
If argument
.Ar elf
is not NULL, and references an
.Xr ar 1
archive opened earlier with
.Fn elf_memory ,
then the value of the argument
.Ar fd
is ignored.
.It Dv ELF_C_RDWR
This command is used to prepare an ELF file for reading and writing.
This command is not supported for
.Xr ar 1
archives.
.Pp
Argument
.Ar fd
should have been opened for reading and writing.
If argument
.Ar elf
is NULL, the library will allocate a new ELF descriptor for
the file being processed.
If the argument
.Ar elf
is non-null, it should point to a descriptor previously
allocated with
.Fn elf_begin
with the same values for arguments
.Ar fd
and
.Ar cmd ;
in this case the library will increment the activation count for descriptor
.Ar elf
and return the same descriptor.
.Pp
Changes to the in-memory image of the ELF file may be written back to
disk using the
.Xr elf_update 3
function.
.It Dv ELF_C_WRITE
This command is used when the application wishes to create a new ELF
file.
Argument
.Ar fd
should have been opened for writing.
Argument
.Ar elf
is ignored, and the previous contents of file referenced by argument
.Ar fd
are overwritten.
.El
.Ss Processing ar(1) archives
An
.Xr ar 1
archive may be opened in read mode (with argument
.Ar cmd
set to
.Dv ELF_C_READ )
using
.Fn elf_begin
or
.Fn elf_memory .
The returned ELF descriptor can be passed into to
subsequent calls to
.Fn elf_begin
to access individual members of the archive.
.Pp
Random access within an opened archive is possible using
the
.Xr elf_next 3
and
.Xr elf_rand 3
functions.
.Pp
The symbol table of the archive may be retrieved
using
.Xr elf_getarsym 3 .
.Sh RETURN VALUES
The function returns a pointer to a ELF descriptor if successful, or NULL
if an error occurred.
.Sh EXAMPLES
To iterate through the members of an
.Xr ar 1
archive, use:
.Bd -literal -offset indent
Elf_Cmd c;
Elf *ar_e, *elf_e;
\&...
c = ELF_C_READ;
if ((ar_e = elf_begin(fd, c, (Elf *) 0)) == 0) {
\&... handle error in opening the archive ...
}
while ((elf_e = elf_begin(fd, c, ar_e)) != 0) {
\&... process member referenced by elf_e here ...
c = elf_next(elf_e);
elf_end(elf_e);
}
.Ed
.Pp
To create a new ELF file, use:
.Bd -literal -offset indent
int fd;
Elf *e;
\&...
if ((fd = open("filename", O_RDWR|O_TRUNC|O_CREAT, 0666)) == -1) {
\&... handle the error from open(2) ...
}
if ((e = elf_begin(fd, ELF_C_WRITE, (Elf *) 0)) == 0) {
\&... handle the error from elf_begin() ...
}
\&... create the ELF image using other elf(3) APIs ...
elf_update(e, ELF_C_WRITE);
elf_end(e);
.Ed
.Sh ERRORS
Function
.Fn elf_begin
can fail with the following errors:
.Bl -tag -width "[ELF_E_RESOURCE]"
.It Bq Er ELF_E_ARCHIVE
The archive denoted by argument
.Ar elf
could not be parsed.
.It Bq Er ELF_E_ARGUMENT
The value in argument
.Ar cmd
was unrecognized.
.It Bq Er ELF_E_ARGUMENT
A non-null value for argument
.Ar elf
was specified when
.Ar cmd
was set to
.Dv ELF_C_RDWR .
.It Bq Er ELF_E_ARGUMENT
The value of argument
.Ar fd
differs from the one the ELF descriptor
.Ar elf
was created with.
.It Bq Er ELF_E_ARGUMENT
Argument
.Ar cmd
differs from the value specified when ELF descriptor
.Ar elf
was created.
.It Bq Er ELF_E_ARGUMENT
An
.Xr ar 1
archive was opened with
.Ar cmd
set to
.Dv ELF_C_RDWR .
.It Bq Er ELF_E_ARGUMENT
The file referenced by argument
.Ar fd
was empty.
.It Bq Er ELF_E_ARGUMENT
The underlying file for argument
.Ar fd
was of an unsupported type.
.It Bq Er ELF_E_IO
The file descriptor in argument
.Ar fd
was invalid.
.It Bq Er ELF_E_IO
The file descriptor in argument
.Ar fd
could not be read or written to.
.It Bq Er ELF_E_RESOURCE
An out of memory condition was encountered.
.It Bq Er ELF_E_SEQUENCE
Function
.Fn elf_begin
was called before a working version was established with
.Xr elf_version 3 .
.It Bq Er ELF_E_VERSION
The ELF object referenced by argument
.Ar fd
was of an unsupported ELF version.
.El
.Sh SEE ALSO
.Xr elf 3 ,
.Xr elf_end 3 ,
.Xr elf_errno 3 ,
.Xr elf_memory 3 ,
.Xr elf_next 3 ,
.Xr elf_rand 3 ,
.Xr elf_update 3 ,
.Xr gelf 3
```
|
```objective-c
// WebAssemblyInstPrinter.h - Print wasm MCInst to assembly syntax -*- C++ -*-//
//
// See path_to_url for license information.
//
//===your_sha256_hash------===//
///
/// \file
/// This class prints an WebAssembly MCInst to wasm file syntax.
///
//===your_sha256_hash------===//
#ifndef your_sha256_hash
#define your_sha256_hash
#include "llvm/ADT/SmallVector.h"
#include "llvm/BinaryFormat/Wasm.h"
#include "llvm/MC/MCInstPrinter.h"
#include "llvm/Support/MachineValueType.h"
namespace llvm {
class MCSubtargetInfo;
class WebAssemblyInstPrinter final : public MCInstPrinter {
uint64_t ControlFlowCounter = 0;
uint64_t EHPadStackCounter = 0;
SmallVector<std::pair<uint64_t, bool>, 4> ControlFlowStack;
SmallVector<uint64_t, 4> EHPadStack;
enum EHInstKind { TRY, CATCH, END_TRY };
EHInstKind LastSeenEHInst = END_TRY;
public:
WebAssemblyInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
const MCRegisterInfo &MRI);
void printRegName(raw_ostream &OS, unsigned RegNo) const override;
void printInst(const MCInst *MI, uint64_t Address, StringRef Annot,
const MCSubtargetInfo &STI, raw_ostream &OS) override;
// Used by tblegen code.
void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O);
void printBrList(const MCInst *MI, unsigned OpNo, raw_ostream &O);
void printWebAssemblyP2AlignOperand(const MCInst *MI, unsigned OpNo,
raw_ostream &O);
void printWebAssemblySignatureOperand(const MCInst *MI, unsigned OpNo,
raw_ostream &O);
// Autogenerated by tblgen.
void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O);
static const char *getRegisterName(unsigned RegNo);
};
namespace WebAssembly {
const char *typeToString(wasm::ValType Ty);
const char *anyTypeToString(unsigned Ty);
std::string typeListToString(ArrayRef<wasm::ValType> List);
std::string signatureToString(const wasm::WasmSignature *Sig);
} // end namespace WebAssembly
} // end namespace llvm
#endif
```
|
Gaily (23 April 1971 – after 1985) was an American-bred, British-trained Thoroughbred racehorse and broodmare. As a two-year-old in 1973 she failed to win but showed considerable promise in her two races. In the following year she won on her seasonal debut before recording her biggest success in the Irish 1000 Guineas. She went on to finish second in the Irish Oaks and third in the Prix Vermeille before being retired at the end of the season with a record of two wins and four places from nine starts. She went on to become a successful and influential broodmare whose descendants have included Pilsudski, Creachadoir and Landing Light.
Background
Gaily was a "well-made, attractive" brown mare with no white markings bred in Kentucky by Warner L Jones of Hermitage Farm. As a yearling she was offered for sale at Keeneland and was bought for $120,000 by representatives of the British owner and breeder Michael Sobell. The filly was sent to race in Europe and entered training with Dick Hern at West Ilsley in Berkshire, where she was a contemporary of the Queen's filly Highclere.
She was sired by Sir Gaylord, a half brother to Secretariat and a successful racehorse and sire in his own right: his other offspring included Sir Ivor and Habitat. Her dam Spearfish was a high-class racemare who won the Hollywood Oaks and the Santa Susana Stakes in 1966. She later became a very successful broodmare who also produced King's Bishop and Empire Glory.
Racing career
1973: two-year-old season
Gaily made her racecourse debut in a maiden race over six furlongs at Newbury Racecourse in August, and finished second of the sixteen runners, beaten one and a half lengths by the Peter Walwyn-trained Heavenly Form. She was moved up in distance for the Green Shield Stakes over one mile at Ascot Racecourse a month later and finished third to Escorial and Evening Venture after having some problems in obtaining a clear run.
1974: three-year-old season
Gaily recorded her first victory on her three-year-old debut, winning a nineteen-runner maiden over one mile at Ascot in April: it proved to be her last race in England. She was sent to Ireland and moved up in class for the Irish 1000 Guineas on soft ground at the Curragh on 18 May. Ridden by the Australian jockey Ron Hutchinson she started the 11/5 favourite ahead of her fellow British challenger Always Faithful who was partnered by Lester Piggott. The best fancied of the other 15 runners included Silk Buds (winner of the Park Stakes and Silken Glider Stakes), Matuno God (Mulcahy Stakes), Northern Gem (Fred Darling Stakes), Lady Rowe and Perfect Aim. Gaily took the lead at half way, went clear of the field and won easily by one and a half lengths from Northern Gem.
Gaily failed to win her in her five remaining races but ran well in some top-class races. In the Prix de Diane over 2000 metres at Chantilly Racecourse on 14 June she started a 25/1 outsider and finished seventh of the 22 runners behind her stablemate Highclere, who won from Comtesse de Loir. She then returned to the Curragh for the Irish Oaks over one and a half miles on 20 July and finished second to Dibidale with Polygamy in third. In the Prix de la Nonette at Longchamp Racecourse on 1 September she came home sixth behind Paulista when conceding weight to her eleven opponents. Three weeks later at the same track she started a 35/1 outsider in the Prix Vermeille but belied her odds as she finished third of the fifteen runners behind Paulista and Comtesse de Loir. On her final appearance she was unplaced behind Cheryl in the Prix de l'Opéra at Longchamp on 6 October.
Assessment
In 1973he independent Timeform organisation gave the Gaily a rating of 103, 22 pounds behind their best two-year-old filly Melchbourne. In their annual Racehorses of 1973 they described her as "sure to win a race" and likely to stay ten furlongs. In the following year Timeform described her as "tough, genuine and consistent" and gave her a rating of 121, ten pounds behind their top three-year-old filly Comtesse de Loir.
Breeding record
Gaily was retired from racing to become a broodmare for her owner's Ballymacoll Stud. She produced at least nine foals between 1976 and 1986:
Clean Slate, a bay colt, foaled in 1976, sired by Reform
Gay Milly, bay filly, 1977, by Mill Reef. Won one race, female-line ancestor of Pilsudski, Creachadoir and Fine Motion (Shuka Sho).
Hard To Say, bay colt, 1978, by Lyphard
Glad Tidings, brown filly, 1979, by Pharly. Won two races.
Laughing Boy, bay colt, 1980, by Riverman
Gay Hellene, bay filly, 1982, by Ela-Mana-Mou. Won three races including Prix de Flore dam of Landing Light.
Gay Fantastic, bay filly, 1983, by Ela-Mana-Mou. Dam of Cape Tribulation (Cotswold Chase) and Moon Solitaire (King Edward Stakes).
Grecian Girl, brown filly, 1985, by Ela-Mana-Mou
Glad Man, bay colt, 1986, by Ela-Mana-Mou
Pedigree
References
1971 racehorse births
Racehorses bred in Kentucky
Racehorses trained in the United Kingdom
Thoroughbred family 11
Irish Classic Race winners
|
Andrew George Beniuk (born April 26, 1944) is a former provincial level politician from Alberta, Canada. He served as a Member of the Alberta Legislature from 1993 until 1997 and has since tried to regain his seat twice since being defeated.
Political career
Beniuk was elected to his first term in the Alberta Legislature in the 1993 Alberta general election. He defeated NDP Leader Ray Martin in a surprise win to pick up Edmonton-Norwood for the Liberals. On June 23, 1995 Beniuk was removed from the Liberal caucus and sat as an Independent. He joined the Progressive Conservatives in 1996. Beniuk ran for re-election in the 1997 Alberta general election but was defeated by Sue Olsen of his former party. Beniuk tried to regain his seat in the 2001 Alberta general election but was defeated by Bill Bonner in the Edmonton-Glengarry electoral district. In 2008 he attempted to repeat his 1993 feat and ran against NDP leader Brian Mason in Edmonton Highlands-Norwood. He was easily defeated by Mason.
References
External links
Legislative Assembly of Alberta Members Listing
Living people
Progressive Conservative Association of Alberta MLAs
Alberta Liberal Party MLAs
Independent Alberta MLAs
1944 births
|
This is a list of electoral results for the Division of O'Connor in Australian federal elections from the division's creation in 1980 until the present.
Members
Election results
Elections in the 2020s
2022
Elections in the 2010s
2019
2016
2013
2010
Elections in the 2000s
2007
2004
2001
Elections in the 1990s
1998
1996
1993
1990
Elections in the 1980s
1987
1984
1983
1980
References
Australian Electoral Commission. Federal Election results
Carr, Adam. Psephos
Australian federal electoral results by division
|
is an English trusts law case, concerning the destination of property that is held by unincorporated associations when they wind up. The High Court applied the view that while the association exists, assets are held jointly by the members but according to the terms of the association contract, and when the association ends any surplus funds go to those who were members of the association at the moment of its dissolution. (In the particular case, one sole member survived.)
Facts
The Performing and Captive Animals Defence League was founded as an unincorporated association in 1914, with the purpose of banning animals performing. It was decided the league had no charitable status in 1949, after National Anti-Vivisection Society v IRC, because it was meant to change the law. Mr and Mrs Hanchett-Stamford joined as life members in the mid 1960s; he died in 2006 and she was the sole surviving member of the society. She decided to wind up and give the money to an active animal charity, seeking a declaration that the work and objects of the league were charitable under the Charities Act 2006 section 2(2)(k) and appointed herself and her solicitor as trustees of the fund, or just take the money herself.
Judgment
Lewison J held the society was not charitable within the legal definition. However, he held that on her husband's death the league ceased to exist, the rules ceased to bind her, and she was absolutely entitled to the assets as the sole surviving member. He held there was no need, in fact, to invoke a new form of co-ownership. Rather the association, while it lasted, was "a species of joint tenancy":
The donor transfers property to the members beneficially, but the property is received by the members as group property, as an accretion to an association's funds. This means its use is to be governed by contract, and the contract in almost all cases prevents severance of a member's share.
See also
English trust law
Notes
References
English trusts case law
High Court of Justice cases
2008 in United Kingdom case law
|
```smalltalk
/* ====/* ========================================================================
*
*
* 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.
*
* The complete license agreement can be found here:
* ======================================================================*/
using System;
using NUnit.Framework;
using Assert = NUnit.Framework.Legacy.ClassicAssert;
namespace Opc.Ua.PubSub.Tests.Configuration
{
[TestFixture(Description = "Tests for UaPubSubDataStore class")]
public class UaPubSubDataStoreTests
{
#region WritePublishedDataItem
[Test(Description = "Validate WritePublishedDataItem call with different values")]
public void ValidateWritePublishedDataItem(
[Values(true, (byte)1, (ushort)2, (short)3, (uint)4, (int)5, (ulong)6, (long)7,
(double)8, (float)9, "10")] object value)
{
//Arrange
UaPubSubDataStore dataStore = new UaPubSubDataStore();
NodeId nodeId = new NodeId("ns=1;i=1");
//Act
dataStore.WritePublishedDataItem(nodeId, Attributes.Value, new DataValue(new Variant(value)));
DataValue readDataValue = dataStore.ReadPublishedDataItem(nodeId, Attributes.Value);
//Assert
Assert.IsNotNull(readDataValue, "Returned DataValue for written nodeId and attribute is null");
Assert.AreEqual(readDataValue.Value, value, "Read after write returned different value");
}
[Test(Description = "Validate WritePublishedDataItem call with null NodeId")]
public void ValidateWritePublishedDataItemNullNodeId()
{
//Arrange
UaPubSubDataStore dataStore = new UaPubSubDataStore();
//Assert
Assert.Throws(typeof(ArgumentException), () => dataStore.WritePublishedDataItem(null));
}
[Test(Description = "Validate WritePublishedDataItem call with invalid Attribute")]
public void ValidateWritePublishedDataItemInvalidAttribute()
{
//Arrange
UaPubSubDataStore dataStore = new UaPubSubDataStore();
//Assert
Assert.Throws(typeof(ArgumentException),
() => dataStore.WritePublishedDataItem(new NodeId("ns=0;i=2253"), (uint)Attributes.AccessLevelEx + 1));
}
#endregion
#region ReadPublishedDataItem
[Test(Description = "Validate ReadPublishedDataItem call for non existing node id")]
public void ValidateReadPublishedDataItem()
{
//Arrange
UaPubSubDataStore dataStore = new UaPubSubDataStore();
NodeId nodeId = new NodeId("ns=1;i=1");
//Act
DataValue readDataValue = dataStore.ReadPublishedDataItem(nodeId, Attributes.Value);
//Assert
Assert.IsNull(readDataValue, "Returned DataValue for written nodeId and attribute is NOT null");
}
[Test(Description = "Validate ReadPublishedDataItem call with null NodeId")]
public void ValidateReadPublishedDataItemNullNodeId()
{
//Arrange
UaPubSubDataStore dataStore = new UaPubSubDataStore();
//Assert
Assert.Throws(typeof(ArgumentException), () => dataStore.ReadPublishedDataItem(null));
}
[Test(Description = "Validate ReadPublishedDataItem call with invalid Attribute")]
public void ValidateReadPublishedDataIteminvalidAttribute()
{
//Arrange
UaPubSubDataStore dataStore = new UaPubSubDataStore();
//Assert
Assert.Throws(typeof(ArgumentException),
() => dataStore.ReadPublishedDataItem(new NodeId("ns=0;i=2253"), (uint)Attributes.AccessLevelEx + 1));
}
#endregion
}
}
```
|
Domingo Villanueva (23 December 1964 – 7 April 2020) was a Filipino cyclist. He competed at the 1988 Summer Olympics and the 1992 Summer Olympics.
References
External links
1964 births
2020 deaths
Filipino male cyclists
Olympic cyclists for the Philippines
Cyclists at the 1988 Summer Olympics
Cyclists at the 1992 Summer Olympics
Place of birth missing
Cyclists at the 1994 Asian Games
Asian Games competitors for the Philippines
|
```python
#!/usr/bin/python3
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
import atheris
import sys
import glom
import json
def TestOneInput(data):
fdp = atheris.FuzzedDataProvider(data)
val = {'d': {'e': ['f']}}
try:
glom.core.glom(val, glom.core.Inspect(fdp.ConsumeUnicodeNoSurrogates(64)))
except glom.GlomError:
pass
try:
glom.core.glom(
val,
glom.core.Coalesce(fdp.ConsumeUnicodeNoSurrogates(32),
fdp.ConsumeUnicodeNoSurrogates(32),
fdp.ConsumeUnicodeNoSurrogates(32)))
except glom.GlomError:
pass
# Create a random dictionary. In this case if any
# error happens during random dict creation we just
# exit.
try:
json_dict = json.loads(fdp.ConsumeString(fdp.ConsumeIntInRange(0, 512)))
except Exception:
return
if not isinstance(json_dict, dict):
return
# Use random dict as input to glom
try:
glom.core.glom(json_dict, fdp.ConsumeString(30))
except glom.GlomError:
pass
try:
spec = glom.T['a']['b']['c']
glom.core.glom(json_dict, spec)
except glom.GlomError:
pass
def main():
atheris.instrument_all()
atheris.Setup(sys.argv, TestOneInput)
atheris.Fuzz()
if __name__ == "__main__":
main()
```
|
Milan Senić (; born 11 July 1997) is a Serbian football forward, who plays for SC Düsseldorf-West in the Oberliga Niederrhein.
Born in Szeged, as a member of a Serbian ethnic group, Senić holds both Hungarian and Serbian citizenship.
Club career
Early years
Senić started playing football with local football school Tisza Volán. Coming to German side, Senić played with TuS Koblenz before he joined Bayer Leverkusen youth sistem. Passing throw the club academy, Senić also played in the UEFA Youth League in 2014 and 2015. Next he overgrown youth categories, Senić was loaned to TSG Neustrelitz for a half-season in 2016. After he refused to extend the contract with Bayer Leverkusen, Senić left the club as a free agent.
Red Star Belgrade
On 9 January 2017, Senić signed four-and-a-half-year deal with Red Star Belgrade, when general director of the club, Zvezdan Terzić, compared him with Cristiano Ronaldo. After he spent the winter break off-season with the club, he was loaned to the Serbian First League OFK Beograd on dual registration until the end of season, also playing with Red Star reserves. In summer 2017, Senić moved on loan to Hungarian side BFC Siófok.
International career
After he was a member of Serbia U18 level from 2014 to 2015, Senić was also called into the Serbia national under-19 football team between 2015 and 2016. Playing with the team, Senić made 13 appearances and scored 3 goals in matches against Montenegro, Armenia and Spain.
Career statistics
Club
References
External links
1997 births
Living people
Footballers from Szeged
Men's association football forwards
Serbian men's footballers
Serbian expatriate men's footballers
Expatriate men's footballers in Germany
Serbian expatriate sportspeople in Germany
Regionalliga players
Serbian First League players
Bayer 04 Leverkusen
TSG Neustrelitz players
Red Star Belgrade footballers
OFK Beograd players
BFC Siófok players
1. FC Lokomotive Leipzig players
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.