# Copyright 2016-2018 Yubico AB
#
@@ -170,12 +86,9 @@ Source code for yubihsm.core
"""Core classes for YubiHSM communication."""
-
-from __future__ import absolute_import , division
-
from . import utils
-from .defs import COMMAND , ALGORITHM , LIST_FILTER , OPTION , AUDIT
-from .backends import get_backend
+from .defs import COMMAND , OBJECT , ALGORITHM , LIST_FILTER , OPTION , AUDIT , ERROR
+from .backends import get_backend , YhsmBackend
from .objects import YhsmObject , _label_pack , LABEL_LENGTH
from .exceptions import (
YubiHsmDeviceError ,
@@ -186,13 +99,14 @@ Source code for yubihsm.core
)
from cryptography.hazmat.backends import default_backend
-from cryptography.hazmat.primitives import cmac , constant_time
+from cryptography.hazmat.primitives import cmac , constant_time , hashes , serialization
+from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives.ciphers import Cipher , algorithms , modes
-from cryptography.utils import int_to_bytes
+from cryptography.hazmat.primitives.kdf.x963kdf import X963KDF
from hashlib import sha256
-from collections import namedtuple
+from dataclasses import dataclass , astuple
+from typing import Optional , Sequence , Mapping , Tuple , ClassVar , Set , NamedTuple
import os
-import six
import struct
@@ -205,7 +119,7 @@ Source code for yubihsm.core
MAX_MSG_SIZE = 2048 - 1
-def _derive ( key , t , context , L = 0x80 ):
+def _derive ( key : bytes , t : int , context : bytes , L : int = 0x80 ) -> bytes :
# this only supports aes128
if L != 0x80 and L != 0x40 :
raise ValueError ( "L must be 0x40 or 0x80" )
@@ -217,28 +131,201 @@ Source code for yubihsm.core
return c . finalize ()[: L // 8 ]
-def _unpad_resp ( resp , cmd ):
+def _unpad_resp ( resp : bytes , cmd : COMMAND ) -> bytes :
if len ( resp ) < 3 :
raise YubiHsmInvalidResponseError ( "Wrong length" )
rcmd , length = struct . unpack ( "!BH" , resp [: 3 ])
if len ( resp ) < length + 3 :
raise YubiHsmInvalidResponseError ( "Wrong length" )
if rcmd == COMMAND . ERROR :
- raise YubiHsmDeviceError ( six . indexbytes ( resp , 3 ))
+ raise YubiHsmDeviceError ( resp [ 3 ])
elif rcmd != cmd | 0x80 :
raise YubiHsmInvalidResponseError ( "Wrong command in response" )
return resp [ 3 : length + 3 ]
-[docs] class YubiHsm ( object ):
-
"""An unauthenticated connection to a YubiHSM."""
+
class _UnknownIntEnum ( int ):
+
name = "UNKNOWN"
+
+
def __repr__ ( self ):
+
return "< %s : %d >" % ( self . name , self )
+
+
def __str__ ( self ):
+
return self . name
+
+
@property
+
def value ( self ) -> int :
+
return int ( self )
+
+
+
class _UnknownAlgorithm ( _UnknownIntEnum ):
+
"""Wrapper for unknown ALGORITHM values.
+
+
Provides obj.name, obj.value and and string representations."""
+
+
name = "ALGORITHM.UNKNOWN"
+
+
+
def _algorithm ( val : int ) -> ALGORITHM :
+
try :
+
return ALGORITHM ( val )
+
except ValueError :
+
return _UnknownAlgorithm ( val ) # type: ignore
+
+
+
class _UnknownCommand ( _UnknownIntEnum ):
+
"""Wrapper for unknown COMMAND values.
+
+
Provides obj.name, obj.value and and string representations."""
+
+
name = "COMMAND.UNKNOWN"
+
+
+
[docs] @dataclass ( frozen = True )
+
class DeviceInfo :
+
"""Data class holding various information about the YubiHSM.
+
+
:ivar version: YubiHSM version tuple.
+
:ivar serial: YubiHSM serial number.
+
:ivar log_size: Log entry storage capacity.
+
:ivar log_used: Log entries currently stored.
+
:ivar supported_algorithms: List of supported algorithms.
+
"""
+
+
FORMAT : ClassVar [ str ] = "!BBBIBB"
+
LENGTH : ClassVar [ int ] = struct . calcsize ( FORMAT )
+
+
version : Tuple [ int , int , int ]
+
serial : int
+
log_size : int
+
log_used : int
+
supported_algorithms : Set [ ALGORITHM ]
+
+
[docs] @classmethod
+
def parse ( cls , value : bytes ) -> "DeviceInfo" :
+
"""Parse a DeviceInfo from its binary representation."""
+
unpacked = struct . unpack_from ( cls . FORMAT , value )
+
version : Tuple [ int , int , int ] = unpacked [: 3 ] # type: ignore
+
serial , log_size , log_used = unpacked [ 3 :]
+
algorithms = { _algorithm ( a ) for a in value [ cls . LENGTH :]}
+
+
return cls ( version , serial , log_size , log_used , algorithms )
+
+
+
def _calculate_iv ( key : bytes , counter : int ) -> bytes :
+
encryptor = Cipher (
+
algorithms . AES ( key ), modes . ECB (), backend = default_backend () # nosec ECB
+
) . encryptor ()
+
return encryptor . update ( int . to_bytes ( counter , 16 , "big" )) + encryptor . finalize ()
+
+
+
def _calculate_mac ( key : bytes , chain : bytes , message : bytes ) -> Tuple [ bytes , bytes ]:
+
c = cmac . CMAC ( algorithms . AES ( key ), backend = default_backend ())
+
c . update ( chain )
+
c . update ( message )
+
chain = c . finalize ()
+
return chain , chain [: 8 ]
+
+
+
[docs] @dataclass ( frozen = True )
+
class LogEntry :
+
"""YubiHSM log entry.
+
+
:param int number: The sequence number of the entry.
+
:param int command: The COMMAND executed.
+
:param int length: The length of the command.
+
:param int session_key: The ID of the Authentication Key for the session.
+
:param int target_key: The ID of the key used by the command.
+
:param int second_key: The ID of the secondary key used by the command, if
+
applicable.
+
:param int result: The result byte of the response.
+
:param int tick: The YubiHSM system tick value when the command was run.
+
:param bytes digest: A truncated hash of the entry and previous digest.
+
"""
+
+
FORMAT : ClassVar [ str ] = "!HBHHHHBL16s"
+
LENGTH : ClassVar [ int ] = struct . calcsize ( FORMAT )
+
+
number : int
+
command : COMMAND
+
length : int
+
session_key : int
+
target_key : int
+
second_key : int
+
result : int
+
tick : int
+
digest : bytes
+
+
@property
+
def data ( self ) -> bytes :
+
"""Get log entry binary data.
+
+
:return: The binary LogEntry data, excluding the digest.
+
"""
+
return struct . pack ( self . FORMAT , * astuple ( self ))[: - 16 ]
+
+
[docs] @classmethod
+
def parse ( cls , data : bytes ) -> "LogEntry" :
+
"""Parse a LogEntry from its binary representation.
+
+
:param data: Binary data to unpack from.
+
:return: The parsed object.
+
"""
+
unpacked = list ( struct . unpack ( cls . FORMAT , data ))
+
try :
+
unpacked [ 1 ] = COMMAND ( unpacked [ 1 ])
+
except ValueError :
+
unpacked [ 1 ] = _UnknownCommand ( unpacked [ 1 ])
+
return cls ( * unpacked )
+
+
[docs] def validate ( self , previous_entry : "LogEntry" ) -> bool :
+
"""Validate the hash of a single log entry.
+
+
Validates the hash of this entry with regard to the previous entry's
+
hash. The previous entry is the LogEntry with the previous number,
+
previous_entry.number == self.number - 1
+
+
:param previous_entry: The previous log entry to validate against.
+
:return: True if the digest is correct, False if not.
+
"""
+
+
if ( self . number - previous_entry . number ) & 0xFFFF != 1 :
+
raise ValueError ( "previous_entry has wrong number!" )
+
+
digest = sha256 ( self . data + previous_entry . digest ) . digest ()[: 16 ]
+
return constant_time . bytes_eq ( self . digest , digest )
+
+
+
[docs] class LogData ( NamedTuple ):
+
"""Data class holding response data from a GET_LOGS command.
-
def __init__ ( self , backend ):
-
"""Constructs a YubiHSM connected to the given backend.
+
:param n_boot: Number of unlogged boot events.
+
:param n_auth: Number of unlogged authentication events.
+
:param entries: List of LogEntry items.
+
"""
+
+
n_boot : int
+
n_auth : int
+
entries : Sequence [ LogEntry ]
+
+
+
class _ClosedBackend ( YhsmBackend ):
+
def transceive ( self , msg ):
+
raise TypeError ( "The backend has been closed!" )
+
+
def close ( self ):
+
pass
+
+
+
[docs] class YubiHsm :
+
"""An unauthenticated connection to a YubiHSM."""
+
+
def __init__ ( self , backend : YhsmBackend ):
+
"""Constructs a YubiHSM connected to the given backend.
:param backend: A backend used to communicate with a YubiHSM.
"""
-
self . _backend = backend
+
self . _backend : YhsmBackend = backend
def __enter__ ( self ):
return self
@@ -246,76 +333,128 @@
Source code for yubihsm.core
def __exit__ ( self , typ , value , traceback ):
self . close ()
-[docs] def close ( self ):
-
"""Disconnect from the backend, freeing any resources in use by it."""
+
[docs] def close ( self ) -> None :
+
"""Disconnect from the backend, freeing any resources in use by it."""
if self . _backend :
self . _backend . close ()
-
self . _backend = None
+
self . _backend = _ClosedBackend ()
- def _transceive ( self , msg ):
+ def _transceive ( self , msg : bytes ) -> bytes :
if len ( msg ) > MAX_MSG_SIZE :
raise YubiHsmInvalidRequestError ( "Message too long." )
return self . _backend . transceive ( msg )
-[docs] def send_cmd ( self , cmd , data = b "" ):
-
"""Encode and send a command byte and its associated data.
+
[docs] def send_cmd ( self , cmd : COMMAND , data : bytes = b "" ) -> bytes :
+
"""Encode and send a command byte and its associated data.
-
:param COMMAND cmd: The command to send.
-
:param bytes data: The command payload to send.
+
:param cmd: The command to send.
+
:param data: The command payload to send.
:return: The response data from the YubiHSM.
-
:rtype: bytes
"""
msg = struct . pack ( "!BH" , cmd , len ( data )) + data
return _unpad_resp ( self . _transceive ( msg ), cmd )
-
[docs] def get_device_info ( self ):
-
"""Get general device information from the YubiHSM.
+
[docs] def get_device_info ( self ) -> DeviceInfo :
+
"""Get general device information from the YubiHSM.
:return: Device information.
-
:rtype: DeviceInfo
"""
return DeviceInfo . parse ( self . send_cmd ( COMMAND . DEVICE_INFO ))
-
[docs] def create_session ( self , auth_key_id , key_enc , key_mac ):
-
"""Creates an authenticated session with the YubiHSM.
+
[docs] def get_device_public_key ( self ) -> ec . EllipticCurvePublicKey :
+
"""Retrieve the device's public key.
+
+
:return: The device public key.
+
"""
+
resp = self . send_cmd ( COMMAND . GET_DEVICE_PUBLIC_KEY )
+
algorithm , public_key = resp [ 0 ], resp [ 1 :]
+
if algorithm != ALGORITHM . EC_P256_YUBICO_AUTHENTICATION :
+
raise YubiHsmInvalidResponseError ()
+
return ec . EllipticCurvePublicKey . from_encoded_point (
+
ec . SECP256R1 (), b " \x04 " + public_key
+
)
+
+
[docs] def init_session ( self , auth_key_id : int ) -> "SymmetricAuth" :
+
"""Initiates the symmetric authentication process for establishing
+
an authenticated session with the YubiHSM.
+
+
:param auth_key_id: The ID of the Authentication key used to
+
authenticate the session.
+
:return: A negotiation of an authenticated Session with a YubiHSM.
+
"""
+
return SymmetricAuth . init_session ( self , auth_key_id )
+
+
[docs] def init_session_asymmetric (
+
self , auth_key_id : int , epk_oce : bytes
+
) -> "AsymmetricAuth" :
+
"""Initiates the asymmetric authentication process for establishing
+
an authenticated session with the YubiHSM.
+
+
:param auth_key_id: The ID of the Authentication key used to
+
authenticate the session.
+
:param epk_oce: The ephemeral public key of the OCE used
+
for key agreement.
+
"""
+
return AsymmetricAuth . init_session ( self , auth_key_id , epk_oce )
+
+
[docs] def create_session (
+
self , auth_key_id : int , key_enc : bytes , key_mac : bytes
+
) -> "AuthSession" :
+
"""Creates an authenticated session with the YubiHSM.
See also create_session_derived, which derives K-ENC and K-MAC from a
password.
-
:param int auth_key_id: The ID of the Authentication key used to
+
:param auth_key_id: The ID of the Authentication key used to
authenticate the session.
-
:param bytes key_enc: Static K-ENC used to establish session.
-
:param bytes key_mac: Static K-MAC used to establish session.
+
:param key_enc: Static K-ENC used to establish session.
+
:param key_mac: Static K-MAC used to establish session.
:return: An authenticated session.
-
:rtype: AuthSession
"""
-
return AuthSession ( self , auth_key_id , key_enc , key_mac )
+
return SymmetricAuth . create_session ( self , auth_key_id , key_enc , key_mac )
-
[docs] def create_session_derived ( self , auth_key_id , password ):
-
"""Creates an authenticated session with the YubiHSM.
+
[docs] def create_session_derived ( self , auth_key_id : int , password : str ) -> "AuthSession" :
+
"""Creates an authenticated session with the YubiHSM.
Uses a supplied password to derive the keys K-ENC and K-MAC.
-
:param int auth_key_id: The ID of the Authentication key used to
+
:param auth_key_id: The ID of the Authentication key used to
authenticate the session.
-
:param str password: The password used to derive the keys from.
+
:param password: The password used to derive the keys from.
:return: An authenticated session.
-
:rtype: AuthSession
"""
key_enc , key_mac = utils . password_to_key ( password )
return self . create_session ( auth_key_id , key_enc , key_mac )
+
[docs] def create_session_asymmetric (
+
self ,
+
auth_key_id : int ,
+
private_key : ec . EllipticCurvePrivateKey ,
+
public_key : Optional [ ec . EllipticCurvePublicKey ] = None ,
+
) -> "AuthSession" :
+
"""Creates an authenticated session with the YubiHSM.
+
+
:param auth_key_id: The ID of the Authentication key used to
+
authenticate the session.
+
:param private_key: Private key corresponding to the public
+
authentication key object.
+
:param public_key: The device's public key. If omitted, the public key
+
is fetched from the YubiHSM.
+
:return: An authenticated session.
+
"""
+
if public_key is None :
+
public_key = self . get_device_public_key ()
+
return AsymmetricAuth . create_session ( self , auth_key_id , private_key , public_key )
+
[docs] @classmethod
-
def connect ( cls , url = None ):
-
"""Return a YubiHsm connected to the backend specified by the URL.
+
def connect ( cls , url : Optional [ str ] = None ) -> "YubiHsm" :
+
"""Return a YubiHsm connected to the backend specified by the URL.
If no URL is given this will attempt to connect to a YubiHSM connector
running on localhost, using the default port.
-
:param str url: (optional) A http(s):// or yhusb:// backend URL.
-
:return: A YubiHsm instance connected to the backend referenced by the
-
url.
-
:rtype: YubiHsm
+
:param url: A http(s):// or yhusb:// backend URL.
+
:return: A YubiHsm instance connected to the backend referenced by the url.
"""
return cls ( get_backend ( url ))
@@ -323,139 +462,264 @@
Source code for yubihsm.core
return " {0.__class__.__name__} ( {0._backend} )" . format ( self )
-
class _UnknownIntEnum ( int ):
-
name = "UNKNOWN"
+
[docs] class SymmetricAuth :
+
"""A negotiation of an authenticated Session with a YubiHSM.
-
def __repr__ ( self ):
-
return "< %s : %d >" % ( self . name , self )
+
This class is used to begin the mutual authentication process
+
for establishing an authenticated session with the YubiHSM,
+
using symmetric authentication. Typically you get an instance
+
of this class by calling :func:`~YubiHsm.init_session`.
+
"""
-
def __str__ ( self ):
-
return self . name
+
def __init__ ( self , hsm : YubiHsm , sid : int , context : bytes , card_crypto : bytes ):
+
self . _hsm = hsm
+
self . _sid = sid
+
self . _context = context
+
self . _card_crypto = card_crypto
@property
-
def value ( self ):
-
return int ( self )
-
-
-
class _UnknownAlgorithm ( _UnknownIntEnum ):
-
"""Wrapper for unknown ALGORITHM values.
+
def context ( self ) -> bytes :
+
"""The authentication context (host challenge + card challenge)."""
+
return self . _context
-
Provides obj.name, obj.value and and string representations."""
+
@property
+
def card_crypto ( self ) -> bytes :
+
"""The card cryptogram."""
+
return self . _card_crypto
+
+
[docs] @classmethod
+
def init_session (
+
cls ,
+
hsm : YubiHsm ,
+
auth_key_id : int ,
+
) -> "SymmetricAuth" :
+
"""Initiates the mutual symmetric session authentication process.
+
+
:param hsm: The YubiHSM connection.
+
:param auth_key_id: The ID of the Authentication key used to
+
authenticate the session.
+
"""
+
context = os . urandom ( 8 )
-
name = "ALGORITHM.UNKNOWN"
+
data = hsm . send_cmd (
+
COMMAND . CREATE_SESSION , struct . pack ( "!H" , auth_key_id ) + context
+
)
+
sid = data [ 0 ]
+
context += data [ 1 : 1 + 8 ]
+
card_crypto = data [ 9 : 9 + 8 ]
-
def _algorithm ( val ):
-
try :
-
return ALGORITHM ( val )
-
except ValueError :
-
return _UnknownAlgorithm ( val )
+
return cls ( hsm , sid , context , card_crypto )
+
[docs] @classmethod
+
def create_session (
+
cls , hsm : YubiHsm , auth_key_id : int , key_enc : bytes , key_mac : bytes
+
) -> "AuthSession" :
+
"""Constructs an authenticated session.
-
class _UnknownCommand ( _UnknownIntEnum ):
-
"""Wrapper for unknown COMMAND values.
+
:param hsm: The YubiHSM connection.
+
:param auth_key_id: The ID of the Authentication key used to
+
authenticate the session.
+
:param key_enc: Static `K-ENC` used to establish the session.
+
:param key_mac: Static `K-MAC` used to establish the session.
+
"""
-
Provides obj.name, obj.value and and string representations."""
+
symmetric_auth = cls . init_session ( hsm , auth_key_id )
-
name = "COMMAND.UNKNOWN"
+
key_senc = _derive ( key_enc , KEY_ENC , symmetric_auth . context )
+
key_smac = _derive ( key_mac , KEY_MAC , symmetric_auth . context )
+
key_srmac = _derive ( key_mac , KEY_RMAC , symmetric_auth . context )
+
return symmetric_auth . authenticate ( key_senc , key_smac , key_srmac )
-
[docs] class DeviceInfo (
-
namedtuple (
-
"DeviceInfo" ,
-
[ "version" , "serial" , "log_size" , "log_used" , "supported_algorithms" ],
-
)
-
):
-
"""Data class holding various information about the YubiHSM.
-
-
:param version: YubiHSM version tuple.
-
:type version: tuple[int, int, int]
-
:param int serial: YubiHSM serial number.
-
:param int log_size: Log entry storage capacity.
-
:param int log_used: Log entries currently stored.
-
:param set[ALGORITHM] supported_algorithms: List of supported algorithms.
-
"""
+
[docs] def authenticate (
+
self , key_senc : bytes , key_smac : bytes , key_srmac : bytes
+
) -> "AuthSession" :
+
"""Constructs an authenticated session.
-
__slots__ = ()
-
FORMAT = "!BBBIBB"
-
LENGTH = struct . calcsize ( FORMAT )
+
:param key_senc: `S-ENC` used for data confidentiality.
+
:param key_smac: `S-MAC` used for data and protocol integrity.
+
:param key_srmac: `S-RMAC` used for data and protocol integrity.
+
:return: An authenticated session.
+
"""
-
[docs] @classmethod
-
def parse ( cls , data ):
-
"""Parse a DeviceInfo from its binary representation.
+
gen_card_crypto = _derive ( key_smac , CARD_CRYPTOGRAM , self . _context , 0x40 )
-
:param bytes data: Binary data to unpack from.
-
:return: The parsed object.
-
:rtype: DeviceInfo
-
"""
-
unpacked = struct . unpack_from ( cls . FORMAT , data )
-
version = unpacked [: 3 ]
-
serial , log_size , log_used = unpacked [ 3 :]
-
algorithms = { _algorithm ( a ) for a in six . iterbytes ( data [ cls . LENGTH :])}
+
if not constant_time . bytes_eq ( gen_card_crypto , self . _card_crypto ):
+
raise YubiHsmAuthenticationError ()
-
return cls ( version , serial , log_size , log_used , algorithms )
+
msg = struct . pack ( "!BHB" , COMMAND . AUTHENTICATE_SESSION , 1 + 8 + 8 , self . _sid )
+
msg += _derive ( key_smac , HOST_CRYPTOGRAM , self . _context , 0x40 )
+
mac_chain , mac = _calculate_mac ( key_smac , b " \0 " * 16 , msg )
+
msg += mac
+
if _unpad_resp ( self . _hsm . _transceive ( msg ), COMMAND . AUTHENTICATE_SESSION ) != b "" :
+
raise YubiHsmInvalidResponseError ( "Non-empty response" )
+
return AuthSession (
+
self . _hsm , self . _sid , key_senc , key_smac , key_srmac , mac_chain
+
)
-
def _calculate_iv ( key , counter ):
-
encryptor = Cipher (
-
algorithms . AES ( key ), modes . ECB (), backend = default_backend () # nosec ECB
-
) . encryptor ()
-
return encryptor . update ( int_to_bytes ( counter , 16 )) + encryptor . finalize ()
+
[docs] class AsymmetricAuth :
+
"""A negotiation of an authenticated Session with a YubiHSM.
-
def _calculate_mac ( key , chain , message ):
-
c = cmac . CMAC ( algorithms . AES ( key ), backend = default_backend ())
-
c . update ( chain )
-
c . update ( message )
-
chain = c . finalize ()
-
return chain , chain [: 8 ]
+
This class is used to begin the mutual authentication process
+
for establishing an authenticated session with the YubiHSM,
+
using asymmetric authentication. Typically you get an instance
+
of this class by calling :func:`~YubiHsm.init_session_asymmetric`.
+
"""
+
def __init__ (
+
self ,
+
hsm : YubiHsm ,
+
sid : int ,
+
context : bytes ,
+
receipt : bytes ,
+
):
+
self . _hsm = hsm
+
self . _sid = sid
+
self . _context = context
+
self . _receipt = receipt
-
[docs] class AuthSession ( object ):
-
"""An authenticated secure session with a YubiHSM.
+
@property
+
def context ( self ) -> bytes :
+
"""The authentication context (EPK.OCE + EPK.SD)."""
+
return self . _context
-
Typically you get an instance of this class by calling
-
:func:`~YubiHsm.create_session` or :func:`~YubiHsm.create_session_derived`.
-
"""
+
@property
+
def receipt ( self ) -> bytes :
+
"""The receipt."""
+
return self . _receipt
-
def __init__ ( self , hsm , auth_key_id , key_enc , key_mac ):
-
"""Constructs an authenticated session.
+
@property
+
def epk_hsm ( self ) -> bytes :
+
"""The ephemeral public key of the YubiHSM."""
+
return self . _context [ 65 :]
+
+
[docs] @classmethod
+
def init_session (
+
cls ,
+
hsm : YubiHsm ,
+
auth_key_id : int ,
+
epk_oce : bytes ,
+
) -> "AsymmetricAuth" :
+
"""Initiates the mutual asymmetric session authentication process.
+
+
:param hsm: The YubiHSM connection.
+
:param auth_key_id: The ID of the Authentication key used to
+
authenticate the session.
+
:param epk_oce: The ephemeral public key of the OCE used
+
for key agreement.
+
"""
-
:param YubiHsm hsm: The YubiHSM connection.
-
:param int auth_key_id: The ID of the Authentication key used to
+
public_key_len = len ( epk_oce )
+
msg = struct . pack ( "!H" , auth_key_id ) + epk_oce
+
resp = hsm . send_cmd ( COMMAND . CREATE_SESSION , msg )
+
sid , epk_hsm , receipt = (
+
resp [ 0 ],
+
resp [ 1 : 1 + public_key_len ],
+
resp [ 1 + public_key_len :],
+
)
+
context = epk_oce + epk_hsm
+
+
return cls ( hsm , sid , context , receipt )
+
+
[docs] @classmethod
+
def create_session (
+
cls ,
+
hsm : YubiHsm ,
+
auth_key_id : int ,
+
private_key : ec . EllipticCurvePrivateKey ,
+
public_key : ec . EllipticCurvePublicKey ,
+
) -> "AuthSession" :
+
"""Constructs an authenticated session.
+
+
:param hsm: The YubiHSM connection.
+
:param auth_key_id: The ID of the Authentication key used to
authenticate the session.
-
:param bytes key_enc: Static `K-ENC` used to establish the session.
-
:param bytes key_mac: Static `K-MAC` used to establish the session.
+
:param private_key: Private key corresponding to the public
+
authentication key object.
+
:param public_key: The device's public key.
"""
-
self . _hsm = hsm
+
# Calculate shared secret from the two static keys.
+
shsss = private_key . exchange ( ec . ECDH (), public_key )
+
+
# Generate an ephemeral key.
+
esk_oce = ec . generate_private_key ( private_key . curve , backend = default_backend ())
+
epk_oce = esk_oce . public_key () . public_bytes (
+
encoding = serialization . Encoding . X962 ,
+
format = serialization . PublicFormat . UncompressedPoint ,
+
)
-
context = os . urandom ( 8 )
+
# Exchange ephemereal keys with the HSM
+
asymmetric_auth = cls . init_session ( hsm , auth_key_id , epk_oce )
-
data = self . _hsm . send_cmd (
-
COMMAND . CREATE_SESSION , struct . pack ( "!H" , auth_key_id ) + context
+
# Calculate shared secret from the two ephemeral keys.
+
shsee = esk_oce . exchange (
+
ec . ECDH (),
+
ec . EllipticCurvePublicKey . from_encoded_point (
+
private_key . curve , asymmetric_auth . epk_hsm
+
),
)
-
self . _sid = six . indexbytes ( data , 0 )
-
context += data [ 1 : 1 + 8 ]
-
card_crypto = data [ 9 : 9 + 8 ]
-
self . _key_enc = _derive ( key_enc , KEY_ENC , context )
-
self . _key_mac = _derive ( key_mac , KEY_MAC , context )
-
self . _key_rmac = _derive ( key_mac , KEY_RMAC , context )
-
gen_card_crypto = _derive ( self . _key_mac , CARD_CRYPTOGRAM , context , 0x40 )
-
-
if not constant_time . bytes_eq ( gen_card_crypto , card_crypto ):
+
# Derive session keys. Note that this generates four keys, the
+
# first of which is used to verify the receipt.
+
shs = X963KDF (
+
hashes . SHA256 (), 4 * 16 , b " \x3c\x88\x10 " , backend = default_backend ()
+
) . derive ( shsee + shsss )
+
keys = ( shs [ i : i + 16 ] for i in range ( 0 , len ( shs ), 16 ))
+
+
# Verify the receipt.
+
c = cmac . CMAC ( algorithms . AES ( next ( keys )), backend = default_backend ())
+
c . update ( asymmetric_auth . epk_hsm )
+
c . update ( epk_oce )
+
if not constant_time . bytes_eq ( c . finalize (), asymmetric_auth . receipt ):
raise YubiHsmAuthenticationError ()
-
msg = struct . pack ( "!BHB" , COMMAND . AUTHENTICATE_SESSION , 1 + 8 + 8 , self . sid )
-
msg += _derive ( self . _key_mac , HOST_CRYPTOGRAM , context , 0x40 )
+
return asymmetric_auth . authenticate ( next ( keys ), next ( keys ), next ( keys ))
+
+
[docs] def authenticate (
+
self , key_senc : bytes , key_smac : bytes , key_srmac : bytes
+
) -> "AuthSession" :
+
"""Constructs an authenticated session.
+
+
:param key_senc: `S-ENC` used for data confidentiality.
+
:param key_smac: `S-MAC` used for data and protocol integrity.
+
:param key_srmac: `S-RMAC` used for data and protocol integrity.
+
:return: An authenticated session.
+
"""
+
return AuthSession (
+
self . _hsm , self . _sid , key_senc , key_smac , key_srmac , self . _receipt
+
)
+
+
+
[docs] class AuthSession :
+
"""An authenticated secure session with a YubiHSM.
+
+
Typically you get an instance of this class by calling
+
:func:`~YubiHsm.create_session`, :func:`~YubiHsm.create_session_derived`,
+
or :func:`~YubiHsm.create_session_asymmetric`.
+
"""
+
+
def __init__ (
+
self ,
+
hsm : YubiHsm ,
+
sid : int ,
+
key_enc : bytes ,
+
key_mac : bytes ,
+
key_rmac : bytes ,
+
mac_chain : bytes ,
+
):
+
self . _hsm = hsm
+
self . _sid : Optional [ int ] = sid
+
self . _key_enc = key_enc
+
self . _key_mac = key_mac
+
self . _key_rmac = key_rmac
+
self . _mac_chain = mac_chain
self . _ctr = 1
-
self . _mac_chain , mac = _calculate_mac ( self . _key_mac , b " \0 " * 16 , msg )
-
msg += mac
-
if _unpad_resp ( self . _hsm . _transceive ( msg ), COMMAND . AUTHENTICATE_SESSION ) != b "" :
-
raise YubiHsmInvalidResponseError ( "Non-empty response" )
-
[docs] def close ( self ):
-
"""Close this session with the YubiHSM.
+
[docs] def close ( self ) -> None :
+
"""Close this session with the YubiHSM.
Once closed, this session object can no longer be used, unless re-connected.
"""
@@ -465,7 +729,7 @@
Source code for yubihsm.core
self . send_secure_cmd ( COMMAND . CLOSE_SESSION )
finally :
self . _sid = None
- self . _key_enc = self . _key_mac = self . _key_rmac = None
+
self . _key_enc = self . _key_mac = self . _key_rmac = b ""
def __enter__ ( self ):
return self
@@ -473,7 +737,7 @@
Source code for yubihsm.core
def __exit__ ( self , typ , value , traceback ):
self . close ()
- def _secure_transceive ( self , msg ):
+ def _secure_transceive ( self , msg : bytes ) -> bytes :
padlen = 15 - len ( msg ) % 16
msg += b " \x80 "
msg = msg . ljust ( len ( msg ) + padlen , b " \0 " )
@@ -494,7 +758,7 @@ Source code for yubihsm.core
data = _unpad_resp ( raw_resp , COMMAND . SESSION_MESSAGE )
- if six . indexbytes ( data , 0 ) != self . _sid :
+ if data [ 0 ] != self . _sid :
raise YubiHsmInvalidResponseError ( "Incorrect SID" )
rmac = _calculate_mac ( self . _key_rmac , next_mac_chain , raw_resp [: - 8 ])[ 1 ]
@@ -508,51 +772,45 @@ Source code for yubihsm.core
return decryptor . update ( data [ 1 : - 8 ]) + decryptor . finalize ()
@property
- def sid ( self ):
- """Session ID
+ def sid ( self ) -> Optional [ int ]:
+ """Session ID
:return: The ID of the session.
- :rtype: int
"""
return self . _sid
-[docs] def send_secure_cmd ( self , cmd , data = b "" ):
-
"""Send a command over the encrypted session.
+
[docs] def send_secure_cmd ( self , cmd : COMMAND , data : bytes = b "" ) -> bytes :
+
"""Send a command over the encrypted session.
-
:param COMMAND cmd: The command to send.
-
:param bytes data: The command payload to send.
+
:param cmd: The command to send.
+
:param data: The command payload to send.
:return: The decrypted response data from the YubiHSM.
-
:rtype: bytes
"""
msg = struct . pack ( "!BH" , cmd , len ( data )) + data
return _unpad_resp ( self . _secure_transceive ( msg ), cmd )
[docs] def list_objects (
self ,
-
object_id = None ,
-
object_type = None ,
-
domains = None ,
-
capabilities = None ,
-
algorithm = None ,
-
label = None ,
-
):
-
"""List objects from the YubiHSM.
+
object_id : Optional [ int ] = None ,
+
object_type : Optional [ OBJECT ] = None ,
+
domains : Optional [ int ] = None ,
+
capabilities : Optional [ int ] = None ,
+
algorithm : Optional [ ALGORITHM ] = None ,
+
label : Optional [ str ] = None ,
+
) -> Sequence [ YhsmObject ]:
+
"""List objects from the YubiHSM.
This returns a list of all objects currently stored on the YubiHSM,
which are accessible by this session. The arguments to this method can
be used to filter the results returned.
-
:param int object_id: (optional) Return only objects with this ID.
-
:param OBJECT object_type: (optional) Return only objects of this type.
-
:param int domains: (optional) Return only objects belonging to one or
-
more of these domains.
-
:param int capabilities: (optional) Return only objects with one or more
-
of these capabilities.
-
:param ALGORITHM algorithm: (optional) Return only objects with this
-
algorithm.
-
:param label: (optional) Return only objects with this label.
+
:param object_id: Return only objects with this ID.
+
:param object_type: Return only objects of this type.
+
:param domains: Return only objects belonging to one or more of these domains.
+
:param capabilities: Return only objects with one or more of these capabilities.
+
:param algorithm: Return only objects with this algorithm.
+
:param label: Return only objects with this label.
:return: A list of matched objects.
-
:rtype: list
"""
msg = b ""
if object_id is not None :
@@ -574,35 +832,33 @@
Source code for yubihsm.core
objects = []
for i in range ( 0 , len ( resp ), 4 ):
- object_id , typ , seq = struct . unpack ( "!HBB" , resp [ i : i + 4 ])
- objects . append ( YhsmObject . _create ( typ , self , object_id , seq ))
+ obj_id , typ , seq = struct . unpack ( "!HBB" , resp [ i : i + 4 ])
+ objects . append ( YhsmObject . _create ( typ , self , obj_id , seq ))
return objects
-
[docs] def get_object ( self , object_id , object_type ):
-
"""Get a reference to a YhsmObject with the given id and type.
+
[docs] def get_object ( self , object_id : int , object_type : OBJECT ) -> YhsmObject :
+
"""Get a reference to a YhsmObject with the given id and type.
The object returned will be a subclass of YhsmObject corresponding to
the given object_type.
-
:param int object_id: The ID of the object to retrieve.
-
:param OBJECT object_type: The type of the object to retrieve.
+
:param object_id: The ID of the object to retrieve.
+
:param object_type: The type of the object to retrieve.
:return: An object reference.
-
:rtype: YhsmObject
"""
return YhsmObject . _create ( object_type , self , object_id )
-
[docs] def get_pseudo_random ( self , length ):
-
"""Get bytes from YubiHSM PRNG.
+
[docs] def get_pseudo_random ( self , length : int ) -> bytes :
+
"""Get bytes from YubiHSM PRNG.
-
:param int length: The number of bytes to return.
+
:param length: The number of bytes to return.
:return: The requested number of random bytes.
-
:rtype: bytes
"""
msg = struct . pack ( "!H" , length )
return self . send_secure_cmd ( COMMAND . GET_PSEUDO_RANDOM , msg )
-
[docs] def reset_device ( self ):
-
"""Performs a factory reset of the YubiHSM.
+
[docs] def reset_device ( self ) -> None :
+
"""Performs a factory reset of the YubiHSM.
Resets and reboots the YubiHSM, deletes all Objects and restores the
default Authkey.
@@ -613,22 +869,20 @@
Source code for yubihsm.core
except YubiHsmConnectionError :
pass # Assume reset went well, it may interrupt the connection.
self . _sid = None
- self . _key_enc = self . _key_mac = self . _key_rmac = None
+ self . _key_enc = self . _key_mac = self . _key_rmac = b ""
self . _hsm . close ()
-
[docs] def get_log_entries ( self , previous_entry = None ):
-
"""Get logs from the YubiHSM.
+
[docs] def get_log_entries ( self , previous_entry : Optional [ LogEntry ] = None ) -> LogData :
+
"""Get logs from the YubiHSM.
This returns a tuple of the number of unlogged boot events, the number
of unlogged authentication events, and the log entries from the YubiHSM.
The chain of entry digests will be validated, starting from the first
entry returned, or the one supplied as previous_entry.
-
:param LogEntry previous_entry: (optional) Entry to start verification
-
against.
-
:return: A tuple consisting of the number of unlogged boot and
-
authentication events, and the list of log entries.
-
:rtype: LogData
+
:param previous_entry: Entry to start verification against.
+
:return: A tuple consisting of the number of unlogged boot and authentication
+
events, and the list of log entries.
"""
resp = self . send_secure_cmd ( COMMAND . GET_LOG_ENTRIES )
boot , auth , num = struct . unpack ( "!HHB" , resp [: 5 ])
@@ -648,58 +902,55 @@
Source code for yubihsm.core
return LogData ( boot , auth , logs )
-
[docs] def set_log_index ( self , index ):
-
"""Clears logs to free up space for use with forced audit.
+
[docs] def set_log_index ( self , index : int ) -> None :
+
"""Clears logs to free up space for use with forced audit.
-
:param int index: The log entry index to clear up to (inclusive).
+
:param index: The log entry index to clear up to (inclusive).
"""
msg = struct . pack ( "!H" , index )
if self . send_secure_cmd ( COMMAND . SET_LOG_INDEX , msg ) != b "" :
raise YubiHsmInvalidResponseError ( "Non-empty response" )
-
[docs] def put_option ( self , option , value ):
-
"""Set the raw value of a YubiHSM device option.
+
[docs] def put_option ( self , option : OPTION , value : bytes ) -> None :
+
"""Set the raw value of a YubiHSM device option.
-
:param OPTION option: The OPTION to set.
-
:param bytes value: The value to set the OPTION to.
+
:param option: The OPTION to set.
+
:param value: The value to set the OPTION to.
"""
msg = struct . pack ( "!BH" , option , len ( value )) + value
if self . send_secure_cmd ( COMMAND . SET_OPTION , msg ) != b "" :
raise YubiHsmInvalidResponseError ( "Non-empty response" )
-
[docs] def get_option ( self , option ):
-
"""Get the raw value of a YubiHSM device option.
+
[docs] def get_option ( self , option : OPTION ) -> bytes :
+
"""Get the raw value of a YubiHSM device option.
-
:param OPTION option: The OPTION to get.
+
:param option: The OPTION to get.
:return: The currently set value for the given OPTION
-
:rtype: bytes
"""
msg = struct . pack ( "!B" , option )
return self . send_secure_cmd ( COMMAND . GET_OPTION , msg )
-
[docs] def set_force_audit ( self , audit ):
-
"""Set the FORCE_AUDIT mode of the YubiHSM.
+
[docs] def set_force_audit ( self , audit : AUDIT ) -> None :
+
"""Set the FORCE_AUDIT mode of the YubiHSM.
-
:param AUDIT audit: The AUDIT mode to set.
+
:param audit: The AUDIT mode to set.
"""
self . put_option ( OPTION . FORCE_AUDIT , struct . pack ( "B" , audit ))
-
[docs] def get_force_audit ( self ):
-
"""Get the current setting for forced audit mode.
+
[docs] def get_force_audit ( self ) -> AUDIT :
+
"""Get the current setting for forced audit mode.
:return: The AUDIT setting for FORCE_AUDIT.
-
:rtype: AUDIT
"""
-
return AUDIT ( six . indexbytes ( self . get_option ( OPTION . FORCE_AUDIT ), 0 ))
+
return AUDIT ( self . get_option ( OPTION . FORCE_AUDIT )[ 0 ])
-
[docs] def set_command_audit ( self , commands ):
-
"""Set audit mode of commands.
+
[docs] def set_command_audit ( self , commands : Mapping [ COMMAND , AUDIT ]) -> None :
+
"""Set audit mode of commands.
Takes a dict of COMMAND -> AUDIT pairs and updates the audit settings
for the commands given.
:param commands: Settings to update.
-
:type commands: dict[COMMAND, AUDIT]
:Example:
@@ -711,152 +962,117 @@
Source code for yubihsm.core
msg = b "" . join ( struct . pack ( "!BB" , k , v ) for ( k , v ) in commands . items ())
self . put_option ( OPTION . COMMAND_AUDIT , msg )
-
[docs] def get_command_audit ( self ):
-
"""Get a mapping of all available commands and their audit settings.
+
[docs] def get_command_audit ( self ) -> Mapping [ COMMAND , AUDIT ]:
+
"""Get a mapping of all available commands and their audit settings.
:return: Dictionary of COMMAND -> AUDIT pairs.
-
:rtype: dict[COMMAND, AUDIT]
"""
resp = self . get_option ( OPTION . COMMAND_AUDIT )
ret = {}
for i in range ( 0 , len ( resp ), 2 ):
-
cmd = six . indexbytes ( resp , i )
-
val = AUDIT ( six . indexbytes ( resp , i + 1 ))
+
cmd = resp [ i ]
+
val = AUDIT ( resp [ i + 1 ])
try :
ret [ COMMAND ( cmd )] = val
except ValueError :
-
ret [ _UnknownCommand ( cmd )] = val
+
ret [ _UnknownCommand ( cmd )] = val # type: ignore
return ret
-
def __repr__ ( self ):
-
return " {0.__class__.__name__} (id= {0._sid} , hsm= {0._hsm} )" . format ( self )
+
[docs] def set_enabled_algorithms ( self , algorithms : Mapping [ ALGORITHM , bool ]) -> None :
+
"""Set audit mode of commands.
+
New in YubiHSM 2.2.0.
-
[docs] class LogData ( namedtuple ( "LogData" , [ "n_boot" , "n_auth" , "entries" ])):
-
"""Data class holding response data from a GET_LOGS command.
+
Algorithms can only be toggled on a "fresh" device (after reset, before adding
+
objects).
-
:param int n_boot: Number of unlogged boot events.
-
:param int n_auth: Number of unlogged authentication events.
-
:param list[LogEntry] entries: List of LogEntry items.
-
"""
+
Takes a dict of ALGORITHM -> bool pairs and updates the enabled algorithm
+
settings for the algorithms given.
-
__slots__ = ()
-
-
-
[docs] class LogEntry (
-
namedtuple (
-
"LogEntry" ,
-
[
-
"number" ,
-
"command" ,
-
"length" ,
-
"session_key" ,
-
"target_key" ,
-
"second_key" ,
-
"result" ,
-
"tick" ,
-
"digest" ,
-
],
-
)
-
):
-
"""YubiHSM log entry.
+
:param algorithms: The algorithms to update.
-
:param int number: The sequence number of the entry.
-
:param int command: The COMMAND executed.
-
:param int length: The length of the command.
-
:param int session_key: The ID of the Authentication Key for the session.
-
:param int target_key: The ID of the key used by the command.
-
:param int second_key: The ID of the secondary key used by the command, if
-
applicable.
-
:param int result: The result byte of the response.
-
:param int tick: The YubiHSM system tick value when the command was run.
-
:param bytes digest: A truncated hash of the entry and previous digest.
-
"""
-
-
__slots__ = ()
-
FORMAT = "!HBHHHHBL16s"
-
LENGTH = struct . calcsize ( FORMAT )
-
-
@property
-
def data ( self ):
-
"""Get log entry binary data.
+
:Example:
-
:return: The binary LogEntry data, excluding the digest.
-
:rtype: bytes
+
>>> session.set_enabled_algorithms({
+
... ALGORITHM.RSA_2048: False,
+
... ALGORITHM.RSA_OAEP_SHA256_: True,
+
... })
"""
-
return struct . pack ( self . FORMAT , * self )[: - 16 ]
+
msg = b "" . join ( struct . pack ( "!BB" , k , v ) for ( k , v ) in algorithms . items ())
+
self . put_option ( OPTION . ALGORITHM_TOGGLE , msg )
-
[docs] @classmethod
-
def parse ( cls , data ):
-
"""Parse a LogEntry from its binary representation.
+
[docs] def get_enabled_algorithms ( self ) -> Mapping [ ALGORITHM , bool ]:
+
"""Get the algorithms available, and whether or not they are enabled.
-
:param bytes data: Binary data to unpack from.
-
:return: The parsed object.
-
:rtype: LogEntry
+
:return: A mapping of algorithms, to whether or not they are enabled.
"""
-
return cls ( * struct . unpack ( cls . FORMAT , data ))
+
try :
+
resp = self . get_option ( OPTION . ALGORITHM_TOGGLE )
+
ret = {}
+
for i in range ( 0 , len ( resp ), 2 ):
+
alg = resp [ i ]
+
val = bool ( resp [ i + 1 ])
+
try :
+
ret [ ALGORITHM ( alg )] = val
+
except ValueError :
+
ret [ _UnknownAlgorithm ( alg )] = val # type: ignore
+
return ret
+
except YubiHsmDeviceError as e :
+
if e . code == ERROR . INVALID_DATA :
+
supported = self . _hsm . get_device_info () . supported_algorithms
+
return { alg : True for alg in supported }
+
raise
+
+
[docs] def set_fips_mode ( self , mode : bool ) -> None :
+
"""Set the FIPS mode of the YubiHSM.
+
+
YubiHSM2 FIPS only.
+
+
This can only be toggled on a "fresh" device (after reset, before adding
+
objects).
+
+
:param mode: Whether to be in FIPS compliant mode or not.
+
"""
+
self . put_option ( OPTION . FIPS_MODE , struct . pack ( "!B" , mode ))
-
[docs] def validate ( self , previous_entry ):
-
"""Validate the hash of a single log entry.
+
[docs] def get_fips_mode ( self ) -> bool :
+
"""Get the current setting for FIPS compliant mode.
-
Validates the hash of this entry with regard to the previous entry's
-
hash. The previous entry is the LogEntry with the previous number,
-
previous_entry.number == self.number - 1
+
YubiHSM2 FIPS only.
-
:param LogEntry previous_entry: The previous log entry to validate
-
against.
-
:return: True if the digest is correct, False if not.
-
:rtype: bool
+
:return: True if in FIPS mode, False if not.
"""
+
return bool ( self . get_option ( OPTION . FIPS_MODE )[ 0 ])
-
if ( self . number - previous_entry . number ) & 0xFFFF != 1 :
-
raise ValueError ( "previous_entry has wrong number!" )
-
-
digest = sha256 ( self . data + previous_entry . digest ) . digest ()[: 16 ]
-
return constant_time . bytes_eq ( self . digest , digest )
+
def __repr__ ( self ):
+
return " {0.__class__.__name__} (id= {0._sid} , hsm= {0._hsm} )" . format ( self )
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/_modules/yubihsm/defs.html b/static/python-yubihsm/API_Documentation/_modules/yubihsm/defs.html
index 570e78ddc..4b79883f6 100644
--- a/static/python-yubihsm/API_Documentation/_modules/yubihsm/defs.html
+++ b/static/python-yubihsm/API_Documentation/_modules/yubihsm/defs.html
@@ -1,158 +1,74 @@
-
-
-
-
-
yubihsm.defs — python-yubihsm 2.1.0 documentation
-
-
-
-
-
-
-
-
+
yubihsm.defs — python-yubihsm 3.0.0.dev0 documentation
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
-
-
-
-
-
-
+
python-yubihsm
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
Source code for yubihsm.defs
# Copyright 2016-2018 Yubico AB
#
@@ -170,46 +86,14 @@ Source code for yubihsm.defs
"""Named constants used in YubiHSM commands."""
-
-from __future__ import absolute_import , division
-
from cryptography.hazmat.primitives.asymmetric import ec
-from cryptography import utils
-from enum import IntEnum , unique
-import six
-
-
-if six . PY2 :
- # Workaround for int max size on Python 2.
- from enum import Enum
-
- class _LongEnum ( long , Enum ): # noqa F821
- """Like IntEnum, but supports larger values"""
-
- IntEnum = _LongEnum # Use instead of IntEnum # noqa F811
-
-
-[docs] @utils . register_interface ( ec . EllipticCurve )
-
class BRAINPOOLP256R1 ( object ):
-
name = "brainpoolP256r1"
-
key_size = 256
-
-
-[docs] @utils . register_interface ( ec . EllipticCurve )
-
class BRAINPOOLP384R1 ( object ):
-
name = "brainpoolP384r1"
-
key_size = 384
-
-
-[docs] @utils . register_interface ( ec . EllipticCurve )
-
class BRAINPOOLP512R1 ( object ):
-
name = "brainpoolP512r1"
-
key_size = 512
+from cryptography.hazmat.primitives import hashes
+from enum import IntEnum , IntFlag , unique
[docs] @unique
class ERROR ( IntEnum ):
-
"""Error codes returned by the YubiHSM"""
+
"""Error codes returned by the YubiHSM"""
OK = 0x00
INVALID_COMMAND = 0x01
@@ -228,12 +112,13 @@
Source code for yubihsm.defs
INVALID_OTP = 0x0F
DEMO_MODE = 0x10
OBJECT_EXISTS = 0x11
+ ALGORITHM_DISABLED = 0x12
COMMAND_UNEXECUTED = 0xFF
[docs] @unique
class COMMAND ( IntEnum ):
-
"""Commands available to send to the YubiHSM"""
+
"""Commands available to send to the YubiHSM"""
ECHO = 0x01
CREATE_SESSION = 0x03
@@ -241,6 +126,7 @@
Source code for yubihsm.defs
SESSION_MESSAGE = 0x05
DEVICE_INFO = 0x06
RESET_DEVICE = 0x08
+ GET_DEVICE_PUBLIC_KEY = 0x0A
CLOSE_SESSION = 0x40
GET_STORAGE_INFO = 0x041
PUT_OPAQUE = 0x42
@@ -286,13 +172,19 @@ Source code for yubihsm.defs
SIGN_EDDSA = 0x6A
BLINK_DEVICE = 0x6B
CHANGE_AUTHENTICATION_KEY = 0x6C
+ PUT_SYMMETRIC_KEY = 0x6D
+ GENERATE_SYMMETRIC_KEY = 0x6E
+ DECRYPT_ECB = 0x6F
+ ENCRYPT_ECB = 0x70
+ DECRYPT_CBC = 0x71
+ ENCRYPT_CBC = 0x72
ERROR = 0x7F
[docs] @unique
class ALGORITHM ( IntEnum ):
-
"""Various algorithm constants"""
+
"""Various algorithm constants"""
RSA_PKCS1_SHA1 = 1
RSA_PKCS1_SHA256 = 2
@@ -345,9 +237,17 @@
Source code for yubihsm.defs
EC_ECDSA_SHA512 = 45
EC_ED25519 = 46
EC_P224 = 47
+ RSA_PKCS1_DECRYPT = 48
+ EC_P256_YUBICO_AUTHENTICATION = 49
+
+ AES128 = 50
+ AES192 = 51
+ AES256 = 52
+ AES_ECB = 53
+ AES_CBC = 54
-[docs] def to_curve ( self ):
-
"""Return a Cryptography EC curve instance for a given member.
+
[docs] def to_curve ( self ) -> ec . EllipticCurve :
+
"""Return a Cryptography EC curve instance for a given member.
:return: The corresponding curve.
:rtype: cryptography.hazmat.primitives.ec.
@@ -358,11 +258,11 @@
Source code for yubihsm.defs
True
"""
- return _curve_table [ self ]()
+
return _curve_table [ self ]() # type: ignore
[docs] @staticmethod
-
def for_curve ( curve ):
-
"""Returns a member corresponding to a Cryptography curve instance.
+
def for_curve ( curve : ec . EllipticCurve ) -> "ALGORITHM" :
+
"""Returns a member corresponding to a Cryptography curve instance.
:Example:
@@ -374,7 +274,33 @@
Source code for yubihsm.defs
for key , val in _curve_table . items ():
if val == curve_type :
return key
- raise ValueError ( "Unsupported curve type: %s " % curve . name )
+
raise ValueError ( "Unsupported curve type: %s " % curve . name )
+
+[docs] def to_key_size ( self ) -> int :
+
"""Return the expected size (in bytes) of a key corresponding to an algorithm.
+
+
:return: The corresponding key size (in bytes) to an algorithm.
+
+
:Example:
+
+
>>> ALGORITHM.AES128.to_key_size()
+
16
+
"""
+
+
return _key_size_table [ self ]
+
+[docs] def to_hash_algorithm ( self ) -> hashes . HashAlgorithm :
+
"""Return the cryptography hash algorithm object corresponding to the algorithm.
+
+
:return The corresponding cryptography hash algorithm object.
+
+
:Example:
+
+
>>> ALGORITHM.HMAC_SHA1.to_hash_algorithm()
+
hashes.SHA1
+
"""
+
+
return _hash_table [ self ]()
_curve_table = {
@@ -383,15 +309,38 @@
Source code for yubihsm.defs
ALGORITHM . EC_P384 : ec . SECP384R1 ,
ALGORITHM . EC_P521 : ec . SECP521R1 ,
ALGORITHM . EC_K256 : ec . SECP256K1 ,
- ALGORITHM . EC_BP256 : BRAINPOOLP256R1 ,
- ALGORITHM . EC_BP384 : BRAINPOOLP384R1 ,
- ALGORITHM . EC_BP512 : BRAINPOOLP512R1 ,
+ ALGORITHM . EC_BP256 : ec . BrainpoolP256R1 ,
+ ALGORITHM . EC_BP384 : ec . BrainpoolP384R1 ,
+ ALGORITHM . EC_BP512 : ec . BrainpoolP512R1 ,
+}
+
+_key_size_table = {
+ ALGORITHM . AES128_CCM_WRAP : 16 ,
+ ALGORITHM . AES192_CCM_WRAP : 24 ,
+ ALGORITHM . AES256_CCM_WRAP : 32 ,
+ ALGORITHM . HMAC_SHA1 : 64 , # Maximum key size
+ ALGORITHM . HMAC_SHA256 : 64 , # Maximum key size
+ ALGORITHM . HMAC_SHA384 : 128 , # Maximum key size
+ ALGORITHM . HMAC_SHA512 : 128 , # Maximum key size
+ ALGORITHM . AES128_YUBICO_OTP : 16 ,
+ ALGORITHM . AES192_YUBICO_OTP : 24 ,
+ ALGORITHM . AES256_YUBICO_OTP : 32 ,
+ ALGORITHM . AES128 : 16 ,
+ ALGORITHM . AES192 : 24 ,
+ ALGORITHM . AES256 : 32 ,
+}
+
+_hash_table = {
+ ALGORITHM . HMAC_SHA1 : hashes . SHA1 ,
+ ALGORITHM . HMAC_SHA256 : hashes . SHA256 ,
+ ALGORITHM . HMAC_SHA384 : hashes . SHA384 ,
+ ALGORITHM . HMAC_SHA512 : hashes . SHA512 ,
}
[docs] @unique
class LIST_FILTER ( IntEnum ):
-
"""Keys for use to filter on in list_objects"""
+
"""Keys for use to filter on in list_objects"""
ID = 0x01
TYPE = 0x02
@@ -403,7 +352,7 @@
Source code for yubihsm.defs
[docs] @unique
class OBJECT ( IntEnum ):
-
"""YubiHSM object types"""
+
"""YubiHSM object types"""
OPAQUE = 0x01
AUTHENTICATION_KEY = 0x02
@@ -411,29 +360,41 @@
Source code for yubihsm.defs
WRAP_KEY = 0x04
HMAC_KEY = 0x05
TEMPLATE = 0x06
- OTP_AEAD_KEY = 0x07
+
OTP_AEAD_KEY = 0x07
+
SYMMETRIC_KEY = 0x08
[docs] @unique
class OPTION ( IntEnum ):
-
"""YubiHSM device options"""
+
"""YubiHSM device options"""
FORCE_AUDIT = 0x01
-
COMMAND_AUDIT = 0x03
+ COMMAND_AUDIT = 0x03
+ ALGORITHM_TOGGLE = 0x04
+ FIPS_MODE = 0x05
[docs] @unique
class AUDIT ( IntEnum ):
-
"""Values for audit options"""
+
"""Values for audit options"""
OFF = 0x00
ON = 0x01
FIXED = 0x02
+
class _enum_prop :
+
# Static property for use with enums.
+
def __init__ ( self , getter ):
+
self . getter = getter
+
+
def __get__ ( self , instance , cls ):
+
return self . getter ( cls )
+
+
[docs] @unique
-
class CAPABILITY ( IntEnum ):
-
"""YubiHSM object capability flags"""
+
class CAPABILITY ( IntFlag ):
+
"""YubiHSM object capability flags"""
GET_OPAQUE = 1 << 0x00
PUT_OPAQUE = 1 << 0x01
@@ -481,72 +442,55 @@
Source code for yubihsm.defs
DELETE_HMAC_KEY = 1 << 0x2B
DELETE_TEMPLATE = 1 << 0x2C
DELETE_OTP_AEAD_KEY = 1 << 0x2D
- CHANGE_AUTHENTICATION_KEY = 1 << 0x2E
+
CHANGE_AUTHENTICATION_KEY = 1 << 0x2E
+
PUT_SYMMETRIC_KEY = 1 << 0x2F
+
GENERATE_SYMMETRIC_KEY = 1 << 0x30
+
DELETE_SYMMETRIC_KEY = 1 << 0x31
+
DECRYPT_ECB = 1 << 0x32
+
ENCRYPT_ECB = 1 << 0x33
+
DECRYPT_CBC = 1 << 0x34
+
ENCRYPT_CBC = 1 << 0x35
+
[docs] @_enum_prop
+
def NONE ( cls ) -> "CAPABILITY" :
+
return cls ( 0 ) # type: ignore
-
CAPABILITY . ALL = sum ( CAPABILITY )
-
CAPABILITY . NONE = 0x00
+
[docs] @_enum_prop
+
def ALL ( cls ) -> "CAPABILITY" :
+
return cls ( sum ( cls )) # type: ignore
-
[docs] class ORIGIN ( int ):
+
[docs] class ORIGIN ( IntFlag ):
GENERATED = 0x01
IMPORTED = 0x02
-
IMPORTED_WRAPPED = 0x10 # Used in combination with GENERATED/IMPORTED
-
-
@property
-
def generated ( self ):
-
return ORIGIN . GENERATED & self != 0
-
-
@property
-
def imported ( self ):
-
return ORIGIN . IMPORTED & self != 0
-
-
@property
-
def wrapped ( self ):
-
return ORIGIN . IMPORTED_WRAPPED & self != 0
+
IMPORTED_WRAPPED = 0x10 # Set in combination with GENERATED/IMPORTED
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/_modules/yubihsm/eddsa.html b/static/python-yubihsm/API_Documentation/_modules/yubihsm/eddsa.html
deleted file mode 100644
index 6882fa7f7..000000000
--- a/static/python-yubihsm/API_Documentation/_modules/yubihsm/eddsa.html
+++ /dev/null
@@ -1,294 +0,0 @@
-
-
-
-
-
-
-
-
-
- yubihsm.eddsa — python-yubihsm 2.1.0 documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- python-yubihsm
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- »
-
- Module code »
-
- yubihsm.eddsa
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Source code for yubihsm.eddsa
-# Copyright 2016-2018 Yubico AB
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Functions for serializing and deserializing Ed25519 keys."""
-
-from cryptography.exceptions import UnsupportedAlgorithm
-
-try :
- # Requires Cryptography >= 2.6
- from cryptography.hazmat.primitives.asymmetric import ed25519
- from cryptography.hazmat.primitives.serialization import (
- Encoding ,
- PublicFormat ,
- PrivateFormat ,
- NoEncryption ,
- )
-
- ed25519 . Ed25519PrivateKey . generate () # Check for algorithm support.
-
- def load_ed25519_private_key ( seed ):
- """Load an Ed25519 key from a private seed (32 bytes).
-
- :param bytes seed: A 32 byte seed.
- :return: An Ed25519 private key object.
- """
- return ed25519 . Ed25519PrivateKey . from_private_bytes ( seed )
-
- def serialize_ed25519_public_key ( key ):
- """Serialize an Ed25519 public key object to bytes.
-
- :param Ed25519 key: The public key to serialze.
- :return: The 32 byte binary representation of a public Ed25519 key.
- :rtype: bytes
- """
- return key . public_bytes ( Encoding . Raw , PublicFormat . Raw )
-
- def _is_ed25519_private_key ( key ):
- return isinstance ( key , ed25519 . Ed25519PrivateKey )
-
- def _serialize_ed25519_private_key ( key ):
- return key . private_bytes ( Encoding . Raw , PrivateFormat . Raw , NoEncryption ())
-
- def _deserialize_ed25519_public_key ( raw_key ):
- return ed25519 . Ed25519PublicKey . from_public_bytes ( raw_key )
-
-
-except ( ImportError , UnsupportedAlgorithm ):
-
- class _Ed25519PrivateKey ( object ):
- def __init__ ( self , private_bytes ):
- self . _private_bytes = private_bytes
-
- class _Ed25519PublicKey ( object ):
- def __init__ ( self , public_bytes ):
- self . _public_bytes = public_bytes
-
-[docs] def load_ed25519_private_key ( seed ):
-
"""Load an Ed25519 key from a private seed (32 bytes).
-
-
:param bytes seed: A 32 byte seed.
-
:return: An Ed25519 private key object.
-
"""
-
return _Ed25519PrivateKey ( seed )
-
-[docs] def serialize_ed25519_public_key ( key ):
-
"""Serialize an Ed25519 public key object to bytes.
-
-
:param Ed25519 key: The public key to serialze.
-
:return: The 32 byte binary representation of a public Ed25519 key.
-
:rtype: bytes
-
"""
-
return key . _public_bytes
-
- def _is_ed25519_private_key ( key ):
- return isinstance ( key , _Ed25519PrivateKey )
-
- def _serialize_ed25519_private_key ( key ):
- return key . _private_bytes
-
- def _deserialize_ed25519_public_key ( raw_key ):
- return _Ed25519PublicKey ( raw_key )
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/_modules/yubihsm/exceptions.html b/static/python-yubihsm/API_Documentation/_modules/yubihsm/exceptions.html
index cf91b1bde..f44cedea8 100644
--- a/static/python-yubihsm/API_Documentation/_modules/yubihsm/exceptions.html
+++ b/static/python-yubihsm/API_Documentation/_modules/yubihsm/exceptions.html
@@ -1,158 +1,74 @@
-
-
-
-
- yubihsm.exceptions — python-yubihsm 2.1.0 documentation
-
-
-
-
-
-
-
-
+ yubihsm.exceptions — python-yubihsm 3.0.0.dev0 documentation
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
-
-
-
-
-
-
+
python-yubihsm
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
Source code for yubihsm.exceptions
# Copyright 2016-2018 Yubico AB
#
@@ -170,27 +86,24 @@ Source code for yubihsm.exceptions
"""Exceptions thrown by this library."""
-
-from __future__ import absolute_import
-
from .defs import ERROR
[docs] class YubiHsmError ( Exception ):
-
"""Baseclass for YubiHSM errors."""
+ """Baseclass for YubiHSM errors."""
[docs] class YubiHsmConnectionError ( YubiHsmError ):
-
"""The connection to the YubiHSM failed."""
+ """The connection to the YubiHSM failed."""
[docs] class YubiHsmDeviceError ( YubiHsmError ):
-
"""The YubiHSM returned an error code.
+
"""The YubiHSM returned an error code.
:param int code: The device error code.
"""
-
def __init__ ( self , code ):
+
def __init__ ( self , code : int ):
self . code = ERROR ( code )
super ( YubiHsmDeviceError , self ) . __init__ (
" {0.name} (error code 0x {0.value:02x} )" . format ( self . code )
@@ -198,58 +111,42 @@
Source code for yubihsm.exceptions
[docs] class YubiHsmInvalidRequestError ( YubiHsmError ):
-
"""The request was not able to be sent to the YubiHSM."""
+ """The request was not able to be sent to the YubiHSM."""
[docs] class YubiHsmInvalidResponseError ( YubiHsmError ):
-
"""The YubiHSM returned an unexpected response."""
+
"""The YubiHSM returned an unexpected response."""
[docs] class YubiHsmAuthenticationError ( YubiHsmError ):
-
"""Authentication failed."""
+
"""Authentication failed."""
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/_modules/yubihsm/objects.html b/static/python-yubihsm/API_Documentation/_modules/yubihsm/objects.html
index d8a2348b9..66095aeac 100644
--- a/static/python-yubihsm/API_Documentation/_modules/yubihsm/objects.html
+++ b/static/python-yubihsm/API_Documentation/_modules/yubihsm/objects.html
@@ -1,158 +1,74 @@
-
-
-
-
- yubihsm.objects — python-yubihsm 2.1.0 documentation
-
-
-
-
-
-
-
-
+ yubihsm.objects — python-yubihsm 3.0.0.dev0 documentation
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
-
-
-
-
-
-
+
python-yubihsm
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
Source code for yubihsm.objects
# Copyright 2016-2018 Yubico AB
#
@@ -170,53 +86,60 @@ Source code for yubihsm.objects
"""Classes for interacting with objects on a YubiHSM."""
-
-from __future__ import absolute_import , division
-
-from .defs import ALGORITHM , COMMAND , OBJECT , ORIGIN
+from .defs import ALGORITHM , CAPABILITY , COMMAND , OBJECT , ORIGIN
from .exceptions import YubiHsmInvalidResponseError
-from .eddsa import (
- _is_ed25519_private_key ,
- _serialize_ed25519_private_key ,
- _deserialize_ed25519_public_key ,
-)
+from .utils import password_to_key
+from . import core
from cryptography.hazmat.backends import default_backend
from cryptography import x509
from cryptography.hazmat.primitives import hashes
-from cryptography.hazmat.primitives.asymmetric import rsa , ec
+from cryptography.hazmat.primitives.asymmetric import rsa , ec , ed25519
+from cryptography.hazmat.primitives.serialization import (
+ Encoding ,
+ PublicFormat ,
+ PrivateFormat ,
+ NoEncryption ,
+)
from cryptography.hazmat.primitives.asymmetric.utils import Prehashed
-from cryptography.hazmat.primitives.serialization import Encoding , PublicFormat
-from cryptography.utils import int_to_bytes
-from .utils import int_from_bytes , password_to_key
-from collections import namedtuple
-import six
+from dataclasses import dataclass
+from typing import ClassVar , Union , Optional , TypeVar , NamedTuple , Type
import copy
import struct
LABEL_LENGTH = 40
+MAX_AES_PAYLOAD_SIZE = 2026
+AES_BLOCK_SIZE = 16
+
+RSA_PUBLIC_EXPONENT = 65537
+RSA_SIZES = [
+ 2048 ,
+ 3072 ,
+ 4096 ,
+]
-def _label_pack ( label ):
- """Pack a label into binary form."""
- if isinstance ( label , six . text_type ):
- label = label . encode ( "utf8" )
+
+def _label_pack ( label : Union [ str , bytes ]) -> bytes :
+ """Pack a label into binary form."""
+ if isinstance ( label , str ):
+ label = label . encode ()
if len ( label ) > LABEL_LENGTH :
raise ValueError ( "Label must be no longer than %d bytes" % LABEL_LENGTH )
return label
-def _label_unpack ( packed ):
- """Unpack a label from its binary form."""
+def _label_unpack ( packed : bytes ) -> Union [ str , bytes ]:
+ """Unpack a label from its binary form."""
try :
- return packed . split ( b " \0 " , 2 )[ 0 ] . decode ( "utf8" )
+ return packed . split ( b " \0 " , 2 )[ 0 ] . decode ()
except UnicodeDecodeError :
# Not valid UTF-8 string, return the raw data.
return packed
-def _calc_hash ( data , hash ):
+def _calc_hash ( data : bytes , hash : hashes . HashAlgorithm ) -> bytes :
if not isinstance ( hash , Prehashed ):
digest = hashes . Hash ( hash , backend = default_backend ())
digest . update ( data )
@@ -225,88 +148,83 @@ Source code for yubihsm.objects
return data
-[docs] class ObjectInfo (
-
namedtuple (
-
"ObjectInfo" ,
-
[
-
"capabilities" ,
-
"id" ,
-
"size" ,
-
"domains" ,
-
"object_type" ,
-
"algorithm" ,
-
"sequence" ,
-
"origin" ,
-
"label" ,
-
"delegated_capabilities" ,
-
],
-
)
-
):
-
"""Data structure holding various information about an object.
-
-
:param int capabilities: The capabilities of the object.
-
:param int id: The ID of the object.
-
:param int size: The size of the object.
-
:param int domains: The set of domains the object belongs to.
-
:param OBJECT object_type: The type of the object.
-
:param ALGORITHM algorithm: The algorithm of the object.
-
:param int sequence: The sequence number of the object.
-
:param ORIGIN origin: How the object was created/imported.
-
:param label: The label of the object.
-
:type label: str or bytes
-
:param int delegated_capabilities: The set of delegated capabilities for the
-
object.
+
[docs] @dataclass ( frozen = True )
+
class ObjectInfo :
+
"""Data structure holding various information about an object.
+
+
:ivar capabilities: The capabilities of the object.
+
:ivar id: The ID of the object.
+
:ivar size: The size of the object.
+
:ivar domains: The set of domains the object belongs to.
+
:ivar object_type: The type of the object.
+
:ivar algorithm: The algorithm of the object.
+
:ivar sequence: The sequence number of the object.
+
:ivar origin: How the object was created/imported.
+
:ivar label: The label of the object.
+
:ivar delegated_capabilities: The set of delegated capabilities for the object.
"""
-
__slots__ = ()
-
FORMAT = "!QHHHBBBB %d sQ" % LABEL_LENGTH
-
LENGTH = struct . calcsize ( FORMAT )
+
FORMAT : ClassVar [ str ] = "!QHHHBBBB %d sQ" % LABEL_LENGTH
+
LENGTH : ClassVar [ int ] = struct . calcsize ( FORMAT )
+
+
capabilities : CAPABILITY
+
id : int
+
size : int
+
domains : int
+
object_type : OBJECT
+
algorithm : ALGORITHM
+
sequence : int
+
origin : ORIGIN
+
label : Union [ str , bytes ]
+
delegated_capabilities : CAPABILITY
[docs] @classmethod
-
def parse ( cls , data ):
-
"""Parse an ObjectInfo from its binary representation."""
-
tmp = cls ( * struct . unpack ( cls . FORMAT , data ))
-
return tmp . _replace (
-
object_type = OBJECT ( tmp . object_type ),
-
algorithm = ALGORITHM ( tmp . algorithm ),
-
origin = ORIGIN ( tmp . origin ),
-
label = _label_unpack ( tmp . label ),
-
)
+
def parse ( cls , value : bytes ) -> "ObjectInfo" :
+
"""Parse an ObjectInfo from its binary representation."""
+
data = list ( struct . unpack ( cls . FORMAT , value ))
+
data [ 4 ] = OBJECT ( data [ 4 ])
+
data [ 5 ] = ALGORITHM ( data [ 5 ])
+
data [ 7 ] = ORIGIN ( data [ 7 ])
+
data [ 8 ] = _label_unpack ( data [ 8 ])
+
return cls ( * data )
-[docs] class YhsmObject ( object ):
-
"""A reference to an object stored in a YubiHSM.
+
T_Object = TypeVar ( "T_Object" , bound = "YhsmObject" )
+
+
+
[docs] class YhsmObject :
+
"""A reference to an object stored in a YubiHSM.
YubiHSM objects are uniquely identified by their type and ID combined.
-
:param OBJECT object_type: The type of the object.
-
:param int id: The ID of the object.
-
:param AuthSession session: The session to use for YubiHSM communication.
+
:ivar session: The session to use for YubiHSM communication.
+
:ivar id: The ID of the object.
+
:ivar object_type: The type of the object.
"""
-
object_type = None
+
object_type : ClassVar [ OBJECT ]
-
def __init__ ( self , session , object_id , seq = None ):
+
def __init__ (
+
self , session : "core.AuthSession" , object_id : int , seq : Optional [ int ] = None
+
):
self . session = session
-
self . id = object_id
+
self . id : int = object_id
self . _seq = seq
-
[docs] def with_session ( self , session ):
-
"""Get a copy of the object reference, using the given session.
+
[docs] def with_session ( self : T_Object , session : "core.AuthSession" ) -> T_Object :
+
"""Get a copy of the object reference, using the given session.
-
:param AuthSession session: The session to use for the created reference.
+
:param session: The session to use for the created reference.
:return: A new reference to the object, associated wth the given session.
-
:rtype: YhsmObject
"""
other = copy . copy ( self )
other . session = session
return other
-
[docs] def get_info ( self ):
-
"""Read extended information about the object from the YubiHSM.
+
[docs] def get_info ( self ) -> ObjectInfo :
+
"""Read extended information about the object from the YubiHSM.
:return: Information about the object.
-
:rtype: ObjectInfo
"""
msg = struct . pack ( "!HB" , self . id , self . object_type )
resp = self . session . send_secure_cmd ( COMMAND . GET_OBJECT_INFO , msg )
@@ -315,8 +233,8 @@
Source code for yubihsm.objects
except ValueError :
raise YubiHsmInvalidResponseError ()
-
[docs] def delete ( self ):
-
"""Deletes the object from the YubiHSM.
+
[docs] def delete ( self ) -> None :
+
"""Deletes the object from the YubiHSM.
.. warning:: This action in irreversible.
"""
@@ -325,20 +243,27 @@
Source code for yubihsm.objects
raise YubiHsmInvalidResponseError ()
@staticmethod
-
def _create ( object_type , session , object_id , seq = None ):
-
"""
+
def _create (
+
object_type : OBJECT ,
+
session : "core.AuthSession" ,
+
object_id : int ,
+
seq : Optional [ int ] = None ,
+
) -> "YhsmObject" :
+
"""
Creates instance of `object_type`.
When object type is not recognized, _create constructs an
instance of `_UnknownYhsmObject`.
"""
for cls in YhsmObject . __subclasses__ ():
-
if cls . object_type == object_type :
+
if getattr ( cls , "object_type" , None ) == object_type :
return cls ( session , object_id , seq )
return _UnknownYhsmObject ( object_type , session , object_id , seq )
@classmethod
-
def _from_command ( cls , session , cmd , data ):
+
def _from_command (
+
cls : Type [ T_Object ], session : "core.AuthSession" , cmd : COMMAND , data : bytes
+
) -> T_Object :
ret = session . send_secure_cmd ( cmd , data )
return cls ( session , struct . unpack ( "!H" , ret )[ 0 ])
@@ -347,18 +272,18 @@
Source code for yubihsm.objects
class _UnknownYhsmObject ( YhsmObject ):
- """
+ """
_UnknownYhsmObject is a generic YhsmObject with `self.object_type`
set to the specified `object_type` parameter.
"""
- def __init__ ( self , object_type , * args , ** kwargs ):
+ def __init__ ( self , object_type : OBJECT , * args , ** kwargs ):
super ( _UnknownYhsmObject , self ) . __init__ ( * args , ** kwargs )
- self . object_type = object_type
+ self . object_type = object_type # type: ignore
[docs] class Opaque ( YhsmObject ):
-
"""Object used to store arbitrary data on the YubiHSM.
+
"""Object used to store arbitrary data on the YubiHSM.
Supported algorithms:
- :class:`~yubihsm.defs.ALGORITHM.OPAQUE_DATA`
@@ -368,19 +293,27 @@
Source code for yubihsm.objects
object_type = OBJECT . OPAQUE
[docs] @classmethod
-
def put ( cls , session , object_id , label , domains , capabilities , algorithm , data ):
-
"""Import an Opaque object into the YubiHSM.
-
-
:param AuthSession session: The session to import via.
-
:param int object_id: The ID to set for the object. Set to 0 to let the
+
def put (
+
cls ,
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
algorithm : ALGORITHM ,
+
data : bytes ,
+
) -> "Opaque" :
+
"""Import an Opaque object into the YubiHSM.
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the
YubiHSM designate an ID.
-
:param str label: A text label to give the object.
-
:param int domains: The set of domains to assign the object to.
-
:param int capabilities: The set of capabilities to give the object.
-
:param ALGORITHM algorithm: The algorithm to use for the object.
-
:param bytes data: The binary data to store.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param algorithm: The algorithm to use for the object.
+
:param data: The binary data to store.
:return: A reference to the newly created object.
-
:rtype: Opaque
"""
if not data :
raise ValueError ( "Cannot store empty data" )
@@ -395,31 +328,34 @@
Source code for yubihsm.objects
msg += data
return cls . _from_command ( session , COMMAND . PUT_OPAQUE , msg )
-
[docs] def get ( self ):
-
"""Read the data of an Opaque object from the YubiHSM.
+
[docs] def get ( self ) -> bytes :
+
"""Read the data of an Opaque object from the YubiHSM.
:return: The data stored for the object.
-
:rtype: bytes
"""
msg = struct . pack ( "!H" , self . id )
return self . session . send_secure_cmd ( COMMAND . GET_OPAQUE , msg )
[docs] @classmethod
def put_certificate (
-
cls , session , object_id , label , domains , capabilities , certificate
-
):
-
"""Import an X509 certificate into the YubiHSM as an Opaque.
-
-
:param AuthSession session: The session to import via.
-
:param int object_id: The ID to set for the object. Set to 0 to let the
+
cls ,
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
certificate : x509 . Certificate ,
+
) -> "Opaque" :
+
"""Import an X509 certificate into the YubiHSM as an Opaque.
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the
YubiHSM designate an ID.
-
:param str label: A text label to give the object.
-
:param int domains: The set of domains to assign the object to.
-
:param int capabilities: The set of capabilities to give the object.
-
:param cryptography.x509.Certificate certificate: A certificate to
-
import.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param certificate: A certificate to import.
:return: A reference to the newly created object.
-
:rtype: Opaque
"""
encoded_cert = certificate . public_bytes ( Encoding . DER )
return cls . put (
@@ -432,17 +368,16 @@
Source code for yubihsm.objects
-
[docs] def get_certificate ( self ):
-
"""Read an Opaque object from the YubiHSM, parsed as a certificate.
+
[docs] def get_certificate ( self ) -> x509 . Certificate :
+
"""Read an Opaque object from the YubiHSM, parsed as a certificate.
:return: The certificate stored for the object.
-
:rtype: cryptography.x509.Certificate
"""
return x509 . load_der_x509_certificate ( self . get (), default_backend ())
[docs] class AuthenticationKey ( YhsmObject ):
-
"""Used to authenticate a session with the YubiHSM.
+
"""Used to authenticate a session with the YubiHSM.
AuthenticationKeys use two separate keys to mutually authenticate and set up
a secure session with a YubiHSM. These two keys can either be given
@@ -454,28 +389,27 @@
Source code for yubihsm.objects
[docs] @classmethod
def put_derived (
cls ,
-
session ,
-
object_id ,
-
label ,
-
domains ,
-
capabilities ,
-
delegated_capabilities ,
-
password ,
-
):
-
"""Create an AuthenticationKey derived from a password.
-
-
:param AuthSession session: The session to import via.
-
:param int object_id: The ID to set for the object. Set to 0 to let the
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
delegated_capabilities : CAPABILITY ,
+
password : str ,
+
) -> "AuthenticationKey" :
+
"""Create an AuthenticationKey derived from a password.
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the
YubiHSM designate an ID.
-
:param str label: A text label to give the object.
-
:param int domains: The set of domains to assign the object to.
-
:param int capabilities: The set of capabilities to give the object.
-
:param int delegated_capabilities: The set of capabilities that the
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param delegated_capabilities: The set of capabilities that the
AuthenticationKey can give to objects created when authenticated
using it.
-
:param str password: The password to derive raw keys from.
+
:param password: The password to derive raw keys from.
:return: A reference to the newly created object.
-
:rtype: AuthenticationKey
"""
key_enc , key_mac = password_to_key ( password )
return cls . put (
@@ -492,30 +426,29 @@
Source code for yubihsm.objects
[docs] @classmethod
def put (
cls ,
-
session ,
-
object_id ,
-
label ,
-
domains ,
-
capabilities ,
-
delegated_capabilities ,
-
key_enc ,
-
key_mac ,
-
):
-
"""Create an AuthenticationKey by providing raw keys.
-
-
:param AuthSession session: The session to import via.
-
:param int object_id: The ID to set for the object. Set to 0 to let the
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
delegated_capabilities : CAPABILITY ,
+
key_enc : bytes ,
+
key_mac : bytes ,
+
) -> "AuthenticationKey" :
+
"""Create an AuthenticationKey by providing raw keys.
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the
YubiHSM designate an ID.
-
:param str label: A text label to give the object.
-
:param int domains: The set of domains to assign the object to.
-
:param int capabilities: The set of capabilities to give the object.
-
:param int delegated_capabilities: The set of capabilities that the
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param delegated_capabilities: The set of capabilities that the
AuthenticationKey can give to objects created when authenticated
using it.
-
:param bytes key_enc: The raw encryption key.
-
:param bytes key_mac: The raw MAC key.
+
:param key_enc: The raw encryption key.
+
:param key_mac: The raw MAC key.
:return: A reference to the newly created object.
-
:rtype: AuthenticationKey
"""
msg = struct . pack (
"!H %d sHQBQ" % LABEL_LENGTH ,
@@ -529,22 +462,64 @@
Source code for yubihsm.objects
msg += key_enc + key_mac
return cls . _from_command ( session , COMMAND . PUT_AUTHENTICATION_KEY , msg )
-
[docs] def change_password ( self , password ):
-
"""Change the password used to authenticate a session.
+
[docs] @classmethod
+
def put_public_key (
+
cls ,
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
delegated_capabilities : CAPABILITY ,
+
public_key : ec . EllipticCurvePublicKey ,
+
) -> "AuthenticationKey" :
+
"""Create an asymmetric AuthenticationKey by providing a public key
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the
+
YubiHSM designate an ID.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param delegated_capabilities: The set of capabilities that the
+
AuthenticationKey can give to objects created when authenticated
+
using it.
+
:param public_key: The public key to import.
+
:return: A reference to the newly created object.
+
"""
+
if not isinstance ( public_key . curve , ec . SECP256R1 ):
+
raise ValueError ( "Unsupported curve" )
+
+
msg = struct . pack (
+
"!H %d sHQBQ" % LABEL_LENGTH ,
+
object_id ,
+
_label_pack ( label ),
+
domains ,
+
capabilities ,
+
ALGORITHM . EC_P256_YUBICO_AUTHENTICATION ,
+
delegated_capabilities ,
+
)
+
numbers = public_key . public_numbers ()
+
msg += int . to_bytes ( numbers . x , public_key . key_size // 8 , "big" )
+
msg += int . to_bytes ( numbers . y , public_key . key_size // 8 , "big" )
+
return cls . _from_command ( session , COMMAND . PUT_AUTHENTICATION_KEY , msg )
+
+
[docs] def change_password ( self , password : str ) -> None :
+
"""Change the password used to authenticate a session.
Changes the raw keys used for authentication, by deriving them from a
password.
-
:param str password: The password to derive raw keys from.
+
:param password: The password to derive raw keys from.
"""
key_enc , key_mac = password_to_key ( password )
self . change_key ( key_enc , key_mac )
-
[docs] def change_key ( self , key_enc , key_mac ):
-
"""Change the raw keys used to authenticate a session.
+
[docs] def change_key ( self , key_enc : bytes , key_mac : bytes ) -> None :
+
"""Change the raw keys used to authenticate a session.
-
:param bytes key_enc: The raw encryption key.
-
:param bytes key_mac: The raw MAC key.
+
:param key_enc: The raw encryption key.
+
:param key_mac: The raw MAC key.
"""
msg = (
struct . pack ( "!HB" , self . id , ALGORITHM . AES128_YUBICO_AUTHENTICATION )
@@ -552,12 +527,28 @@
Source code for yubihsm.objects
+ key_mac
)
resp = self . session . send_secure_cmd ( COMMAND . CHANGE_AUTHENTICATION_KEY , msg )
+ if struct . unpack ( "!H" , resp )[ 0 ] != self . id :
+ raise YubiHsmInvalidResponseError ( "Wrong ID returned" )
+
+
[docs] def change_public_key ( self , public_key : ec . EllipticCurvePublicKey ) -> None :
+
"""Change an asymmetric AuthenticationKey's public key
+
+
:param public_key: The new public key.
+
"""
+
if not isinstance ( public_key . curve , ec . SECP256R1 ):
+
raise ValueError ( "Unsupported curve" )
+
+
msg = struct . pack ( "!HB" , self . id , ALGORITHM . EC_P256_YUBICO_AUTHENTICATION )
+
numbers = public_key . public_numbers ()
+
msg += int . to_bytes ( numbers . x , public_key . key_size // 8 , "big" )
+
msg += int . to_bytes ( numbers . y , public_key . key_size // 8 , "big" )
+
resp = self . session . send_secure_cmd ( COMMAND . CHANGE_AUTHENTICATION_KEY , msg )
if struct . unpack ( "!H" , resp )[ 0 ] != self . id :
raise YubiHsmInvalidResponseError ( "Wrong ID returned" )
[docs] class AsymmetricKey ( YhsmObject ):
-
"""Used to sign/decrypt data with the private key of an asymmetric key pair.
+
"""Used to sign/decrypt data with the private key of an asymmetric key pair.
Supported algorithms:
- :class:`~yubihsm.defs.ALGORITHM.RSA_2048`
@@ -577,42 +568,55 @@
Source code for yubihsm.objects
object_type = OBJECT . ASYMMETRIC_KEY
[docs] @classmethod
-
def put ( cls , session , object_id , label , domains , capabilities , key ):
-
"""Import a private key into the YubiHSM.
+
def put (
+
cls ,
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
key ,
+
) -> "AsymmetricKey" :
+
"""Import a private key into the YubiHSM.
RSA and EC keys can be created by using the cryptography APIs. You can
then pass either a
:class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`
-
or a
+
, a
:class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey`
+
, or a
+
:class:`~cryptography.hazmat.primitives.asymmetric.ed25519.Ed25519PrivateKey`
as `key`.
-
EdDSA keys can be created using the Cryptography APIs if available, or
-
by calling
-
:func:`~yubihsm.eddsa.load_ed25519_private_key`.
-
-
:param AuthSession session: The session to import via.
-
:param int object_id: The ID to set for the object. Set to 0 to let the
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the
YubiHSM designate an ID.
-
:param str label: A text label to give the object.
-
:param int domains: The set of domains to assign the object to.
-
:param int capabilities: The set of capabilities to give the object.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
:param key: The private key to import.
:return: A reference to the newly created object.
-
:rtype: AsymmetricKey
"""
-
if isinstance ( key , rsa . RSAPrivateKey ):
-
numbers = key . private_numbers ()
-
serialized = int_to_bytes ( numbers . p ) + int_to_bytes ( numbers . q )
+
if isinstance ( key , rsa . RSAPrivateKeyWithSerialization ):
+
rsa_numbers = key . private_numbers ()
+
if rsa_numbers . public_numbers . e != RSA_PUBLIC_EXPONENT :
+
raise ValueError ( "Unsupported public exponent" )
+
if key . key_size not in RSA_SIZES :
+
raise ValueError ( "Unsupported key size" )
+
serialized = int . to_bytes (
+
rsa_numbers . p , key . key_size // 8 // 2 , "big"
+
) + int . to_bytes ( rsa_numbers . q , key . key_size // 8 // 2 , "big" )
algo = getattr ( ALGORITHM , "RSA_ %d " % key . key_size )
-
elif isinstance ( key , ec . EllipticCurvePrivateKey ):
-
numbers = key . private_numbers ()
-
serialized = int_to_bytes (
-
numbers . private_value , ( key . curve . key_size + 7 ) // 8
+
elif isinstance ( key , ec . EllipticCurvePrivateKeyWithSerialization ):
+
ec_numbers = key . private_numbers ()
+
serialized = int . to_bytes (
+
ec_numbers . private_value , ( key . curve . key_size + 7 ) // 8 , "big"
)
algo = ALGORITHM . for_curve ( key . curve )
-
elif _is_ed25519_private_key ( key ):
-
serialized = _serialize_ed25519_private_key ( key )
+
elif isinstance ( key , ed25519 . Ed25519PrivateKey ):
+
serialized = key . private_bytes (
+
Encoding . Raw , PrivateFormat . Raw , NoEncryption ()
+
)
algo = ALGORITHM . EC_ED25519
else :
raise ValueError ( "Unsupported key" )
@@ -631,18 +635,25 @@
Source code for yubihsm.objects
return cls . _from_command ( session , COMMAND . PUT_ASYMMETRIC_KEY , msg )
[docs] @classmethod
-
def generate ( cls , session , object_id , label , domains , capabilities , algorithm ):
-
"""Generate a new private key in the YubiHSM.
-
-
:param AuthSession session: The session to import via.
-
:param int object_id: The ID to set for the object. Set to 0 to let the
+
def generate (
+
cls ,
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
algorithm : ALGORITHM ,
+
) -> "AsymmetricKey" :
+
"""Generate a new private key in the YubiHSM.
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the
YubiHSM designate an ID.
-
:param str label: A text label to give the object.
-
:param int domains: The set of domains to assign the object to.
-
:param int capabilities: The set of capabilities to give the object.
-
:param ALGORITHM algorithm: The algorithm to use for the private key.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param algorithm: The algorithm to use for the private key.
:return: A reference to the newly created object.
-
:rtype: AsymmetricKey
"""
msg = struct . pack (
"!H %d sHQB" % LABEL_LENGTH ,
@@ -655,7 +666,7 @@
Source code for yubihsm.objects
return cls . _from_command ( session , COMMAND . GENERATE_ASYMMETRIC_KEY , msg )
[docs] def get_public_key ( self ):
-
"""Get the public key of the key pair.
+
"""Get the public key of the key pair.
This will return either a
:class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey`
@@ -673,11 +684,13 @@
Source code for yubihsm.objects
"""
msg = struct . pack ( "!H" , self . id )
ret = self . session . send_secure_cmd ( COMMAND . GET_PUBLIC_KEY , msg )
- algo = ALGORITHM ( six . indexbytes ( ret , 0 ))
+ algo = ALGORITHM ( ret [ 0 ])
raw_key = ret [ 1 :]
if algo in [ ALGORITHM . RSA_2048 , ALGORITHM . RSA_3072 , ALGORITHM . RSA_4096 ]:
- num = int_from_bytes ( raw_key , "big" )
- pubkey = rsa . RSAPublicNumbers ( e = 0x10001 , n = num )
+ num = int . from_bytes ( raw_key , "big" )
+ return rsa . RSAPublicNumbers ( e = 0x10001 , n = num ) . public_key (
+ backend = default_backend ()
+ )
elif algo in [
ALGORITHM . EC_P224 ,
ALGORITHM . EC_P256 ,
@@ -689,16 +702,18 @@ Source code for yubihsm.objects
ALGORITHM . EC_BP512 ,
]:
c_len = len ( raw_key ) // 2
- x = int_from_bytes ( raw_key [: c_len ], "big" )
- y = int_from_bytes ( raw_key [ c_len :], "big" )
- pubkey = ec . EllipticCurvePublicNumbers ( curve = algo . to_curve (), x = x , y = y )
+ x = int . from_bytes ( raw_key [: c_len ], "big" )
+ y = int . from_bytes ( raw_key [ c_len :], "big" )
+ return ec . EllipticCurvePublicNumbers (
+ curve = algo . to_curve (), x = x , y = y
+ ) . public_key ( backend = default_backend ())
elif algo in [ ALGORITHM . EC_ED25519 ]:
- return _deserialize_ed25519_public_key ( raw_key )
-
- return pubkey . public_key ( backend = default_backend ())
+ return ed25519 . Ed25519PublicKey . from_public_bytes ( raw_key )
+ else :
+ raise TypeError ( "Invalid ALGORITHM" )
-
[docs] def get_certificate ( self ):
-
"""Get the X509 certificate associated with the key.
+
[docs] def get_certificate ( self ) -> x509 . Certificate :
+
"""Get the X509 certificate associated with the key.
An X509 certificate is associated with an asymmetric key if it is stored
as an Opaque object with the same object ID as the key, and it has the
@@ -707,36 +722,39 @@
Source code for yubihsm.objects
Equivalent to calling `Opaque(session, key_id).get_certificate()`.
:return: The certificate stored for the object.
- :rtype: cryptography.x509.Certificate
"""
return Opaque ( self . session , self . id ) . get_certificate ()
-
[docs] def put_certificate ( self , label , domains , capabilities , certificate ):
-
"""Store an X509 certificate associated with this key.
+
[docs] def put_certificate (
+
self ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
certificate : x509 . Certificate ,
+
) -> Opaque :
+
"""Store an X509 certificate associated with this key.
Equivalent to calling `Opaque.put_certificate(session, key_id, ...)`.
-
:param str label: A text label to give the object.
-
:param int domains: The set of domains to assign the object to.
-
:param int capabilities: The set of capabilities to give the object.
-
:param cryptography.x509.Certificate certificate: A certificate to
-
import.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param certificate: A certificate to import.
:return: A reference to the newly created object.
-
:rtype: Opaque
"""
return Opaque . put_certificate (
self . session , self . id , label , domains , capabilities , certificate
)
-
[docs] def sign_ecdsa ( self , data , hash = hashes . SHA256 (), length = 0 ):
-
"""Sign data using ECDSA.
+
[docs] def sign_ecdsa (
+
self , data : bytes , hash : hashes . HashAlgorithm = hashes . SHA256 (), length : int = 0
+
) -> bytes :
+
"""Sign data using ECDSA.
-
:param bytes data: The data to sign.
+
:param data: The data to sign.
:param hash: (optional) The algorithm to use when hashing the data.
-
:type hash: cryptography.hazmat.primitives.hashes.HashAlgorithm
-
:param int length: (optional) length to pad/truncate the hash to.
+
:param length: (optional) length to pad/truncate the hash to.
:return: The resulting signature.
-
:rtype: bytes
"""
data = _calc_hash ( data , hash )
@@ -746,59 +764,53 @@
Source code for yubihsm.objects
msg = struct . pack ( "!H %d s" % length , self . id , data . rjust ( length , b " \0 " ))
return self . session . send_secure_cmd ( COMMAND . SIGN_ECDSA , msg )
-
[docs] def derive_ecdh ( self , public_key ):
-
"""Perform an ECDH key exchange as specified in SP 800-56A.
+
[docs] def derive_ecdh ( self , public_key : ec . EllipticCurvePublicKey ) -> bytes :
+
"""Perform an ECDH key exchange as specified in SP 800-56A.
:param public_key: The public key to use for the key exchange.
-
:type public_key:
-
cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey
:return: The resulting shared key.
-
:rtype: bytes
"""
-
try :
-
point = public_key . public_bytes (
-
Encoding . X962 , PublicFormat . UncompressedPoint
-
)
-
except AttributeError : # Cryptography <2.5
-
point = public_key . public_numbers () . encode_point ()
+
point = public_key . public_bytes ( Encoding . X962 , PublicFormat . UncompressedPoint )
msg = struct . pack ( "!H" , self . id ) + point
return self . session . send_secure_cmd ( COMMAND . DERIVE_ECDH , msg )
-
[docs] def sign_pkcs1v1_5 ( self , data , hash = hashes . SHA256 ()):
-
"""Sign data using RSASSA-PKCS1-v1_5.
+
[docs] def sign_pkcs1v1_5 (
+
self , data : bytes , hash : hashes . HashAlgorithm = hashes . SHA256 ()
+
) -> bytes :
+
"""Sign data using RSASSA-PKCS1-v1_5.
-
:param bytes data: The data to sign.
+
:param data: The data to sign.
:param hash: (optional) The algorithm to use when hashing the data.
-
:type hash: cryptography.hazmat.primitives.hashes.HashAlgorithm
:return: The resulting signature.
-
:rtype: bytes
"""
data = _calc_hash ( data , hash )
msg = struct . pack ( "!H" , self . id ) + data
return self . session . send_secure_cmd ( COMMAND . SIGN_PKCS1 , msg )
-
[docs] def decrypt_pkcs1v1_5 ( self , data ):
-
"""Decrypt data encrypted with RSAES-PKCS1-v1_5.
+
[docs] def decrypt_pkcs1v1_5 ( self , data : bytes ) -> bytes :
+
"""Decrypt data encrypted with RSAES-PKCS1-v1_5.
-
:param bytes data: The ciphertext to decrypt.
+
:param data: The ciphertext to decrypt.
:return: The decrypted plaintext.
-
:rtype: bytes
"""
msg = struct . pack ( "!H" , self . id ) + data
return self . session . send_secure_cmd ( COMMAND . DECRYPT_PKCS1 , msg )
-
[docs] def sign_pss ( self , data , salt_len , hash = hashes . SHA256 (), mgf_hash = hashes . SHA256 ()):
-
"""Sign data using RSASSA-PSS with MGF1.
-
-
:param bytes data: The data to sign.
-
:param int salt_len: The length of the salt to use.
+
[docs] def sign_pss (
+
self ,
+
data : bytes ,
+
salt_len : int ,
+
hash : hashes . HashAlgorithm = hashes . SHA256 (),
+
mgf_hash : hashes . HashAlgorithm = hashes . SHA256 (),
+
) -> bytes :
+
"""Sign data using RSASSA-PSS with MGF1.
+
+
:param data: The data to sign.
+
:param salt_len: The length of the salt to use.
:param hash: (optional) The algorithm to use when hashing the data.
-
:type hash: cryptography.hazmat.primitives.hashes.HashAlgorithm
:param mgf_hash: (optional) The algorithm to use for MGF1.
-
:type mgf_hash: cryptography.hazmat.primitives.hashes.HashAlgorithm
:return: The resulting signature.
-
:rtype: bytes
"""
data = _calc_hash ( data , hash )
@@ -808,18 +820,19 @@
Source code for yubihsm.objects
return self . session . send_secure_cmd ( COMMAND . SIGN_PSS , msg )
[docs] def decrypt_oaep (
-
self , data , label = b "" , hash = hashes . SHA256 (), mgf_hash = hashes . SHA256 ()
-
):
-
"""Decrypt data encrypted with RSAES-OAEP.
-
-
:param bytes data: The ciphertext to decrypt.
-
:param bytes label: (optional) OAEP label.
+
self ,
+
data : bytes ,
+
label : bytes = b "" ,
+
hash : hashes . HashAlgorithm = hashes . SHA256 (),
+
mgf_hash : hashes . HashAlgorithm = hashes . SHA256 (),
+
) -> bytes :
+
"""Decrypt data encrypted with RSAES-OAEP.
+
+
:param data: The ciphertext to decrypt.
+
:param label: (optional) OAEP label.
:param hash: (optional) The algorithm to use when hashing the data.
-
:type hash: cryptography.hazmat.primitives.hashes.HashAlgorithm
:param mgf_hash: (optional) The algorithm to use for MGF1.
-
:type mgf_hash: cryptography.hazmat.primitives.hashes.HashAlgorithm
:return: The decrypted plaintext.
-
:rtype: bytes
"""
digest = hashes . Hash ( hash , backend = default_backend ())
digest . update ( label )
@@ -829,50 +842,49 @@
Source code for yubihsm.objects
msg = struct . pack ( "!HB" , self . id , mgf ) + data + digest . finalize ()
return self . session . send_secure_cmd ( COMMAND . DECRYPT_OAEP , msg )
-
[docs] def sign_eddsa ( self , data ):
-
"""Sign data using EdDSA.
+
[docs] def sign_eddsa ( self , data : bytes ) -> bytes :
+
"""Sign data using EdDSA.
-
:param bytes data: The data to sign.
+
:param data: The data to sign.
:return: The resulting signature.
-
:rtype: bytes
"""
msg = struct . pack ( "!H" , self . id ) + data
return self . session . send_secure_cmd ( COMMAND . SIGN_EDDSA , msg )
-
[docs] def attest ( self , attesting_key_id = 0 ):
-
"""Attest this asymmetric key.
+
[docs] def attest ( self , attesting_key_id : int = 0 ) -> x509 . Certificate :
+
"""Attest this asymmetric key.
Creates an X509 certificate containing this key pair's public key,
signed by the asymmetric key identified by the given ID.
You also need a X509 certificate stored with the same ID as the
attesting key in the YubiHSM, to be used as a template.
-
:param int attesting_key_id: (optional) The ID of the asymmetric key
-
used to attest. If omitted, the built-in Yubico attestation key is
-
used.
+
:param attesting_key_id: (optional) The ID of the asymmetric key used to attest.
+
If omitted, the built-in Yubico attestation key is used.
:return: The attestation certificate.
-
:rtype: cryptography.x509.Certificate
"""
msg = struct . pack ( "!HH" , self . id , attesting_key_id )
resp = self . session . send_secure_cmd ( COMMAND . SIGN_ATTESTATION_CERTIFICATE , msg )
return x509 . load_der_x509_certificate ( resp , default_backend ())
[docs] def sign_ssh_certificate (
-
self , template_id , request , algorithm = ALGORITHM . RSA_PKCS1_SHA1
-
):
-
"""Sign an SSH certificate request.
-
-
:param int template_id: The ID of the SSH TEMPLATE to use.
-
:param bytes request: The SSH certificate request.
-
:return: The signed SSH certificate.
-
:rtype: bytes
+
self ,
+
template_id : int ,
+
request : bytes ,
+
algorithm : ALGORITHM = ALGORITHM . RSA_PKCS1_SHA1 ,
+
) -> bytes :
+
"""Sign an SSH certificate request.
+
+
:param template_id: The ID of the SSH TEMPLATE to use.
+
:param request: The SSH certificate request.
+
:return: The SSH certificate signature.
"""
-
msg = struct . pack ( "!HH" , self . id , template_id ) + request
+
msg = struct . pack ( "!HHB" , self . id , template_id , algorithm ) + request
return self . session . send_secure_cmd ( COMMAND . SIGN_SSH_CERTIFICATE , msg )
[docs] class WrapKey ( YhsmObject ):
-
"""Used to import and export other objects under wrap.
+
"""Used to import and export other objects under wrap.
Supported algorithms:
- :class:`~yubihsm.defs.ALGORITHM.AES128_CCM_WRAP`
@@ -885,26 +897,33 @@
Source code for yubihsm.objects
[docs] @classmethod
def generate (
cls ,
-
session ,
-
object_id ,
-
label ,
-
domains ,
-
capabilities ,
-
algorithm ,
-
delegated_capabilities ,
-
):
-
"""Generate a new wrap key in the YubiHSM.
-
-
:param AuthSession session: The session to import via.
-
:param int object_id: The ID to set for the object. Set to 0 to let the
-
YubiHSM designate an ID.
-
:param str label: A text label to give the object.
-
:param int domains: The set of domains to assign the object to.
-
:param int capabilities: The set of capabilities to give the object.
-
:param ALGORITHM algorithm: The algorithm to use for the wrap key.
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
algorithm : ALGORITHM ,
+
delegated_capabilities : CAPABILITY ,
+
) -> "WrapKey" :
+
"""Generate a new wrap key in the YubiHSM.
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the YubiHSM
+
designate an ID.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param algorithm: The algorithm to use for the wrap key.
:return: A reference to the newly created object.
-
:rtype: WrapKey
"""
+
+
if algorithm not in [
+
ALGORITHM . AES128_CCM_WRAP ,
+
ALGORITHM . AES192_CCM_WRAP ,
+
ALGORITHM . AES256_CCM_WRAP ,
+
]:
+
raise ValueError ( "Invalid algorithm" )
+
msg = struct . pack (
"!H %d sHQBQ" % LABEL_LENGTH ,
object_id ,
@@ -919,30 +938,42 @@
Source code for yubihsm.objects
[docs] @classmethod
def put (
cls ,
-
session ,
-
object_id ,
-
label ,
-
domains ,
-
capabilities ,
-
algorithm ,
-
delegated_capabilities ,
-
key ,
-
):
-
"""Import a wrap key into the YubiHSM.
-
-
:param AuthSession session: The session to import via.
-
:param int object_id: The ID to set for the object. Set to 0 to let the
-
YubiHSM designate an ID.
-
:param str label: A text label to give the object.
-
:param int domains: The set of domains to assign the object to.
-
:param int capabilities: The set of capabilities to give the object.
-
:param ALGORITHM algorithm: The algorithm to use for the wrap key.
-
:param int delegated_capabilities: The set of capabilities that the
-
WrapKey can give to objects that it imports.
-
:param bytes key: The raw encryption key corresponding to the algorithm.
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
algorithm : ALGORITHM ,
+
delegated_capabilities : CAPABILITY ,
+
key : bytes ,
+
) -> "WrapKey" :
+
"""Import a wrap key into the YubiHSM.
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the YubiHSM
+
designate an ID.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param algorithm: The algorithm to use for the wrap key.
+
:param delegated_capabilities: The set of capabilities that the WrapKey can give
+
to objects that it imports.
+
:param key: The raw encryption key corresponding to the algorithm.
:return: A reference to the newly created object.
-
:rtype: WrapKey
"""
+
if algorithm not in [
+
ALGORITHM . AES128_CCM_WRAP ,
+
ALGORITHM . AES192_CCM_WRAP ,
+
ALGORITHM . AES256_CCM_WRAP ,
+
]:
+
raise ValueError ( "Invalid algorithm" )
+
+
if len ( key ) != algorithm . to_key_size ():
+
raise ValueError (
+
"Key length ( %d ) not matching algorithm ( %s )"
+
% ( len ( key ), algorithm . name )
+
)
+
msg = struct . pack (
"!H %d sHQBQ" % LABEL_LENGTH ,
object_id ,
@@ -955,42 +986,38 @@
Source code for yubihsm.objects
msg += key
return cls . _from_command ( session , COMMAND . PUT_WRAP_KEY , msg )
-
[docs] def wrap_data ( self , data ):
-
"""Wrap (encrypt) arbitrary data.
+
[docs] def wrap_data ( self , data : bytes ) -> bytes :
+
"""Wrap (encrypt) arbitrary data.
-
:param bytes data: The data to encrypt.
+
:param data: The data to encrypt.
:return: The encrypted data.
-
:rtype: bytes
"""
msg = struct . pack ( "!H" , self . id ) + data
return self . session . send_secure_cmd ( COMMAND . WRAP_DATA , msg )
-
[docs] def unwrap_data ( self , data ):
-
"""Unwrap (decrypt) arbitrary data.
+
[docs] def unwrap_data ( self , data : bytes ) -> bytes :
+
"""Unwrap (decrypt) arbitrary data.
-
:param bytes data: The encrypted data to decrypt.
+
:param data: The encrypted data to decrypt.
:return: The decrypted data.
-
:rtype: bytes
"""
msg = struct . pack ( "!H" , self . id ) + data
return self . session . send_secure_cmd ( COMMAND . UNWRAP_DATA , msg )
-
[docs] def export_wrapped ( self , obj ):
-
"""Exports an object under wrap.
+
[docs] def export_wrapped ( self , obj : YhsmObject ) -> bytes :
+
"""Exports an object under wrap.
-
:param YhsmObject obj: The object to export.
+
:param obj: The object to export.
:return: The encrypted object data.
-
:rtype: bytes
"""
msg = struct . pack ( "!HBH" , self . id , obj . object_type , obj . id )
return self . session . send_secure_cmd ( COMMAND . EXPORT_WRAPPED , msg )
-
[docs] def import_wrapped ( self , wrapped_obj ):
-
"""Imports an object previously exported under wrap.
+
[docs] def import_wrapped ( self , wrapped_obj : bytes ) -> YhsmObject :
+
"""Imports an object previously exported under wrap.
-
:param bytes wraped_obj: The encrypted object data.
+
:param wraped_obj: The encrypted object data.
:return: A reference to the imported object.
-
:rtype: YhsmObject
"""
msg = struct . pack ( "!H" , self . id ) + wrapped_obj
ret = self . session . send_secure_cmd ( COMMAND . IMPORT_WRAPPED , msg )
@@ -999,7 +1026,7 @@
Source code for yubihsm.objects
[docs] class HmacKey ( YhsmObject ):
-
"""Used to calculate and verify HMAC signatures.
+
"""Used to calculate and verify HMAC signatures.
Supported algorithms:
- :class:`~yubihsm.defs.ALGORITHM.HMAC_SHA1`
@@ -1013,26 +1040,32 @@
Source code for yubihsm.objects
[docs] @classmethod
def generate (
cls ,
-
session ,
-
object_id ,
-
label ,
-
domains ,
-
capabilities ,
-
algorithm = ALGORITHM . HMAC_SHA256 ,
-
):
-
"""Generate a new HMAC key in the YubiHSM.
-
-
:param AuthSession session: The session to import via.
-
:param int object_id: The ID to set for the object. Set to 0 to let the
-
YubiHSM designate an ID.
-
:param str label: A text label to give the object.
-
:param int domains: The set of domains to assign the object to.
-
:param int capabilities: The set of capabilities to give the object.
-
:param ALGORITHM algorithm: (optional) The algorithm to use for the HMAC
-
key.
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
algorithm : ALGORITHM = ALGORITHM . HMAC_SHA256 ,
+
) -> "HmacKey" :
+
"""Generate a new HMAC key in the YubiHSM.
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the YubiHSM
+
designate an ID.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param algorithm: (optional) The algorithm to use for the HMAC key.
:return: A reference to the newly created object.
-
:rtype: HmacKey
"""
+
if algorithm not in [
+
ALGORITHM . HMAC_SHA1 ,
+
ALGORITHM . HMAC_SHA256 ,
+
ALGORITHM . HMAC_SHA384 ,
+
ALGORITHM . HMAC_SHA512 ,
+
]:
+
raise ValueError ( "Invalid algorithm" )
+
msg = struct . pack (
"!H %d sHQB" % LABEL_LENGTH ,
object_id ,
@@ -1046,28 +1079,39 @@
Source code for yubihsm.objects
[docs] @classmethod
def put (
cls ,
-
session ,
-
object_id ,
-
label ,
-
domains ,
-
capabilities ,
-
key ,
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
key : bytes ,
algorithm = ALGORITHM . HMAC_SHA256 ,
-
):
-
"""Import an HMAC key into the YubiHSM.
-
-
:param AuthSession session: The session to import via.
-
:param int object_id: The ID to set for the object. Set to 0 to let the
-
YubiHSM designate an ID.
-
:param str label: A text label to give the object.
-
:param int domains: The set of domains to assign the object to.
-
:param int capabilities: The set of capabilities to give the object.
-
:param bytes key: The raw key corresponding to the algorithm.
-
:param ALGORITHM algorithm: (optional) The algorithm to use for the HMAC
-
key.
+
) -> "HmacKey" :
+
"""Import an HMAC key into the YubiHSM.
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the YubiHSM
+
designate an ID.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param key: The raw key corresponding to the algorithm.
+
:param algorithm: (optional) The algorithm to use for the HMAC key.
:return: A reference to the newly created object.
-
:rtype: HmacKey
"""
+
+
if algorithm not in [
+
ALGORITHM . HMAC_SHA1 ,
+
ALGORITHM . HMAC_SHA256 ,
+
ALGORITHM . HMAC_SHA384 ,
+
ALGORITHM . HMAC_SHA512 ,
+
]:
+
raise ValueError ( "Invalid algorithm" )
+
+
if len ( key ) > algorithm . to_key_size ():
+
# Hash key using corresponding hash algorithm
+
key = _calc_hash ( key , algorithm . to_hash_algorithm ())
+
msg = (
struct . pack (
"!H %d sHQB" % LABEL_LENGTH ,
@@ -1081,31 +1125,29 @@
Source code for yubihsm.objects
)
return cls . _from_command ( session , COMMAND . PUT_HMAC_KEY , msg )
-
[docs] def sign_hmac ( self , data ):
-
"""Calculate the HMAC signature of the given data.
+
[docs] def sign_hmac ( self , data : bytes ) -> bytes :
+
"""Calculate the HMAC signature of the given data.
-
:param bytes data: The data to sign.
+
:param data: The data to sign.
:return: The signature.
-
:rtype: bytes
"""
msg = struct . pack ( "!H" , self . id ) + data
return self . session . send_secure_cmd ( COMMAND . SIGN_HMAC , msg )
-
[docs] def verify_hmac ( self , signature , data ):
-
"""
+
[docs] def verify_hmac ( self , signature : bytes , data : bytes ) -> bool :
+
"""
Verify an HMAC signature.
-
:param bytes signature: The signature to verify.
-
:param bytes data: The data to verify the signature against.
+
:param signature: The signature to verify.
+
:param data: The data to verify the signature against.
:return: True if verification succeeded, False if not.
-
:rtype: bool
"""
msg = struct . pack ( "!H" , self . id ) + signature + data
return self . session . send_secure_cmd ( COMMAND . VERIFY_HMAC , msg ) == b " \1 "
[docs] class Template ( YhsmObject ):
-
"""Binary template used to validate SSH certificate requests.
+
"""Binary template used to validate SSH certificate requests.
Supported algorithms:
- :class:`~yubihsm.defs.ALGORITHM.TEMPLATE_SSH`
@@ -1114,19 +1156,27 @@
Source code for yubihsm.objects
object_type = OBJECT . TEMPLATE
[docs] @classmethod
-
def put ( cls , session , object_id , label , domains , capabilities , algorithm , data ):
-
"""Import a Template into the YubiHSM.
-
-
:param AuthSession session: The session to import via.
-
:param int object_id: The ID to set for the object. Set to 0 to let the
+
def put (
+
cls ,
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
algorithm : ALGORITHM ,
+
data : bytes ,
+
) -> "Template" :
+
"""Import a Template into the YubiHSM.
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the
YubiHSM designate an ID.
-
:param str label: A text label to give the object.
-
:param int domains: The set of domains to assign the object to.
-
:param int capabilities: The set of capabilities to give the object.
-
:param ALGORITHM algorithm: The algorithm to use for the template.
-
:param bytes data: The template data.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param algorithm: The algorithm to use for the template.
+
:param data: The template data.
:return: A reference to the newly created object.
-
:rtype: Template
"""
msg = struct . pack (
"!H %d sHQB" % LABEL_LENGTH ,
@@ -1139,34 +1189,32 @@
Source code for yubihsm.objects
msg += data
return cls . _from_command ( session , COMMAND . PUT_TEMPLATE , msg )
-
[docs] def get ( self ):
-
"""Read a Template from the YubiHSM.
+
[docs] def get ( self ) -> bytes :
+
"""Read a Template from the YubiHSM.
:return: The template data.
-
:rtype: bytes
"""
msg = struct . pack ( "!H" , self . id )
return self . session . send_secure_cmd ( COMMAND . GET_TEMPLATE , msg )
-
[docs] class OtpData (
-
namedtuple (
-
"OtpData" , [ "use_counter" , "session_counter" , "timestamp_high" , "timestamp_low" ]
-
)
-
):
-
"""Decrypted OTP counter values.
+
[docs] class OtpData ( NamedTuple ):
+
"""Decrypted OTP counter values.
-
:param int use_counter: 16 bit counter incremented on each power cycle.
-
:param int session_counter: 8 bit counter incremented on each touch.
-
:param int timestamp_high: 8 bit high part of the timestamp.
-
:param int timestamp_low: 16 bit low part of the timestamp.
+
:param use_counter: 16 bit counter incremented on each power cycle.
+
:param session_counter: 8 bit counter incremented on each touch.
+
:param timestamp_high: 8 bit high part of the timestamp.
+
:param timestamp_low: 16 bit low part of the timestamp.
"""
-
__slots__ = ()
+
use_counter : int
+
session_counter : int
+
timestamp_high : int
+
timestamp_low : int
[docs] class OtpAeadKey ( YhsmObject ):
-
"""Used to decrypt and use a Yubico OTP AEAD for OTP decryption.
+
"""Used to decrypt and use a Yubico OTP AEAD for OTP decryption.
Supported algorithms:
- :class:`~yubihsm.defs.ALGORITHM.AES128_YUBICO_OTP`
@@ -1178,23 +1226,43 @@
Source code for yubihsm.objects
[docs] @classmethod
def put (
-
cls , session , object_id , label , domains , capabilities , algorithm , nonce_id , key
-
):
-
"""Import an OTP AEAD key into the YubiHSM.
-
-
:param AuthSession session: The session to import via.
-
:param int object_id: The ID to set for the object. Set to 0 to let the
+
cls ,
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
algorithm : ALGORITHM ,
+
nonce_id : int ,
+
key : bytes ,
+
) -> "OtpAeadKey" :
+
"""Import an OTP AEAD key into the YubiHSM.
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the
YubiHSM designate an ID.
-
:param str label: A text label to give the object.
-
:param int domains: The set of domains to assign the object to.
-
:param int capabilities: The set of capabilities to give the object.
-
:param ALGORITHM algorithm: The algorithm to use for the key.
-
:param int nonce_id: The nonce ID used for AEADs.
-
:param bytes key: The key to import, corresponding to the algorithm.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param algorithm: The algorithm to use for the key.
+
:param nonce_id: The nonce ID used for AEADs.
+
:param key: The key to import, corresponding to the algorithm.
:return: A reference to the newly created object.
-
:rtype: AsymmetricKey
"""
+
if algorithm not in [
+
ALGORITHM . AES128_YUBICO_OTP ,
+
ALGORITHM . AES192_YUBICO_OTP ,
+
ALGORITHM . AES256_YUBICO_OTP ,
+
]:
+
raise ValueError ( "Invalid algorithm" )
+
+
if len ( key ) != algorithm . to_key_size ():
+
raise ValueError (
+
"Key length ( %d ) not matching algorithm ( %s )"
+
% ( len ( key ), algorithm . name )
+
)
+
msg = struct . pack (
"!H %d sHQB" % LABEL_LENGTH ,
object_id ,
@@ -1210,20 +1278,35 @@
Source code for yubihsm.objects
[docs] @classmethod
def generate (
-
cls , session , object_id , label , domains , capabilities , algorithm , nonce_id
-
):
-
"""Generate a new OTP AEAD key in the YubiHSM.
-
-
:param AuthSession session: The session to import via.
-
:param int object_id: The ID to set for the object. Set to 0 to let the
+
cls ,
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
algorithm : ALGORITHM ,
+
nonce_id : int ,
+
) -> "OtpAeadKey" :
+
"""Generate a new OTP AEAD key in the YubiHSM.
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the
YubiHSM designate an ID.
-
:param str label: A text label to give the object.
-
:param int domains: The set of domains to assign the object to.
-
:param int capabilities: The set of capabilities to give the object.
-
:param ALGORITHM algorithm: The algorithm to use for the key.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param algorithm: The algorithm to use for the key.
+
:param nonce_id: The nonce ID used for AEADs.
:return: A reference to the newly created object.
-
:rtype: OtpAeadKey
"""
+
+
if algorithm not in [
+
ALGORITHM . AES128_YUBICO_OTP ,
+
ALGORITHM . AES192_YUBICO_OTP ,
+
ALGORITHM . AES256_YUBICO_OTP ,
+
]:
+
raise ValueError ( "Invalid algorithm" )
+
msg = struct . pack (
"!H %d sHQBL" % LABEL_LENGTH ,
object_id ,
@@ -1235,91 +1318,256 @@
Source code for yubihsm.objects
)
return cls . _from_command ( session , COMMAND . GENERATE_OTP_AEAD_KEY , msg )
-
[docs] def create_otp_aead ( self , key , identity ):
-
"""Create a new Yubico OTP credential AEAD.
+
[docs] def create_otp_aead ( self , key : bytes , identity : bytes ) -> bytes :
+
"""Create a new Yubico OTP credential AEAD.
-
:param bytes key: 16 byte AES key for the credential.
-
:param bytes identity: 6 byte private ID for the credential.
+
:param key: 16 byte AES key for the credential.
+
:param identity: 6 byte private ID for the credential.
:return: A new AEAD.
-
:rtype: bytes
"""
msg = struct . pack ( "!H" , self . id ) + key + identity
return self . session . send_secure_cmd ( COMMAND . CREATE_OTP_AEAD , msg )
-
[docs] def randomize_otp_aead ( self ):
-
"""Create a new Yubico OTP credential AEAD using random data.
+
[docs] def randomize_otp_aead ( self ) -> bytes :
+
"""Create a new Yubico OTP credential AEAD using random data.
:return: A new AEAD.
-
:rtype: bytes
"""
msg = struct . pack ( "!H" , self . id )
return self . session . send_secure_cmd ( COMMAND . RANDOMIZE_OTP_AEAD , msg )
-
[docs] def decrypt_otp ( self , aead , otp ):
-
"""Decrypt a Yubico OTP using an AEAD.
+
[docs] def decrypt_otp ( self , aead : bytes , otp : bytes ) -> OtpData :
+
"""Decrypt a Yubico OTP using an AEAD.
-
:param bytes aead: The AEAD containing encrypted credential data.
-
:param bytes otp: The 16 byte encrypted OTP payload to decrypt.
+
:param aead: The AEAD containing encrypted credential data.
+
:param otp: The 16 byte encrypted OTP payload to decrypt.
:return: The decrypted OTP data.
-
:rtype: OtpData
"""
msg = struct . pack ( "!H" , self . id ) + aead + otp
resp = self . session . send_secure_cmd ( COMMAND . DECRYPT_OTP , msg )
return OtpData ( * struct . unpack ( "<HBBH" , resp ))
-
[docs] def rewrap_otp_aead ( self , new_key_id , aead ):
-
"""Decrypt and re-encrypt an AEAD from one key to another.
+
[docs] def rewrap_otp_aead ( self , new_key_id : int , aead : bytes ) -> bytes :
+
"""Decrypt and re-encrypt an AEAD from one key to another.
-
:param int new_key_id: The ID of the OtpAeadKey to wrap to.
-
:param bytes aead: The AEAD to re-wrap.
+
:param new_key_id: The ID of the OtpAeadKey to wrap to.
+
:param aead: The AEAD to re-wrap.
:return: The new AEAD.
-
:rtype: bytes
"""
msg = struct . pack ( "!HH" , self . id , new_key_id ) + aead
return self . session . send_secure_cmd ( COMMAND . REWRAP_OTP_AEAD , msg )
+
+
+
[docs] class SymmetricKey ( YhsmObject ):
+
"""Used to encrypt/decrypt data using a symmetric key.
+
+
Supported algorithms:
+
- :class:`~yubihsm.defs.ALGORITHM.AES128`
+
- :class:`~yubihsm.defs.ALGORITHM.AES192`
+
- :class:`~yubihsm.defs.ALGORITHM.AES256`
+
"""
+
+
object_type = OBJECT . SYMMETRIC_KEY
+
+
[docs] @classmethod
+
def put (
+
cls ,
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
algorithm : ALGORITHM ,
+
key : bytes ,
+
) -> "SymmetricKey" :
+
"""Import a symmetric key into the YubiHSM.
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the
+
YubiHSM designate an ID.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param algorithm: The algorithm to use for the symmetric key.
+
:param key: The raw encryption key corresponding to the algorithm.
+
:return: A reference to the newly created object.
+
"""
+
+
if algorithm not in [ ALGORITHM . AES128 , ALGORITHM . AES192 , ALGORITHM . AES256 ]:
+
raise ValueError ( "Invalid algorithm" )
+
+
if len ( key ) != algorithm . to_key_size ():
+
raise ValueError (
+
"Key length ( %d ) not matching algorithm ( %s )"
+
% ( len ( key ), algorithm . name )
+
)
+
+
msg = struct . pack (
+
"!H %d sHQB" % LABEL_LENGTH ,
+
object_id ,
+
_label_pack ( label ),
+
domains ,
+
capabilities ,
+
algorithm ,
+
)
+
msg += key
+
+
return cls . _from_command ( session , COMMAND . PUT_SYMMETRIC_KEY , msg )
+
+
[docs] @classmethod
+
def generate (
+
cls ,
+
session : "core.AuthSession" ,
+
object_id : int ,
+
label : str ,
+
domains : int ,
+
capabilities : CAPABILITY ,
+
algorithm : ALGORITHM ,
+
) -> "SymmetricKey" :
+
"""Generate a new symmetric key in the YubiHSM.
+
+
:param session: The session to import via.
+
:param object_id: The ID to set for the object. Set to 0 to let the YubiHSM
+
designate an ID.
+
:param label: A text label to give the object.
+
:param domains: The set of domains to assign the object to.
+
:param capabilities: The set of capabilities to give the object.
+
:param algorithm: The algorithm to use for the symmetric key.
+
:return: A reference to the newly created object.
+
+
"""
+
+
if algorithm not in [ ALGORITHM . AES128 , ALGORITHM . AES192 , ALGORITHM . AES256 ]:
+
raise ValueError ( "Invalid algorithm" )
+
+
msg = struct . pack (
+
"!H %d sHQB" % LABEL_LENGTH ,
+
object_id ,
+
_label_pack ( label ),
+
domains ,
+
capabilities ,
+
algorithm ,
+
)
+
return cls . _from_command ( session , COMMAND . GENERATE_SYMMETRIC_KEY , msg )
+
+
def _chain_ecb ( self , cmd : COMMAND , data : bytes ) -> bytes :
+
if len ( data ) % AES_BLOCK_SIZE != 0 :
+
raise ValueError ( "Data is not a multiple of %d bytes" % AES_BLOCK_SIZE )
+
+
chunk_size = MAX_AES_PAYLOAD_SIZE // AES_BLOCK_SIZE * AES_BLOCK_SIZE
+
+
out = b ""
+
rem = data
+
+
while rem :
+
if len ( rem ) <= chunk_size :
+
chunk_in = rem
+
rem = b ""
+
else :
+
chunk_in = rem [: chunk_size ]
+
rem = rem [ chunk_size :]
+
+
msg = struct . pack ( "!H" , self . id ) + chunk_in
+
chunk_out = self . session . send_secure_cmd ( cmd , msg )
+
+
out += chunk_out
+
+
return out
+
+
def _chain_cbc ( self , cmd : COMMAND , iv : bytes , data : bytes ) -> bytes :
+
if len ( iv ) != AES_BLOCK_SIZE :
+
raise ValueError ( "IV is not 16 bytes" )
+
if len ( data ) % AES_BLOCK_SIZE != 0 :
+
raise ValueError ( "Data is not a multiple of %d bytes" % AES_BLOCK_SIZE )
+
+
chunk_size = ( MAX_AES_PAYLOAD_SIZE - len ( iv )) // AES_BLOCK_SIZE * AES_BLOCK_SIZE
+
+
out = b ""
+
rem = data
+
+
while rem :
+
if len ( rem ) <= chunk_size :
+
chunk_in = rem
+
rem = b ""
+
else :
+
chunk_in = rem [: chunk_size ]
+
rem = rem [ chunk_size :]
+
+
msg = struct . pack ( "!H" , self . id ) + iv + chunk_in
+
chunk_out = self . session . send_secure_cmd ( cmd , msg )
+
out += chunk_out
+
iv = (
+
out [ - AES_BLOCK_SIZE :]
+
if cmd == COMMAND . ENCRYPT_CBC
+
else chunk_in [ - AES_BLOCK_SIZE :]
+
)
+
+
return out
+
+
[docs] def encrypt_ecb ( self , data : bytes ) -> bytes :
+
"""Encrypt data in ECB mode.
+
+
:param data: The data to encrypt.
+
:return: The encrypted data.
+
"""
+
+
return self . _chain_ecb ( COMMAND . ENCRYPT_ECB , data )
+
+
[docs] def decrypt_ecb ( self , data : bytes ) -> bytes :
+
"""Decrypt data in ECB mode.
+
+
:param data: The data to decrypt.
+
:return: The decrypted data.
+
"""
+
+
return self . _chain_ecb ( COMMAND . DECRYPT_ECB , data )
+
+
[docs] def encrypt_cbc ( self , iv : bytes , data : bytes ) -> bytes :
+
"""Encrypt data in CBC mode.
+
+
:param iv: The initialization vector.
+
:param data: The data to encrypt.
+
:return: The encrypted data.
+
"""
+
+
return self . _chain_cbc ( COMMAND . ENCRYPT_CBC , iv , data )
+
+
[docs] def decrypt_cbc ( self , iv : bytes , data : bytes ) -> bytes :
+
"""Decrypt data in CBC mode.
+
+
:param iv: The initialization vector.
+
:param data: The data to decrypt.
+
:return: The decrypted data.
+
"""
+
+
return self . _chain_cbc ( COMMAND . DECRYPT_CBC , iv , data )
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/_modules/yubihsm/utils.html b/static/python-yubihsm/API_Documentation/_modules/yubihsm/utils.html
index b1a4e4bb5..9c65f902a 100644
--- a/static/python-yubihsm/API_Documentation/_modules/yubihsm/utils.html
+++ b/static/python-yubihsm/API_Documentation/_modules/yubihsm/utils.html
@@ -1,158 +1,74 @@
-
-
-
-
- yubihsm.utils — python-yubihsm 2.1.0 documentation
-
-
-
-
-
-
-
-
+ yubihsm.utils — python-yubihsm 3.0.0.dev0 documentation
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
-
-
-
-
-
-
+
python-yubihsm
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
Source code for yubihsm.utils
# Copyright 2016-2018 Yubico AB
#
@@ -170,82 +86,55 @@ Source code for yubihsm.utils
"""Various utility functions used throughout the library."""
-
-from __future__ import absolute_import , division
-
-import six
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
-from binascii import b2a_hex
-
+from typing import Tuple
-[docs] def int_from_bytes ( value , byteorder = "big" ):
-
if byteorder != "big" :
-
raise ValueError ( "byteorder must be big" )
-
return int ( b2a_hex ( value ), 16 )
-
-[docs] def password_to_key ( password ):
-
"""Derive keys for establishing a YubiHSM session from a password.
+
[docs] def password_to_key ( password : str ) -> Tuple [ bytes , bytes ]:
+
"""Derive keys for establishing a YubiHSM session from a password.
:return: A tuple containing the encryption key, and MAC key.
-
:rtype: tuple[bytes, bytes]
"""
-
if isinstance ( password , six . text_type ):
-
password = password . encode ( "utf8" )
+
pw_bytes = password . encode ()
+
key = PBKDF2HMAC (
algorithm = hashes . SHA256 (),
length = 32 ,
salt = b "Yubico" ,
iterations = 10000 ,
backend = default_backend (),
-
) . derive ( password )
+
) . derive ( pw_bytes )
key_enc , key_mac = key [: 16 ], key [ 16 :]
return key_enc , key_mac
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/_sources/index.rst.txt b/static/python-yubihsm/API_Documentation/_sources/index.rst.txt
index 609a4f480..676d7831d 100644
--- a/static/python-yubihsm/API_Documentation/_sources/index.rst.txt
+++ b/static/python-yubihsm/API_Documentation/_sources/index.rst.txt
@@ -9,7 +9,7 @@ Welcome to python-yubihsm's documentation!
.. toctree::
:maxdepth: 2
:caption: Contents:
-
+
Indices and tables
==================
diff --git a/static/python-yubihsm/API_Documentation/_sources/rst/yubihsm.backends.rst.txt b/static/python-yubihsm/API_Documentation/_sources/rst/yubihsm.backends.rst.txt
new file mode 100644
index 000000000..117563f7b
--- /dev/null
+++ b/static/python-yubihsm/API_Documentation/_sources/rst/yubihsm.backends.rst.txt
@@ -0,0 +1,29 @@
+yubihsm.backends package
+========================
+
+Submodules
+----------
+
+yubihsm.backends.http module
+----------------------------
+
+.. automodule:: yubihsm.backends.http
+ :members:
+ :undoc-members:
+ :show-inheritance:
+
+yubihsm.backends.usb module
+---------------------------
+
+.. automodule:: yubihsm.backends.usb
+ :members:
+ :undoc-members:
+ :show-inheritance:
+
+Module contents
+---------------
+
+.. automodule:: yubihsm.backends
+ :members:
+ :undoc-members:
+ :show-inheritance:
diff --git a/static/python-yubihsm/API_Documentation/_sources/rst/yubihsm.rst.txt b/static/python-yubihsm/API_Documentation/_sources/rst/yubihsm.rst.txt
index d7532ec26..d8ef1ada9 100644
--- a/static/python-yubihsm/API_Documentation/_sources/rst/yubihsm.rst.txt
+++ b/static/python-yubihsm/API_Documentation/_sources/rst/yubihsm.rst.txt
@@ -5,8 +5,8 @@ Subpackages
-----------
.. toctree::
-
- yubihsm.backends
+
+ yubihsm.backends
Submodules
----------
@@ -27,14 +27,6 @@ yubihsm.defs module
:undoc-members:
:show-inheritance:
-yubihsm.eddsa module
---------------------
-
-.. automodule:: yubihsm.eddsa
- :members:
- :undoc-members:
- :show-inheritance:
-
yubihsm.exceptions module
-------------------------
@@ -67,4 +59,4 @@ Module contents
.. automodule:: yubihsm
:members:
:undoc-members:
- :show-inheritance:
+ :show-inheritance:
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/_static/_sphinx_javascript_frameworks_compat.js b/static/python-yubihsm/API_Documentation/_static/_sphinx_javascript_frameworks_compat.js
new file mode 100644
index 000000000..81415803e
--- /dev/null
+++ b/static/python-yubihsm/API_Documentation/_static/_sphinx_javascript_frameworks_compat.js
@@ -0,0 +1,123 @@
+/* Compatability shim for jQuery and underscores.js.
+ *
+ * Copyright Sphinx contributors
+ * Released under the two clause BSD licence
+ */
+
+/**
+ * small helper function to urldecode strings
+ *
+ * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
+ */
+jQuery.urldecode = function(x) {
+ if (!x) {
+ return x
+ }
+ return decodeURIComponent(x.replace(/\+/g, ' '));
+};
+
+/**
+ * small helper function to urlencode strings
+ */
+jQuery.urlencode = encodeURIComponent;
+
+/**
+ * This function returns the parsed url parameters of the
+ * current request. Multiple values per key are supported,
+ * it will always return arrays of strings for the value parts.
+ */
+jQuery.getQueryParameters = function(s) {
+ if (typeof s === 'undefined')
+ s = document.location.search;
+ var parts = s.substr(s.indexOf('?') + 1).split('&');
+ var result = {};
+ for (var i = 0; i < parts.length; i++) {
+ var tmp = parts[i].split('=', 2);
+ var key = jQuery.urldecode(tmp[0]);
+ var value = jQuery.urldecode(tmp[1]);
+ if (key in result)
+ result[key].push(value);
+ else
+ result[key] = [value];
+ }
+ return result;
+};
+
+/**
+ * highlight a given string on a jquery object by wrapping it in
+ * span elements with the given class name.
+ */
+jQuery.fn.highlightText = function(text, className) {
+ function highlight(node, addItems) {
+ if (node.nodeType === 3) {
+ var val = node.nodeValue;
+ var pos = val.toLowerCase().indexOf(text);
+ if (pos >= 0 &&
+ !jQuery(node.parentNode).hasClass(className) &&
+ !jQuery(node.parentNode).hasClass("nohighlight")) {
+ var span;
+ var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg");
+ if (isInSVG) {
+ span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
+ } else {
+ span = document.createElement("span");
+ span.className = className;
+ }
+ span.appendChild(document.createTextNode(val.substr(pos, text.length)));
+ node.parentNode.insertBefore(span, node.parentNode.insertBefore(
+ document.createTextNode(val.substr(pos + text.length)),
+ node.nextSibling));
+ node.nodeValue = val.substr(0, pos);
+ if (isInSVG) {
+ var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
+ var bbox = node.parentElement.getBBox();
+ rect.x.baseVal.value = bbox.x;
+ rect.y.baseVal.value = bbox.y;
+ rect.width.baseVal.value = bbox.width;
+ rect.height.baseVal.value = bbox.height;
+ rect.setAttribute('class', className);
+ addItems.push({
+ "parent": node.parentNode,
+ "target": rect});
+ }
+ }
+ }
+ else if (!jQuery(node).is("button, select, textarea")) {
+ jQuery.each(node.childNodes, function() {
+ highlight(this, addItems);
+ });
+ }
+ }
+ var addItems = [];
+ var result = this.each(function() {
+ highlight(this, addItems);
+ });
+ for (var i = 0; i < addItems.length; ++i) {
+ jQuery(addItems[i].parent).before(addItems[i].target);
+ }
+ return result;
+};
+
+/*
+ * backward compatibility for jQuery.browser
+ * This will be supported until firefox bug is fixed.
+ */
+if (!jQuery.browser) {
+ jQuery.uaMatch = function(ua) {
+ ua = ua.toLowerCase();
+
+ var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
+ /(webkit)[ \/]([\w.]+)/.exec(ua) ||
+ /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
+ /(msie) ([\w.]+)/.exec(ua) ||
+ ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
+ [];
+
+ return {
+ browser: match[ 1 ] || "",
+ version: match[ 2 ] || "0"
+ };
+ };
+ jQuery.browser = {};
+ jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
+}
diff --git a/static/python-yubihsm/API_Documentation/_static/basic.css b/static/python-yubihsm/API_Documentation/_static/basic.css
index b3bdc0040..cfc60b86c 100644
--- a/static/python-yubihsm/API_Documentation/_static/basic.css
+++ b/static/python-yubihsm/API_Documentation/_static/basic.css
@@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- basic theme.
*
- * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
@@ -130,7 +130,7 @@ ul.search li a {
font-weight: bold;
}
-ul.search li div.context {
+ul.search li p.context {
color: #888;
margin: 2px 0 0 30px;
text-align: left;
@@ -222,7 +222,7 @@ table.modindextable td {
/* -- general body styles --------------------------------------------------- */
div.body {
- min-width: 450px;
+ min-width: 360px;
max-width: 800px;
}
@@ -237,16 +237,6 @@ a.headerlink {
visibility: hidden;
}
-a.brackets:before,
-span.brackets > a:before{
- content: "[";
-}
-
-a.brackets:after,
-span.brackets > a:after {
- content: "]";
-}
-
h1:hover > a.headerlink,
h2:hover > a.headerlink,
h3:hover > a.headerlink,
@@ -335,12 +325,16 @@ p.sidebar-title {
font-weight: bold;
}
+nav.contents,
+aside.topic,
div.admonition, div.topic, blockquote {
clear: left;
}
/* -- topics ---------------------------------------------------------------- */
+nav.contents,
+aside.topic,
div.topic {
border: 1px solid #ccc;
padding: 7px;
@@ -379,6 +373,8 @@ div.body p.centered {
div.sidebar > :last-child,
aside.sidebar > :last-child,
+nav.contents > :last-child,
+aside.topic > :last-child,
div.topic > :last-child,
div.admonition > :last-child {
margin-bottom: 0;
@@ -386,6 +382,8 @@ div.admonition > :last-child {
div.sidebar::after,
aside.sidebar::after,
+nav.contents::after,
+aside.topic::after,
div.topic::after,
div.admonition::after,
blockquote::after {
@@ -428,10 +426,6 @@ table.docutils td, table.docutils th {
border-bottom: 1px solid #aaa;
}
-table.footnote td, table.footnote th {
- border: 0 !important;
-}
-
th {
text-align: left;
padding-right: 5px;
@@ -508,6 +502,63 @@ table.hlist td {
vertical-align: top;
}
+/* -- object description styles --------------------------------------------- */
+
+.sig {
+ font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
+}
+
+.sig-name, code.descname {
+ background-color: transparent;
+ font-weight: bold;
+}
+
+.sig-name {
+ font-size: 1.1em;
+}
+
+code.descname {
+ font-size: 1.2em;
+}
+
+.sig-prename, code.descclassname {
+ background-color: transparent;
+}
+
+.optional {
+ font-size: 1.3em;
+}
+
+.sig-paren {
+ font-size: larger;
+}
+
+.sig-param.n {
+ font-style: italic;
+}
+
+/* C++ specific styling */
+
+.sig-inline.c-texpr,
+.sig-inline.cpp-texpr {
+ font-family: unset;
+}
+
+.sig.c .k, .sig.c .kt,
+.sig.cpp .k, .sig.cpp .kt {
+ color: #0033B3;
+}
+
+.sig.c .m,
+.sig.cpp .m {
+ color: #1750EB;
+}
+
+.sig.c .s, .sig.c .sc,
+.sig.cpp .s, .sig.cpp .sc {
+ color: #067D17;
+}
+
/* -- other body styles ----------------------------------------------------- */
@@ -558,19 +609,26 @@ ul.simple p {
margin-bottom: 0;
}
-dl.footnote > dt,
-dl.citation > dt {
+aside.footnote > span,
+div.citation > span {
float: left;
- margin-right: 0.5em;
}
-
-dl.footnote > dd,
-dl.citation > dd {
+aside.footnote > span:last-of-type,
+div.citation > span:last-of-type {
+ padding-right: 0.5em;
+}
+aside.footnote > p {
+ margin-left: 2em;
+}
+div.citation > p {
+ margin-left: 4em;
+}
+aside.footnote > p:last-of-type,
+div.citation > p:last-of-type {
margin-bottom: 0em;
}
-
-dl.footnote > dd:after,
-dl.citation > dd:after {
+aside.footnote > p:last-of-type:after,
+div.citation > p:last-of-type:after {
content: "";
clear: both;
}
@@ -587,10 +645,6 @@ dl.field-list > dt {
padding-right: 5px;
}
-dl.field-list > dt:after {
- content: ":";
-}
-
dl.field-list > dd {
padding-left: 0.5em;
margin-top: 0em;
@@ -616,6 +670,16 @@ dd {
margin-left: 30px;
}
+.sig dd {
+ margin-top: 0px;
+ margin-bottom: 0px;
+}
+
+.sig dl {
+ margin-top: 0px;
+ margin-bottom: 0px;
+}
+
dl > dd:last-child,
dl > dd:last-child > :last-child {
margin-bottom: 0;
@@ -634,14 +698,6 @@ dl.glossary dt {
font-size: 1.1em;
}
-.optional {
- font-size: 1.3em;
-}
-
-.sig-paren {
- font-size: larger;
-}
-
.versionmodified {
font-style: italic;
}
@@ -682,8 +738,9 @@ dl.glossary dt {
.classifier:before {
font-style: normal;
- margin: 0.5em;
+ margin: 0 0.5em;
content: ":";
+ display: inline-block;
}
abbr, acronym {
@@ -691,6 +748,14 @@ abbr, acronym {
cursor: help;
}
+.translated {
+ background-color: rgba(207, 255, 207, 0.2)
+}
+
+.untranslated {
+ background-color: rgba(255, 207, 207, 0.2)
+}
+
/* -- code displays --------------------------------------------------------- */
pre {
@@ -707,6 +772,7 @@ span.pre {
-ms-hyphens: none;
-webkit-hyphens: none;
hyphens: none;
+ white-space: nowrap;
}
div[class*="highlight-"] {
@@ -770,8 +836,12 @@ div.code-block-caption code {
table.highlighttable td.linenos,
span.linenos,
-div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
- user-select: none;
+div.highlight span.gp { /* gp: Generic.Prompt */
+ user-select: none;
+ -webkit-user-select: text; /* Safari fallback only */
+ -webkit-user-select: none; /* Chrome/Safari */
+ -moz-user-select: none; /* Firefox */
+ -ms-user-select: none; /* IE10+ */
}
div.code-block-caption span.caption-number {
@@ -786,16 +856,6 @@ div.literal-block-wrapper {
margin: 1em 0;
}
-code.descname {
- background-color: transparent;
- font-weight: bold;
- font-size: 1.2em;
-}
-
-code.descclassname {
- background-color: transparent;
-}
-
code.xref, a code {
background-color: transparent;
font-weight: bold;
diff --git a/static/python-yubihsm/API_Documentation/_static/css/badge_only.css b/static/python-yubihsm/API_Documentation/_static/css/badge_only.css
index e380325bc..c718cee44 100644
--- a/static/python-yubihsm/API_Documentation/_static/css/badge_only.css
+++ b/static/python-yubihsm/API_Documentation/_static/css/badge_only.css
@@ -1 +1 @@
-.fa:before{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-style:normal;font-weight:400;src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713?#iefix) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e) format("woff2"),url(fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad) format("woff"),url(fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9) format("truetype"),url(fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde#FontAwesome) format("svg")}.fa:before{font-family:FontAwesome;font-style:normal;font-weight:400;line-height:1}.fa:before,a .fa{text-decoration:inherit}.fa:before,a .fa,li .fa{display:inline-block}li .fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-.8em}ul.fas li .fa{width:.8em}ul.fas li .fa-large:before{vertical-align:baseline}.fa-book:before,.icon-book:before{content:"\f02d"}.fa-caret-down:before,.icon-caret-down:before{content:"\f0d7"}.fa-caret-up:before,.icon-caret-up:before{content:"\f0d8"}.fa-caret-left:before,.icon-caret-left:before{content:"\f0d9"}.fa-caret-right:before,.icon-caret-right:before{content:"\f0da"}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;z-index:400}.rst-versions a{color:#2980b9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27ae60}.rst-versions .rst-current-version:after{clear:both;content:"";display:block}.rst-versions .rst-current-version .fa{color:#fcfcfc}.rst-versions .rst-current-version .fa-book,.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#e74c3c;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#f1c40f;color:#000}.rst-versions.shift-up{height:auto;max-height:100%;overflow-y:scroll}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:grey;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:1px solid #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px;max-height:90%}.rst-versions.rst-badge .fa-book,.rst-versions.rst-badge .icon-book{float:none;line-height:30px}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book,.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge>.rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width:768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}}
\ No newline at end of file
+.clearfix{*zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-style:normal;font-weight:400;src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713?#iefix) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e) format("woff2"),url(fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad) format("woff"),url(fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9) format("truetype"),url(fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde#FontAwesome) format("svg")}.fa:before{font-family:FontAwesome;font-style:normal;font-weight:400;line-height:1}.fa:before,a .fa{text-decoration:inherit}.fa:before,a .fa,li .fa{display:inline-block}li .fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-.8em}ul.fas li .fa{width:.8em}ul.fas li .fa-large:before{vertical-align:baseline}.fa-book:before,.icon-book:before{content:"\f02d"}.fa-caret-down:before,.icon-caret-down:before{content:"\f0d7"}.fa-caret-up:before,.icon-caret-up:before{content:"\f0d8"}.fa-caret-left:before,.icon-caret-left:before{content:"\f0d9"}.fa-caret-right:before,.icon-caret-right:before{content:"\f0da"}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;z-index:400}.rst-versions a{color:#2980b9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27ae60}.rst-versions .rst-current-version:after{clear:both;content:"";display:block}.rst-versions .rst-current-version .fa{color:#fcfcfc}.rst-versions .rst-current-version .fa-book,.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#e74c3c;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#f1c40f;color:#000}.rst-versions.shift-up{height:auto;max-height:100%;overflow-y:scroll}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:grey;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:1px solid #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px;max-height:90%}.rst-versions.rst-badge .fa-book,.rst-versions.rst-badge .icon-book{float:none;line-height:30px}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book,.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge>.rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width:768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}}
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/_static/css/theme.css b/static/python-yubihsm/API_Documentation/_static/css/theme.css
index 8cd4f101a..19a446a0e 100644
--- a/static/python-yubihsm/API_Documentation/_static/css/theme.css
+++ b/static/python-yubihsm/API_Documentation/_static/css/theme.css
@@ -1,4 +1,4 @@
-html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden],audio:not([controls]){display:none}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}blockquote{margin:0}dfn{font-style:italic}ins{background:#ff9;text-decoration:none}ins,mark{color:#000}mark{background:#ff0;font-style:italic;font-weight:700}.rst-content code,.rst-content tt,code,kbd,pre,samp{font-family:monospace,serif;_font-family:courier new,monospace;font-size:1em}pre{white-space:pre}q{quotes:none}q:after,q:before{content:"";content:none}small{font-size:85%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}dl,ol,ul{margin:0;padding:0;list-style:none;list-style-image:none}li{list-style:none}dd{margin:0}img{border:0;-ms-interpolation-mode:bicubic;vertical-align:middle;max-width:100%}svg:not(:root){overflow:hidden}figure,form{margin:0}label{cursor:pointer}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button;*overflow:visible}button[disabled],input[disabled]{cursor:default}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}textarea{resize:vertical}table{border-collapse:collapse;border-spacing:0}td{vertical-align:top}.chromeframe{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}.ir{display:block;border:0;text-indent:-999em;overflow:hidden;background-color:transparent;background-repeat:no-repeat;text-align:left;direction:ltr;*line-height:0}.ir br{display:none}.hidden{display:none!important;visibility:hidden}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.relative{position:relative}big,small{font-size:100%}@media print{body,html,section{background:none!important}*{box-shadow:none!important;text-shadow:none!important;filter:none!important;-ms-filter:none!important}a,a:visited{text-decoration:underline}.ir a:after,a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}.rst-content .toctree-wrapper>p.caption,h2,h3,p{orphans:3;widows:3}.rst-content .toctree-wrapper>p.caption,h2,h3{page-break-after:avoid}}.btn,.fa:before,.icon:before,.rst-content .admonition,.rst-content .admonition-title:before,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .code-block-caption .headerlink:before,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning,.rst-content code.download span:first-child:before,.rst-content dl dt .headerlink:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content p.caption .headerlink:before,.rst-content table>caption .headerlink:before,.rst-content tt.download span:first-child:before,.wy-alert,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-menu-vertical li.current>a,.wy-menu-vertical li.current>a span.toctree-expand:before,.wy-menu-vertical li.on a,.wy-menu-vertical li.on a span.toctree-expand:before,.wy-menu-vertical li span.toctree-expand:before,.wy-nav-top a,.wy-side-nav-search .wy-dropdown>a,.wy-side-nav-search>a,input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}/*!
+html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden],audio:not([controls]){display:none}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}blockquote{margin:0}dfn{font-style:italic}ins{background:#ff9;text-decoration:none}ins,mark{color:#000}mark{background:#ff0;font-style:italic;font-weight:700}.rst-content code,.rst-content tt,code,kbd,pre,samp{font-family:monospace,serif;_font-family:courier new,monospace;font-size:1em}pre{white-space:pre}q{quotes:none}q:after,q:before{content:"";content:none}small{font-size:85%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}dl,ol,ul{margin:0;padding:0;list-style:none;list-style-image:none}li{list-style:none}dd{margin:0}img{border:0;-ms-interpolation-mode:bicubic;vertical-align:middle;max-width:100%}svg:not(:root){overflow:hidden}figure,form{margin:0}label{cursor:pointer}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button;*overflow:visible}button[disabled],input[disabled]{cursor:default}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}textarea{resize:vertical}table{border-collapse:collapse;border-spacing:0}td{vertical-align:top}.chromeframe{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}.ir{display:block;border:0;text-indent:-999em;overflow:hidden;background-color:transparent;background-repeat:no-repeat;text-align:left;direction:ltr;*line-height:0}.ir br{display:none}.hidden{display:none!important;visibility:hidden}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.relative{position:relative}big,small{font-size:100%}@media print{body,html,section{background:none!important}*{box-shadow:none!important;text-shadow:none!important;filter:none!important;-ms-filter:none!important}a,a:visited{text-decoration:underline}.ir a:after,a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}.rst-content .toctree-wrapper>p.caption,h2,h3,p{orphans:3;widows:3}.rst-content .toctree-wrapper>p.caption,h2,h3{page-break-after:avoid}}.btn,.fa:before,.icon:before,.rst-content .admonition,.rst-content .admonition-title:before,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .code-block-caption .headerlink:before,.rst-content .danger,.rst-content .eqno .headerlink:before,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning,.rst-content code.download span:first-child:before,.rst-content dl dt .headerlink:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content p.caption .headerlink:before,.rst-content p .headerlink:before,.rst-content table>caption .headerlink:before,.rst-content tt.download span:first-child:before,.wy-alert,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-menu-vertical li.current>a button.toctree-expand:before,.wy-menu-vertical li.on a button.toctree-expand:before,.wy-menu-vertical li button.toctree-expand:before,input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}/*!
* Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
- */@font-face{font-family:FontAwesome;src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713);src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713?#iefix&v=4.7.0) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e) format("woff2"),url(fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad) format("woff"),url(fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9) format("truetype"),url(fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa,.icon,.rst-content .admonition-title,.rst-content .code-block-caption .headerlink,.rst-content code.download span:first-child,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content table>caption .headerlink,.rst-content tt.download span:first-child,.wy-menu-vertical li.current>a span.toctree-expand,.wy-menu-vertical li.on a span.toctree-expand,.wy-menu-vertical li span.toctree-expand{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14286em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14286em;width:2.14286em;top:.14286em;text-align:center}.fa-li.fa-lg{left:-1.85714em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa-pull-left.icon,.fa.fa-pull-left,.rst-content .code-block-caption .fa-pull-left.headerlink,.rst-content .fa-pull-left.admonition-title,.rst-content code.download span.fa-pull-left:first-child,.rst-content dl dt .fa-pull-left.headerlink,.rst-content h1 .fa-pull-left.headerlink,.rst-content h2 .fa-pull-left.headerlink,.rst-content h3 .fa-pull-left.headerlink,.rst-content h4 .fa-pull-left.headerlink,.rst-content h5 .fa-pull-left.headerlink,.rst-content h6 .fa-pull-left.headerlink,.rst-content p.caption .fa-pull-left.headerlink,.rst-content table>caption .fa-pull-left.headerlink,.rst-content tt.download span.fa-pull-left:first-child,.wy-menu-vertical li.current>a span.fa-pull-left.toctree-expand,.wy-menu-vertical li.on a span.fa-pull-left.toctree-expand,.wy-menu-vertical li span.fa-pull-left.toctree-expand{margin-right:.3em}.fa-pull-right.icon,.fa.fa-pull-right,.rst-content .code-block-caption .fa-pull-right.headerlink,.rst-content .fa-pull-right.admonition-title,.rst-content code.download span.fa-pull-right:first-child,.rst-content dl dt .fa-pull-right.headerlink,.rst-content h1 .fa-pull-right.headerlink,.rst-content h2 .fa-pull-right.headerlink,.rst-content h3 .fa-pull-right.headerlink,.rst-content h4 .fa-pull-right.headerlink,.rst-content h5 .fa-pull-right.headerlink,.rst-content h6 .fa-pull-right.headerlink,.rst-content p.caption .fa-pull-right.headerlink,.rst-content table>caption .fa-pull-right.headerlink,.rst-content tt.download span.fa-pull-right:first-child,.wy-menu-vertical li.current>a span.fa-pull-right.toctree-expand,.wy-menu-vertical li.on a span.fa-pull-right.toctree-expand,.wy-menu-vertical li span.fa-pull-right.toctree-expand{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left,.pull-left.icon,.rst-content .code-block-caption .pull-left.headerlink,.rst-content .pull-left.admonition-title,.rst-content code.download span.pull-left:first-child,.rst-content dl dt .pull-left.headerlink,.rst-content h1 .pull-left.headerlink,.rst-content h2 .pull-left.headerlink,.rst-content h3 .pull-left.headerlink,.rst-content h4 .pull-left.headerlink,.rst-content h5 .pull-left.headerlink,.rst-content h6 .pull-left.headerlink,.rst-content p.caption .pull-left.headerlink,.rst-content table>caption .pull-left.headerlink,.rst-content tt.download span.pull-left:first-child,.wy-menu-vertical li.current>a span.pull-left.toctree-expand,.wy-menu-vertical li.on a span.pull-left.toctree-expand,.wy-menu-vertical li span.pull-left.toctree-expand{margin-right:.3em}.fa.pull-right,.pull-right.icon,.rst-content .code-block-caption .pull-right.headerlink,.rst-content .pull-right.admonition-title,.rst-content code.download span.pull-right:first-child,.rst-content dl dt .pull-right.headerlink,.rst-content h1 .pull-right.headerlink,.rst-content h2 .pull-right.headerlink,.rst-content h3 .pull-right.headerlink,.rst-content h4 .pull-right.headerlink,.rst-content h5 .pull-right.headerlink,.rst-content h6 .pull-right.headerlink,.rst-content p.caption .pull-right.headerlink,.rst-content table>caption .pull-right.headerlink,.rst-content tt.download span.pull-right:first-child,.wy-menu-vertical li.current>a span.pull-right.toctree-expand,.wy-menu-vertical li.on a span.pull-right.toctree-expand,.wy-menu-vertical li span.pull-right.toctree-expand{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scaleY(-1);-ms-transform:scaleY(-1);transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:""}.fa-music:before{content:""}.fa-search:before,.icon-search:before{content:""}.fa-envelope-o:before{content:""}.fa-heart:before{content:""}.fa-star:before{content:""}.fa-star-o:before{content:""}.fa-user:before{content:""}.fa-film:before{content:""}.fa-th-large:before{content:""}.fa-th:before{content:""}.fa-th-list:before{content:""}.fa-check:before{content:""}.fa-close:before,.fa-remove:before,.fa-times:before{content:""}.fa-search-plus:before{content:""}.fa-search-minus:before{content:""}.fa-power-off:before{content:""}.fa-signal:before{content:""}.fa-cog:before,.fa-gear:before{content:""}.fa-trash-o:before{content:""}.fa-home:before,.icon-home:before{content:""}.fa-file-o:before{content:""}.fa-clock-o:before{content:""}.fa-road:before{content:""}.fa-download:before,.rst-content code.download span:first-child:before,.rst-content tt.download span:first-child:before{content:""}.fa-arrow-circle-o-down:before{content:""}.fa-arrow-circle-o-up:before{content:""}.fa-inbox:before{content:""}.fa-play-circle-o:before{content:""}.fa-repeat:before,.fa-rotate-right:before{content:""}.fa-refresh:before{content:""}.fa-list-alt:before{content:""}.fa-lock:before{content:""}.fa-flag:before{content:""}.fa-headphones:before{content:""}.fa-volume-off:before{content:""}.fa-volume-down:before{content:""}.fa-volume-up:before{content:""}.fa-qrcode:before{content:""}.fa-barcode:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-book:before,.icon-book:before{content:""}.fa-bookmark:before{content:""}.fa-print:before{content:""}.fa-camera:before{content:""}.fa-font:before{content:""}.fa-bold:before{content:""}.fa-italic:before{content:""}.fa-text-height:before{content:""}.fa-text-width:before{content:""}.fa-align-left:before{content:""}.fa-align-center:before{content:""}.fa-align-right:before{content:""}.fa-align-justify:before{content:""}.fa-list:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-indent:before{content:""}.fa-video-camera:before{content:""}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:""}.fa-pencil:before{content:""}.fa-map-marker:before{content:""}.fa-adjust:before{content:""}.fa-tint:before{content:""}.fa-edit:before,.fa-pencil-square-o:before{content:""}.fa-share-square-o:before{content:""}.fa-check-square-o:before{content:""}.fa-arrows:before{content:""}.fa-step-backward:before{content:""}.fa-fast-backward:before{content:""}.fa-backward:before{content:""}.fa-play:before{content:""}.fa-pause:before{content:""}.fa-stop:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before{content:""}.fa-step-forward:before{content:""}.fa-eject:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-plus-circle:before{content:""}.fa-minus-circle:before{content:""}.fa-times-circle:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before{content:""}.fa-check-circle:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before{content:""}.fa-question-circle:before{content:""}.fa-info-circle:before{content:""}.fa-crosshairs:before{content:""}.fa-times-circle-o:before{content:""}.fa-check-circle-o:before{content:""}.fa-ban:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-down:before{content:""}.fa-mail-forward:before,.fa-share:before{content:""}.fa-expand:before{content:""}.fa-compress:before{content:""}.fa-plus:before{content:""}.fa-minus:before{content:""}.fa-asterisk:before{content:""}.fa-exclamation-circle:before,.rst-content .admonition-title:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before{content:""}.fa-gift:before{content:""}.fa-leaf:before{content:""}.fa-fire:before,.icon-fire:before{content:""}.fa-eye:before{content:""}.fa-eye-slash:before{content:""}.fa-exclamation-triangle:before,.fa-warning:before{content:""}.fa-plane:before{content:""}.fa-calendar:before{content:""}.fa-random:before{content:""}.fa-comment:before{content:""}.fa-magnet:before{content:""}.fa-chevron-up:before{content:""}.fa-chevron-down:before{content:""}.fa-retweet:before{content:""}.fa-shopping-cart:before{content:""}.fa-folder:before{content:""}.fa-folder-open:before{content:""}.fa-arrows-v:before{content:""}.fa-arrows-h:before{content:""}.fa-bar-chart-o:before,.fa-bar-chart:before{content:""}.fa-twitter-square:before{content:""}.fa-facebook-square:before{content:""}.fa-camera-retro:before{content:""}.fa-key:before{content:""}.fa-cogs:before,.fa-gears:before{content:""}.fa-comments:before{content:""}.fa-thumbs-o-up:before{content:""}.fa-thumbs-o-down:before{content:""}.fa-star-half:before{content:""}.fa-heart-o:before{content:""}.fa-sign-out:before{content:""}.fa-linkedin-square:before{content:""}.fa-thumb-tack:before{content:""}.fa-external-link:before{content:""}.fa-sign-in:before{content:""}.fa-trophy:before{content:""}.fa-github-square:before{content:""}.fa-upload:before{content:""}.fa-lemon-o:before{content:""}.fa-phone:before{content:""}.fa-square-o:before{content:""}.fa-bookmark-o:before{content:""}.fa-phone-square:before{content:""}.fa-twitter:before{content:""}.fa-facebook-f:before,.fa-facebook:before{content:""}.fa-github:before,.icon-github:before{content:""}.fa-unlock:before{content:""}.fa-credit-card:before{content:""}.fa-feed:before,.fa-rss:before{content:""}.fa-hdd-o:before{content:""}.fa-bullhorn:before{content:""}.fa-bell:before{content:""}.fa-certificate:before{content:""}.fa-hand-o-right:before{content:""}.fa-hand-o-left:before{content:""}.fa-hand-o-up:before{content:""}.fa-hand-o-down:before{content:""}.fa-arrow-circle-left:before,.icon-circle-arrow-left:before{content:""}.fa-arrow-circle-right:before,.icon-circle-arrow-right:before{content:""}.fa-arrow-circle-up:before{content:""}.fa-arrow-circle-down:before{content:""}.fa-globe:before{content:""}.fa-wrench:before{content:""}.fa-tasks:before{content:""}.fa-filter:before{content:""}.fa-briefcase:before{content:""}.fa-arrows-alt:before{content:""}.fa-group:before,.fa-users:before{content:""}.fa-chain:before,.fa-link:before,.icon-link:before{content:""}.fa-cloud:before{content:""}.fa-flask:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-copy:before,.fa-files-o:before{content:""}.fa-paperclip:before{content:""}.fa-floppy-o:before,.fa-save:before{content:""}.fa-square:before{content:""}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:""}.fa-list-ul:before{content:""}.fa-list-ol:before{content:""}.fa-strikethrough:before{content:""}.fa-underline:before{content:""}.fa-table:before{content:""}.fa-magic:before{content:""}.fa-truck:before{content:""}.fa-pinterest:before{content:""}.fa-pinterest-square:before{content:""}.fa-google-plus-square:before{content:""}.fa-google-plus:before{content:""}.fa-money:before{content:""}.fa-caret-down:before,.icon-caret-down:before,.wy-dropdown .caret:before{content:""}.fa-caret-up:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-columns:before{content:""}.fa-sort:before,.fa-unsorted:before{content:""}.fa-sort-desc:before,.fa-sort-down:before{content:""}.fa-sort-asc:before,.fa-sort-up:before{content:""}.fa-envelope:before{content:""}.fa-linkedin:before{content:""}.fa-rotate-left:before,.fa-undo:before{content:""}.fa-gavel:before,.fa-legal:before{content:""}.fa-dashboard:before,.fa-tachometer:before{content:""}.fa-comment-o:before{content:""}.fa-comments-o:before{content:""}.fa-bolt:before,.fa-flash:before{content:""}.fa-sitemap:before{content:""}.fa-umbrella:before{content:""}.fa-clipboard:before,.fa-paste:before{content:""}.fa-lightbulb-o:before{content:""}.fa-exchange:before{content:""}.fa-cloud-download:before{content:""}.fa-cloud-upload:before{content:""}.fa-user-md:before{content:""}.fa-stethoscope:before{content:""}.fa-suitcase:before{content:""}.fa-bell-o:before{content:""}.fa-coffee:before{content:""}.fa-cutlery:before{content:""}.fa-file-text-o:before{content:""}.fa-building-o:before{content:""}.fa-hospital-o:before{content:""}.fa-ambulance:before{content:""}.fa-medkit:before{content:""}.fa-fighter-jet:before{content:""}.fa-beer:before{content:""}.fa-h-square:before{content:""}.fa-plus-square:before{content:""}.fa-angle-double-left:before{content:""}.fa-angle-double-right:before{content:""}.fa-angle-double-up:before{content:""}.fa-angle-double-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-down:before{content:""}.fa-desktop:before{content:""}.fa-laptop:before{content:""}.fa-tablet:before{content:""}.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-circle-o:before{content:""}.fa-quote-left:before{content:""}.fa-quote-right:before{content:""}.fa-spinner:before{content:""}.fa-circle:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-github-alt:before{content:""}.fa-folder-o:before{content:""}.fa-folder-open-o:before{content:""}.fa-smile-o:before{content:""}.fa-frown-o:before{content:""}.fa-meh-o:before{content:""}.fa-gamepad:before{content:""}.fa-keyboard-o:before{content:""}.fa-flag-o:before{content:""}.fa-flag-checkered:before{content:""}.fa-terminal:before{content:""}.fa-code:before{content:""}.fa-mail-reply-all:before,.fa-reply-all:before{content:""}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:""}.fa-location-arrow:before{content:""}.fa-crop:before{content:""}.fa-code-fork:before{content:""}.fa-chain-broken:before,.fa-unlink:before{content:""}.fa-question:before{content:""}.fa-info:before{content:""}.fa-exclamation:before{content:""}.fa-superscript:before{content:""}.fa-subscript:before{content:""}.fa-eraser:before{content:""}.fa-puzzle-piece:before{content:""}.fa-microphone:before{content:""}.fa-microphone-slash:before{content:""}.fa-shield:before{content:""}.fa-calendar-o:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-rocket:before{content:""}.fa-maxcdn:before{content:""}.fa-chevron-circle-left:before{content:""}.fa-chevron-circle-right:before{content:""}.fa-chevron-circle-up:before{content:""}.fa-chevron-circle-down:before{content:""}.fa-html5:before{content:""}.fa-css3:before{content:""}.fa-anchor:before{content:""}.fa-unlock-alt:before{content:""}.fa-bullseye:before{content:""}.fa-ellipsis-h:before{content:""}.fa-ellipsis-v:before{content:""}.fa-rss-square:before{content:""}.fa-play-circle:before{content:""}.fa-ticket:before{content:""}.fa-minus-square:before{content:""}.fa-minus-square-o:before,.wy-menu-vertical li.current>a span.toctree-expand:before,.wy-menu-vertical li.on a span.toctree-expand:before{content:""}.fa-level-up:before{content:""}.fa-level-down:before{content:""}.fa-check-square:before{content:""}.fa-pencil-square:before{content:""}.fa-external-link-square:before{content:""}.fa-share-square:before{content:""}.fa-compass:before{content:""}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:""}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:""}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:""}.fa-eur:before,.fa-euro:before{content:""}.fa-gbp:before{content:""}.fa-dollar:before,.fa-usd:before{content:""}.fa-inr:before,.fa-rupee:before{content:""}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:""}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:""}.fa-krw:before,.fa-won:before{content:""}.fa-bitcoin:before,.fa-btc:before{content:""}.fa-file:before{content:""}.fa-file-text:before{content:""}.fa-sort-alpha-asc:before{content:""}.fa-sort-alpha-desc:before{content:""}.fa-sort-amount-asc:before{content:""}.fa-sort-amount-desc:before{content:""}.fa-sort-numeric-asc:before{content:""}.fa-sort-numeric-desc:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumbs-down:before{content:""}.fa-youtube-square:before{content:""}.fa-youtube:before{content:""}.fa-xing:before{content:""}.fa-xing-square:before{content:""}.fa-youtube-play:before{content:""}.fa-dropbox:before{content:""}.fa-stack-overflow:before{content:""}.fa-instagram:before{content:""}.fa-flickr:before{content:""}.fa-adn:before{content:""}.fa-bitbucket:before,.icon-bitbucket:before{content:""}.fa-bitbucket-square:before{content:""}.fa-tumblr:before{content:""}.fa-tumblr-square:before{content:""}.fa-long-arrow-down:before{content:""}.fa-long-arrow-up:before{content:""}.fa-long-arrow-left:before{content:""}.fa-long-arrow-right:before{content:""}.fa-apple:before{content:""}.fa-windows:before{content:""}.fa-android:before{content:""}.fa-linux:before{content:""}.fa-dribbble:before{content:""}.fa-skype:before{content:""}.fa-foursquare:before{content:""}.fa-trello:before{content:""}.fa-female:before{content:""}.fa-male:before{content:""}.fa-gittip:before,.fa-gratipay:before{content:""}.fa-sun-o:before{content:""}.fa-moon-o:before{content:""}.fa-archive:before{content:""}.fa-bug:before{content:""}.fa-vk:before{content:""}.fa-weibo:before{content:""}.fa-renren:before{content:""}.fa-pagelines:before{content:""}.fa-stack-exchange:before{content:""}.fa-arrow-circle-o-right:before{content:""}.fa-arrow-circle-o-left:before{content:""}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:""}.fa-dot-circle-o:before{content:""}.fa-wheelchair:before{content:""}.fa-vimeo-square:before{content:""}.fa-try:before,.fa-turkish-lira:before{content:""}.fa-plus-square-o:before,.wy-menu-vertical li span.toctree-expand:before{content:""}.fa-space-shuttle:before{content:""}.fa-slack:before{content:""}.fa-envelope-square:before{content:""}.fa-wordpress:before{content:""}.fa-openid:before{content:""}.fa-bank:before,.fa-institution:before,.fa-university:before{content:""}.fa-graduation-cap:before,.fa-mortar-board:before{content:""}.fa-yahoo:before{content:""}.fa-google:before{content:""}.fa-reddit:before{content:""}.fa-reddit-square:before{content:""}.fa-stumbleupon-circle:before{content:""}.fa-stumbleupon:before{content:""}.fa-delicious:before{content:""}.fa-digg:before{content:""}.fa-pied-piper-pp:before{content:""}.fa-pied-piper-alt:before{content:""}.fa-drupal:before{content:""}.fa-joomla:before{content:""}.fa-language:before{content:""}.fa-fax:before{content:""}.fa-building:before{content:""}.fa-child:before{content:""}.fa-paw:before{content:""}.fa-spoon:before{content:""}.fa-cube:before{content:""}.fa-cubes:before{content:""}.fa-behance:before{content:""}.fa-behance-square:before{content:""}.fa-steam:before{content:""}.fa-steam-square:before{content:""}.fa-recycle:before{content:""}.fa-automobile:before,.fa-car:before{content:""}.fa-cab:before,.fa-taxi:before{content:""}.fa-tree:before{content:""}.fa-spotify:before{content:""}.fa-deviantart:before{content:""}.fa-soundcloud:before{content:""}.fa-database:before{content:""}.fa-file-pdf-o:before{content:""}.fa-file-word-o:before{content:""}.fa-file-excel-o:before{content:""}.fa-file-powerpoint-o:before{content:""}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:""}.fa-file-archive-o:before,.fa-file-zip-o:before{content:""}.fa-file-audio-o:before,.fa-file-sound-o:before{content:""}.fa-file-movie-o:before,.fa-file-video-o:before{content:""}.fa-file-code-o:before{content:""}.fa-vine:before{content:""}.fa-codepen:before{content:""}.fa-jsfiddle:before{content:""}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:""}.fa-circle-o-notch:before{content:""}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:""}.fa-empire:before,.fa-ge:before{content:""}.fa-git-square:before{content:""}.fa-git:before{content:""}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:""}.fa-tencent-weibo:before{content:""}.fa-qq:before{content:""}.fa-wechat:before,.fa-weixin:before{content:""}.fa-paper-plane:before,.fa-send:before{content:""}.fa-paper-plane-o:before,.fa-send-o:before{content:""}.fa-history:before{content:""}.fa-circle-thin:before{content:""}.fa-header:before{content:""}.fa-paragraph:before{content:""}.fa-sliders:before{content:""}.fa-share-alt:before{content:""}.fa-share-alt-square:before{content:""}.fa-bomb:before{content:""}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:""}.fa-tty:before{content:""}.fa-binoculars:before{content:""}.fa-plug:before{content:""}.fa-slideshare:before{content:""}.fa-twitch:before{content:""}.fa-yelp:before{content:""}.fa-newspaper-o:before{content:""}.fa-wifi:before{content:""}.fa-calculator:before{content:""}.fa-paypal:before{content:""}.fa-google-wallet:before{content:""}.fa-cc-visa:before{content:""}.fa-cc-mastercard:before{content:""}.fa-cc-discover:before{content:""}.fa-cc-amex:before{content:""}.fa-cc-paypal:before{content:""}.fa-cc-stripe:before{content:""}.fa-bell-slash:before{content:""}.fa-bell-slash-o:before{content:""}.fa-trash:before{content:""}.fa-copyright:before{content:""}.fa-at:before{content:""}.fa-eyedropper:before{content:""}.fa-paint-brush:before{content:""}.fa-birthday-cake:before{content:""}.fa-area-chart:before{content:""}.fa-pie-chart:before{content:""}.fa-line-chart:before{content:""}.fa-lastfm:before{content:""}.fa-lastfm-square:before{content:""}.fa-toggle-off:before{content:""}.fa-toggle-on:before{content:""}.fa-bicycle:before{content:""}.fa-bus:before{content:""}.fa-ioxhost:before{content:""}.fa-angellist:before{content:""}.fa-cc:before{content:""}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:""}.fa-meanpath:before{content:""}.fa-buysellads:before{content:""}.fa-connectdevelop:before{content:""}.fa-dashcube:before{content:""}.fa-forumbee:before{content:""}.fa-leanpub:before{content:""}.fa-sellsy:before{content:""}.fa-shirtsinbulk:before{content:""}.fa-simplybuilt:before{content:""}.fa-skyatlas:before{content:""}.fa-cart-plus:before{content:""}.fa-cart-arrow-down:before{content:""}.fa-diamond:before{content:""}.fa-ship:before{content:""}.fa-user-secret:before{content:""}.fa-motorcycle:before{content:""}.fa-street-view:before{content:""}.fa-heartbeat:before{content:""}.fa-venus:before{content:""}.fa-mars:before{content:""}.fa-mercury:before{content:""}.fa-intersex:before,.fa-transgender:before{content:""}.fa-transgender-alt:before{content:""}.fa-venus-double:before{content:""}.fa-mars-double:before{content:""}.fa-venus-mars:before{content:""}.fa-mars-stroke:before{content:""}.fa-mars-stroke-v:before{content:""}.fa-mars-stroke-h:before{content:""}.fa-neuter:before{content:""}.fa-genderless:before{content:""}.fa-facebook-official:before{content:""}.fa-pinterest-p:before{content:""}.fa-whatsapp:before{content:""}.fa-server:before{content:""}.fa-user-plus:before{content:""}.fa-user-times:before{content:""}.fa-bed:before,.fa-hotel:before{content:""}.fa-viacoin:before{content:""}.fa-train:before{content:""}.fa-subway:before{content:""}.fa-medium:before{content:""}.fa-y-combinator:before,.fa-yc:before{content:""}.fa-optin-monster:before{content:""}.fa-opencart:before{content:""}.fa-expeditedssl:before{content:""}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:""}.fa-battery-3:before,.fa-battery-three-quarters:before{content:""}.fa-battery-2:before,.fa-battery-half:before{content:""}.fa-battery-1:before,.fa-battery-quarter:before{content:""}.fa-battery-0:before,.fa-battery-empty:before{content:""}.fa-mouse-pointer:before{content:""}.fa-i-cursor:before{content:""}.fa-object-group:before{content:""}.fa-object-ungroup:before{content:""}.fa-sticky-note:before{content:""}.fa-sticky-note-o:before{content:""}.fa-cc-jcb:before{content:""}.fa-cc-diners-club:before{content:""}.fa-clone:before{content:""}.fa-balance-scale:before{content:""}.fa-hourglass-o:before{content:""}.fa-hourglass-1:before,.fa-hourglass-start:before{content:""}.fa-hourglass-2:before,.fa-hourglass-half:before{content:""}.fa-hourglass-3:before,.fa-hourglass-end:before{content:""}.fa-hourglass:before{content:""}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:""}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:""}.fa-hand-scissors-o:before{content:""}.fa-hand-lizard-o:before{content:""}.fa-hand-spock-o:before{content:""}.fa-hand-pointer-o:before{content:""}.fa-hand-peace-o:before{content:""}.fa-trademark:before{content:""}.fa-registered:before{content:""}.fa-creative-commons:before{content:""}.fa-gg:before{content:""}.fa-gg-circle:before{content:""}.fa-tripadvisor:before{content:""}.fa-odnoklassniki:before{content:""}.fa-odnoklassniki-square:before{content:""}.fa-get-pocket:before{content:""}.fa-wikipedia-w:before{content:""}.fa-safari:before{content:""}.fa-chrome:before{content:""}.fa-firefox:before{content:""}.fa-opera:before{content:""}.fa-internet-explorer:before{content:""}.fa-television:before,.fa-tv:before{content:""}.fa-contao:before{content:""}.fa-500px:before{content:""}.fa-amazon:before{content:""}.fa-calendar-plus-o:before{content:""}.fa-calendar-minus-o:before{content:""}.fa-calendar-times-o:before{content:""}.fa-calendar-check-o:before{content:""}.fa-industry:before{content:""}.fa-map-pin:before{content:""}.fa-map-signs:before{content:""}.fa-map-o:before{content:""}.fa-map:before{content:""}.fa-commenting:before{content:""}.fa-commenting-o:before{content:""}.fa-houzz:before{content:""}.fa-vimeo:before{content:""}.fa-black-tie:before{content:""}.fa-fonticons:before{content:""}.fa-reddit-alien:before{content:""}.fa-edge:before{content:""}.fa-credit-card-alt:before{content:""}.fa-codiepie:before{content:""}.fa-modx:before{content:""}.fa-fort-awesome:before{content:""}.fa-usb:before{content:""}.fa-product-hunt:before{content:""}.fa-mixcloud:before{content:""}.fa-scribd:before{content:""}.fa-pause-circle:before{content:""}.fa-pause-circle-o:before{content:""}.fa-stop-circle:before{content:""}.fa-stop-circle-o:before{content:""}.fa-shopping-bag:before{content:""}.fa-shopping-basket:before{content:""}.fa-hashtag:before{content:""}.fa-bluetooth:before{content:""}.fa-bluetooth-b:before{content:""}.fa-percent:before{content:""}.fa-gitlab:before,.icon-gitlab:before{content:""}.fa-wpbeginner:before{content:""}.fa-wpforms:before{content:""}.fa-envira:before{content:""}.fa-universal-access:before{content:""}.fa-wheelchair-alt:before{content:""}.fa-question-circle-o:before{content:""}.fa-blind:before{content:""}.fa-audio-description:before{content:""}.fa-volume-control-phone:before{content:""}.fa-braille:before{content:""}.fa-assistive-listening-systems:before{content:""}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:""}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:""}.fa-glide:before{content:""}.fa-glide-g:before{content:""}.fa-sign-language:before,.fa-signing:before{content:""}.fa-low-vision:before{content:""}.fa-viadeo:before{content:""}.fa-viadeo-square:before{content:""}.fa-snapchat:before{content:""}.fa-snapchat-ghost:before{content:""}.fa-snapchat-square:before{content:""}.fa-pied-piper:before{content:""}.fa-first-order:before{content:""}.fa-yoast:before{content:""}.fa-themeisle:before{content:""}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:""}.fa-fa:before,.fa-font-awesome:before{content:""}.fa-handshake-o:before{content:""}.fa-envelope-open:before{content:""}.fa-envelope-open-o:before{content:""}.fa-linode:before{content:""}.fa-address-book:before{content:""}.fa-address-book-o:before{content:""}.fa-address-card:before,.fa-vcard:before{content:""}.fa-address-card-o:before,.fa-vcard-o:before{content:""}.fa-user-circle:before{content:""}.fa-user-circle-o:before{content:""}.fa-user-o:before{content:""}.fa-id-badge:before{content:""}.fa-drivers-license:before,.fa-id-card:before{content:""}.fa-drivers-license-o:before,.fa-id-card-o:before{content:""}.fa-quora:before{content:""}.fa-free-code-camp:before{content:""}.fa-telegram:before{content:""}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:""}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:""}.fa-thermometer-2:before,.fa-thermometer-half:before{content:""}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:""}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:""}.fa-shower:before{content:""}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:""}.fa-podcast:before{content:""}.fa-window-maximize:before{content:""}.fa-window-minimize:before{content:""}.fa-window-restore:before{content:""}.fa-times-rectangle:before,.fa-window-close:before{content:""}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:""}.fa-bandcamp:before{content:""}.fa-grav:before{content:""}.fa-etsy:before{content:""}.fa-imdb:before{content:""}.fa-ravelry:before{content:""}.fa-eercast:before{content:""}.fa-microchip:before{content:""}.fa-snowflake-o:before{content:""}.fa-superpowers:before{content:""}.fa-wpexplorer:before{content:""}.fa-meetup:before{content:""}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.fa,.icon,.rst-content .admonition-title,.rst-content .code-block-caption .headerlink,.rst-content code.download span:first-child,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content table>caption .headerlink,.rst-content tt.download span:first-child,.wy-dropdown .caret,.wy-inline-validate.wy-inline-validate-danger .wy-input-context,.wy-inline-validate.wy-inline-validate-info .wy-input-context,.wy-inline-validate.wy-inline-validate-success .wy-input-context,.wy-inline-validate.wy-inline-validate-warning .wy-input-context,.wy-menu-vertical li.current>a span.toctree-expand,.wy-menu-vertical li.on a span.toctree-expand,.wy-menu-vertical li span.toctree-expand{font-family:inherit}.fa:before,.icon:before,.rst-content .admonition-title:before,.rst-content .code-block-caption .headerlink:before,.rst-content code.download span:first-child:before,.rst-content dl dt .headerlink:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content p.caption .headerlink:before,.rst-content table>caption .headerlink:before,.rst-content tt.download span:first-child:before,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-menu-vertical li.current>a span.toctree-expand:before,.wy-menu-vertical li.on a span.toctree-expand:before,.wy-menu-vertical li span.toctree-expand:before{font-family:FontAwesome;display:inline-block;font-style:normal;font-weight:400;line-height:1;text-decoration:inherit}.rst-content .code-block-caption a .headerlink,.rst-content a .admonition-title,.rst-content code.download a span:first-child,.rst-content dl dt a .headerlink,.rst-content h1 a .headerlink,.rst-content h2 a .headerlink,.rst-content h3 a .headerlink,.rst-content h4 a .headerlink,.rst-content h5 a .headerlink,.rst-content h6 a .headerlink,.rst-content p.caption a .headerlink,.rst-content table>caption a .headerlink,.rst-content tt.download a span:first-child,.wy-menu-vertical li.current>a span.toctree-expand,.wy-menu-vertical li.on a span.toctree-expand,.wy-menu-vertical li a span.toctree-expand,a .fa,a .icon,a .rst-content .admonition-title,a .rst-content .code-block-caption .headerlink,a .rst-content code.download span:first-child,a .rst-content dl dt .headerlink,a .rst-content h1 .headerlink,a .rst-content h2 .headerlink,a .rst-content h3 .headerlink,a .rst-content h4 .headerlink,a .rst-content h5 .headerlink,a .rst-content h6 .headerlink,a .rst-content p.caption .headerlink,a .rst-content table>caption .headerlink,a .rst-content tt.download span:first-child,a .wy-menu-vertical li span.toctree-expand{display:inline-block;text-decoration:inherit}.btn .fa,.btn .icon,.btn .rst-content .admonition-title,.btn .rst-content .code-block-caption .headerlink,.btn .rst-content code.download span:first-child,.btn .rst-content dl dt .headerlink,.btn .rst-content h1 .headerlink,.btn .rst-content h2 .headerlink,.btn .rst-content h3 .headerlink,.btn .rst-content h4 .headerlink,.btn .rst-content h5 .headerlink,.btn .rst-content h6 .headerlink,.btn .rst-content p.caption .headerlink,.btn .rst-content table>caption .headerlink,.btn .rst-content tt.download span:first-child,.btn .wy-menu-vertical li.current>a span.toctree-expand,.btn .wy-menu-vertical li.on a span.toctree-expand,.btn .wy-menu-vertical li span.toctree-expand,.nav .fa,.nav .icon,.nav .rst-content .admonition-title,.nav .rst-content .code-block-caption .headerlink,.nav .rst-content code.download span:first-child,.nav .rst-content dl dt .headerlink,.nav .rst-content h1 .headerlink,.nav .rst-content h2 .headerlink,.nav .rst-content h3 .headerlink,.nav .rst-content h4 .headerlink,.nav .rst-content h5 .headerlink,.nav .rst-content h6 .headerlink,.nav .rst-content p.caption .headerlink,.nav .rst-content table>caption .headerlink,.nav .rst-content tt.download span:first-child,.nav .wy-menu-vertical li.current>a span.toctree-expand,.nav .wy-menu-vertical li.on a span.toctree-expand,.nav .wy-menu-vertical li span.toctree-expand,.rst-content .btn .admonition-title,.rst-content .code-block-caption .btn .headerlink,.rst-content .code-block-caption .nav .headerlink,.rst-content .nav .admonition-title,.rst-content code.download .btn span:first-child,.rst-content code.download .nav span:first-child,.rst-content dl dt .btn .headerlink,.rst-content dl dt .nav .headerlink,.rst-content h1 .btn .headerlink,.rst-content h1 .nav .headerlink,.rst-content h2 .btn .headerlink,.rst-content h2 .nav .headerlink,.rst-content h3 .btn .headerlink,.rst-content h3 .nav .headerlink,.rst-content h4 .btn .headerlink,.rst-content h4 .nav .headerlink,.rst-content h5 .btn .headerlink,.rst-content h5 .nav .headerlink,.rst-content h6 .btn .headerlink,.rst-content h6 .nav .headerlink,.rst-content p.caption .btn .headerlink,.rst-content p.caption .nav .headerlink,.rst-content table>caption .btn .headerlink,.rst-content table>caption .nav .headerlink,.rst-content tt.download .btn span:first-child,.rst-content tt.download .nav span:first-child,.wy-menu-vertical li .btn span.toctree-expand,.wy-menu-vertical li.current>a .btn span.toctree-expand,.wy-menu-vertical li.current>a .nav span.toctree-expand,.wy-menu-vertical li .nav span.toctree-expand,.wy-menu-vertical li.on a .btn span.toctree-expand,.wy-menu-vertical li.on a .nav span.toctree-expand{display:inline}.btn .fa-large.icon,.btn .fa.fa-large,.btn .rst-content .code-block-caption .fa-large.headerlink,.btn .rst-content .fa-large.admonition-title,.btn .rst-content code.download span.fa-large:first-child,.btn .rst-content dl dt .fa-large.headerlink,.btn .rst-content h1 .fa-large.headerlink,.btn .rst-content h2 .fa-large.headerlink,.btn .rst-content h3 .fa-large.headerlink,.btn .rst-content h4 .fa-large.headerlink,.btn .rst-content h5 .fa-large.headerlink,.btn .rst-content h6 .fa-large.headerlink,.btn .rst-content p.caption .fa-large.headerlink,.btn .rst-content table>caption .fa-large.headerlink,.btn .rst-content tt.download span.fa-large:first-child,.btn .wy-menu-vertical li span.fa-large.toctree-expand,.nav .fa-large.icon,.nav .fa.fa-large,.nav .rst-content .code-block-caption .fa-large.headerlink,.nav .rst-content .fa-large.admonition-title,.nav .rst-content code.download span.fa-large:first-child,.nav .rst-content dl dt .fa-large.headerlink,.nav .rst-content h1 .fa-large.headerlink,.nav .rst-content h2 .fa-large.headerlink,.nav .rst-content h3 .fa-large.headerlink,.nav .rst-content h4 .fa-large.headerlink,.nav .rst-content h5 .fa-large.headerlink,.nav .rst-content h6 .fa-large.headerlink,.nav .rst-content p.caption .fa-large.headerlink,.nav .rst-content table>caption .fa-large.headerlink,.nav .rst-content tt.download span.fa-large:first-child,.nav .wy-menu-vertical li span.fa-large.toctree-expand,.rst-content .btn .fa-large.admonition-title,.rst-content .code-block-caption .btn .fa-large.headerlink,.rst-content .code-block-caption .nav .fa-large.headerlink,.rst-content .nav .fa-large.admonition-title,.rst-content code.download .btn span.fa-large:first-child,.rst-content code.download .nav span.fa-large:first-child,.rst-content dl dt .btn .fa-large.headerlink,.rst-content dl dt .nav .fa-large.headerlink,.rst-content h1 .btn .fa-large.headerlink,.rst-content h1 .nav .fa-large.headerlink,.rst-content h2 .btn .fa-large.headerlink,.rst-content h2 .nav .fa-large.headerlink,.rst-content h3 .btn .fa-large.headerlink,.rst-content h3 .nav .fa-large.headerlink,.rst-content h4 .btn .fa-large.headerlink,.rst-content h4 .nav .fa-large.headerlink,.rst-content h5 .btn .fa-large.headerlink,.rst-content h5 .nav .fa-large.headerlink,.rst-content h6 .btn .fa-large.headerlink,.rst-content h6 .nav .fa-large.headerlink,.rst-content p.caption .btn .fa-large.headerlink,.rst-content p.caption .nav .fa-large.headerlink,.rst-content table>caption .btn .fa-large.headerlink,.rst-content table>caption .nav .fa-large.headerlink,.rst-content tt.download .btn span.fa-large:first-child,.rst-content tt.download .nav span.fa-large:first-child,.wy-menu-vertical li .btn span.fa-large.toctree-expand,.wy-menu-vertical li .nav span.fa-large.toctree-expand{line-height:.9em}.btn .fa-spin.icon,.btn .fa.fa-spin,.btn .rst-content .code-block-caption .fa-spin.headerlink,.btn .rst-content .fa-spin.admonition-title,.btn .rst-content code.download span.fa-spin:first-child,.btn .rst-content dl dt .fa-spin.headerlink,.btn .rst-content h1 .fa-spin.headerlink,.btn .rst-content h2 .fa-spin.headerlink,.btn .rst-content h3 .fa-spin.headerlink,.btn .rst-content h4 .fa-spin.headerlink,.btn .rst-content h5 .fa-spin.headerlink,.btn .rst-content h6 .fa-spin.headerlink,.btn .rst-content p.caption .fa-spin.headerlink,.btn .rst-content table>caption .fa-spin.headerlink,.btn .rst-content tt.download span.fa-spin:first-child,.btn .wy-menu-vertical li span.fa-spin.toctree-expand,.nav .fa-spin.icon,.nav .fa.fa-spin,.nav .rst-content .code-block-caption .fa-spin.headerlink,.nav .rst-content .fa-spin.admonition-title,.nav .rst-content code.download span.fa-spin:first-child,.nav .rst-content dl dt .fa-spin.headerlink,.nav .rst-content h1 .fa-spin.headerlink,.nav .rst-content h2 .fa-spin.headerlink,.nav .rst-content h3 .fa-spin.headerlink,.nav .rst-content h4 .fa-spin.headerlink,.nav .rst-content h5 .fa-spin.headerlink,.nav .rst-content h6 .fa-spin.headerlink,.nav .rst-content p.caption .fa-spin.headerlink,.nav .rst-content table>caption .fa-spin.headerlink,.nav .rst-content tt.download span.fa-spin:first-child,.nav .wy-menu-vertical li span.fa-spin.toctree-expand,.rst-content .btn .fa-spin.admonition-title,.rst-content .code-block-caption .btn .fa-spin.headerlink,.rst-content .code-block-caption .nav .fa-spin.headerlink,.rst-content .nav .fa-spin.admonition-title,.rst-content code.download .btn span.fa-spin:first-child,.rst-content code.download .nav span.fa-spin:first-child,.rst-content dl dt .btn .fa-spin.headerlink,.rst-content dl dt .nav .fa-spin.headerlink,.rst-content h1 .btn .fa-spin.headerlink,.rst-content h1 .nav .fa-spin.headerlink,.rst-content h2 .btn .fa-spin.headerlink,.rst-content h2 .nav .fa-spin.headerlink,.rst-content h3 .btn .fa-spin.headerlink,.rst-content h3 .nav .fa-spin.headerlink,.rst-content h4 .btn .fa-spin.headerlink,.rst-content h4 .nav .fa-spin.headerlink,.rst-content h5 .btn .fa-spin.headerlink,.rst-content h5 .nav .fa-spin.headerlink,.rst-content h6 .btn .fa-spin.headerlink,.rst-content h6 .nav .fa-spin.headerlink,.rst-content p.caption .btn .fa-spin.headerlink,.rst-content p.caption .nav .fa-spin.headerlink,.rst-content table>caption .btn .fa-spin.headerlink,.rst-content table>caption .nav .fa-spin.headerlink,.rst-content tt.download .btn span.fa-spin:first-child,.rst-content tt.download .nav span.fa-spin:first-child,.wy-menu-vertical li .btn span.fa-spin.toctree-expand,.wy-menu-vertical li .nav span.fa-spin.toctree-expand{display:inline-block}.btn.fa:before,.btn.icon:before,.rst-content .btn.admonition-title:before,.rst-content .code-block-caption .btn.headerlink:before,.rst-content code.download span.btn:first-child:before,.rst-content dl dt .btn.headerlink:before,.rst-content h1 .btn.headerlink:before,.rst-content h2 .btn.headerlink:before,.rst-content h3 .btn.headerlink:before,.rst-content h4 .btn.headerlink:before,.rst-content h5 .btn.headerlink:before,.rst-content h6 .btn.headerlink:before,.rst-content p.caption .btn.headerlink:before,.rst-content table>caption .btn.headerlink:before,.rst-content tt.download span.btn:first-child:before,.wy-menu-vertical li span.btn.toctree-expand:before{opacity:.5;-webkit-transition:opacity .05s ease-in;-moz-transition:opacity .05s ease-in;transition:opacity .05s ease-in}.btn.fa:hover:before,.btn.icon:hover:before,.rst-content .btn.admonition-title:hover:before,.rst-content .code-block-caption .btn.headerlink:hover:before,.rst-content code.download span.btn:first-child:hover:before,.rst-content dl dt .btn.headerlink:hover:before,.rst-content h1 .btn.headerlink:hover:before,.rst-content h2 .btn.headerlink:hover:before,.rst-content h3 .btn.headerlink:hover:before,.rst-content h4 .btn.headerlink:hover:before,.rst-content h5 .btn.headerlink:hover:before,.rst-content h6 .btn.headerlink:hover:before,.rst-content p.caption .btn.headerlink:hover:before,.rst-content table>caption .btn.headerlink:hover:before,.rst-content tt.download span.btn:first-child:hover:before,.wy-menu-vertical li span.btn.toctree-expand:hover:before{opacity:1}.btn-mini .fa:before,.btn-mini .icon:before,.btn-mini .rst-content .admonition-title:before,.btn-mini .rst-content .code-block-caption .headerlink:before,.btn-mini .rst-content code.download span:first-child:before,.btn-mini .rst-content dl dt .headerlink:before,.btn-mini .rst-content h1 .headerlink:before,.btn-mini .rst-content h2 .headerlink:before,.btn-mini .rst-content h3 .headerlink:before,.btn-mini .rst-content h4 .headerlink:before,.btn-mini .rst-content h5 .headerlink:before,.btn-mini .rst-content h6 .headerlink:before,.btn-mini .rst-content p.caption .headerlink:before,.btn-mini .rst-content table>caption .headerlink:before,.btn-mini .rst-content tt.download span:first-child:before,.btn-mini .wy-menu-vertical li span.toctree-expand:before,.rst-content .btn-mini .admonition-title:before,.rst-content .code-block-caption .btn-mini .headerlink:before,.rst-content code.download .btn-mini span:first-child:before,.rst-content dl dt .btn-mini .headerlink:before,.rst-content h1 .btn-mini .headerlink:before,.rst-content h2 .btn-mini .headerlink:before,.rst-content h3 .btn-mini .headerlink:before,.rst-content h4 .btn-mini .headerlink:before,.rst-content h5 .btn-mini .headerlink:before,.rst-content h6 .btn-mini .headerlink:before,.rst-content p.caption .btn-mini .headerlink:before,.rst-content table>caption .btn-mini .headerlink:before,.rst-content tt.download .btn-mini span:first-child:before,.wy-menu-vertical li .btn-mini span.toctree-expand:before{font-size:14px;vertical-align:-15%}.rst-content .admonition,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning,.wy-alert{padding:12px;line-height:24px;margin-bottom:24px;background:#e7f2fa}.rst-content .admonition-title,.wy-alert-title{font-weight:700;display:block;color:#fff;background:#6ab0de;padding:6px 12px;margin:-12px -12px 12px}.rst-content .danger,.rst-content .error,.rst-content .wy-alert-danger.admonition,.rst-content .wy-alert-danger.admonition-todo,.rst-content .wy-alert-danger.attention,.rst-content .wy-alert-danger.caution,.rst-content .wy-alert-danger.hint,.rst-content .wy-alert-danger.important,.rst-content .wy-alert-danger.note,.rst-content .wy-alert-danger.seealso,.rst-content .wy-alert-danger.tip,.rst-content .wy-alert-danger.warning,.wy-alert.wy-alert-danger{background:#fdf3f2}.rst-content .danger .admonition-title,.rst-content .danger .wy-alert-title,.rst-content .error .admonition-title,.rst-content .error .wy-alert-title,.rst-content .wy-alert-danger.admonition-todo .admonition-title,.rst-content .wy-alert-danger.admonition-todo .wy-alert-title,.rst-content .wy-alert-danger.admonition .admonition-title,.rst-content .wy-alert-danger.admonition .wy-alert-title,.rst-content .wy-alert-danger.attention .admonition-title,.rst-content .wy-alert-danger.attention .wy-alert-title,.rst-content .wy-alert-danger.caution .admonition-title,.rst-content .wy-alert-danger.caution .wy-alert-title,.rst-content .wy-alert-danger.hint .admonition-title,.rst-content .wy-alert-danger.hint .wy-alert-title,.rst-content .wy-alert-danger.important .admonition-title,.rst-content .wy-alert-danger.important .wy-alert-title,.rst-content .wy-alert-danger.note .admonition-title,.rst-content .wy-alert-danger.note .wy-alert-title,.rst-content .wy-alert-danger.seealso .admonition-title,.rst-content .wy-alert-danger.seealso .wy-alert-title,.rst-content .wy-alert-danger.tip .admonition-title,.rst-content .wy-alert-danger.tip .wy-alert-title,.rst-content .wy-alert-danger.warning .admonition-title,.rst-content .wy-alert-danger.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-danger .admonition-title,.wy-alert.wy-alert-danger .rst-content .admonition-title,.wy-alert.wy-alert-danger .wy-alert-title{background:#f29f97}.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .warning,.rst-content .wy-alert-warning.admonition,.rst-content .wy-alert-warning.danger,.rst-content .wy-alert-warning.error,.rst-content .wy-alert-warning.hint,.rst-content .wy-alert-warning.important,.rst-content .wy-alert-warning.note,.rst-content .wy-alert-warning.seealso,.rst-content .wy-alert-warning.tip,.wy-alert.wy-alert-warning{background:#ffedcc}.rst-content .admonition-todo .admonition-title,.rst-content .admonition-todo .wy-alert-title,.rst-content .attention .admonition-title,.rst-content .attention .wy-alert-title,.rst-content .caution .admonition-title,.rst-content .caution .wy-alert-title,.rst-content .warning .admonition-title,.rst-content .warning .wy-alert-title,.rst-content .wy-alert-warning.admonition .admonition-title,.rst-content .wy-alert-warning.admonition .wy-alert-title,.rst-content .wy-alert-warning.danger .admonition-title,.rst-content .wy-alert-warning.danger .wy-alert-title,.rst-content .wy-alert-warning.error .admonition-title,.rst-content .wy-alert-warning.error .wy-alert-title,.rst-content .wy-alert-warning.hint .admonition-title,.rst-content .wy-alert-warning.hint .wy-alert-title,.rst-content .wy-alert-warning.important .admonition-title,.rst-content .wy-alert-warning.important .wy-alert-title,.rst-content .wy-alert-warning.note .admonition-title,.rst-content .wy-alert-warning.note .wy-alert-title,.rst-content .wy-alert-warning.seealso .admonition-title,.rst-content .wy-alert-warning.seealso .wy-alert-title,.rst-content .wy-alert-warning.tip .admonition-title,.rst-content .wy-alert-warning.tip .wy-alert-title,.rst-content .wy-alert.wy-alert-warning .admonition-title,.wy-alert.wy-alert-warning .rst-content .admonition-title,.wy-alert.wy-alert-warning .wy-alert-title{background:#f0b37e}.rst-content .note,.rst-content .seealso,.rst-content .wy-alert-info.admonition,.rst-content .wy-alert-info.admonition-todo,.rst-content .wy-alert-info.attention,.rst-content .wy-alert-info.caution,.rst-content .wy-alert-info.danger,.rst-content .wy-alert-info.error,.rst-content .wy-alert-info.hint,.rst-content .wy-alert-info.important,.rst-content .wy-alert-info.tip,.rst-content .wy-alert-info.warning,.wy-alert.wy-alert-info{background:#e7f2fa}.rst-content .note .admonition-title,.rst-content .note .wy-alert-title,.rst-content .seealso .admonition-title,.rst-content .seealso .wy-alert-title,.rst-content .wy-alert-info.admonition-todo .admonition-title,.rst-content .wy-alert-info.admonition-todo .wy-alert-title,.rst-content .wy-alert-info.admonition .admonition-title,.rst-content .wy-alert-info.admonition .wy-alert-title,.rst-content .wy-alert-info.attention .admonition-title,.rst-content .wy-alert-info.attention .wy-alert-title,.rst-content .wy-alert-info.caution .admonition-title,.rst-content .wy-alert-info.caution .wy-alert-title,.rst-content .wy-alert-info.danger .admonition-title,.rst-content .wy-alert-info.danger .wy-alert-title,.rst-content .wy-alert-info.error .admonition-title,.rst-content .wy-alert-info.error .wy-alert-title,.rst-content .wy-alert-info.hint .admonition-title,.rst-content .wy-alert-info.hint .wy-alert-title,.rst-content .wy-alert-info.important .admonition-title,.rst-content .wy-alert-info.important .wy-alert-title,.rst-content .wy-alert-info.tip .admonition-title,.rst-content .wy-alert-info.tip .wy-alert-title,.rst-content .wy-alert-info.warning .admonition-title,.rst-content .wy-alert-info.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-info .admonition-title,.wy-alert.wy-alert-info .rst-content .admonition-title,.wy-alert.wy-alert-info .wy-alert-title{background:#6ab0de}.rst-content .hint,.rst-content .important,.rst-content .tip,.rst-content .wy-alert-success.admonition,.rst-content .wy-alert-success.admonition-todo,.rst-content .wy-alert-success.attention,.rst-content .wy-alert-success.caution,.rst-content .wy-alert-success.danger,.rst-content .wy-alert-success.error,.rst-content .wy-alert-success.note,.rst-content .wy-alert-success.seealso,.rst-content .wy-alert-success.warning,.wy-alert.wy-alert-success{background:#dbfaf4}.rst-content .hint .admonition-title,.rst-content .hint .wy-alert-title,.rst-content .important .admonition-title,.rst-content .important .wy-alert-title,.rst-content .tip .admonition-title,.rst-content .tip .wy-alert-title,.rst-content .wy-alert-success.admonition-todo .admonition-title,.rst-content .wy-alert-success.admonition-todo .wy-alert-title,.rst-content .wy-alert-success.admonition .admonition-title,.rst-content .wy-alert-success.admonition .wy-alert-title,.rst-content .wy-alert-success.attention .admonition-title,.rst-content .wy-alert-success.attention .wy-alert-title,.rst-content .wy-alert-success.caution .admonition-title,.rst-content .wy-alert-success.caution .wy-alert-title,.rst-content .wy-alert-success.danger .admonition-title,.rst-content .wy-alert-success.danger .wy-alert-title,.rst-content .wy-alert-success.error .admonition-title,.rst-content .wy-alert-success.error .wy-alert-title,.rst-content .wy-alert-success.note .admonition-title,.rst-content .wy-alert-success.note .wy-alert-title,.rst-content .wy-alert-success.seealso .admonition-title,.rst-content .wy-alert-success.seealso .wy-alert-title,.rst-content .wy-alert-success.warning .admonition-title,.rst-content .wy-alert-success.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-success .admonition-title,.wy-alert.wy-alert-success .rst-content .admonition-title,.wy-alert.wy-alert-success .wy-alert-title{background:#1abc9c}.rst-content .wy-alert-neutral.admonition,.rst-content .wy-alert-neutral.admonition-todo,.rst-content .wy-alert-neutral.attention,.rst-content .wy-alert-neutral.caution,.rst-content .wy-alert-neutral.danger,.rst-content .wy-alert-neutral.error,.rst-content .wy-alert-neutral.hint,.rst-content .wy-alert-neutral.important,.rst-content .wy-alert-neutral.note,.rst-content .wy-alert-neutral.seealso,.rst-content .wy-alert-neutral.tip,.rst-content .wy-alert-neutral.warning,.wy-alert.wy-alert-neutral{background:#f3f6f6}.rst-content .wy-alert-neutral.admonition-todo .admonition-title,.rst-content .wy-alert-neutral.admonition-todo .wy-alert-title,.rst-content .wy-alert-neutral.admonition .admonition-title,.rst-content .wy-alert-neutral.admonition .wy-alert-title,.rst-content .wy-alert-neutral.attention .admonition-title,.rst-content .wy-alert-neutral.attention .wy-alert-title,.rst-content .wy-alert-neutral.caution .admonition-title,.rst-content .wy-alert-neutral.caution .wy-alert-title,.rst-content .wy-alert-neutral.danger .admonition-title,.rst-content .wy-alert-neutral.danger .wy-alert-title,.rst-content .wy-alert-neutral.error .admonition-title,.rst-content .wy-alert-neutral.error .wy-alert-title,.rst-content .wy-alert-neutral.hint .admonition-title,.rst-content .wy-alert-neutral.hint .wy-alert-title,.rst-content .wy-alert-neutral.important .admonition-title,.rst-content .wy-alert-neutral.important .wy-alert-title,.rst-content .wy-alert-neutral.note .admonition-title,.rst-content .wy-alert-neutral.note .wy-alert-title,.rst-content .wy-alert-neutral.seealso .admonition-title,.rst-content .wy-alert-neutral.seealso .wy-alert-title,.rst-content .wy-alert-neutral.tip .admonition-title,.rst-content .wy-alert-neutral.tip .wy-alert-title,.rst-content .wy-alert-neutral.warning .admonition-title,.rst-content .wy-alert-neutral.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-neutral .admonition-title,.wy-alert.wy-alert-neutral .rst-content .admonition-title,.wy-alert.wy-alert-neutral .wy-alert-title{color:#404040;background:#e1e4e5}.rst-content .wy-alert-neutral.admonition-todo a,.rst-content .wy-alert-neutral.admonition a,.rst-content .wy-alert-neutral.attention a,.rst-content .wy-alert-neutral.caution a,.rst-content .wy-alert-neutral.danger a,.rst-content .wy-alert-neutral.error a,.rst-content .wy-alert-neutral.hint a,.rst-content .wy-alert-neutral.important a,.rst-content .wy-alert-neutral.note a,.rst-content .wy-alert-neutral.seealso a,.rst-content .wy-alert-neutral.tip a,.rst-content .wy-alert-neutral.warning a,.wy-alert.wy-alert-neutral a{color:#2980b9}.rst-content .admonition-todo p:last-child,.rst-content .admonition p:last-child,.rst-content .attention p:last-child,.rst-content .caution p:last-child,.rst-content .danger p:last-child,.rst-content .error p:last-child,.rst-content .hint p:last-child,.rst-content .important p:last-child,.rst-content .note p:last-child,.rst-content .seealso p:last-child,.rst-content .tip p:last-child,.rst-content .warning p:last-child,.wy-alert p:last-child{margin-bottom:0}.wy-tray-container{position:fixed;bottom:0;left:0;z-index:600}.wy-tray-container li{display:block;width:300px;background:transparent;color:#fff;text-align:center;box-shadow:0 5px 5px 0 rgba(0,0,0,.1);padding:0 24px;min-width:20%;opacity:0;height:0;line-height:56px;overflow:hidden;-webkit-transition:all .3s ease-in;-moz-transition:all .3s ease-in;transition:all .3s ease-in}.wy-tray-container li.wy-tray-item-success{background:#27ae60}.wy-tray-container li.wy-tray-item-info{background:#2980b9}.wy-tray-container li.wy-tray-item-warning{background:#e67e22}.wy-tray-container li.wy-tray-item-danger{background:#e74c3c}.wy-tray-container li.on{opacity:1;height:56px}@media screen and (max-width:768px){.wy-tray-container{bottom:auto;top:0;width:100%}.wy-tray-container li{width:100%}}button{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle;cursor:pointer;line-height:normal;-webkit-appearance:button;*overflow:visible}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}button[disabled]{cursor:default}.btn{display:inline-block;border-radius:2px;line-height:normal;white-space:nowrap;text-align:center;cursor:pointer;font-size:100%;padding:6px 12px 8px;color:#fff;border:1px solid rgba(0,0,0,.1);background-color:#27ae60;text-decoration:none;font-weight:400;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;box-shadow:inset 0 1px 2px -1px hsla(0,0%,100%,.5),inset 0 -2px 0 0 rgba(0,0,0,.1);outline-none:false;vertical-align:middle;*display:inline;zoom:1;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all .1s linear;-moz-transition:all .1s linear;transition:all .1s linear}.btn-hover{background:#2e8ece;color:#fff}.btn:hover{background:#2cc36b;color:#fff}.btn:focus{background:#2cc36b;outline:0}.btn:active{box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.05),inset 0 2px 0 0 rgba(0,0,0,.1);padding:8px 12px 6px}.btn:visited{color:#fff}.btn-disabled,.btn-disabled:active,.btn-disabled:focus,.btn-disabled:hover,.btn:disabled{background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none}.btn::-moz-focus-inner{padding:0;border:0}.btn-small{font-size:80%}.btn-info{background-color:#2980b9!important}.btn-info:hover{background-color:#2e8ece!important}.btn-neutral{background-color:#f3f6f6!important;color:#404040!important}.btn-neutral:hover{background-color:#e5ebeb!important;color:#404040}.btn-neutral:visited{color:#404040!important}.btn-success{background-color:#27ae60!important}.btn-success:hover{background-color:#295!important}.btn-danger{background-color:#e74c3c!important}.btn-danger:hover{background-color:#ea6153!important}.btn-warning{background-color:#e67e22!important}.btn-warning:hover{background-color:#e98b39!important}.btn-invert{background-color:#222}.btn-invert:hover{background-color:#2f2f2f!important}.btn-link{background-color:transparent!important;color:#2980b9;box-shadow:none;border-color:transparent!important}.btn-link:active,.btn-link:hover{background-color:transparent!important;color:#409ad5!important;box-shadow:none}.btn-link:visited{color:#9b59b6}.wy-btn-group .btn,.wy-control .btn{vertical-align:middle}.wy-btn-group{margin-bottom:24px;*zoom:1}.wy-btn-group:after,.wy-btn-group:before{display:table;content:""}.wy-btn-group:after{clear:both}.wy-dropdown{position:relative;display:inline-block}.wy-dropdown-active .wy-dropdown-menu{display:block}.wy-dropdown-menu{position:absolute;left:0;display:none;float:left;top:100%;min-width:100%;background:#fcfcfc;z-index:100;border:1px solid #cfd7dd;box-shadow:0 2px 2px 0 rgba(0,0,0,.1);padding:12px}.wy-dropdown-menu>dd>a{display:block;clear:both;color:#404040;white-space:nowrap;font-size:90%;padding:0 12px;cursor:pointer}.wy-dropdown-menu>dd>a:hover{background:#2980b9;color:#fff}.wy-dropdown-menu>dd.divider{border-top:1px solid #cfd7dd;margin:6px 0}.wy-dropdown-menu>dd.search{padding-bottom:12px}.wy-dropdown-menu>dd.search input[type=search]{width:100%}.wy-dropdown-menu>dd.call-to-action{background:#e3e3e3;text-transform:uppercase;font-weight:500;font-size:80%}.wy-dropdown-menu>dd.call-to-action:hover{background:#e3e3e3}.wy-dropdown-menu>dd.call-to-action .btn{color:#fff}.wy-dropdown.wy-dropdown-up .wy-dropdown-menu{bottom:100%;top:auto;left:auto;right:0}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu{background:#fcfcfc;margin-top:2px}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a{padding:6px 12px}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a:hover{background:#2980b9;color:#fff}.wy-dropdown.wy-dropdown-left .wy-dropdown-menu{right:0;left:auto;text-align:right}.wy-dropdown-arrow:before{content:" ";border-bottom:5px solid #f5f5f5;border-left:5px solid transparent;border-right:5px solid transparent;position:absolute;display:block;top:-4px;left:50%;margin-left:-3px}.wy-dropdown-arrow.wy-dropdown-arrow-left:before{left:11px}.wy-form-stacked select{display:block}.wy-form-aligned .wy-help-inline,.wy-form-aligned input,.wy-form-aligned label,.wy-form-aligned select,.wy-form-aligned textarea{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.wy-form-aligned .wy-control-group>label{display:inline-block;vertical-align:middle;width:10em;margin:6px 12px 0 0;float:left}.wy-form-aligned .wy-control{float:left}.wy-form-aligned .wy-control label{display:block}.wy-form-aligned .wy-control select{margin-top:6px}fieldset{margin:0}fieldset,legend{border:0;padding:0}legend{width:100%;white-space:normal;margin-bottom:24px;font-size:150%;*margin-left:-7px}label,legend{display:block}label{margin:0 0 .3125em;color:#333;font-size:90%}input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}.wy-control-group{margin-bottom:24px;max-width:1200px;margin-left:auto;margin-right:auto;*zoom:1}.wy-control-group:after,.wy-control-group:before{display:table;content:""}.wy-control-group:after{clear:both}.wy-control-group.wy-control-group-required>label:after{content:" *";color:#e74c3c}.wy-control-group .wy-form-full,.wy-control-group .wy-form-halves,.wy-control-group .wy-form-thirds{padding-bottom:12px}.wy-control-group .wy-form-full input[type=color],.wy-control-group .wy-form-full input[type=date],.wy-control-group .wy-form-full input[type=datetime-local],.wy-control-group .wy-form-full input[type=datetime],.wy-control-group .wy-form-full input[type=email],.wy-control-group .wy-form-full input[type=month],.wy-control-group .wy-form-full input[type=number],.wy-control-group .wy-form-full input[type=password],.wy-control-group .wy-form-full input[type=search],.wy-control-group .wy-form-full input[type=tel],.wy-control-group .wy-form-full input[type=text],.wy-control-group .wy-form-full input[type=time],.wy-control-group .wy-form-full input[type=url],.wy-control-group .wy-form-full input[type=week],.wy-control-group .wy-form-full select,.wy-control-group .wy-form-halves input[type=color],.wy-control-group .wy-form-halves input[type=date],.wy-control-group .wy-form-halves input[type=datetime-local],.wy-control-group .wy-form-halves input[type=datetime],.wy-control-group .wy-form-halves input[type=email],.wy-control-group .wy-form-halves input[type=month],.wy-control-group .wy-form-halves input[type=number],.wy-control-group .wy-form-halves input[type=password],.wy-control-group .wy-form-halves input[type=search],.wy-control-group .wy-form-halves input[type=tel],.wy-control-group .wy-form-halves input[type=text],.wy-control-group .wy-form-halves input[type=time],.wy-control-group .wy-form-halves input[type=url],.wy-control-group .wy-form-halves input[type=week],.wy-control-group .wy-form-halves select,.wy-control-group .wy-form-thirds input[type=color],.wy-control-group .wy-form-thirds input[type=date],.wy-control-group .wy-form-thirds input[type=datetime-local],.wy-control-group .wy-form-thirds input[type=datetime],.wy-control-group .wy-form-thirds input[type=email],.wy-control-group .wy-form-thirds input[type=month],.wy-control-group .wy-form-thirds input[type=number],.wy-control-group .wy-form-thirds input[type=password],.wy-control-group .wy-form-thirds input[type=search],.wy-control-group .wy-form-thirds input[type=tel],.wy-control-group .wy-form-thirds input[type=text],.wy-control-group .wy-form-thirds input[type=time],.wy-control-group .wy-form-thirds input[type=url],.wy-control-group .wy-form-thirds input[type=week],.wy-control-group .wy-form-thirds select{width:100%}.wy-control-group .wy-form-full{float:left;display:block;width:100%;margin-right:0}.wy-control-group .wy-form-full:last-child{margin-right:0}.wy-control-group .wy-form-halves{float:left;display:block;margin-right:2.35765%;width:48.82117%}.wy-control-group .wy-form-halves:last-child,.wy-control-group .wy-form-halves:nth-of-type(2n){margin-right:0}.wy-control-group .wy-form-halves:nth-of-type(odd){clear:left}.wy-control-group .wy-form-thirds{float:left;display:block;margin-right:2.35765%;width:31.76157%}.wy-control-group .wy-form-thirds:last-child,.wy-control-group .wy-form-thirds:nth-of-type(3n){margin-right:0}.wy-control-group .wy-form-thirds:nth-of-type(3n+1){clear:left}.wy-control-group.wy-control-group-no-input .wy-control,.wy-control-no-input{margin:6px 0 0;font-size:90%}.wy-control-no-input{display:inline-block}.wy-control-group.fluid-input input[type=color],.wy-control-group.fluid-input input[type=date],.wy-control-group.fluid-input input[type=datetime-local],.wy-control-group.fluid-input input[type=datetime],.wy-control-group.fluid-input input[type=email],.wy-control-group.fluid-input input[type=month],.wy-control-group.fluid-input input[type=number],.wy-control-group.fluid-input input[type=password],.wy-control-group.fluid-input input[type=search],.wy-control-group.fluid-input input[type=tel],.wy-control-group.fluid-input input[type=text],.wy-control-group.fluid-input input[type=time],.wy-control-group.fluid-input input[type=url],.wy-control-group.fluid-input input[type=week]{width:100%}.wy-form-message-inline{padding-left:.3em;color:#666;font-size:90%}.wy-form-message{display:block;color:#999;font-size:70%;margin-top:.3125em;font-style:italic}.wy-form-message p{font-size:inherit;font-style:italic;margin-bottom:6px}.wy-form-message p:last-child{margin-bottom:0}input{line-height:normal}input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;*overflow:visible}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{-webkit-appearance:none;padding:6px;display:inline-block;border:1px solid #ccc;font-size:80%;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;box-shadow:inset 0 1px 3px #ddd;border-radius:0;-webkit-transition:border .3s linear;-moz-transition:border .3s linear;transition:border .3s linear}input[type=datetime-local]{padding:.34375em .625em}input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{padding:0;margin-right:.3125em;*height:13px;*width:13px}input[type=checkbox],input[type=radio],input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus{outline:0;outline:thin dotted\9;border-color:#333}input.no-focus:focus{border-color:#ccc!important}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:thin dotted #333;outline:1px auto #129fea}input[type=color][disabled],input[type=date][disabled],input[type=datetime-local][disabled],input[type=datetime][disabled],input[type=email][disabled],input[type=month][disabled],input[type=number][disabled],input[type=password][disabled],input[type=search][disabled],input[type=tel][disabled],input[type=text][disabled],input[type=time][disabled],input[type=url][disabled],input[type=week][disabled]{cursor:not-allowed;background-color:#fafafa}input:focus:invalid,select:focus:invalid,textarea:focus:invalid{color:#e74c3c;border:1px solid #e74c3c}input:focus:invalid:focus,select:focus:invalid:focus,textarea:focus:invalid:focus{border-color:#e74c3c}input[type=checkbox]:focus:invalid:focus,input[type=file]:focus:invalid:focus,input[type=radio]:focus:invalid:focus{outline-color:#e74c3c}input.wy-input-large{padding:12px;font-size:100%}textarea{overflow:auto;vertical-align:top;width:100%;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif}select,textarea{padding:.5em .625em;display:inline-block;border:1px solid #ccc;font-size:80%;box-shadow:inset 0 1px 3px #ddd;-webkit-transition:border .3s linear;-moz-transition:border .3s linear;transition:border .3s linear}select{border:1px solid #ccc;background-color:#fff}select[multiple]{height:auto}select:focus,textarea:focus{outline:0}input[readonly],select[disabled],select[readonly],textarea[disabled],textarea[readonly]{cursor:not-allowed;background-color:#fafafa}input[type=checkbox][disabled],input[type=radio][disabled]{cursor:not-allowed}.wy-checkbox,.wy-radio{margin:6px 0;color:#404040;display:block}.wy-checkbox input,.wy-radio input{vertical-align:baseline}.wy-form-message-inline{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.wy-input-prefix,.wy-input-suffix{white-space:nowrap;padding:6px}.wy-input-prefix .wy-input-context,.wy-input-suffix .wy-input-context{line-height:27px;padding:0 8px;display:inline-block;font-size:80%;background-color:#f3f6f6;border:1px solid #ccc;color:#999}.wy-input-suffix .wy-input-context{border-left:0}.wy-input-prefix .wy-input-context{border-right:0}.wy-switch{position:relative;display:block;height:24px;margin-top:12px;cursor:pointer}.wy-switch:before{left:0;top:0;width:36px;height:12px;background:#ccc}.wy-switch:after,.wy-switch:before{position:absolute;content:"";display:block;border-radius:4px;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.wy-switch:after{width:18px;height:18px;background:#999;left:-3px;top:-3px}.wy-switch span{position:absolute;left:48px;display:block;font-size:12px;color:#ccc;line-height:1}.wy-switch.active:before{background:#1e8449}.wy-switch.active:after{left:24px;background:#27ae60}.wy-switch.disabled{cursor:not-allowed;opacity:.8}.wy-control-group.wy-control-group-error .wy-form-message,.wy-control-group.wy-control-group-error>label{color:#e74c3c}.wy-control-group.wy-control-group-error input[type=color],.wy-control-group.wy-control-group-error input[type=date],.wy-control-group.wy-control-group-error input[type=datetime-local],.wy-control-group.wy-control-group-error input[type=datetime],.wy-control-group.wy-control-group-error input[type=email],.wy-control-group.wy-control-group-error input[type=month],.wy-control-group.wy-control-group-error input[type=number],.wy-control-group.wy-control-group-error input[type=password],.wy-control-group.wy-control-group-error input[type=search],.wy-control-group.wy-control-group-error input[type=tel],.wy-control-group.wy-control-group-error input[type=text],.wy-control-group.wy-control-group-error input[type=time],.wy-control-group.wy-control-group-error input[type=url],.wy-control-group.wy-control-group-error input[type=week],.wy-control-group.wy-control-group-error textarea{border:1px solid #e74c3c}.wy-inline-validate{white-space:nowrap}.wy-inline-validate .wy-input-context{padding:.5em .625em;display:inline-block;font-size:80%}.wy-inline-validate.wy-inline-validate-success .wy-input-context{color:#27ae60}.wy-inline-validate.wy-inline-validate-danger .wy-input-context{color:#e74c3c}.wy-inline-validate.wy-inline-validate-warning .wy-input-context{color:#e67e22}.wy-inline-validate.wy-inline-validate-info .wy-input-context{color:#2980b9}.rotate-90{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.rotate-180{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.rotate-270{-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}.mirror{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);-o-transform:scaleX(-1);transform:scaleX(-1)}.mirror.rotate-90{-webkit-transform:scaleX(-1) rotate(90deg);-moz-transform:scaleX(-1) rotate(90deg);-ms-transform:scaleX(-1) rotate(90deg);-o-transform:scaleX(-1) rotate(90deg);transform:scaleX(-1) rotate(90deg)}.mirror.rotate-180{-webkit-transform:scaleX(-1) rotate(180deg);-moz-transform:scaleX(-1) rotate(180deg);-ms-transform:scaleX(-1) rotate(180deg);-o-transform:scaleX(-1) rotate(180deg);transform:scaleX(-1) rotate(180deg)}.mirror.rotate-270{-webkit-transform:scaleX(-1) rotate(270deg);-moz-transform:scaleX(-1) rotate(270deg);-ms-transform:scaleX(-1) rotate(270deg);-o-transform:scaleX(-1) rotate(270deg);transform:scaleX(-1) rotate(270deg)}@media only screen and (max-width:480px){.wy-form button[type=submit]{margin:.7em 0 0}.wy-form input[type=color],.wy-form input[type=date],.wy-form input[type=datetime-local],.wy-form input[type=datetime],.wy-form input[type=email],.wy-form input[type=month],.wy-form input[type=number],.wy-form input[type=password],.wy-form input[type=search],.wy-form input[type=tel],.wy-form input[type=text],.wy-form input[type=time],.wy-form input[type=url],.wy-form input[type=week],.wy-form label{margin-bottom:.3em;display:block}.wy-form input[type=color],.wy-form input[type=date],.wy-form input[type=datetime-local],.wy-form input[type=datetime],.wy-form input[type=email],.wy-form input[type=month],.wy-form input[type=number],.wy-form input[type=password],.wy-form input[type=search],.wy-form input[type=tel],.wy-form input[type=time],.wy-form input[type=url],.wy-form input[type=week]{margin-bottom:0}.wy-form-aligned .wy-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.wy-form-aligned .wy-control{margin:1.5em 0 0}.wy-form-message,.wy-form-message-inline,.wy-form .wy-help-inline{display:block;font-size:80%;padding:6px 0}}@media screen and (max-width:768px){.tablet-hide{display:none}}@media screen and (max-width:480px){.mobile-hide{display:none}}.float-left{float:left}.float-right{float:right}.full-width{width:100%}.rst-content table.docutils,.rst-content table.field-list,.wy-table{border-collapse:collapse;border-spacing:0;empty-cells:show;margin-bottom:24px}.rst-content table.docutils caption,.rst-content table.field-list caption,.wy-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.rst-content table.docutils td,.rst-content table.docutils th,.rst-content table.field-list td,.rst-content table.field-list th,.wy-table td,.wy-table th{font-size:90%;margin:0;overflow:visible;padding:8px 16px}.rst-content table.docutils td:first-child,.rst-content table.docutils th:first-child,.rst-content table.field-list td:first-child,.rst-content table.field-list th:first-child,.wy-table td:first-child,.wy-table th:first-child{border-left-width:0}.rst-content table.docutils thead,.rst-content table.field-list thead,.wy-table thead{color:#000;text-align:left;vertical-align:bottom;white-space:nowrap}.rst-content table.docutils thead th,.rst-content table.field-list thead th,.wy-table thead th{font-weight:700;border-bottom:2px solid #e1e4e5}.rst-content table.docutils td,.rst-content table.field-list td,.wy-table td{background-color:transparent;vertical-align:middle}.rst-content table.docutils td p,.rst-content table.field-list td p,.wy-table td p{line-height:18px}.rst-content table.docutils td p:last-child,.rst-content table.field-list td p:last-child,.wy-table td p:last-child{margin-bottom:0}.rst-content table.docutils .wy-table-cell-min,.rst-content table.field-list .wy-table-cell-min,.wy-table .wy-table-cell-min{width:1%;padding-right:0}.rst-content table.docutils .wy-table-cell-min input[type=checkbox],.rst-content table.field-list .wy-table-cell-min input[type=checkbox],.wy-table .wy-table-cell-min input[type=checkbox]{margin:0}.wy-table-secondary{color:grey;font-size:90%}.wy-table-tertiary{color:grey;font-size:80%}.rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td,.wy-table-backed,.wy-table-odd td,.wy-table-striped tr:nth-child(2n-1) td{background-color:#f3f6f6}.rst-content table.docutils,.wy-table-bordered-all{border:1px solid #e1e4e5}.rst-content table.docutils td,.wy-table-bordered-all td{border-bottom:1px solid #e1e4e5;border-left:1px solid #e1e4e5}.rst-content table.docutils tbody>tr:last-child td,.wy-table-bordered-all tbody>tr:last-child td{border-bottom-width:0}.wy-table-bordered{border:1px solid #e1e4e5}.wy-table-bordered-rows td{border-bottom:1px solid #e1e4e5}.wy-table-bordered-rows tbody>tr:last-child td{border-bottom-width:0}.wy-table-horizontal td,.wy-table-horizontal th{border-width:0 0 1px;border-bottom:1px solid #e1e4e5}.wy-table-horizontal tbody>tr:last-child td{border-bottom-width:0}.wy-table-responsive{margin-bottom:24px;max-width:100%;overflow:auto}.wy-table-responsive table{margin-bottom:0!important}.wy-table-responsive table td,.wy-table-responsive table th{white-space:nowrap}a{color:#2980b9;text-decoration:none;cursor:pointer}a:hover{color:#3091d1}a:visited{color:#9b59b6}html{height:100%}body,html{overflow-x:hidden}body{font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;font-weight:400;color:#404040;min-height:100%;background:#edf0f2}.wy-text-left{text-align:left}.wy-text-center{text-align:center}.wy-text-right{text-align:right}.wy-text-large{font-size:120%}.wy-text-normal{font-size:100%}.wy-text-small,small{font-size:80%}.wy-text-strike{text-decoration:line-through}.wy-text-warning{color:#e67e22!important}a.wy-text-warning:hover{color:#eb9950!important}.wy-text-info{color:#2980b9!important}a.wy-text-info:hover{color:#409ad5!important}.wy-text-success{color:#27ae60!important}a.wy-text-success:hover{color:#36d278!important}.wy-text-danger{color:#e74c3c!important}a.wy-text-danger:hover{color:#ed7669!important}.wy-text-neutral{color:#404040!important}a.wy-text-neutral:hover{color:#595959!important}.rst-content .toctree-wrapper>p.caption,h1,h2,h3,h4,h5,h6,legend{margin-top:0;font-weight:700;font-family:Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif}p{line-height:24px;font-size:16px;margin:0 0 24px}h1{font-size:175%}.rst-content .toctree-wrapper>p.caption,h2{font-size:150%}h3{font-size:125%}h4{font-size:115%}h5{font-size:110%}h6{font-size:100%}hr{display:block;height:1px;border:0;border-top:1px solid #e1e4e5;margin:24px 0;padding:0}.rst-content code,.rst-content tt,code{white-space:nowrap;max-width:100%;background:#fff;border:1px solid #e1e4e5;font-size:75%;padding:0 5px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;color:#e74c3c;overflow-x:auto}.rst-content tt.code-large,code.code-large{font-size:90%}.rst-content .section ul,.rst-content .toctree-wrapper ul,.wy-plain-list-disc,article ul{list-style:disc;line-height:24px;margin-bottom:24px}.rst-content .section ul li,.rst-content .toctree-wrapper ul li,.wy-plain-list-disc li,article ul li{list-style:disc;margin-left:24px}.rst-content .section ul li p:last-child,.rst-content .section ul li ul,.rst-content .toctree-wrapper ul li p:last-child,.rst-content .toctree-wrapper ul li ul,.wy-plain-list-disc li p:last-child,.wy-plain-list-disc li ul,article ul li p:last-child,article ul li ul{margin-bottom:0}.rst-content .section ul li li,.rst-content .toctree-wrapper ul li li,.wy-plain-list-disc li li,article ul li li{list-style:circle}.rst-content .section ul li li li,.rst-content .toctree-wrapper ul li li li,.wy-plain-list-disc li li li,article ul li li li{list-style:square}.rst-content .section ul li ol li,.rst-content .toctree-wrapper ul li ol li,.wy-plain-list-disc li ol li,article ul li ol li{list-style:decimal}.rst-content .section ol,.rst-content ol.arabic,.wy-plain-list-decimal,article ol{list-style:decimal;line-height:24px;margin-bottom:24px}.rst-content .section ol li,.rst-content ol.arabic li,.wy-plain-list-decimal li,article ol li{list-style:decimal;margin-left:24px}.rst-content .section ol li p:last-child,.rst-content .section ol li ul,.rst-content ol.arabic li p:last-child,.rst-content ol.arabic li ul,.wy-plain-list-decimal li p:last-child,.wy-plain-list-decimal li ul,article ol li p:last-child,article ol li ul{margin-bottom:0}.rst-content .section ol li ul li,.rst-content ol.arabic li ul li,.wy-plain-list-decimal li ul li,article ol li ul li{list-style:disc}.wy-breadcrumbs{*zoom:1}.wy-breadcrumbs:after,.wy-breadcrumbs:before{display:table;content:""}.wy-breadcrumbs:after{clear:both}.wy-breadcrumbs li{display:inline-block}.wy-breadcrumbs li.wy-breadcrumbs-aside{float:right}.wy-breadcrumbs li a{display:inline-block;padding:5px}.wy-breadcrumbs li a:first-child{padding-left:0}.rst-content .wy-breadcrumbs li tt,.wy-breadcrumbs li .rst-content tt,.wy-breadcrumbs li code{padding:5px;border:none;background:none}.rst-content .wy-breadcrumbs li tt.literal,.wy-breadcrumbs li .rst-content tt.literal,.wy-breadcrumbs li code.literal{color:#404040}.wy-breadcrumbs-extra{margin-bottom:0;color:#b3b3b3;font-size:80%;display:inline-block}@media screen and (max-width:480px){.wy-breadcrumbs-extra,.wy-breadcrumbs li.wy-breadcrumbs-aside{display:none}}@media print{.wy-breadcrumbs li.wy-breadcrumbs-aside{display:none}}html{font-size:16px}.wy-affix{position:fixed;top:1.618em}.wy-menu a:hover{text-decoration:none}.wy-menu-horiz{*zoom:1}.wy-menu-horiz:after,.wy-menu-horiz:before{display:table;content:""}.wy-menu-horiz:after{clear:both}.wy-menu-horiz li,.wy-menu-horiz ul{display:inline-block}.wy-menu-horiz li:hover{background:hsla(0,0%,100%,.1)}.wy-menu-horiz li.divide-left{border-left:1px solid #404040}.wy-menu-horiz li.divide-right{border-right:1px solid #404040}.wy-menu-horiz a{height:32px;display:inline-block;line-height:32px;padding:0 16px}.wy-menu-vertical{width:300px}.wy-menu-vertical header,.wy-menu-vertical p.caption{color:#55a5d9;height:32px;line-height:32px;padding:0 1.618em;margin:12px 0 0;display:block;font-weight:700;text-transform:uppercase;font-size:85%;white-space:nowrap}.wy-menu-vertical ul{margin-bottom:0}.wy-menu-vertical li.divide-top{border-top:1px solid #404040}.wy-menu-vertical li.divide-bottom{border-bottom:1px solid #404040}.wy-menu-vertical li.current{background:#e3e3e3}.wy-menu-vertical li.current a{color:grey;border-right:1px solid #c9c9c9;padding:.4045em 2.427em}.wy-menu-vertical li.current a:hover{background:#d6d6d6}.rst-content .wy-menu-vertical li tt,.wy-menu-vertical li .rst-content tt,.wy-menu-vertical li code{border:none;background:inherit;color:inherit;padding-left:0;padding-right:0}.wy-menu-vertical li span.toctree-expand{display:block;float:left;margin-left:-1.2em;font-size:.8em;line-height:1.6em;color:#4d4d4d}.wy-menu-vertical li.current>a,.wy-menu-vertical li.on a{color:#404040;font-weight:700;position:relative;background:#fcfcfc;border:none;padding:.4045em 1.618em}.wy-menu-vertical li.current>a:hover,.wy-menu-vertical li.on a:hover{background:#fcfcfc}.wy-menu-vertical li.current>a:hover span.toctree-expand,.wy-menu-vertical li.on a:hover span.toctree-expand{color:grey}.wy-menu-vertical li.current>a span.toctree-expand,.wy-menu-vertical li.on a span.toctree-expand{display:block;font-size:.8em;line-height:1.6em;color:#333}.wy-menu-vertical li.toctree-l1.current>a{border-bottom:1px solid #c9c9c9;border-top:1px solid #c9c9c9}.wy-menu-vertical .toctree-l1.current .toctree-l2>ul,.wy-menu-vertical .toctree-l2.current .toctree-l3>ul,.wy-menu-vertical .toctree-l3.current .toctree-l4>ul,.wy-menu-vertical .toctree-l4.current .toctree-l5>ul,.wy-menu-vertical .toctree-l5.current .toctree-l6>ul,.wy-menu-vertical .toctree-l6.current .toctree-l7>ul,.wy-menu-vertical .toctree-l7.current .toctree-l8>ul,.wy-menu-vertical .toctree-l8.current .toctree-l9>ul,.wy-menu-vertical .toctree-l9.current .toctree-l10>ul,.wy-menu-vertical .toctree-l10.current .toctree-l11>ul{display:none}.wy-menu-vertical .toctree-l1.current .current.toctree-l2>ul,.wy-menu-vertical .toctree-l2.current .current.toctree-l3>ul,.wy-menu-vertical .toctree-l3.current .current.toctree-l4>ul,.wy-menu-vertical .toctree-l4.current .current.toctree-l5>ul,.wy-menu-vertical .toctree-l5.current .current.toctree-l6>ul,.wy-menu-vertical .toctree-l6.current .current.toctree-l7>ul,.wy-menu-vertical .toctree-l7.current .current.toctree-l8>ul,.wy-menu-vertical .toctree-l8.current .current.toctree-l9>ul,.wy-menu-vertical .toctree-l9.current .current.toctree-l10>ul,.wy-menu-vertical .toctree-l10.current .current.toctree-l11>ul{display:block}.wy-menu-vertical li.toctree-l3,.wy-menu-vertical li.toctree-l4{font-size:.9em}.wy-menu-vertical li.toctree-l2 a,.wy-menu-vertical li.toctree-l3 a,.wy-menu-vertical li.toctree-l4 a,.wy-menu-vertical li.toctree-l5 a,.wy-menu-vertical li.toctree-l6 a,.wy-menu-vertical li.toctree-l7 a,.wy-menu-vertical li.toctree-l8 a,.wy-menu-vertical li.toctree-l9 a,.wy-menu-vertical li.toctree-l10 a{color:#404040}.wy-menu-vertical li.toctree-l2 a:hover span.toctree-expand,.wy-menu-vertical li.toctree-l3 a:hover span.toctree-expand,.wy-menu-vertical li.toctree-l4 a:hover span.toctree-expand,.wy-menu-vertical li.toctree-l5 a:hover span.toctree-expand,.wy-menu-vertical li.toctree-l6 a:hover span.toctree-expand,.wy-menu-vertical li.toctree-l7 a:hover span.toctree-expand,.wy-menu-vertical li.toctree-l8 a:hover span.toctree-expand,.wy-menu-vertical li.toctree-l9 a:hover span.toctree-expand,.wy-menu-vertical li.toctree-l10 a:hover span.toctree-expand{color:grey}.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a,.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a,.wy-menu-vertical li.toctree-l4.current li.toctree-l5>a,.wy-menu-vertical li.toctree-l5.current li.toctree-l6>a,.wy-menu-vertical li.toctree-l6.current li.toctree-l7>a,.wy-menu-vertical li.toctree-l7.current li.toctree-l8>a,.wy-menu-vertical li.toctree-l8.current li.toctree-l9>a,.wy-menu-vertical li.toctree-l9.current li.toctree-l10>a,.wy-menu-vertical li.toctree-l10.current li.toctree-l11>a{display:block}.wy-menu-vertical li.toctree-l2.current>a{padding:.4045em 2.427em}.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a,.wy-menu-vertical li.toctree-l3.current>a{padding:.4045em 4.045em}.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a,.wy-menu-vertical li.toctree-l4.current>a{padding:.4045em 5.663em}.wy-menu-vertical li.toctree-l4.current li.toctree-l5>a,.wy-menu-vertical li.toctree-l5.current>a{padding:.4045em 7.281em}.wy-menu-vertical li.toctree-l5.current li.toctree-l6>a,.wy-menu-vertical li.toctree-l6.current>a{padding:.4045em 8.899em}.wy-menu-vertical li.toctree-l6.current li.toctree-l7>a,.wy-menu-vertical li.toctree-l7.current>a{padding:.4045em 10.517em}.wy-menu-vertical li.toctree-l7.current li.toctree-l8>a,.wy-menu-vertical li.toctree-l8.current>a{padding:.4045em 12.135em}.wy-menu-vertical li.toctree-l8.current li.toctree-l9>a,.wy-menu-vertical li.toctree-l9.current>a{padding:.4045em 13.753em}.wy-menu-vertical li.toctree-l9.current li.toctree-l10>a,.wy-menu-vertical li.toctree-l10.current>a{padding:.4045em 15.371em}.wy-menu-vertical li.toctree-l10.current li.toctree-l11>a{padding:.4045em 16.989em}.wy-menu-vertical li.toctree-l2.current>a,.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a{background:#c9c9c9}.wy-menu-vertical li.toctree-l2 span.toctree-expand{color:#a3a3a3}.wy-menu-vertical li.toctree-l3.current>a,.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a{background:#bdbdbd}.wy-menu-vertical li.toctree-l3 span.toctree-expand{color:#969696}.wy-menu-vertical li.current ul{display:block}.wy-menu-vertical li ul{margin-bottom:0;display:none}.wy-menu-vertical li ul li a{margin-bottom:0;color:#d9d9d9;font-weight:400}.wy-menu-vertical a{line-height:18px;padding:.4045em 1.618em;display:block;position:relative;font-size:90%;color:#d9d9d9}.wy-menu-vertical a:hover{background-color:#4e4a4a;cursor:pointer}.wy-menu-vertical a:hover span.toctree-expand{color:#d9d9d9}.wy-menu-vertical a:active{background-color:#2980b9;cursor:pointer;color:#fff}.wy-menu-vertical a:active span.toctree-expand{color:#fff}.wy-side-nav-search{display:block;width:300px;padding:.809em;margin-bottom:.809em;z-index:200;background-color:#2980b9;text-align:center;color:#fcfcfc}.wy-side-nav-search input[type=text]{width:100%;border-radius:50px;padding:6px 12px;border-color:#2472a4}.wy-side-nav-search img{display:block;margin:auto auto .809em;height:45px;width:45px;background-color:#2980b9;padding:5px;border-radius:100%}.wy-side-nav-search .wy-dropdown>a,.wy-side-nav-search>a{color:#fcfcfc;font-size:100%;font-weight:700;display:inline-block;padding:4px 6px;margin-bottom:.809em}.wy-side-nav-search .wy-dropdown>a:hover,.wy-side-nav-search>a:hover{background:hsla(0,0%,100%,.1)}.wy-side-nav-search .wy-dropdown>a img.logo,.wy-side-nav-search>a img.logo{display:block;margin:0 auto;height:auto;width:auto;border-radius:0;max-width:100%;background:transparent}.wy-side-nav-search .wy-dropdown>a.icon img.logo,.wy-side-nav-search>a.icon img.logo{margin-top:.85em}.wy-side-nav-search>div.version{margin-top:-.4045em;margin-bottom:.809em;font-weight:400;color:hsla(0,0%,100%,.3)}.wy-nav .wy-menu-vertical header{color:#2980b9}.wy-nav .wy-menu-vertical a{color:#b3b3b3}.wy-nav .wy-menu-vertical a:hover{background-color:#2980b9;color:#fff}[data-menu-wrap]{-webkit-transition:all .2s ease-in;-moz-transition:all .2s ease-in;transition:all .2s ease-in;position:absolute;opacity:1;width:100%;opacity:0}[data-menu-wrap].move-center{left:0;right:auto;opacity:1}[data-menu-wrap].move-left{right:auto;left:-100%;opacity:0}[data-menu-wrap].move-right{right:-100%;left:auto;opacity:0}.wy-body-for-nav{background:#fcfcfc}.wy-grid-for-nav{position:absolute;width:100%;height:100%}.wy-nav-side{position:fixed;top:0;bottom:0;left:0;padding-bottom:2em;width:300px;overflow-x:hidden;overflow-y:hidden;min-height:100%;color:#9b9b9b;background:#343131;z-index:200}.wy-side-scroll{width:320px;position:relative;overflow-x:hidden;overflow-y:scroll;height:100%}.wy-nav-top{display:none;background:#2980b9;color:#fff;padding:.4045em .809em;position:relative;line-height:50px;text-align:center;font-size:100%;*zoom:1}.wy-nav-top:after,.wy-nav-top:before{display:table;content:""}.wy-nav-top:after{clear:both}.wy-nav-top a{color:#fff;font-weight:700}.wy-nav-top img{margin-right:12px;height:45px;width:45px;background-color:#2980b9;padding:5px;border-radius:100%}.wy-nav-top i{font-size:30px;float:left;cursor:pointer;padding-top:inherit}.wy-nav-content-wrap{margin-left:300px;background:#fcfcfc;min-height:100%}.wy-nav-content{padding:1.618em 3.236em;height:100%;max-width:800px;margin:auto}.wy-body-mask{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.2);display:none;z-index:499}.wy-body-mask.on{display:block}footer{color:grey}footer p{margin-bottom:12px}.rst-content footer span.commit tt,footer span.commit .rst-content tt,footer span.commit code{padding:0;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;font-size:1em;background:none;border:none;color:grey}.rst-footer-buttons{*zoom:1}.rst-footer-buttons:after,.rst-footer-buttons:before{width:100%;display:table;content:""}.rst-footer-buttons:after{clear:both}.rst-breadcrumbs-buttons{margin-top:12px;*zoom:1}.rst-breadcrumbs-buttons:after,.rst-breadcrumbs-buttons:before{display:table;content:""}.rst-breadcrumbs-buttons:after{clear:both}#search-results .search li{margin-bottom:24px;border-bottom:1px solid #e1e4e5;padding-bottom:24px}#search-results .search li:first-child{border-top:1px solid #e1e4e5;padding-top:24px}#search-results .search li a{font-size:120%;margin-bottom:12px;display:inline-block}#search-results .context{color:grey;font-size:90%}.genindextable li>ul{margin-left:24px}@media screen and (max-width:768px){.wy-body-for-nav{background:#fcfcfc}.wy-nav-top{display:block}.wy-nav-side{left:-300px}.wy-nav-side.shift{width:85%;left:0}.wy-menu.wy-menu-vertical,.wy-side-nav-search,.wy-side-scroll{width:auto}.wy-nav-content-wrap{margin-left:0}.wy-nav-content-wrap .wy-nav-content{padding:1.618em}.wy-nav-content-wrap.shift{position:fixed;min-width:100%;left:85%;top:0;height:100%;overflow:hidden}}@media screen and (min-width:1100px){.wy-nav-content-wrap{background:rgba(0,0,0,.05)}.wy-nav-content{margin:0;background:#fcfcfc}}@media print{.rst-versions,.wy-nav-side,footer{display:none}.wy-nav-content-wrap{margin-left:0}}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;z-index:400}.rst-versions a{color:#2980b9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27ae60;*zoom:1}.rst-versions .rst-current-version:after,.rst-versions .rst-current-version:before{display:table;content:""}.rst-versions .rst-current-version:after{clear:both}.rst-content .code-block-caption .rst-versions .rst-current-version .headerlink,.rst-content .rst-versions .rst-current-version .admonition-title,.rst-content code.download .rst-versions .rst-current-version span:first-child,.rst-content dl dt .rst-versions .rst-current-version .headerlink,.rst-content h1 .rst-versions .rst-current-version .headerlink,.rst-content h2 .rst-versions .rst-current-version .headerlink,.rst-content h3 .rst-versions .rst-current-version .headerlink,.rst-content h4 .rst-versions .rst-current-version .headerlink,.rst-content h5 .rst-versions .rst-current-version .headerlink,.rst-content h6 .rst-versions .rst-current-version .headerlink,.rst-content p.caption .rst-versions .rst-current-version .headerlink,.rst-content table>caption .rst-versions .rst-current-version .headerlink,.rst-content tt.download .rst-versions .rst-current-version span:first-child,.rst-versions .rst-current-version .fa,.rst-versions .rst-current-version .icon,.rst-versions .rst-current-version .rst-content .admonition-title,.rst-versions .rst-current-version .rst-content .code-block-caption .headerlink,.rst-versions .rst-current-version .rst-content code.download span:first-child,.rst-versions .rst-current-version .rst-content dl dt .headerlink,.rst-versions .rst-current-version .rst-content h1 .headerlink,.rst-versions .rst-current-version .rst-content h2 .headerlink,.rst-versions .rst-current-version .rst-content h3 .headerlink,.rst-versions .rst-current-version .rst-content h4 .headerlink,.rst-versions .rst-current-version .rst-content h5 .headerlink,.rst-versions .rst-current-version .rst-content h6 .headerlink,.rst-versions .rst-current-version .rst-content p.caption .headerlink,.rst-versions .rst-current-version .rst-content table>caption .headerlink,.rst-versions .rst-current-version .rst-content tt.download span:first-child,.rst-versions .rst-current-version .wy-menu-vertical li span.toctree-expand,.wy-menu-vertical li .rst-versions .rst-current-version span.toctree-expand{color:#fcfcfc}.rst-versions .rst-current-version .fa-book,.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#e74c3c;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#f1c40f;color:#000}.rst-versions.shift-up{height:auto;max-height:100%;overflow-y:scroll}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:grey;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:1px solid #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px;max-height:90%}.rst-versions.rst-badge .fa-book,.rst-versions.rst-badge .icon-book{float:none;line-height:30px}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book,.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge>.rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width:768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}}.rst-content img{max-width:100%;height:auto}.rst-content div.figure{margin-bottom:24px}.rst-content div.figure p.caption{font-style:italic}.rst-content div.figure p:last-child.caption{margin-bottom:0}.rst-content div.figure.align-center{text-align:center}.rst-content .section>a>img,.rst-content .section>img{margin-bottom:24px}.rst-content abbr[title]{text-decoration:none}.rst-content.style-external-links a.reference.external:after{font-family:FontAwesome;content:"\f08e";color:#b3b3b3;vertical-align:super;font-size:60%;margin:0 .2em}.rst-content blockquote{margin-left:24px;line-height:24px;margin-bottom:24px}.rst-content pre.literal-block{white-space:pre;margin:0;padding:12px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;display:block;overflow:auto}.rst-content div[class^=highlight],.rst-content pre.literal-block{border:1px solid #e1e4e5;overflow-x:auto;margin:1px 0 24px}.rst-content div[class^=highlight] div[class^=highlight],.rst-content pre.literal-block div[class^=highlight]{padding:0;border:none;margin:0}.rst-content div[class^=highlight] td.code{width:100%}.rst-content .linenodiv pre{border-right:1px solid #e6e9ea;margin:0;padding:12px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;user-select:none;pointer-events:none}.rst-content div[class^=highlight] pre{white-space:pre;margin:0;padding:12px;display:block;overflow:auto}.rst-content div[class^=highlight] pre .hll{display:block;margin:0 -12px;padding:0 12px}.rst-content .linenodiv pre,.rst-content div[class^=highlight] pre,.rst-content pre.literal-block{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;font-size:12px;line-height:1.4}.rst-content div.highlight .gp{user-select:none;pointer-events:none}.rst-content .code-block-caption{font-style:italic;font-size:85%;line-height:1;padding:1em 0;text-align:center}@media print{.rst-content .codeblock,.rst-content div[class^=highlight],.rst-content div[class^=highlight] pre{white-space:pre-wrap}}.rst-content .admonition,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning{clear:both}.rst-content .admonition-todo .last,.rst-content .admonition-todo>:last-child,.rst-content .admonition .last,.rst-content .admonition>:last-child,.rst-content .attention .last,.rst-content .attention>:last-child,.rst-content .caution .last,.rst-content .caution>:last-child,.rst-content .danger .last,.rst-content .danger>:last-child,.rst-content .error .last,.rst-content .error>:last-child,.rst-content .hint .last,.rst-content .hint>:last-child,.rst-content .important .last,.rst-content .important>:last-child,.rst-content .note .last,.rst-content .note>:last-child,.rst-content .seealso .last,.rst-content .seealso>:last-child,.rst-content .tip .last,.rst-content .tip>:last-child,.rst-content .warning .last,.rst-content .warning>:last-child{margin-bottom:0}.rst-content .admonition-title:before{margin-right:4px}.rst-content .admonition table{border-color:rgba(0,0,0,.1)}.rst-content .admonition table td,.rst-content .admonition table th{background:transparent!important;border-color:rgba(0,0,0,.1)!important}.rst-content .section ol.loweralpha,.rst-content .section ol.loweralpha>li{list-style:lower-alpha}.rst-content .section ol.upperalpha,.rst-content .section ol.upperalpha>li{list-style:upper-alpha}.rst-content .section ol li>*,.rst-content .section ul li>*{margin-top:12px;margin-bottom:12px}.rst-content .section ol li>:first-child,.rst-content .section ul li>:first-child{margin-top:0}.rst-content .section ol li>p,.rst-content .section ol li>p:last-child,.rst-content .section ul li>p,.rst-content .section ul li>p:last-child{margin-bottom:12px}.rst-content .section ol li>p:only-child,.rst-content .section ol li>p:only-child:last-child,.rst-content .section ul li>p:only-child,.rst-content .section ul li>p:only-child:last-child{margin-bottom:0}.rst-content .section ol li>ol,.rst-content .section ol li>ul,.rst-content .section ul li>ol,.rst-content .section ul li>ul{margin-bottom:12px}.rst-content .section ol.simple li>*,.rst-content .section ol.simple li ol,.rst-content .section ol.simple li ul,.rst-content .section ul.simple li>*,.rst-content .section ul.simple li ol,.rst-content .section ul.simple li ul{margin-top:0;margin-bottom:0}.rst-content .line-block{margin-left:0;margin-bottom:24px;line-height:24px}.rst-content .line-block .line-block{margin-left:24px;margin-bottom:0}.rst-content .topic-title{font-weight:700;margin-bottom:12px}.rst-content .toc-backref{color:#404040}.rst-content .align-right{float:right;margin:0 0 24px 24px}.rst-content .align-left{float:left;margin:0 24px 24px 0}.rst-content .align-center{margin:auto}.rst-content .align-center:not(table){display:block}.rst-content .code-block-caption .headerlink,.rst-content .toctree-wrapper>p.caption .headerlink,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content table>caption .headerlink{visibility:hidden;font-size:14px}.rst-content .code-block-caption .headerlink:after,.rst-content .toctree-wrapper>p.caption .headerlink:after,.rst-content dl dt .headerlink:after,.rst-content h1 .headerlink:after,.rst-content h2 .headerlink:after,.rst-content h3 .headerlink:after,.rst-content h4 .headerlink:after,.rst-content h5 .headerlink:after,.rst-content h6 .headerlink:after,.rst-content p.caption .headerlink:after,.rst-content table>caption .headerlink:after{content:"\f0c1";font-family:FontAwesome}.rst-content .code-block-caption:hover .headerlink:after,.rst-content .toctree-wrapper>p.caption:hover .headerlink:after,.rst-content dl dt:hover .headerlink:after,.rst-content h1:hover .headerlink:after,.rst-content h2:hover .headerlink:after,.rst-content h3:hover .headerlink:after,.rst-content h4:hover .headerlink:after,.rst-content h5:hover .headerlink:after,.rst-content h6:hover .headerlink:after,.rst-content p.caption:hover .headerlink:after,.rst-content table>caption:hover .headerlink:after{visibility:visible}.rst-content table>caption .headerlink:after{font-size:12px}.rst-content .centered{text-align:center}.rst-content .sidebar{float:right;width:40%;display:block;margin:0 0 24px 24px;padding:24px;background:#f3f6f6;border:1px solid #e1e4e5}.rst-content .sidebar dl,.rst-content .sidebar p,.rst-content .sidebar ul{font-size:90%}.rst-content .sidebar .last,.rst-content .sidebar>:last-child{margin-bottom:0}.rst-content .sidebar .sidebar-title{display:block;font-family:Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif;font-weight:700;background:#e1e4e5;padding:6px 12px;margin:-24px -24px 24px;font-size:100%}.rst-content .highlighted{background:#f1c40f;box-shadow:0 0 0 2px #f1c40f;display:inline;font-weight:700}.rst-content .citation-reference,.rst-content .footnote-reference{vertical-align:baseline;position:relative;top:-.4em;line-height:0;font-size:90%}.rst-content .hlist{width:100%}html.writer-html4 .rst-content table.docutils.citation,html.writer-html4 .rst-content table.docutils.footnote{background:none;border:none}html.writer-html4 .rst-content table.docutils.citation td,html.writer-html4 .rst-content table.docutils.citation tr,html.writer-html4 .rst-content table.docutils.footnote td,html.writer-html4 .rst-content table.docutils.footnote tr{border:none;background-color:transparent!important;white-space:normal}html.writer-html4 .rst-content table.docutils.citation td.label,html.writer-html4 .rst-content table.docutils.footnote td.label{padding-left:0;padding-right:0;vertical-align:top}html.writer-html5 .rst-content dl dt span.classifier:before{content:" : "}html.writer-html5 .rst-content dl.field-list,html.writer-html5 .rst-content dl.footnote{display:grid;grid-template-columns:max-content auto}html.writer-html5 .rst-content dl.field-list>dt,html.writer-html5 .rst-content dl.footnote>dt{padding-left:1rem}html.writer-html5 .rst-content dl.field-list>dt:after,html.writer-html5 .rst-content dl.footnote>dt:after{content:":"}html.writer-html5 .rst-content dl.field-list>dd,html.writer-html5 .rst-content dl.field-list>dt,html.writer-html5 .rst-content dl.footnote>dd,html.writer-html5 .rst-content dl.footnote>dt{margin-bottom:0}html.writer-html5 .rst-content dl.footnote{font-size:.9rem}html.writer-html5 .rst-content dl.footnote>dt{margin:0 .5rem .5rem 0;line-height:1.2rem;word-break:break-all;font-weight:400}html.writer-html5 .rst-content dl.footnote>dt>span.brackets{margin-right:.5rem}html.writer-html5 .rst-content dl.footnote>dt>span.brackets:before{content:"["}html.writer-html5 .rst-content dl.footnote>dt>span.brackets:after{content:"]"}html.writer-html5 .rst-content dl.footnote>dt>span.fn-backref{font-style:italic}html.writer-html5 .rst-content dl.footnote>dd{margin:0 0 .5rem;line-height:1.2rem}html.writer-html5 .rst-content dl.footnote>dd p,html.writer-html5 .rst-content dl.option-list kbd{font-size:.9rem}.rst-content table.docutils.footnote,html.writer-html4 .rst-content table.docutils.citation,html.writer-html5 .rst-content dl.footnote{color:grey}.rst-content table.docutils.footnote code,.rst-content table.docutils.footnote tt,html.writer-html4 .rst-content table.docutils.citation code,html.writer-html4 .rst-content table.docutils.citation tt,html.writer-html5 .rst-content dl.footnote code,html.writer-html5 .rst-content dl.footnote tt{color:#555}.rst-content .wy-table-responsive.citation,.rst-content .wy-table-responsive.footnote{margin-bottom:0}.rst-content .wy-table-responsive.citation+:not(.citation),.rst-content .wy-table-responsive.footnote+:not(.footnote){margin-top:24px}.rst-content .wy-table-responsive.citation:last-child,.rst-content .wy-table-responsive.footnote:last-child{margin-bottom:24px}.rst-content table.docutils th{border-color:#e1e4e5}html.writer-html5 .rst-content table.docutils th{border:1px solid #e1e4e5}html.writer-html5 .rst-content table.docutils td>p,html.writer-html5 .rst-content table.docutils th>p{line-height:1rem;margin-bottom:0;font-size:.9rem}.rst-content table.docutils td .last,.rst-content table.docutils td .last>:last-child{margin-bottom:0}.rst-content table.field-list,.rst-content table.field-list td{border:none}.rst-content table.field-list td p{font-size:inherit;line-height:inherit}.rst-content table.field-list td>strong{display:inline-block}.rst-content table.field-list .field-name{padding-right:10px;text-align:left;white-space:nowrap}.rst-content table.field-list .field-body{text-align:left}.rst-content code,.rst-content tt{color:#000;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;padding:2px 5px}.rst-content code big,.rst-content code em,.rst-content tt big,.rst-content tt em{font-size:100%!important;line-height:normal}.rst-content code.literal,.rst-content tt.literal{color:#e74c3c}.rst-content code.xref,.rst-content tt.xref,a .rst-content code,a .rst-content tt{font-weight:700;color:#404040}.rst-content kbd,.rst-content pre,.rst-content samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace}.rst-content a code,.rst-content a tt{color:#2980b9}.rst-content dl{margin-bottom:24px}.rst-content dl dt{font-weight:700;margin-bottom:12px}.rst-content dl ol,.rst-content dl p,.rst-content dl table,.rst-content dl ul{margin-bottom:12px}.rst-content dl dd{margin:0 0 12px 24px;line-height:24px}html.writer-html4 .rst-content dl:not(.docutils),html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple){margin-bottom:24px}html.writer-html4 .rst-content dl:not(.docutils)>dt,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)>dt{display:table;margin:6px 0;font-size:90%;line-height:normal;background:#e7f2fa;color:#2980b9;border-top:3px solid #6ab0de;padding:6px;position:relative}html.writer-html4 .rst-content dl:not(.docutils)>dt:before,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)>dt:before{color:#6ab0de}html.writer-html4 .rst-content dl:not(.docutils)>dt .headerlink,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)>dt .headerlink{color:#404040;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils) dl:not(.field-list)>dt,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) dl:not(.field-list)>dt{margin-bottom:6px;border:none;border-left:3px solid #ccc;background:#f0f0f0;color:#555}html.writer-html4 .rst-content dl:not(.docutils) dl:not(.field-list)>dt .headerlink,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) dl:not(.field-list)>dt .headerlink{color:#404040;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils)>dt:first-child,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)>dt:first-child{margin-top:0}html.writer-html4 .rst-content dl:not(.docutils) code,html.writer-html4 .rst-content dl:not(.docutils) tt,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) code,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) tt{font-weight:700}html.writer-html4 .rst-content dl:not(.docutils) code.descclassname,html.writer-html4 .rst-content dl:not(.docutils) code.descname,html.writer-html4 .rst-content dl:not(.docutils) tt.descclassname,html.writer-html4 .rst-content dl:not(.docutils) tt.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) code.descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) code.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) tt.descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) tt.descname{background-color:transparent;border:none;padding:0;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils) code.descname,html.writer-html4 .rst-content dl:not(.docutils) tt.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) code.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) tt.descname{font-weight:700}html.writer-html4 .rst-content dl:not(.docutils) .optional,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .optional{display:inline-block;padding:0 4px;color:#000;font-weight:700}html.writer-html4 .rst-content dl:not(.docutils) .property,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .property{display:inline-block;padding-right:8px}.rst-content .viewcode-back,.rst-content .viewcode-link{display:inline-block;color:#27ae60;font-size:80%;padding-left:24px}.rst-content .viewcode-back{display:block;float:right}.rst-content p.rubric{margin-bottom:12px;font-weight:700}.rst-content code.download,.rst-content tt.download{background:inherit;padding:inherit;font-weight:400;font-family:inherit;font-size:inherit;color:inherit;border:inherit;white-space:inherit}.rst-content code.download span:first-child,.rst-content tt.download span:first-child{-webkit-font-smoothing:subpixel-antialiased}.rst-content code.download span:first-child:before,.rst-content tt.download span:first-child:before{margin-right:4px}.rst-content .guilabel{border:1px solid #7fbbe3;background:#e7f2fa;font-size:80%;font-weight:700;border-radius:4px;padding:2.4px 6px;margin:auto 2px}.rst-content .versionmodified{font-style:italic}@media screen and (max-width:480px){.rst-content .sidebar{width:100%}}span[id*=MathJax-Span]{color:#404040}.math{text-align:center}@font-face{font-family:Lato;src:url(fonts/lato-normal.woff2?bd03a2cc277bbbc338d464e679fe9942) format("woff2"),url(fonts/lato-normal.woff?27bd77b9162d388cb8d4c4217c7c5e2a) format("woff");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-bold.woff2?cccb897485813c7c256901dbca54ecf2) format("woff2"),url(fonts/lato-bold.woff?d878b6c29b10beca227e9eef4246111b) format("woff");font-weight:700;font-style:normal;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-bold-italic.woff2?0b6bb6725576b072c5d0b02ecdd1900d) format("woff2"),url(fonts/lato-bold-italic.woff?9c7e4e9eb485b4a121c760e61bc3707c) format("woff");font-weight:700;font-style:italic;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-normal-italic.woff2?4eb103b4d12be57cb1d040ed5e162e9d) format("woff2"),url(fonts/lato-normal-italic.woff?f28f2d6482446544ef1ea1ccc6dd5892) format("woff");font-weight:400;font-style:italic;font-display:block}@font-face{font-family:Roboto Slab;font-style:normal;font-weight:400;src:url(fonts/Roboto-Slab-Regular.woff2?7abf5b8d04d26a2cafea937019bca958) format("woff2"),url(fonts/Roboto-Slab-Regular.woff?c1be9284088d487c5e3ff0a10a92e58c) format("woff");font-display:block}@font-face{font-family:Roboto Slab;font-style:normal;font-weight:700;src:url(fonts/Roboto-Slab-Bold.woff2?9984f4a9bda09be08e83f2506954adbe) format("woff2"),url(fonts/Roboto-Slab-Bold.woff?bed5564a116b05148e3b3bea6fb1162a) format("woff");font-display:block}
\ No newline at end of file
+ */@font-face{font-family:FontAwesome;src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713);src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713?#iefix&v=4.7.0) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e) format("woff2"),url(fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad) format("woff"),url(fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9) format("truetype"),url(fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa,.icon,.rst-content .admonition-title,.rst-content .code-block-caption .headerlink,.rst-content .eqno .headerlink,.rst-content code.download span:first-child,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content p .headerlink,.rst-content table>caption .headerlink,.rst-content tt.download span:first-child,.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand,.wy-menu-vertical li button.toctree-expand{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14286em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14286em;width:2.14286em;top:.14286em;text-align:center}.fa-li.fa-lg{left:-1.85714em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa-pull-left.icon,.fa.fa-pull-left,.rst-content .code-block-caption .fa-pull-left.headerlink,.rst-content .eqno .fa-pull-left.headerlink,.rst-content .fa-pull-left.admonition-title,.rst-content code.download span.fa-pull-left:first-child,.rst-content dl dt .fa-pull-left.headerlink,.rst-content h1 .fa-pull-left.headerlink,.rst-content h2 .fa-pull-left.headerlink,.rst-content h3 .fa-pull-left.headerlink,.rst-content h4 .fa-pull-left.headerlink,.rst-content h5 .fa-pull-left.headerlink,.rst-content h6 .fa-pull-left.headerlink,.rst-content p .fa-pull-left.headerlink,.rst-content table>caption .fa-pull-left.headerlink,.rst-content tt.download span.fa-pull-left:first-child,.wy-menu-vertical li.current>a button.fa-pull-left.toctree-expand,.wy-menu-vertical li.on a button.fa-pull-left.toctree-expand,.wy-menu-vertical li button.fa-pull-left.toctree-expand{margin-right:.3em}.fa-pull-right.icon,.fa.fa-pull-right,.rst-content .code-block-caption .fa-pull-right.headerlink,.rst-content .eqno .fa-pull-right.headerlink,.rst-content .fa-pull-right.admonition-title,.rst-content code.download span.fa-pull-right:first-child,.rst-content dl dt .fa-pull-right.headerlink,.rst-content h1 .fa-pull-right.headerlink,.rst-content h2 .fa-pull-right.headerlink,.rst-content h3 .fa-pull-right.headerlink,.rst-content h4 .fa-pull-right.headerlink,.rst-content h5 .fa-pull-right.headerlink,.rst-content h6 .fa-pull-right.headerlink,.rst-content p .fa-pull-right.headerlink,.rst-content table>caption .fa-pull-right.headerlink,.rst-content tt.download span.fa-pull-right:first-child,.wy-menu-vertical li.current>a button.fa-pull-right.toctree-expand,.wy-menu-vertical li.on a button.fa-pull-right.toctree-expand,.wy-menu-vertical li button.fa-pull-right.toctree-expand{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left,.pull-left.icon,.rst-content .code-block-caption .pull-left.headerlink,.rst-content .eqno .pull-left.headerlink,.rst-content .pull-left.admonition-title,.rst-content code.download span.pull-left:first-child,.rst-content dl dt .pull-left.headerlink,.rst-content h1 .pull-left.headerlink,.rst-content h2 .pull-left.headerlink,.rst-content h3 .pull-left.headerlink,.rst-content h4 .pull-left.headerlink,.rst-content h5 .pull-left.headerlink,.rst-content h6 .pull-left.headerlink,.rst-content p .pull-left.headerlink,.rst-content table>caption .pull-left.headerlink,.rst-content tt.download span.pull-left:first-child,.wy-menu-vertical li.current>a button.pull-left.toctree-expand,.wy-menu-vertical li.on a button.pull-left.toctree-expand,.wy-menu-vertical li button.pull-left.toctree-expand{margin-right:.3em}.fa.pull-right,.pull-right.icon,.rst-content .code-block-caption .pull-right.headerlink,.rst-content .eqno .pull-right.headerlink,.rst-content .pull-right.admonition-title,.rst-content code.download span.pull-right:first-child,.rst-content dl dt .pull-right.headerlink,.rst-content h1 .pull-right.headerlink,.rst-content h2 .pull-right.headerlink,.rst-content h3 .pull-right.headerlink,.rst-content h4 .pull-right.headerlink,.rst-content h5 .pull-right.headerlink,.rst-content h6 .pull-right.headerlink,.rst-content p .pull-right.headerlink,.rst-content table>caption .pull-right.headerlink,.rst-content tt.download span.pull-right:first-child,.wy-menu-vertical li.current>a button.pull-right.toctree-expand,.wy-menu-vertical li.on a button.pull-right.toctree-expand,.wy-menu-vertical li button.pull-right.toctree-expand{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scaleY(-1);-ms-transform:scaleY(-1);transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:""}.fa-music:before{content:""}.fa-search:before,.icon-search:before{content:""}.fa-envelope-o:before{content:""}.fa-heart:before{content:""}.fa-star:before{content:""}.fa-star-o:before{content:""}.fa-user:before{content:""}.fa-film:before{content:""}.fa-th-large:before{content:""}.fa-th:before{content:""}.fa-th-list:before{content:""}.fa-check:before{content:""}.fa-close:before,.fa-remove:before,.fa-times:before{content:""}.fa-search-plus:before{content:""}.fa-search-minus:before{content:""}.fa-power-off:before{content:""}.fa-signal:before{content:""}.fa-cog:before,.fa-gear:before{content:""}.fa-trash-o:before{content:""}.fa-home:before,.icon-home:before{content:""}.fa-file-o:before{content:""}.fa-clock-o:before{content:""}.fa-road:before{content:""}.fa-download:before,.rst-content code.download span:first-child:before,.rst-content tt.download span:first-child:before{content:""}.fa-arrow-circle-o-down:before{content:""}.fa-arrow-circle-o-up:before{content:""}.fa-inbox:before{content:""}.fa-play-circle-o:before{content:""}.fa-repeat:before,.fa-rotate-right:before{content:""}.fa-refresh:before{content:""}.fa-list-alt:before{content:""}.fa-lock:before{content:""}.fa-flag:before{content:""}.fa-headphones:before{content:""}.fa-volume-off:before{content:""}.fa-volume-down:before{content:""}.fa-volume-up:before{content:""}.fa-qrcode:before{content:""}.fa-barcode:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-book:before,.icon-book:before{content:""}.fa-bookmark:before{content:""}.fa-print:before{content:""}.fa-camera:before{content:""}.fa-font:before{content:""}.fa-bold:before{content:""}.fa-italic:before{content:""}.fa-text-height:before{content:""}.fa-text-width:before{content:""}.fa-align-left:before{content:""}.fa-align-center:before{content:""}.fa-align-right:before{content:""}.fa-align-justify:before{content:""}.fa-list:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-indent:before{content:""}.fa-video-camera:before{content:""}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:""}.fa-pencil:before{content:""}.fa-map-marker:before{content:""}.fa-adjust:before{content:""}.fa-tint:before{content:""}.fa-edit:before,.fa-pencil-square-o:before{content:""}.fa-share-square-o:before{content:""}.fa-check-square-o:before{content:""}.fa-arrows:before{content:""}.fa-step-backward:before{content:""}.fa-fast-backward:before{content:""}.fa-backward:before{content:""}.fa-play:before{content:""}.fa-pause:before{content:""}.fa-stop:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before{content:""}.fa-step-forward:before{content:""}.fa-eject:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-plus-circle:before{content:""}.fa-minus-circle:before{content:""}.fa-times-circle:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before{content:""}.fa-check-circle:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before{content:""}.fa-question-circle:before{content:""}.fa-info-circle:before{content:""}.fa-crosshairs:before{content:""}.fa-times-circle-o:before{content:""}.fa-check-circle-o:before{content:""}.fa-ban:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-down:before{content:""}.fa-mail-forward:before,.fa-share:before{content:""}.fa-expand:before{content:""}.fa-compress:before{content:""}.fa-plus:before{content:""}.fa-minus:before{content:""}.fa-asterisk:before{content:""}.fa-exclamation-circle:before,.rst-content .admonition-title:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before{content:""}.fa-gift:before{content:""}.fa-leaf:before{content:""}.fa-fire:before,.icon-fire:before{content:""}.fa-eye:before{content:""}.fa-eye-slash:before{content:""}.fa-exclamation-triangle:before,.fa-warning:before{content:""}.fa-plane:before{content:""}.fa-calendar:before{content:""}.fa-random:before{content:""}.fa-comment:before{content:""}.fa-magnet:before{content:""}.fa-chevron-up:before{content:""}.fa-chevron-down:before{content:""}.fa-retweet:before{content:""}.fa-shopping-cart:before{content:""}.fa-folder:before{content:""}.fa-folder-open:before{content:""}.fa-arrows-v:before{content:""}.fa-arrows-h:before{content:""}.fa-bar-chart-o:before,.fa-bar-chart:before{content:""}.fa-twitter-square:before{content:""}.fa-facebook-square:before{content:""}.fa-camera-retro:before{content:""}.fa-key:before{content:""}.fa-cogs:before,.fa-gears:before{content:""}.fa-comments:before{content:""}.fa-thumbs-o-up:before{content:""}.fa-thumbs-o-down:before{content:""}.fa-star-half:before{content:""}.fa-heart-o:before{content:""}.fa-sign-out:before{content:""}.fa-linkedin-square:before{content:""}.fa-thumb-tack:before{content:""}.fa-external-link:before{content:""}.fa-sign-in:before{content:""}.fa-trophy:before{content:""}.fa-github-square:before{content:""}.fa-upload:before{content:""}.fa-lemon-o:before{content:""}.fa-phone:before{content:""}.fa-square-o:before{content:""}.fa-bookmark-o:before{content:""}.fa-phone-square:before{content:""}.fa-twitter:before{content:""}.fa-facebook-f:before,.fa-facebook:before{content:""}.fa-github:before,.icon-github:before{content:""}.fa-unlock:before{content:""}.fa-credit-card:before{content:""}.fa-feed:before,.fa-rss:before{content:""}.fa-hdd-o:before{content:""}.fa-bullhorn:before{content:""}.fa-bell:before{content:""}.fa-certificate:before{content:""}.fa-hand-o-right:before{content:""}.fa-hand-o-left:before{content:""}.fa-hand-o-up:before{content:""}.fa-hand-o-down:before{content:""}.fa-arrow-circle-left:before,.icon-circle-arrow-left:before{content:""}.fa-arrow-circle-right:before,.icon-circle-arrow-right:before{content:""}.fa-arrow-circle-up:before{content:""}.fa-arrow-circle-down:before{content:""}.fa-globe:before{content:""}.fa-wrench:before{content:""}.fa-tasks:before{content:""}.fa-filter:before{content:""}.fa-briefcase:before{content:""}.fa-arrows-alt:before{content:""}.fa-group:before,.fa-users:before{content:""}.fa-chain:before,.fa-link:before,.icon-link:before{content:""}.fa-cloud:before{content:""}.fa-flask:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-copy:before,.fa-files-o:before{content:""}.fa-paperclip:before{content:""}.fa-floppy-o:before,.fa-save:before{content:""}.fa-square:before{content:""}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:""}.fa-list-ul:before{content:""}.fa-list-ol:before{content:""}.fa-strikethrough:before{content:""}.fa-underline:before{content:""}.fa-table:before{content:""}.fa-magic:before{content:""}.fa-truck:before{content:""}.fa-pinterest:before{content:""}.fa-pinterest-square:before{content:""}.fa-google-plus-square:before{content:""}.fa-google-plus:before{content:""}.fa-money:before{content:""}.fa-caret-down:before,.icon-caret-down:before,.wy-dropdown .caret:before{content:""}.fa-caret-up:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-columns:before{content:""}.fa-sort:before,.fa-unsorted:before{content:""}.fa-sort-desc:before,.fa-sort-down:before{content:""}.fa-sort-asc:before,.fa-sort-up:before{content:""}.fa-envelope:before{content:""}.fa-linkedin:before{content:""}.fa-rotate-left:before,.fa-undo:before{content:""}.fa-gavel:before,.fa-legal:before{content:""}.fa-dashboard:before,.fa-tachometer:before{content:""}.fa-comment-o:before{content:""}.fa-comments-o:before{content:""}.fa-bolt:before,.fa-flash:before{content:""}.fa-sitemap:before{content:""}.fa-umbrella:before{content:""}.fa-clipboard:before,.fa-paste:before{content:""}.fa-lightbulb-o:before{content:""}.fa-exchange:before{content:""}.fa-cloud-download:before{content:""}.fa-cloud-upload:before{content:""}.fa-user-md:before{content:""}.fa-stethoscope:before{content:""}.fa-suitcase:before{content:""}.fa-bell-o:before{content:""}.fa-coffee:before{content:""}.fa-cutlery:before{content:""}.fa-file-text-o:before{content:""}.fa-building-o:before{content:""}.fa-hospital-o:before{content:""}.fa-ambulance:before{content:""}.fa-medkit:before{content:""}.fa-fighter-jet:before{content:""}.fa-beer:before{content:""}.fa-h-square:before{content:""}.fa-plus-square:before{content:""}.fa-angle-double-left:before{content:""}.fa-angle-double-right:before{content:""}.fa-angle-double-up:before{content:""}.fa-angle-double-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-down:before{content:""}.fa-desktop:before{content:""}.fa-laptop:before{content:""}.fa-tablet:before{content:""}.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-circle-o:before{content:""}.fa-quote-left:before{content:""}.fa-quote-right:before{content:""}.fa-spinner:before{content:""}.fa-circle:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-github-alt:before{content:""}.fa-folder-o:before{content:""}.fa-folder-open-o:before{content:""}.fa-smile-o:before{content:""}.fa-frown-o:before{content:""}.fa-meh-o:before{content:""}.fa-gamepad:before{content:""}.fa-keyboard-o:before{content:""}.fa-flag-o:before{content:""}.fa-flag-checkered:before{content:""}.fa-terminal:before{content:""}.fa-code:before{content:""}.fa-mail-reply-all:before,.fa-reply-all:before{content:""}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:""}.fa-location-arrow:before{content:""}.fa-crop:before{content:""}.fa-code-fork:before{content:""}.fa-chain-broken:before,.fa-unlink:before{content:""}.fa-question:before{content:""}.fa-info:before{content:""}.fa-exclamation:before{content:""}.fa-superscript:before{content:""}.fa-subscript:before{content:""}.fa-eraser:before{content:""}.fa-puzzle-piece:before{content:""}.fa-microphone:before{content:""}.fa-microphone-slash:before{content:""}.fa-shield:before{content:""}.fa-calendar-o:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-rocket:before{content:""}.fa-maxcdn:before{content:""}.fa-chevron-circle-left:before{content:""}.fa-chevron-circle-right:before{content:""}.fa-chevron-circle-up:before{content:""}.fa-chevron-circle-down:before{content:""}.fa-html5:before{content:""}.fa-css3:before{content:""}.fa-anchor:before{content:""}.fa-unlock-alt:before{content:""}.fa-bullseye:before{content:""}.fa-ellipsis-h:before{content:""}.fa-ellipsis-v:before{content:""}.fa-rss-square:before{content:""}.fa-play-circle:before{content:""}.fa-ticket:before{content:""}.fa-minus-square:before{content:""}.fa-minus-square-o:before,.wy-menu-vertical li.current>a button.toctree-expand:before,.wy-menu-vertical li.on a button.toctree-expand:before{content:""}.fa-level-up:before{content:""}.fa-level-down:before{content:""}.fa-check-square:before{content:""}.fa-pencil-square:before{content:""}.fa-external-link-square:before{content:""}.fa-share-square:before{content:""}.fa-compass:before{content:""}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:""}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:""}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:""}.fa-eur:before,.fa-euro:before{content:""}.fa-gbp:before{content:""}.fa-dollar:before,.fa-usd:before{content:""}.fa-inr:before,.fa-rupee:before{content:""}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:""}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:""}.fa-krw:before,.fa-won:before{content:""}.fa-bitcoin:before,.fa-btc:before{content:""}.fa-file:before{content:""}.fa-file-text:before{content:""}.fa-sort-alpha-asc:before{content:""}.fa-sort-alpha-desc:before{content:""}.fa-sort-amount-asc:before{content:""}.fa-sort-amount-desc:before{content:""}.fa-sort-numeric-asc:before{content:""}.fa-sort-numeric-desc:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumbs-down:before{content:""}.fa-youtube-square:before{content:""}.fa-youtube:before{content:""}.fa-xing:before{content:""}.fa-xing-square:before{content:""}.fa-youtube-play:before{content:""}.fa-dropbox:before{content:""}.fa-stack-overflow:before{content:""}.fa-instagram:before{content:""}.fa-flickr:before{content:""}.fa-adn:before{content:""}.fa-bitbucket:before,.icon-bitbucket:before{content:""}.fa-bitbucket-square:before{content:""}.fa-tumblr:before{content:""}.fa-tumblr-square:before{content:""}.fa-long-arrow-down:before{content:""}.fa-long-arrow-up:before{content:""}.fa-long-arrow-left:before{content:""}.fa-long-arrow-right:before{content:""}.fa-apple:before{content:""}.fa-windows:before{content:""}.fa-android:before{content:""}.fa-linux:before{content:""}.fa-dribbble:before{content:""}.fa-skype:before{content:""}.fa-foursquare:before{content:""}.fa-trello:before{content:""}.fa-female:before{content:""}.fa-male:before{content:""}.fa-gittip:before,.fa-gratipay:before{content:""}.fa-sun-o:before{content:""}.fa-moon-o:before{content:""}.fa-archive:before{content:""}.fa-bug:before{content:""}.fa-vk:before{content:""}.fa-weibo:before{content:""}.fa-renren:before{content:""}.fa-pagelines:before{content:""}.fa-stack-exchange:before{content:""}.fa-arrow-circle-o-right:before{content:""}.fa-arrow-circle-o-left:before{content:""}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:""}.fa-dot-circle-o:before{content:""}.fa-wheelchair:before{content:""}.fa-vimeo-square:before{content:""}.fa-try:before,.fa-turkish-lira:before{content:""}.fa-plus-square-o:before,.wy-menu-vertical li button.toctree-expand:before{content:""}.fa-space-shuttle:before{content:""}.fa-slack:before{content:""}.fa-envelope-square:before{content:""}.fa-wordpress:before{content:""}.fa-openid:before{content:""}.fa-bank:before,.fa-institution:before,.fa-university:before{content:""}.fa-graduation-cap:before,.fa-mortar-board:before{content:""}.fa-yahoo:before{content:""}.fa-google:before{content:""}.fa-reddit:before{content:""}.fa-reddit-square:before{content:""}.fa-stumbleupon-circle:before{content:""}.fa-stumbleupon:before{content:""}.fa-delicious:before{content:""}.fa-digg:before{content:""}.fa-pied-piper-pp:before{content:""}.fa-pied-piper-alt:before{content:""}.fa-drupal:before{content:""}.fa-joomla:before{content:""}.fa-language:before{content:""}.fa-fax:before{content:""}.fa-building:before{content:""}.fa-child:before{content:""}.fa-paw:before{content:""}.fa-spoon:before{content:""}.fa-cube:before{content:""}.fa-cubes:before{content:""}.fa-behance:before{content:""}.fa-behance-square:before{content:""}.fa-steam:before{content:""}.fa-steam-square:before{content:""}.fa-recycle:before{content:""}.fa-automobile:before,.fa-car:before{content:""}.fa-cab:before,.fa-taxi:before{content:""}.fa-tree:before{content:""}.fa-spotify:before{content:""}.fa-deviantart:before{content:""}.fa-soundcloud:before{content:""}.fa-database:before{content:""}.fa-file-pdf-o:before{content:""}.fa-file-word-o:before{content:""}.fa-file-excel-o:before{content:""}.fa-file-powerpoint-o:before{content:""}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:""}.fa-file-archive-o:before,.fa-file-zip-o:before{content:""}.fa-file-audio-o:before,.fa-file-sound-o:before{content:""}.fa-file-movie-o:before,.fa-file-video-o:before{content:""}.fa-file-code-o:before{content:""}.fa-vine:before{content:""}.fa-codepen:before{content:""}.fa-jsfiddle:before{content:""}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:""}.fa-circle-o-notch:before{content:""}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:""}.fa-empire:before,.fa-ge:before{content:""}.fa-git-square:before{content:""}.fa-git:before{content:""}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:""}.fa-tencent-weibo:before{content:""}.fa-qq:before{content:""}.fa-wechat:before,.fa-weixin:before{content:""}.fa-paper-plane:before,.fa-send:before{content:""}.fa-paper-plane-o:before,.fa-send-o:before{content:""}.fa-history:before{content:""}.fa-circle-thin:before{content:""}.fa-header:before{content:""}.fa-paragraph:before{content:""}.fa-sliders:before{content:""}.fa-share-alt:before{content:""}.fa-share-alt-square:before{content:""}.fa-bomb:before{content:""}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:""}.fa-tty:before{content:""}.fa-binoculars:before{content:""}.fa-plug:before{content:""}.fa-slideshare:before{content:""}.fa-twitch:before{content:""}.fa-yelp:before{content:""}.fa-newspaper-o:before{content:""}.fa-wifi:before{content:""}.fa-calculator:before{content:""}.fa-paypal:before{content:""}.fa-google-wallet:before{content:""}.fa-cc-visa:before{content:""}.fa-cc-mastercard:before{content:""}.fa-cc-discover:before{content:""}.fa-cc-amex:before{content:""}.fa-cc-paypal:before{content:""}.fa-cc-stripe:before{content:""}.fa-bell-slash:before{content:""}.fa-bell-slash-o:before{content:""}.fa-trash:before{content:""}.fa-copyright:before{content:""}.fa-at:before{content:""}.fa-eyedropper:before{content:""}.fa-paint-brush:before{content:""}.fa-birthday-cake:before{content:""}.fa-area-chart:before{content:""}.fa-pie-chart:before{content:""}.fa-line-chart:before{content:""}.fa-lastfm:before{content:""}.fa-lastfm-square:before{content:""}.fa-toggle-off:before{content:""}.fa-toggle-on:before{content:""}.fa-bicycle:before{content:""}.fa-bus:before{content:""}.fa-ioxhost:before{content:""}.fa-angellist:before{content:""}.fa-cc:before{content:""}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:""}.fa-meanpath:before{content:""}.fa-buysellads:before{content:""}.fa-connectdevelop:before{content:""}.fa-dashcube:before{content:""}.fa-forumbee:before{content:""}.fa-leanpub:before{content:""}.fa-sellsy:before{content:""}.fa-shirtsinbulk:before{content:""}.fa-simplybuilt:before{content:""}.fa-skyatlas:before{content:""}.fa-cart-plus:before{content:""}.fa-cart-arrow-down:before{content:""}.fa-diamond:before{content:""}.fa-ship:before{content:""}.fa-user-secret:before{content:""}.fa-motorcycle:before{content:""}.fa-street-view:before{content:""}.fa-heartbeat:before{content:""}.fa-venus:before{content:""}.fa-mars:before{content:""}.fa-mercury:before{content:""}.fa-intersex:before,.fa-transgender:before{content:""}.fa-transgender-alt:before{content:""}.fa-venus-double:before{content:""}.fa-mars-double:before{content:""}.fa-venus-mars:before{content:""}.fa-mars-stroke:before{content:""}.fa-mars-stroke-v:before{content:""}.fa-mars-stroke-h:before{content:""}.fa-neuter:before{content:""}.fa-genderless:before{content:""}.fa-facebook-official:before{content:""}.fa-pinterest-p:before{content:""}.fa-whatsapp:before{content:""}.fa-server:before{content:""}.fa-user-plus:before{content:""}.fa-user-times:before{content:""}.fa-bed:before,.fa-hotel:before{content:""}.fa-viacoin:before{content:""}.fa-train:before{content:""}.fa-subway:before{content:""}.fa-medium:before{content:""}.fa-y-combinator:before,.fa-yc:before{content:""}.fa-optin-monster:before{content:""}.fa-opencart:before{content:""}.fa-expeditedssl:before{content:""}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:""}.fa-battery-3:before,.fa-battery-three-quarters:before{content:""}.fa-battery-2:before,.fa-battery-half:before{content:""}.fa-battery-1:before,.fa-battery-quarter:before{content:""}.fa-battery-0:before,.fa-battery-empty:before{content:""}.fa-mouse-pointer:before{content:""}.fa-i-cursor:before{content:""}.fa-object-group:before{content:""}.fa-object-ungroup:before{content:""}.fa-sticky-note:before{content:""}.fa-sticky-note-o:before{content:""}.fa-cc-jcb:before{content:""}.fa-cc-diners-club:before{content:""}.fa-clone:before{content:""}.fa-balance-scale:before{content:""}.fa-hourglass-o:before{content:""}.fa-hourglass-1:before,.fa-hourglass-start:before{content:""}.fa-hourglass-2:before,.fa-hourglass-half:before{content:""}.fa-hourglass-3:before,.fa-hourglass-end:before{content:""}.fa-hourglass:before{content:""}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:""}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:""}.fa-hand-scissors-o:before{content:""}.fa-hand-lizard-o:before{content:""}.fa-hand-spock-o:before{content:""}.fa-hand-pointer-o:before{content:""}.fa-hand-peace-o:before{content:""}.fa-trademark:before{content:""}.fa-registered:before{content:""}.fa-creative-commons:before{content:""}.fa-gg:before{content:""}.fa-gg-circle:before{content:""}.fa-tripadvisor:before{content:""}.fa-odnoklassniki:before{content:""}.fa-odnoklassniki-square:before{content:""}.fa-get-pocket:before{content:""}.fa-wikipedia-w:before{content:""}.fa-safari:before{content:""}.fa-chrome:before{content:""}.fa-firefox:before{content:""}.fa-opera:before{content:""}.fa-internet-explorer:before{content:""}.fa-television:before,.fa-tv:before{content:""}.fa-contao:before{content:""}.fa-500px:before{content:""}.fa-amazon:before{content:""}.fa-calendar-plus-o:before{content:""}.fa-calendar-minus-o:before{content:""}.fa-calendar-times-o:before{content:""}.fa-calendar-check-o:before{content:""}.fa-industry:before{content:""}.fa-map-pin:before{content:""}.fa-map-signs:before{content:""}.fa-map-o:before{content:""}.fa-map:before{content:""}.fa-commenting:before{content:""}.fa-commenting-o:before{content:""}.fa-houzz:before{content:""}.fa-vimeo:before{content:""}.fa-black-tie:before{content:""}.fa-fonticons:before{content:""}.fa-reddit-alien:before{content:""}.fa-edge:before{content:""}.fa-credit-card-alt:before{content:""}.fa-codiepie:before{content:""}.fa-modx:before{content:""}.fa-fort-awesome:before{content:""}.fa-usb:before{content:""}.fa-product-hunt:before{content:""}.fa-mixcloud:before{content:""}.fa-scribd:before{content:""}.fa-pause-circle:before{content:""}.fa-pause-circle-o:before{content:""}.fa-stop-circle:before{content:""}.fa-stop-circle-o:before{content:""}.fa-shopping-bag:before{content:""}.fa-shopping-basket:before{content:""}.fa-hashtag:before{content:""}.fa-bluetooth:before{content:""}.fa-bluetooth-b:before{content:""}.fa-percent:before{content:""}.fa-gitlab:before,.icon-gitlab:before{content:""}.fa-wpbeginner:before{content:""}.fa-wpforms:before{content:""}.fa-envira:before{content:""}.fa-universal-access:before{content:""}.fa-wheelchair-alt:before{content:""}.fa-question-circle-o:before{content:""}.fa-blind:before{content:""}.fa-audio-description:before{content:""}.fa-volume-control-phone:before{content:""}.fa-braille:before{content:""}.fa-assistive-listening-systems:before{content:""}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:""}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:""}.fa-glide:before{content:""}.fa-glide-g:before{content:""}.fa-sign-language:before,.fa-signing:before{content:""}.fa-low-vision:before{content:""}.fa-viadeo:before{content:""}.fa-viadeo-square:before{content:""}.fa-snapchat:before{content:""}.fa-snapchat-ghost:before{content:""}.fa-snapchat-square:before{content:""}.fa-pied-piper:before{content:""}.fa-first-order:before{content:""}.fa-yoast:before{content:""}.fa-themeisle:before{content:""}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:""}.fa-fa:before,.fa-font-awesome:before{content:""}.fa-handshake-o:before{content:""}.fa-envelope-open:before{content:""}.fa-envelope-open-o:before{content:""}.fa-linode:before{content:""}.fa-address-book:before{content:""}.fa-address-book-o:before{content:""}.fa-address-card:before,.fa-vcard:before{content:""}.fa-address-card-o:before,.fa-vcard-o:before{content:""}.fa-user-circle:before{content:""}.fa-user-circle-o:before{content:""}.fa-user-o:before{content:""}.fa-id-badge:before{content:""}.fa-drivers-license:before,.fa-id-card:before{content:""}.fa-drivers-license-o:before,.fa-id-card-o:before{content:""}.fa-quora:before{content:""}.fa-free-code-camp:before{content:""}.fa-telegram:before{content:""}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:""}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:""}.fa-thermometer-2:before,.fa-thermometer-half:before{content:""}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:""}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:""}.fa-shower:before{content:""}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:""}.fa-podcast:before{content:""}.fa-window-maximize:before{content:""}.fa-window-minimize:before{content:""}.fa-window-restore:before{content:""}.fa-times-rectangle:before,.fa-window-close:before{content:""}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:""}.fa-bandcamp:before{content:""}.fa-grav:before{content:""}.fa-etsy:before{content:""}.fa-imdb:before{content:""}.fa-ravelry:before{content:""}.fa-eercast:before{content:""}.fa-microchip:before{content:""}.fa-snowflake-o:before{content:""}.fa-superpowers:before{content:""}.fa-wpexplorer:before{content:""}.fa-meetup:before{content:""}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.fa,.icon,.rst-content .admonition-title,.rst-content .code-block-caption .headerlink,.rst-content .eqno .headerlink,.rst-content code.download span:first-child,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content p .headerlink,.rst-content table>caption .headerlink,.rst-content tt.download span:first-child,.wy-dropdown .caret,.wy-inline-validate.wy-inline-validate-danger .wy-input-context,.wy-inline-validate.wy-inline-validate-info .wy-input-context,.wy-inline-validate.wy-inline-validate-success .wy-input-context,.wy-inline-validate.wy-inline-validate-warning .wy-input-context,.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand,.wy-menu-vertical li button.toctree-expand{font-family:inherit}.fa:before,.icon:before,.rst-content .admonition-title:before,.rst-content .code-block-caption .headerlink:before,.rst-content .eqno .headerlink:before,.rst-content code.download span:first-child:before,.rst-content dl dt .headerlink:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content p.caption .headerlink:before,.rst-content p .headerlink:before,.rst-content table>caption .headerlink:before,.rst-content tt.download span:first-child:before,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-menu-vertical li.current>a button.toctree-expand:before,.wy-menu-vertical li.on a button.toctree-expand:before,.wy-menu-vertical li button.toctree-expand:before{font-family:FontAwesome;display:inline-block;font-style:normal;font-weight:400;line-height:1;text-decoration:inherit}.rst-content .code-block-caption a .headerlink,.rst-content .eqno a .headerlink,.rst-content a .admonition-title,.rst-content code.download a span:first-child,.rst-content dl dt a .headerlink,.rst-content h1 a .headerlink,.rst-content h2 a .headerlink,.rst-content h3 a .headerlink,.rst-content h4 a .headerlink,.rst-content h5 a .headerlink,.rst-content h6 a .headerlink,.rst-content p.caption a .headerlink,.rst-content p a .headerlink,.rst-content table>caption a .headerlink,.rst-content tt.download a span:first-child,.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand,.wy-menu-vertical li a button.toctree-expand,a .fa,a .icon,a .rst-content .admonition-title,a .rst-content .code-block-caption .headerlink,a .rst-content .eqno .headerlink,a .rst-content code.download span:first-child,a .rst-content dl dt .headerlink,a .rst-content h1 .headerlink,a .rst-content h2 .headerlink,a .rst-content h3 .headerlink,a .rst-content h4 .headerlink,a .rst-content h5 .headerlink,a .rst-content h6 .headerlink,a .rst-content p.caption .headerlink,a .rst-content p .headerlink,a .rst-content table>caption .headerlink,a .rst-content tt.download span:first-child,a .wy-menu-vertical li button.toctree-expand{display:inline-block;text-decoration:inherit}.btn .fa,.btn .icon,.btn .rst-content .admonition-title,.btn .rst-content .code-block-caption .headerlink,.btn .rst-content .eqno .headerlink,.btn .rst-content code.download span:first-child,.btn .rst-content dl dt .headerlink,.btn .rst-content h1 .headerlink,.btn .rst-content h2 .headerlink,.btn .rst-content h3 .headerlink,.btn .rst-content h4 .headerlink,.btn .rst-content h5 .headerlink,.btn .rst-content h6 .headerlink,.btn .rst-content p .headerlink,.btn .rst-content table>caption .headerlink,.btn .rst-content tt.download span:first-child,.btn .wy-menu-vertical li.current>a button.toctree-expand,.btn .wy-menu-vertical li.on a button.toctree-expand,.btn .wy-menu-vertical li button.toctree-expand,.nav .fa,.nav .icon,.nav .rst-content .admonition-title,.nav .rst-content .code-block-caption .headerlink,.nav .rst-content .eqno .headerlink,.nav .rst-content code.download span:first-child,.nav .rst-content dl dt .headerlink,.nav .rst-content h1 .headerlink,.nav .rst-content h2 .headerlink,.nav .rst-content h3 .headerlink,.nav .rst-content h4 .headerlink,.nav .rst-content h5 .headerlink,.nav .rst-content h6 .headerlink,.nav .rst-content p .headerlink,.nav .rst-content table>caption .headerlink,.nav .rst-content tt.download span:first-child,.nav .wy-menu-vertical li.current>a button.toctree-expand,.nav .wy-menu-vertical li.on a button.toctree-expand,.nav .wy-menu-vertical li button.toctree-expand,.rst-content .btn .admonition-title,.rst-content .code-block-caption .btn .headerlink,.rst-content .code-block-caption .nav .headerlink,.rst-content .eqno .btn .headerlink,.rst-content .eqno .nav .headerlink,.rst-content .nav .admonition-title,.rst-content code.download .btn span:first-child,.rst-content code.download .nav span:first-child,.rst-content dl dt .btn .headerlink,.rst-content dl dt .nav .headerlink,.rst-content h1 .btn .headerlink,.rst-content h1 .nav .headerlink,.rst-content h2 .btn .headerlink,.rst-content h2 .nav .headerlink,.rst-content h3 .btn .headerlink,.rst-content h3 .nav .headerlink,.rst-content h4 .btn .headerlink,.rst-content h4 .nav .headerlink,.rst-content h5 .btn .headerlink,.rst-content h5 .nav .headerlink,.rst-content h6 .btn .headerlink,.rst-content h6 .nav .headerlink,.rst-content p .btn .headerlink,.rst-content p .nav .headerlink,.rst-content table>caption .btn .headerlink,.rst-content table>caption .nav .headerlink,.rst-content tt.download .btn span:first-child,.rst-content tt.download .nav span:first-child,.wy-menu-vertical li .btn button.toctree-expand,.wy-menu-vertical li.current>a .btn button.toctree-expand,.wy-menu-vertical li.current>a .nav button.toctree-expand,.wy-menu-vertical li .nav button.toctree-expand,.wy-menu-vertical li.on a .btn button.toctree-expand,.wy-menu-vertical li.on a .nav button.toctree-expand{display:inline}.btn .fa-large.icon,.btn .fa.fa-large,.btn .rst-content .code-block-caption .fa-large.headerlink,.btn .rst-content .eqno .fa-large.headerlink,.btn .rst-content .fa-large.admonition-title,.btn .rst-content code.download span.fa-large:first-child,.btn .rst-content dl dt .fa-large.headerlink,.btn .rst-content h1 .fa-large.headerlink,.btn .rst-content h2 .fa-large.headerlink,.btn .rst-content h3 .fa-large.headerlink,.btn .rst-content h4 .fa-large.headerlink,.btn .rst-content h5 .fa-large.headerlink,.btn .rst-content h6 .fa-large.headerlink,.btn .rst-content p .fa-large.headerlink,.btn .rst-content table>caption .fa-large.headerlink,.btn .rst-content tt.download span.fa-large:first-child,.btn .wy-menu-vertical li button.fa-large.toctree-expand,.nav .fa-large.icon,.nav .fa.fa-large,.nav .rst-content .code-block-caption .fa-large.headerlink,.nav .rst-content .eqno .fa-large.headerlink,.nav .rst-content .fa-large.admonition-title,.nav .rst-content code.download span.fa-large:first-child,.nav .rst-content dl dt .fa-large.headerlink,.nav .rst-content h1 .fa-large.headerlink,.nav .rst-content h2 .fa-large.headerlink,.nav .rst-content h3 .fa-large.headerlink,.nav .rst-content h4 .fa-large.headerlink,.nav .rst-content h5 .fa-large.headerlink,.nav .rst-content h6 .fa-large.headerlink,.nav .rst-content p .fa-large.headerlink,.nav .rst-content table>caption .fa-large.headerlink,.nav .rst-content tt.download span.fa-large:first-child,.nav .wy-menu-vertical li button.fa-large.toctree-expand,.rst-content .btn .fa-large.admonition-title,.rst-content .code-block-caption .btn .fa-large.headerlink,.rst-content .code-block-caption .nav .fa-large.headerlink,.rst-content .eqno .btn .fa-large.headerlink,.rst-content .eqno .nav .fa-large.headerlink,.rst-content .nav .fa-large.admonition-title,.rst-content code.download .btn span.fa-large:first-child,.rst-content code.download .nav span.fa-large:first-child,.rst-content dl dt .btn .fa-large.headerlink,.rst-content dl dt .nav .fa-large.headerlink,.rst-content h1 .btn .fa-large.headerlink,.rst-content h1 .nav .fa-large.headerlink,.rst-content h2 .btn .fa-large.headerlink,.rst-content h2 .nav .fa-large.headerlink,.rst-content h3 .btn .fa-large.headerlink,.rst-content h3 .nav .fa-large.headerlink,.rst-content h4 .btn .fa-large.headerlink,.rst-content h4 .nav .fa-large.headerlink,.rst-content h5 .btn .fa-large.headerlink,.rst-content h5 .nav .fa-large.headerlink,.rst-content h6 .btn .fa-large.headerlink,.rst-content h6 .nav .fa-large.headerlink,.rst-content p .btn .fa-large.headerlink,.rst-content p .nav .fa-large.headerlink,.rst-content table>caption .btn .fa-large.headerlink,.rst-content table>caption .nav .fa-large.headerlink,.rst-content tt.download .btn span.fa-large:first-child,.rst-content tt.download .nav span.fa-large:first-child,.wy-menu-vertical li .btn button.fa-large.toctree-expand,.wy-menu-vertical li .nav button.fa-large.toctree-expand{line-height:.9em}.btn .fa-spin.icon,.btn .fa.fa-spin,.btn .rst-content .code-block-caption .fa-spin.headerlink,.btn .rst-content .eqno .fa-spin.headerlink,.btn .rst-content .fa-spin.admonition-title,.btn .rst-content code.download span.fa-spin:first-child,.btn .rst-content dl dt .fa-spin.headerlink,.btn .rst-content h1 .fa-spin.headerlink,.btn .rst-content h2 .fa-spin.headerlink,.btn .rst-content h3 .fa-spin.headerlink,.btn .rst-content h4 .fa-spin.headerlink,.btn .rst-content h5 .fa-spin.headerlink,.btn .rst-content h6 .fa-spin.headerlink,.btn .rst-content p .fa-spin.headerlink,.btn .rst-content table>caption .fa-spin.headerlink,.btn .rst-content tt.download span.fa-spin:first-child,.btn .wy-menu-vertical li button.fa-spin.toctree-expand,.nav .fa-spin.icon,.nav .fa.fa-spin,.nav .rst-content .code-block-caption .fa-spin.headerlink,.nav .rst-content .eqno .fa-spin.headerlink,.nav .rst-content .fa-spin.admonition-title,.nav .rst-content code.download span.fa-spin:first-child,.nav .rst-content dl dt .fa-spin.headerlink,.nav .rst-content h1 .fa-spin.headerlink,.nav .rst-content h2 .fa-spin.headerlink,.nav .rst-content h3 .fa-spin.headerlink,.nav .rst-content h4 .fa-spin.headerlink,.nav .rst-content h5 .fa-spin.headerlink,.nav .rst-content h6 .fa-spin.headerlink,.nav .rst-content p .fa-spin.headerlink,.nav .rst-content table>caption .fa-spin.headerlink,.nav .rst-content tt.download span.fa-spin:first-child,.nav .wy-menu-vertical li button.fa-spin.toctree-expand,.rst-content .btn .fa-spin.admonition-title,.rst-content .code-block-caption .btn .fa-spin.headerlink,.rst-content .code-block-caption .nav .fa-spin.headerlink,.rst-content .eqno .btn .fa-spin.headerlink,.rst-content .eqno .nav .fa-spin.headerlink,.rst-content .nav .fa-spin.admonition-title,.rst-content code.download .btn span.fa-spin:first-child,.rst-content code.download .nav span.fa-spin:first-child,.rst-content dl dt .btn .fa-spin.headerlink,.rst-content dl dt .nav .fa-spin.headerlink,.rst-content h1 .btn .fa-spin.headerlink,.rst-content h1 .nav .fa-spin.headerlink,.rst-content h2 .btn .fa-spin.headerlink,.rst-content h2 .nav .fa-spin.headerlink,.rst-content h3 .btn .fa-spin.headerlink,.rst-content h3 .nav .fa-spin.headerlink,.rst-content h4 .btn .fa-spin.headerlink,.rst-content h4 .nav .fa-spin.headerlink,.rst-content h5 .btn .fa-spin.headerlink,.rst-content h5 .nav .fa-spin.headerlink,.rst-content h6 .btn .fa-spin.headerlink,.rst-content h6 .nav .fa-spin.headerlink,.rst-content p .btn .fa-spin.headerlink,.rst-content p .nav .fa-spin.headerlink,.rst-content table>caption .btn .fa-spin.headerlink,.rst-content table>caption .nav .fa-spin.headerlink,.rst-content tt.download .btn span.fa-spin:first-child,.rst-content tt.download .nav span.fa-spin:first-child,.wy-menu-vertical li .btn button.fa-spin.toctree-expand,.wy-menu-vertical li .nav button.fa-spin.toctree-expand{display:inline-block}.btn.fa:before,.btn.icon:before,.rst-content .btn.admonition-title:before,.rst-content .code-block-caption .btn.headerlink:before,.rst-content .eqno .btn.headerlink:before,.rst-content code.download span.btn:first-child:before,.rst-content dl dt .btn.headerlink:before,.rst-content h1 .btn.headerlink:before,.rst-content h2 .btn.headerlink:before,.rst-content h3 .btn.headerlink:before,.rst-content h4 .btn.headerlink:before,.rst-content h5 .btn.headerlink:before,.rst-content h6 .btn.headerlink:before,.rst-content p .btn.headerlink:before,.rst-content table>caption .btn.headerlink:before,.rst-content tt.download span.btn:first-child:before,.wy-menu-vertical li button.btn.toctree-expand:before{opacity:.5;-webkit-transition:opacity .05s ease-in;-moz-transition:opacity .05s ease-in;transition:opacity .05s ease-in}.btn.fa:hover:before,.btn.icon:hover:before,.rst-content .btn.admonition-title:hover:before,.rst-content .code-block-caption .btn.headerlink:hover:before,.rst-content .eqno .btn.headerlink:hover:before,.rst-content code.download span.btn:first-child:hover:before,.rst-content dl dt .btn.headerlink:hover:before,.rst-content h1 .btn.headerlink:hover:before,.rst-content h2 .btn.headerlink:hover:before,.rst-content h3 .btn.headerlink:hover:before,.rst-content h4 .btn.headerlink:hover:before,.rst-content h5 .btn.headerlink:hover:before,.rst-content h6 .btn.headerlink:hover:before,.rst-content p .btn.headerlink:hover:before,.rst-content table>caption .btn.headerlink:hover:before,.rst-content tt.download span.btn:first-child:hover:before,.wy-menu-vertical li button.btn.toctree-expand:hover:before{opacity:1}.btn-mini .fa:before,.btn-mini .icon:before,.btn-mini .rst-content .admonition-title:before,.btn-mini .rst-content .code-block-caption .headerlink:before,.btn-mini .rst-content .eqno .headerlink:before,.btn-mini .rst-content code.download span:first-child:before,.btn-mini .rst-content dl dt .headerlink:before,.btn-mini .rst-content h1 .headerlink:before,.btn-mini .rst-content h2 .headerlink:before,.btn-mini .rst-content h3 .headerlink:before,.btn-mini .rst-content h4 .headerlink:before,.btn-mini .rst-content h5 .headerlink:before,.btn-mini .rst-content h6 .headerlink:before,.btn-mini .rst-content p .headerlink:before,.btn-mini .rst-content table>caption .headerlink:before,.btn-mini .rst-content tt.download span:first-child:before,.btn-mini .wy-menu-vertical li button.toctree-expand:before,.rst-content .btn-mini .admonition-title:before,.rst-content .code-block-caption .btn-mini .headerlink:before,.rst-content .eqno .btn-mini .headerlink:before,.rst-content code.download .btn-mini span:first-child:before,.rst-content dl dt .btn-mini .headerlink:before,.rst-content h1 .btn-mini .headerlink:before,.rst-content h2 .btn-mini .headerlink:before,.rst-content h3 .btn-mini .headerlink:before,.rst-content h4 .btn-mini .headerlink:before,.rst-content h5 .btn-mini .headerlink:before,.rst-content h6 .btn-mini .headerlink:before,.rst-content p .btn-mini .headerlink:before,.rst-content table>caption .btn-mini .headerlink:before,.rst-content tt.download .btn-mini span:first-child:before,.wy-menu-vertical li .btn-mini button.toctree-expand:before{font-size:14px;vertical-align:-15%}.rst-content .admonition,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning,.wy-alert{padding:12px;line-height:24px;margin-bottom:24px;background:#e7f2fa}.rst-content .admonition-title,.wy-alert-title{font-weight:700;display:block;color:#fff;background:#6ab0de;padding:6px 12px;margin:-12px -12px 12px}.rst-content .danger,.rst-content .error,.rst-content .wy-alert-danger.admonition,.rst-content .wy-alert-danger.admonition-todo,.rst-content .wy-alert-danger.attention,.rst-content .wy-alert-danger.caution,.rst-content .wy-alert-danger.hint,.rst-content .wy-alert-danger.important,.rst-content .wy-alert-danger.note,.rst-content .wy-alert-danger.seealso,.rst-content .wy-alert-danger.tip,.rst-content .wy-alert-danger.warning,.wy-alert.wy-alert-danger{background:#fdf3f2}.rst-content .danger .admonition-title,.rst-content .danger .wy-alert-title,.rst-content .error .admonition-title,.rst-content .error .wy-alert-title,.rst-content .wy-alert-danger.admonition-todo .admonition-title,.rst-content .wy-alert-danger.admonition-todo .wy-alert-title,.rst-content .wy-alert-danger.admonition .admonition-title,.rst-content .wy-alert-danger.admonition .wy-alert-title,.rst-content .wy-alert-danger.attention .admonition-title,.rst-content .wy-alert-danger.attention .wy-alert-title,.rst-content .wy-alert-danger.caution .admonition-title,.rst-content .wy-alert-danger.caution .wy-alert-title,.rst-content .wy-alert-danger.hint .admonition-title,.rst-content .wy-alert-danger.hint .wy-alert-title,.rst-content .wy-alert-danger.important .admonition-title,.rst-content .wy-alert-danger.important .wy-alert-title,.rst-content .wy-alert-danger.note .admonition-title,.rst-content .wy-alert-danger.note .wy-alert-title,.rst-content .wy-alert-danger.seealso .admonition-title,.rst-content .wy-alert-danger.seealso .wy-alert-title,.rst-content .wy-alert-danger.tip .admonition-title,.rst-content .wy-alert-danger.tip .wy-alert-title,.rst-content .wy-alert-danger.warning .admonition-title,.rst-content .wy-alert-danger.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-danger .admonition-title,.wy-alert.wy-alert-danger .rst-content .admonition-title,.wy-alert.wy-alert-danger .wy-alert-title{background:#f29f97}.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .warning,.rst-content .wy-alert-warning.admonition,.rst-content .wy-alert-warning.danger,.rst-content .wy-alert-warning.error,.rst-content .wy-alert-warning.hint,.rst-content .wy-alert-warning.important,.rst-content .wy-alert-warning.note,.rst-content .wy-alert-warning.seealso,.rst-content .wy-alert-warning.tip,.wy-alert.wy-alert-warning{background:#ffedcc}.rst-content .admonition-todo .admonition-title,.rst-content .admonition-todo .wy-alert-title,.rst-content .attention .admonition-title,.rst-content .attention .wy-alert-title,.rst-content .caution .admonition-title,.rst-content .caution .wy-alert-title,.rst-content .warning .admonition-title,.rst-content .warning .wy-alert-title,.rst-content .wy-alert-warning.admonition .admonition-title,.rst-content .wy-alert-warning.admonition .wy-alert-title,.rst-content .wy-alert-warning.danger .admonition-title,.rst-content .wy-alert-warning.danger .wy-alert-title,.rst-content .wy-alert-warning.error .admonition-title,.rst-content .wy-alert-warning.error .wy-alert-title,.rst-content .wy-alert-warning.hint .admonition-title,.rst-content .wy-alert-warning.hint .wy-alert-title,.rst-content .wy-alert-warning.important .admonition-title,.rst-content .wy-alert-warning.important .wy-alert-title,.rst-content .wy-alert-warning.note .admonition-title,.rst-content .wy-alert-warning.note .wy-alert-title,.rst-content .wy-alert-warning.seealso .admonition-title,.rst-content .wy-alert-warning.seealso .wy-alert-title,.rst-content .wy-alert-warning.tip .admonition-title,.rst-content .wy-alert-warning.tip .wy-alert-title,.rst-content .wy-alert.wy-alert-warning .admonition-title,.wy-alert.wy-alert-warning .rst-content .admonition-title,.wy-alert.wy-alert-warning .wy-alert-title{background:#f0b37e}.rst-content .note,.rst-content .seealso,.rst-content .wy-alert-info.admonition,.rst-content .wy-alert-info.admonition-todo,.rst-content .wy-alert-info.attention,.rst-content .wy-alert-info.caution,.rst-content .wy-alert-info.danger,.rst-content .wy-alert-info.error,.rst-content .wy-alert-info.hint,.rst-content .wy-alert-info.important,.rst-content .wy-alert-info.tip,.rst-content .wy-alert-info.warning,.wy-alert.wy-alert-info{background:#e7f2fa}.rst-content .note .admonition-title,.rst-content .note .wy-alert-title,.rst-content .seealso .admonition-title,.rst-content .seealso .wy-alert-title,.rst-content .wy-alert-info.admonition-todo .admonition-title,.rst-content .wy-alert-info.admonition-todo .wy-alert-title,.rst-content .wy-alert-info.admonition .admonition-title,.rst-content .wy-alert-info.admonition .wy-alert-title,.rst-content .wy-alert-info.attention .admonition-title,.rst-content .wy-alert-info.attention .wy-alert-title,.rst-content .wy-alert-info.caution .admonition-title,.rst-content .wy-alert-info.caution .wy-alert-title,.rst-content .wy-alert-info.danger .admonition-title,.rst-content .wy-alert-info.danger .wy-alert-title,.rst-content .wy-alert-info.error .admonition-title,.rst-content .wy-alert-info.error .wy-alert-title,.rst-content .wy-alert-info.hint .admonition-title,.rst-content .wy-alert-info.hint .wy-alert-title,.rst-content .wy-alert-info.important .admonition-title,.rst-content .wy-alert-info.important .wy-alert-title,.rst-content .wy-alert-info.tip .admonition-title,.rst-content .wy-alert-info.tip .wy-alert-title,.rst-content .wy-alert-info.warning .admonition-title,.rst-content .wy-alert-info.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-info .admonition-title,.wy-alert.wy-alert-info .rst-content .admonition-title,.wy-alert.wy-alert-info .wy-alert-title{background:#6ab0de}.rst-content .hint,.rst-content .important,.rst-content .tip,.rst-content .wy-alert-success.admonition,.rst-content .wy-alert-success.admonition-todo,.rst-content .wy-alert-success.attention,.rst-content .wy-alert-success.caution,.rst-content .wy-alert-success.danger,.rst-content .wy-alert-success.error,.rst-content .wy-alert-success.note,.rst-content .wy-alert-success.seealso,.rst-content .wy-alert-success.warning,.wy-alert.wy-alert-success{background:#dbfaf4}.rst-content .hint .admonition-title,.rst-content .hint .wy-alert-title,.rst-content .important .admonition-title,.rst-content .important .wy-alert-title,.rst-content .tip .admonition-title,.rst-content .tip .wy-alert-title,.rst-content .wy-alert-success.admonition-todo .admonition-title,.rst-content .wy-alert-success.admonition-todo .wy-alert-title,.rst-content .wy-alert-success.admonition .admonition-title,.rst-content .wy-alert-success.admonition .wy-alert-title,.rst-content .wy-alert-success.attention .admonition-title,.rst-content .wy-alert-success.attention .wy-alert-title,.rst-content .wy-alert-success.caution .admonition-title,.rst-content .wy-alert-success.caution .wy-alert-title,.rst-content .wy-alert-success.danger .admonition-title,.rst-content .wy-alert-success.danger .wy-alert-title,.rst-content .wy-alert-success.error .admonition-title,.rst-content .wy-alert-success.error .wy-alert-title,.rst-content .wy-alert-success.note .admonition-title,.rst-content .wy-alert-success.note .wy-alert-title,.rst-content .wy-alert-success.seealso .admonition-title,.rst-content .wy-alert-success.seealso .wy-alert-title,.rst-content .wy-alert-success.warning .admonition-title,.rst-content .wy-alert-success.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-success .admonition-title,.wy-alert.wy-alert-success .rst-content .admonition-title,.wy-alert.wy-alert-success .wy-alert-title{background:#1abc9c}.rst-content .wy-alert-neutral.admonition,.rst-content .wy-alert-neutral.admonition-todo,.rst-content .wy-alert-neutral.attention,.rst-content .wy-alert-neutral.caution,.rst-content .wy-alert-neutral.danger,.rst-content .wy-alert-neutral.error,.rst-content .wy-alert-neutral.hint,.rst-content .wy-alert-neutral.important,.rst-content .wy-alert-neutral.note,.rst-content .wy-alert-neutral.seealso,.rst-content .wy-alert-neutral.tip,.rst-content .wy-alert-neutral.warning,.wy-alert.wy-alert-neutral{background:#f3f6f6}.rst-content .wy-alert-neutral.admonition-todo .admonition-title,.rst-content .wy-alert-neutral.admonition-todo .wy-alert-title,.rst-content .wy-alert-neutral.admonition .admonition-title,.rst-content .wy-alert-neutral.admonition .wy-alert-title,.rst-content .wy-alert-neutral.attention .admonition-title,.rst-content .wy-alert-neutral.attention .wy-alert-title,.rst-content .wy-alert-neutral.caution .admonition-title,.rst-content .wy-alert-neutral.caution .wy-alert-title,.rst-content .wy-alert-neutral.danger .admonition-title,.rst-content .wy-alert-neutral.danger .wy-alert-title,.rst-content .wy-alert-neutral.error .admonition-title,.rst-content .wy-alert-neutral.error .wy-alert-title,.rst-content .wy-alert-neutral.hint .admonition-title,.rst-content .wy-alert-neutral.hint .wy-alert-title,.rst-content .wy-alert-neutral.important .admonition-title,.rst-content .wy-alert-neutral.important .wy-alert-title,.rst-content .wy-alert-neutral.note .admonition-title,.rst-content .wy-alert-neutral.note .wy-alert-title,.rst-content .wy-alert-neutral.seealso .admonition-title,.rst-content .wy-alert-neutral.seealso .wy-alert-title,.rst-content .wy-alert-neutral.tip .admonition-title,.rst-content .wy-alert-neutral.tip .wy-alert-title,.rst-content .wy-alert-neutral.warning .admonition-title,.rst-content .wy-alert-neutral.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-neutral .admonition-title,.wy-alert.wy-alert-neutral .rst-content .admonition-title,.wy-alert.wy-alert-neutral .wy-alert-title{color:#404040;background:#e1e4e5}.rst-content .wy-alert-neutral.admonition-todo a,.rst-content .wy-alert-neutral.admonition a,.rst-content .wy-alert-neutral.attention a,.rst-content .wy-alert-neutral.caution a,.rst-content .wy-alert-neutral.danger a,.rst-content .wy-alert-neutral.error a,.rst-content .wy-alert-neutral.hint a,.rst-content .wy-alert-neutral.important a,.rst-content .wy-alert-neutral.note a,.rst-content .wy-alert-neutral.seealso a,.rst-content .wy-alert-neutral.tip a,.rst-content .wy-alert-neutral.warning a,.wy-alert.wy-alert-neutral a{color:#2980b9}.rst-content .admonition-todo p:last-child,.rst-content .admonition p:last-child,.rst-content .attention p:last-child,.rst-content .caution p:last-child,.rst-content .danger p:last-child,.rst-content .error p:last-child,.rst-content .hint p:last-child,.rst-content .important p:last-child,.rst-content .note p:last-child,.rst-content .seealso p:last-child,.rst-content .tip p:last-child,.rst-content .warning p:last-child,.wy-alert p:last-child{margin-bottom:0}.wy-tray-container{position:fixed;bottom:0;left:0;z-index:600}.wy-tray-container li{display:block;width:300px;background:transparent;color:#fff;text-align:center;box-shadow:0 5px 5px 0 rgba(0,0,0,.1);padding:0 24px;min-width:20%;opacity:0;height:0;line-height:56px;overflow:hidden;-webkit-transition:all .3s ease-in;-moz-transition:all .3s ease-in;transition:all .3s ease-in}.wy-tray-container li.wy-tray-item-success{background:#27ae60}.wy-tray-container li.wy-tray-item-info{background:#2980b9}.wy-tray-container li.wy-tray-item-warning{background:#e67e22}.wy-tray-container li.wy-tray-item-danger{background:#e74c3c}.wy-tray-container li.on{opacity:1;height:56px}@media screen and (max-width:768px){.wy-tray-container{bottom:auto;top:0;width:100%}.wy-tray-container li{width:100%}}button{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle;cursor:pointer;line-height:normal;-webkit-appearance:button;*overflow:visible}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}button[disabled]{cursor:default}.btn{display:inline-block;border-radius:2px;line-height:normal;white-space:nowrap;text-align:center;cursor:pointer;font-size:100%;padding:6px 12px 8px;color:#fff;border:1px solid rgba(0,0,0,.1);background-color:#27ae60;text-decoration:none;font-weight:400;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;box-shadow:inset 0 1px 2px -1px hsla(0,0%,100%,.5),inset 0 -2px 0 0 rgba(0,0,0,.1);outline-none:false;vertical-align:middle;*display:inline;zoom:1;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all .1s linear;-moz-transition:all .1s linear;transition:all .1s linear}.btn-hover{background:#2e8ece;color:#fff}.btn:hover{background:#2cc36b;color:#fff}.btn:focus{background:#2cc36b;outline:0}.btn:active{box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.05),inset 0 2px 0 0 rgba(0,0,0,.1);padding:8px 12px 6px}.btn:visited{color:#fff}.btn-disabled,.btn-disabled:active,.btn-disabled:focus,.btn-disabled:hover,.btn:disabled{background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none}.btn::-moz-focus-inner{padding:0;border:0}.btn-small{font-size:80%}.btn-info{background-color:#2980b9!important}.btn-info:hover{background-color:#2e8ece!important}.btn-neutral{background-color:#f3f6f6!important;color:#404040!important}.btn-neutral:hover{background-color:#e5ebeb!important;color:#404040}.btn-neutral:visited{color:#404040!important}.btn-success{background-color:#27ae60!important}.btn-success:hover{background-color:#295!important}.btn-danger{background-color:#e74c3c!important}.btn-danger:hover{background-color:#ea6153!important}.btn-warning{background-color:#e67e22!important}.btn-warning:hover{background-color:#e98b39!important}.btn-invert{background-color:#222}.btn-invert:hover{background-color:#2f2f2f!important}.btn-link{background-color:transparent!important;color:#2980b9;box-shadow:none;border-color:transparent!important}.btn-link:active,.btn-link:hover{background-color:transparent!important;color:#409ad5!important;box-shadow:none}.btn-link:visited{color:#9b59b6}.wy-btn-group .btn,.wy-control .btn{vertical-align:middle}.wy-btn-group{margin-bottom:24px;*zoom:1}.wy-btn-group:after,.wy-btn-group:before{display:table;content:""}.wy-btn-group:after{clear:both}.wy-dropdown{position:relative;display:inline-block}.wy-dropdown-active .wy-dropdown-menu{display:block}.wy-dropdown-menu{position:absolute;left:0;display:none;float:left;top:100%;min-width:100%;background:#fcfcfc;z-index:100;border:1px solid #cfd7dd;box-shadow:0 2px 2px 0 rgba(0,0,0,.1);padding:12px}.wy-dropdown-menu>dd>a{display:block;clear:both;color:#404040;white-space:nowrap;font-size:90%;padding:0 12px;cursor:pointer}.wy-dropdown-menu>dd>a:hover{background:#2980b9;color:#fff}.wy-dropdown-menu>dd.divider{border-top:1px solid #cfd7dd;margin:6px 0}.wy-dropdown-menu>dd.search{padding-bottom:12px}.wy-dropdown-menu>dd.search input[type=search]{width:100%}.wy-dropdown-menu>dd.call-to-action{background:#e3e3e3;text-transform:uppercase;font-weight:500;font-size:80%}.wy-dropdown-menu>dd.call-to-action:hover{background:#e3e3e3}.wy-dropdown-menu>dd.call-to-action .btn{color:#fff}.wy-dropdown.wy-dropdown-up .wy-dropdown-menu{bottom:100%;top:auto;left:auto;right:0}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu{background:#fcfcfc;margin-top:2px}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a{padding:6px 12px}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a:hover{background:#2980b9;color:#fff}.wy-dropdown.wy-dropdown-left .wy-dropdown-menu{right:0;left:auto;text-align:right}.wy-dropdown-arrow:before{content:" ";border-bottom:5px solid #f5f5f5;border-left:5px solid transparent;border-right:5px solid transparent;position:absolute;display:block;top:-4px;left:50%;margin-left:-3px}.wy-dropdown-arrow.wy-dropdown-arrow-left:before{left:11px}.wy-form-stacked select{display:block}.wy-form-aligned .wy-help-inline,.wy-form-aligned input,.wy-form-aligned label,.wy-form-aligned select,.wy-form-aligned textarea{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.wy-form-aligned .wy-control-group>label{display:inline-block;vertical-align:middle;width:10em;margin:6px 12px 0 0;float:left}.wy-form-aligned .wy-control{float:left}.wy-form-aligned .wy-control label{display:block}.wy-form-aligned .wy-control select{margin-top:6px}fieldset{margin:0}fieldset,legend{border:0;padding:0}legend{width:100%;white-space:normal;margin-bottom:24px;font-size:150%;*margin-left:-7px}label,legend{display:block}label{margin:0 0 .3125em;color:#333;font-size:90%}input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}.wy-control-group{margin-bottom:24px;max-width:1200px;margin-left:auto;margin-right:auto;*zoom:1}.wy-control-group:after,.wy-control-group:before{display:table;content:""}.wy-control-group:after{clear:both}.wy-control-group.wy-control-group-required>label:after{content:" *";color:#e74c3c}.wy-control-group .wy-form-full,.wy-control-group .wy-form-halves,.wy-control-group .wy-form-thirds{padding-bottom:12px}.wy-control-group .wy-form-full input[type=color],.wy-control-group .wy-form-full input[type=date],.wy-control-group .wy-form-full input[type=datetime-local],.wy-control-group .wy-form-full input[type=datetime],.wy-control-group .wy-form-full input[type=email],.wy-control-group .wy-form-full input[type=month],.wy-control-group .wy-form-full input[type=number],.wy-control-group .wy-form-full input[type=password],.wy-control-group .wy-form-full input[type=search],.wy-control-group .wy-form-full input[type=tel],.wy-control-group .wy-form-full input[type=text],.wy-control-group .wy-form-full input[type=time],.wy-control-group .wy-form-full input[type=url],.wy-control-group .wy-form-full input[type=week],.wy-control-group .wy-form-full select,.wy-control-group .wy-form-halves input[type=color],.wy-control-group .wy-form-halves input[type=date],.wy-control-group .wy-form-halves input[type=datetime-local],.wy-control-group .wy-form-halves input[type=datetime],.wy-control-group .wy-form-halves input[type=email],.wy-control-group .wy-form-halves input[type=month],.wy-control-group .wy-form-halves input[type=number],.wy-control-group .wy-form-halves input[type=password],.wy-control-group .wy-form-halves input[type=search],.wy-control-group .wy-form-halves input[type=tel],.wy-control-group .wy-form-halves input[type=text],.wy-control-group .wy-form-halves input[type=time],.wy-control-group .wy-form-halves input[type=url],.wy-control-group .wy-form-halves input[type=week],.wy-control-group .wy-form-halves select,.wy-control-group .wy-form-thirds input[type=color],.wy-control-group .wy-form-thirds input[type=date],.wy-control-group .wy-form-thirds input[type=datetime-local],.wy-control-group .wy-form-thirds input[type=datetime],.wy-control-group .wy-form-thirds input[type=email],.wy-control-group .wy-form-thirds input[type=month],.wy-control-group .wy-form-thirds input[type=number],.wy-control-group .wy-form-thirds input[type=password],.wy-control-group .wy-form-thirds input[type=search],.wy-control-group .wy-form-thirds input[type=tel],.wy-control-group .wy-form-thirds input[type=text],.wy-control-group .wy-form-thirds input[type=time],.wy-control-group .wy-form-thirds input[type=url],.wy-control-group .wy-form-thirds input[type=week],.wy-control-group .wy-form-thirds select{width:100%}.wy-control-group .wy-form-full{float:left;display:block;width:100%;margin-right:0}.wy-control-group .wy-form-full:last-child{margin-right:0}.wy-control-group .wy-form-halves{float:left;display:block;margin-right:2.35765%;width:48.82117%}.wy-control-group .wy-form-halves:last-child,.wy-control-group .wy-form-halves:nth-of-type(2n){margin-right:0}.wy-control-group .wy-form-halves:nth-of-type(odd){clear:left}.wy-control-group .wy-form-thirds{float:left;display:block;margin-right:2.35765%;width:31.76157%}.wy-control-group .wy-form-thirds:last-child,.wy-control-group .wy-form-thirds:nth-of-type(3n){margin-right:0}.wy-control-group .wy-form-thirds:nth-of-type(3n+1){clear:left}.wy-control-group.wy-control-group-no-input .wy-control,.wy-control-no-input{margin:6px 0 0;font-size:90%}.wy-control-no-input{display:inline-block}.wy-control-group.fluid-input input[type=color],.wy-control-group.fluid-input input[type=date],.wy-control-group.fluid-input input[type=datetime-local],.wy-control-group.fluid-input input[type=datetime],.wy-control-group.fluid-input input[type=email],.wy-control-group.fluid-input input[type=month],.wy-control-group.fluid-input input[type=number],.wy-control-group.fluid-input input[type=password],.wy-control-group.fluid-input input[type=search],.wy-control-group.fluid-input input[type=tel],.wy-control-group.fluid-input input[type=text],.wy-control-group.fluid-input input[type=time],.wy-control-group.fluid-input input[type=url],.wy-control-group.fluid-input input[type=week]{width:100%}.wy-form-message-inline{padding-left:.3em;color:#666;font-size:90%}.wy-form-message{display:block;color:#999;font-size:70%;margin-top:.3125em;font-style:italic}.wy-form-message p{font-size:inherit;font-style:italic;margin-bottom:6px}.wy-form-message p:last-child{margin-bottom:0}input{line-height:normal}input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;*overflow:visible}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{-webkit-appearance:none;padding:6px;display:inline-block;border:1px solid #ccc;font-size:80%;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;box-shadow:inset 0 1px 3px #ddd;border-radius:0;-webkit-transition:border .3s linear;-moz-transition:border .3s linear;transition:border .3s linear}input[type=datetime-local]{padding:.34375em .625em}input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{padding:0;margin-right:.3125em;*height:13px;*width:13px}input[type=checkbox],input[type=radio],input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus{outline:0;outline:thin dotted\9;border-color:#333}input.no-focus:focus{border-color:#ccc!important}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:thin dotted #333;outline:1px auto #129fea}input[type=color][disabled],input[type=date][disabled],input[type=datetime-local][disabled],input[type=datetime][disabled],input[type=email][disabled],input[type=month][disabled],input[type=number][disabled],input[type=password][disabled],input[type=search][disabled],input[type=tel][disabled],input[type=text][disabled],input[type=time][disabled],input[type=url][disabled],input[type=week][disabled]{cursor:not-allowed;background-color:#fafafa}input:focus:invalid,select:focus:invalid,textarea:focus:invalid{color:#e74c3c;border:1px solid #e74c3c}input:focus:invalid:focus,select:focus:invalid:focus,textarea:focus:invalid:focus{border-color:#e74c3c}input[type=checkbox]:focus:invalid:focus,input[type=file]:focus:invalid:focus,input[type=radio]:focus:invalid:focus{outline-color:#e74c3c}input.wy-input-large{padding:12px;font-size:100%}textarea{overflow:auto;vertical-align:top;width:100%;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif}select,textarea{padding:.5em .625em;display:inline-block;border:1px solid #ccc;font-size:80%;box-shadow:inset 0 1px 3px #ddd;-webkit-transition:border .3s linear;-moz-transition:border .3s linear;transition:border .3s linear}select{border:1px solid #ccc;background-color:#fff}select[multiple]{height:auto}select:focus,textarea:focus{outline:0}input[readonly],select[disabled],select[readonly],textarea[disabled],textarea[readonly]{cursor:not-allowed;background-color:#fafafa}input[type=checkbox][disabled],input[type=radio][disabled]{cursor:not-allowed}.wy-checkbox,.wy-radio{margin:6px 0;color:#404040;display:block}.wy-checkbox input,.wy-radio input{vertical-align:baseline}.wy-form-message-inline{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.wy-input-prefix,.wy-input-suffix{white-space:nowrap;padding:6px}.wy-input-prefix .wy-input-context,.wy-input-suffix .wy-input-context{line-height:27px;padding:0 8px;display:inline-block;font-size:80%;background-color:#f3f6f6;border:1px solid #ccc;color:#999}.wy-input-suffix .wy-input-context{border-left:0}.wy-input-prefix .wy-input-context{border-right:0}.wy-switch{position:relative;display:block;height:24px;margin-top:12px;cursor:pointer}.wy-switch:before{left:0;top:0;width:36px;height:12px;background:#ccc}.wy-switch:after,.wy-switch:before{position:absolute;content:"";display:block;border-radius:4px;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.wy-switch:after{width:18px;height:18px;background:#999;left:-3px;top:-3px}.wy-switch span{position:absolute;left:48px;display:block;font-size:12px;color:#ccc;line-height:1}.wy-switch.active:before{background:#1e8449}.wy-switch.active:after{left:24px;background:#27ae60}.wy-switch.disabled{cursor:not-allowed;opacity:.8}.wy-control-group.wy-control-group-error .wy-form-message,.wy-control-group.wy-control-group-error>label{color:#e74c3c}.wy-control-group.wy-control-group-error input[type=color],.wy-control-group.wy-control-group-error input[type=date],.wy-control-group.wy-control-group-error input[type=datetime-local],.wy-control-group.wy-control-group-error input[type=datetime],.wy-control-group.wy-control-group-error input[type=email],.wy-control-group.wy-control-group-error input[type=month],.wy-control-group.wy-control-group-error input[type=number],.wy-control-group.wy-control-group-error input[type=password],.wy-control-group.wy-control-group-error input[type=search],.wy-control-group.wy-control-group-error input[type=tel],.wy-control-group.wy-control-group-error input[type=text],.wy-control-group.wy-control-group-error input[type=time],.wy-control-group.wy-control-group-error input[type=url],.wy-control-group.wy-control-group-error input[type=week],.wy-control-group.wy-control-group-error textarea{border:1px solid #e74c3c}.wy-inline-validate{white-space:nowrap}.wy-inline-validate .wy-input-context{padding:.5em .625em;display:inline-block;font-size:80%}.wy-inline-validate.wy-inline-validate-success .wy-input-context{color:#27ae60}.wy-inline-validate.wy-inline-validate-danger .wy-input-context{color:#e74c3c}.wy-inline-validate.wy-inline-validate-warning .wy-input-context{color:#e67e22}.wy-inline-validate.wy-inline-validate-info .wy-input-context{color:#2980b9}.rotate-90{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.rotate-180{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.rotate-270{-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}.mirror{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);-o-transform:scaleX(-1);transform:scaleX(-1)}.mirror.rotate-90{-webkit-transform:scaleX(-1) rotate(90deg);-moz-transform:scaleX(-1) rotate(90deg);-ms-transform:scaleX(-1) rotate(90deg);-o-transform:scaleX(-1) rotate(90deg);transform:scaleX(-1) rotate(90deg)}.mirror.rotate-180{-webkit-transform:scaleX(-1) rotate(180deg);-moz-transform:scaleX(-1) rotate(180deg);-ms-transform:scaleX(-1) rotate(180deg);-o-transform:scaleX(-1) rotate(180deg);transform:scaleX(-1) rotate(180deg)}.mirror.rotate-270{-webkit-transform:scaleX(-1) rotate(270deg);-moz-transform:scaleX(-1) rotate(270deg);-ms-transform:scaleX(-1) rotate(270deg);-o-transform:scaleX(-1) rotate(270deg);transform:scaleX(-1) rotate(270deg)}@media only screen and (max-width:480px){.wy-form button[type=submit]{margin:.7em 0 0}.wy-form input[type=color],.wy-form input[type=date],.wy-form input[type=datetime-local],.wy-form input[type=datetime],.wy-form input[type=email],.wy-form input[type=month],.wy-form input[type=number],.wy-form input[type=password],.wy-form input[type=search],.wy-form input[type=tel],.wy-form input[type=text],.wy-form input[type=time],.wy-form input[type=url],.wy-form input[type=week],.wy-form label{margin-bottom:.3em;display:block}.wy-form input[type=color],.wy-form input[type=date],.wy-form input[type=datetime-local],.wy-form input[type=datetime],.wy-form input[type=email],.wy-form input[type=month],.wy-form input[type=number],.wy-form input[type=password],.wy-form input[type=search],.wy-form input[type=tel],.wy-form input[type=time],.wy-form input[type=url],.wy-form input[type=week]{margin-bottom:0}.wy-form-aligned .wy-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.wy-form-aligned .wy-control{margin:1.5em 0 0}.wy-form-message,.wy-form-message-inline,.wy-form .wy-help-inline{display:block;font-size:80%;padding:6px 0}}@media screen and (max-width:768px){.tablet-hide{display:none}}@media screen and (max-width:480px){.mobile-hide{display:none}}.float-left{float:left}.float-right{float:right}.full-width{width:100%}.rst-content table.docutils,.rst-content table.field-list,.wy-table{border-collapse:collapse;border-spacing:0;empty-cells:show;margin-bottom:24px}.rst-content table.docutils caption,.rst-content table.field-list caption,.wy-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.rst-content table.docutils td,.rst-content table.docutils th,.rst-content table.field-list td,.rst-content table.field-list th,.wy-table td,.wy-table th{font-size:90%;margin:0;overflow:visible;padding:8px 16px}.rst-content table.docutils td:first-child,.rst-content table.docutils th:first-child,.rst-content table.field-list td:first-child,.rst-content table.field-list th:first-child,.wy-table td:first-child,.wy-table th:first-child{border-left-width:0}.rst-content table.docutils thead,.rst-content table.field-list thead,.wy-table thead{color:#000;text-align:left;vertical-align:bottom;white-space:nowrap}.rst-content table.docutils thead th,.rst-content table.field-list thead th,.wy-table thead th{font-weight:700;border-bottom:2px solid #e1e4e5}.rst-content table.docutils td,.rst-content table.field-list td,.wy-table td{background-color:transparent;vertical-align:middle}.rst-content table.docutils td p,.rst-content table.field-list td p,.wy-table td p{line-height:18px}.rst-content table.docutils td p:last-child,.rst-content table.field-list td p:last-child,.wy-table td p:last-child{margin-bottom:0}.rst-content table.docutils .wy-table-cell-min,.rst-content table.field-list .wy-table-cell-min,.wy-table .wy-table-cell-min{width:1%;padding-right:0}.rst-content table.docutils .wy-table-cell-min input[type=checkbox],.rst-content table.field-list .wy-table-cell-min input[type=checkbox],.wy-table .wy-table-cell-min input[type=checkbox]{margin:0}.wy-table-secondary{color:grey;font-size:90%}.wy-table-tertiary{color:grey;font-size:80%}.rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td,.wy-table-backed,.wy-table-odd td,.wy-table-striped tr:nth-child(2n-1) td{background-color:#f3f6f6}.rst-content table.docutils,.wy-table-bordered-all{border:1px solid #e1e4e5}.rst-content table.docutils td,.wy-table-bordered-all td{border-bottom:1px solid #e1e4e5;border-left:1px solid #e1e4e5}.rst-content table.docutils tbody>tr:last-child td,.wy-table-bordered-all tbody>tr:last-child td{border-bottom-width:0}.wy-table-bordered{border:1px solid #e1e4e5}.wy-table-bordered-rows td{border-bottom:1px solid #e1e4e5}.wy-table-bordered-rows tbody>tr:last-child td{border-bottom-width:0}.wy-table-horizontal td,.wy-table-horizontal th{border-width:0 0 1px;border-bottom:1px solid #e1e4e5}.wy-table-horizontal tbody>tr:last-child td{border-bottom-width:0}.wy-table-responsive{margin-bottom:24px;max-width:100%;overflow:auto}.wy-table-responsive table{margin-bottom:0!important}.wy-table-responsive table td,.wy-table-responsive table th{white-space:nowrap}a{color:#2980b9;text-decoration:none;cursor:pointer}a:hover{color:#3091d1}a:visited{color:#9b59b6}html{height:100%}body,html{overflow-x:hidden}body{font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;font-weight:400;color:#404040;min-height:100%;background:#edf0f2}.wy-text-left{text-align:left}.wy-text-center{text-align:center}.wy-text-right{text-align:right}.wy-text-large{font-size:120%}.wy-text-normal{font-size:100%}.wy-text-small,small{font-size:80%}.wy-text-strike{text-decoration:line-through}.wy-text-warning{color:#e67e22!important}a.wy-text-warning:hover{color:#eb9950!important}.wy-text-info{color:#2980b9!important}a.wy-text-info:hover{color:#409ad5!important}.wy-text-success{color:#27ae60!important}a.wy-text-success:hover{color:#36d278!important}.wy-text-danger{color:#e74c3c!important}a.wy-text-danger:hover{color:#ed7669!important}.wy-text-neutral{color:#404040!important}a.wy-text-neutral:hover{color:#595959!important}.rst-content .toctree-wrapper>p.caption,h1,h2,h3,h4,h5,h6,legend{margin-top:0;font-weight:700;font-family:Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif}p{line-height:24px;font-size:16px;margin:0 0 24px}h1{font-size:175%}.rst-content .toctree-wrapper>p.caption,h2{font-size:150%}h3{font-size:125%}h4{font-size:115%}h5{font-size:110%}h6{font-size:100%}hr{display:block;height:1px;border:0;border-top:1px solid #e1e4e5;margin:24px 0;padding:0}.rst-content code,.rst-content tt,code{white-space:nowrap;max-width:100%;background:#fff;border:1px solid #e1e4e5;font-size:75%;padding:0 5px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;color:#e74c3c;overflow-x:auto}.rst-content tt.code-large,code.code-large{font-size:90%}.rst-content .section ul,.rst-content .toctree-wrapper ul,.rst-content section ul,.wy-plain-list-disc,article ul{list-style:disc;line-height:24px;margin-bottom:24px}.rst-content .section ul li,.rst-content .toctree-wrapper ul li,.rst-content section ul li,.wy-plain-list-disc li,article ul li{list-style:disc;margin-left:24px}.rst-content .section ul li p:last-child,.rst-content .section ul li ul,.rst-content .toctree-wrapper ul li p:last-child,.rst-content .toctree-wrapper ul li ul,.rst-content section ul li p:last-child,.rst-content section ul li ul,.wy-plain-list-disc li p:last-child,.wy-plain-list-disc li ul,article ul li p:last-child,article ul li ul{margin-bottom:0}.rst-content .section ul li li,.rst-content .toctree-wrapper ul li li,.rst-content section ul li li,.wy-plain-list-disc li li,article ul li li{list-style:circle}.rst-content .section ul li li li,.rst-content .toctree-wrapper ul li li li,.rst-content section ul li li li,.wy-plain-list-disc li li li,article ul li li li{list-style:square}.rst-content .section ul li ol li,.rst-content .toctree-wrapper ul li ol li,.rst-content section ul li ol li,.wy-plain-list-disc li ol li,article ul li ol li{list-style:decimal}.rst-content .section ol,.rst-content .section ol.arabic,.rst-content .toctree-wrapper ol,.rst-content .toctree-wrapper ol.arabic,.rst-content section ol,.rst-content section ol.arabic,.wy-plain-list-decimal,article ol{list-style:decimal;line-height:24px;margin-bottom:24px}.rst-content .section ol.arabic li,.rst-content .section ol li,.rst-content .toctree-wrapper ol.arabic li,.rst-content .toctree-wrapper ol li,.rst-content section ol.arabic li,.rst-content section ol li,.wy-plain-list-decimal li,article ol li{list-style:decimal;margin-left:24px}.rst-content .section ol.arabic li ul,.rst-content .section ol li p:last-child,.rst-content .section ol li ul,.rst-content .toctree-wrapper ol.arabic li ul,.rst-content .toctree-wrapper ol li p:last-child,.rst-content .toctree-wrapper ol li ul,.rst-content section ol.arabic li ul,.rst-content section ol li p:last-child,.rst-content section ol li ul,.wy-plain-list-decimal li p:last-child,.wy-plain-list-decimal li ul,article ol li p:last-child,article ol li ul{margin-bottom:0}.rst-content .section ol.arabic li ul li,.rst-content .section ol li ul li,.rst-content .toctree-wrapper ol.arabic li ul li,.rst-content .toctree-wrapper ol li ul li,.rst-content section ol.arabic li ul li,.rst-content section ol li ul li,.wy-plain-list-decimal li ul li,article ol li ul li{list-style:disc}.wy-breadcrumbs{*zoom:1}.wy-breadcrumbs:after,.wy-breadcrumbs:before{display:table;content:""}.wy-breadcrumbs:after{clear:both}.wy-breadcrumbs>li{display:inline-block;padding-top:5px}.wy-breadcrumbs>li.wy-breadcrumbs-aside{float:right}.rst-content .wy-breadcrumbs>li code,.rst-content .wy-breadcrumbs>li tt,.wy-breadcrumbs>li .rst-content tt,.wy-breadcrumbs>li code{all:inherit;color:inherit}.breadcrumb-item:before{content:"/";color:#bbb;font-size:13px;padding:0 6px 0 3px}.wy-breadcrumbs-extra{margin-bottom:0;color:#b3b3b3;font-size:80%;display:inline-block}@media screen and (max-width:480px){.wy-breadcrumbs-extra,.wy-breadcrumbs li.wy-breadcrumbs-aside{display:none}}@media print{.wy-breadcrumbs li.wy-breadcrumbs-aside{display:none}}html{font-size:16px}.wy-affix{position:fixed;top:1.618em}.wy-menu a:hover{text-decoration:none}.wy-menu-horiz{*zoom:1}.wy-menu-horiz:after,.wy-menu-horiz:before{display:table;content:""}.wy-menu-horiz:after{clear:both}.wy-menu-horiz li,.wy-menu-horiz ul{display:inline-block}.wy-menu-horiz li:hover{background:hsla(0,0%,100%,.1)}.wy-menu-horiz li.divide-left{border-left:1px solid #404040}.wy-menu-horiz li.divide-right{border-right:1px solid #404040}.wy-menu-horiz a{height:32px;display:inline-block;line-height:32px;padding:0 16px}.wy-menu-vertical{width:300px}.wy-menu-vertical header,.wy-menu-vertical p.caption{color:#55a5d9;height:32px;line-height:32px;padding:0 1.618em;margin:12px 0 0;display:block;font-weight:700;text-transform:uppercase;font-size:85%;white-space:nowrap}.wy-menu-vertical ul{margin-bottom:0}.wy-menu-vertical li.divide-top{border-top:1px solid #404040}.wy-menu-vertical li.divide-bottom{border-bottom:1px solid #404040}.wy-menu-vertical li.current{background:#e3e3e3}.wy-menu-vertical li.current a{color:grey;border-right:1px solid #c9c9c9;padding:.4045em 2.427em}.wy-menu-vertical li.current a:hover{background:#d6d6d6}.rst-content .wy-menu-vertical li tt,.wy-menu-vertical li .rst-content tt,.wy-menu-vertical li code{border:none;background:inherit;color:inherit;padding-left:0;padding-right:0}.wy-menu-vertical li button.toctree-expand{display:block;float:left;margin-left:-1.2em;line-height:18px;color:#4d4d4d;border:none;background:none;padding:0}.wy-menu-vertical li.current>a,.wy-menu-vertical li.on a{color:#404040;font-weight:700;position:relative;background:#fcfcfc;border:none;padding:.4045em 1.618em}.wy-menu-vertical li.current>a:hover,.wy-menu-vertical li.on a:hover{background:#fcfcfc}.wy-menu-vertical li.current>a:hover button.toctree-expand,.wy-menu-vertical li.on a:hover button.toctree-expand{color:grey}.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand{display:block;line-height:18px;color:#333}.wy-menu-vertical li.toctree-l1.current>a{border-bottom:1px solid #c9c9c9;border-top:1px solid #c9c9c9}.wy-menu-vertical .toctree-l1.current .toctree-l2>ul,.wy-menu-vertical .toctree-l2.current .toctree-l3>ul,.wy-menu-vertical .toctree-l3.current .toctree-l4>ul,.wy-menu-vertical .toctree-l4.current .toctree-l5>ul,.wy-menu-vertical .toctree-l5.current .toctree-l6>ul,.wy-menu-vertical .toctree-l6.current .toctree-l7>ul,.wy-menu-vertical .toctree-l7.current .toctree-l8>ul,.wy-menu-vertical .toctree-l8.current .toctree-l9>ul,.wy-menu-vertical .toctree-l9.current .toctree-l10>ul,.wy-menu-vertical .toctree-l10.current .toctree-l11>ul{display:none}.wy-menu-vertical .toctree-l1.current .current.toctree-l2>ul,.wy-menu-vertical .toctree-l2.current .current.toctree-l3>ul,.wy-menu-vertical .toctree-l3.current .current.toctree-l4>ul,.wy-menu-vertical .toctree-l4.current .current.toctree-l5>ul,.wy-menu-vertical .toctree-l5.current .current.toctree-l6>ul,.wy-menu-vertical .toctree-l6.current .current.toctree-l7>ul,.wy-menu-vertical .toctree-l7.current .current.toctree-l8>ul,.wy-menu-vertical .toctree-l8.current .current.toctree-l9>ul,.wy-menu-vertical .toctree-l9.current .current.toctree-l10>ul,.wy-menu-vertical .toctree-l10.current .current.toctree-l11>ul{display:block}.wy-menu-vertical li.toctree-l3,.wy-menu-vertical li.toctree-l4{font-size:.9em}.wy-menu-vertical li.toctree-l2 a,.wy-menu-vertical li.toctree-l3 a,.wy-menu-vertical li.toctree-l4 a,.wy-menu-vertical li.toctree-l5 a,.wy-menu-vertical li.toctree-l6 a,.wy-menu-vertical li.toctree-l7 a,.wy-menu-vertical li.toctree-l8 a,.wy-menu-vertical li.toctree-l9 a,.wy-menu-vertical li.toctree-l10 a{color:#404040}.wy-menu-vertical li.toctree-l2 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l3 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l4 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l5 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l6 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l7 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l8 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l9 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l10 a:hover button.toctree-expand{color:grey}.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a,.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a,.wy-menu-vertical li.toctree-l4.current li.toctree-l5>a,.wy-menu-vertical li.toctree-l5.current li.toctree-l6>a,.wy-menu-vertical li.toctree-l6.current li.toctree-l7>a,.wy-menu-vertical li.toctree-l7.current li.toctree-l8>a,.wy-menu-vertical li.toctree-l8.current li.toctree-l9>a,.wy-menu-vertical li.toctree-l9.current li.toctree-l10>a,.wy-menu-vertical li.toctree-l10.current li.toctree-l11>a{display:block}.wy-menu-vertical li.toctree-l2.current>a{padding:.4045em 2.427em}.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a{padding:.4045em 1.618em .4045em 4.045em}.wy-menu-vertical li.toctree-l3.current>a{padding:.4045em 4.045em}.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a{padding:.4045em 1.618em .4045em 5.663em}.wy-menu-vertical li.toctree-l4.current>a{padding:.4045em 5.663em}.wy-menu-vertical li.toctree-l4.current li.toctree-l5>a{padding:.4045em 1.618em .4045em 7.281em}.wy-menu-vertical li.toctree-l5.current>a{padding:.4045em 7.281em}.wy-menu-vertical li.toctree-l5.current li.toctree-l6>a{padding:.4045em 1.618em .4045em 8.899em}.wy-menu-vertical li.toctree-l6.current>a{padding:.4045em 8.899em}.wy-menu-vertical li.toctree-l6.current li.toctree-l7>a{padding:.4045em 1.618em .4045em 10.517em}.wy-menu-vertical li.toctree-l7.current>a{padding:.4045em 10.517em}.wy-menu-vertical li.toctree-l7.current li.toctree-l8>a{padding:.4045em 1.618em .4045em 12.135em}.wy-menu-vertical li.toctree-l8.current>a{padding:.4045em 12.135em}.wy-menu-vertical li.toctree-l8.current li.toctree-l9>a{padding:.4045em 1.618em .4045em 13.753em}.wy-menu-vertical li.toctree-l9.current>a{padding:.4045em 13.753em}.wy-menu-vertical li.toctree-l9.current li.toctree-l10>a{padding:.4045em 1.618em .4045em 15.371em}.wy-menu-vertical li.toctree-l10.current>a{padding:.4045em 15.371em}.wy-menu-vertical li.toctree-l10.current li.toctree-l11>a{padding:.4045em 1.618em .4045em 16.989em}.wy-menu-vertical li.toctree-l2.current>a,.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a{background:#c9c9c9}.wy-menu-vertical li.toctree-l2 button.toctree-expand{color:#a3a3a3}.wy-menu-vertical li.toctree-l3.current>a,.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a{background:#bdbdbd}.wy-menu-vertical li.toctree-l3 button.toctree-expand{color:#969696}.wy-menu-vertical li.current ul{display:block}.wy-menu-vertical li ul{margin-bottom:0;display:none}.wy-menu-vertical li ul li a{margin-bottom:0;color:#d9d9d9;font-weight:400}.wy-menu-vertical a{line-height:18px;padding:.4045em 1.618em;display:block;position:relative;font-size:90%;color:#d9d9d9}.wy-menu-vertical a:hover{background-color:#4e4a4a;cursor:pointer}.wy-menu-vertical a:hover button.toctree-expand{color:#d9d9d9}.wy-menu-vertical a:active{background-color:#2980b9;cursor:pointer;color:#fff}.wy-menu-vertical a:active button.toctree-expand{color:#fff}.wy-side-nav-search{display:block;width:300px;padding:.809em;margin-bottom:.809em;z-index:200;background-color:#2980b9;text-align:center;color:#fcfcfc}.wy-side-nav-search input[type=text]{width:100%;border-radius:50px;padding:6px 12px;border-color:#2472a4}.wy-side-nav-search img{display:block;margin:auto auto .809em;height:45px;width:45px;background-color:#2980b9;padding:5px;border-radius:100%}.wy-side-nav-search .wy-dropdown>a,.wy-side-nav-search>a{color:#fcfcfc;font-size:100%;font-weight:700;display:inline-block;padding:4px 6px;margin-bottom:.809em;max-width:100%}.wy-side-nav-search .wy-dropdown>a:hover,.wy-side-nav-search>a:hover{background:hsla(0,0%,100%,.1)}.wy-side-nav-search .wy-dropdown>a img.logo,.wy-side-nav-search>a img.logo{display:block;margin:0 auto;height:auto;width:auto;border-radius:0;max-width:100%;background:transparent}.wy-side-nav-search .wy-dropdown>a.icon img.logo,.wy-side-nav-search>a.icon img.logo{margin-top:.85em}.wy-side-nav-search>div.version{margin-top:-.4045em;margin-bottom:.809em;font-weight:400;color:hsla(0,0%,100%,.3)}.wy-nav .wy-menu-vertical header{color:#2980b9}.wy-nav .wy-menu-vertical a{color:#b3b3b3}.wy-nav .wy-menu-vertical a:hover{background-color:#2980b9;color:#fff}[data-menu-wrap]{-webkit-transition:all .2s ease-in;-moz-transition:all .2s ease-in;transition:all .2s ease-in;position:absolute;opacity:1;width:100%;opacity:0}[data-menu-wrap].move-center{left:0;right:auto;opacity:1}[data-menu-wrap].move-left{right:auto;left:-100%;opacity:0}[data-menu-wrap].move-right{right:-100%;left:auto;opacity:0}.wy-body-for-nav{background:#fcfcfc}.wy-grid-for-nav{position:absolute;width:100%;height:100%}.wy-nav-side{position:fixed;top:0;bottom:0;left:0;padding-bottom:2em;width:300px;overflow-x:hidden;overflow-y:hidden;min-height:100%;color:#9b9b9b;background:#343131;z-index:200}.wy-side-scroll{width:320px;position:relative;overflow-x:hidden;overflow-y:scroll;height:100%}.wy-nav-top{display:none;background:#2980b9;color:#fff;padding:.4045em .809em;position:relative;line-height:50px;text-align:center;font-size:100%;*zoom:1}.wy-nav-top:after,.wy-nav-top:before{display:table;content:""}.wy-nav-top:after{clear:both}.wy-nav-top a{color:#fff;font-weight:700}.wy-nav-top img{margin-right:12px;height:45px;width:45px;background-color:#2980b9;padding:5px;border-radius:100%}.wy-nav-top i{font-size:30px;float:left;cursor:pointer;padding-top:inherit}.wy-nav-content-wrap{margin-left:300px;background:#fcfcfc;min-height:100%}.wy-nav-content{padding:1.618em 3.236em;height:100%;max-width:800px;margin:auto}.wy-body-mask{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.2);display:none;z-index:499}.wy-body-mask.on{display:block}footer{color:grey}footer p{margin-bottom:12px}.rst-content footer span.commit tt,footer span.commit .rst-content tt,footer span.commit code{padding:0;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;font-size:1em;background:none;border:none;color:grey}.rst-footer-buttons{*zoom:1}.rst-footer-buttons:after,.rst-footer-buttons:before{width:100%;display:table;content:""}.rst-footer-buttons:after{clear:both}.rst-breadcrumbs-buttons{margin-top:12px;*zoom:1}.rst-breadcrumbs-buttons:after,.rst-breadcrumbs-buttons:before{display:table;content:""}.rst-breadcrumbs-buttons:after{clear:both}#search-results .search li{margin-bottom:24px;border-bottom:1px solid #e1e4e5;padding-bottom:24px}#search-results .search li:first-child{border-top:1px solid #e1e4e5;padding-top:24px}#search-results .search li a{font-size:120%;margin-bottom:12px;display:inline-block}#search-results .context{color:grey;font-size:90%}.genindextable li>ul{margin-left:24px}@media screen and (max-width:768px){.wy-body-for-nav{background:#fcfcfc}.wy-nav-top{display:block}.wy-nav-side{left:-300px}.wy-nav-side.shift{width:85%;left:0}.wy-menu.wy-menu-vertical,.wy-side-nav-search,.wy-side-scroll{width:auto}.wy-nav-content-wrap{margin-left:0}.wy-nav-content-wrap .wy-nav-content{padding:1.618em}.wy-nav-content-wrap.shift{position:fixed;min-width:100%;left:85%;top:0;height:100%;overflow:hidden}}@media screen and (min-width:1100px){.wy-nav-content-wrap{background:rgba(0,0,0,.05)}.wy-nav-content{margin:0;background:#fcfcfc}}@media print{.rst-versions,.wy-nav-side,footer{display:none}.wy-nav-content-wrap{margin-left:0}}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;z-index:400}.rst-versions a{color:#2980b9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27ae60;*zoom:1}.rst-versions .rst-current-version:after,.rst-versions .rst-current-version:before{display:table;content:""}.rst-versions .rst-current-version:after{clear:both}.rst-content .code-block-caption .rst-versions .rst-current-version .headerlink,.rst-content .eqno .rst-versions .rst-current-version .headerlink,.rst-content .rst-versions .rst-current-version .admonition-title,.rst-content code.download .rst-versions .rst-current-version span:first-child,.rst-content dl dt .rst-versions .rst-current-version .headerlink,.rst-content h1 .rst-versions .rst-current-version .headerlink,.rst-content h2 .rst-versions .rst-current-version .headerlink,.rst-content h3 .rst-versions .rst-current-version .headerlink,.rst-content h4 .rst-versions .rst-current-version .headerlink,.rst-content h5 .rst-versions .rst-current-version .headerlink,.rst-content h6 .rst-versions .rst-current-version .headerlink,.rst-content p .rst-versions .rst-current-version .headerlink,.rst-content table>caption .rst-versions .rst-current-version .headerlink,.rst-content tt.download .rst-versions .rst-current-version span:first-child,.rst-versions .rst-current-version .fa,.rst-versions .rst-current-version .icon,.rst-versions .rst-current-version .rst-content .admonition-title,.rst-versions .rst-current-version .rst-content .code-block-caption .headerlink,.rst-versions .rst-current-version .rst-content .eqno .headerlink,.rst-versions .rst-current-version .rst-content code.download span:first-child,.rst-versions .rst-current-version .rst-content dl dt .headerlink,.rst-versions .rst-current-version .rst-content h1 .headerlink,.rst-versions .rst-current-version .rst-content h2 .headerlink,.rst-versions .rst-current-version .rst-content h3 .headerlink,.rst-versions .rst-current-version .rst-content h4 .headerlink,.rst-versions .rst-current-version .rst-content h5 .headerlink,.rst-versions .rst-current-version .rst-content h6 .headerlink,.rst-versions .rst-current-version .rst-content p .headerlink,.rst-versions .rst-current-version .rst-content table>caption .headerlink,.rst-versions .rst-current-version .rst-content tt.download span:first-child,.rst-versions .rst-current-version .wy-menu-vertical li button.toctree-expand,.wy-menu-vertical li .rst-versions .rst-current-version button.toctree-expand{color:#fcfcfc}.rst-versions .rst-current-version .fa-book,.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#e74c3c;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#f1c40f;color:#000}.rst-versions.shift-up{height:auto;max-height:100%;overflow-y:scroll}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:grey;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:1px solid #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px;max-height:90%}.rst-versions.rst-badge .fa-book,.rst-versions.rst-badge .icon-book{float:none;line-height:30px}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book,.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge>.rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width:768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}}.rst-content .toctree-wrapper>p.caption,.rst-content h1,.rst-content h2,.rst-content h3,.rst-content h4,.rst-content h5,.rst-content h6{margin-bottom:24px}.rst-content img{max-width:100%;height:auto}.rst-content div.figure,.rst-content figure{margin-bottom:24px}.rst-content div.figure .caption-text,.rst-content figure .caption-text{font-style:italic}.rst-content div.figure p:last-child.caption,.rst-content figure p:last-child.caption{margin-bottom:0}.rst-content div.figure.align-center,.rst-content figure.align-center{text-align:center}.rst-content .section>a>img,.rst-content .section>img,.rst-content section>a>img,.rst-content section>img{margin-bottom:24px}.rst-content abbr[title]{text-decoration:none}.rst-content.style-external-links a.reference.external:after{font-family:FontAwesome;content:"\f08e";color:#b3b3b3;vertical-align:super;font-size:60%;margin:0 .2em}.rst-content blockquote{margin-left:24px;line-height:24px;margin-bottom:24px}.rst-content pre.literal-block{white-space:pre;margin:0;padding:12px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;display:block;overflow:auto}.rst-content div[class^=highlight],.rst-content pre.literal-block{border:1px solid #e1e4e5;overflow-x:auto;margin:1px 0 24px}.rst-content div[class^=highlight] div[class^=highlight],.rst-content pre.literal-block div[class^=highlight]{padding:0;border:none;margin:0}.rst-content div[class^=highlight] td.code{width:100%}.rst-content .linenodiv pre{border-right:1px solid #e6e9ea;margin:0;padding:12px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;user-select:none;pointer-events:none}.rst-content div[class^=highlight] pre{white-space:pre;margin:0;padding:12px;display:block;overflow:auto}.rst-content div[class^=highlight] pre .hll{display:block;margin:0 -12px;padding:0 12px}.rst-content .linenodiv pre,.rst-content div[class^=highlight] pre,.rst-content pre.literal-block{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;font-size:12px;line-height:1.4}.rst-content div.highlight .gp,.rst-content div.highlight span.linenos{user-select:none;pointer-events:none}.rst-content div.highlight span.linenos{display:inline-block;padding-left:0;padding-right:12px;margin-right:12px;border-right:1px solid #e6e9ea}.rst-content .code-block-caption{font-style:italic;font-size:85%;line-height:1;padding:1em 0;text-align:center}@media print{.rst-content .codeblock,.rst-content div[class^=highlight],.rst-content div[class^=highlight] pre{white-space:pre-wrap}}.rst-content .admonition,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning{clear:both}.rst-content .admonition-todo .last,.rst-content .admonition-todo>:last-child,.rst-content .admonition .last,.rst-content .admonition>:last-child,.rst-content .attention .last,.rst-content .attention>:last-child,.rst-content .caution .last,.rst-content .caution>:last-child,.rst-content .danger .last,.rst-content .danger>:last-child,.rst-content .error .last,.rst-content .error>:last-child,.rst-content .hint .last,.rst-content .hint>:last-child,.rst-content .important .last,.rst-content .important>:last-child,.rst-content .note .last,.rst-content .note>:last-child,.rst-content .seealso .last,.rst-content .seealso>:last-child,.rst-content .tip .last,.rst-content .tip>:last-child,.rst-content .warning .last,.rst-content .warning>:last-child{margin-bottom:0}.rst-content .admonition-title:before{margin-right:4px}.rst-content .admonition table{border-color:rgba(0,0,0,.1)}.rst-content .admonition table td,.rst-content .admonition table th{background:transparent!important;border-color:rgba(0,0,0,.1)!important}.rst-content .section ol.loweralpha,.rst-content .section ol.loweralpha>li,.rst-content .toctree-wrapper ol.loweralpha,.rst-content .toctree-wrapper ol.loweralpha>li,.rst-content section ol.loweralpha,.rst-content section ol.loweralpha>li{list-style:lower-alpha}.rst-content .section ol.upperalpha,.rst-content .section ol.upperalpha>li,.rst-content .toctree-wrapper ol.upperalpha,.rst-content .toctree-wrapper ol.upperalpha>li,.rst-content section ol.upperalpha,.rst-content section ol.upperalpha>li{list-style:upper-alpha}.rst-content .section ol li>*,.rst-content .section ul li>*,.rst-content .toctree-wrapper ol li>*,.rst-content .toctree-wrapper ul li>*,.rst-content section ol li>*,.rst-content section ul li>*{margin-top:12px;margin-bottom:12px}.rst-content .section ol li>:first-child,.rst-content .section ul li>:first-child,.rst-content .toctree-wrapper ol li>:first-child,.rst-content .toctree-wrapper ul li>:first-child,.rst-content section ol li>:first-child,.rst-content section ul li>:first-child{margin-top:0}.rst-content .section ol li>p,.rst-content .section ol li>p:last-child,.rst-content .section ul li>p,.rst-content .section ul li>p:last-child,.rst-content .toctree-wrapper ol li>p,.rst-content .toctree-wrapper ol li>p:last-child,.rst-content .toctree-wrapper ul li>p,.rst-content .toctree-wrapper ul li>p:last-child,.rst-content section ol li>p,.rst-content section ol li>p:last-child,.rst-content section ul li>p,.rst-content section ul li>p:last-child{margin-bottom:12px}.rst-content .section ol li>p:only-child,.rst-content .section ol li>p:only-child:last-child,.rst-content .section ul li>p:only-child,.rst-content .section ul li>p:only-child:last-child,.rst-content .toctree-wrapper ol li>p:only-child,.rst-content .toctree-wrapper ol li>p:only-child:last-child,.rst-content .toctree-wrapper ul li>p:only-child,.rst-content .toctree-wrapper ul li>p:only-child:last-child,.rst-content section ol li>p:only-child,.rst-content section ol li>p:only-child:last-child,.rst-content section ul li>p:only-child,.rst-content section ul li>p:only-child:last-child{margin-bottom:0}.rst-content .section ol li>ol,.rst-content .section ol li>ul,.rst-content .section ul li>ol,.rst-content .section ul li>ul,.rst-content .toctree-wrapper ol li>ol,.rst-content .toctree-wrapper ol li>ul,.rst-content .toctree-wrapper ul li>ol,.rst-content .toctree-wrapper ul li>ul,.rst-content section ol li>ol,.rst-content section ol li>ul,.rst-content section ul li>ol,.rst-content section ul li>ul{margin-bottom:12px}.rst-content .section ol.simple li>*,.rst-content .section ol.simple li ol,.rst-content .section ol.simple li ul,.rst-content .section ul.simple li>*,.rst-content .section ul.simple li ol,.rst-content .section ul.simple li ul,.rst-content .toctree-wrapper ol.simple li>*,.rst-content .toctree-wrapper ol.simple li ol,.rst-content .toctree-wrapper ol.simple li ul,.rst-content .toctree-wrapper ul.simple li>*,.rst-content .toctree-wrapper ul.simple li ol,.rst-content .toctree-wrapper ul.simple li ul,.rst-content section ol.simple li>*,.rst-content section ol.simple li ol,.rst-content section ol.simple li ul,.rst-content section ul.simple li>*,.rst-content section ul.simple li ol,.rst-content section ul.simple li ul{margin-top:0;margin-bottom:0}.rst-content .line-block{margin-left:0;margin-bottom:24px;line-height:24px}.rst-content .line-block .line-block{margin-left:24px;margin-bottom:0}.rst-content .topic-title{font-weight:700;margin-bottom:12px}.rst-content .toc-backref{color:#404040}.rst-content .align-right{float:right;margin:0 0 24px 24px}.rst-content .align-left{float:left;margin:0 24px 24px 0}.rst-content .align-center{margin:auto}.rst-content .align-center:not(table){display:block}.rst-content .code-block-caption .headerlink,.rst-content .eqno .headerlink,.rst-content .toctree-wrapper>p.caption .headerlink,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content p .headerlink,.rst-content table>caption .headerlink{opacity:0;font-size:14px;font-family:FontAwesome;margin-left:.5em}.rst-content .code-block-caption .headerlink:focus,.rst-content .code-block-caption:hover .headerlink,.rst-content .eqno .headerlink:focus,.rst-content .eqno:hover .headerlink,.rst-content .toctree-wrapper>p.caption .headerlink:focus,.rst-content .toctree-wrapper>p.caption:hover .headerlink,.rst-content dl dt .headerlink:focus,.rst-content dl dt:hover .headerlink,.rst-content h1 .headerlink:focus,.rst-content h1:hover .headerlink,.rst-content h2 .headerlink:focus,.rst-content h2:hover .headerlink,.rst-content h3 .headerlink:focus,.rst-content h3:hover .headerlink,.rst-content h4 .headerlink:focus,.rst-content h4:hover .headerlink,.rst-content h5 .headerlink:focus,.rst-content h5:hover .headerlink,.rst-content h6 .headerlink:focus,.rst-content h6:hover .headerlink,.rst-content p.caption .headerlink:focus,.rst-content p.caption:hover .headerlink,.rst-content p .headerlink:focus,.rst-content p:hover .headerlink,.rst-content table>caption .headerlink:focus,.rst-content table>caption:hover .headerlink{opacity:1}.rst-content p a{overflow-wrap:anywhere}.rst-content .wy-table td p,.rst-content .wy-table td ul,.rst-content .wy-table th p,.rst-content .wy-table th ul,.rst-content table.docutils td p,.rst-content table.docutils td ul,.rst-content table.docutils th p,.rst-content table.docutils th ul,.rst-content table.field-list td p,.rst-content table.field-list td ul,.rst-content table.field-list th p,.rst-content table.field-list th ul{font-size:inherit}.rst-content .btn:focus{outline:2px solid}.rst-content table>caption .headerlink:after{font-size:12px}.rst-content .centered{text-align:center}.rst-content .sidebar{float:right;width:40%;display:block;margin:0 0 24px 24px;padding:24px;background:#f3f6f6;border:1px solid #e1e4e5}.rst-content .sidebar dl,.rst-content .sidebar p,.rst-content .sidebar ul{font-size:90%}.rst-content .sidebar .last,.rst-content .sidebar>:last-child{margin-bottom:0}.rst-content .sidebar .sidebar-title{display:block;font-family:Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif;font-weight:700;background:#e1e4e5;padding:6px 12px;margin:-24px -24px 24px;font-size:100%}.rst-content .highlighted{background:#f1c40f;box-shadow:0 0 0 2px #f1c40f;display:inline;font-weight:700}.rst-content .citation-reference,.rst-content .footnote-reference{vertical-align:baseline;position:relative;top:-.4em;line-height:0;font-size:90%}.rst-content .citation-reference>span.fn-bracket,.rst-content .footnote-reference>span.fn-bracket{display:none}.rst-content .hlist{width:100%}.rst-content dl dt span.classifier:before{content:" : "}.rst-content dl dt span.classifier-delimiter{display:none!important}html.writer-html4 .rst-content table.docutils.citation,html.writer-html4 .rst-content table.docutils.footnote{background:none;border:none}html.writer-html4 .rst-content table.docutils.citation td,html.writer-html4 .rst-content table.docutils.citation tr,html.writer-html4 .rst-content table.docutils.footnote td,html.writer-html4 .rst-content table.docutils.footnote tr{border:none;background-color:transparent!important;white-space:normal}html.writer-html4 .rst-content table.docutils.citation td.label,html.writer-html4 .rst-content table.docutils.footnote td.label{padding-left:0;padding-right:0;vertical-align:top}html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.field-list,html.writer-html5 .rst-content dl.footnote{display:grid;grid-template-columns:auto minmax(80%,95%)}html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.field-list>dt,html.writer-html5 .rst-content dl.footnote>dt{display:inline-grid;grid-template-columns:max-content auto}html.writer-html5 .rst-content aside.citation,html.writer-html5 .rst-content aside.footnote,html.writer-html5 .rst-content div.citation{display:grid;grid-template-columns:auto auto minmax(.65rem,auto) minmax(40%,95%)}html.writer-html5 .rst-content aside.citation>span.label,html.writer-html5 .rst-content aside.footnote>span.label,html.writer-html5 .rst-content div.citation>span.label{grid-column-start:1;grid-column-end:2}html.writer-html5 .rst-content aside.citation>span.backrefs,html.writer-html5 .rst-content aside.footnote>span.backrefs,html.writer-html5 .rst-content div.citation>span.backrefs{grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:3}html.writer-html5 .rst-content aside.citation>p,html.writer-html5 .rst-content aside.footnote>p,html.writer-html5 .rst-content div.citation>p{grid-column-start:4;grid-column-end:5}html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.field-list,html.writer-html5 .rst-content dl.footnote{margin-bottom:24px}html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.field-list>dt,html.writer-html5 .rst-content dl.footnote>dt{padding-left:1rem}html.writer-html5 .rst-content dl.citation>dd,html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.field-list>dd,html.writer-html5 .rst-content dl.field-list>dt,html.writer-html5 .rst-content dl.footnote>dd,html.writer-html5 .rst-content dl.footnote>dt{margin-bottom:0}html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.footnote{font-size:.9rem}html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.footnote>dt{margin:0 .5rem .5rem 0;line-height:1.2rem;word-break:break-all;font-weight:400}html.writer-html5 .rst-content dl.citation>dt>span.brackets:before,html.writer-html5 .rst-content dl.footnote>dt>span.brackets:before{content:"["}html.writer-html5 .rst-content dl.citation>dt>span.brackets:after,html.writer-html5 .rst-content dl.footnote>dt>span.brackets:after{content:"]"}html.writer-html5 .rst-content dl.citation>dt>span.fn-backref,html.writer-html5 .rst-content dl.footnote>dt>span.fn-backref{text-align:left;font-style:italic;margin-left:.65rem;word-break:break-word;word-spacing:-.1rem;max-width:5rem}html.writer-html5 .rst-content dl.citation>dt>span.fn-backref>a,html.writer-html5 .rst-content dl.footnote>dt>span.fn-backref>a{word-break:keep-all}html.writer-html5 .rst-content dl.citation>dt>span.fn-backref>a:not(:first-child):before,html.writer-html5 .rst-content dl.footnote>dt>span.fn-backref>a:not(:first-child):before{content:" "}html.writer-html5 .rst-content dl.citation>dd,html.writer-html5 .rst-content dl.footnote>dd{margin:0 0 .5rem;line-height:1.2rem}html.writer-html5 .rst-content dl.citation>dd p,html.writer-html5 .rst-content dl.footnote>dd p{font-size:.9rem}html.writer-html5 .rst-content aside.citation,html.writer-html5 .rst-content aside.footnote,html.writer-html5 .rst-content div.citation{padding-left:1rem;padding-right:1rem;font-size:.9rem;line-height:1.2rem}html.writer-html5 .rst-content aside.citation p,html.writer-html5 .rst-content aside.footnote p,html.writer-html5 .rst-content div.citation p{font-size:.9rem;line-height:1.2rem;margin-bottom:12px}html.writer-html5 .rst-content aside.citation span.backrefs,html.writer-html5 .rst-content aside.footnote span.backrefs,html.writer-html5 .rst-content div.citation span.backrefs{text-align:left;font-style:italic;margin-left:.65rem;word-break:break-word;word-spacing:-.1rem;max-width:5rem}html.writer-html5 .rst-content aside.citation span.backrefs>a,html.writer-html5 .rst-content aside.footnote span.backrefs>a,html.writer-html5 .rst-content div.citation span.backrefs>a{word-break:keep-all}html.writer-html5 .rst-content aside.citation span.backrefs>a:not(:first-child):before,html.writer-html5 .rst-content aside.footnote span.backrefs>a:not(:first-child):before,html.writer-html5 .rst-content div.citation span.backrefs>a:not(:first-child):before{content:" "}html.writer-html5 .rst-content aside.citation span.label,html.writer-html5 .rst-content aside.footnote span.label,html.writer-html5 .rst-content div.citation span.label{line-height:1.2rem}html.writer-html5 .rst-content aside.citation-list,html.writer-html5 .rst-content aside.footnote-list,html.writer-html5 .rst-content div.citation-list{margin-bottom:24px}html.writer-html5 .rst-content dl.option-list kbd{font-size:.9rem}.rst-content table.docutils.footnote,html.writer-html4 .rst-content table.docutils.citation,html.writer-html5 .rst-content aside.footnote,html.writer-html5 .rst-content aside.footnote-list aside.footnote,html.writer-html5 .rst-content div.citation-list>div.citation,html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.footnote{color:grey}.rst-content table.docutils.footnote code,.rst-content table.docutils.footnote tt,html.writer-html4 .rst-content table.docutils.citation code,html.writer-html4 .rst-content table.docutils.citation tt,html.writer-html5 .rst-content aside.footnote-list aside.footnote code,html.writer-html5 .rst-content aside.footnote-list aside.footnote tt,html.writer-html5 .rst-content aside.footnote code,html.writer-html5 .rst-content aside.footnote tt,html.writer-html5 .rst-content div.citation-list>div.citation code,html.writer-html5 .rst-content div.citation-list>div.citation tt,html.writer-html5 .rst-content dl.citation code,html.writer-html5 .rst-content dl.citation tt,html.writer-html5 .rst-content dl.footnote code,html.writer-html5 .rst-content dl.footnote tt{color:#555}.rst-content .wy-table-responsive.citation,.rst-content .wy-table-responsive.footnote{margin-bottom:0}.rst-content .wy-table-responsive.citation+:not(.citation),.rst-content .wy-table-responsive.footnote+:not(.footnote){margin-top:24px}.rst-content .wy-table-responsive.citation:last-child,.rst-content .wy-table-responsive.footnote:last-child{margin-bottom:24px}.rst-content table.docutils th{border-color:#e1e4e5}html.writer-html5 .rst-content table.docutils th{border:1px solid #e1e4e5}html.writer-html5 .rst-content table.docutils td>p,html.writer-html5 .rst-content table.docutils th>p{line-height:1rem;margin-bottom:0;font-size:.9rem}.rst-content table.docutils td .last,.rst-content table.docutils td .last>:last-child{margin-bottom:0}.rst-content table.field-list,.rst-content table.field-list td{border:none}.rst-content table.field-list td p{line-height:inherit}.rst-content table.field-list td>strong{display:inline-block}.rst-content table.field-list .field-name{padding-right:10px;text-align:left;white-space:nowrap}.rst-content table.field-list .field-body{text-align:left}.rst-content code,.rst-content tt{color:#000;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;padding:2px 5px}.rst-content code big,.rst-content code em,.rst-content tt big,.rst-content tt em{font-size:100%!important;line-height:normal}.rst-content code.literal,.rst-content tt.literal{color:#e74c3c;white-space:normal}.rst-content code.xref,.rst-content tt.xref,a .rst-content code,a .rst-content tt{font-weight:700;color:#404040;overflow-wrap:normal}.rst-content kbd,.rst-content pre,.rst-content samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace}.rst-content a code,.rst-content a tt{color:#2980b9}.rst-content dl{margin-bottom:24px}.rst-content dl dt{font-weight:700;margin-bottom:12px}.rst-content dl ol,.rst-content dl p,.rst-content dl table,.rst-content dl ul{margin-bottom:12px}.rst-content dl dd{margin:0 0 12px 24px;line-height:24px}.rst-content dl dd>ol:last-child,.rst-content dl dd>p:last-child,.rst-content dl dd>table:last-child,.rst-content dl dd>ul:last-child{margin-bottom:0}html.writer-html4 .rst-content dl:not(.docutils),html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple){margin-bottom:24px}html.writer-html4 .rst-content dl:not(.docutils)>dt,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt{display:table;margin:6px 0;font-size:90%;line-height:normal;background:#e7f2fa;color:#2980b9;border-top:3px solid #6ab0de;padding:6px;position:relative}html.writer-html4 .rst-content dl:not(.docutils)>dt:before,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt:before{color:#6ab0de}html.writer-html4 .rst-content dl:not(.docutils)>dt .headerlink,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt .headerlink{color:#404040;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt{margin-bottom:6px;border:none;border-left:3px solid #ccc;background:#f0f0f0;color:#555}html.writer-html4 .rst-content dl:not(.docutils) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt .headerlink,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt .headerlink{color:#404040;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils)>dt:first-child,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt:first-child{margin-top:0}html.writer-html4 .rst-content dl:not(.docutils) code.descclassname,html.writer-html4 .rst-content dl:not(.docutils) code.descname,html.writer-html4 .rst-content dl:not(.docutils) tt.descclassname,html.writer-html4 .rst-content dl:not(.docutils) tt.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) code.descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) code.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) tt.descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) tt.descname{background-color:transparent;border:none;padding:0;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils) code.descname,html.writer-html4 .rst-content dl:not(.docutils) tt.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) code.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) tt.descname{font-weight:700}html.writer-html4 .rst-content dl:not(.docutils) .optional,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .optional{display:inline-block;padding:0 4px;color:#000;font-weight:700}html.writer-html4 .rst-content dl:not(.docutils) .property,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .property{display:inline-block;padding-right:8px;max-width:100%}html.writer-html4 .rst-content dl:not(.docutils) .k,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .k{font-style:italic}html.writer-html4 .rst-content dl:not(.docutils) .descclassname,html.writer-html4 .rst-content dl:not(.docutils) .descname,html.writer-html4 .rst-content dl:not(.docutils) .sig-name,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .sig-name{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;color:#000}.rst-content .viewcode-back,.rst-content .viewcode-link{display:inline-block;color:#27ae60;font-size:80%;padding-left:24px}.rst-content .viewcode-back{display:block;float:right}.rst-content p.rubric{margin-bottom:12px;font-weight:700}.rst-content code.download,.rst-content tt.download{background:inherit;padding:inherit;font-weight:400;font-family:inherit;font-size:inherit;color:inherit;border:inherit;white-space:inherit}.rst-content code.download span:first-child,.rst-content tt.download span:first-child{-webkit-font-smoothing:subpixel-antialiased}.rst-content code.download span:first-child:before,.rst-content tt.download span:first-child:before{margin-right:4px}.rst-content .guilabel,.rst-content .menuselection{font-size:80%;font-weight:700;border-radius:4px;padding:2.4px 6px;margin:auto 2px}.rst-content .guilabel,.rst-content .menuselection{border:1px solid #7fbbe3;background:#e7f2fa}.rst-content :not(dl.option-list)>:not(dt):not(kbd):not(.kbd)>.kbd,.rst-content :not(dl.option-list)>:not(dt):not(kbd):not(.kbd)>kbd{color:inherit;font-size:80%;background-color:#fff;border:1px solid #a6a6a6;border-radius:4px;box-shadow:0 2px grey;padding:2.4px 6px;margin:auto 0}.rst-content .versionmodified{font-style:italic}@media screen and (max-width:480px){.rst-content .sidebar{width:100%}}span[id*=MathJax-Span]{color:#404040}.math{text-align:center}@font-face{font-family:Lato;src:url(fonts/lato-normal.woff2?bd03a2cc277bbbc338d464e679fe9942) format("woff2"),url(fonts/lato-normal.woff?27bd77b9162d388cb8d4c4217c7c5e2a) format("woff");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-bold.woff2?cccb897485813c7c256901dbca54ecf2) format("woff2"),url(fonts/lato-bold.woff?d878b6c29b10beca227e9eef4246111b) format("woff");font-weight:700;font-style:normal;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-bold-italic.woff2?0b6bb6725576b072c5d0b02ecdd1900d) format("woff2"),url(fonts/lato-bold-italic.woff?9c7e4e9eb485b4a121c760e61bc3707c) format("woff");font-weight:700;font-style:italic;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-normal-italic.woff2?4eb103b4d12be57cb1d040ed5e162e9d) format("woff2"),url(fonts/lato-normal-italic.woff?f28f2d6482446544ef1ea1ccc6dd5892) format("woff");font-weight:400;font-style:italic;font-display:block}@font-face{font-family:Roboto Slab;font-style:normal;font-weight:400;src:url(fonts/Roboto-Slab-Regular.woff2?7abf5b8d04d26a2cafea937019bca958) format("woff2"),url(fonts/Roboto-Slab-Regular.woff?c1be9284088d487c5e3ff0a10a92e58c) format("woff");font-display:block}@font-face{font-family:Roboto Slab;font-style:normal;font-weight:700;src:url(fonts/Roboto-Slab-Bold.woff2?9984f4a9bda09be08e83f2506954adbe) format("woff2"),url(fonts/Roboto-Slab-Bold.woff?bed5564a116b05148e3b3bea6fb1162a) format("woff");font-display:block}
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/_static/doctools.js b/static/python-yubihsm/API_Documentation/_static/doctools.js
index 61ac9d266..d06a71d75 100644
--- a/static/python-yubihsm/API_Documentation/_static/doctools.js
+++ b/static/python-yubihsm/API_Documentation/_static/doctools.js
@@ -2,320 +2,155 @@
* doctools.js
* ~~~~~~~~~~~
*
- * Sphinx JavaScript utilities for all documentation.
+ * Base JavaScript utilities for all Sphinx HTML documentation.
*
- * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
-
-/**
- * select a different prefix for underscore
- */
-$u = _.noConflict();
-
-/**
- * make the code below compatible with browsers without
- * an installed firebug like debugger
-if (!window.console || !console.firebug) {
- var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
- "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace",
- "profile", "profileEnd"];
- window.console = {};
- for (var i = 0; i < names.length; ++i)
- window.console[names[i]] = function() {};
-}
- */
-
-/**
- * small helper function to urldecode strings
- *
- * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
- */
-jQuery.urldecode = function(x) {
- if (!x) {
- return x
- }
- return decodeURIComponent(x.replace(/\+/g, ' '));
-};
-
-/**
- * small helper function to urlencode strings
- */
-jQuery.urlencode = encodeURIComponent;
-
-/**
- * This function returns the parsed url parameters of the
- * current request. Multiple values per key are supported,
- * it will always return arrays of strings for the value parts.
- */
-jQuery.getQueryParameters = function(s) {
- if (typeof s === 'undefined')
- s = document.location.search;
- var parts = s.substr(s.indexOf('?') + 1).split('&');
- var result = {};
- for (var i = 0; i < parts.length; i++) {
- var tmp = parts[i].split('=', 2);
- var key = jQuery.urldecode(tmp[0]);
- var value = jQuery.urldecode(tmp[1]);
- if (key in result)
- result[key].push(value);
- else
- result[key] = [value];
+"use strict";
+
+const BLACKLISTED_KEY_CONTROL_ELEMENTS = new Set([
+ "TEXTAREA",
+ "INPUT",
+ "SELECT",
+ "BUTTON",
+]);
+
+const _ready = (callback) => {
+ if (document.readyState !== "loading") {
+ callback();
+ } else {
+ document.addEventListener("DOMContentLoaded", callback);
}
- return result;
};
-/**
- * highlight a given string on a jquery object by wrapping it in
- * span elements with the given class name.
- */
-jQuery.fn.highlightText = function(text, className) {
- function highlight(node, addItems) {
- if (node.nodeType === 3) {
- var val = node.nodeValue;
- var pos = val.toLowerCase().indexOf(text);
- if (pos >= 0 &&
- !jQuery(node.parentNode).hasClass(className) &&
- !jQuery(node.parentNode).hasClass("nohighlight")) {
- var span;
- var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg");
- if (isInSVG) {
- span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
- } else {
- span = document.createElement("span");
- span.className = className;
- }
- span.appendChild(document.createTextNode(val.substr(pos, text.length)));
- node.parentNode.insertBefore(span, node.parentNode.insertBefore(
- document.createTextNode(val.substr(pos + text.length)),
- node.nextSibling));
- node.nodeValue = val.substr(0, pos);
- if (isInSVG) {
- var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
- var bbox = node.parentElement.getBBox();
- rect.x.baseVal.value = bbox.x;
- rect.y.baseVal.value = bbox.y;
- rect.width.baseVal.value = bbox.width;
- rect.height.baseVal.value = bbox.height;
- rect.setAttribute('class', className);
- addItems.push({
- "parent": node.parentNode,
- "target": rect});
- }
- }
- }
- else if (!jQuery(node).is("button, select, textarea")) {
- jQuery.each(node.childNodes, function() {
- highlight(this, addItems);
- });
- }
- }
- var addItems = [];
- var result = this.each(function() {
- highlight(this, addItems);
- });
- for (var i = 0; i < addItems.length; ++i) {
- jQuery(addItems[i].parent).before(addItems[i].target);
- }
- return result;
-};
-
-/*
- * backward compatibility for jQuery.browser
- * This will be supported until firefox bug is fixed.
- */
-if (!jQuery.browser) {
- jQuery.uaMatch = function(ua) {
- ua = ua.toLowerCase();
-
- var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
- /(webkit)[ \/]([\w.]+)/.exec(ua) ||
- /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
- /(msie) ([\w.]+)/.exec(ua) ||
- ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
- [];
-
- return {
- browser: match[ 1 ] || "",
- version: match[ 2 ] || "0"
- };
- };
- jQuery.browser = {};
- jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
-}
-
/**
* Small JavaScript module for the documentation.
*/
-var Documentation = {
-
- init : function() {
- this.fixFirefoxAnchorBug();
- this.highlightSearchWords();
- this.initIndexTable();
- if (DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) {
- this.initOnKeyListeners();
- }
+const Documentation = {
+ init: () => {
+ Documentation.initDomainIndexTable();
+ Documentation.initOnKeyListeners();
},
/**
* i18n support
*/
- TRANSLATIONS : {},
- PLURAL_EXPR : function(n) { return n === 1 ? 0 : 1; },
- LOCALE : 'unknown',
+ TRANSLATIONS: {},
+ PLURAL_EXPR: (n) => (n === 1 ? 0 : 1),
+ LOCALE: "unknown",
// gettext and ngettext don't access this so that the functions
// can safely bound to a different name (_ = Documentation.gettext)
- gettext : function(string) {
- var translated = Documentation.TRANSLATIONS[string];
- if (typeof translated === 'undefined')
- return string;
- return (typeof translated === 'string') ? translated : translated[0];
+ gettext: (string) => {
+ const translated = Documentation.TRANSLATIONS[string];
+ switch (typeof translated) {
+ case "undefined":
+ return string; // no translation
+ case "string":
+ return translated; // translation exists
+ default:
+ return translated[0]; // (singular, plural) translation tuple exists
+ }
},
- ngettext : function(singular, plural, n) {
- var translated = Documentation.TRANSLATIONS[singular];
- if (typeof translated === 'undefined')
- return (n == 1) ? singular : plural;
- return translated[Documentation.PLURALEXPR(n)];
+ ngettext: (singular, plural, n) => {
+ const translated = Documentation.TRANSLATIONS[singular];
+ if (typeof translated !== "undefined")
+ return translated[Documentation.PLURAL_EXPR(n)];
+ return n === 1 ? singular : plural;
},
- addTranslations : function(catalog) {
- for (var key in catalog.messages)
- this.TRANSLATIONS[key] = catalog.messages[key];
- this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')');
- this.LOCALE = catalog.locale;
+ addTranslations: (catalog) => {
+ Object.assign(Documentation.TRANSLATIONS, catalog.messages);
+ Documentation.PLURAL_EXPR = new Function(
+ "n",
+ `return (${catalog.plural_expr})`
+ );
+ Documentation.LOCALE = catalog.locale;
},
/**
- * add context elements like header anchor links
+ * helper function to focus on search bar
*/
- addContextElements : function() {
- $('div[id] > :header:first').each(function() {
- $('').
- attr('href', '#' + this.id).
- attr('title', _('Permalink to this headline')).
- appendTo(this);
- });
- $('dt[id]').each(function() {
- $('').
- attr('href', '#' + this.id).
- attr('title', _('Permalink to this definition')).
- appendTo(this);
- });
+ focusSearchBar: () => {
+ document.querySelectorAll("input[name=q]")[0]?.focus();
},
/**
- * workaround a firefox stupidity
- * see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075
+ * Initialise the domain index toggle buttons
*/
- fixFirefoxAnchorBug : function() {
- if (document.location.hash && $.browser.mozilla)
- window.setTimeout(function() {
- document.location.href += '';
- }, 10);
- },
-
- /**
- * highlight the search words provided in the url in the text
- */
- highlightSearchWords : function() {
- var params = $.getQueryParameters();
- var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : [];
- if (terms.length) {
- var body = $('div.body');
- if (!body.length) {
- body = $('body');
+ initDomainIndexTable: () => {
+ const toggler = (el) => {
+ const idNumber = el.id.substr(7);
+ const toggledRows = document.querySelectorAll(`tr.cg-${idNumber}`);
+ if (el.src.substr(-9) === "minus.png") {
+ el.src = `${el.src.substr(0, el.src.length - 9)}plus.png`;
+ toggledRows.forEach((el) => (el.style.display = "none"));
+ } else {
+ el.src = `${el.src.substr(0, el.src.length - 8)}minus.png`;
+ toggledRows.forEach((el) => (el.style.display = ""));
}
- window.setTimeout(function() {
- $.each(terms, function() {
- body.highlightText(this.toLowerCase(), 'highlighted');
- });
- }, 10);
- $('
' + _('Hide Search Matches') + '
')
- .appendTo($('#searchbox'));
- }
- },
-
- /**
- * init the domain index toggle buttons
- */
- initIndexTable : function() {
- var togglers = $('img.toggler').click(function() {
- var src = $(this).attr('src');
- var idnum = $(this).attr('id').substr(7);
- $('tr.cg-' + idnum).toggle();
- if (src.substr(-9) === 'minus.png')
- $(this).attr('src', src.substr(0, src.length-9) + 'plus.png');
- else
- $(this).attr('src', src.substr(0, src.length-8) + 'minus.png');
- }).css('display', '');
- if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) {
- togglers.click();
- }
- },
-
- /**
- * helper function to hide the search marks again
- */
- hideSearchWords : function() {
- $('#searchbox .highlight-link').fadeOut(300);
- $('span.highlighted').removeClass('highlighted');
- },
-
- /**
- * make the url absolute
- */
- makeURL : function(relativeURL) {
- return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL;
- },
+ };
- /**
- * get the current relative url
- */
- getCurrentURL : function() {
- var path = document.location.pathname;
- var parts = path.split(/\//);
- $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() {
- if (this === '..')
- parts.pop();
- });
- var url = parts.join('/');
- return path.substring(url.lastIndexOf('/') + 1, path.length - 1);
+ const togglerElements = document.querySelectorAll("img.toggler");
+ togglerElements.forEach((el) =>
+ el.addEventListener("click", (event) => toggler(event.currentTarget))
+ );
+ togglerElements.forEach((el) => (el.style.display = ""));
+ if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) togglerElements.forEach(toggler);
},
- initOnKeyListeners: function() {
- $(document).keydown(function(event) {
- var activeElementType = document.activeElement.tagName;
- // don't navigate when in search box, textarea, dropdown or button
- if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
- && activeElementType !== 'BUTTON' && !event.altKey && !event.ctrlKey && !event.metaKey
- && !event.shiftKey) {
- switch (event.keyCode) {
- case 37: // left
- var prevHref = $('link[rel="prev"]').prop('href');
- if (prevHref) {
- window.location.href = prevHref;
- return false;
+ initOnKeyListeners: () => {
+ // only install a listener if it is really needed
+ if (
+ !DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS &&
+ !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS
+ )
+ return;
+
+ document.addEventListener("keydown", (event) => {
+ // bail for input elements
+ if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return;
+ // bail with special keys
+ if (event.altKey || event.ctrlKey || event.metaKey) return;
+
+ if (!event.shiftKey) {
+ switch (event.key) {
+ case "ArrowLeft":
+ if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break;
+
+ const prevLink = document.querySelector('link[rel="prev"]');
+ if (prevLink && prevLink.href) {
+ window.location.href = prevLink.href;
+ event.preventDefault();
}
- case 39: // right
- var nextHref = $('link[rel="next"]').prop('href');
- if (nextHref) {
- window.location.href = nextHref;
- return false;
+ break;
+ case "ArrowRight":
+ if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break;
+
+ const nextLink = document.querySelector('link[rel="next"]');
+ if (nextLink && nextLink.href) {
+ window.location.href = nextLink.href;
+ event.preventDefault();
}
+ break;
}
}
+
+ // some keyboard layouts may need Shift to get /
+ switch (event.key) {
+ case "/":
+ if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break;
+ Documentation.focusSearchBar();
+ event.preventDefault();
+ }
});
- }
+ },
};
// quick alias for translations
-_ = Documentation.gettext;
+const _ = Documentation.gettext;
-$(document).ready(function() {
- Documentation.init();
-});
+_ready(Documentation.init);
diff --git a/static/python-yubihsm/API_Documentation/_static/documentation_options.js b/static/python-yubihsm/API_Documentation/_static/documentation_options.js
index 1cccfc079..1e0ceadd7 100644
--- a/static/python-yubihsm/API_Documentation/_static/documentation_options.js
+++ b/static/python-yubihsm/API_Documentation/_static/documentation_options.js
@@ -1,12 +1,14 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
- VERSION: '2.1.0',
- LANGUAGE: 'None',
+ VERSION: '3.0.0.dev0',
+ LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
FILE_SUFFIX: '.html',
LINK_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt',
- NAVIGATION_WITH_KEYS: false
+ NAVIGATION_WITH_KEYS: false,
+ SHOW_SEARCH_SUMMARY: true,
+ ENABLE_SEARCH_SHORTCUTS: true,
};
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Inconsolata-Bold.ttf b/static/python-yubihsm/API_Documentation/_static/fonts/Inconsolata-Bold.ttf
deleted file mode 100644
index 809c1f582..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Inconsolata-Bold.ttf and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Inconsolata-Regular.ttf b/static/python-yubihsm/API_Documentation/_static/fonts/Inconsolata-Regular.ttf
deleted file mode 100644
index fc981ce7a..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Inconsolata-Regular.ttf and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Inconsolata.ttf b/static/python-yubihsm/API_Documentation/_static/fonts/Inconsolata.ttf
deleted file mode 100644
index 4b8a36d24..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Inconsolata.ttf and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato-Bold.ttf b/static/python-yubihsm/API_Documentation/_static/fonts/Lato-Bold.ttf
deleted file mode 100644
index 1d23c7066..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato-Bold.ttf and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato-Regular.ttf b/static/python-yubihsm/API_Documentation/_static/fonts/Lato-Regular.ttf
deleted file mode 100644
index 0f3d0f837..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato-Regular.ttf and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bold.eot b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bold.eot
deleted file mode 100644
index 3361183a4..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bold.eot and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bold.ttf b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bold.ttf
deleted file mode 100644
index 29f691d5e..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bold.ttf and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bold.woff b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bold.woff
deleted file mode 100644
index c6dff51f0..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bold.woff and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bold.woff2 b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bold.woff2
deleted file mode 100644
index bb195043c..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bold.woff2 and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bolditalic.eot b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bolditalic.eot
deleted file mode 100644
index 3d4154936..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bolditalic.eot and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bolditalic.ttf b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bolditalic.ttf
deleted file mode 100644
index f402040b3..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bolditalic.ttf and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bolditalic.woff b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bolditalic.woff
deleted file mode 100644
index 88ad05b9f..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bolditalic.woff and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bolditalic.woff2 b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bolditalic.woff2
deleted file mode 100644
index c4e3d804b..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-bolditalic.woff2 and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-italic.eot b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-italic.eot
deleted file mode 100644
index 3f826421a..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-italic.eot and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-italic.ttf b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-italic.ttf
deleted file mode 100644
index b4bfc9b24..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-italic.ttf and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-italic.woff b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-italic.woff
deleted file mode 100644
index 76114bc03..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-italic.woff and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-italic.woff2 b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-italic.woff2
deleted file mode 100644
index 3404f37e2..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-italic.woff2 and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-regular.eot b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-regular.eot
deleted file mode 100644
index 11e3f2a5f..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-regular.eot and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-regular.ttf b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-regular.ttf
deleted file mode 100644
index 74decd9eb..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-regular.ttf and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-regular.woff b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-regular.woff
deleted file mode 100644
index ae1307ff5..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-regular.woff and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-regular.woff2 b/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-regular.woff2
deleted file mode 100644
index 3bf984332..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/Lato/lato-regular.woff2 and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab-Bold.ttf b/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab-Bold.ttf
deleted file mode 100644
index df5d1df27..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab-Bold.ttf and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab-Regular.ttf b/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab-Regular.ttf
deleted file mode 100644
index eb52a7907..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab-Regular.ttf and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-bold.eot b/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-bold.eot
deleted file mode 100644
index 79dc8efed..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-bold.eot and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-bold.ttf b/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-bold.ttf
deleted file mode 100644
index df5d1df27..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-bold.ttf and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff b/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff
deleted file mode 100644
index 6cb600001..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff2 b/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff2
deleted file mode 100644
index 7059e2314..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff2 and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot b/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot
deleted file mode 100644
index 2f7ca78a1..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf b/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf
deleted file mode 100644
index eb52a7907..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff b/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff
deleted file mode 100644
index f815f63f9..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2 b/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2
deleted file mode 100644
index f2c76e5bd..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2 and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.eot b/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.eot
deleted file mode 100644
index e9f60ca95..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.eot and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.svg b/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.svg
deleted file mode 100644
index 855c845e5..000000000
--- a/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.svg
+++ /dev/null
@@ -1,2671 +0,0 @@
-
-
-
-
-Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016
- By ,,,
-Copyright Dave Gandy 2016. All rights reserved.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.ttf b/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.ttf
deleted file mode 100644
index 35acda2fa..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.ttf and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.woff b/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.woff
deleted file mode 100644
index 400014a4b..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.woff and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.woff2 b/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.woff2
deleted file mode 100644
index 4d13fc604..000000000
Binary files a/static/python-yubihsm/API_Documentation/_static/fonts/fontawesome-webfont.woff2 and /dev/null differ
diff --git a/static/python-yubihsm/API_Documentation/_static/jquery-3.5.1.js b/static/python-yubihsm/API_Documentation/_static/jquery-3.5.1.js
deleted file mode 100644
index 50937333b..000000000
--- a/static/python-yubihsm/API_Documentation/_static/jquery-3.5.1.js
+++ /dev/null
@@ -1,10872 +0,0 @@
-/*!
- * jQuery JavaScript Library v3.5.1
- * https://jquery.com/
- *
- * Includes Sizzle.js
- * https://sizzlejs.com/
- *
- * Copyright JS Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2020-05-04T22:49Z
- */
-( function( global, factory ) {
-
- "use strict";
-
- if ( typeof module === "object" && typeof module.exports === "object" ) {
-
- // For CommonJS and CommonJS-like environments where a proper `window`
- // is present, execute the factory and get jQuery.
- // For environments that do not have a `window` with a `document`
- // (such as Node.js), expose a factory as module.exports.
- // This accentuates the need for the creation of a real `window`.
- // e.g. var jQuery = require("jquery")(window);
- // See ticket #14549 for more info.
- module.exports = global.document ?
- factory( global, true ) :
- function( w ) {
- if ( !w.document ) {
- throw new Error( "jQuery requires a window with a document" );
- }
- return factory( w );
- };
- } else {
- factory( global );
- }
-
-// Pass this if window is not defined yet
-} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
-
-// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
-// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
-// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
-// enough that all such attempts are guarded in a try block.
-"use strict";
-
-var arr = [];
-
-var getProto = Object.getPrototypeOf;
-
-var slice = arr.slice;
-
-var flat = arr.flat ? function( array ) {
- return arr.flat.call( array );
-} : function( array ) {
- return arr.concat.apply( [], array );
-};
-
-
-var push = arr.push;
-
-var indexOf = arr.indexOf;
-
-var class2type = {};
-
-var toString = class2type.toString;
-
-var hasOwn = class2type.hasOwnProperty;
-
-var fnToString = hasOwn.toString;
-
-var ObjectFunctionString = fnToString.call( Object );
-
-var support = {};
-
-var isFunction = function isFunction( obj ) {
-
- // Support: Chrome <=57, Firefox <=52
- // In some browsers, typeof returns "function" for HTML
elements
- // (i.e., `typeof document.createElement( "object" ) === "function"`).
- // We don't want to classify *any* DOM node as a function.
- return typeof obj === "function" && typeof obj.nodeType !== "number";
- };
-
-
-var isWindow = function isWindow( obj ) {
- return obj != null && obj === obj.window;
- };
-
-
-var document = window.document;
-
-
-
- var preservedScriptAttributes = {
- type: true,
- src: true,
- nonce: true,
- noModule: true
- };
-
- function DOMEval( code, node, doc ) {
- doc = doc || document;
-
- var i, val,
- script = doc.createElement( "script" );
-
- script.text = code;
- if ( node ) {
- for ( i in preservedScriptAttributes ) {
-
- // Support: Firefox 64+, Edge 18+
- // Some browsers don't support the "nonce" property on scripts.
- // On the other hand, just using `getAttribute` is not enough as
- // the `nonce` attribute is reset to an empty string whenever it
- // becomes browsing-context connected.
- // See https://github.com/whatwg/html/issues/2369
- // See https://html.spec.whatwg.org/#nonce-attributes
- // The `node.getAttribute` check was added for the sake of
- // `jQuery.globalEval` so that it can fake a nonce-containing node
- // via an object.
- val = node[ i ] || node.getAttribute && node.getAttribute( i );
- if ( val ) {
- script.setAttribute( i, val );
- }
- }
- }
- doc.head.appendChild( script ).parentNode.removeChild( script );
- }
-
-
-function toType( obj ) {
- if ( obj == null ) {
- return obj + "";
- }
-
- // Support: Android <=2.3 only (functionish RegExp)
- return typeof obj === "object" || typeof obj === "function" ?
- class2type[ toString.call( obj ) ] || "object" :
- typeof obj;
-}
-/* global Symbol */
-// Defining this global in .eslintrc.json would create a danger of using the global
-// unguarded in another place, it seems safer to define global only for this module
-
-
-
-var
- version = "3.5.1",
-
- // Define a local copy of jQuery
- jQuery = function( selector, context ) {
-
- // The jQuery object is actually just the init constructor 'enhanced'
- // Need init if jQuery is called (just allow error to be thrown if not included)
- return new jQuery.fn.init( selector, context );
- };
-
-jQuery.fn = jQuery.prototype = {
-
- // The current version of jQuery being used
- jquery: version,
-
- constructor: jQuery,
-
- // The default length of a jQuery object is 0
- length: 0,
-
- toArray: function() {
- return slice.call( this );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
-
- // Return all the elements in a clean array
- if ( num == null ) {
- return slice.call( this );
- }
-
- // Return just the one element from the set
- return num < 0 ? this[ num + this.length ] : this[ num ];
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems ) {
-
- // Build a new jQuery matched element set
- var ret = jQuery.merge( this.constructor(), elems );
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- each: function( callback ) {
- return jQuery.each( this, callback );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map( this, function( elem, i ) {
- return callback.call( elem, i, elem );
- } ) );
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ) );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- even: function() {
- return this.pushStack( jQuery.grep( this, function( _elem, i ) {
- return ( i + 1 ) % 2;
- } ) );
- },
-
- odd: function() {
- return this.pushStack( jQuery.grep( this, function( _elem, i ) {
- return i % 2;
- } ) );
- },
-
- eq: function( i ) {
- var len = this.length,
- j = +i + ( i < 0 ? len : 0 );
- return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
- },
-
- end: function() {
- return this.prevObject || this.constructor();
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: arr.sort,
- splice: arr.splice
-};
-
-jQuery.extend = jQuery.fn.extend = function() {
- var options, name, src, copy, copyIsArray, clone,
- target = arguments[ 0 ] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
-
- // Skip the boolean and the target
- target = arguments[ i ] || {};
- i++;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !isFunction( target ) ) {
- target = {};
- }
-
- // Extend jQuery itself if only one argument is passed
- if ( i === length ) {
- target = this;
- i--;
- }
-
- for ( ; i < length; i++ ) {
-
- // Only deal with non-null/undefined values
- if ( ( options = arguments[ i ] ) != null ) {
-
- // Extend the base object
- for ( name in options ) {
- copy = options[ name ];
-
- // Prevent Object.prototype pollution
- // Prevent never-ending loop
- if ( name === "__proto__" || target === copy ) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
- ( copyIsArray = Array.isArray( copy ) ) ) ) {
- src = target[ name ];
-
- // Ensure proper type for the source value
- if ( copyIsArray && !Array.isArray( src ) ) {
- clone = [];
- } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
- clone = {};
- } else {
- clone = src;
- }
- copyIsArray = false;
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend( {
-
- // Unique for each copy of jQuery on the page
- expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
-
- // Assume jQuery is ready without the ready module
- isReady: true,
-
- error: function( msg ) {
- throw new Error( msg );
- },
-
- noop: function() {},
-
- isPlainObject: function( obj ) {
- var proto, Ctor;
-
- // Detect obvious negatives
- // Use toString instead of jQuery.type to catch host objects
- if ( !obj || toString.call( obj ) !== "[object Object]" ) {
- return false;
- }
-
- proto = getProto( obj );
-
- // Objects with no prototype (e.g., `Object.create( null )`) are plain
- if ( !proto ) {
- return true;
- }
-
- // Objects with prototype are plain iff they were constructed by a global Object function
- Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
- return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
- },
-
- isEmptyObject: function( obj ) {
- var name;
-
- for ( name in obj ) {
- return false;
- }
- return true;
- },
-
- // Evaluates a script in a provided context; falls back to the global one
- // if not specified.
- globalEval: function( code, options, doc ) {
- DOMEval( code, { nonce: options && options.nonce }, doc );
- },
-
- each: function( obj, callback ) {
- var length, i = 0;
-
- if ( isArrayLike( obj ) ) {
- length = obj.length;
- for ( ; i < length; i++ ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- } else {
- for ( i in obj ) {
- if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
- break;
- }
- }
- }
-
- return obj;
- },
-
- // results is for internal usage only
- makeArray: function( arr, results ) {
- var ret = results || [];
-
- if ( arr != null ) {
- if ( isArrayLike( Object( arr ) ) ) {
- jQuery.merge( ret,
- typeof arr === "string" ?
- [ arr ] : arr
- );
- } else {
- push.call( ret, arr );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, arr, i ) {
- return arr == null ? -1 : indexOf.call( arr, elem, i );
- },
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // push.apply(_, arraylike) throws on ancient WebKit
- merge: function( first, second ) {
- var len = +second.length,
- j = 0,
- i = first.length;
-
- for ( ; j < len; j++ ) {
- first[ i++ ] = second[ j ];
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, invert ) {
- var callbackInverse,
- matches = [],
- i = 0,
- length = elems.length,
- callbackExpect = !invert;
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( ; i < length; i++ ) {
- callbackInverse = !callback( elems[ i ], i );
- if ( callbackInverse !== callbackExpect ) {
- matches.push( elems[ i ] );
- }
- }
-
- return matches;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var length, value,
- i = 0,
- ret = [];
-
- // Go through the array, translating each of the items to their new values
- if ( isArrayLike( elems ) ) {
- length = elems.length;
- for ( ; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
-
- // Go through every key on the object,
- } else {
- for ( i in elems ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
- }
-
- // Flatten any nested arrays
- return flat( ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- // jQuery.support is not used in Core but other projects attach their
- // properties to it so it needs to exist.
- support: support
-} );
-
-if ( typeof Symbol === "function" ) {
- jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
-}
-
-// Populate the class2type map
-jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
-function( _i, name ) {
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
-} );
-
-function isArrayLike( obj ) {
-
- // Support: real iOS 8.2 only (not reproducible in simulator)
- // `in` check used to prevent JIT error (gh-2145)
- // hasOwn isn't used here due to false negatives
- // regarding Nodelist length in IE
- var length = !!obj && "length" in obj && obj.length,
- type = toType( obj );
-
- if ( isFunction( obj ) || isWindow( obj ) ) {
- return false;
- }
-
- return type === "array" || length === 0 ||
- typeof length === "number" && length > 0 && ( length - 1 ) in obj;
-}
-var Sizzle =
-/*!
- * Sizzle CSS Selector Engine v2.3.5
- * https://sizzlejs.com/
- *
- * Copyright JS Foundation and other contributors
- * Released under the MIT license
- * https://js.foundation/
- *
- * Date: 2020-03-14
- */
-( function( window ) {
-var i,
- support,
- Expr,
- getText,
- isXML,
- tokenize,
- compile,
- select,
- outermostContext,
- sortInput,
- hasDuplicate,
-
- // Local document vars
- setDocument,
- document,
- docElem,
- documentIsHTML,
- rbuggyQSA,
- rbuggyMatches,
- matches,
- contains,
-
- // Instance-specific data
- expando = "sizzle" + 1 * new Date(),
- preferredDoc = window.document,
- dirruns = 0,
- done = 0,
- classCache = createCache(),
- tokenCache = createCache(),
- compilerCache = createCache(),
- nonnativeSelectorCache = createCache(),
- sortOrder = function( a, b ) {
- if ( a === b ) {
- hasDuplicate = true;
- }
- return 0;
- },
-
- // Instance methods
- hasOwn = ( {} ).hasOwnProperty,
- arr = [],
- pop = arr.pop,
- pushNative = arr.push,
- push = arr.push,
- slice = arr.slice,
-
- // Use a stripped-down indexOf as it's faster than native
- // https://jsperf.com/thor-indexof-vs-for/5
- indexOf = function( list, elem ) {
- var i = 0,
- len = list.length;
- for ( ; i < len; i++ ) {
- if ( list[ i ] === elem ) {
- return i;
- }
- }
- return -1;
- },
-
- booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" +
- "ismap|loop|multiple|open|readonly|required|scoped",
-
- // Regular expressions
-
- // http://www.w3.org/TR/css3-selectors/#whitespace
- whitespace = "[\\x20\\t\\r\\n\\f]",
-
- // https://www.w3.org/TR/css-syntax-3/#ident-token-diagram
- identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace +
- "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
-
- // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
- attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
-
- // Operator (capture 2)
- "*([*^$|!~]?=)" + whitespace +
-
- // "Attribute values must be CSS identifiers [capture 5]
- // or strings [capture 3 or capture 4]"
- "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" +
- whitespace + "*\\]",
-
- pseudos = ":(" + identifier + ")(?:\\((" +
-
- // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
- // 1. quoted (capture 3; capture 4 or capture 5)
- "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
-
- // 2. simple (capture 6)
- "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
-
- // 3. anything else (capture 2)
- ".*" +
- ")\\)|)",
-
- // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
- rwhitespace = new RegExp( whitespace + "+", "g" ),
- rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" +
- whitespace + "+$", "g" ),
-
- rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
- rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace +
- "*" ),
- rdescend = new RegExp( whitespace + "|>" ),
-
- rpseudo = new RegExp( pseudos ),
- ridentifier = new RegExp( "^" + identifier + "$" ),
-
- matchExpr = {
- "ID": new RegExp( "^#(" + identifier + ")" ),
- "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
- "TAG": new RegExp( "^(" + identifier + "|[*])" ),
- "ATTR": new RegExp( "^" + attributes ),
- "PSEUDO": new RegExp( "^" + pseudos ),
- "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
- whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" +
- whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
- "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
-
- // For use in libraries implementing .is()
- // We use this for POS matching in `select`
- "needsContext": new RegExp( "^" + whitespace +
- "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace +
- "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
- },
-
- rhtml = /HTML$/i,
- rinputs = /^(?:input|select|textarea|button)$/i,
- rheader = /^h\d$/i,
-
- rnative = /^[^{]+\{\s*\[native \w/,
-
- // Easily-parseable/retrievable ID or TAG or CLASS selectors
- rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
-
- rsibling = /[+~]/,
-
- // CSS escapes
- // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
- runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g" ),
- funescape = function( escape, nonHex ) {
- var high = "0x" + escape.slice( 1 ) - 0x10000;
-
- return nonHex ?
-
- // Strip the backslash prefix from a non-hex escape sequence
- nonHex :
-
- // Replace a hexadecimal escape sequence with the encoded Unicode code point
- // Support: IE <=11+
- // For values outside the Basic Multilingual Plane (BMP), manually construct a
- // surrogate pair
- high < 0 ?
- String.fromCharCode( high + 0x10000 ) :
- String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
- },
-
- // CSS string/identifier serialization
- // https://drafts.csswg.org/cssom/#common-serializing-idioms
- rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
- fcssescape = function( ch, asCodePoint ) {
- if ( asCodePoint ) {
-
- // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
- if ( ch === "\0" ) {
- return "\uFFFD";
- }
-
- // Control characters and (dependent upon position) numbers get escaped as code points
- return ch.slice( 0, -1 ) + "\\" +
- ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
- }
-
- // Other potentially-special ASCII characters get backslash-escaped
- return "\\" + ch;
- },
-
- // Used for iframes
- // See setDocument()
- // Removing the function wrapper causes a "Permission Denied"
- // error in IE
- unloadHandler = function() {
- setDocument();
- },
-
- inDisabledFieldset = addCombinator(
- function( elem ) {
- return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset";
- },
- { dir: "parentNode", next: "legend" }
- );
-
-// Optimize for push.apply( _, NodeList )
-try {
- push.apply(
- ( arr = slice.call( preferredDoc.childNodes ) ),
- preferredDoc.childNodes
- );
-
- // Support: Android<4.0
- // Detect silently failing push.apply
- // eslint-disable-next-line no-unused-expressions
- arr[ preferredDoc.childNodes.length ].nodeType;
-} catch ( e ) {
- push = { apply: arr.length ?
-
- // Leverage slice if possible
- function( target, els ) {
- pushNative.apply( target, slice.call( els ) );
- } :
-
- // Support: IE<9
- // Otherwise append directly
- function( target, els ) {
- var j = target.length,
- i = 0;
-
- // Can't trust NodeList.length
- while ( ( target[ j++ ] = els[ i++ ] ) ) {}
- target.length = j - 1;
- }
- };
-}
-
-function Sizzle( selector, context, results, seed ) {
- var m, i, elem, nid, match, groups, newSelector,
- newContext = context && context.ownerDocument,
-
- // nodeType defaults to 9, since context defaults to document
- nodeType = context ? context.nodeType : 9;
-
- results = results || [];
-
- // Return early from calls with invalid selector or context
- if ( typeof selector !== "string" || !selector ||
- nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
-
- return results;
- }
-
- // Try to shortcut find operations (as opposed to filters) in HTML documents
- if ( !seed ) {
- setDocument( context );
- context = context || document;
-
- if ( documentIsHTML ) {
-
- // If the selector is sufficiently simple, try using a "get*By*" DOM method
- // (excepting DocumentFragment context, where the methods don't exist)
- if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) {
-
- // ID selector
- if ( ( m = match[ 1 ] ) ) {
-
- // Document context
- if ( nodeType === 9 ) {
- if ( ( elem = context.getElementById( m ) ) ) {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( elem.id === m ) {
- results.push( elem );
- return results;
- }
- } else {
- return results;
- }
-
- // Element context
- } else {
-
- // Support: IE, Opera, Webkit
- // TODO: identify versions
- // getElementById can match elements by name instead of ID
- if ( newContext && ( elem = newContext.getElementById( m ) ) &&
- contains( context, elem ) &&
- elem.id === m ) {
-
- results.push( elem );
- return results;
- }
- }
-
- // Type selector
- } else if ( match[ 2 ] ) {
- push.apply( results, context.getElementsByTagName( selector ) );
- return results;
-
- // Class selector
- } else if ( ( m = match[ 3 ] ) && support.getElementsByClassName &&
- context.getElementsByClassName ) {
-
- push.apply( results, context.getElementsByClassName( m ) );
- return results;
- }
- }
-
- // Take advantage of querySelectorAll
- if ( support.qsa &&
- !nonnativeSelectorCache[ selector + " " ] &&
- ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
-
- // Support: IE 8 only
- // Exclude object elements
- ( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) {
-
- newSelector = selector;
- newContext = context;
-
- // qSA considers elements outside a scoping root when evaluating child or
- // descendant combinators, which is not what we want.
- // In such cases, we work around the behavior by prefixing every selector in the
- // list with an ID selector referencing the scope context.
- // The technique has to be used as well when a leading combinator is used
- // as such selectors are not recognized by querySelectorAll.
- // Thanks to Andrew Dupont for this technique.
- if ( nodeType === 1 &&
- ( rdescend.test( selector ) || rcombinators.test( selector ) ) ) {
-
- // Expand context for sibling selectors
- newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
- context;
-
- // We can use :scope instead of the ID hack if the browser
- // supports it & if we're not changing the context.
- if ( newContext !== context || !support.scope ) {
-
- // Capture the context ID, setting it first if necessary
- if ( ( nid = context.getAttribute( "id" ) ) ) {
- nid = nid.replace( rcssescape, fcssescape );
- } else {
- context.setAttribute( "id", ( nid = expando ) );
- }
- }
-
- // Prefix every selector in the list
- groups = tokenize( selector );
- i = groups.length;
- while ( i-- ) {
- groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " +
- toSelector( groups[ i ] );
- }
- newSelector = groups.join( "," );
- }
-
- try {
- push.apply( results,
- newContext.querySelectorAll( newSelector )
- );
- return results;
- } catch ( qsaError ) {
- nonnativeSelectorCache( selector, true );
- } finally {
- if ( nid === expando ) {
- context.removeAttribute( "id" );
- }
- }
- }
- }
- }
-
- // All others
- return select( selector.replace( rtrim, "$1" ), context, results, seed );
-}
-
-/**
- * Create key-value caches of limited size
- * @returns {function(string, object)} Returns the Object data after storing it on itself with
- * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
- * deleting the oldest entry
- */
-function createCache() {
- var keys = [];
-
- function cache( key, value ) {
-
- // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
- if ( keys.push( key + " " ) > Expr.cacheLength ) {
-
- // Only keep the most recent entries
- delete cache[ keys.shift() ];
- }
- return ( cache[ key + " " ] = value );
- }
- return cache;
-}
-
-/**
- * Mark a function for special use by Sizzle
- * @param {Function} fn The function to mark
- */
-function markFunction( fn ) {
- fn[ expando ] = true;
- return fn;
-}
-
-/**
- * Support testing using an element
- * @param {Function} fn Passed the created element and returns a boolean result
- */
-function assert( fn ) {
- var el = document.createElement( "fieldset" );
-
- try {
- return !!fn( el );
- } catch ( e ) {
- return false;
- } finally {
-
- // Remove from its parent by default
- if ( el.parentNode ) {
- el.parentNode.removeChild( el );
- }
-
- // release memory in IE
- el = null;
- }
-}
-
-/**
- * Adds the same handler for all of the specified attrs
- * @param {String} attrs Pipe-separated list of attributes
- * @param {Function} handler The method that will be applied
- */
-function addHandle( attrs, handler ) {
- var arr = attrs.split( "|" ),
- i = arr.length;
-
- while ( i-- ) {
- Expr.attrHandle[ arr[ i ] ] = handler;
- }
-}
-
-/**
- * Checks document order of two siblings
- * @param {Element} a
- * @param {Element} b
- * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
- */
-function siblingCheck( a, b ) {
- var cur = b && a,
- diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
- a.sourceIndex - b.sourceIndex;
-
- // Use IE sourceIndex if available on both nodes
- if ( diff ) {
- return diff;
- }
-
- // Check if b follows a
- if ( cur ) {
- while ( ( cur = cur.nextSibling ) ) {
- if ( cur === b ) {
- return -1;
- }
- }
- }
-
- return a ? 1 : -1;
-}
-
-/**
- * Returns a function to use in pseudos for input types
- * @param {String} type
- */
-function createInputPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for buttons
- * @param {String} type
- */
-function createButtonPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return ( name === "input" || name === "button" ) && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for :enabled/:disabled
- * @param {Boolean} disabled true for :disabled; false for :enabled
- */
-function createDisabledPseudo( disabled ) {
-
- // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable
- return function( elem ) {
-
- // Only certain elements can match :enabled or :disabled
- // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled
- // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled
- if ( "form" in elem ) {
-
- // Check for inherited disabledness on relevant non-disabled elements:
- // * listed form-associated elements in a disabled fieldset
- // https://html.spec.whatwg.org/multipage/forms.html#category-listed
- // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled
- // * option elements in a disabled optgroup
- // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled
- // All such elements have a "form" property.
- if ( elem.parentNode && elem.disabled === false ) {
-
- // Option elements defer to a parent optgroup if present
- if ( "label" in elem ) {
- if ( "label" in elem.parentNode ) {
- return elem.parentNode.disabled === disabled;
- } else {
- return elem.disabled === disabled;
- }
- }
-
- // Support: IE 6 - 11
- // Use the isDisabled shortcut property to check for disabled fieldset ancestors
- return elem.isDisabled === disabled ||
-
- // Where there is no isDisabled, check manually
- /* jshint -W018 */
- elem.isDisabled !== !disabled &&
- inDisabledFieldset( elem ) === disabled;
- }
-
- return elem.disabled === disabled;
-
- // Try to winnow out elements that can't be disabled before trusting the disabled property.
- // Some victims get caught in our net (label, legend, menu, track), but it shouldn't
- // even exist on them, let alone have a boolean value.
- } else if ( "label" in elem ) {
- return elem.disabled === disabled;
- }
-
- // Remaining elements are neither :enabled nor :disabled
- return false;
- };
-}
-
-/**
- * Returns a function to use in pseudos for positionals
- * @param {Function} fn
- */
-function createPositionalPseudo( fn ) {
- return markFunction( function( argument ) {
- argument = +argument;
- return markFunction( function( seed, matches ) {
- var j,
- matchIndexes = fn( [], seed.length, argument ),
- i = matchIndexes.length;
-
- // Match elements found at the specified indexes
- while ( i-- ) {
- if ( seed[ ( j = matchIndexes[ i ] ) ] ) {
- seed[ j ] = !( matches[ j ] = seed[ j ] );
- }
- }
- } );
- } );
-}
-
-/**
- * Checks a node for validity as a Sizzle context
- * @param {Element|Object=} context
- * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
- */
-function testContext( context ) {
- return context && typeof context.getElementsByTagName !== "undefined" && context;
-}
-
-// Expose support vars for convenience
-support = Sizzle.support = {};
-
-/**
- * Detects XML nodes
- * @param {Element|Object} elem An element or a document
- * @returns {Boolean} True iff elem is a non-HTML XML node
- */
-isXML = Sizzle.isXML = function( elem ) {
- var namespace = elem.namespaceURI,
- docElem = ( elem.ownerDocument || elem ).documentElement;
-
- // Support: IE <=8
- // Assume HTML when documentElement doesn't yet exist, such as inside loading iframes
- // https://bugs.jquery.com/ticket/4833
- return !rhtml.test( namespace || docElem && docElem.nodeName || "HTML" );
-};
-
-/**
- * Sets document-related variables once based on the current document
- * @param {Element|Object} [doc] An element or document object to use to set the document
- * @returns {Object} Returns the current document
- */
-setDocument = Sizzle.setDocument = function( node ) {
- var hasCompare, subWindow,
- doc = node ? node.ownerDocument || node : preferredDoc;
-
- // Return early if doc is invalid or already selected
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- if ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) {
- return document;
- }
-
- // Update global variables
- document = doc;
- docElem = document.documentElement;
- documentIsHTML = !isXML( document );
-
- // Support: IE 9 - 11+, Edge 12 - 18+
- // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- if ( preferredDoc != document &&
- ( subWindow = document.defaultView ) && subWindow.top !== subWindow ) {
-
- // Support: IE 11, Edge
- if ( subWindow.addEventListener ) {
- subWindow.addEventListener( "unload", unloadHandler, false );
-
- // Support: IE 9 - 10 only
- } else if ( subWindow.attachEvent ) {
- subWindow.attachEvent( "onunload", unloadHandler );
- }
- }
-
- // Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only,
- // Safari 4 - 5 only, Opera <=11.6 - 12.x only
- // IE/Edge & older browsers don't support the :scope pseudo-class.
- // Support: Safari 6.0 only
- // Safari 6.0 supports :scope but it's an alias of :root there.
- support.scope = assert( function( el ) {
- docElem.appendChild( el ).appendChild( document.createElement( "div" ) );
- return typeof el.querySelectorAll !== "undefined" &&
- !el.querySelectorAll( ":scope fieldset div" ).length;
- } );
-
- /* Attributes
- ---------------------------------------------------------------------- */
-
- // Support: IE<8
- // Verify that getAttribute really returns attributes and not properties
- // (excepting IE8 booleans)
- support.attributes = assert( function( el ) {
- el.className = "i";
- return !el.getAttribute( "className" );
- } );
-
- /* getElement(s)By*
- ---------------------------------------------------------------------- */
-
- // Check if getElementsByTagName("*") returns only elements
- support.getElementsByTagName = assert( function( el ) {
- el.appendChild( document.createComment( "" ) );
- return !el.getElementsByTagName( "*" ).length;
- } );
-
- // Support: IE<9
- support.getElementsByClassName = rnative.test( document.getElementsByClassName );
-
- // Support: IE<10
- // Check if getElementById returns elements by name
- // The broken getElementById methods don't pick up programmatically-set names,
- // so use a roundabout getElementsByName test
- support.getById = assert( function( el ) {
- docElem.appendChild( el ).id = expando;
- return !document.getElementsByName || !document.getElementsByName( expando ).length;
- } );
-
- // ID filter and find
- if ( support.getById ) {
- Expr.filter[ "ID" ] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- return elem.getAttribute( "id" ) === attrId;
- };
- };
- Expr.find[ "ID" ] = function( id, context ) {
- if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
- var elem = context.getElementById( id );
- return elem ? [ elem ] : [];
- }
- };
- } else {
- Expr.filter[ "ID" ] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- var node = typeof elem.getAttributeNode !== "undefined" &&
- elem.getAttributeNode( "id" );
- return node && node.value === attrId;
- };
- };
-
- // Support: IE 6 - 7 only
- // getElementById is not reliable as a find shortcut
- Expr.find[ "ID" ] = function( id, context ) {
- if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
- var node, i, elems,
- elem = context.getElementById( id );
-
- if ( elem ) {
-
- // Verify the id attribute
- node = elem.getAttributeNode( "id" );
- if ( node && node.value === id ) {
- return [ elem ];
- }
-
- // Fall back on getElementsByName
- elems = context.getElementsByName( id );
- i = 0;
- while ( ( elem = elems[ i++ ] ) ) {
- node = elem.getAttributeNode( "id" );
- if ( node && node.value === id ) {
- return [ elem ];
- }
- }
- }
-
- return [];
- }
- };
- }
-
- // Tag
- Expr.find[ "TAG" ] = support.getElementsByTagName ?
- function( tag, context ) {
- if ( typeof context.getElementsByTagName !== "undefined" ) {
- return context.getElementsByTagName( tag );
-
- // DocumentFragment nodes don't have gEBTN
- } else if ( support.qsa ) {
- return context.querySelectorAll( tag );
- }
- } :
-
- function( tag, context ) {
- var elem,
- tmp = [],
- i = 0,
-
- // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
- results = context.getElementsByTagName( tag );
-
- // Filter out possible comments
- if ( tag === "*" ) {
- while ( ( elem = results[ i++ ] ) ) {
- if ( elem.nodeType === 1 ) {
- tmp.push( elem );
- }
- }
-
- return tmp;
- }
- return results;
- };
-
- // Class
- Expr.find[ "CLASS" ] = support.getElementsByClassName && function( className, context ) {
- if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
- return context.getElementsByClassName( className );
- }
- };
-
- /* QSA/matchesSelector
- ---------------------------------------------------------------------- */
-
- // QSA and matchesSelector support
-
- // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
- rbuggyMatches = [];
-
- // qSa(:focus) reports false when true (Chrome 21)
- // We allow this because of a bug in IE8/9 that throws an error
- // whenever `document.activeElement` is accessed on an iframe
- // So, we allow :focus to pass through QSA all the time to avoid the IE error
- // See https://bugs.jquery.com/ticket/13378
- rbuggyQSA = [];
-
- if ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) {
-
- // Build QSA regex
- // Regex strategy adopted from Diego Perini
- assert( function( el ) {
-
- var input;
-
- // Select is set to empty string on purpose
- // This is to test IE's treatment of not explicitly
- // setting a boolean content attribute,
- // since its presence should be enough
- // https://bugs.jquery.com/ticket/12359
- docElem.appendChild( el ).innerHTML = " " +
- "" +
- " ";
-
- // Support: IE8, Opera 11-12.16
- // Nothing should be selected when empty strings follow ^= or $= or *=
- // The test attribute must be unknown in Opera but "safe" for WinRT
- // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
- if ( el.querySelectorAll( "[msallowcapture^='']" ).length ) {
- rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
- }
-
- // Support: IE8
- // Boolean attributes and "value" are not treated correctly
- if ( !el.querySelectorAll( "[selected]" ).length ) {
- rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
- }
-
- // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
- if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
- rbuggyQSA.push( "~=" );
- }
-
- // Support: IE 11+, Edge 15 - 18+
- // IE 11/Edge don't find elements on a `[name='']` query in some cases.
- // Adding a temporary attribute to the document before the selection works
- // around the issue.
- // Interestingly, IE 10 & older don't seem to have the issue.
- input = document.createElement( "input" );
- input.setAttribute( "name", "" );
- el.appendChild( input );
- if ( !el.querySelectorAll( "[name='']" ).length ) {
- rbuggyQSA.push( "\\[" + whitespace + "*name" + whitespace + "*=" +
- whitespace + "*(?:''|\"\")" );
- }
-
- // Webkit/Opera - :checked should return selected option elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- // IE8 throws error here and will not see later tests
- if ( !el.querySelectorAll( ":checked" ).length ) {
- rbuggyQSA.push( ":checked" );
- }
-
- // Support: Safari 8+, iOS 8+
- // https://bugs.webkit.org/show_bug.cgi?id=136851
- // In-page `selector#id sibling-combinator selector` fails
- if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) {
- rbuggyQSA.push( ".#.+[+~]" );
- }
-
- // Support: Firefox <=3.6 - 5 only
- // Old Firefox doesn't throw on a badly-escaped identifier.
- el.querySelectorAll( "\\\f" );
- rbuggyQSA.push( "[\\r\\n\\f]" );
- } );
-
- assert( function( el ) {
- el.innerHTML = " " +
- " ";
-
- // Support: Windows 8 Native Apps
- // The type and name attributes are restricted during .innerHTML assignment
- var input = document.createElement( "input" );
- input.setAttribute( "type", "hidden" );
- el.appendChild( input ).setAttribute( "name", "D" );
-
- // Support: IE8
- // Enforce case-sensitivity of name attribute
- if ( el.querySelectorAll( "[name=d]" ).length ) {
- rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
- }
-
- // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
- // IE8 throws error here and will not see later tests
- if ( el.querySelectorAll( ":enabled" ).length !== 2 ) {
- rbuggyQSA.push( ":enabled", ":disabled" );
- }
-
- // Support: IE9-11+
- // IE's :disabled selector does not pick up the children of disabled fieldsets
- docElem.appendChild( el ).disabled = true;
- if ( el.querySelectorAll( ":disabled" ).length !== 2 ) {
- rbuggyQSA.push( ":enabled", ":disabled" );
- }
-
- // Support: Opera 10 - 11 only
- // Opera 10-11 does not throw on post-comma invalid pseudos
- el.querySelectorAll( "*,:x" );
- rbuggyQSA.push( ",.*:" );
- } );
- }
-
- if ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches ||
- docElem.webkitMatchesSelector ||
- docElem.mozMatchesSelector ||
- docElem.oMatchesSelector ||
- docElem.msMatchesSelector ) ) ) ) {
-
- assert( function( el ) {
-
- // Check to see if it's possible to do matchesSelector
- // on a disconnected node (IE 9)
- support.disconnectedMatch = matches.call( el, "*" );
-
- // This should fail with an exception
- // Gecko does not error, returns false instead
- matches.call( el, "[s!='']:x" );
- rbuggyMatches.push( "!=", pseudos );
- } );
- }
-
- rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) );
- rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( "|" ) );
-
- /* Contains
- ---------------------------------------------------------------------- */
- hasCompare = rnative.test( docElem.compareDocumentPosition );
-
- // Element contains another
- // Purposefully self-exclusive
- // As in, an element does not contain itself
- contains = hasCompare || rnative.test( docElem.contains ) ?
- function( a, b ) {
- var adown = a.nodeType === 9 ? a.documentElement : a,
- bup = b && b.parentNode;
- return a === bup || !!( bup && bup.nodeType === 1 && (
- adown.contains ?
- adown.contains( bup ) :
- a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
- ) );
- } :
- function( a, b ) {
- if ( b ) {
- while ( ( b = b.parentNode ) ) {
- if ( b === a ) {
- return true;
- }
- }
- }
- return false;
- };
-
- /* Sorting
- ---------------------------------------------------------------------- */
-
- // Document order sorting
- sortOrder = hasCompare ?
- function( a, b ) {
-
- // Flag for duplicate removal
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- // Sort on method existence if only one input has compareDocumentPosition
- var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
- if ( compare ) {
- return compare;
- }
-
- // Calculate position if both inputs belong to the same document
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- compare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ?
- a.compareDocumentPosition( b ) :
-
- // Otherwise we know they are disconnected
- 1;
-
- // Disconnected nodes
- if ( compare & 1 ||
- ( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) {
-
- // Choose the first element that is related to our preferred document
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- if ( a == document || a.ownerDocument == preferredDoc &&
- contains( preferredDoc, a ) ) {
- return -1;
- }
-
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- if ( b == document || b.ownerDocument == preferredDoc &&
- contains( preferredDoc, b ) ) {
- return 1;
- }
-
- // Maintain original order
- return sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
- }
-
- return compare & 4 ? -1 : 1;
- } :
- function( a, b ) {
-
- // Exit early if the nodes are identical
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- var cur,
- i = 0,
- aup = a.parentNode,
- bup = b.parentNode,
- ap = [ a ],
- bp = [ b ];
-
- // Parentless nodes are either documents or disconnected
- if ( !aup || !bup ) {
-
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- /* eslint-disable eqeqeq */
- return a == document ? -1 :
- b == document ? 1 :
- /* eslint-enable eqeqeq */
- aup ? -1 :
- bup ? 1 :
- sortInput ?
- ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
- 0;
-
- // If the nodes are siblings, we can do a quick check
- } else if ( aup === bup ) {
- return siblingCheck( a, b );
- }
-
- // Otherwise we need full lists of their ancestors for comparison
- cur = a;
- while ( ( cur = cur.parentNode ) ) {
- ap.unshift( cur );
- }
- cur = b;
- while ( ( cur = cur.parentNode ) ) {
- bp.unshift( cur );
- }
-
- // Walk down the tree looking for a discrepancy
- while ( ap[ i ] === bp[ i ] ) {
- i++;
- }
-
- return i ?
-
- // Do a sibling check if the nodes have a common ancestor
- siblingCheck( ap[ i ], bp[ i ] ) :
-
- // Otherwise nodes in our document sort first
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- /* eslint-disable eqeqeq */
- ap[ i ] == preferredDoc ? -1 :
- bp[ i ] == preferredDoc ? 1 :
- /* eslint-enable eqeqeq */
- 0;
- };
-
- return document;
-};
-
-Sizzle.matches = function( expr, elements ) {
- return Sizzle( expr, null, null, elements );
-};
-
-Sizzle.matchesSelector = function( elem, expr ) {
- setDocument( elem );
-
- if ( support.matchesSelector && documentIsHTML &&
- !nonnativeSelectorCache[ expr + " " ] &&
- ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
- ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
-
- try {
- var ret = matches.call( elem, expr );
-
- // IE 9's matchesSelector returns false on disconnected nodes
- if ( ret || support.disconnectedMatch ||
-
- // As well, disconnected nodes are said to be in a document
- // fragment in IE 9
- elem.document && elem.document.nodeType !== 11 ) {
- return ret;
- }
- } catch ( e ) {
- nonnativeSelectorCache( expr, true );
- }
- }
-
- return Sizzle( expr, document, null, [ elem ] ).length > 0;
-};
-
-Sizzle.contains = function( context, elem ) {
-
- // Set document vars if needed
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- if ( ( context.ownerDocument || context ) != document ) {
- setDocument( context );
- }
- return contains( context, elem );
-};
-
-Sizzle.attr = function( elem, name ) {
-
- // Set document vars if needed
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- if ( ( elem.ownerDocument || elem ) != document ) {
- setDocument( elem );
- }
-
- var fn = Expr.attrHandle[ name.toLowerCase() ],
-
- // Don't get fooled by Object.prototype properties (jQuery #13807)
- val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
- fn( elem, name, !documentIsHTML ) :
- undefined;
-
- return val !== undefined ?
- val :
- support.attributes || !documentIsHTML ?
- elem.getAttribute( name ) :
- ( val = elem.getAttributeNode( name ) ) && val.specified ?
- val.value :
- null;
-};
-
-Sizzle.escape = function( sel ) {
- return ( sel + "" ).replace( rcssescape, fcssescape );
-};
-
-Sizzle.error = function( msg ) {
- throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Document sorting and removing duplicates
- * @param {ArrayLike} results
- */
-Sizzle.uniqueSort = function( results ) {
- var elem,
- duplicates = [],
- j = 0,
- i = 0;
-
- // Unless we *know* we can detect duplicates, assume their presence
- hasDuplicate = !support.detectDuplicates;
- sortInput = !support.sortStable && results.slice( 0 );
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- while ( ( elem = results[ i++ ] ) ) {
- if ( elem === results[ i ] ) {
- j = duplicates.push( i );
- }
- }
- while ( j-- ) {
- results.splice( duplicates[ j ], 1 );
- }
- }
-
- // Clear input after sorting to release objects
- // See https://github.com/jquery/sizzle/pull/225
- sortInput = null;
-
- return results;
-};
-
-/**
- * Utility function for retrieving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-getText = Sizzle.getText = function( elem ) {
- var node,
- ret = "",
- i = 0,
- nodeType = elem.nodeType;
-
- if ( !nodeType ) {
-
- // If no nodeType, this is expected to be an array
- while ( ( node = elem[ i++ ] ) ) {
-
- // Do not traverse comment nodes
- ret += getText( node );
- }
- } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
-
- // Use textContent for elements
- // innerText usage removed for consistency of new lines (jQuery #11153)
- if ( typeof elem.textContent === "string" ) {
- return elem.textContent;
- } else {
-
- // Traverse its children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- ret += getText( elem );
- }
- }
- } else if ( nodeType === 3 || nodeType === 4 ) {
- return elem.nodeValue;
- }
-
- // Do not include comment or processing instruction nodes
-
- return ret;
-};
-
-Expr = Sizzle.selectors = {
-
- // Can be adjusted by the user
- cacheLength: 50,
-
- createPseudo: markFunction,
-
- match: matchExpr,
-
- attrHandle: {},
-
- find: {},
-
- relative: {
- ">": { dir: "parentNode", first: true },
- " ": { dir: "parentNode" },
- "+": { dir: "previousSibling", first: true },
- "~": { dir: "previousSibling" }
- },
-
- preFilter: {
- "ATTR": function( match ) {
- match[ 1 ] = match[ 1 ].replace( runescape, funescape );
-
- // Move the given value to match[3] whether quoted or unquoted
- match[ 3 ] = ( match[ 3 ] || match[ 4 ] ||
- match[ 5 ] || "" ).replace( runescape, funescape );
-
- if ( match[ 2 ] === "~=" ) {
- match[ 3 ] = " " + match[ 3 ] + " ";
- }
-
- return match.slice( 0, 4 );
- },
-
- "CHILD": function( match ) {
-
- /* matches from matchExpr["CHILD"]
- 1 type (only|nth|...)
- 2 what (child|of-type)
- 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
- 4 xn-component of xn+y argument ([+-]?\d*n|)
- 5 sign of xn-component
- 6 x of xn-component
- 7 sign of y-component
- 8 y of y-component
- */
- match[ 1 ] = match[ 1 ].toLowerCase();
-
- if ( match[ 1 ].slice( 0, 3 ) === "nth" ) {
-
- // nth-* requires argument
- if ( !match[ 3 ] ) {
- Sizzle.error( match[ 0 ] );
- }
-
- // numeric x and y parameters for Expr.filter.CHILD
- // remember that false/true cast respectively to 0/1
- match[ 4 ] = +( match[ 4 ] ?
- match[ 5 ] + ( match[ 6 ] || 1 ) :
- 2 * ( match[ 3 ] === "even" || match[ 3 ] === "odd" ) );
- match[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === "odd" );
-
- // other types prohibit arguments
- } else if ( match[ 3 ] ) {
- Sizzle.error( match[ 0 ] );
- }
-
- return match;
- },
-
- "PSEUDO": function( match ) {
- var excess,
- unquoted = !match[ 6 ] && match[ 2 ];
-
- if ( matchExpr[ "CHILD" ].test( match[ 0 ] ) ) {
- return null;
- }
-
- // Accept quoted arguments as-is
- if ( match[ 3 ] ) {
- match[ 2 ] = match[ 4 ] || match[ 5 ] || "";
-
- // Strip excess characters from unquoted arguments
- } else if ( unquoted && rpseudo.test( unquoted ) &&
-
- // Get excess from tokenize (recursively)
- ( excess = tokenize( unquoted, true ) ) &&
-
- // advance to the next closing parenthesis
- ( excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length ) ) {
-
- // excess is a negative index
- match[ 0 ] = match[ 0 ].slice( 0, excess );
- match[ 2 ] = unquoted.slice( 0, excess );
- }
-
- // Return only captures needed by the pseudo filter method (type and argument)
- return match.slice( 0, 3 );
- }
- },
-
- filter: {
-
- "TAG": function( nodeNameSelector ) {
- var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
- return nodeNameSelector === "*" ?
- function() {
- return true;
- } :
- function( elem ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
- };
- },
-
- "CLASS": function( className ) {
- var pattern = classCache[ className + " " ];
-
- return pattern ||
- ( pattern = new RegExp( "(^|" + whitespace +
- ")" + className + "(" + whitespace + "|$)" ) ) && classCache(
- className, function( elem ) {
- return pattern.test(
- typeof elem.className === "string" && elem.className ||
- typeof elem.getAttribute !== "undefined" &&
- elem.getAttribute( "class" ) ||
- ""
- );
- } );
- },
-
- "ATTR": function( name, operator, check ) {
- return function( elem ) {
- var result = Sizzle.attr( elem, name );
-
- if ( result == null ) {
- return operator === "!=";
- }
- if ( !operator ) {
- return true;
- }
-
- result += "";
-
- /* eslint-disable max-len */
-
- return operator === "=" ? result === check :
- operator === "!=" ? result !== check :
- operator === "^=" ? check && result.indexOf( check ) === 0 :
- operator === "*=" ? check && result.indexOf( check ) > -1 :
- operator === "$=" ? check && result.slice( -check.length ) === check :
- operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
- operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
- false;
- /* eslint-enable max-len */
-
- };
- },
-
- "CHILD": function( type, what, _argument, first, last ) {
- var simple = type.slice( 0, 3 ) !== "nth",
- forward = type.slice( -4 ) !== "last",
- ofType = what === "of-type";
-
- return first === 1 && last === 0 ?
-
- // Shortcut for :nth-*(n)
- function( elem ) {
- return !!elem.parentNode;
- } :
-
- function( elem, _context, xml ) {
- var cache, uniqueCache, outerCache, node, nodeIndex, start,
- dir = simple !== forward ? "nextSibling" : "previousSibling",
- parent = elem.parentNode,
- name = ofType && elem.nodeName.toLowerCase(),
- useCache = !xml && !ofType,
- diff = false;
-
- if ( parent ) {
-
- // :(first|last|only)-(child|of-type)
- if ( simple ) {
- while ( dir ) {
- node = elem;
- while ( ( node = node[ dir ] ) ) {
- if ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) {
-
- return false;
- }
- }
-
- // Reverse direction for :only-* (if we haven't yet done so)
- start = dir = type === "only" && !start && "nextSibling";
- }
- return true;
- }
-
- start = [ forward ? parent.firstChild : parent.lastChild ];
-
- // non-xml :nth-child(...) stores cache data on `parent`
- if ( forward && useCache ) {
-
- // Seek `elem` from a previously-cached index
-
- // ...in a gzip-friendly way
- node = parent;
- outerCache = node[ expando ] || ( node[ expando ] = {} );
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- ( outerCache[ node.uniqueID ] = {} );
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex && cache[ 2 ];
- node = nodeIndex && parent.childNodes[ nodeIndex ];
-
- while ( ( node = ++nodeIndex && node && node[ dir ] ||
-
- // Fallback to seeking `elem` from the start
- ( diff = nodeIndex = 0 ) || start.pop() ) ) {
-
- // When found, cache indexes on `parent` and break
- if ( node.nodeType === 1 && ++diff && node === elem ) {
- uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
- break;
- }
- }
-
- } else {
-
- // Use previously-cached element index if available
- if ( useCache ) {
-
- // ...in a gzip-friendly way
- node = elem;
- outerCache = node[ expando ] || ( node[ expando ] = {} );
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- ( outerCache[ node.uniqueID ] = {} );
-
- cache = uniqueCache[ type ] || [];
- nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
- diff = nodeIndex;
- }
-
- // xml :nth-child(...)
- // or :nth-last-child(...) or :nth(-last)?-of-type(...)
- if ( diff === false ) {
-
- // Use the same loop as above to seek `elem` from the start
- while ( ( node = ++nodeIndex && node && node[ dir ] ||
- ( diff = nodeIndex = 0 ) || start.pop() ) ) {
-
- if ( ( ofType ?
- node.nodeName.toLowerCase() === name :
- node.nodeType === 1 ) &&
- ++diff ) {
-
- // Cache the index of each encountered element
- if ( useCache ) {
- outerCache = node[ expando ] ||
- ( node[ expando ] = {} );
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ node.uniqueID ] ||
- ( outerCache[ node.uniqueID ] = {} );
-
- uniqueCache[ type ] = [ dirruns, diff ];
- }
-
- if ( node === elem ) {
- break;
- }
- }
- }
- }
- }
-
- // Incorporate the offset, then check against cycle size
- diff -= last;
- return diff === first || ( diff % first === 0 && diff / first >= 0 );
- }
- };
- },
-
- "PSEUDO": function( pseudo, argument ) {
-
- // pseudo-class names are case-insensitive
- // http://www.w3.org/TR/selectors/#pseudo-classes
- // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
- // Remember that setFilters inherits from pseudos
- var args,
- fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
- Sizzle.error( "unsupported pseudo: " + pseudo );
-
- // The user may use createPseudo to indicate that
- // arguments are needed to create the filter function
- // just as Sizzle does
- if ( fn[ expando ] ) {
- return fn( argument );
- }
-
- // But maintain support for old signatures
- if ( fn.length > 1 ) {
- args = [ pseudo, pseudo, "", argument ];
- return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
- markFunction( function( seed, matches ) {
- var idx,
- matched = fn( seed, argument ),
- i = matched.length;
- while ( i-- ) {
- idx = indexOf( seed, matched[ i ] );
- seed[ idx ] = !( matches[ idx ] = matched[ i ] );
- }
- } ) :
- function( elem ) {
- return fn( elem, 0, args );
- };
- }
-
- return fn;
- }
- },
-
- pseudos: {
-
- // Potentially complex pseudos
- "not": markFunction( function( selector ) {
-
- // Trim the selector passed to compile
- // to avoid treating leading and trailing
- // spaces as combinators
- var input = [],
- results = [],
- matcher = compile( selector.replace( rtrim, "$1" ) );
-
- return matcher[ expando ] ?
- markFunction( function( seed, matches, _context, xml ) {
- var elem,
- unmatched = matcher( seed, null, xml, [] ),
- i = seed.length;
-
- // Match elements unmatched by `matcher`
- while ( i-- ) {
- if ( ( elem = unmatched[ i ] ) ) {
- seed[ i ] = !( matches[ i ] = elem );
- }
- }
- } ) :
- function( elem, _context, xml ) {
- input[ 0 ] = elem;
- matcher( input, null, xml, results );
-
- // Don't keep the element (issue #299)
- input[ 0 ] = null;
- return !results.pop();
- };
- } ),
-
- "has": markFunction( function( selector ) {
- return function( elem ) {
- return Sizzle( selector, elem ).length > 0;
- };
- } ),
-
- "contains": markFunction( function( text ) {
- text = text.replace( runescape, funescape );
- return function( elem ) {
- return ( elem.textContent || getText( elem ) ).indexOf( text ) > -1;
- };
- } ),
-
- // "Whether an element is represented by a :lang() selector
- // is based solely on the element's language value
- // being equal to the identifier C,
- // or beginning with the identifier C immediately followed by "-".
- // The matching of C against the element's language value is performed case-insensitively.
- // The identifier C does not have to be a valid language name."
- // http://www.w3.org/TR/selectors/#lang-pseudo
- "lang": markFunction( function( lang ) {
-
- // lang value must be a valid identifier
- if ( !ridentifier.test( lang || "" ) ) {
- Sizzle.error( "unsupported lang: " + lang );
- }
- lang = lang.replace( runescape, funescape ).toLowerCase();
- return function( elem ) {
- var elemLang;
- do {
- if ( ( elemLang = documentIsHTML ?
- elem.lang :
- elem.getAttribute( "xml:lang" ) || elem.getAttribute( "lang" ) ) ) {
-
- elemLang = elemLang.toLowerCase();
- return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
- }
- } while ( ( elem = elem.parentNode ) && elem.nodeType === 1 );
- return false;
- };
- } ),
-
- // Miscellaneous
- "target": function( elem ) {
- var hash = window.location && window.location.hash;
- return hash && hash.slice( 1 ) === elem.id;
- },
-
- "root": function( elem ) {
- return elem === docElem;
- },
-
- "focus": function( elem ) {
- return elem === document.activeElement &&
- ( !document.hasFocus || document.hasFocus() ) &&
- !!( elem.type || elem.href || ~elem.tabIndex );
- },
-
- // Boolean properties
- "enabled": createDisabledPseudo( false ),
- "disabled": createDisabledPseudo( true ),
-
- "checked": function( elem ) {
-
- // In CSS3, :checked should return both checked and selected elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- var nodeName = elem.nodeName.toLowerCase();
- return ( nodeName === "input" && !!elem.checked ) ||
- ( nodeName === "option" && !!elem.selected );
- },
-
- "selected": function( elem ) {
-
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- if ( elem.parentNode ) {
- // eslint-disable-next-line no-unused-expressions
- elem.parentNode.selectedIndex;
- }
-
- return elem.selected === true;
- },
-
- // Contents
- "empty": function( elem ) {
-
- // http://www.w3.org/TR/selectors/#empty-pseudo
- // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
- // but not by others (comment: 8; processing instruction: 7; etc.)
- // nodeType < 6 works because attributes (2) do not appear as children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- if ( elem.nodeType < 6 ) {
- return false;
- }
- }
- return true;
- },
-
- "parent": function( elem ) {
- return !Expr.pseudos[ "empty" ]( elem );
- },
-
- // Element/input types
- "header": function( elem ) {
- return rheader.test( elem.nodeName );
- },
-
- "input": function( elem ) {
- return rinputs.test( elem.nodeName );
- },
-
- "button": function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === "button" || name === "button";
- },
-
- "text": function( elem ) {
- var attr;
- return elem.nodeName.toLowerCase() === "input" &&
- elem.type === "text" &&
-
- // Support: IE<8
- // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
- ( ( attr = elem.getAttribute( "type" ) ) == null ||
- attr.toLowerCase() === "text" );
- },
-
- // Position-in-collection
- "first": createPositionalPseudo( function() {
- return [ 0 ];
- } ),
-
- "last": createPositionalPseudo( function( _matchIndexes, length ) {
- return [ length - 1 ];
- } ),
-
- "eq": createPositionalPseudo( function( _matchIndexes, length, argument ) {
- return [ argument < 0 ? argument + length : argument ];
- } ),
-
- "even": createPositionalPseudo( function( matchIndexes, length ) {
- var i = 0;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- } ),
-
- "odd": createPositionalPseudo( function( matchIndexes, length ) {
- var i = 1;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- } ),
-
- "lt": createPositionalPseudo( function( matchIndexes, length, argument ) {
- var i = argument < 0 ?
- argument + length :
- argument > length ?
- length :
- argument;
- for ( ; --i >= 0; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- } ),
-
- "gt": createPositionalPseudo( function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; ++i < length; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- } )
- }
-};
-
-Expr.pseudos[ "nth" ] = Expr.pseudos[ "eq" ];
-
-// Add button/input type pseudos
-for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
- Expr.pseudos[ i ] = createInputPseudo( i );
-}
-for ( i in { submit: true, reset: true } ) {
- Expr.pseudos[ i ] = createButtonPseudo( i );
-}
-
-// Easy API for creating new setFilters
-function setFilters() {}
-setFilters.prototype = Expr.filters = Expr.pseudos;
-Expr.setFilters = new setFilters();
-
-tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
- var matched, match, tokens, type,
- soFar, groups, preFilters,
- cached = tokenCache[ selector + " " ];
-
- if ( cached ) {
- return parseOnly ? 0 : cached.slice( 0 );
- }
-
- soFar = selector;
- groups = [];
- preFilters = Expr.preFilter;
-
- while ( soFar ) {
-
- // Comma and first run
- if ( !matched || ( match = rcomma.exec( soFar ) ) ) {
- if ( match ) {
-
- // Don't consume trailing commas as valid
- soFar = soFar.slice( match[ 0 ].length ) || soFar;
- }
- groups.push( ( tokens = [] ) );
- }
-
- matched = false;
-
- // Combinators
- if ( ( match = rcombinators.exec( soFar ) ) ) {
- matched = match.shift();
- tokens.push( {
- value: matched,
-
- // Cast descendant combinators to space
- type: match[ 0 ].replace( rtrim, " " )
- } );
- soFar = soFar.slice( matched.length );
- }
-
- // Filters
- for ( type in Expr.filter ) {
- if ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] ||
- ( match = preFilters[ type ]( match ) ) ) ) {
- matched = match.shift();
- tokens.push( {
- value: matched,
- type: type,
- matches: match
- } );
- soFar = soFar.slice( matched.length );
- }
- }
-
- if ( !matched ) {
- break;
- }
- }
-
- // Return the length of the invalid excess
- // if we're just parsing
- // Otherwise, throw an error or return tokens
- return parseOnly ?
- soFar.length :
- soFar ?
- Sizzle.error( selector ) :
-
- // Cache the tokens
- tokenCache( selector, groups ).slice( 0 );
-};
-
-function toSelector( tokens ) {
- var i = 0,
- len = tokens.length,
- selector = "";
- for ( ; i < len; i++ ) {
- selector += tokens[ i ].value;
- }
- return selector;
-}
-
-function addCombinator( matcher, combinator, base ) {
- var dir = combinator.dir,
- skip = combinator.next,
- key = skip || dir,
- checkNonElements = base && key === "parentNode",
- doneName = done++;
-
- return combinator.first ?
-
- // Check against closest ancestor/preceding element
- function( elem, context, xml ) {
- while ( ( elem = elem[ dir ] ) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- return matcher( elem, context, xml );
- }
- }
- return false;
- } :
-
- // Check against all ancestor/preceding elements
- function( elem, context, xml ) {
- var oldCache, uniqueCache, outerCache,
- newCache = [ dirruns, doneName ];
-
- // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
- if ( xml ) {
- while ( ( elem = elem[ dir ] ) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- if ( matcher( elem, context, xml ) ) {
- return true;
- }
- }
- }
- } else {
- while ( ( elem = elem[ dir ] ) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- outerCache = elem[ expando ] || ( elem[ expando ] = {} );
-
- // Support: IE <9 only
- // Defend against cloned attroperties (jQuery gh-1709)
- uniqueCache = outerCache[ elem.uniqueID ] ||
- ( outerCache[ elem.uniqueID ] = {} );
-
- if ( skip && skip === elem.nodeName.toLowerCase() ) {
- elem = elem[ dir ] || elem;
- } else if ( ( oldCache = uniqueCache[ key ] ) &&
- oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
-
- // Assign to newCache so results back-propagate to previous elements
- return ( newCache[ 2 ] = oldCache[ 2 ] );
- } else {
-
- // Reuse newcache so results back-propagate to previous elements
- uniqueCache[ key ] = newCache;
-
- // A match means we're done; a fail means we have to keep checking
- if ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) {
- return true;
- }
- }
- }
- }
- }
- return false;
- };
-}
-
-function elementMatcher( matchers ) {
- return matchers.length > 1 ?
- function( elem, context, xml ) {
- var i = matchers.length;
- while ( i-- ) {
- if ( !matchers[ i ]( elem, context, xml ) ) {
- return false;
- }
- }
- return true;
- } :
- matchers[ 0 ];
-}
-
-function multipleContexts( selector, contexts, results ) {
- var i = 0,
- len = contexts.length;
- for ( ; i < len; i++ ) {
- Sizzle( selector, contexts[ i ], results );
- }
- return results;
-}
-
-function condense( unmatched, map, filter, context, xml ) {
- var elem,
- newUnmatched = [],
- i = 0,
- len = unmatched.length,
- mapped = map != null;
-
- for ( ; i < len; i++ ) {
- if ( ( elem = unmatched[ i ] ) ) {
- if ( !filter || filter( elem, context, xml ) ) {
- newUnmatched.push( elem );
- if ( mapped ) {
- map.push( i );
- }
- }
- }
- }
-
- return newUnmatched;
-}
-
-function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
- if ( postFilter && !postFilter[ expando ] ) {
- postFilter = setMatcher( postFilter );
- }
- if ( postFinder && !postFinder[ expando ] ) {
- postFinder = setMatcher( postFinder, postSelector );
- }
- return markFunction( function( seed, results, context, xml ) {
- var temp, i, elem,
- preMap = [],
- postMap = [],
- preexisting = results.length,
-
- // Get initial elements from seed or context
- elems = seed || multipleContexts(
- selector || "*",
- context.nodeType ? [ context ] : context,
- []
- ),
-
- // Prefilter to get matcher input, preserving a map for seed-results synchronization
- matcherIn = preFilter && ( seed || !selector ) ?
- condense( elems, preMap, preFilter, context, xml ) :
- elems,
-
- matcherOut = matcher ?
-
- // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
- postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
-
- // ...intermediate processing is necessary
- [] :
-
- // ...otherwise use results directly
- results :
- matcherIn;
-
- // Find primary matches
- if ( matcher ) {
- matcher( matcherIn, matcherOut, context, xml );
- }
-
- // Apply postFilter
- if ( postFilter ) {
- temp = condense( matcherOut, postMap );
- postFilter( temp, [], context, xml );
-
- // Un-match failing elements by moving them back to matcherIn
- i = temp.length;
- while ( i-- ) {
- if ( ( elem = temp[ i ] ) ) {
- matcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem );
- }
- }
- }
-
- if ( seed ) {
- if ( postFinder || preFilter ) {
- if ( postFinder ) {
-
- // Get the final matcherOut by condensing this intermediate into postFinder contexts
- temp = [];
- i = matcherOut.length;
- while ( i-- ) {
- if ( ( elem = matcherOut[ i ] ) ) {
-
- // Restore matcherIn since elem is not yet a final match
- temp.push( ( matcherIn[ i ] = elem ) );
- }
- }
- postFinder( null, ( matcherOut = [] ), temp, xml );
- }
-
- // Move matched elements from seed to results to keep them synchronized
- i = matcherOut.length;
- while ( i-- ) {
- if ( ( elem = matcherOut[ i ] ) &&
- ( temp = postFinder ? indexOf( seed, elem ) : preMap[ i ] ) > -1 ) {
-
- seed[ temp ] = !( results[ temp ] = elem );
- }
- }
- }
-
- // Add elements to results, through postFinder if defined
- } else {
- matcherOut = condense(
- matcherOut === results ?
- matcherOut.splice( preexisting, matcherOut.length ) :
- matcherOut
- );
- if ( postFinder ) {
- postFinder( null, results, matcherOut, xml );
- } else {
- push.apply( results, matcherOut );
- }
- }
- } );
-}
-
-function matcherFromTokens( tokens ) {
- var checkContext, matcher, j,
- len = tokens.length,
- leadingRelative = Expr.relative[ tokens[ 0 ].type ],
- implicitRelative = leadingRelative || Expr.relative[ " " ],
- i = leadingRelative ? 1 : 0,
-
- // The foundational matcher ensures that elements are reachable from top-level context(s)
- matchContext = addCombinator( function( elem ) {
- return elem === checkContext;
- }, implicitRelative, true ),
- matchAnyContext = addCombinator( function( elem ) {
- return indexOf( checkContext, elem ) > -1;
- }, implicitRelative, true ),
- matchers = [ function( elem, context, xml ) {
- var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
- ( checkContext = context ).nodeType ?
- matchContext( elem, context, xml ) :
- matchAnyContext( elem, context, xml ) );
-
- // Avoid hanging onto element (issue #299)
- checkContext = null;
- return ret;
- } ];
-
- for ( ; i < len; i++ ) {
- if ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) {
- matchers = [ addCombinator( elementMatcher( matchers ), matcher ) ];
- } else {
- matcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches );
-
- // Return special upon seeing a positional matcher
- if ( matcher[ expando ] ) {
-
- // Find the next relative operator (if any) for proper handling
- j = ++i;
- for ( ; j < len; j++ ) {
- if ( Expr.relative[ tokens[ j ].type ] ) {
- break;
- }
- }
- return setMatcher(
- i > 1 && elementMatcher( matchers ),
- i > 1 && toSelector(
-
- // If the preceding token was a descendant combinator, insert an implicit any-element `*`
- tokens
- .slice( 0, i - 1 )
- .concat( { value: tokens[ i - 2 ].type === " " ? "*" : "" } )
- ).replace( rtrim, "$1" ),
- matcher,
- i < j && matcherFromTokens( tokens.slice( i, j ) ),
- j < len && matcherFromTokens( ( tokens = tokens.slice( j ) ) ),
- j < len && toSelector( tokens )
- );
- }
- matchers.push( matcher );
- }
- }
-
- return elementMatcher( matchers );
-}
-
-function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
- var bySet = setMatchers.length > 0,
- byElement = elementMatchers.length > 0,
- superMatcher = function( seed, context, xml, results, outermost ) {
- var elem, j, matcher,
- matchedCount = 0,
- i = "0",
- unmatched = seed && [],
- setMatched = [],
- contextBackup = outermostContext,
-
- // We must always have either seed elements or outermost context
- elems = seed || byElement && Expr.find[ "TAG" ]( "*", outermost ),
-
- // Use integer dirruns iff this is the outermost matcher
- dirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ),
- len = elems.length;
-
- if ( outermost ) {
-
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- outermostContext = context == document || context || outermost;
- }
-
- // Add elements passing elementMatchers directly to results
- // Support: IE<9, Safari
- // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id
- for ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) {
- if ( byElement && elem ) {
- j = 0;
-
- // Support: IE 11+, Edge 17 - 18+
- // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
- // two documents; shallow comparisons work.
- // eslint-disable-next-line eqeqeq
- if ( !context && elem.ownerDocument != document ) {
- setDocument( elem );
- xml = !documentIsHTML;
- }
- while ( ( matcher = elementMatchers[ j++ ] ) ) {
- if ( matcher( elem, context || document, xml ) ) {
- results.push( elem );
- break;
- }
- }
- if ( outermost ) {
- dirruns = dirrunsUnique;
- }
- }
-
- // Track unmatched elements for set filters
- if ( bySet ) {
-
- // They will have gone through all possible matchers
- if ( ( elem = !matcher && elem ) ) {
- matchedCount--;
- }
-
- // Lengthen the array for every element, matched or not
- if ( seed ) {
- unmatched.push( elem );
- }
- }
- }
-
- // `i` is now the count of elements visited above, and adding it to `matchedCount`
- // makes the latter nonnegative.
- matchedCount += i;
-
- // Apply set filters to unmatched elements
- // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
- // equals `i`), unless we didn't visit _any_ elements in the above loop because we have
- // no element matchers and no seed.
- // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
- // case, which will result in a "00" `matchedCount` that differs from `i` but is also
- // numerically zero.
- if ( bySet && i !== matchedCount ) {
- j = 0;
- while ( ( matcher = setMatchers[ j++ ] ) ) {
- matcher( unmatched, setMatched, context, xml );
- }
-
- if ( seed ) {
-
- // Reintegrate element matches to eliminate the need for sorting
- if ( matchedCount > 0 ) {
- while ( i-- ) {
- if ( !( unmatched[ i ] || setMatched[ i ] ) ) {
- setMatched[ i ] = pop.call( results );
- }
- }
- }
-
- // Discard index placeholder values to get only actual matches
- setMatched = condense( setMatched );
- }
-
- // Add matches to results
- push.apply( results, setMatched );
-
- // Seedless set matches succeeding multiple successful matchers stipulate sorting
- if ( outermost && !seed && setMatched.length > 0 &&
- ( matchedCount + setMatchers.length ) > 1 ) {
-
- Sizzle.uniqueSort( results );
- }
- }
-
- // Override manipulation of globals by nested matchers
- if ( outermost ) {
- dirruns = dirrunsUnique;
- outermostContext = contextBackup;
- }
-
- return unmatched;
- };
-
- return bySet ?
- markFunction( superMatcher ) :
- superMatcher;
-}
-
-compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
- var i,
- setMatchers = [],
- elementMatchers = [],
- cached = compilerCache[ selector + " " ];
-
- if ( !cached ) {
-
- // Generate a function of recursive functions that can be used to check each element
- if ( !match ) {
- match = tokenize( selector );
- }
- i = match.length;
- while ( i-- ) {
- cached = matcherFromTokens( match[ i ] );
- if ( cached[ expando ] ) {
- setMatchers.push( cached );
- } else {
- elementMatchers.push( cached );
- }
- }
-
- // Cache the compiled function
- cached = compilerCache(
- selector,
- matcherFromGroupMatchers( elementMatchers, setMatchers )
- );
-
- // Save selector and tokenization
- cached.selector = selector;
- }
- return cached;
-};
-
-/**
- * A low-level selection function that works with Sizzle's compiled
- * selector functions
- * @param {String|Function} selector A selector or a pre-compiled
- * selector function built with Sizzle.compile
- * @param {Element} context
- * @param {Array} [results]
- * @param {Array} [seed] A set of elements to match against
- */
-select = Sizzle.select = function( selector, context, results, seed ) {
- var i, tokens, token, type, find,
- compiled = typeof selector === "function" && selector,
- match = !seed && tokenize( ( selector = compiled.selector || selector ) );
-
- results = results || [];
-
- // Try to minimize operations if there is only one selector in the list and no seed
- // (the latter of which guarantees us context)
- if ( match.length === 1 ) {
-
- // Reduce context if the leading compound selector is an ID
- tokens = match[ 0 ] = match[ 0 ].slice( 0 );
- if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" &&
- context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) {
-
- context = ( Expr.find[ "ID" ]( token.matches[ 0 ]
- .replace( runescape, funescape ), context ) || [] )[ 0 ];
- if ( !context ) {
- return results;
-
- // Precompiled matchers will still verify ancestry, so step up a level
- } else if ( compiled ) {
- context = context.parentNode;
- }
-
- selector = selector.slice( tokens.shift().value.length );
- }
-
- // Fetch a seed set for right-to-left matching
- i = matchExpr[ "needsContext" ].test( selector ) ? 0 : tokens.length;
- while ( i-- ) {
- token = tokens[ i ];
-
- // Abort if we hit a combinator
- if ( Expr.relative[ ( type = token.type ) ] ) {
- break;
- }
- if ( ( find = Expr.find[ type ] ) ) {
-
- // Search, expanding context for leading sibling combinators
- if ( ( seed = find(
- token.matches[ 0 ].replace( runescape, funescape ),
- rsibling.test( tokens[ 0 ].type ) && testContext( context.parentNode ) ||
- context
- ) ) ) {
-
- // If seed is empty or no tokens remain, we can return early
- tokens.splice( i, 1 );
- selector = seed.length && toSelector( tokens );
- if ( !selector ) {
- push.apply( results, seed );
- return results;
- }
-
- break;
- }
- }
- }
- }
-
- // Compile and execute a filtering function if one is not provided
- // Provide `match` to avoid retokenization if we modified the selector above
- ( compiled || compile( selector, match ) )(
- seed,
- context,
- !documentIsHTML,
- results,
- !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
- );
- return results;
-};
-
-// One-time assignments
-
-// Sort stability
-support.sortStable = expando.split( "" ).sort( sortOrder ).join( "" ) === expando;
-
-// Support: Chrome 14-35+
-// Always assume duplicates if they aren't passed to the comparison function
-support.detectDuplicates = !!hasDuplicate;
-
-// Initialize against the default document
-setDocument();
-
-// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
-// Detached nodes confoundingly follow *each other*
-support.sortDetached = assert( function( el ) {
-
- // Should return 1, but returns 4 (following)
- return el.compareDocumentPosition( document.createElement( "fieldset" ) ) & 1;
-} );
-
-// Support: IE<8
-// Prevent attribute/property "interpolation"
-// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
-if ( !assert( function( el ) {
- el.innerHTML = " ";
- return el.firstChild.getAttribute( "href" ) === "#";
-} ) ) {
- addHandle( "type|href|height|width", function( elem, name, isXML ) {
- if ( !isXML ) {
- return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
- }
- } );
-}
-
-// Support: IE<9
-// Use defaultValue in place of getAttribute("value")
-if ( !support.attributes || !assert( function( el ) {
- el.innerHTML = " ";
- el.firstChild.setAttribute( "value", "" );
- return el.firstChild.getAttribute( "value" ) === "";
-} ) ) {
- addHandle( "value", function( elem, _name, isXML ) {
- if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
- return elem.defaultValue;
- }
- } );
-}
-
-// Support: IE<9
-// Use getAttributeNode to fetch booleans when getAttribute lies
-if ( !assert( function( el ) {
- return el.getAttribute( "disabled" ) == null;
-} ) ) {
- addHandle( booleans, function( elem, name, isXML ) {
- var val;
- if ( !isXML ) {
- return elem[ name ] === true ? name.toLowerCase() :
- ( val = elem.getAttributeNode( name ) ) && val.specified ?
- val.value :
- null;
- }
- } );
-}
-
-return Sizzle;
-
-} )( window );
-
-
-
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-
-// Deprecated
-jQuery.expr[ ":" ] = jQuery.expr.pseudos;
-jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-jQuery.escapeSelector = Sizzle.escape;
-
-
-
-
-var dir = function( elem, dir, until ) {
- var matched = [],
- truncate = until !== undefined;
-
- while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
- if ( elem.nodeType === 1 ) {
- if ( truncate && jQuery( elem ).is( until ) ) {
- break;
- }
- matched.push( elem );
- }
- }
- return matched;
-};
-
-
-var siblings = function( n, elem ) {
- var matched = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- matched.push( n );
- }
- }
-
- return matched;
-};
-
-
-var rneedsContext = jQuery.expr.match.needsContext;
-
-
-
-function nodeName( elem, name ) {
-
- return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
-
-};
-var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
-
-
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, not ) {
- if ( isFunction( qualifier ) ) {
- return jQuery.grep( elements, function( elem, i ) {
- return !!qualifier.call( elem, i, elem ) !== not;
- } );
- }
-
- // Single element
- if ( qualifier.nodeType ) {
- return jQuery.grep( elements, function( elem ) {
- return ( elem === qualifier ) !== not;
- } );
- }
-
- // Arraylike of elements (jQuery, arguments, Array)
- if ( typeof qualifier !== "string" ) {
- return jQuery.grep( elements, function( elem ) {
- return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
- } );
- }
-
- // Filtered directly for both simple and complex selectors
- return jQuery.filter( qualifier, elements, not );
-}
-
-jQuery.filter = function( expr, elems, not ) {
- var elem = elems[ 0 ];
-
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- if ( elems.length === 1 && elem.nodeType === 1 ) {
- return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];
- }
-
- return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
- return elem.nodeType === 1;
- } ) );
-};
-
-jQuery.fn.extend( {
- find: function( selector ) {
- var i, ret,
- len = this.length,
- self = this;
-
- if ( typeof selector !== "string" ) {
- return this.pushStack( jQuery( selector ).filter( function() {
- for ( i = 0; i < len; i++ ) {
- if ( jQuery.contains( self[ i ], this ) ) {
- return true;
- }
- }
- } ) );
- }
-
- ret = this.pushStack( [] );
-
- for ( i = 0; i < len; i++ ) {
- jQuery.find( selector, self[ i ], ret );
- }
-
- return len > 1 ? jQuery.uniqueSort( ret ) : ret;
- },
- filter: function( selector ) {
- return this.pushStack( winnow( this, selector || [], false ) );
- },
- not: function( selector ) {
- return this.pushStack( winnow( this, selector || [], true ) );
- },
- is: function( selector ) {
- return !!winnow(
- this,
-
- // If this is a positional/relative selector, check membership in the returned set
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
- typeof selector === "string" && rneedsContext.test( selector ) ?
- jQuery( selector ) :
- selector || [],
- false
- ).length;
- }
-} );
-
-
-// Initialize a jQuery object
-
-
-// A central reference to the root jQuery(document)
-var rootjQuery,
-
- // A simple way to check for HTML strings
- // Prioritize #id over to avoid XSS via location.hash (#9521)
- // Strict HTML recognition (#11290: must start with <)
- // Shortcut simple #id case for speed
- rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
-
- init = jQuery.fn.init = function( selector, context, root ) {
- var match, elem;
-
- // HANDLE: $(""), $(null), $(undefined), $(false)
- if ( !selector ) {
- return this;
- }
-
- // Method init() accepts an alternate rootjQuery
- // so migrate can support jQuery.sub (gh-2101)
- root = root || rootjQuery;
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- if ( selector[ 0 ] === "<" &&
- selector[ selector.length - 1 ] === ">" &&
- selector.length >= 3 ) {
-
- // Assume that strings that start and end with <> are HTML and skip the regex check
- match = [ null, selector, null ];
-
- } else {
- match = rquickExpr.exec( selector );
- }
-
- // Match html or make sure no context is specified for #id
- if ( match && ( match[ 1 ] || !context ) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[ 1 ] ) {
- context = context instanceof jQuery ? context[ 0 ] : context;
-
- // Option to run scripts is true for back-compat
- // Intentionally let the error be thrown if parseHTML is not present
- jQuery.merge( this, jQuery.parseHTML(
- match[ 1 ],
- context && context.nodeType ? context.ownerDocument || context : document,
- true
- ) );
-
- // HANDLE: $(html, props)
- if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
- for ( match in context ) {
-
- // Properties of context are called as methods if possible
- if ( isFunction( this[ match ] ) ) {
- this[ match ]( context[ match ] );
-
- // ...and otherwise set as attributes
- } else {
- this.attr( match, context[ match ] );
- }
- }
- }
-
- return this;
-
- // HANDLE: $(#id)
- } else {
- elem = document.getElementById( match[ 2 ] );
-
- if ( elem ) {
-
- // Inject the element directly into the jQuery object
- this[ 0 ] = elem;
- this.length = 1;
- }
- return this;
- }
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return ( context || root ).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return this.constructor( context ).find( selector );
- }
-
- // HANDLE: $(DOMElement)
- } else if ( selector.nodeType ) {
- this[ 0 ] = selector;
- this.length = 1;
- return this;
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( isFunction( selector ) ) {
- return root.ready !== undefined ?
- root.ready( selector ) :
-
- // Execute immediately if ready is not present
- selector( jQuery );
- }
-
- return jQuery.makeArray( selector, this );
- };
-
-// Give the init function the jQuery prototype for later instantiation
-init.prototype = jQuery.fn;
-
-// Initialize central reference
-rootjQuery = jQuery( document );
-
-
-var rparentsprev = /^(?:parents|prev(?:Until|All))/,
-
- // Methods guaranteed to produce a unique set when starting from a unique set
- guaranteedUnique = {
- children: true,
- contents: true,
- next: true,
- prev: true
- };
-
-jQuery.fn.extend( {
- has: function( target ) {
- var targets = jQuery( target, this ),
- l = targets.length;
-
- return this.filter( function() {
- var i = 0;
- for ( ; i < l; i++ ) {
- if ( jQuery.contains( this, targets[ i ] ) ) {
- return true;
- }
- }
- } );
- },
-
- closest: function( selectors, context ) {
- var cur,
- i = 0,
- l = this.length,
- matched = [],
- targets = typeof selectors !== "string" && jQuery( selectors );
-
- // Positional selectors never match, since there's no _selection_ context
- if ( !rneedsContext.test( selectors ) ) {
- for ( ; i < l; i++ ) {
- for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
-
- // Always skip document fragments
- if ( cur.nodeType < 11 && ( targets ?
- targets.index( cur ) > -1 :
-
- // Don't pass non-elements to Sizzle
- cur.nodeType === 1 &&
- jQuery.find.matchesSelector( cur, selectors ) ) ) {
-
- matched.push( cur );
- break;
- }
- }
- }
- }
-
- return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
- },
-
- // Determine the position of an element within the set
- index: function( elem ) {
-
- // No argument, return index in parent
- if ( !elem ) {
- return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
- }
-
- // Index in selector
- if ( typeof elem === "string" ) {
- return indexOf.call( jQuery( elem ), this[ 0 ] );
- }
-
- // Locate the position of the desired element
- return indexOf.call( this,
-
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[ 0 ] : elem
- );
- },
-
- add: function( selector, context ) {
- return this.pushStack(
- jQuery.uniqueSort(
- jQuery.merge( this.get(), jQuery( selector, context ) )
- )
- );
- },
-
- addBack: function( selector ) {
- return this.add( selector == null ?
- this.prevObject : this.prevObject.filter( selector )
- );
- }
-} );
-
-function sibling( cur, dir ) {
- while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
- return cur;
-}
-
-jQuery.each( {
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, _i, until ) {
- return dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return sibling( elem, "nextSibling" );
- },
- prev: function( elem ) {
- return sibling( elem, "previousSibling" );
- },
- nextAll: function( elem ) {
- return dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, _i, until ) {
- return dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, _i, until ) {
- return dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return siblings( ( elem.parentNode || {} ).firstChild, elem );
- },
- children: function( elem ) {
- return siblings( elem.firstChild );
- },
- contents: function( elem ) {
- if ( elem.contentDocument != null &&
-
- // Support: IE 11+
- // elements with no `data` attribute has an object
- // `contentDocument` with a `null` prototype.
- getProto( elem.contentDocument ) ) {
-
- return elem.contentDocument;
- }
-
- // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only
- // Treat the template element as a regular one in browsers that
- // don't support it.
- if ( nodeName( elem, "template" ) ) {
- elem = elem.content || elem;
- }
-
- return jQuery.merge( [], elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var matched = jQuery.map( this, fn, until );
-
- if ( name.slice( -5 ) !== "Until" ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- matched = jQuery.filter( selector, matched );
- }
-
- if ( this.length > 1 ) {
-
- // Remove duplicates
- if ( !guaranteedUnique[ name ] ) {
- jQuery.uniqueSort( matched );
- }
-
- // Reverse order for parents* and prev-derivatives
- if ( rparentsprev.test( name ) ) {
- matched.reverse();
- }
- }
-
- return this.pushStack( matched );
- };
-} );
-var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g );
-
-
-
-// Convert String-formatted options into Object-formatted ones
-function createOptions( options ) {
- var object = {};
- jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {
- object[ flag ] = true;
- } );
- return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- * options: an optional list of space-separated options that will change how
- * the callback list behaves or a more traditional option object
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible options:
- *
- * once: will ensure the callback list can only be fired once (like a Deferred)
- *
- * memory: will keep track of previous values and will call any callback added
- * after the list has been fired right away with the latest "memorized"
- * values (like a Deferred)
- *
- * unique: will ensure a callback can only be added once (no duplicate in the list)
- *
- * stopOnFalse: interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( options ) {
-
- // Convert options from String-formatted to Object-formatted if needed
- // (we check in cache first)
- options = typeof options === "string" ?
- createOptions( options ) :
- jQuery.extend( {}, options );
-
- var // Flag to know if list is currently firing
- firing,
-
- // Last fire value for non-forgettable lists
- memory,
-
- // Flag to know if list was already fired
- fired,
-
- // Flag to prevent firing
- locked,
-
- // Actual callback list
- list = [],
-
- // Queue of execution data for repeatable lists
- queue = [],
-
- // Index of currently firing callback (modified by add/remove as needed)
- firingIndex = -1,
-
- // Fire callbacks
- fire = function() {
-
- // Enforce single-firing
- locked = locked || options.once;
-
- // Execute callbacks for all pending executions,
- // respecting firingIndex overrides and runtime changes
- fired = firing = true;
- for ( ; queue.length; firingIndex = -1 ) {
- memory = queue.shift();
- while ( ++firingIndex < list.length ) {
-
- // Run callback and check for early termination
- if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
- options.stopOnFalse ) {
-
- // Jump to end and forget the data so .add doesn't re-fire
- firingIndex = list.length;
- memory = false;
- }
- }
- }
-
- // Forget the data if we're done with it
- if ( !options.memory ) {
- memory = false;
- }
-
- firing = false;
-
- // Clean up if we're done firing for good
- if ( locked ) {
-
- // Keep an empty list if we have data for future add calls
- if ( memory ) {
- list = [];
-
- // Otherwise, this object is spent
- } else {
- list = "";
- }
- }
- },
-
- // Actual Callbacks object
- self = {
-
- // Add a callback or a collection of callbacks to the list
- add: function() {
- if ( list ) {
-
- // If we have memory from a past run, we should fire after adding
- if ( memory && !firing ) {
- firingIndex = list.length - 1;
- queue.push( memory );
- }
-
- ( function add( args ) {
- jQuery.each( args, function( _, arg ) {
- if ( isFunction( arg ) ) {
- if ( !options.unique || !self.has( arg ) ) {
- list.push( arg );
- }
- } else if ( arg && arg.length && toType( arg ) !== "string" ) {
-
- // Inspect recursively
- add( arg );
- }
- } );
- } )( arguments );
-
- if ( memory && !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Remove a callback from the list
- remove: function() {
- jQuery.each( arguments, function( _, arg ) {
- var index;
- while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
- list.splice( index, 1 );
-
- // Handle firing indexes
- if ( index <= firingIndex ) {
- firingIndex--;
- }
- }
- } );
- return this;
- },
-
- // Check if a given callback is in the list.
- // If no argument is given, return whether or not list has callbacks attached.
- has: function( fn ) {
- return fn ?
- jQuery.inArray( fn, list ) > -1 :
- list.length > 0;
- },
-
- // Remove all callbacks from the list
- empty: function() {
- if ( list ) {
- list = [];
- }
- return this;
- },
-
- // Disable .fire and .add
- // Abort any current/pending executions
- // Clear all callbacks and values
- disable: function() {
- locked = queue = [];
- list = memory = "";
- return this;
- },
- disabled: function() {
- return !list;
- },
-
- // Disable .fire
- // Also disable .add unless we have memory (since it would have no effect)
- // Abort any pending executions
- lock: function() {
- locked = queue = [];
- if ( !memory && !firing ) {
- list = memory = "";
- }
- return this;
- },
- locked: function() {
- return !!locked;
- },
-
- // Call all callbacks with the given context and arguments
- fireWith: function( context, args ) {
- if ( !locked ) {
- args = args || [];
- args = [ context, args.slice ? args.slice() : args ];
- queue.push( args );
- if ( !firing ) {
- fire();
- }
- }
- return this;
- },
-
- // Call all the callbacks with the given arguments
- fire: function() {
- self.fireWith( this, arguments );
- return this;
- },
-
- // To know if the callbacks have already been called at least once
- fired: function() {
- return !!fired;
- }
- };
-
- return self;
-};
-
-
-function Identity( v ) {
- return v;
-}
-function Thrower( ex ) {
- throw ex;
-}
-
-function adoptValue( value, resolve, reject, noValue ) {
- var method;
-
- try {
-
- // Check for promise aspect first to privilege synchronous behavior
- if ( value && isFunction( ( method = value.promise ) ) ) {
- method.call( value ).done( resolve ).fail( reject );
-
- // Other thenables
- } else if ( value && isFunction( ( method = value.then ) ) ) {
- method.call( value, resolve, reject );
-
- // Other non-thenables
- } else {
-
- // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:
- // * false: [ value ].slice( 0 ) => resolve( value )
- // * true: [ value ].slice( 1 ) => resolve()
- resolve.apply( undefined, [ value ].slice( noValue ) );
- }
-
- // For Promises/A+, convert exceptions into rejections
- // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
- // Deferred#then to conditionally suppress rejection.
- } catch ( value ) {
-
- // Support: Android 4.0 only
- // Strict mode functions invoked without .call/.apply get global-object context
- reject.apply( undefined, [ value ] );
- }
-}
-
-jQuery.extend( {
-
- Deferred: function( func ) {
- var tuples = [
-
- // action, add listener, callbacks,
- // ... .then handlers, argument index, [final state]
- [ "notify", "progress", jQuery.Callbacks( "memory" ),
- jQuery.Callbacks( "memory" ), 2 ],
- [ "resolve", "done", jQuery.Callbacks( "once memory" ),
- jQuery.Callbacks( "once memory" ), 0, "resolved" ],
- [ "reject", "fail", jQuery.Callbacks( "once memory" ),
- jQuery.Callbacks( "once memory" ), 1, "rejected" ]
- ],
- state = "pending",
- promise = {
- state: function() {
- return state;
- },
- always: function() {
- deferred.done( arguments ).fail( arguments );
- return this;
- },
- "catch": function( fn ) {
- return promise.then( null, fn );
- },
-
- // Keep pipe for back-compat
- pipe: function( /* fnDone, fnFail, fnProgress */ ) {
- var fns = arguments;
-
- return jQuery.Deferred( function( newDefer ) {
- jQuery.each( tuples, function( _i, tuple ) {
-
- // Map tuples (progress, done, fail) to arguments (done, fail, progress)
- var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];
-
- // deferred.progress(function() { bind to newDefer or newDefer.notify })
- // deferred.done(function() { bind to newDefer or newDefer.resolve })
- // deferred.fail(function() { bind to newDefer or newDefer.reject })
- deferred[ tuple[ 1 ] ]( function() {
- var returned = fn && fn.apply( this, arguments );
- if ( returned && isFunction( returned.promise ) ) {
- returned.promise()
- .progress( newDefer.notify )
- .done( newDefer.resolve )
- .fail( newDefer.reject );
- } else {
- newDefer[ tuple[ 0 ] + "With" ](
- this,
- fn ? [ returned ] : arguments
- );
- }
- } );
- } );
- fns = null;
- } ).promise();
- },
- then: function( onFulfilled, onRejected, onProgress ) {
- var maxDepth = 0;
- function resolve( depth, deferred, handler, special ) {
- return function() {
- var that = this,
- args = arguments,
- mightThrow = function() {
- var returned, then;
-
- // Support: Promises/A+ section 2.3.3.3.3
- // https://promisesaplus.com/#point-59
- // Ignore double-resolution attempts
- if ( depth < maxDepth ) {
- return;
- }
-
- returned = handler.apply( that, args );
-
- // Support: Promises/A+ section 2.3.1
- // https://promisesaplus.com/#point-48
- if ( returned === deferred.promise() ) {
- throw new TypeError( "Thenable self-resolution" );
- }
-
- // Support: Promises/A+ sections 2.3.3.1, 3.5
- // https://promisesaplus.com/#point-54
- // https://promisesaplus.com/#point-75
- // Retrieve `then` only once
- then = returned &&
-
- // Support: Promises/A+ section 2.3.4
- // https://promisesaplus.com/#point-64
- // Only check objects and functions for thenability
- ( typeof returned === "object" ||
- typeof returned === "function" ) &&
- returned.then;
-
- // Handle a returned thenable
- if ( isFunction( then ) ) {
-
- // Special processors (notify) just wait for resolution
- if ( special ) {
- then.call(
- returned,
- resolve( maxDepth, deferred, Identity, special ),
- resolve( maxDepth, deferred, Thrower, special )
- );
-
- // Normal processors (resolve) also hook into progress
- } else {
-
- // ...and disregard older resolution values
- maxDepth++;
-
- then.call(
- returned,
- resolve( maxDepth, deferred, Identity, special ),
- resolve( maxDepth, deferred, Thrower, special ),
- resolve( maxDepth, deferred, Identity,
- deferred.notifyWith )
- );
- }
-
- // Handle all other returned values
- } else {
-
- // Only substitute handlers pass on context
- // and multiple values (non-spec behavior)
- if ( handler !== Identity ) {
- that = undefined;
- args = [ returned ];
- }
-
- // Process the value(s)
- // Default process is resolve
- ( special || deferred.resolveWith )( that, args );
- }
- },
-
- // Only normal processors (resolve) catch and reject exceptions
- process = special ?
- mightThrow :
- function() {
- try {
- mightThrow();
- } catch ( e ) {
-
- if ( jQuery.Deferred.exceptionHook ) {
- jQuery.Deferred.exceptionHook( e,
- process.stackTrace );
- }
-
- // Support: Promises/A+ section 2.3.3.3.4.1
- // https://promisesaplus.com/#point-61
- // Ignore post-resolution exceptions
- if ( depth + 1 >= maxDepth ) {
-
- // Only substitute handlers pass on context
- // and multiple values (non-spec behavior)
- if ( handler !== Thrower ) {
- that = undefined;
- args = [ e ];
- }
-
- deferred.rejectWith( that, args );
- }
- }
- };
-
- // Support: Promises/A+ section 2.3.3.3.1
- // https://promisesaplus.com/#point-57
- // Re-resolve promises immediately to dodge false rejection from
- // subsequent errors
- if ( depth ) {
- process();
- } else {
-
- // Call an optional hook to record the stack, in case of exception
- // since it's otherwise lost when execution goes async
- if ( jQuery.Deferred.getStackHook ) {
- process.stackTrace = jQuery.Deferred.getStackHook();
- }
- window.setTimeout( process );
- }
- };
- }
-
- return jQuery.Deferred( function( newDefer ) {
-
- // progress_handlers.add( ... )
- tuples[ 0 ][ 3 ].add(
- resolve(
- 0,
- newDefer,
- isFunction( onProgress ) ?
- onProgress :
- Identity,
- newDefer.notifyWith
- )
- );
-
- // fulfilled_handlers.add( ... )
- tuples[ 1 ][ 3 ].add(
- resolve(
- 0,
- newDefer,
- isFunction( onFulfilled ) ?
- onFulfilled :
- Identity
- )
- );
-
- // rejected_handlers.add( ... )
- tuples[ 2 ][ 3 ].add(
- resolve(
- 0,
- newDefer,
- isFunction( onRejected ) ?
- onRejected :
- Thrower
- )
- );
- } ).promise();
- },
-
- // Get a promise for this deferred
- // If obj is provided, the promise aspect is added to the object
- promise: function( obj ) {
- return obj != null ? jQuery.extend( obj, promise ) : promise;
- }
- },
- deferred = {};
-
- // Add list-specific methods
- jQuery.each( tuples, function( i, tuple ) {
- var list = tuple[ 2 ],
- stateString = tuple[ 5 ];
-
- // promise.progress = list.add
- // promise.done = list.add
- // promise.fail = list.add
- promise[ tuple[ 1 ] ] = list.add;
-
- // Handle state
- if ( stateString ) {
- list.add(
- function() {
-
- // state = "resolved" (i.e., fulfilled)
- // state = "rejected"
- state = stateString;
- },
-
- // rejected_callbacks.disable
- // fulfilled_callbacks.disable
- tuples[ 3 - i ][ 2 ].disable,
-
- // rejected_handlers.disable
- // fulfilled_handlers.disable
- tuples[ 3 - i ][ 3 ].disable,
-
- // progress_callbacks.lock
- tuples[ 0 ][ 2 ].lock,
-
- // progress_handlers.lock
- tuples[ 0 ][ 3 ].lock
- );
- }
-
- // progress_handlers.fire
- // fulfilled_handlers.fire
- // rejected_handlers.fire
- list.add( tuple[ 3 ].fire );
-
- // deferred.notify = function() { deferred.notifyWith(...) }
- // deferred.resolve = function() { deferred.resolveWith(...) }
- // deferred.reject = function() { deferred.rejectWith(...) }
- deferred[ tuple[ 0 ] ] = function() {
- deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments );
- return this;
- };
-
- // deferred.notifyWith = list.fireWith
- // deferred.resolveWith = list.fireWith
- // deferred.rejectWith = list.fireWith
- deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
- } );
-
- // Make the deferred a promise
- promise.promise( deferred );
-
- // Call given func if any
- if ( func ) {
- func.call( deferred, deferred );
- }
-
- // All done!
- return deferred;
- },
-
- // Deferred helper
- when: function( singleValue ) {
- var
-
- // count of uncompleted subordinates
- remaining = arguments.length,
-
- // count of unprocessed arguments
- i = remaining,
-
- // subordinate fulfillment data
- resolveContexts = Array( i ),
- resolveValues = slice.call( arguments ),
-
- // the master Deferred
- master = jQuery.Deferred(),
-
- // subordinate callback factory
- updateFunc = function( i ) {
- return function( value ) {
- resolveContexts[ i ] = this;
- resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
- if ( !( --remaining ) ) {
- master.resolveWith( resolveContexts, resolveValues );
- }
- };
- };
-
- // Single- and empty arguments are adopted like Promise.resolve
- if ( remaining <= 1 ) {
- adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject,
- !remaining );
-
- // Use .then() to unwrap secondary thenables (cf. gh-3000)
- if ( master.state() === "pending" ||
- isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {
-
- return master.then();
- }
- }
-
- // Multiple arguments are aggregated like Promise.all array elements
- while ( i-- ) {
- adoptValue( resolveValues[ i ], updateFunc( i ), master.reject );
- }
-
- return master.promise();
- }
-} );
-
-
-// These usually indicate a programmer mistake during development,
-// warn about them ASAP rather than swallowing them by default.
-var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
-
-jQuery.Deferred.exceptionHook = function( error, stack ) {
-
- // Support: IE 8 - 9 only
- // Console exists when dev tools are open, which can happen at any time
- if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
- window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack );
- }
-};
-
-
-
-
-jQuery.readyException = function( error ) {
- window.setTimeout( function() {
- throw error;
- } );
-};
-
-
-
-
-// The deferred used on DOM ready
-var readyList = jQuery.Deferred();
-
-jQuery.fn.ready = function( fn ) {
-
- readyList
- .then( fn )
-
- // Wrap jQuery.readyException in a function so that the lookup
- // happens at the time of error handling instead of callback
- // registration.
- .catch( function( error ) {
- jQuery.readyException( error );
- } );
-
- return this;
-};
-
-jQuery.extend( {
-
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- // Handle when the DOM is ready
- ready: function( wait ) {
-
- // Abort if there are pending holds or we're already ready
- if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
- return;
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- // If there are functions bound, to execute
- readyList.resolveWith( document, [ jQuery ] );
- }
-} );
-
-jQuery.ready.then = readyList.then;
-
-// The ready event handler and self cleanup method
-function completed() {
- document.removeEventListener( "DOMContentLoaded", completed );
- window.removeEventListener( "load", completed );
- jQuery.ready();
-}
-
-// Catch cases where $(document).ready() is called
-// after the browser event has already occurred.
-// Support: IE <=9 - 10 only
-// Older IE sometimes signals "interactive" too soon
-if ( document.readyState === "complete" ||
- ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
-
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- window.setTimeout( jQuery.ready );
-
-} else {
-
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", completed );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", completed );
-}
-
-
-
-
-// Multifunctional method to get and set values of a collection
-// The value/s can optionally be executed if it's a function
-var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
- var i = 0,
- len = elems.length,
- bulk = key == null;
-
- // Sets many values
- if ( toType( key ) === "object" ) {
- chainable = true;
- for ( i in key ) {
- access( elems, fn, i, key[ i ], true, emptyGet, raw );
- }
-
- // Sets one value
- } else if ( value !== undefined ) {
- chainable = true;
-
- if ( !isFunction( value ) ) {
- raw = true;
- }
-
- if ( bulk ) {
-
- // Bulk operations run against the entire set
- if ( raw ) {
- fn.call( elems, value );
- fn = null;
-
- // ...except when executing function values
- } else {
- bulk = fn;
- fn = function( elem, _key, value ) {
- return bulk.call( jQuery( elem ), value );
- };
- }
- }
-
- if ( fn ) {
- for ( ; i < len; i++ ) {
- fn(
- elems[ i ], key, raw ?
- value :
- value.call( elems[ i ], i, fn( elems[ i ], key ) )
- );
- }
- }
- }
-
- if ( chainable ) {
- return elems;
- }
-
- // Gets
- if ( bulk ) {
- return fn.call( elems );
- }
-
- return len ? fn( elems[ 0 ], key ) : emptyGet;
-};
-
-
-// Matches dashed string for camelizing
-var rmsPrefix = /^-ms-/,
- rdashAlpha = /-([a-z])/g;
-
-// Used by camelCase as callback to replace()
-function fcamelCase( _all, letter ) {
- return letter.toUpperCase();
-}
-
-// Convert dashed to camelCase; used by the css and data modules
-// Support: IE <=9 - 11, Edge 12 - 15
-// Microsoft forgot to hump their vendor prefix (#9572)
-function camelCase( string ) {
- return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
-}
-var acceptData = function( owner ) {
-
- // Accepts only:
- // - Node
- // - Node.ELEMENT_NODE
- // - Node.DOCUMENT_NODE
- // - Object
- // - Any
- return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
-};
-
-
-
-
-function Data() {
- this.expando = jQuery.expando + Data.uid++;
-}
-
-Data.uid = 1;
-
-Data.prototype = {
-
- cache: function( owner ) {
-
- // Check if the owner object already has a cache
- var value = owner[ this.expando ];
-
- // If not, create one
- if ( !value ) {
- value = {};
-
- // We can accept data for non-element nodes in modern browsers,
- // but we should not, see #8335.
- // Always return an empty object.
- if ( acceptData( owner ) ) {
-
- // If it is a node unlikely to be stringify-ed or looped over
- // use plain assignment
- if ( owner.nodeType ) {
- owner[ this.expando ] = value;
-
- // Otherwise secure it in a non-enumerable property
- // configurable must be true to allow the property to be
- // deleted when data is removed
- } else {
- Object.defineProperty( owner, this.expando, {
- value: value,
- configurable: true
- } );
- }
- }
- }
-
- return value;
- },
- set: function( owner, data, value ) {
- var prop,
- cache = this.cache( owner );
-
- // Handle: [ owner, key, value ] args
- // Always use camelCase key (gh-2257)
- if ( typeof data === "string" ) {
- cache[ camelCase( data ) ] = value;
-
- // Handle: [ owner, { properties } ] args
- } else {
-
- // Copy the properties one-by-one to the cache object
- for ( prop in data ) {
- cache[ camelCase( prop ) ] = data[ prop ];
- }
- }
- return cache;
- },
- get: function( owner, key ) {
- return key === undefined ?
- this.cache( owner ) :
-
- // Always use camelCase key (gh-2257)
- owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ];
- },
- access: function( owner, key, value ) {
-
- // In cases where either:
- //
- // 1. No key was specified
- // 2. A string key was specified, but no value provided
- //
- // Take the "read" path and allow the get method to determine
- // which value to return, respectively either:
- //
- // 1. The entire cache object
- // 2. The data stored at the key
- //
- if ( key === undefined ||
- ( ( key && typeof key === "string" ) && value === undefined ) ) {
-
- return this.get( owner, key );
- }
-
- // When the key is not a string, or both a key and value
- // are specified, set or extend (existing objects) with either:
- //
- // 1. An object of properties
- // 2. A key and value
- //
- this.set( owner, key, value );
-
- // Since the "set" path can have two possible entry points
- // return the expected data based on which path was taken[*]
- return value !== undefined ? value : key;
- },
- remove: function( owner, key ) {
- var i,
- cache = owner[ this.expando ];
-
- if ( cache === undefined ) {
- return;
- }
-
- if ( key !== undefined ) {
-
- // Support array or space separated string of keys
- if ( Array.isArray( key ) ) {
-
- // If key is an array of keys...
- // We always set camelCase keys, so remove that.
- key = key.map( camelCase );
- } else {
- key = camelCase( key );
-
- // If a key with the spaces exists, use it.
- // Otherwise, create an array by matching non-whitespace
- key = key in cache ?
- [ key ] :
- ( key.match( rnothtmlwhite ) || [] );
- }
-
- i = key.length;
-
- while ( i-- ) {
- delete cache[ key[ i ] ];
- }
- }
-
- // Remove the expando if there's no more data
- if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
-
- // Support: Chrome <=35 - 45
- // Webkit & Blink performance suffers when deleting properties
- // from DOM nodes, so set to undefined instead
- // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
- if ( owner.nodeType ) {
- owner[ this.expando ] = undefined;
- } else {
- delete owner[ this.expando ];
- }
- }
- },
- hasData: function( owner ) {
- var cache = owner[ this.expando ];
- return cache !== undefined && !jQuery.isEmptyObject( cache );
- }
-};
-var dataPriv = new Data();
-
-var dataUser = new Data();
-
-
-
-// Implementation Summary
-//
-// 1. Enforce API surface and semantic compatibility with 1.9.x branch
-// 2. Improve the module's maintainability by reducing the storage
-// paths to a single mechanism.
-// 3. Use the same single mechanism to support "private" and "user" data.
-// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
-// 5. Avoid exposing implementation details on user objects (eg. expando properties)
-// 6. Provide a clear path for implementation upgrade to WeakMap in 2014
-
-var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- rmultiDash = /[A-Z]/g;
-
-function getData( data ) {
- if ( data === "true" ) {
- return true;
- }
-
- if ( data === "false" ) {
- return false;
- }
-
- if ( data === "null" ) {
- return null;
- }
-
- // Only convert to a number if it doesn't change the string
- if ( data === +data + "" ) {
- return +data;
- }
-
- if ( rbrace.test( data ) ) {
- return JSON.parse( data );
- }
-
- return data;
-}
-
-function dataAttr( elem, key, data ) {
- var name;
-
- // If nothing was found internally, try to fetch any
- // data from the HTML5 data-* attribute
- if ( data === undefined && elem.nodeType === 1 ) {
- name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
- data = elem.getAttribute( name );
-
- if ( typeof data === "string" ) {
- try {
- data = getData( data );
- } catch ( e ) {}
-
- // Make sure we set the data so it isn't changed later
- dataUser.set( elem, key, data );
- } else {
- data = undefined;
- }
- }
- return data;
-}
-
-jQuery.extend( {
- hasData: function( elem ) {
- return dataUser.hasData( elem ) || dataPriv.hasData( elem );
- },
-
- data: function( elem, name, data ) {
- return dataUser.access( elem, name, data );
- },
-
- removeData: function( elem, name ) {
- dataUser.remove( elem, name );
- },
-
- // TODO: Now that all calls to _data and _removeData have been replaced
- // with direct calls to dataPriv methods, these can be deprecated.
- _data: function( elem, name, data ) {
- return dataPriv.access( elem, name, data );
- },
-
- _removeData: function( elem, name ) {
- dataPriv.remove( elem, name );
- }
-} );
-
-jQuery.fn.extend( {
- data: function( key, value ) {
- var i, name, data,
- elem = this[ 0 ],
- attrs = elem && elem.attributes;
-
- // Gets all values
- if ( key === undefined ) {
- if ( this.length ) {
- data = dataUser.get( elem );
-
- if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
- i = attrs.length;
- while ( i-- ) {
-
- // Support: IE 11 only
- // The attrs elements can be null (#14894)
- if ( attrs[ i ] ) {
- name = attrs[ i ].name;
- if ( name.indexOf( "data-" ) === 0 ) {
- name = camelCase( name.slice( 5 ) );
- dataAttr( elem, name, data[ name ] );
- }
- }
- }
- dataPriv.set( elem, "hasDataAttrs", true );
- }
- }
-
- return data;
- }
-
- // Sets multiple values
- if ( typeof key === "object" ) {
- return this.each( function() {
- dataUser.set( this, key );
- } );
- }
-
- return access( this, function( value ) {
- var data;
-
- // The calling jQuery object (element matches) is not empty
- // (and therefore has an element appears at this[ 0 ]) and the
- // `value` parameter was not undefined. An empty jQuery object
- // will result in `undefined` for elem = this[ 0 ] which will
- // throw an exception if an attempt to read a data cache is made.
- if ( elem && value === undefined ) {
-
- // Attempt to get data from the cache
- // The key will always be camelCased in Data
- data = dataUser.get( elem, key );
- if ( data !== undefined ) {
- return data;
- }
-
- // Attempt to "discover" the data in
- // HTML5 custom data-* attrs
- data = dataAttr( elem, key );
- if ( data !== undefined ) {
- return data;
- }
-
- // We tried really hard, but the data doesn't exist.
- return;
- }
-
- // Set the data...
- this.each( function() {
-
- // We always store the camelCased key
- dataUser.set( this, key, value );
- } );
- }, null, value, arguments.length > 1, null, true );
- },
-
- removeData: function( key ) {
- return this.each( function() {
- dataUser.remove( this, key );
- } );
- }
-} );
-
-
-jQuery.extend( {
- queue: function( elem, type, data ) {
- var queue;
-
- if ( elem ) {
- type = ( type || "fx" ) + "queue";
- queue = dataPriv.get( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( data ) {
- if ( !queue || Array.isArray( data ) ) {
- queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
- } else {
- queue.push( data );
- }
- }
- return queue || [];
- }
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- startLength = queue.length,
- fn = queue.shift(),
- hooks = jQuery._queueHooks( elem, type ),
- next = function() {
- jQuery.dequeue( elem, type );
- };
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- startLength--;
- }
-
- if ( fn ) {
-
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift( "inprogress" );
- }
-
- // Clear up the last queue stop function
- delete hooks.stop;
- fn.call( elem, next, hooks );
- }
-
- if ( !startLength && hooks ) {
- hooks.empty.fire();
- }
- },
-
- // Not public - generate a queueHooks object, or return the current one
- _queueHooks: function( elem, type ) {
- var key = type + "queueHooks";
- return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
- empty: jQuery.Callbacks( "once memory" ).add( function() {
- dataPriv.remove( elem, [ type + "queue", key ] );
- } )
- } );
- }
-} );
-
-jQuery.fn.extend( {
- queue: function( type, data ) {
- var setter = 2;
-
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- setter--;
- }
-
- if ( arguments.length < setter ) {
- return jQuery.queue( this[ 0 ], type );
- }
-
- return data === undefined ?
- this :
- this.each( function() {
- var queue = jQuery.queue( this, type, data );
-
- // Ensure a hooks for this queue
- jQuery._queueHooks( this, type );
-
- if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- } );
- },
- dequeue: function( type ) {
- return this.each( function() {
- jQuery.dequeue( this, type );
- } );
- },
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- },
-
- // Get a promise resolved when queues of a certain type
- // are emptied (fx is the type by default)
- promise: function( type, obj ) {
- var tmp,
- count = 1,
- defer = jQuery.Deferred(),
- elements = this,
- i = this.length,
- resolve = function() {
- if ( !( --count ) ) {
- defer.resolveWith( elements, [ elements ] );
- }
- };
-
- if ( typeof type !== "string" ) {
- obj = type;
- type = undefined;
- }
- type = type || "fx";
-
- while ( i-- ) {
- tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
- if ( tmp && tmp.empty ) {
- count++;
- tmp.empty.add( resolve );
- }
- }
- resolve();
- return defer.promise( obj );
- }
-} );
-var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
-
-var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
-
-
-var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
-
-var documentElement = document.documentElement;
-
-
-
- var isAttached = function( elem ) {
- return jQuery.contains( elem.ownerDocument, elem );
- },
- composed = { composed: true };
-
- // Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only
- // Check attachment across shadow DOM boundaries when possible (gh-3504)
- // Support: iOS 10.0-10.2 only
- // Early iOS 10 versions support `attachShadow` but not `getRootNode`,
- // leading to errors. We need to check for `getRootNode`.
- if ( documentElement.getRootNode ) {
- isAttached = function( elem ) {
- return jQuery.contains( elem.ownerDocument, elem ) ||
- elem.getRootNode( composed ) === elem.ownerDocument;
- };
- }
-var isHiddenWithinTree = function( elem, el ) {
-
- // isHiddenWithinTree might be called from jQuery#filter function;
- // in that case, element will be second argument
- elem = el || elem;
-
- // Inline style trumps all
- return elem.style.display === "none" ||
- elem.style.display === "" &&
-
- // Otherwise, check computed style
- // Support: Firefox <=43 - 45
- // Disconnected elements can have computed display: none, so first confirm that elem is
- // in the document.
- isAttached( elem ) &&
-
- jQuery.css( elem, "display" ) === "none";
- };
-
-
-
-function adjustCSS( elem, prop, valueParts, tween ) {
- var adjusted, scale,
- maxIterations = 20,
- currentValue = tween ?
- function() {
- return tween.cur();
- } :
- function() {
- return jQuery.css( elem, prop, "" );
- },
- initial = currentValue(),
- unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
-
- // Starting value computation is required for potential unit mismatches
- initialInUnit = elem.nodeType &&
- ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
- rcssNum.exec( jQuery.css( elem, prop ) );
-
- if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
-
- // Support: Firefox <=54
- // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)
- initial = initial / 2;
-
- // Trust units reported by jQuery.css
- unit = unit || initialInUnit[ 3 ];
-
- // Iteratively approximate from a nonzero starting point
- initialInUnit = +initial || 1;
-
- while ( maxIterations-- ) {
-
- // Evaluate and update our best guess (doubling guesses that zero out).
- // Finish if the scale equals or crosses 1 (making the old*new product non-positive).
- jQuery.style( elem, prop, initialInUnit + unit );
- if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {
- maxIterations = 0;
- }
- initialInUnit = initialInUnit / scale;
-
- }
-
- initialInUnit = initialInUnit * 2;
- jQuery.style( elem, prop, initialInUnit + unit );
-
- // Make sure we update the tween properties later on
- valueParts = valueParts || [];
- }
-
- if ( valueParts ) {
- initialInUnit = +initialInUnit || +initial || 0;
-
- // Apply relative offset (+=/-=) if specified
- adjusted = valueParts[ 1 ] ?
- initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
- +valueParts[ 2 ];
- if ( tween ) {
- tween.unit = unit;
- tween.start = initialInUnit;
- tween.end = adjusted;
- }
- }
- return adjusted;
-}
-
-
-var defaultDisplayMap = {};
-
-function getDefaultDisplay( elem ) {
- var temp,
- doc = elem.ownerDocument,
- nodeName = elem.nodeName,
- display = defaultDisplayMap[ nodeName ];
-
- if ( display ) {
- return display;
- }
-
- temp = doc.body.appendChild( doc.createElement( nodeName ) );
- display = jQuery.css( temp, "display" );
-
- temp.parentNode.removeChild( temp );
-
- if ( display === "none" ) {
- display = "block";
- }
- defaultDisplayMap[ nodeName ] = display;
-
- return display;
-}
-
-function showHide( elements, show ) {
- var display, elem,
- values = [],
- index = 0,
- length = elements.length;
-
- // Determine new display value for elements that need to change
- for ( ; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
-
- display = elem.style.display;
- if ( show ) {
-
- // Since we force visibility upon cascade-hidden elements, an immediate (and slow)
- // check is required in this first loop unless we have a nonempty display value (either
- // inline or about-to-be-restored)
- if ( display === "none" ) {
- values[ index ] = dataPriv.get( elem, "display" ) || null;
- if ( !values[ index ] ) {
- elem.style.display = "";
- }
- }
- if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) {
- values[ index ] = getDefaultDisplay( elem );
- }
- } else {
- if ( display !== "none" ) {
- values[ index ] = "none";
-
- // Remember what we're overwriting
- dataPriv.set( elem, "display", display );
- }
- }
- }
-
- // Set the display of the elements in a second loop to avoid constant reflow
- for ( index = 0; index < length; index++ ) {
- if ( values[ index ] != null ) {
- elements[ index ].style.display = values[ index ];
- }
- }
-
- return elements;
-}
-
-jQuery.fn.extend( {
- show: function() {
- return showHide( this, true );
- },
- hide: function() {
- return showHide( this );
- },
- toggle: function( state ) {
- if ( typeof state === "boolean" ) {
- return state ? this.show() : this.hide();
- }
-
- return this.each( function() {
- if ( isHiddenWithinTree( this ) ) {
- jQuery( this ).show();
- } else {
- jQuery( this ).hide();
- }
- } );
- }
-} );
-var rcheckableType = ( /^(?:checkbox|radio)$/i );
-
-var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i );
-
-var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i );
-
-
-
-( function() {
- var fragment = document.createDocumentFragment(),
- div = fragment.appendChild( document.createElement( "div" ) ),
- input = document.createElement( "input" );
-
- // Support: Android 4.0 - 4.3 only
- // Check state lost if the name is set (#11217)
- // Support: Windows Web Apps (WWA)
- // `name` and `type` must use .setAttribute for WWA (#14901)
- input.setAttribute( "type", "radio" );
- input.setAttribute( "checked", "checked" );
- input.setAttribute( "name", "t" );
-
- div.appendChild( input );
-
- // Support: Android <=4.1 only
- // Older WebKit doesn't clone checked state correctly in fragments
- support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
- // Support: IE <=11 only
- // Make sure textarea (and checkbox) defaultValue is properly cloned
- div.innerHTML = "";
- support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
-
- // Support: IE <=9 only
- // IE <=9 replaces tags with their contents when inserted outside of
- // the select element.
- div.innerHTML = " ";
- support.option = !!div.lastChild;
-} )();
-
-
-// We have to close these tags to support XHTML (#13200)
-var wrapMap = {
-
- // XHTML parsers do not magically insert elements in the
- // same way that tag soup parsers do. So we cannot shorten
- // this by omitting or other required elements.
- thead: [ 1, "" ],
- col: [ 2, "" ],
- tr: [ 2, "" ],
- td: [ 3, "" ],
-
- _default: [ 0, "", "" ]
-};
-
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-// Support: IE <=9 only
-if ( !support.option ) {
- wrapMap.optgroup = wrapMap.option = [ 1, "", " " ];
-}
-
-
-function getAll( context, tag ) {
-
- // Support: IE <=9 - 11 only
- // Use typeof to avoid zero-argument method invocation on host objects (#15151)
- var ret;
-
- if ( typeof context.getElementsByTagName !== "undefined" ) {
- ret = context.getElementsByTagName( tag || "*" );
-
- } else if ( typeof context.querySelectorAll !== "undefined" ) {
- ret = context.querySelectorAll( tag || "*" );
-
- } else {
- ret = [];
- }
-
- if ( tag === undefined || tag && nodeName( context, tag ) ) {
- return jQuery.merge( [ context ], ret );
- }
-
- return ret;
-}
-
-
-// Mark scripts as having already been evaluated
-function setGlobalEval( elems, refElements ) {
- var i = 0,
- l = elems.length;
-
- for ( ; i < l; i++ ) {
- dataPriv.set(
- elems[ i ],
- "globalEval",
- !refElements || dataPriv.get( refElements[ i ], "globalEval" )
- );
- }
-}
-
-
-var rhtml = /<|?\w+;/;
-
-function buildFragment( elems, context, scripts, selection, ignored ) {
- var elem, tmp, tag, wrap, attached, j,
- fragment = context.createDocumentFragment(),
- nodes = [],
- i = 0,
- l = elems.length;
-
- for ( ; i < l; i++ ) {
- elem = elems[ i ];
-
- if ( elem || elem === 0 ) {
-
- // Add nodes directly
- if ( toType( elem ) === "object" ) {
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
-
- // Convert non-html into a text node
- } else if ( !rhtml.test( elem ) ) {
- nodes.push( context.createTextNode( elem ) );
-
- // Convert html into DOM nodes
- } else {
- tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
-
- // Deserialize a standard representation
- tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
- wrap = wrapMap[ tag ] || wrapMap._default;
- tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
-
- // Descend through wrappers to the right content
- j = wrap[ 0 ];
- while ( j-- ) {
- tmp = tmp.lastChild;
- }
-
- // Support: Android <=4.0 only, PhantomJS 1 only
- // push.apply(_, arraylike) throws on ancient WebKit
- jQuery.merge( nodes, tmp.childNodes );
-
- // Remember the top-level container
- tmp = fragment.firstChild;
-
- // Ensure the created nodes are orphaned (#12392)
- tmp.textContent = "";
- }
- }
- }
-
- // Remove wrapper from fragment
- fragment.textContent = "";
-
- i = 0;
- while ( ( elem = nodes[ i++ ] ) ) {
-
- // Skip elements already in the context collection (trac-4087)
- if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
- if ( ignored ) {
- ignored.push( elem );
- }
- continue;
- }
-
- attached = isAttached( elem );
-
- // Append to fragment
- tmp = getAll( fragment.appendChild( elem ), "script" );
-
- // Preserve script evaluation history
- if ( attached ) {
- setGlobalEval( tmp );
- }
-
- // Capture executables
- if ( scripts ) {
- j = 0;
- while ( ( elem = tmp[ j++ ] ) ) {
- if ( rscriptType.test( elem.type || "" ) ) {
- scripts.push( elem );
- }
- }
- }
- }
-
- return fragment;
-}
-
-
-var
- rkeyEvent = /^key/,
- rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
- rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
-
-function returnTrue() {
- return true;
-}
-
-function returnFalse() {
- return false;
-}
-
-// Support: IE <=9 - 11+
-// focus() and blur() are asynchronous, except when they are no-op.
-// So expect focus to be synchronous when the element is already active,
-// and blur to be synchronous when the element is not already active.
-// (focus and blur are always synchronous in other supported browsers,
-// this just defines when we can count on it).
-function expectSync( elem, type ) {
- return ( elem === safeActiveElement() ) === ( type === "focus" );
-}
-
-// Support: IE <=9 only
-// Accessing document.activeElement can throw unexpectedly
-// https://bugs.jquery.com/ticket/13393
-function safeActiveElement() {
- try {
- return document.activeElement;
- } catch ( err ) { }
-}
-
-function on( elem, types, selector, data, fn, one ) {
- var origFn, type;
-
- // Types can be a map of types/handlers
- if ( typeof types === "object" ) {
-
- // ( types-Object, selector, data )
- if ( typeof selector !== "string" ) {
-
- // ( types-Object, data )
- data = data || selector;
- selector = undefined;
- }
- for ( type in types ) {
- on( elem, type, selector, data, types[ type ], one );
- }
- return elem;
- }
-
- if ( data == null && fn == null ) {
-
- // ( types, fn )
- fn = selector;
- data = selector = undefined;
- } else if ( fn == null ) {
- if ( typeof selector === "string" ) {
-
- // ( types, selector, fn )
- fn = data;
- data = undefined;
- } else {
-
- // ( types, data, fn )
- fn = data;
- data = selector;
- selector = undefined;
- }
- }
- if ( fn === false ) {
- fn = returnFalse;
- } else if ( !fn ) {
- return elem;
- }
-
- if ( one === 1 ) {
- origFn = fn;
- fn = function( event ) {
-
- // Can use an empty set, since event contains the info
- jQuery().off( event );
- return origFn.apply( this, arguments );
- };
-
- // Use same guid so caller can remove using origFn
- fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
- }
- return elem.each( function() {
- jQuery.event.add( this, types, fn, data, selector );
- } );
-}
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
- global: {},
-
- add: function( elem, types, handler, data, selector ) {
-
- var handleObjIn, eventHandle, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = dataPriv.get( elem );
-
- // Only attach events to objects that accept data
- if ( !acceptData( elem ) ) {
- return;
- }
-
- // Caller can pass in an object of custom data in lieu of the handler
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- selector = handleObjIn.selector;
- }
-
- // Ensure that invalid selectors throw exceptions at attach time
- // Evaluate against documentElement in case elem is a non-element node (e.g., document)
- if ( selector ) {
- jQuery.find.matchesSelector( documentElement, selector );
- }
-
- // Make sure that the handler has a unique ID, used to find/remove it later
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure and main handler, if this is the first
- if ( !( events = elemData.events ) ) {
- events = elemData.events = Object.create( null );
- }
- if ( !( eventHandle = elemData.handle ) ) {
- eventHandle = elemData.handle = function( e ) {
-
- // Discard the second event of a jQuery.event.trigger() and
- // when an event is called after a page has unloaded
- return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
- jQuery.event.dispatch.apply( elem, arguments ) : undefined;
- };
- }
-
- // Handle multiple events separated by a space
- types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // There *must* be a type, no attaching namespace-only handlers
- if ( !type ) {
- continue;
- }
-
- // If event changes its type, use the special event handlers for the changed type
- special = jQuery.event.special[ type ] || {};
-
- // If selector defined, determine special event api type, otherwise given type
- type = ( selector ? special.delegateType : special.bindType ) || type;
-
- // Update special based on newly reset type
- special = jQuery.event.special[ type ] || {};
-
- // handleObj is passed to all event handlers
- handleObj = jQuery.extend( {
- type: type,
- origType: origType,
- data: data,
- handler: handler,
- guid: handler.guid,
- selector: selector,
- needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
- namespace: namespaces.join( "." )
- }, handleObjIn );
-
- // Init the event handler queue if we're the first
- if ( !( handlers = events[ type ] ) ) {
- handlers = events[ type ] = [];
- handlers.delegateCount = 0;
-
- // Only use addEventListener if the special events handler returns false
- if ( !special.setup ||
- special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add to the element's handler list, delegates in front
- if ( selector ) {
- handlers.splice( handlers.delegateCount++, 0, handleObj );
- } else {
- handlers.push( handleObj );
- }
-
- // Keep track of which events have ever been used, for event optimization
- jQuery.event.global[ type ] = true;
- }
-
- },
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, selector, mappedTypes ) {
-
- var j, origCount, tmp,
- events, t, handleObj,
- special, handlers, type, namespaces, origType,
- elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
-
- if ( !elemData || !( events = elemData.events ) ) {
- return;
- }
-
- // Once for each type.namespace in types; type may be omitted
- types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[ t ] ) || [];
- type = origType = tmp[ 1 ];
- namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
-
- // Unbind all events (on this namespace, if provided) for the element
- if ( !type ) {
- for ( type in events ) {
- jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
- }
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
- type = ( selector ? special.delegateType : special.bindType ) || type;
- handlers = events[ type ] || [];
- tmp = tmp[ 2 ] &&
- new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
-
- // Remove matching events
- origCount = j = handlers.length;
- while ( j-- ) {
- handleObj = handlers[ j ];
-
- if ( ( mappedTypes || origType === handleObj.origType ) &&
- ( !handler || handler.guid === handleObj.guid ) &&
- ( !tmp || tmp.test( handleObj.namespace ) ) &&
- ( !selector || selector === handleObj.selector ||
- selector === "**" && handleObj.selector ) ) {
- handlers.splice( j, 1 );
-
- if ( handleObj.selector ) {
- handlers.delegateCount--;
- }
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
- }
-
- // Remove generic event handler if we removed something and no more handlers exist
- // (avoids potential for endless recursion during removal of special event handlers)
- if ( origCount && !handlers.length ) {
- if ( !special.teardown ||
- special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
-
- jQuery.removeEvent( elem, type, elemData.handle );
- }
-
- delete events[ type ];
- }
- }
-
- // Remove data and the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- dataPriv.remove( elem, "handle events" );
- }
- },
-
- dispatch: function( nativeEvent ) {
-
- var i, j, ret, matched, handleObj, handlerQueue,
- args = new Array( arguments.length ),
-
- // Make a writable jQuery.Event from the native event object
- event = jQuery.event.fix( nativeEvent ),
-
- handlers = (
- dataPriv.get( this, "events" ) || Object.create( null )
- )[ event.type ] || [],
- special = jQuery.event.special[ event.type ] || {};
-
- // Use the fix-ed jQuery.Event rather than the (read-only) native event
- args[ 0 ] = event;
-
- for ( i = 1; i < arguments.length; i++ ) {
- args[ i ] = arguments[ i ];
- }
-
- event.delegateTarget = this;
-
- // Call the preDispatch hook for the mapped type, and let it bail if desired
- if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
- return;
- }
-
- // Determine handlers
- handlerQueue = jQuery.event.handlers.call( this, event, handlers );
-
- // Run delegates first; they may want to stop propagation beneath us
- i = 0;
- while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
- event.currentTarget = matched.elem;
-
- j = 0;
- while ( ( handleObj = matched.handlers[ j++ ] ) &&
- !event.isImmediatePropagationStopped() ) {
-
- // If the event is namespaced, then each handler is only invoked if it is
- // specially universal or its namespaces are a superset of the event's.
- if ( !event.rnamespace || handleObj.namespace === false ||
- event.rnamespace.test( handleObj.namespace ) ) {
-
- event.handleObj = handleObj;
- event.data = handleObj.data;
-
- ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
- handleObj.handler ).apply( matched.elem, args );
-
- if ( ret !== undefined ) {
- if ( ( event.result = ret ) === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
- }
- }
- }
-
- // Call the postDispatch hook for the mapped type
- if ( special.postDispatch ) {
- special.postDispatch.call( this, event );
- }
-
- return event.result;
- },
-
- handlers: function( event, handlers ) {
- var i, handleObj, sel, matchedHandlers, matchedSelectors,
- handlerQueue = [],
- delegateCount = handlers.delegateCount,
- cur = event.target;
-
- // Find delegate handlers
- if ( delegateCount &&
-
- // Support: IE <=9
- // Black-hole SVG instance trees (trac-13180)
- cur.nodeType &&
-
- // Support: Firefox <=42
- // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
- // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
- // Support: IE 11 only
- // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
- !( event.type === "click" && event.button >= 1 ) ) {
-
- for ( ; cur !== this; cur = cur.parentNode || this ) {
-
- // Don't check non-elements (#13208)
- // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
- if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) {
- matchedHandlers = [];
- matchedSelectors = {};
- for ( i = 0; i < delegateCount; i++ ) {
- handleObj = handlers[ i ];
-
- // Don't conflict with Object.prototype properties (#13203)
- sel = handleObj.selector + " ";
-
- if ( matchedSelectors[ sel ] === undefined ) {
- matchedSelectors[ sel ] = handleObj.needsContext ?
- jQuery( sel, this ).index( cur ) > -1 :
- jQuery.find( sel, this, null, [ cur ] ).length;
- }
- if ( matchedSelectors[ sel ] ) {
- matchedHandlers.push( handleObj );
- }
- }
- if ( matchedHandlers.length ) {
- handlerQueue.push( { elem: cur, handlers: matchedHandlers } );
- }
- }
- }
- }
-
- // Add the remaining (directly-bound) handlers
- cur = this;
- if ( delegateCount < handlers.length ) {
- handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );
- }
-
- return handlerQueue;
- },
-
- addProp: function( name, hook ) {
- Object.defineProperty( jQuery.Event.prototype, name, {
- enumerable: true,
- configurable: true,
-
- get: isFunction( hook ) ?
- function() {
- if ( this.originalEvent ) {
- return hook( this.originalEvent );
- }
- } :
- function() {
- if ( this.originalEvent ) {
- return this.originalEvent[ name ];
- }
- },
-
- set: function( value ) {
- Object.defineProperty( this, name, {
- enumerable: true,
- configurable: true,
- writable: true,
- value: value
- } );
- }
- } );
- },
-
- fix: function( originalEvent ) {
- return originalEvent[ jQuery.expando ] ?
- originalEvent :
- new jQuery.Event( originalEvent );
- },
-
- special: {
- load: {
-
- // Prevent triggered image.load events from bubbling to window.load
- noBubble: true
- },
- click: {
-
- // Utilize native event to ensure correct state for checkable inputs
- setup: function( data ) {
-
- // For mutual compressibility with _default, replace `this` access with a local var.
- // `|| data` is dead code meant only to preserve the variable through minification.
- var el = this || data;
-
- // Claim the first handler
- if ( rcheckableType.test( el.type ) &&
- el.click && nodeName( el, "input" ) ) {
-
- // dataPriv.set( el, "click", ... )
- leverageNative( el, "click", returnTrue );
- }
-
- // Return false to allow normal processing in the caller
- return false;
- },
- trigger: function( data ) {
-
- // For mutual compressibility with _default, replace `this` access with a local var.
- // `|| data` is dead code meant only to preserve the variable through minification.
- var el = this || data;
-
- // Force setup before triggering a click
- if ( rcheckableType.test( el.type ) &&
- el.click && nodeName( el, "input" ) ) {
-
- leverageNative( el, "click" );
- }
-
- // Return non-false to allow normal event-path propagation
- return true;
- },
-
- // For cross-browser consistency, suppress native .click() on links
- // Also prevent it if we're currently inside a leveraged native-event stack
- _default: function( event ) {
- var target = event.target;
- return rcheckableType.test( target.type ) &&
- target.click && nodeName( target, "input" ) &&
- dataPriv.get( target, "click" ) ||
- nodeName( target, "a" );
- }
- },
-
- beforeunload: {
- postDispatch: function( event ) {
-
- // Support: Firefox 20+
- // Firefox doesn't alert if the returnValue field is not set.
- if ( event.result !== undefined && event.originalEvent ) {
- event.originalEvent.returnValue = event.result;
- }
- }
- }
- }
-};
-
-// Ensure the presence of an event listener that handles manually-triggered
-// synthetic events by interrupting progress until reinvoked in response to
-// *native* events that it fires directly, ensuring that state changes have
-// already occurred before other listeners are invoked.
-function leverageNative( el, type, expectSync ) {
-
- // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
- if ( !expectSync ) {
- if ( dataPriv.get( el, type ) === undefined ) {
- jQuery.event.add( el, type, returnTrue );
- }
- return;
- }
-
- // Register the controller as a special universal handler for all event namespaces
- dataPriv.set( el, type, false );
- jQuery.event.add( el, type, {
- namespace: false,
- handler: function( event ) {
- var notAsync, result,
- saved = dataPriv.get( this, type );
-
- if ( ( event.isTrigger & 1 ) && this[ type ] ) {
-
- // Interrupt processing of the outer synthetic .trigger()ed event
- // Saved data should be false in such cases, but might be a leftover capture object
- // from an async native handler (gh-4350)
- if ( !saved.length ) {
-
- // Store arguments for use when handling the inner native event
- // There will always be at least one argument (an event object), so this array
- // will not be confused with a leftover capture object.
- saved = slice.call( arguments );
- dataPriv.set( this, type, saved );
-
- // Trigger the native event and capture its result
- // Support: IE <=9 - 11+
- // focus() and blur() are asynchronous
- notAsync = expectSync( this, type );
- this[ type ]();
- result = dataPriv.get( this, type );
- if ( saved !== result || notAsync ) {
- dataPriv.set( this, type, false );
- } else {
- result = {};
- }
- if ( saved !== result ) {
-
- // Cancel the outer synthetic event
- event.stopImmediatePropagation();
- event.preventDefault();
- return result.value;
- }
-
- // If this is an inner synthetic event for an event with a bubbling surrogate
- // (focus or blur), assume that the surrogate already propagated from triggering the
- // native event and prevent that from happening again here.
- // This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the
- // bubbling surrogate propagates *after* the non-bubbling base), but that seems
- // less bad than duplication.
- } else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) {
- event.stopPropagation();
- }
-
- // If this is a native event triggered above, everything is now in order
- // Fire an inner synthetic event with the original arguments
- } else if ( saved.length ) {
-
- // ...and capture the result
- dataPriv.set( this, type, {
- value: jQuery.event.trigger(
-
- // Support: IE <=9 - 11+
- // Extend with the prototype to reset the above stopImmediatePropagation()
- jQuery.extend( saved[ 0 ], jQuery.Event.prototype ),
- saved.slice( 1 ),
- this
- )
- } );
-
- // Abort handling of the native event
- event.stopImmediatePropagation();
- }
- }
- } );
-}
-
-jQuery.removeEvent = function( elem, type, handle ) {
-
- // This "if" is needed for plain objects
- if ( elem.removeEventListener ) {
- elem.removeEventListener( type, handle );
- }
-};
-
-jQuery.Event = function( src, props ) {
-
- // Allow instantiation without the 'new' keyword
- if ( !( this instanceof jQuery.Event ) ) {
- return new jQuery.Event( src, props );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
-
- // Events bubbling up the document may have been marked as prevented
- // by a handler lower down the tree; reflect the correct value.
- this.isDefaultPrevented = src.defaultPrevented ||
- src.defaultPrevented === undefined &&
-
- // Support: Android <=2.3 only
- src.returnValue === false ?
- returnTrue :
- returnFalse;
-
- // Create target properties
- // Support: Safari <=6 - 7 only
- // Target should not be a text node (#504, #13143)
- this.target = ( src.target && src.target.nodeType === 3 ) ?
- src.target.parentNode :
- src.target;
-
- this.currentTarget = src.currentTarget;
- this.relatedTarget = src.relatedTarget;
-
- // Event type
- } else {
- this.type = src;
- }
-
- // Put explicitly provided properties onto the event object
- if ( props ) {
- jQuery.extend( this, props );
- }
-
- // Create a timestamp if incoming event doesn't have one
- this.timeStamp = src && src.timeStamp || Date.now();
-
- // Mark it as fixed
- this[ jQuery.expando ] = true;
-};
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- constructor: jQuery.Event,
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse,
- isSimulated: false,
-
- preventDefault: function() {
- var e = this.originalEvent;
-
- this.isDefaultPrevented = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.preventDefault();
- }
- },
- stopPropagation: function() {
- var e = this.originalEvent;
-
- this.isPropagationStopped = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.stopPropagation();
- }
- },
- stopImmediatePropagation: function() {
- var e = this.originalEvent;
-
- this.isImmediatePropagationStopped = returnTrue;
-
- if ( e && !this.isSimulated ) {
- e.stopImmediatePropagation();
- }
-
- this.stopPropagation();
- }
-};
-
-// Includes all common event props including KeyEvent and MouseEvent specific props
-jQuery.each( {
- altKey: true,
- bubbles: true,
- cancelable: true,
- changedTouches: true,
- ctrlKey: true,
- detail: true,
- eventPhase: true,
- metaKey: true,
- pageX: true,
- pageY: true,
- shiftKey: true,
- view: true,
- "char": true,
- code: true,
- charCode: true,
- key: true,
- keyCode: true,
- button: true,
- buttons: true,
- clientX: true,
- clientY: true,
- offsetX: true,
- offsetY: true,
- pointerId: true,
- pointerType: true,
- screenX: true,
- screenY: true,
- targetTouches: true,
- toElement: true,
- touches: true,
-
- which: function( event ) {
- var button = event.button;
-
- // Add which for key events
- if ( event.which == null && rkeyEvent.test( event.type ) ) {
- return event.charCode != null ? event.charCode : event.keyCode;
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {
- if ( button & 1 ) {
- return 1;
- }
-
- if ( button & 2 ) {
- return 3;
- }
-
- if ( button & 4 ) {
- return 2;
- }
-
- return 0;
- }
-
- return event.which;
- }
-}, jQuery.event.addProp );
-
-jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) {
- jQuery.event.special[ type ] = {
-
- // Utilize native event if possible so blur/focus sequence is correct
- setup: function() {
-
- // Claim the first handler
- // dataPriv.set( this, "focus", ... )
- // dataPriv.set( this, "blur", ... )
- leverageNative( this, type, expectSync );
-
- // Return false to allow normal processing in the caller
- return false;
- },
- trigger: function() {
-
- // Force setup before trigger
- leverageNative( this, type );
-
- // Return non-false to allow normal event-path propagation
- return true;
- },
-
- delegateType: delegateType
- };
-} );
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-// so that event delegation works in jQuery.
-// Do the same for pointerenter/pointerleave and pointerover/pointerout
-//
-// Support: Safari 7 only
-// Safari sends mouseenter too often; see:
-// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
-// for the description of the bug (it existed in older Chrome versions as well).
-jQuery.each( {
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- pointerenter: "pointerover",
- pointerleave: "pointerout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- delegateType: fix,
- bindType: fix,
-
- handle: function( event ) {
- var ret,
- target = this,
- related = event.relatedTarget,
- handleObj = event.handleObj;
-
- // For mouseenter/leave call the handler if related is outside the target.
- // NB: No relatedTarget if the mouse left/entered the browser window
- if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
- event.type = handleObj.origType;
- ret = handleObj.handler.apply( this, arguments );
- event.type = fix;
- }
- return ret;
- }
- };
-} );
-
-jQuery.fn.extend( {
-
- on: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn );
- },
- one: function( types, selector, data, fn ) {
- return on( this, types, selector, data, fn, 1 );
- },
- off: function( types, selector, fn ) {
- var handleObj, type;
- if ( types && types.preventDefault && types.handleObj ) {
-
- // ( event ) dispatched jQuery.Event
- handleObj = types.handleObj;
- jQuery( types.delegateTarget ).off(
- handleObj.namespace ?
- handleObj.origType + "." + handleObj.namespace :
- handleObj.origType,
- handleObj.selector,
- handleObj.handler
- );
- return this;
- }
- if ( typeof types === "object" ) {
-
- // ( types-object [, selector] )
- for ( type in types ) {
- this.off( type, selector, types[ type ] );
- }
- return this;
- }
- if ( selector === false || typeof selector === "function" ) {
-
- // ( types [, fn] )
- fn = selector;
- selector = undefined;
- }
- if ( fn === false ) {
- fn = returnFalse;
- }
- return this.each( function() {
- jQuery.event.remove( this, types, fn, selector );
- } );
- }
-} );
-
-
-var
-
- // Support: IE <=10 - 11, Edge 12 - 13 only
- // In IE/Edge using regex groups here causes severe slowdowns.
- // See https://connect.microsoft.com/IE/feedback/details/1736512/
- rnoInnerhtml = /
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
-
-
-
-
-
-
+
python-yubihsm
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
- »
-
- Index
-
-
+
+ Index
-
-
-
-
-
-
-
+
Index
@@ -166,7 +81,6 @@
Index
|
G
|
H
|
I
- |
K
|
L
|
M
|
N
@@ -184,19 +98,29 @@
Index
A
+ algorithm (yubihsm.objects.ObjectInfo attribute)
+
+ ALGORITHM_DISABLED (yubihsm.defs.ERROR attribute)
+
+ ALGORITHM_TOGGLE (yubihsm.defs.OPTION attribute)
+
ALL (yubihsm.defs.CAPABILITY attribute)
ASYMMETRIC_KEY (yubihsm.defs.OBJECT attribute)
+
+ AsymmetricAuth (class in yubihsm.core)
AsymmetricKey (class in yubihsm.objects)
@@ -216,6 +148,12 @@ A
AUDIT (class in yubihsm.defs)
+ authenticate() (yubihsm.core.AsymmetricAuth method)
+
+
AUTHENTICATE_SESSION (yubihsm.defs.COMMAND attribute)
AUTHENTICATION_FAILED (yubihsm.defs.ERROR attribute)
@@ -233,14 +171,6 @@ B
@@ -249,8 +179,12 @@ C
-
+
ECHO (yubihsm.defs.COMMAND attribute)
+
+ ENCRYPT_CBC (yubihsm.defs.CAPABILITY attribute)
+
+
+ encrypt_cbc() (yubihsm.objects.SymmetricKey method)
+
+ ENCRYPT_ECB (yubihsm.defs.CAPABILITY attribute)
+
+
+ encrypt_ecb() (yubihsm.objects.SymmetricKey method)
+
+ entries (yubihsm.core.LogData attribute)
+
+ epk_hsm (yubihsm.core.AsymmetricAuth property)
ERROR (class in yubihsm.defs)
@@ -420,14 +424,16 @@ E
F
@@ -575,6 +599,8 @@ I
-K
-
-
L
@@ -643,10 +665,12 @@ L
LIST_OBJECTS (yubihsm.defs.COMMAND attribute)
list_objects() (yubihsm.core.AuthSession method)
-
- load_ed25519_private_key() (in module yubihsm.eddsa)
LOG_FULL (yubihsm.defs.ERROR attribute)
+
+ log_size (yubihsm.core.DeviceInfo attribute)
+
+ log_used (yubihsm.core.DeviceInfo attribute)
LogData (class in yubihsm.core)
@@ -663,12 +687,16 @@ M
- ObjectInfo (class in yubihsm.objects)
-
randomize_otp_aead() (yubihsm.objects.OtpAeadKey method)
+
+ receipt (yubihsm.core.AsymmetricAuth property)
RESET_DEVICE (yubihsm.defs.CAPABILITY attribute)
@@ -858,6 +902,8 @@ R
reset_device() (yubihsm.core.AuthSession method)
+
+ result (yubihsm.core.LogEntry attribute)
REWRAP_FROM_OTP_AEAD_KEY (yubihsm.defs.CAPABILITY attribute)
@@ -890,6 +936,8 @@ R
RSA_OAEP_SHA384 (yubihsm.defs.ALGORITHM attribute)
RSA_OAEP_SHA512 (yubihsm.defs.ALGORITHM attribute)
+
+ RSA_PKCS1_DECRYPT (yubihsm.defs.ALGORITHM attribute)
RSA_PKCS1_SHA1 (yubihsm.defs.ALGORITHM attribute)
@@ -913,19 +961,31 @@ R
S
@@ -1005,16 +1075,36 @@ S
T
-
+
@@ -1032,6 +1122,10 @@ U
@@ -1050,6 +1144,8 @@ V
@@ -1065,15 +1161,13 @@ W
(yubihsm.defs.COMMAND attribute)
- wrap_data() (yubihsm.objects.WrapKey method)
-
+ wrap_data() (yubihsm.objects.WrapKey method)
+
WRAP_KEY (yubihsm.defs.OBJECT attribute)
WrapKey (class in yubihsm.objects)
-
- wrapped() (yubihsm.defs.ORIGIN property)
WRONG_LENGTH (yubihsm.defs.ERROR attribute)
@@ -1083,6 +1177,8 @@ W
Y
+ yubihsm.defs
+
+
+
+ yubihsm.exceptions
+
+
+
yubihsm.objects
@@ -1156,46 +1266,30 @@ Y
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/index.html b/static/python-yubihsm/API_Documentation/index.html
index 0a41340af..18b115a00 100644
--- a/static/python-yubihsm/API_Documentation/index.html
+++ b/static/python-yubihsm/API_Documentation/index.html
@@ -1,218 +1,118 @@
-
-
-
-
-
-
- Welcome to python-yubihsm’s documentation! — python-yubihsm 2.1.0 documentation
-
-
-
-
-
+
-
-
+
+ Welcome to python-yubihsm’s documentation! — python-yubihsm 3.0.0.dev0 documentation
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
-
-
-
-
-
-
+
python-yubihsm
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
- »
-
- Welcome to python-yubihsm’s documentation!
-
-
+
+ Welcome to python-yubihsm’s documentation!
-
-
-
-
-
-
-
-
-
Welcome to python-yubihsm’s documentation!
+
+
+Welcome to python-yubihsm’s documentation!
-
-
+
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/objects.inv b/static/python-yubihsm/API_Documentation/objects.inv
index b325f87ba..9783c482f 100644
Binary files a/static/python-yubihsm/API_Documentation/objects.inv and b/static/python-yubihsm/API_Documentation/objects.inv differ
diff --git a/static/python-yubihsm/API_Documentation/py-modindex.html b/static/python-yubihsm/API_Documentation/py-modindex.html
index 2dd5be64a..21d1c45ca 100644
--- a/static/python-yubihsm/API_Documentation/py-modindex.html
+++ b/static/python-yubihsm/API_Documentation/py-modindex.html
@@ -1,43 +1,22 @@
-
-
-
-
- Python Module Index — python-yubihsm 2.1.0 documentation
-
-
-
-
-
-
-
-
+ Python Module Index — python-yubihsm 3.0.0.dev0 documentation
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
@@ -45,115 +24,53 @@
-
-
-
+
-
-
-
-
-
-
+
python-yubihsm
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
- »
-
- Python Module Index
-
-
+
+ Python Module Index
-
-
-
-
-
+
Python Module Index
@@ -174,17 +91,27 @@
Python Module Index
- yubihsm.core
+ yubihsm.backends
- yubihsm.defs
+ yubihsm.backends.http
+
+
+
+
+ yubihsm.backends.usb
+
+
+
+
+ yubihsm.core
- yubihsm.eddsa
+ yubihsm.defs
@@ -205,46 +132,30 @@ Python Module Index
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/rst/yubihsm.backends.html b/static/python-yubihsm/API_Documentation/rst/yubihsm.backends.html
new file mode 100644
index 000000000..5b0ecfa3b
--- /dev/null
+++ b/static/python-yubihsm/API_Documentation/rst/yubihsm.backends.html
@@ -0,0 +1,225 @@
+
+
+
+
+
+
+ yubihsm.backends package — python-yubihsm 3.0.0.dev0 documentation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ python-yubihsm
+
+
+
+
+
+
+
+ yubihsm.backends package
+
+
+
+
+
+
+
+
+
+yubihsm.backends package
+
+
+yubihsm.backends.http module
+
+
+class yubihsm.backends.http. HttpBackend ( url = 'http://localhost:12345' , timeout = None ) [source]
+Bases: YhsmBackend
+A backend for communicating with a YubiHSM connector over HTTP.
+
+
+close ( ) [source]
+Closes the connection to the YubiHSM.
+
+
+
+
+transceive ( msg ) [source]
+Send a verbatim message.
+
+
+
+
+
+
+yubihsm.backends.usb module
+
+
+class yubihsm.backends.usb. UsbBackend ( serial = None , timeout = None ) [source]
+Bases: YhsmBackend
+A backend for communicating with a YubiHSM directly over USB.
+
+
+close ( ) [source]
+Closes the connection to the YubiHSM.
+
+
+
+
+transceive ( msg ) [source]
+Send a verbatim message.
+
+
+
+
+
+
+Module contents
+
+
+class yubihsm.backends. YhsmBackend [source]
+Bases: ABC
+Provides low-level communication with a YubiHSM.
+
+
+abstract close ( ) [source]
+Closes the connection to the YubiHSM.
+
+Return type:
+None
+
+
+
+
+
+
+abstract transceive ( msg ) [source]
+Send a verbatim message.
+
+Return type:
+bytes
+
+
+
+
+
+
+
+
+yubihsm.backends. get_backend ( url = None ) [source]
+Returns a backend suitable for the given URL.
+
+Return type:
+YhsmBackend
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/rst/yubihsm.html b/static/python-yubihsm/API_Documentation/rst/yubihsm.html
index 1f6f51f0b..c8a2115c8 100644
--- a/static/python-yubihsm/API_Documentation/rst/yubihsm.html
+++ b/static/python-yubihsm/API_Documentation/rst/yubihsm.html
@@ -1,577 +1,1315 @@
-
-
-
-
-
-
- yubihsm package — python-yubihsm 2.1.0 documentation
-
+
-
-
-
-
-
-
+
+ yubihsm package — python-yubihsm 3.0.0.dev0 documentation
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
-
-
-
-
-
-
+
python-yubihsm
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
- »
-
- yubihsm package
-
-
+
+ yubihsm package
-
-
-
-
-
-
-
-
-
yubihsm package
-
-
-
Submodules
-
-
-
yubihsm.core module
+
+
+
+yubihsm.core module
Core classes for YubiHSM communication.
-
-class yubihsm.core.
AuthSession
( hsm , auth_key_id , key_enc , key_mac ) [source]
-Bases: object
+
+class yubihsm.core. AsymmetricAuth ( hsm , sid , context , receipt ) [source]
+Bases: object
+A negotiation of an authenticated Session with a YubiHSM.
+This class is used to begin the mutual authentication process
+for establishing an authenticated session with the YubiHSM,
+using asymmetric authentication. Typically you get an instance
+of this class by calling init_session_asymmetric()
.
+
+
+authenticate ( key_senc , key_smac , key_srmac ) [source]
+Constructs an authenticated session.
+
+Parameters:
+
+key_senc (bytes
) – S-ENC used for data confidentiality.
+key_smac (bytes
) – S-MAC used for data and protocol integrity.
+key_srmac (bytes
) – S-RMAC used for data and protocol integrity.
+
+
+Return type:
+AuthSession
+
+Returns:
+An authenticated session.
+
+
+
+
+
+
+property context : bytes
+The authentication context (EPK.OCE + EPK.SD).
+
+
+
+
+classmethod create_session ( hsm , auth_key_id , private_key , public_key ) [source]
+Constructs an authenticated session.
+
+Parameters:
+
+hsm (YubiHsm
) – The YubiHSM connection.
+auth_key_id (int
) – The ID of the Authentication key used to
+authenticate the session.
+private_key (EllipticCurvePrivateKey
) – Private key corresponding to the public
+authentication key object.
+public_key (EllipticCurvePublicKey
) – The device’s public key.
+
+
+Return type:
+AuthSession
+
+
+
+
+
+
+property epk_hsm : bytes
+The ephemeral public key of the YubiHSM.
+
+
+
+
+classmethod init_session ( hsm , auth_key_id , epk_oce ) [source]
+Initiates the mutual asymmetric session authentication process.
+
+Parameters:
+
+hsm (YubiHsm
) – The YubiHSM connection.
+auth_key_id (int
) – The ID of the Authentication key used to
+authenticate the session.
+epk_oce (bytes
) – The ephemeral public key of the OCE used
+for key agreement.
+
+
+Return type:
+AsymmetricAuth
+
+
+
+
+
+
+property receipt : bytes
+The receipt.
+
+
+
+
+
+
+class yubihsm.core. AuthSession ( hsm , sid , key_enc , key_mac , key_rmac , mac_chain ) [source]
+Bases: object
An authenticated secure session with a YubiHSM.
Typically you get an instance of this class by calling
-create_session()
or create_session_derived()
.
+create_session()
, create_session_derived()
,
+or create_session_asymmetric()
.
-
-close
( ) [source]
+
+close ( ) [source]
Close this session with the YubiHSM.
Once closed, this session object can no longer be used, unless re-connected.
+
+Return type:
+None
+
+
-
-get_command_audit
( ) [source]
+
+get_command_audit ( ) [source]
Get a mapping of all available commands and their audit settings.
-Returns
-Dictionary of COMMAND -> AUDIT pairs.
+Return type:
+Mapping
[COMMAND
, AUDIT
]
+
+Returns:
+Dictionary of COMMAND -> AUDIT pairs.
+
+
+
+
+
+
+get_enabled_algorithms ( ) [source]
+Get the algorithms available, and whether or not they are enabled.
+
+Return type:
+Mapping
[ALGORITHM
, bool
]
-Return type
-dict [COMMAND , AUDIT ]
+Returns:
+A mapping of algorithms, to whether or not they are enabled.
-
-get_force_audit
( ) [source]
+
+get_fips_mode ( ) [source]
+Get the current setting for FIPS compliant mode.
+YubiHSM2 FIPS only.
+
+Return type:
+bool
+
+Returns:
+True if in FIPS mode, False if not.
+
+
+
+
+
+
+get_force_audit ( ) [source]
Get the current setting for forced audit mode.
-Returns
-The AUDIT setting for FORCE_AUDIT.
+Return type:
+AUDIT
-Return type
-AUDIT
+Returns:
+The AUDIT setting for FORCE_AUDIT.
-
-get_log_entries
( previous_entry = None ) [source]
+
+get_log_entries ( previous_entry = None ) [source]
Get logs from the YubiHSM.
This returns a tuple of the number of unlogged boot events, the number
of unlogged authentication events, and the log entries from the YubiHSM.
The chain of entry digests will be validated, starting from the first
entry returned, or the one supplied as previous_entry.
-Parameters
-previous_entry (LogEntry ) – (optional) Entry to start verification
-against.
+Parameters:
+previous_entry (Optional
[LogEntry
] ) – Entry to start verification against.
-Returns
-A tuple consisting of the number of unlogged boot and
-authentication events, and the list of log entries.
+Return type:
+LogData
-Return type
-LogData
+Returns:
+A tuple consisting of the number of unlogged boot and authentication
+events, and the list of log entries.
-
-get_object
( object_id , object_type ) [source]
+
+get_object ( object_id , object_type ) [source]
Get a reference to a YhsmObject with the given id and type.
The object returned will be a subclass of YhsmObject corresponding to
the given object_type.
-Parameters
+Parameters:
-object_id (int ) – The ID of the object to retrieve.
-object_type (OBJECT ) – The type of the object to retrieve.
+object_id (int
) – The ID of the object to retrieve.
+object_type (OBJECT
) – The type of the object to retrieve.
-Returns
-An object reference.
+Return type:
+YhsmObject
-Return type
-YhsmObject
+Returns:
+An object reference.
-
-get_option
( option ) [source]
+
+get_option ( option ) [source]
Get the raw value of a YubiHSM device option.
-Parameters
-option (OPTION ) – The OPTION to get.
+Parameters:
+option (OPTION
) – The OPTION to get.
-Returns
-The currently set value for the given OPTION
+Return type:
+bytes
-Return type
-bytes
+Returns:
+The currently set value for the given OPTION
-
-get_pseudo_random
( length ) [source]
+
+get_pseudo_random ( length ) [source]
Get bytes from YubiHSM PRNG.
-Parameters
-length (int ) – The number of bytes to return.
+Parameters:
+length (int
) – The number of bytes to return.
-Returns
-The requested number of random bytes.
+Return type:
+bytes
-Return type
-bytes
+Returns:
+The requested number of random bytes.
-
-list_objects
( object_id = None , object_type = None , domains = None , capabilities = None , algorithm = None , label = None ) [source]
+
+list_objects ( object_id = None , object_type = None , domains = None , capabilities = None , algorithm = None , label = None ) [source]
List objects from the YubiHSM.
This returns a list of all objects currently stored on the YubiHSM,
which are accessible by this session. The arguments to this method can
be used to filter the results returned.
-Parameters
+Parameters:
-object_id (int ) – (optional) Return only objects with this ID.
-object_type (OBJECT ) – (optional) Return only objects of this type.
-domains (int ) – (optional) Return only objects belonging to one or
-more of these domains.
-capabilities (int ) – (optional) Return only objects with one or more
-of these capabilities.
-algorithm (ALGORITHM ) – (optional) Return only objects with this
-algorithm.
-label – (optional) Return only objects with this label.
+object_id (Optional
[int
] ) – Return only objects with this ID.
+object_type (Optional
[OBJECT
] ) – Return only objects of this type.
+domains (Optional
[int
] ) – Return only objects belonging to one or more of these domains.
+capabilities (Optional
[int
] ) – Return only objects with one or more of these capabilities.
+algorithm (Optional
[ALGORITHM
] ) – Return only objects with this algorithm.
+label (Optional
[str
] ) – Return only objects with this label.
-Returns
-A list of matched objects.
+Return type:
+Sequence
[YhsmObject
]
-Return type
-list
+Returns:
+A list of matched objects.
-
-put_option
( option , value ) [source]
+
+put_option ( option , value ) [source]
Set the raw value of a YubiHSM device option.
-Parameters
+Parameters:
-option (OPTION ) – The OPTION to set.
-value (bytes ) – The value to set the OPTION to.
+option (OPTION
) – The OPTION to set.
+value (bytes
) – The value to set the OPTION to.
+Return type:
+None
+
-
-reset_device
( ) [source]
+
+reset_device ( ) [source]
Performs a factory reset of the YubiHSM.
Resets and reboots the YubiHSM, deletes all Objects and restores the
default Authkey.
+
+Return type:
+None
+
+
-
-send_secure_cmd
( cmd , data = b'' ) [source]
+
+send_secure_cmd ( cmd , data = b'' ) [source]
Send a command over the encrypted session.
-Parameters
+Parameters:
-cmd (COMMAND ) – The command to send.
-data (bytes ) – The command payload to send.
+cmd (COMMAND
) – The command to send.
+data (bytes
) – The command payload to send.
-Returns
-The decrypted response data from the YubiHSM.
+Return type:
+bytes
-Return type
-bytes
+Returns:
+The decrypted response data from the YubiHSM.
-
-set_command_audit
( commands ) [source]
+
+set_command_audit ( commands ) [source]
Set audit mode of commands.
Takes a dict of COMMAND -> AUDIT pairs and updates the audit settings
for the commands given.
-Parameters
-commands (dict [ COMMAND , AUDIT ] ) – Settings to update.
+Parameters:
+commands (Mapping
[COMMAND
, AUDIT
] ) – Settings to update.
-Example
+Example:
>>> session . set_comment_audit ({
-... COMMAND . ECHO : AUDIT . OFF ,
-... COMMAND . LIST_OBJECTS : AUDIT . ON
-... })
+:rtype: :sphinx_autodoc_typehints_type:`\:py\:obj\:\`None\``
+... COMMAND.ECHO: AUDIT.OFF,
+... COMMAND.LIST_OBJECTS: AUDIT.ON
+... })
+
+
+
+
+
+
+set_enabled_algorithms ( algorithms ) [source]
+Set audit mode of commands.
+New in YubiHSM 2.2.0.
+Algorithms can only be toggled on a “fresh” device (after reset, before adding
+objects).
+Takes a dict of ALGORITHM -> bool pairs and updates the enabled algorithm
+settings for the algorithms given.
+
+Parameters:
+algorithms (Mapping
[ALGORITHM
, bool
] ) – The algorithms to update.
+
+Example:
+
+
+>>> session . set_enabled_algorithms ({
+:rtype: :sphinx_autodoc_typehints_type:`\:py\:obj\:\`None\``
+... ALGORITHM.RSA_2048: False,
+... ALGORITHM.RSA_OAEP_SHA256_: True,
+... })
-
-set_force_audit
( audit ) [source]
+
+set_fips_mode ( mode ) [source]
+Set the FIPS mode of the YubiHSM.
+YubiHSM2 FIPS only.
+This can only be toggled on a “fresh” device (after reset, before adding
+objects).
+
+Parameters:
+mode (bool
) – Whether to be in FIPS compliant mode or not.
+
+Return type:
+None
+
+
+
+
+
+
+set_force_audit ( audit ) [source]
Set the FORCE_AUDIT mode of the YubiHSM.
-Parameters
-audit (AUDIT ) – The AUDIT mode to set.
+Parameters:
+audit (AUDIT
) – The AUDIT mode to set.
+
+Return type:
+None
-
-set_log_index
( index ) [source]
+
+set_log_index ( index ) [source]
Clears logs to free up space for use with forced audit.
-Parameters
-index (int ) – The log entry index to clear up to (inclusive).
+Parameters:
+index (int
) – The log entry index to clear up to (inclusive).
+
+Return type:
+None
-
-
-property sid
+
+
+property sid : int | None
Session ID
-Returns
+Returns:
The ID of the session.
-Return type
-int
-
-
-class yubihsm.core.
DeviceInfo
( version , serial , log_size , log_used , supported_algorithms ) [source]
-Bases: yubihsm.core.DeviceInfo
+
+class yubihsm.core. DeviceInfo ( version , serial , log_size , log_used , supported_algorithms ) [source]
+Bases: object
Data class holding various information about the YubiHSM.
-Parameters
+Variables:
-version (tuple [ int , int , int ] ) – YubiHSM version tuple.
-serial (int ) – YubiHSM serial number.
-log_size (int ) – Log entry storage capacity.
-log_used (int ) – Log entries currently stored.
-supported_algorithms (set [ ALGORITHM ] ) – List of supported algorithms.
+version – YubiHSM version tuple.
+serial – YubiHSM serial number.
+log_size – Log entry storage capacity.
+log_used – Log entries currently stored.
+supported_algorithms – List of supported algorithms.
-
-FORMAT
= '!BBBIBB'
+
+FORMAT : ClassVar
[ str
] = '!BBBIBB'
+
+
+
+
+LENGTH : ClassVar
[ int
] = 9
-
-LENGTH
= 9
+
+log_size : int
+
+
+
+
+log_used : int
-
-classmethod parse
( data ) [source]
+
+classmethod parse ( value ) [source]
Parse a DeviceInfo from its binary representation.
-Parameters
-data (bytes ) – Binary data to unpack from.
-
-Returns
-The parsed object.
-
-Return type
-DeviceInfo
+Return type:
+DeviceInfo
+
+
+serial : int
+
+
+
+
+supported_algorithms : Set
[ ALGORITHM
]
+
+
+
+
+version : Tuple
[ int
, int
, int
]
+
+
-
-class yubihsm.core.
LogData
( n_boot , n_auth , entries ) [source]
-Bases: yubihsm.core.LogData
+
+class yubihsm.core. LogData ( n_boot : int , n_auth : int , entries : Sequence [ LogEntry ] ) [source]
+Bases: tuple
Data class holding response data from a GET_LOGS command.
-Parameters
+Parameters:
-n_boot (int ) – Number of unlogged boot events.
-n_auth (int ) – Number of unlogged authentication events.
-entries (list [ LogEntry ] ) – List of LogEntry items.
+n_boot – Number of unlogged boot events.
+n_auth – Number of unlogged authentication events.
+entries – List of LogEntry items.
+
+
+entries : Sequence
[ LogEntry
]
+Alias for field number 2
+
+
+
+
+n_auth : int
+Alias for field number 1
+
+
+
+
+n_boot : int
+Alias for field number 0
+
+
-
-class yubihsm.core.
LogEntry
( number , command , length , session_key , target_key , second_key , result , tick , digest ) [source]
-Bases: yubihsm.core.LogEntry
+
+class yubihsm.core. LogEntry ( number , command , length , session_key , target_key , second_key , result , tick , digest ) [source]
+Bases: object
YubiHSM log entry.
-Parameters
+Parameters:
-number (int ) – The sequence number of the entry.
-command (int ) – The COMMAND executed.
-length (int ) – The length of the command.
-session_key (int ) – The ID of the Authentication Key for the session.
-target_key (int ) – The ID of the key used by the command.
-second_key (int ) – The ID of the secondary key used by the command, if
+
number (int ) – The sequence number of the entry.
+command (int ) – The COMMAND executed.
+length (int ) – The length of the command.
+session_key (int ) – The ID of the Authentication Key for the session.
+target_key (int ) – The ID of the key used by the command.
+second_key (int ) – The ID of the secondary key used by the command, if
applicable.
-result (int ) – The result byte of the response.
-tick (int ) – The YubiHSM system tick value when the command was run.
-digest (bytes ) – A truncated hash of the entry and previous digest.
+result (int ) – The result byte of the response.
+tick (int ) – The YubiHSM system tick value when the command was run.
+digest (bytes ) – A truncated hash of the entry and previous digest.
-
-FORMAT
= '!HBHHHHBL16s'
+
+FORMAT : ClassVar
[ str
] = '!HBHHHHBL16s'
-
-LENGTH
= 32
+
+LENGTH : ClassVar
[ int
] = 32
-
-
-property data
+
+
+command : COMMAND
+
+
+
+
+property data : bytes
Get log entry binary data.
-Returns
+Returns:
The binary LogEntry data, excluding the digest.
-Return type
-bytes
-
+
+
+digest : bytes
+
+
+
+
+length : int
+
+
+
+
+number : int
+
+
-
-classmethod parse
( data ) [source]
+
+classmethod parse ( data ) [source]
Parse a LogEntry from its binary representation.
-Parameters
-data (bytes ) – Binary data to unpack from.
+Parameters:
+data (bytes
) – Binary data to unpack from.
-Returns
-The parsed object.
+Return type:
+LogEntry
-Return type
-LogEntry
+Returns:
+The parsed object.
+
+
+result : int
+
+
+
+
+second_key : int
+
+
+
+
+session_key : int
+
+
+
+
+target_key : int
+
+
+
+
+tick : int
+
+
-
-validate
( previous_entry ) [source]
+
+validate ( previous_entry ) [source]
Validate the hash of a single log entry.
Validates the hash of this entry with regard to the previous entry’s
hash. The previous entry is the LogEntry with the previous number,
previous_entry.number == self.number - 1
-Parameters
-previous_entry (LogEntry ) – The previous log entry to validate
-against.
+Parameters:
+previous_entry (LogEntry
) – The previous log entry to validate against.
+
+Return type:
+bool
+
+Returns:
+True if the digest is correct, False if not.
+
+
+
+
+
+
+
+
+class yubihsm.core. SymmetricAuth ( hsm , sid , context , card_crypto ) [source]
+Bases: object
+A negotiation of an authenticated Session with a YubiHSM.
+This class is used to begin the mutual authentication process
+for establishing an authenticated session with the YubiHSM,
+using symmetric authentication. Typically you get an instance
+of this class by calling init_session()
.
+
+
+authenticate ( key_senc , key_smac , key_srmac ) [source]
+Constructs an authenticated session.
+
+Parameters:
+
+key_senc (bytes
) – S-ENC used for data confidentiality.
+key_smac (bytes
) – S-MAC used for data and protocol integrity.
+key_srmac (bytes
) – S-RMAC used for data and protocol integrity.
+
-Returns
-True if the digest is correct, False if not.
+Return type:
+AuthSession
-Return type
-bool
+Returns:
+An authenticated session.
+
+
+
+
+
+
+property card_crypto : bytes
+The card cryptogram.
+
+
+
+
+property context : bytes
+The authentication context (host challenge + card challenge).
+
+
+
+
+classmethod create_session ( hsm , auth_key_id , key_enc , key_mac ) [source]
+Constructs an authenticated session.
+
+Parameters:
+
+hsm (YubiHsm
) – The YubiHSM connection.
+auth_key_id (int
) – The ID of the Authentication key used to
+authenticate the session.
+key_enc (bytes
) – Static K-ENC used to establish the session.
+key_mac (bytes
) – Static K-MAC used to establish the session.
+
+
+Return type:
+AuthSession
+
+
+
+
+
+
+classmethod init_session ( hsm , auth_key_id ) [source]
+Initiates the mutual symmetric session authentication process.
+
+Parameters:
+
+
+Return type:
+SymmetricAuth
@@ -579,369 +1317,488 @@ Submodules
-
-
-
yubihsm.defs module
-
Named constants used in YubiHSM commands.
-
-
-class yubihsm.defs.
ALGORITHM
( value ) [source]
-Bases: enum.IntEnum
-Various algorithm constants
+
+
+yubihsm.defs module
+Named constants used in YubiHSM commands.
+
+
+class yubihsm.defs. ALGORITHM ( value ) [source]
+Bases: IntEnum
+Various algorithm constants
+
+
+AES128 = 50
+
+
+
+
+AES128_CCM_WRAP = 29
+
+
+
+
+AES128_YUBICO_AUTHENTICATION = 38
+
+
+
+
+AES128_YUBICO_OTP = 37
+
+
+
+
+AES192 = 51
+
+
+
+
+AES192_CCM_WRAP = 41
+
+
+
+
+AES192_YUBICO_OTP = 39
+
+
-
-AES128_CCM_WRAP
= 29
+
+AES256 = 52
-
-AES128_YUBICO_AUTHENTICATION
= 38
+
+AES256_CCM_WRAP = 42
-
-AES128_YUBICO_OTP
= 37
+
+AES256_YUBICO_OTP = 40
-
-AES192_CCM_WRAP
= 41
+
+AES_CBC = 54
-
-AES192_YUBICO_OTP
= 39
+
+AES_ECB = 53
-
-AES256_CCM_WRAP
= 42
+
+EC_BP256 = 16
-
-AES256_YUBICO_OTP
= 40
+
+EC_BP384 = 17
-
-EC_BP256
= 16
+
+EC_BP512 = 18
-
-EC_BP384
= 17
+
+EC_ECDH = 24
-
-EC_BP512
= 18
+
+EC_ECDSA_SHA1 = 23
-
-EC_ECDH
= 24
+
+EC_ECDSA_SHA256 = 43
-
-EC_ECDSA_SHA1
= 23
+
+EC_ECDSA_SHA384 = 44
-
-EC_ECDSA_SHA256
= 43
+
+EC_ECDSA_SHA512 = 45
-
-EC_ECDSA_SHA384
= 44
+
+EC_ED25519 = 46
-
-EC_ECDSA_SHA512
= 45
+
+EC_K256 = 15
-
-EC_ED25519
= 46
+
+EC_P224 = 47
-
-EC_K256
= 15
+
+EC_P256 = 12
-
-EC_P224
= 47
+
+EC_P256_YUBICO_AUTHENTICATION = 49
-
-EC_P256
= 12
+
+EC_P384 = 13
-
-EC_P384
= 13
+
+EC_P521 = 14
-
-EC_P521
= 14
+
+HMAC_SHA1 = 19
-
-HMAC_SHA1
= 19
+
+HMAC_SHA256 = 20
-
-HMAC_SHA256
= 20
+
+HMAC_SHA384 = 21
-
-HMAC_SHA384
= 21
+
+HMAC_SHA512 = 22
-
-HMAC_SHA512
= 22
+
+OPAQUE_DATA = 30
-
-OPAQUE_DATA
= 30
+
+OPAQUE_X509_CERTIFICATE = 31
-
-OPAQUE_X509_CERTIFICATE
= 31
+
+RSA_2048 = 9
-
-RSA_2048
= 9
+
+RSA_3072 = 10
-
-RSA_3072
= 10
+
+RSA_4096 = 11
-
-RSA_4096
= 11
+
+RSA_MGF1_SHA1 = 32
-
-RSA_MGF1_SHA1
= 32
+
+RSA_MGF1_SHA256 = 33
-
-RSA_MGF1_SHA256
= 33
+
+RSA_MGF1_SHA384 = 34
-
-RSA_MGF1_SHA384
= 34
+
+RSA_MGF1_SHA512 = 35
-
-RSA_MGF1_SHA512
= 35
+
+RSA_OAEP_SHA1 = 25
-
-RSA_OAEP_SHA1
= 25
+
+RSA_OAEP_SHA256 = 26
-
-RSA_OAEP_SHA256
= 26
+
+RSA_OAEP_SHA384 = 27
-
-RSA_OAEP_SHA384
= 27
+
+RSA_OAEP_SHA512 = 28
-
-RSA_OAEP_SHA512
= 28
+
+RSA_PKCS1_DECRYPT = 48
-
-RSA_PKCS1_SHA1
= 1
+
+RSA_PKCS1_SHA1 = 1
-
-RSA_PKCS1_SHA256
= 2
+
+RSA_PKCS1_SHA256 = 2
-
-RSA_PKCS1_SHA384
= 3
+
+RSA_PKCS1_SHA384 = 3
-
-RSA_PKCS1_SHA512
= 4
+
+RSA_PKCS1_SHA512 = 4
-
-RSA_PSS_SHA1
= 5
+
+RSA_PSS_SHA1 = 5
-
-RSA_PSS_SHA256
= 6
+
+RSA_PSS_SHA256 = 6
-
-RSA_PSS_SHA384
= 7
+
+RSA_PSS_SHA384 = 7
-
-RSA_PSS_SHA512
= 8
+
+RSA_PSS_SHA512 = 8
-
-TEMPLATE_SSH
= 36
+
+TEMPLATE_SSH = 36
-
-static for_curve
( curve ) [source]
+
+static for_curve ( curve ) [source]
Returns a member corresponding to a Cryptography curve instance.
-Example
+Example:
+Return type:
+ALGORITHM
+
>>> ALGORITHM . for_curve ( ec . SECP256R1 ()) == ALGORITHM . EC_P256
True
@@ -950,17 +1807,17 @@ Submodules
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/static/python-yubihsm/API_Documentation/search.html b/static/python-yubihsm/API_Documentation/search.html
index 5b5af3a19..baad1669d 100644
--- a/static/python-yubihsm/API_Documentation/search.html
+++ b/static/python-yubihsm/API_Documentation/search.html
@@ -1,159 +1,76 @@
-
-
-
-
-
Search — python-yubihsm 2.1.0 documentation
-
-
-
-
-
-
-
-
+
Search — python-yubihsm 3.0.0.dev0 documentation
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
+
-
-
-
-
-
-
+
python-yubihsm
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
- »
-
- Search
-
-
+
+ Search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/static/python-yubihsm/API_Documentation/searchindex.js b/static/python-yubihsm/API_Documentation/searchindex.js
index 8ed792774..e688bed3d 100644
--- a/static/python-yubihsm/API_Documentation/searchindex.js
+++ b/static/python-yubihsm/API_Documentation/searchindex.js
@@ -1 +1 @@
-Search.setIndex({docnames:["index","rst/yubihsm"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":2,"sphinx.ext.intersphinx":1,"sphinx.ext.viewcode":1,sphinx:56},filenames:["index.rst","rst/yubihsm.rst"],objects:{"":{yubihsm:[1,0,0,"-"]},"yubihsm.core":{AuthSession:[1,1,1,""],DeviceInfo:[1,1,1,""],LogData:[1,1,1,""],LogEntry:[1,1,1,""],YubiHsm:[1,1,1,""]},"yubihsm.core.AuthSession":{close:[1,2,1,""],get_command_audit:[1,2,1,""],get_force_audit:[1,2,1,""],get_log_entries:[1,2,1,""],get_object:[1,2,1,""],get_option:[1,2,1,""],get_pseudo_random:[1,2,1,""],list_objects:[1,2,1,""],put_option:[1,2,1,""],reset_device:[1,2,1,""],send_secure_cmd:[1,2,1,""],set_command_audit:[1,2,1,""],set_force_audit:[1,2,1,""],set_log_index:[1,2,1,""],sid:[1,2,1,""]},"yubihsm.core.DeviceInfo":{FORMAT:[1,3,1,""],LENGTH:[1,3,1,""],parse:[1,2,1,""]},"yubihsm.core.LogEntry":{FORMAT:[1,3,1,""],LENGTH:[1,3,1,""],data:[1,2,1,""],parse:[1,2,1,""],validate:[1,2,1,""]},"yubihsm.core.YubiHsm":{close:[1,2,1,""],connect:[1,2,1,""],create_session:[1,2,1,""],create_session_derived:[1,2,1,""],get_device_info:[1,2,1,""],send_cmd:[1,2,1,""]},"yubihsm.defs":{ALGORITHM:[1,1,1,""],AUDIT:[1,1,1,""],BRAINPOOLP256R1:[1,1,1,""],BRAINPOOLP384R1:[1,1,1,""],BRAINPOOLP512R1:[1,1,1,""],CAPABILITY:[1,1,1,""],COMMAND:[1,1,1,""],ERROR:[1,1,1,""],LIST_FILTER:[1,1,1,""],OBJECT:[1,1,1,""],OPTION:[1,1,1,""],ORIGIN:[1,1,1,""]},"yubihsm.defs.ALGORITHM":{AES128_CCM_WRAP:[1,3,1,""],AES128_YUBICO_AUTHENTICATION:[1,3,1,""],AES128_YUBICO_OTP:[1,3,1,""],AES192_CCM_WRAP:[1,3,1,""],AES192_YUBICO_OTP:[1,3,1,""],AES256_CCM_WRAP:[1,3,1,""],AES256_YUBICO_OTP:[1,3,1,""],EC_BP256:[1,3,1,""],EC_BP384:[1,3,1,""],EC_BP512:[1,3,1,""],EC_ECDH:[1,3,1,""],EC_ECDSA_SHA1:[1,3,1,""],EC_ECDSA_SHA256:[1,3,1,""],EC_ECDSA_SHA384:[1,3,1,""],EC_ECDSA_SHA512:[1,3,1,""],EC_ED25519:[1,3,1,""],EC_K256:[1,3,1,""],EC_P224:[1,3,1,""],EC_P256:[1,3,1,""],EC_P384:[1,3,1,""],EC_P521:[1,3,1,""],HMAC_SHA1:[1,3,1,""],HMAC_SHA256:[1,3,1,""],HMAC_SHA384:[1,3,1,""],HMAC_SHA512:[1,3,1,""],OPAQUE_DATA:[1,3,1,""],OPAQUE_X509_CERTIFICATE:[1,3,1,""],RSA_2048:[1,3,1,""],RSA_3072:[1,3,1,""],RSA_4096:[1,3,1,""],RSA_MGF1_SHA1:[1,3,1,""],RSA_MGF1_SHA256:[1,3,1,""],RSA_MGF1_SHA384:[1,3,1,""],RSA_MGF1_SHA512:[1,3,1,""],RSA_OAEP_SHA1:[1,3,1,""],RSA_OAEP_SHA256:[1,3,1,""],RSA_OAEP_SHA384:[1,3,1,""],RSA_OAEP_SHA512:[1,3,1,""],RSA_PKCS1_SHA1:[1,3,1,""],RSA_PKCS1_SHA256:[1,3,1,""],RSA_PKCS1_SHA384:[1,3,1,""],RSA_PKCS1_SHA512:[1,3,1,""],RSA_PSS_SHA1:[1,3,1,""],RSA_PSS_SHA256:[1,3,1,""],RSA_PSS_SHA384:[1,3,1,""],RSA_PSS_SHA512:[1,3,1,""],TEMPLATE_SSH:[1,3,1,""],for_curve:[1,2,1,""],to_curve:[1,2,1,""]},"yubihsm.defs.AUDIT":{FIXED:[1,3,1,""],OFF:[1,3,1,""],ON:[1,3,1,""]},"yubihsm.defs.BRAINPOOLP256R1":{key_size:[1,3,1,""],name:[1,3,1,""]},"yubihsm.defs.BRAINPOOLP384R1":{key_size:[1,3,1,""],name:[1,3,1,""]},"yubihsm.defs.BRAINPOOLP512R1":{key_size:[1,3,1,""],name:[1,3,1,""]},"yubihsm.defs.CAPABILITY":{ALL:[1,3,1,""],CHANGE_AUTHENTICATION_KEY:[1,3,1,""],CREATE_OTP_AEAD:[1,3,1,""],DECRYPT_OAEP:[1,3,1,""],DECRYPT_OTP:[1,3,1,""],DECRYPT_PKCS:[1,3,1,""],DELETE_ASYMMETRIC_KEY:[1,3,1,""],DELETE_AUTHENTICATION_KEY:[1,3,1,""],DELETE_HMAC_KEY:[1,3,1,""],DELETE_OPAQUE:[1,3,1,""],DELETE_OTP_AEAD_KEY:[1,3,1,""],DELETE_TEMPLATE:[1,3,1,""],DELETE_WRAP_KEY:[1,3,1,""],DERIVE_ECDH:[1,3,1,""],EXPORTABLE_UNDER_WRAP:[1,3,1,""],EXPORT_WRAPPED:[1,3,1,""],GENERATE_ASYMMETRIC_KEY:[1,3,1,""],GENERATE_HMAC_KEY:[1,3,1,""],GENERATE_OTP_AEAD_KEY:[1,3,1,""],GENERATE_WRAP_KEY:[1,3,1,""],GET_LOG_ENTRIES:[1,3,1,""],GET_OPAQUE:[1,3,1,""],GET_OPTION:[1,3,1,""],GET_PSEUDO_RANDOM:[1,3,1,""],GET_TEMPLATE:[1,3,1,""],IMPORT_WRAPPED:[1,3,1,""],NONE:[1,3,1,""],PUT_ASYMMETRIC:[1,3,1,""],PUT_AUTHENTICATION_KEY:[1,3,1,""],PUT_HMAC_KEY:[1,3,1,""],PUT_OPAQUE:[1,3,1,""],PUT_OTP_AEAD_KEY:[1,3,1,""],PUT_TEMPLATE:[1,3,1,""],PUT_WRAP_KEY:[1,3,1,""],RANDOMIZE_OTP_AEAD:[1,3,1,""],RESET_DEVICE:[1,3,1,""],REWRAP_FROM_OTP_AEAD_KEY:[1,3,1,""],REWRAP_TO_OTP_AEAD_KEY:[1,3,1,""],SET_OPTION:[1,3,1,""],SIGN_ATTESTATION_CERTIFICATE:[1,3,1,""],SIGN_ECDSA:[1,3,1,""],SIGN_EDDSA:[1,3,1,""],SIGN_HMAC:[1,3,1,""],SIGN_PKCS:[1,3,1,""],SIGN_PSS:[1,3,1,""],SIGN_SSH_CERTIFICATE:[1,3,1,""],UNWRAP_DATA:[1,3,1,""],VERIFY_HMAC:[1,3,1,""],WRAP_DATA:[1,3,1,""]},"yubihsm.defs.COMMAND":{AUTHENTICATE_SESSION:[1,3,1,""],BLINK_DEVICE:[1,3,1,""],CHANGE_AUTHENTICATION_KEY:[1,3,1,""],CLOSE_SESSION:[1,3,1,""],CREATE_OTP_AEAD:[1,3,1,""],CREATE_SESSION:[1,3,1,""],DECRYPT_OAEP:[1,3,1,""],DECRYPT_OTP:[1,3,1,""],DECRYPT_PKCS1:[1,3,1,""],DELETE_OBJECT:[1,3,1,""],DERIVE_ECDH:[1,3,1,""],DEVICE_INFO:[1,3,1,""],ECHO:[1,3,1,""],ERROR:[1,3,1,""],EXPORT_WRAPPED:[1,3,1,""],GENERATE_ASYMMETRIC_KEY:[1,3,1,""],GENERATE_HMAC_KEY:[1,3,1,""],GENERATE_OTP_AEAD_KEY:[1,3,1,""],GENERATE_WRAP_KEY:[1,3,1,""],GET_LOG_ENTRIES:[1,3,1,""],GET_OBJECT_INFO:[1,3,1,""],GET_OPAQUE:[1,3,1,""],GET_OPTION:[1,3,1,""],GET_PSEUDO_RANDOM:[1,3,1,""],GET_PUBLIC_KEY:[1,3,1,""],GET_STORAGE_INFO:[1,3,1,""],GET_TEMPLATE:[1,3,1,""],IMPORT_WRAPPED:[1,3,1,""],LIST_OBJECTS:[1,3,1,""],PUT_ASYMMETRIC_KEY:[1,3,1,""],PUT_AUTHENTICATION_KEY:[1,3,1,""],PUT_HMAC_KEY:[1,3,1,""],PUT_OPAQUE:[1,3,1,""],PUT_OTP_AEAD_KEY:[1,3,1,""],PUT_TEMPLATE:[1,3,1,""],PUT_WRAP_KEY:[1,3,1,""],RANDOMIZE_OTP_AEAD:[1,3,1,""],RESET_DEVICE:[1,3,1,""],REWRAP_OTP_AEAD:[1,3,1,""],SESSION_MESSAGE:[1,3,1,""],SET_LOG_INDEX:[1,3,1,""],SET_OPTION:[1,3,1,""],SIGN_ATTESTATION_CERTIFICATE:[1,3,1,""],SIGN_ECDSA:[1,3,1,""],SIGN_EDDSA:[1,3,1,""],SIGN_HMAC:[1,3,1,""],SIGN_PKCS1:[1,3,1,""],SIGN_PSS:[1,3,1,""],SIGN_SSH_CERTIFICATE:[1,3,1,""],UNWRAP_DATA:[1,3,1,""],VERIFY_HMAC:[1,3,1,""],WRAP_DATA:[1,3,1,""]},"yubihsm.defs.ERROR":{AUTHENTICATION_FAILED:[1,3,1,""],COMMAND_UNEXECUTED:[1,3,1,""],DEMO_MODE:[1,3,1,""],INSUFFICIENT_PERMISSIONS:[1,3,1,""],INVALID_COMMAND:[1,3,1,""],INVALID_DATA:[1,3,1,""],INVALID_ID:[1,3,1,""],INVALID_OTP:[1,3,1,""],INVALID_SESSION:[1,3,1,""],LOG_FULL:[1,3,1,""],OBJECT_EXISTS:[1,3,1,""],OBJECT_NOT_FOUND:[1,3,1,""],OK:[1,3,1,""],SESSIONS_FULL:[1,3,1,""],SESSION_FAILED:[1,3,1,""],SSH_CA_CONSTRAINT_VIOLATION:[1,3,1,""],STORAGE_FAILED:[1,3,1,""],WRONG_LENGTH:[1,3,1,""]},"yubihsm.defs.LIST_FILTER":{ALGORITHM:[1,3,1,""],CAPABILITIES:[1,3,1,""],DOMAINS:[1,3,1,""],ID:[1,3,1,""],LABEL:[1,3,1,""],TYPE:[1,3,1,""]},"yubihsm.defs.OBJECT":{ASYMMETRIC_KEY:[1,3,1,""],AUTHENTICATION_KEY:[1,3,1,""],HMAC_KEY:[1,3,1,""],OPAQUE:[1,3,1,""],OTP_AEAD_KEY:[1,3,1,""],TEMPLATE:[1,3,1,""],WRAP_KEY:[1,3,1,""]},"yubihsm.defs.OPTION":{COMMAND_AUDIT:[1,3,1,""],FORCE_AUDIT:[1,3,1,""]},"yubihsm.defs.ORIGIN":{GENERATED:[1,3,1,""],IMPORTED:[1,3,1,""],IMPORTED_WRAPPED:[1,3,1,""],generated:[1,2,1,""],imported:[1,2,1,""],wrapped:[1,2,1,""]},"yubihsm.eddsa":{load_ed25519_private_key:[1,4,1,""],serialize_ed25519_public_key:[1,4,1,""]},"yubihsm.exceptions":{YubiHsmAuthenticationError:[1,5,1,""],YubiHsmConnectionError:[1,5,1,""],YubiHsmDeviceError:[1,5,1,""],YubiHsmError:[1,5,1,""],YubiHsmInvalidRequestError:[1,5,1,""],YubiHsmInvalidResponseError:[1,5,1,""]},"yubihsm.objects":{AsymmetricKey:[1,1,1,""],AuthenticationKey:[1,1,1,""],HmacKey:[1,1,1,""],ObjectInfo:[1,1,1,""],Opaque:[1,1,1,""],OtpAeadKey:[1,1,1,""],OtpData:[1,1,1,""],Template:[1,1,1,""],WrapKey:[1,1,1,""],YhsmObject:[1,1,1,""]},"yubihsm.objects.AsymmetricKey":{attest:[1,2,1,""],decrypt_oaep:[1,2,1,""],decrypt_pkcs1v1_5:[1,2,1,""],derive_ecdh:[1,2,1,""],generate:[1,2,1,""],get_certificate:[1,2,1,""],get_public_key:[1,2,1,""],object_type:[1,3,1,""],put:[1,2,1,""],put_certificate:[1,2,1,""],sign_ecdsa:[1,2,1,""],sign_eddsa:[1,2,1,""],sign_pkcs1v1_5:[1,2,1,""],sign_pss:[1,2,1,""],sign_ssh_certificate:[1,2,1,""]},"yubihsm.objects.AuthenticationKey":{change_key:[1,2,1,""],change_password:[1,2,1,""],object_type:[1,3,1,""],put:[1,2,1,""],put_derived:[1,2,1,""]},"yubihsm.objects.HmacKey":{generate:[1,2,1,""],object_type:[1,3,1,""],put:[1,2,1,""],sign_hmac:[1,2,1,""],verify_hmac:[1,2,1,""]},"yubihsm.objects.ObjectInfo":{FORMAT:[1,3,1,""],LENGTH:[1,3,1,""],parse:[1,2,1,""]},"yubihsm.objects.Opaque":{get:[1,2,1,""],get_certificate:[1,2,1,""],object_type:[1,3,1,""],put:[1,2,1,""],put_certificate:[1,2,1,""]},"yubihsm.objects.OtpAeadKey":{create_otp_aead:[1,2,1,""],decrypt_otp:[1,2,1,""],generate:[1,2,1,""],object_type:[1,3,1,""],put:[1,2,1,""],randomize_otp_aead:[1,2,1,""],rewrap_otp_aead:[1,2,1,""]},"yubihsm.objects.Template":{get:[1,2,1,""],object_type:[1,3,1,""],put:[1,2,1,""]},"yubihsm.objects.WrapKey":{export_wrapped:[1,2,1,""],generate:[1,2,1,""],import_wrapped:[1,2,1,""],object_type:[1,3,1,""],put:[1,2,1,""],unwrap_data:[1,2,1,""],wrap_data:[1,2,1,""]},"yubihsm.objects.YhsmObject":{"delete":[1,2,1,""],get_info:[1,2,1,""],object_type:[1,3,1,""],with_session:[1,2,1,""]},"yubihsm.utils":{int_from_bytes:[1,4,1,""],password_to_key:[1,4,1,""]},yubihsm:{core:[1,0,0,"-"],defs:[1,0,0,"-"],eddsa:[1,0,0,"-"],exceptions:[1,0,0,"-"],objects:[1,0,0,"-"],utils:[1,0,0,"-"]}},objnames:{"0":["py","module","Python module"],"1":["py","class","Python class"],"2":["py","method","Python method"],"3":["py","attribute","Python attribute"],"4":["py","function","Python function"],"5":["py","exception","Python exception"]},objtypes:{"0":"py:module","1":"py:class","2":"py:method","3":"py:attribute","4":"py:function","5":"py:exception"},terms:{"100":1,"101":1,"102":1,"1024":1,"103":1,"104":1,"1048576":1,"105":1,"106":1,"107":1,"1073741824":1,"108":1,"1099511627776":1,"12345":1,"127":1,"128":1,"131072":1,"134217728":1,"137438953472":1,"140737488355327":1,"16384":1,"16777216":1,"17179869184":1,"17592186044416":1,"2048":1,"2097152":1,"2147483648":1,"2199023255552":1,"255":1,"256":1,"262144":1,"268435456":1,"274877906944":1,"32768":1,"33554432":1,"34359738368":1,"35184372088832":1,"384":1,"4096":1,"4194304":1,"4294967296":1,"4398046511104":1,"512":1,"524288":1,"536870912":1,"549755813888":1,"56a":1,"65536":1,"67108864":1,"68719476736":1,"70368744177664":1,"800":1,"8192":1,"8388608":1,"8589934592":1,"8796093022208":1,"byte":1,"class":1,"default":1,"enum":1,"export":1,"function":1,"import":1,"int":1,"new":1,"public":1,"return":1,"static":1,"true":1,AES:1,The:1,These:1,Used:1,Uses:1,abl:1,about:1,access:1,action:1,aead:1,aes128_ccm_wrap:1,aes128_yubico_authent:1,aes128_yubico_otp:1,aes192_ccm_wrap:1,aes192_yubico_otp:1,aes256_ccm_wrap:1,aes256_yubico_otp:1,against:1,algorithm:1,all:1,also:1,ani:1,anoth:1,api:1,applic:1,arbitrari:1,argument:1,assign:1,associ:1,asymmetr:1,asymmetric_kei:1,asymmetrickei:1,attempt:1,attest:1,attesting_key_id:1,audit:1,auth_key_id:1,authent:1,authenticate_sess:1,authentication_fail:1,authentication_kei:1,authenticationkei:1,authkei:1,authsess:1,avail:1,backend:1,base:1,baseclass:1,bbbibb:1,belong:1,big:1,binari:1,bit:1,blink_devic:1,bool:1,boot:1,brainpoolp256r1:1,brainpoolp384r1:1,brainpoolp512r1:1,built:1,byteord:1,calcul:1,call:1,can:1,capabl:1,capac:1,certif:1,chain:1,chang:1,change_authentication_kei:1,change_kei:1,change_password:1,ciphertext:1,classmethod:1,clear:1,close:1,close_sess:1,cmd:1,code:1,combin:1,command:1,command_audit:1,command_unexecut:1,commun:1,connect:1,connector:1,consist:1,constant:1,contain:1,copi:1,correct:1,correspond:1,counter:1,creat:1,create_otp_aead:1,create_sess:1,create_session_deriv:1,credenti:1,cryptographi:1,current:1,curv:1,cycl:1,data:1,decrypt:1,decrypt_oaep:1,decrypt_otp:1,decrypt_pkc:1,decrypt_pkcs1:1,decrypt_pkcs1v1_5:1,deleg:1,delegated_cap:1,delet:1,delete_asymmetric_kei:1,delete_authentication_kei:1,delete_hmac_kei:1,delete_object:1,delete_opaqu:1,delete_otp_aead_kei:1,delete_templ:1,delete_wrap_kei:1,demo_mod:1,depend:1,deriv:1,derive_ecdh:1,deseri:1,design:1,devic:1,device_info:1,deviceinfo:1,dict:1,dictionari:1,digest:1,disconnect:1,domain:1,each:1,ec_bp256:1,ec_bp384:1,ec_bp512:1,ec_ecdh:1,ec_ecdsa_sha1:1,ec_ecdsa_sha256:1,ec_ecdsa_sha384:1,ec_ecdsa_sha512:1,ec_ed25519:1,ec_k256:1,ec_p224:1,ec_p256:1,ec_p384:1,ec_p521:1,ecdh:1,ecdsa:1,echo:1,ed25519:1,ed25519publickei:1,either:1,ellipticcurveprivatekei:1,ellipticcurvepublickei:1,enc:1,encod:1,encrypt:1,entri:1,equival:1,error:1,establish:1,event:1,exampl:1,exchang:1,exclud:1,execut:1,explicitli:1,export_wrap:1,exportable_under_wrap:1,extend:1,factori:1,fail:1,fals:1,filter:1,first:1,fix:1,flag:1,for_curv:1,forc:1,force_audit:1,format:1,free:1,from:1,gener:1,generate_asymmetric_kei:1,generate_hmac_kei:1,generate_otp_aead_kei:1,generate_wrap_kei:1,get:1,get_certif:1,get_command_audit:1,get_device_info:1,get_force_audit:1,get_info:1,get_log:1,get_log_entri:1,get_object:1,get_object_info:1,get_opaqu:1,get_opt:1,get_pseudo_random:1,get_public_kei:1,get_storage_info:1,get_templ:1,give:1,given:1,has:1,hash:1,hashalgorithm:1,hazmat:1,hbhhhhbl16:1,high:1,hmac:1,hmac_kei:1,hmac_sha1:1,hmac_sha256:1,hmac_sha384:1,hmac_sha512:1,hmackei:1,hold:1,how:1,hsm:1,http:1,ident:1,identifi:1,import_wrap:1,imported_wrap:1,inclus:1,increment:1,index:[0,1],inform:1,instanc:1,insufficient_permiss:1,int_from_byt:1,intenum:1,interact:1,intern:1,invalid_command:1,invalid_data:1,invalid_id:1,invalid_otp:1,invalid_sess:1,irrevers:1,isinst:1,item:1,its:1,kei:1,key_enc:1,key_id:1,key_mac:1,key_siz:1,label:1,later:1,length:1,let:1,librari:1,list:1,list_filt:1,list_object:1,load:1,load_ed25519_private_kei:1,localhost:1,log:1,log_ful:1,log_siz:1,log_us:1,logdata:1,logentri:1,longer:1,low:1,mac:1,main:1,map:1,match:1,member:1,method:1,mgf1:1,mgf_hash:1,mode:1,modul:0,more:1,mutual:1,n_auth:1,n_boot:1,name:1,need:1,new_key_id:1,newli:1,nonc:1,nonce_id:1,none:1,number:1,oaep:1,obj:1,object_exist:1,object_id:1,object_not_found:1,object_typ:1,objectinfo:1,off:1,omit:1,onc:1,one:1,onli:1,opaqu:1,opaque_data:1,opaque_x509_certif:1,option:1,origin:1,other:1,otp:1,otp_aead_kei:1,otpaeadkei:1,otpdata:1,over:1,pad:1,page:0,pair:1,paramet:1,pars:1,part:1,pass:1,password:1,password_to_kei:1,payload:1,perform:1,pkcs1:1,plaintext:1,port:1,possibl:1,power:1,previou:1,previous:1,previous_entri:1,primit:1,privat:1,prng:1,properti:1,provid:1,pss:1,public_kei:1,put:1,put_asymmetr:1,put_asymmetric_kei:1,put_authentication_kei:1,put_certif:1,put_deriv:1,put_hmac_kei:1,put_opaqu:1,put_opt:1,put_otp_aead_kei:1,put_templ:1,put_wrap_kei:1,qhhhbbbb40sq:1,random:1,randomize_otp_aead:1,raw:1,read:1,reboot:1,refer:1,referenc:1,regard:1,represent:1,request:1,requir:1,reset:1,reset_devic:1,resourc:1,respons:1,restor:1,result:1,retriev:1,rewrap_from_otp_aead_kei:1,rewrap_otp_aead:1,rewrap_to_otp_aead_kei:1,rsa:1,rsa_2048:1,rsa_3072:1,rsa_4096:1,rsa_mgf1_sha1:1,rsa_mgf1_sha256:1,rsa_mgf1_sha384:1,rsa_mgf1_sha512:1,rsa_oaep_sha1:1,rsa_oaep_sha256:1,rsa_oaep_sha384:1,rsa_oaep_sha512:1,rsa_pkcs1_sha1:1,rsa_pkcs1_sha256:1,rsa_pkcs1_sha384:1,rsa_pkcs1_sha512:1,rsa_pss_sha1:1,rsa_pss_sha256:1,rsa_pss_sha384:1,rsa_pss_sha512:1,rsae:1,rsaprivatekei:1,rsapublickei:1,rsassa:1,run:1,salt:1,salt_len:1,same:1,search:0,second_kei:1,secondari:1,secp256r1:1,secur:1,see:1,seed:1,self:1,send:1,send_cmd:1,send_secure_cmd:1,sent:1,separ:1,seq:1,sequenc:1,serial:1,serialize_ed25519_public_kei:1,serialz:1,session:1,session_count:1,session_fail:1,session_kei:1,session_messag:1,sessions_ful:1,set:1,set_command_audit:1,set_comment_audit:1,set_force_audit:1,set_log_index:1,set_opt:1,sha256:1,share:1,sid:1,sign:1,sign_attestation_certif:1,sign_ecdsa:1,sign_eddsa:1,sign_hmac:1,sign_pkc:1,sign_pkcs1:1,sign_pkcs1v1_5:1,sign_pss:1,sign_ssh_certif:1,signatur:1,singl:1,size:1,sourc:1,space:1,specifi:1,ssh:1,ssh_ca_constraint_viol:1,start:1,storag:1,storage_fail:1,store:1,str:1,structur:1,subclass:1,succeed:1,suppli:1,support:1,supported_algorithm:1,system:1,take:1,target_kei:1,templat:1,template_id:1,template_ssh:1,text:1,them:1,thi:1,throughout:1,thrown:1,tick:1,timestamp:1,timestamp_high:1,timestamp_low:1,to_curv:1,touch:1,truncat:1,tupl:1,two:1,type:1,typic:1,unauthent:1,under:1,unexpect:1,uniqu:1,unless:1,unlog:1,unpack:1,unwrap:1,unwrap_data:1,updat:1,url:1,use:1,use_count:1,used:1,using:1,v1_5:1,valid:1,valu:1,variou:1,verif:1,verifi:1,verify_hmac:1,version:1,via:1,when:1,which:1,with_sess:1,wrap:1,wrap_data:1,wrap_kei:1,wraped_obj:1,wrapkei:1,wrapped_obj:1,wrong_length:1,wth:1,x509:1,yhsmobject:1,yhusb:1,you:1,yubico:1,yubihsmauthenticationerror:1,yubihsmconnectionerror:1,yubihsmdeviceerror:1,yubihsmerror:1,yubihsminvalidrequesterror:1,yubihsminvalidresponseerror:1},titles:["Welcome to python-yubihsm\u2019s documentation!","yubihsm package"],titleterms:{content:1,core:1,def:1,document:0,eddsa:1,except:1,indic:0,modul:1,object:1,packag:1,python:0,submodul:1,subpackag:1,tabl:0,util:1,welcom:0,yubihsm:[0,1]}})
\ No newline at end of file
+Search.setIndex({"docnames": ["index", "rst/yubihsm", "rst/yubihsm.backends"], "filenames": ["index.rst", "rst/yubihsm.rst", "rst/yubihsm.backends.rst"], "titles": ["Welcome to python-yubihsm\u2019s documentation!", "yubihsm package", "yubihsm.backends package"], "terms": {"index": [0, 1], "modul": 0, "search": 0, "page": 0, "backend": 1, "http": 1, "httpbackend": [1, 2], "close": [1, 2], "transceiv": [1, 2], "usb": 1, "usbbackend": [1, 2], "yhsmbackend": [1, 2], "get_backend": [1, 2], "class": [1, 2], "commun": [1, 2], "asymmetricauth": 1, "hsm": 1, "sid": 1, "context": 1, "receipt": 1, "sourc": [1, 2], "base": [1, 2], "A": [1, 2], "negoti": 1, "an": 1, "authent": 1, "session": 1, "thi": 1, "i": 1, "us": 1, "begin": 1, "mutual": 1, "process": 1, "establish": 1, "asymmetr": 1, "typic": 1, "you": 1, "get": 1, "instanc": 1, "call": 1, "init_session_asymmetr": 1, "key_senc": 1, "key_smac": 1, "key_srmac": 1, "construct": 1, "paramet": 1, "byte": [1, 2], "": 1, "enc": 1, "data": 1, "confidenti": 1, "mac": 1, "protocol": 1, "integr": 1, "rmac": 1, "return": [1, 2], "type": [1, 2], "authsess": 1, "properti": 1, "The": 1, "epk": 1, "oc": 1, "sd": 1, "classmethod": 1, "create_sess": 1, "auth_key_id": 1, "private_kei": 1, "public_kei": 1, "connect": [1, 2], "int": 1, "id": 1, "kei": 1, "ellipticcurveprivatekei": 1, "privat": 1, "correspond": 1, "public": 1, "ellipticcurvepublickei": 1, "devic": 1, "epk_hsm": 1, "ephemer": 1, "init_sess": 1, "epk_oc": 1, "initi": 1, "agreement": 1, "key_enc": 1, "key_mac": 1, "key_rmac": 1, "mac_chain": 1, "secur": 1, "create_session_deriv": 1, "create_session_asymmetr": 1, "onc": 1, "can": 1, "longer": 1, "unless": 1, "re": 1, "none": [1, 2], "get_command_audit": 1, "map": 1, "all": 1, "avail": 1, "command": 1, "audit": 1, "set": 1, "dictionari": 1, "pair": 1, "get_enabled_algorithm": 1, "algorithm": 1, "whether": 1, "thei": 1, "ar": 1, "enabl": 1, "bool": 1, "get_fips_mod": 1, "current": 1, "fip": 1, "compliant": 1, "mode": 1, "yubihsm2": 1, "onli": 1, "true": 1, "fals": 1, "get_force_audit": 1, "forc": 1, "force_audit": 1, "get_log_entri": 1, "previous_entri": 1, "log": 1, "from": 1, "tupl": 1, "number": 1, "unlog": 1, "boot": 1, "event": 1, "entri": 1, "chain": 1, "digest": 1, "valid": 1, "start": 1, "first": 1, "one": 1, "suppli": 1, "option": 1, "logentri": 1, "verif": 1, "against": 1, "logdata": 1, "consist": 1, "list": 1, "get_object": 1, "object_id": 1, "object_typ": 1, "refer": 1, "yhsmobject": 1, "given": [1, 2], "subclass": 1, "retriev": 1, "get_opt": 1, "raw": 1, "valu": 1, "get_pseudo_random": 1, "length": 1, "prng": 1, "request": 1, "random": 1, "list_object": 1, "domain": 1, "capabl": 1, "label": 1, "store": 1, "which": 1, "access": 1, "argument": 1, "method": 1, "filter": 1, "result": 1, "belong": 1, "more": 1, "str": 1, "sequenc": 1, "match": 1, "put_opt": 1, "reset_devic": 1, "perform": 1, "factori": 1, "reset": 1, "reboot": 1, "delet": 1, "restor": 1, "default": 1, "authkei": 1, "send_secure_cmd": 1, "cmd": 1, "b": 1, "send": [1, 2], "over": [1, 2], "encrypt": 1, "payload": 1, "decrypt": 1, "respons": 1, "set_command_audit": 1, "take": 1, "dict": 1, "updat": 1, "exampl": 1, "set_comment_audit": 1, "rtype": 1, "sphinx_autodoc_typehints_typ": 1, "py": 1, "obj": 1, "echo": 1, "off": 1, "ON": 1, "set_enabled_algorithm": 1, "new": 1, "2": 1, "0": 1, "toggl": 1, "fresh": 1, "after": 1, "befor": 1, "ad": 1, "rsa_2048": 1, "rsa_oaep_sha256_": 1, "set_fips_mod": 1, "set_force_audit": 1, "set_log_index": 1, "clear": 1, "free": 1, "up": 1, "space": 1, "inclus": 1, "deviceinfo": 1, "version": 1, "serial": [1, 2], "log_siz": 1, "log_us": 1, "supported_algorithm": 1, "hold": 1, "variou": 1, "inform": 1, "about": 1, "variabl": 1, "storag": 1, "capac": 1, "support": 1, "format": 1, "classvar": 1, "bbbibb": 1, "9": 1, "pars": 1, "its": 1, "binari": 1, "represent": 1, "n_boot": 1, "n_auth": 1, "get_log": 1, "item": 1, "alia": 1, "field": 1, "1": 1, "session_kei": 1, "target_kei": 1, "second_kei": 1, "tick": 1, "execut": 1, "secondari": 1, "applic": 1, "system": 1, "when": 1, "wa": 1, "run": 1, "truncat": 1, "hash": 1, "previou": 1, "hbhhhhbl16": 1, "32": 1, "exclud": 1, "unpack": 1, "singl": 1, "regard": 1, "self": 1, "correct": 1, "symmetricauth": 1, "card_crypto": 1, "symmetr": 1, "card": 1, "cryptogram": 1, "host": 1, "challeng": 1, "static": 1, "k": 1, "unauthent": 1, "disconnect": 1, "ani": 1, "resourc": 1, "url": [1, 2], "specifi": 1, "If": 1, "attempt": 1, "connector": [1, 2], "localhost": [1, 2], "port": 1, "yhusb": 1, "referenc": 1, "creat": 1, "see": 1, "also": 1, "deriv": 1, "password": 1, "omit": 1, "fetch": 1, "get_device_info": 1, "gener": 1, "get_device_public_kei": 1, "send_cmd": 1, "encod": 1, "associ": 1, "name": 1, "constant": 1, "intenum": 1, "aes128": 1, "50": 1, "aes128_ccm_wrap": 1, "29": 1, "aes128_yubico_authent": 1, "38": 1, "aes128_yubico_otp": 1, "37": 1, "aes192": 1, "51": 1, "aes192_ccm_wrap": 1, "41": 1, "aes192_yubico_otp": 1, "39": 1, "aes256": 1, "52": 1, "aes256_ccm_wrap": 1, "42": 1, "aes256_yubico_otp": 1, "40": 1, "aes_cbc": 1, "54": 1, "aes_ecb": 1, "53": 1, "ec_bp256": 1, "16": 1, "ec_bp384": 1, "17": 1, "ec_bp512": 1, "18": 1, "ec_ecdh": 1, "24": 1, "ec_ecdsa_sha1": 1, "23": 1, "ec_ecdsa_sha256": 1, "43": 1, "ec_ecdsa_sha384": 1, "44": 1, "ec_ecdsa_sha512": 1, "45": 1, "ec_ed25519": 1, "46": 1, "ec_k256": 1, "15": 1, "ec_p224": 1, "47": 1, "ec_p256": 1, "12": 1, "ec_p256_yubico_authent": 1, "49": 1, "ec_p384": 1, "13": 1, "ec_p521": 1, "14": 1, "hmac_sha1": 1, "19": 1, "hmac_sha256": 1, "20": 1, "hmac_sha384": 1, "21": 1, "hmac_sha512": 1, "22": 1, "opaque_data": 1, "30": 1, "opaque_x509_certif": 1, "31": 1, "rsa_3072": 1, "10": 1, "rsa_4096": 1, "11": 1, "rsa_mgf1_sha1": 1, "rsa_mgf1_sha256": 1, "33": 1, "rsa_mgf1_sha384": 1, "34": 1, "rsa_mgf1_sha512": 1, "35": 1, "rsa_oaep_sha1": 1, "25": 1, "rsa_oaep_sha256": 1, "26": 1, "rsa_oaep_sha384": 1, "27": 1, "rsa_oaep_sha512": 1, "28": 1, "rsa_pkcs1_decrypt": 1, "48": 1, "rsa_pkcs1_sha1": 1, "rsa_pkcs1_sha256": 1, "rsa_pkcs1_sha384": 1, "3": 1, "rsa_pkcs1_sha512": 1, "4": 1, "rsa_pss_sha1": 1, "5": 1, "rsa_pss_sha256": 1, "6": 1, "rsa_pss_sha384": 1, "7": 1, "rsa_pss_sha512": 1, "8": 1, "template_ssh": 1, "36": 1, "for_curv": 1, "curv": 1, "member": 1, "cryptographi": 1, "ec": 1, "secp256r1": 1, "to_curv": 1, "hazmat": 1, "primit": 1, "isinst": 1, "to_hash_algorithm": 1, "hashalgorithm": 1, "sha1": 1, "to_key_s": 1, "expect": 1, "size": 1, "fix": 1, "intflag": 1, "flag": 1, "18014398509481983": 1, "change_authentication_kei": 1, "70368744177664": 1, "create_otp_aead": 1, "1073741824": 1, "decrypt_cbc": 1, "4503599627370496": 1, "decrypt_ecb": 1, "1125899906842624": 1, "decrypt_oaep": 1, "1024": 1, "decrypt_otp": 1, "536870912": 1, "decrypt_pkc": 1, "512": 1, "delete_asymmetric_kei": 1, "2199023255552": 1, "delete_authentication_kei": 1, "1099511627776": 1, "delete_hmac_kei": 1, "8796093022208": 1, "delete_opaqu": 1, "549755813888": 1, "delete_otp_aead_kei": 1, "35184372088832": 1, "delete_symmetric_kei": 1, "562949953421312": 1, "delete_templ": 1, "17592186044416": 1, "delete_wrap_kei": 1, "4398046511104": 1, "derive_ecdh": 1, "2048": 1, "encrypt_cbc": 1, "9007199254740992": 1, "encrypt_ecb": 1, "2251799813685248": 1, "exportable_under_wrap": 1, "65536": 1, "export_wrap": 1, "4096": 1, "generate_asymmetric_kei": 1, "generate_hmac_kei": 1, "2097152": 1, "generate_otp_aead_kei": 1, "68719476736": 1, "generate_symmetric_kei": 1, "281474976710656": 1, "generate_wrap_kei": 1, "32768": 1, "16777216": 1, "get_opaqu": 1, "262144": 1, "524288": 1, "get_templ": 1, "67108864": 1, "import_wrap": 1, "8192": 1, "put_asymmetr": 1, "put_authentication_kei": 1, "put_hmac_kei": 1, "1048576": 1, "put_opaqu": 1, "put_otp_aead_kei": 1, "34359738368": 1, "put_symmetric_kei": 1, "140737488355328": 1, "put_templ": 1, "134217728": 1, "put_wrap_kei": 1, "16384": 1, "randomize_otp_aead": 1, "2147483648": 1, "268435456": 1, "rewrap_from_otp_aead_kei": 1, "4294967296": 1, "rewrap_to_otp_aead_kei": 1, "8589934592": 1, "set_opt": 1, "131072": 1, "sign_attestation_certif": 1, "17179869184": 1, "sign_ecdsa": 1, "128": 1, "sign_eddsa": 1, "256": 1, "sign_hmac": 1, "4194304": 1, "sign_pkc": 1, "sign_pss": 1, "64": 1, "sign_ssh_certif": 1, "33554432": 1, "unwrap_data": 1, "274877906944": 1, "verify_hmac": 1, "8388608": 1, "wrap_data": 1, "137438953472": 1, "authenticate_sess": 1, "blink_devic": 1, "107": 1, "108": 1, "close_sess": 1, "97": 1, "113": 1, "111": 1, "89": 1, "96": 1, "decrypt_pkcs1": 1, "73": 1, "delete_object": 1, "88": 1, "87": 1, "device_info": 1, "114": 1, "112": 1, "error": 1, "127": 1, "74": 1, "70": 1, "90": 1, "102": 1, "110": 1, "91": 1, "77": 1, "get_object_info": 1, "78": 1, "67": 1, "80": 1, "81": 1, "get_public_kei": 1, "84": 1, "get_storage_info": 1, "65": 1, "95": 1, "75": 1, "72": 1, "put_asymmetric_kei": 1, "69": 1, "68": 1, "82": 1, "66": 1, "101": 1, "109": 1, "94": 1, "76": 1, "98": 1, "rewrap_otp_aead": 1, "99": 1, "session_messag": 1, "103": 1, "79": 1, "100": 1, "86": 1, "106": 1, "83": 1, "sign_pkcs1": 1, "71": 1, "85": 1, "93": 1, "105": 1, "92": 1, "104": 1, "code": 1, "algorithm_dis": 1, "authentication_fail": 1, "command_unexecut": 1, "255": 1, "demo_mod": 1, "insufficient_permiss": 1, "invalid_command": 1, "invalid_data": 1, "invalid_id": 1, "invalid_otp": 1, "invalid_sess": 1, "log_ful": 1, "object_exist": 1, "object_not_found": 1, "ok": 1, "sessions_ful": 1, "session_fail": 1, "ssh_ca_constraint_viol": 1, "storage_fail": 1, "wrong_length": 1, "list_filt": 1, "asymmetric_kei": 1, "authentication_kei": 1, "hmac_kei": 1, "opaqu": 1, "otp_aead_kei": 1, "symmetric_kei": 1, "templat": 1, "wrap_kei": 1, "algorithm_toggl": 1, "command_audit": 1, "fips_mod": 1, "origin": 1, "enumer": 1, "import": 1, "imported_wrap": 1, "thrown": 1, "librari": 1, "yubihsmauthenticationerror": 1, "yubihsmerror": 1, "fail": 1, "yubihsmconnectionerror": 1, "yubihsmdeviceerror": 1, "baseclass": 1, "yubihsminvalidrequesterror": 1, "abl": 1, "sent": 1, "yubihsminvalidresponseerror": 1, "unexpect": 1, "interact": 1, "asymmetrickei": 1, "seq": 1, "sign": 1, "attest": 1, "attesting_key_id": 1, "x509": 1, "certif": 1, "contain": 1, "identifi": 1, "need": 1, "same": 1, "built": 1, "yubico": 1, "sha256": 1, "mgf_hash": 1, "rsae": 1, "oaep": 1, "ciphertext": 1, "mgf1": 1, "plaintext": 1, "decrypt_pkcs1v1_5": 1, "pkcs1": 1, "v1_5": 1, "ecdh": 1, "exchang": 1, "sp": 1, "800": 1, "56a": 1, "share": 1, "via": 1, "let": 1, "design": 1, "text": 1, "give": 1, "assign": 1, "newli": 1, "get_certif": 1, "ha": 1, "equival": 1, "key_id": 1, "either": 1, "rsapublickei": 1, "depend": 1, "ed25519": 1, "ed25519publickei": 1, "possibl": 1, "requir": 1, "later": 1, "intern": 1, "serialize_ed25519_public_kei": 1, "function": 1, "put": 1, "rsa": 1, "api": 1, "pass": 1, "rsaprivatekei": 1, "ed25519privatekei": 1, "put_certif": 1, "ecdsa": 1, "pad": 1, "signatur": 1, "eddsa": 1, "sign_pkcs1v1_5": 1, "rsassa": 1, "salt_len": 1, "pss": 1, "salt": 1, "template_id": 1, "ssh": 1, "authenticationkei": 1, "two": 1, "separ": 1, "These": 1, "explicitli": 1, "change_kei": 1, "chang": 1, "change_password": 1, "them": 1, "change_public_kei": 1, "delegated_cap": 1, "provid": [1, 2], "put_deriv": 1, "put_public_kei": 1, "hmackei": 1, "calcul": 1, "verifi": 1, "hmac": 1, "succeed": 1, "objectinfo": 1, "structur": 1, "how": 1, "deleg": 1, "qhhhbbbb40sq": 1, "union": 1, "arbitrari": 1, "read": 1, "otpaeadkei": 1, "otp": 1, "aead": 1, "ident": 1, "credenti": 1, "ae": 1, "otpdata": 1, "nonce_id": 1, "nonc": 1, "new_key_id": 1, "anoth": 1, "wrap": 1, "use_count": 1, "session_count": 1, "timestamp_high": 1, "timestamp_low": 1, "counter": 1, "bit": 1, "increment": 1, "each": 1, "power": 1, "cycl": 1, "touch": 1, "high": 1, "part": 1, "timestamp": 1, "low": [1, 2], "symmetrickei": 1, "iv": 1, "cbc": 1, "vector": 1, "ecb": 1, "wrapkei": 1, "export": 1, "other": 1, "under": 1, "wrapped_obj": 1, "previous": 1, "wraped_obj": 1, "unwrap": 1, "uniqu": 1, "combin": 1, "action": 1, "irrevers": 1, "get_info": 1, "extend": 1, "with_sess": 1, "copi": 1, "typevar": 1, "t_object": 1, "bound": 1, "wth": 1, "throughout": 1, "password_to_kei": 1, "main": 1, "12345": [1, 2], "timeout": 2, "msg": 2, "verbatim": 2, "messag": 2, "directli": 2, "abc": 2, "level": 2, "abstract": 2, "suitabl": 2}, "objects": {"": [[1, 0, 0, "-", "yubihsm"]], "yubihsm": [[2, 0, 0, "-", "backends"], [1, 0, 0, "-", "core"], [1, 0, 0, "-", "defs"], [1, 0, 0, "-", "exceptions"], [1, 0, 0, "-", "objects"], [1, 0, 0, "-", "utils"]], "yubihsm.backends": [[2, 1, 1, "", "YhsmBackend"], [2, 3, 1, "", "get_backend"], [2, 0, 0, "-", "http"], [2, 0, 0, "-", "usb"]], "yubihsm.backends.YhsmBackend": [[2, 2, 1, "", "close"], [2, 2, 1, "", "transceive"]], "yubihsm.backends.http": [[2, 1, 1, "", "HttpBackend"]], "yubihsm.backends.http.HttpBackend": [[2, 2, 1, "", "close"], [2, 2, 1, "", "transceive"]], "yubihsm.backends.usb": [[2, 1, 1, "", "UsbBackend"]], "yubihsm.backends.usb.UsbBackend": [[2, 2, 1, "", "close"], [2, 2, 1, "", "transceive"]], "yubihsm.core": [[1, 1, 1, "", "AsymmetricAuth"], [1, 1, 1, "", "AuthSession"], [1, 1, 1, "", "DeviceInfo"], [1, 1, 1, "", "LogData"], [1, 1, 1, "", "LogEntry"], [1, 1, 1, "", "SymmetricAuth"], [1, 1, 1, "", "YubiHsm"]], "yubihsm.core.AsymmetricAuth": [[1, 2, 1, "", "authenticate"], [1, 4, 1, "", "context"], [1, 2, 1, "", "create_session"], [1, 4, 1, "", "epk_hsm"], [1, 2, 1, "", "init_session"], [1, 4, 1, "", "receipt"]], "yubihsm.core.AuthSession": [[1, 2, 1, "", "close"], [1, 2, 1, "", "get_command_audit"], [1, 2, 1, "", "get_enabled_algorithms"], [1, 2, 1, "", "get_fips_mode"], [1, 2, 1, "", "get_force_audit"], [1, 2, 1, "", "get_log_entries"], [1, 2, 1, "", "get_object"], [1, 2, 1, "", "get_option"], [1, 2, 1, "", "get_pseudo_random"], [1, 2, 1, "", "list_objects"], [1, 2, 1, "", "put_option"], [1, 2, 1, "", "reset_device"], [1, 2, 1, "", "send_secure_cmd"], [1, 2, 1, "", "set_command_audit"], [1, 2, 1, "", "set_enabled_algorithms"], [1, 2, 1, "", "set_fips_mode"], [1, 2, 1, "", "set_force_audit"], [1, 2, 1, "", "set_log_index"], [1, 4, 1, "", "sid"]], "yubihsm.core.DeviceInfo": [[1, 5, 1, "", "FORMAT"], [1, 5, 1, "", "LENGTH"], [1, 5, 1, "", "log_size"], [1, 5, 1, "", "log_used"], [1, 2, 1, "", "parse"], [1, 5, 1, "", "serial"], [1, 5, 1, "", "supported_algorithms"], [1, 5, 1, "", "version"]], "yubihsm.core.LogData": [[1, 5, 1, "", "entries"], [1, 5, 1, "", "n_auth"], [1, 5, 1, "", "n_boot"]], "yubihsm.core.LogEntry": [[1, 5, 1, "", "FORMAT"], [1, 5, 1, "", "LENGTH"], [1, 5, 1, "", "command"], [1, 4, 1, "", "data"], [1, 5, 1, "", "digest"], [1, 5, 1, "", "length"], [1, 5, 1, "", "number"], [1, 2, 1, "", "parse"], [1, 5, 1, "", "result"], [1, 5, 1, "", "second_key"], [1, 5, 1, "", "session_key"], [1, 5, 1, "", "target_key"], [1, 5, 1, "", "tick"], [1, 2, 1, "", "validate"]], "yubihsm.core.SymmetricAuth": [[1, 2, 1, "", "authenticate"], [1, 4, 1, "", "card_crypto"], [1, 4, 1, "", "context"], [1, 2, 1, "", "create_session"], [1, 2, 1, "", "init_session"]], "yubihsm.core.YubiHsm": [[1, 2, 1, "", "close"], [1, 2, 1, "", "connect"], [1, 2, 1, "", "create_session"], [1, 2, 1, "", "create_session_asymmetric"], [1, 2, 1, "", "create_session_derived"], [1, 2, 1, "", "get_device_info"], [1, 2, 1, "", "get_device_public_key"], [1, 2, 1, "", "init_session"], [1, 2, 1, "", "init_session_asymmetric"], [1, 2, 1, "", "send_cmd"]], "yubihsm.defs": [[1, 1, 1, "", "ALGORITHM"], [1, 1, 1, "", "AUDIT"], [1, 1, 1, "", "CAPABILITY"], [1, 1, 1, "", "COMMAND"], [1, 1, 1, "", "ERROR"], [1, 1, 1, "", "LIST_FILTER"], [1, 1, 1, "", "OBJECT"], [1, 1, 1, "", "OPTION"], [1, 1, 1, "", "ORIGIN"]], "yubihsm.defs.ALGORITHM": [[1, 5, 1, "", "AES128"], [1, 5, 1, "", "AES128_CCM_WRAP"], [1, 5, 1, "", "AES128_YUBICO_AUTHENTICATION"], [1, 5, 1, "", "AES128_YUBICO_OTP"], [1, 5, 1, "", "AES192"], [1, 5, 1, "", "AES192_CCM_WRAP"], [1, 5, 1, "", "AES192_YUBICO_OTP"], [1, 5, 1, "", "AES256"], [1, 5, 1, "", "AES256_CCM_WRAP"], [1, 5, 1, "", "AES256_YUBICO_OTP"], [1, 5, 1, "", "AES_CBC"], [1, 5, 1, "", "AES_ECB"], [1, 5, 1, "", "EC_BP256"], [1, 5, 1, "", "EC_BP384"], [1, 5, 1, "", "EC_BP512"], [1, 5, 1, "", "EC_ECDH"], [1, 5, 1, "", "EC_ECDSA_SHA1"], [1, 5, 1, "", "EC_ECDSA_SHA256"], [1, 5, 1, "", "EC_ECDSA_SHA384"], [1, 5, 1, "", "EC_ECDSA_SHA512"], [1, 5, 1, "", "EC_ED25519"], [1, 5, 1, "", "EC_K256"], [1, 5, 1, "", "EC_P224"], [1, 5, 1, "", "EC_P256"], [1, 5, 1, "", "EC_P256_YUBICO_AUTHENTICATION"], [1, 5, 1, "", "EC_P384"], [1, 5, 1, "", "EC_P521"], [1, 5, 1, "", "HMAC_SHA1"], [1, 5, 1, "", "HMAC_SHA256"], [1, 5, 1, "", "HMAC_SHA384"], [1, 5, 1, "", "HMAC_SHA512"], [1, 5, 1, "", "OPAQUE_DATA"], [1, 5, 1, "", "OPAQUE_X509_CERTIFICATE"], [1, 5, 1, "", "RSA_2048"], [1, 5, 1, "", "RSA_3072"], [1, 5, 1, "", "RSA_4096"], [1, 5, 1, "", "RSA_MGF1_SHA1"], [1, 5, 1, "", "RSA_MGF1_SHA256"], [1, 5, 1, "", "RSA_MGF1_SHA384"], [1, 5, 1, "", "RSA_MGF1_SHA512"], [1, 5, 1, "", "RSA_OAEP_SHA1"], [1, 5, 1, "", "RSA_OAEP_SHA256"], [1, 5, 1, "", "RSA_OAEP_SHA384"], [1, 5, 1, "", "RSA_OAEP_SHA512"], [1, 5, 1, "", "RSA_PKCS1_DECRYPT"], [1, 5, 1, "", "RSA_PKCS1_SHA1"], [1, 5, 1, "", "RSA_PKCS1_SHA256"], [1, 5, 1, "", "RSA_PKCS1_SHA384"], [1, 5, 1, "", "RSA_PKCS1_SHA512"], [1, 5, 1, "", "RSA_PSS_SHA1"], [1, 5, 1, "", "RSA_PSS_SHA256"], [1, 5, 1, "", "RSA_PSS_SHA384"], [1, 5, 1, "", "RSA_PSS_SHA512"], [1, 5, 1, "", "TEMPLATE_SSH"], [1, 2, 1, "", "for_curve"], [1, 2, 1, "", "to_curve"], [1, 2, 1, "", "to_hash_algorithm"], [1, 2, 1, "", "to_key_size"]], "yubihsm.defs.AUDIT": [[1, 5, 1, "", "FIXED"], [1, 5, 1, "", "OFF"], [1, 5, 1, "", "ON"]], "yubihsm.defs.CAPABILITY": [[1, 5, 1, "", "ALL"], [1, 5, 1, "", "CHANGE_AUTHENTICATION_KEY"], [1, 5, 1, "", "CREATE_OTP_AEAD"], [1, 5, 1, "", "DECRYPT_CBC"], [1, 5, 1, "", "DECRYPT_ECB"], [1, 5, 1, "", "DECRYPT_OAEP"], [1, 5, 1, "", "DECRYPT_OTP"], [1, 5, 1, "", "DECRYPT_PKCS"], [1, 5, 1, "", "DELETE_ASYMMETRIC_KEY"], [1, 5, 1, "", "DELETE_AUTHENTICATION_KEY"], [1, 5, 1, "", "DELETE_HMAC_KEY"], [1, 5, 1, "", "DELETE_OPAQUE"], [1, 5, 1, "", "DELETE_OTP_AEAD_KEY"], [1, 5, 1, "", "DELETE_SYMMETRIC_KEY"], [1, 5, 1, "", "DELETE_TEMPLATE"], [1, 5, 1, "", "DELETE_WRAP_KEY"], [1, 5, 1, "", "DERIVE_ECDH"], [1, 5, 1, "", "ENCRYPT_CBC"], [1, 5, 1, "", "ENCRYPT_ECB"], [1, 5, 1, "", "EXPORTABLE_UNDER_WRAP"], [1, 5, 1, "", "EXPORT_WRAPPED"], [1, 5, 1, "", "GENERATE_ASYMMETRIC_KEY"], [1, 5, 1, "", "GENERATE_HMAC_KEY"], [1, 5, 1, "", "GENERATE_OTP_AEAD_KEY"], [1, 5, 1, "", "GENERATE_SYMMETRIC_KEY"], [1, 5, 1, "", "GENERATE_WRAP_KEY"], [1, 5, 1, "", "GET_LOG_ENTRIES"], [1, 5, 1, "", "GET_OPAQUE"], [1, 5, 1, "", "GET_OPTION"], [1, 5, 1, "", "GET_PSEUDO_RANDOM"], [1, 5, 1, "", "GET_TEMPLATE"], [1, 5, 1, "", "IMPORT_WRAPPED"], [1, 5, 1, "", "NONE"], [1, 5, 1, "", "PUT_ASYMMETRIC"], [1, 5, 1, "", "PUT_AUTHENTICATION_KEY"], [1, 5, 1, "", "PUT_HMAC_KEY"], [1, 5, 1, "", "PUT_OPAQUE"], [1, 5, 1, "", "PUT_OTP_AEAD_KEY"], [1, 5, 1, "", "PUT_SYMMETRIC_KEY"], [1, 5, 1, "", "PUT_TEMPLATE"], [1, 5, 1, "", "PUT_WRAP_KEY"], [1, 5, 1, "", "RANDOMIZE_OTP_AEAD"], [1, 5, 1, "", "RESET_DEVICE"], [1, 5, 1, "", "REWRAP_FROM_OTP_AEAD_KEY"], [1, 5, 1, "", "REWRAP_TO_OTP_AEAD_KEY"], [1, 5, 1, "", "SET_OPTION"], [1, 5, 1, "", "SIGN_ATTESTATION_CERTIFICATE"], [1, 5, 1, "", "SIGN_ECDSA"], [1, 5, 1, "", "SIGN_EDDSA"], [1, 5, 1, "", "SIGN_HMAC"], [1, 5, 1, "", "SIGN_PKCS"], [1, 5, 1, "", "SIGN_PSS"], [1, 5, 1, "", "SIGN_SSH_CERTIFICATE"], [1, 5, 1, "", "UNWRAP_DATA"], [1, 5, 1, "", "VERIFY_HMAC"], [1, 5, 1, "", "WRAP_DATA"]], "yubihsm.defs.COMMAND": [[1, 5, 1, "", "AUTHENTICATE_SESSION"], [1, 5, 1, "", "BLINK_DEVICE"], [1, 5, 1, "", "CHANGE_AUTHENTICATION_KEY"], [1, 5, 1, "", "CLOSE_SESSION"], [1, 5, 1, "", "CREATE_OTP_AEAD"], [1, 5, 1, "", "CREATE_SESSION"], [1, 5, 1, "", "DECRYPT_CBC"], [1, 5, 1, "", "DECRYPT_ECB"], [1, 5, 1, "", "DECRYPT_OAEP"], [1, 5, 1, "", "DECRYPT_OTP"], [1, 5, 1, "", "DECRYPT_PKCS1"], [1, 5, 1, "", "DELETE_OBJECT"], [1, 5, 1, "", "DERIVE_ECDH"], [1, 5, 1, "", "DEVICE_INFO"], [1, 5, 1, "", "ECHO"], [1, 5, 1, "", "ENCRYPT_CBC"], [1, 5, 1, "", "ENCRYPT_ECB"], [1, 5, 1, "", "ERROR"], [1, 5, 1, "", "EXPORT_WRAPPED"], [1, 5, 1, "", "GENERATE_ASYMMETRIC_KEY"], [1, 5, 1, "", "GENERATE_HMAC_KEY"], [1, 5, 1, "", "GENERATE_OTP_AEAD_KEY"], [1, 5, 1, "", "GENERATE_SYMMETRIC_KEY"], [1, 5, 1, "", "GENERATE_WRAP_KEY"], [1, 5, 1, "", "GET_DEVICE_PUBLIC_KEY"], [1, 5, 1, "", "GET_LOG_ENTRIES"], [1, 5, 1, "", "GET_OBJECT_INFO"], [1, 5, 1, "", "GET_OPAQUE"], [1, 5, 1, "", "GET_OPTION"], [1, 5, 1, "", "GET_PSEUDO_RANDOM"], [1, 5, 1, "", "GET_PUBLIC_KEY"], [1, 5, 1, "", "GET_STORAGE_INFO"], [1, 5, 1, "", "GET_TEMPLATE"], [1, 5, 1, "", "IMPORT_WRAPPED"], [1, 5, 1, "", "LIST_OBJECTS"], [1, 5, 1, "", "PUT_ASYMMETRIC_KEY"], [1, 5, 1, "", "PUT_AUTHENTICATION_KEY"], [1, 5, 1, "", "PUT_HMAC_KEY"], [1, 5, 1, "", "PUT_OPAQUE"], [1, 5, 1, "", "PUT_OTP_AEAD_KEY"], [1, 5, 1, "", "PUT_SYMMETRIC_KEY"], [1, 5, 1, "", "PUT_TEMPLATE"], [1, 5, 1, "", "PUT_WRAP_KEY"], [1, 5, 1, "", "RANDOMIZE_OTP_AEAD"], [1, 5, 1, "", "RESET_DEVICE"], [1, 5, 1, "", "REWRAP_OTP_AEAD"], [1, 5, 1, "", "SESSION_MESSAGE"], [1, 5, 1, "", "SET_LOG_INDEX"], [1, 5, 1, "", "SET_OPTION"], [1, 5, 1, "", "SIGN_ATTESTATION_CERTIFICATE"], [1, 5, 1, "", "SIGN_ECDSA"], [1, 5, 1, "", "SIGN_EDDSA"], [1, 5, 1, "", "SIGN_HMAC"], [1, 5, 1, "", "SIGN_PKCS1"], [1, 5, 1, "", "SIGN_PSS"], [1, 5, 1, "", "SIGN_SSH_CERTIFICATE"], [1, 5, 1, "", "UNWRAP_DATA"], [1, 5, 1, "", "VERIFY_HMAC"], [1, 5, 1, "", "WRAP_DATA"]], "yubihsm.defs.ERROR": [[1, 5, 1, "", "ALGORITHM_DISABLED"], [1, 5, 1, "", "AUTHENTICATION_FAILED"], [1, 5, 1, "", "COMMAND_UNEXECUTED"], [1, 5, 1, "", "DEMO_MODE"], [1, 5, 1, "", "INSUFFICIENT_PERMISSIONS"], [1, 5, 1, "", "INVALID_COMMAND"], [1, 5, 1, "", "INVALID_DATA"], [1, 5, 1, "", "INVALID_ID"], [1, 5, 1, "", "INVALID_OTP"], [1, 5, 1, "", "INVALID_SESSION"], [1, 5, 1, "", "LOG_FULL"], [1, 5, 1, "", "OBJECT_EXISTS"], [1, 5, 1, "", "OBJECT_NOT_FOUND"], [1, 5, 1, "", "OK"], [1, 5, 1, "", "SESSIONS_FULL"], [1, 5, 1, "", "SESSION_FAILED"], [1, 5, 1, "", "SSH_CA_CONSTRAINT_VIOLATION"], [1, 5, 1, "", "STORAGE_FAILED"], [1, 5, 1, "", "WRONG_LENGTH"]], "yubihsm.defs.LIST_FILTER": [[1, 5, 1, "", "ALGORITHM"], [1, 5, 1, "", "CAPABILITIES"], [1, 5, 1, "", "DOMAINS"], [1, 5, 1, "", "ID"], [1, 5, 1, "", "LABEL"], [1, 5, 1, "", "TYPE"]], "yubihsm.defs.OBJECT": [[1, 5, 1, "", "ASYMMETRIC_KEY"], [1, 5, 1, "", "AUTHENTICATION_KEY"], [1, 5, 1, "", "HMAC_KEY"], [1, 5, 1, "", "OPAQUE"], [1, 5, 1, "", "OTP_AEAD_KEY"], [1, 5, 1, "", "SYMMETRIC_KEY"], [1, 5, 1, "", "TEMPLATE"], [1, 5, 1, "", "WRAP_KEY"]], "yubihsm.defs.OPTION": [[1, 5, 1, "", "ALGORITHM_TOGGLE"], [1, 5, 1, "", "COMMAND_AUDIT"], [1, 5, 1, "", "FIPS_MODE"], [1, 5, 1, "", "FORCE_AUDIT"]], "yubihsm.defs.ORIGIN": [[1, 5, 1, "", "GENERATED"], [1, 5, 1, "", "IMPORTED"], [1, 5, 1, "", "IMPORTED_WRAPPED"]], "yubihsm.exceptions": [[1, 6, 1, "", "YubiHsmAuthenticationError"], [1, 6, 1, "", "YubiHsmConnectionError"], [1, 6, 1, "", "YubiHsmDeviceError"], [1, 6, 1, "", "YubiHsmError"], [1, 6, 1, "", "YubiHsmInvalidRequestError"], [1, 6, 1, "", "YubiHsmInvalidResponseError"]], "yubihsm.objects": [[1, 1, 1, "", "AsymmetricKey"], [1, 1, 1, "", "AuthenticationKey"], [1, 1, 1, "", "HmacKey"], [1, 1, 1, "", "ObjectInfo"], [1, 1, 1, "", "Opaque"], [1, 1, 1, "", "OtpAeadKey"], [1, 1, 1, "", "OtpData"], [1, 1, 1, "", "SymmetricKey"], [1, 1, 1, "", "Template"], [1, 1, 1, "", "WrapKey"], [1, 1, 1, "", "YhsmObject"]], "yubihsm.objects.AsymmetricKey": [[1, 2, 1, "", "attest"], [1, 2, 1, "", "decrypt_oaep"], [1, 2, 1, "", "decrypt_pkcs1v1_5"], [1, 2, 1, "", "derive_ecdh"], [1, 2, 1, "", "generate"], [1, 2, 1, "", "get_certificate"], [1, 2, 1, "", "get_public_key"], [1, 5, 1, "", "object_type"], [1, 2, 1, "", "put"], [1, 2, 1, "", "put_certificate"], [1, 2, 1, "", "sign_ecdsa"], [1, 2, 1, "", "sign_eddsa"], [1, 2, 1, "", "sign_pkcs1v1_5"], [1, 2, 1, "", "sign_pss"], [1, 2, 1, "", "sign_ssh_certificate"]], "yubihsm.objects.AuthenticationKey": [[1, 2, 1, "", "change_key"], [1, 2, 1, "", "change_password"], [1, 2, 1, "", "change_public_key"], [1, 5, 1, "", "object_type"], [1, 2, 1, "", "put"], [1, 2, 1, "", "put_derived"], [1, 2, 1, "", "put_public_key"]], "yubihsm.objects.HmacKey": [[1, 2, 1, "", "generate"], [1, 5, 1, "", "object_type"], [1, 2, 1, "", "put"], [1, 2, 1, "", "sign_hmac"], [1, 2, 1, "", "verify_hmac"]], "yubihsm.objects.ObjectInfo": [[1, 5, 1, "", "FORMAT"], [1, 5, 1, "", "LENGTH"], [1, 5, 1, "", "algorithm"], [1, 5, 1, "", "capabilities"], [1, 5, 1, "", "delegated_capabilities"], [1, 5, 1, "", "domains"], [1, 5, 1, "", "id"], [1, 5, 1, "", "label"], [1, 5, 1, "", "object_type"], [1, 5, 1, "", "origin"], [1, 2, 1, "", "parse"], [1, 5, 1, "", "sequence"], [1, 5, 1, "", "size"]], "yubihsm.objects.Opaque": [[1, 2, 1, "", "get"], [1, 2, 1, "", "get_certificate"], [1, 5, 1, "", "object_type"], [1, 2, 1, "", "put"], [1, 2, 1, "", "put_certificate"]], "yubihsm.objects.OtpAeadKey": [[1, 2, 1, "", "create_otp_aead"], [1, 2, 1, "", "decrypt_otp"], [1, 2, 1, "", "generate"], [1, 5, 1, "", "object_type"], [1, 2, 1, "", "put"], [1, 2, 1, "", "randomize_otp_aead"], [1, 2, 1, "", "rewrap_otp_aead"]], "yubihsm.objects.OtpData": [[1, 5, 1, "", "session_counter"], [1, 5, 1, "", "timestamp_high"], [1, 5, 1, "", "timestamp_low"], [1, 5, 1, "", "use_counter"]], "yubihsm.objects.SymmetricKey": [[1, 2, 1, "", "decrypt_cbc"], [1, 2, 1, "", "decrypt_ecb"], [1, 2, 1, "", "encrypt_cbc"], [1, 2, 1, "", "encrypt_ecb"], [1, 2, 1, "", "generate"], [1, 5, 1, "", "object_type"], [1, 2, 1, "", "put"]], "yubihsm.objects.Template": [[1, 2, 1, "", "get"], [1, 5, 1, "", "object_type"], [1, 2, 1, "", "put"]], "yubihsm.objects.WrapKey": [[1, 2, 1, "", "export_wrapped"], [1, 2, 1, "", "generate"], [1, 2, 1, "", "import_wrapped"], [1, 5, 1, "", "object_type"], [1, 2, 1, "", "put"], [1, 2, 1, "", "unwrap_data"], [1, 2, 1, "", "wrap_data"]], "yubihsm.objects.YhsmObject": [[1, 2, 1, "", "delete"], [1, 2, 1, "", "get_info"], [1, 5, 1, "", "object_type"], [1, 2, 1, "", "with_session"]], "yubihsm.utils": [[1, 3, 1, "", "password_to_key"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method", "3": "py:function", "4": "py:property", "5": "py:attribute", "6": "py:exception"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "function", "Python function"], "4": ["py", "property", "Python property"], "5": ["py", "attribute", "Python attribute"], "6": ["py", "exception", "Python exception"]}, "titleterms": {"welcom": 0, "python": 0, "yubihsm": [0, 1, 2], "": 0, "document": 0, "indic": 0, "tabl": 0, "packag": [1, 2], "subpackag": 1, "submodul": [1, 2], "core": 1, "modul": [1, 2], "def": 1, "except": 1, "object": 1, "util": 1, "content": [1, 2], "backend": 2, "http": 2, "usb": 2}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.intersphinx": 1, "sphinx.ext.viewcode": 1, "sphinx": 58}, "alltitles": {"Welcome to python-yubihsm\u2019s documentation!": [[0, "welcome-to-python-yubihsm-s-documentation"]], "Indices and tables": [[0, "indices-and-tables"]], "yubihsm package": [[1, "yubihsm-package"]], "Subpackages": [[1, "subpackages"]], "Submodules": [[1, "submodules"], [2, "submodules"]], "yubihsm.core module": [[1, "module-yubihsm.core"]], "yubihsm.defs module": [[1, "module-yubihsm.defs"]], "yubihsm.exceptions module": [[1, "module-yubihsm.exceptions"]], "yubihsm.objects module": [[1, "module-yubihsm.objects"]], "yubihsm.utils module": [[1, "module-yubihsm.utils"]], "Module contents": [[1, "module-yubihsm"], [2, "module-yubihsm.backends"]], "yubihsm.backends package": [[2, "yubihsm-backends-package"]], "yubihsm.backends.http module": [[2, "module-yubihsm.backends.http"]], "yubihsm.backends.usb module": [[2, "module-yubihsm.backends.usb"]]}, "indexentries": {"aes128 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.AES128"]], "aes128_ccm_wrap (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.AES128_CCM_WRAP"]], "aes128_yubico_authentication (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.AES128_YUBICO_AUTHENTICATION"]], "aes128_yubico_otp (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.AES128_YUBICO_OTP"]], "aes192 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.AES192"]], "aes192_ccm_wrap (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.AES192_CCM_WRAP"]], "aes192_yubico_otp (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.AES192_YUBICO_OTP"]], "aes256 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.AES256"]], "aes256_ccm_wrap (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.AES256_CCM_WRAP"]], "aes256_yubico_otp (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.AES256_YUBICO_OTP"]], "aes_cbc (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.AES_CBC"]], "aes_ecb (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.AES_ECB"]], "algorithm (class in yubihsm.defs)": [[1, "yubihsm.defs.ALGORITHM"]], "algorithm (yubihsm.defs.list_filter attribute)": [[1, "yubihsm.defs.LIST_FILTER.ALGORITHM"]], "algorithm_disabled (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.ALGORITHM_DISABLED"]], "algorithm_toggle (yubihsm.defs.option attribute)": [[1, "yubihsm.defs.OPTION.ALGORITHM_TOGGLE"]], "all (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.ALL"]], "asymmetric_key (yubihsm.defs.object attribute)": [[1, "yubihsm.defs.OBJECT.ASYMMETRIC_KEY"]], "audit (class in yubihsm.defs)": [[1, "yubihsm.defs.AUDIT"]], "authenticate_session (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.AUTHENTICATE_SESSION"]], "authentication_failed (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.AUTHENTICATION_FAILED"]], "authentication_key (yubihsm.defs.object attribute)": [[1, "yubihsm.defs.OBJECT.AUTHENTICATION_KEY"]], "asymmetricauth (class in yubihsm.core)": [[1, "yubihsm.core.AsymmetricAuth"]], "asymmetrickey (class in yubihsm.objects)": [[1, "yubihsm.objects.AsymmetricKey"]], "authsession (class in yubihsm.core)": [[1, "yubihsm.core.AuthSession"]], "authenticationkey (class in yubihsm.objects)": [[1, "yubihsm.objects.AuthenticationKey"]], "blink_device (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.BLINK_DEVICE"]], "capabilities (yubihsm.defs.list_filter attribute)": [[1, "yubihsm.defs.LIST_FILTER.CAPABILITIES"]], "capability (class in yubihsm.defs)": [[1, "yubihsm.defs.CAPABILITY"]], "change_authentication_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.CHANGE_AUTHENTICATION_KEY"]], "change_authentication_key (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.CHANGE_AUTHENTICATION_KEY"]], "close_session (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.CLOSE_SESSION"]], "command (class in yubihsm.defs)": [[1, "yubihsm.defs.COMMAND"]], "command_audit (yubihsm.defs.option attribute)": [[1, "yubihsm.defs.OPTION.COMMAND_AUDIT"]], "command_unexecuted (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.COMMAND_UNEXECUTED"]], "create_otp_aead (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.CREATE_OTP_AEAD"]], "create_otp_aead (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.CREATE_OTP_AEAD"]], "create_session (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.CREATE_SESSION"]], "decrypt_cbc (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.DECRYPT_CBC"]], "decrypt_cbc (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.DECRYPT_CBC"]], "decrypt_ecb (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.DECRYPT_ECB"]], "decrypt_ecb (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.DECRYPT_ECB"]], "decrypt_oaep (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.DECRYPT_OAEP"]], "decrypt_oaep (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.DECRYPT_OAEP"]], "decrypt_otp (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.DECRYPT_OTP"]], "decrypt_otp (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.DECRYPT_OTP"]], "decrypt_pkcs (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.DECRYPT_PKCS"]], "decrypt_pkcs1 (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.DECRYPT_PKCS1"]], "delete_asymmetric_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.DELETE_ASYMMETRIC_KEY"]], "delete_authentication_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.DELETE_AUTHENTICATION_KEY"]], "delete_hmac_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.DELETE_HMAC_KEY"]], "delete_object (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.DELETE_OBJECT"]], "delete_opaque (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.DELETE_OPAQUE"]], "delete_otp_aead_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.DELETE_OTP_AEAD_KEY"]], "delete_symmetric_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.DELETE_SYMMETRIC_KEY"]], "delete_template (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.DELETE_TEMPLATE"]], "delete_wrap_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.DELETE_WRAP_KEY"]], "demo_mode (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.DEMO_MODE"]], "derive_ecdh (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.DERIVE_ECDH"]], "derive_ecdh (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.DERIVE_ECDH"]], "device_info (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.DEVICE_INFO"]], "domains (yubihsm.defs.list_filter attribute)": [[1, "yubihsm.defs.LIST_FILTER.DOMAINS"]], "deviceinfo (class in yubihsm.core)": [[1, "yubihsm.core.DeviceInfo"]], "echo (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.ECHO"]], "ec_bp256 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_BP256"]], "ec_bp384 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_BP384"]], "ec_bp512 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_BP512"]], "ec_ecdh (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_ECDH"]], "ec_ecdsa_sha1 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_ECDSA_SHA1"]], "ec_ecdsa_sha256 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_ECDSA_SHA256"]], "ec_ecdsa_sha384 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_ECDSA_SHA384"]], "ec_ecdsa_sha512 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_ECDSA_SHA512"]], "ec_ed25519 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_ED25519"]], "ec_k256 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_K256"]], "ec_p224 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_P224"]], "ec_p256 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_P256"]], "ec_p256_yubico_authentication (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_P256_YUBICO_AUTHENTICATION"]], "ec_p384 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_P384"]], "ec_p521 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.EC_P521"]], "encrypt_cbc (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.ENCRYPT_CBC"]], "encrypt_cbc (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.ENCRYPT_CBC"]], "encrypt_ecb (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.ENCRYPT_ECB"]], "encrypt_ecb (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.ENCRYPT_ECB"]], "error (class in yubihsm.defs)": [[1, "yubihsm.defs.ERROR"]], "error (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.ERROR"]], "exportable_under_wrap (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.EXPORTABLE_UNDER_WRAP"]], "export_wrapped (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.EXPORT_WRAPPED"]], "export_wrapped (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.EXPORT_WRAPPED"]], "fips_mode (yubihsm.defs.option attribute)": [[1, "yubihsm.defs.OPTION.FIPS_MODE"]], "fixed (yubihsm.defs.audit attribute)": [[1, "yubihsm.defs.AUDIT.FIXED"]], "force_audit (yubihsm.defs.option attribute)": [[1, "yubihsm.defs.OPTION.FORCE_AUDIT"]], "format (yubihsm.core.deviceinfo attribute)": [[1, "yubihsm.core.DeviceInfo.FORMAT"]], "format (yubihsm.core.logentry attribute)": [[1, "yubihsm.core.LogEntry.FORMAT"]], "format (yubihsm.objects.objectinfo attribute)": [[1, "yubihsm.objects.ObjectInfo.FORMAT"]], "generated (yubihsm.defs.origin attribute)": [[1, "yubihsm.defs.ORIGIN.GENERATED"]], "generate_asymmetric_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.GENERATE_ASYMMETRIC_KEY"]], "generate_asymmetric_key (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.GENERATE_ASYMMETRIC_KEY"]], "generate_hmac_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.GENERATE_HMAC_KEY"]], "generate_hmac_key (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.GENERATE_HMAC_KEY"]], "generate_otp_aead_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.GENERATE_OTP_AEAD_KEY"]], "generate_otp_aead_key (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.GENERATE_OTP_AEAD_KEY"]], "generate_symmetric_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.GENERATE_SYMMETRIC_KEY"]], "generate_symmetric_key (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.GENERATE_SYMMETRIC_KEY"]], "generate_wrap_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.GENERATE_WRAP_KEY"]], "generate_wrap_key (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.GENERATE_WRAP_KEY"]], "get_device_public_key (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.GET_DEVICE_PUBLIC_KEY"]], "get_log_entries (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.GET_LOG_ENTRIES"]], "get_log_entries (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.GET_LOG_ENTRIES"]], "get_object_info (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.GET_OBJECT_INFO"]], "get_opaque (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.GET_OPAQUE"]], "get_opaque (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.GET_OPAQUE"]], "get_option (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.GET_OPTION"]], "get_option (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.GET_OPTION"]], "get_pseudo_random (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.GET_PSEUDO_RANDOM"]], "get_pseudo_random (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.GET_PSEUDO_RANDOM"]], "get_public_key (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.GET_PUBLIC_KEY"]], "get_storage_info (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.GET_STORAGE_INFO"]], "get_template (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.GET_TEMPLATE"]], "get_template (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.GET_TEMPLATE"]], "hmac_key (yubihsm.defs.object attribute)": [[1, "yubihsm.defs.OBJECT.HMAC_KEY"]], "hmac_sha1 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.HMAC_SHA1"]], "hmac_sha256 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.HMAC_SHA256"]], "hmac_sha384 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.HMAC_SHA384"]], "hmac_sha512 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.HMAC_SHA512"]], "hmackey (class in yubihsm.objects)": [[1, "yubihsm.objects.HmacKey"]], "id (yubihsm.defs.list_filter attribute)": [[1, "yubihsm.defs.LIST_FILTER.ID"]], "imported (yubihsm.defs.origin attribute)": [[1, "yubihsm.defs.ORIGIN.IMPORTED"]], "imported_wrapped (yubihsm.defs.origin attribute)": [[1, "yubihsm.defs.ORIGIN.IMPORTED_WRAPPED"]], "import_wrapped (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.IMPORT_WRAPPED"]], "import_wrapped (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.IMPORT_WRAPPED"]], "insufficient_permissions (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.INSUFFICIENT_PERMISSIONS"]], "invalid_command (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.INVALID_COMMAND"]], "invalid_data (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.INVALID_DATA"]], "invalid_id (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.INVALID_ID"]], "invalid_otp (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.INVALID_OTP"]], "invalid_session (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.INVALID_SESSION"]], "label (yubihsm.defs.list_filter attribute)": [[1, "yubihsm.defs.LIST_FILTER.LABEL"]], "length (yubihsm.core.deviceinfo attribute)": [[1, "yubihsm.core.DeviceInfo.LENGTH"]], "length (yubihsm.core.logentry attribute)": [[1, "yubihsm.core.LogEntry.LENGTH"], [1, "yubihsm.core.LogEntry.length"]], "length (yubihsm.objects.objectinfo attribute)": [[1, "yubihsm.objects.ObjectInfo.LENGTH"]], "list_filter (class in yubihsm.defs)": [[1, "yubihsm.defs.LIST_FILTER"]], "list_objects (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.LIST_OBJECTS"]], "log_full (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.LOG_FULL"]], "logdata (class in yubihsm.core)": [[1, "yubihsm.core.LogData"]], "logentry (class in yubihsm.core)": [[1, "yubihsm.core.LogEntry"]], "none (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.NONE"]], "object (class in yubihsm.defs)": [[1, "yubihsm.defs.OBJECT"]], "object_exists (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.OBJECT_EXISTS"]], "object_not_found (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.OBJECT_NOT_FOUND"]], "off (yubihsm.defs.audit attribute)": [[1, "yubihsm.defs.AUDIT.OFF"]], "ok (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.OK"]], "on (yubihsm.defs.audit attribute)": [[1, "yubihsm.defs.AUDIT.ON"]], "opaque (yubihsm.defs.object attribute)": [[1, "yubihsm.defs.OBJECT.OPAQUE"]], "opaque_data (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.OPAQUE_DATA"]], "opaque_x509_certificate (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.OPAQUE_X509_CERTIFICATE"]], "option (class in yubihsm.defs)": [[1, "yubihsm.defs.OPTION"]], "origin (class in yubihsm.defs)": [[1, "yubihsm.defs.ORIGIN"]], "otp_aead_key (yubihsm.defs.object attribute)": [[1, "yubihsm.defs.OBJECT.OTP_AEAD_KEY"]], "objectinfo (class in yubihsm.objects)": [[1, "yubihsm.objects.ObjectInfo"]], "opaque (class in yubihsm.objects)": [[1, "yubihsm.objects.Opaque"]], "otpaeadkey (class in yubihsm.objects)": [[1, "yubihsm.objects.OtpAeadKey"]], "otpdata (class in yubihsm.objects)": [[1, "yubihsm.objects.OtpData"]], "put_asymmetric (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.PUT_ASYMMETRIC"]], "put_asymmetric_key (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.PUT_ASYMMETRIC_KEY"]], "put_authentication_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.PUT_AUTHENTICATION_KEY"]], "put_authentication_key (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.PUT_AUTHENTICATION_KEY"]], "put_hmac_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.PUT_HMAC_KEY"]], "put_hmac_key (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.PUT_HMAC_KEY"]], "put_opaque (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.PUT_OPAQUE"]], "put_opaque (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.PUT_OPAQUE"]], "put_otp_aead_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.PUT_OTP_AEAD_KEY"]], "put_otp_aead_key (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.PUT_OTP_AEAD_KEY"]], "put_symmetric_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.PUT_SYMMETRIC_KEY"]], "put_symmetric_key (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.PUT_SYMMETRIC_KEY"]], "put_template (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.PUT_TEMPLATE"]], "put_template (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.PUT_TEMPLATE"]], "put_wrap_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.PUT_WRAP_KEY"]], "put_wrap_key (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.PUT_WRAP_KEY"]], "randomize_otp_aead (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.RANDOMIZE_OTP_AEAD"]], "randomize_otp_aead (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.RANDOMIZE_OTP_AEAD"]], "reset_device (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.RESET_DEVICE"]], "reset_device (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.RESET_DEVICE"]], "rewrap_from_otp_aead_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.REWRAP_FROM_OTP_AEAD_KEY"]], "rewrap_otp_aead (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.REWRAP_OTP_AEAD"]], "rewrap_to_otp_aead_key (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.REWRAP_TO_OTP_AEAD_KEY"]], "rsa_2048 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_2048"]], "rsa_3072 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_3072"]], "rsa_4096 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_4096"]], "rsa_mgf1_sha1 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_MGF1_SHA1"]], "rsa_mgf1_sha256 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_MGF1_SHA256"]], "rsa_mgf1_sha384 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_MGF1_SHA384"]], "rsa_mgf1_sha512 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_MGF1_SHA512"]], "rsa_oaep_sha1 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_OAEP_SHA1"]], "rsa_oaep_sha256 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_OAEP_SHA256"]], "rsa_oaep_sha384 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_OAEP_SHA384"]], "rsa_oaep_sha512 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_OAEP_SHA512"]], "rsa_pkcs1_decrypt (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_PKCS1_DECRYPT"]], "rsa_pkcs1_sha1 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_PKCS1_SHA1"]], "rsa_pkcs1_sha256 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_PKCS1_SHA256"]], "rsa_pkcs1_sha384 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_PKCS1_SHA384"]], "rsa_pkcs1_sha512 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_PKCS1_SHA512"]], "rsa_pss_sha1 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_PSS_SHA1"]], "rsa_pss_sha256 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_PSS_SHA256"]], "rsa_pss_sha384 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_PSS_SHA384"]], "rsa_pss_sha512 (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.RSA_PSS_SHA512"]], "sessions_full (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.SESSIONS_FULL"]], "session_failed (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.SESSION_FAILED"]], "session_message (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.SESSION_MESSAGE"]], "set_log_index (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.SET_LOG_INDEX"]], "set_option (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.SET_OPTION"]], "set_option (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.SET_OPTION"]], "sign_attestation_certificate (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.SIGN_ATTESTATION_CERTIFICATE"]], "sign_attestation_certificate (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.SIGN_ATTESTATION_CERTIFICATE"]], "sign_ecdsa (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.SIGN_ECDSA"]], "sign_ecdsa (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.SIGN_ECDSA"]], "sign_eddsa (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.SIGN_EDDSA"]], "sign_eddsa (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.SIGN_EDDSA"]], "sign_hmac (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.SIGN_HMAC"]], "sign_hmac (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.SIGN_HMAC"]], "sign_pkcs (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.SIGN_PKCS"]], "sign_pkcs1 (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.SIGN_PKCS1"]], "sign_pss (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.SIGN_PSS"]], "sign_pss (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.SIGN_PSS"]], "sign_ssh_certificate (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.SIGN_SSH_CERTIFICATE"]], "sign_ssh_certificate (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.SIGN_SSH_CERTIFICATE"]], "ssh_ca_constraint_violation (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.SSH_CA_CONSTRAINT_VIOLATION"]], "storage_failed (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.STORAGE_FAILED"]], "symmetric_key (yubihsm.defs.object attribute)": [[1, "yubihsm.defs.OBJECT.SYMMETRIC_KEY"]], "symmetricauth (class in yubihsm.core)": [[1, "yubihsm.core.SymmetricAuth"]], "symmetrickey (class in yubihsm.objects)": [[1, "yubihsm.objects.SymmetricKey"]], "template (yubihsm.defs.object attribute)": [[1, "yubihsm.defs.OBJECT.TEMPLATE"]], "template_ssh (yubihsm.defs.algorithm attribute)": [[1, "yubihsm.defs.ALGORITHM.TEMPLATE_SSH"]], "type (yubihsm.defs.list_filter attribute)": [[1, "yubihsm.defs.LIST_FILTER.TYPE"]], "template (class in yubihsm.objects)": [[1, "yubihsm.objects.Template"]], "unwrap_data (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.UNWRAP_DATA"]], "unwrap_data (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.UNWRAP_DATA"]], "verify_hmac (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.VERIFY_HMAC"]], "verify_hmac (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.VERIFY_HMAC"]], "wrap_data (yubihsm.defs.capability attribute)": [[1, "yubihsm.defs.CAPABILITY.WRAP_DATA"]], "wrap_data (yubihsm.defs.command attribute)": [[1, "yubihsm.defs.COMMAND.WRAP_DATA"]], "wrap_key (yubihsm.defs.object attribute)": [[1, "yubihsm.defs.OBJECT.WRAP_KEY"]], "wrong_length (yubihsm.defs.error attribute)": [[1, "yubihsm.defs.ERROR.WRONG_LENGTH"]], "wrapkey (class in yubihsm.objects)": [[1, "yubihsm.objects.WrapKey"]], "yhsmobject (class in yubihsm.objects)": [[1, "yubihsm.objects.YhsmObject"]], "yubihsm (class in yubihsm.core)": [[1, "yubihsm.core.YubiHsm"]], "yubihsmauthenticationerror": [[1, "yubihsm.exceptions.YubiHsmAuthenticationError"]], "yubihsmconnectionerror": [[1, "yubihsm.exceptions.YubiHsmConnectionError"]], "yubihsmdeviceerror": [[1, "yubihsm.exceptions.YubiHsmDeviceError"]], "yubihsmerror": [[1, "yubihsm.exceptions.YubiHsmError"]], "yubihsminvalidrequesterror": [[1, "yubihsm.exceptions.YubiHsmInvalidRequestError"]], "yubihsminvalidresponseerror": [[1, "yubihsm.exceptions.YubiHsmInvalidResponseError"]], "algorithm (yubihsm.objects.objectinfo attribute)": [[1, "yubihsm.objects.ObjectInfo.algorithm"]], "attest() (yubihsm.objects.asymmetrickey method)": [[1, "yubihsm.objects.AsymmetricKey.attest"]], "authenticate() (yubihsm.core.asymmetricauth method)": [[1, "yubihsm.core.AsymmetricAuth.authenticate"]], "authenticate() (yubihsm.core.symmetricauth method)": [[1, "yubihsm.core.SymmetricAuth.authenticate"]], "capabilities (yubihsm.objects.objectinfo attribute)": [[1, "yubihsm.objects.ObjectInfo.capabilities"]], "card_crypto (yubihsm.core.symmetricauth property)": [[1, "yubihsm.core.SymmetricAuth.card_crypto"]], "change_key() (yubihsm.objects.authenticationkey method)": [[1, "yubihsm.objects.AuthenticationKey.change_key"]], "change_password() (yubihsm.objects.authenticationkey method)": [[1, "yubihsm.objects.AuthenticationKey.change_password"]], "change_public_key() (yubihsm.objects.authenticationkey method)": [[1, "yubihsm.objects.AuthenticationKey.change_public_key"]], "close() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.close"]], "close() (yubihsm.core.yubihsm method)": [[1, "yubihsm.core.YubiHsm.close"]], "command (yubihsm.core.logentry attribute)": [[1, "yubihsm.core.LogEntry.command"]], "connect() (yubihsm.core.yubihsm class method)": [[1, "yubihsm.core.YubiHsm.connect"]], "context (yubihsm.core.asymmetricauth property)": [[1, "yubihsm.core.AsymmetricAuth.context"]], "context (yubihsm.core.symmetricauth property)": [[1, "yubihsm.core.SymmetricAuth.context"]], "create_otp_aead() (yubihsm.objects.otpaeadkey method)": [[1, "yubihsm.objects.OtpAeadKey.create_otp_aead"]], "create_session() (yubihsm.core.asymmetricauth class method)": [[1, "yubihsm.core.AsymmetricAuth.create_session"]], "create_session() (yubihsm.core.symmetricauth class method)": [[1, "yubihsm.core.SymmetricAuth.create_session"]], "create_session() (yubihsm.core.yubihsm method)": [[1, "yubihsm.core.YubiHsm.create_session"]], "create_session_asymmetric() (yubihsm.core.yubihsm method)": [[1, "yubihsm.core.YubiHsm.create_session_asymmetric"]], "create_session_derived() (yubihsm.core.yubihsm method)": [[1, "yubihsm.core.YubiHsm.create_session_derived"]], "data (yubihsm.core.logentry property)": [[1, "yubihsm.core.LogEntry.data"]], "decrypt_cbc() (yubihsm.objects.symmetrickey method)": [[1, "yubihsm.objects.SymmetricKey.decrypt_cbc"]], "decrypt_ecb() (yubihsm.objects.symmetrickey method)": [[1, "yubihsm.objects.SymmetricKey.decrypt_ecb"]], "decrypt_oaep() (yubihsm.objects.asymmetrickey method)": [[1, "yubihsm.objects.AsymmetricKey.decrypt_oaep"]], "decrypt_otp() (yubihsm.objects.otpaeadkey method)": [[1, "yubihsm.objects.OtpAeadKey.decrypt_otp"]], "decrypt_pkcs1v1_5() (yubihsm.objects.asymmetrickey method)": [[1, "yubihsm.objects.AsymmetricKey.decrypt_pkcs1v1_5"]], "delegated_capabilities (yubihsm.objects.objectinfo attribute)": [[1, "yubihsm.objects.ObjectInfo.delegated_capabilities"]], "delete() (yubihsm.objects.yhsmobject method)": [[1, "yubihsm.objects.YhsmObject.delete"]], "derive_ecdh() (yubihsm.objects.asymmetrickey method)": [[1, "yubihsm.objects.AsymmetricKey.derive_ecdh"]], "digest (yubihsm.core.logentry attribute)": [[1, "yubihsm.core.LogEntry.digest"]], "domains (yubihsm.objects.objectinfo attribute)": [[1, "yubihsm.objects.ObjectInfo.domains"]], "encrypt_cbc() (yubihsm.objects.symmetrickey method)": [[1, "yubihsm.objects.SymmetricKey.encrypt_cbc"]], "encrypt_ecb() (yubihsm.objects.symmetrickey method)": [[1, "yubihsm.objects.SymmetricKey.encrypt_ecb"]], "entries (yubihsm.core.logdata attribute)": [[1, "yubihsm.core.LogData.entries"]], "epk_hsm (yubihsm.core.asymmetricauth property)": [[1, "yubihsm.core.AsymmetricAuth.epk_hsm"]], "export_wrapped() (yubihsm.objects.wrapkey method)": [[1, "yubihsm.objects.WrapKey.export_wrapped"]], "for_curve() (yubihsm.defs.algorithm static method)": [[1, "yubihsm.defs.ALGORITHM.for_curve"]], "generate() (yubihsm.objects.asymmetrickey class method)": [[1, "yubihsm.objects.AsymmetricKey.generate"]], "generate() (yubihsm.objects.hmackey class method)": [[1, "yubihsm.objects.HmacKey.generate"]], "generate() (yubihsm.objects.otpaeadkey class method)": [[1, "yubihsm.objects.OtpAeadKey.generate"]], "generate() (yubihsm.objects.symmetrickey class method)": [[1, "yubihsm.objects.SymmetricKey.generate"]], "generate() (yubihsm.objects.wrapkey class method)": [[1, "yubihsm.objects.WrapKey.generate"]], "get() (yubihsm.objects.opaque method)": [[1, "yubihsm.objects.Opaque.get"]], "get() (yubihsm.objects.template method)": [[1, "yubihsm.objects.Template.get"]], "get_certificate() (yubihsm.objects.asymmetrickey method)": [[1, "yubihsm.objects.AsymmetricKey.get_certificate"]], "get_certificate() (yubihsm.objects.opaque method)": [[1, "yubihsm.objects.Opaque.get_certificate"]], "get_command_audit() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.get_command_audit"]], "get_device_info() (yubihsm.core.yubihsm method)": [[1, "yubihsm.core.YubiHsm.get_device_info"]], "get_device_public_key() (yubihsm.core.yubihsm method)": [[1, "yubihsm.core.YubiHsm.get_device_public_key"]], "get_enabled_algorithms() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.get_enabled_algorithms"]], "get_fips_mode() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.get_fips_mode"]], "get_force_audit() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.get_force_audit"]], "get_info() (yubihsm.objects.yhsmobject method)": [[1, "yubihsm.objects.YhsmObject.get_info"]], "get_log_entries() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.get_log_entries"]], "get_object() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.get_object"]], "get_option() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.get_option"]], "get_pseudo_random() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.get_pseudo_random"]], "get_public_key() (yubihsm.objects.asymmetrickey method)": [[1, "yubihsm.objects.AsymmetricKey.get_public_key"]], "id (yubihsm.objects.objectinfo attribute)": [[1, "yubihsm.objects.ObjectInfo.id"]], "import_wrapped() (yubihsm.objects.wrapkey method)": [[1, "yubihsm.objects.WrapKey.import_wrapped"]], "init_session() (yubihsm.core.asymmetricauth class method)": [[1, "yubihsm.core.AsymmetricAuth.init_session"]], "init_session() (yubihsm.core.symmetricauth class method)": [[1, "yubihsm.core.SymmetricAuth.init_session"]], "init_session() (yubihsm.core.yubihsm method)": [[1, "yubihsm.core.YubiHsm.init_session"]], "init_session_asymmetric() (yubihsm.core.yubihsm method)": [[1, "yubihsm.core.YubiHsm.init_session_asymmetric"]], "label (yubihsm.objects.objectinfo attribute)": [[1, "yubihsm.objects.ObjectInfo.label"]], "list_objects() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.list_objects"]], "log_size (yubihsm.core.deviceinfo attribute)": [[1, "yubihsm.core.DeviceInfo.log_size"]], "log_used (yubihsm.core.deviceinfo attribute)": [[1, "yubihsm.core.DeviceInfo.log_used"]], "module": [[1, "module-yubihsm"], [1, "module-yubihsm.core"], [1, "module-yubihsm.defs"], [1, "module-yubihsm.exceptions"], [1, "module-yubihsm.objects"], [1, "module-yubihsm.utils"], [2, "module-yubihsm.backends"], [2, "module-yubihsm.backends.http"], [2, "module-yubihsm.backends.usb"]], "n_auth (yubihsm.core.logdata attribute)": [[1, "yubihsm.core.LogData.n_auth"]], "n_boot (yubihsm.core.logdata attribute)": [[1, "yubihsm.core.LogData.n_boot"]], "number (yubihsm.core.logentry attribute)": [[1, "yubihsm.core.LogEntry.number"]], "object_type (yubihsm.objects.asymmetrickey attribute)": [[1, "yubihsm.objects.AsymmetricKey.object_type"]], "object_type (yubihsm.objects.authenticationkey attribute)": [[1, "yubihsm.objects.AuthenticationKey.object_type"]], "object_type (yubihsm.objects.hmackey attribute)": [[1, "yubihsm.objects.HmacKey.object_type"]], "object_type (yubihsm.objects.objectinfo attribute)": [[1, "yubihsm.objects.ObjectInfo.object_type"]], "object_type (yubihsm.objects.opaque attribute)": [[1, "yubihsm.objects.Opaque.object_type"]], "object_type (yubihsm.objects.otpaeadkey attribute)": [[1, "yubihsm.objects.OtpAeadKey.object_type"]], "object_type (yubihsm.objects.symmetrickey attribute)": [[1, "yubihsm.objects.SymmetricKey.object_type"]], "object_type (yubihsm.objects.template attribute)": [[1, "yubihsm.objects.Template.object_type"]], "object_type (yubihsm.objects.wrapkey attribute)": [[1, "yubihsm.objects.WrapKey.object_type"]], "object_type (yubihsm.objects.yhsmobject attribute)": [[1, "yubihsm.objects.YhsmObject.object_type"]], "origin (yubihsm.objects.objectinfo attribute)": [[1, "yubihsm.objects.ObjectInfo.origin"]], "parse() (yubihsm.core.deviceinfo class method)": [[1, "yubihsm.core.DeviceInfo.parse"]], "parse() (yubihsm.core.logentry class method)": [[1, "yubihsm.core.LogEntry.parse"]], "parse() (yubihsm.objects.objectinfo class method)": [[1, "yubihsm.objects.ObjectInfo.parse"]], "password_to_key() (in module yubihsm.utils)": [[1, "yubihsm.utils.password_to_key"]], "put() (yubihsm.objects.asymmetrickey class method)": [[1, "yubihsm.objects.AsymmetricKey.put"]], "put() (yubihsm.objects.authenticationkey class method)": [[1, "yubihsm.objects.AuthenticationKey.put"]], "put() (yubihsm.objects.hmackey class method)": [[1, "yubihsm.objects.HmacKey.put"]], "put() (yubihsm.objects.opaque class method)": [[1, "yubihsm.objects.Opaque.put"]], "put() (yubihsm.objects.otpaeadkey class method)": [[1, "yubihsm.objects.OtpAeadKey.put"]], "put() (yubihsm.objects.symmetrickey class method)": [[1, "yubihsm.objects.SymmetricKey.put"]], "put() (yubihsm.objects.template class method)": [[1, "yubihsm.objects.Template.put"]], "put() (yubihsm.objects.wrapkey class method)": [[1, "yubihsm.objects.WrapKey.put"]], "put_certificate() (yubihsm.objects.asymmetrickey method)": [[1, "yubihsm.objects.AsymmetricKey.put_certificate"]], "put_certificate() (yubihsm.objects.opaque class method)": [[1, "yubihsm.objects.Opaque.put_certificate"]], "put_derived() (yubihsm.objects.authenticationkey class method)": [[1, "yubihsm.objects.AuthenticationKey.put_derived"]], "put_option() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.put_option"]], "put_public_key() (yubihsm.objects.authenticationkey class method)": [[1, "yubihsm.objects.AuthenticationKey.put_public_key"]], "randomize_otp_aead() (yubihsm.objects.otpaeadkey method)": [[1, "yubihsm.objects.OtpAeadKey.randomize_otp_aead"]], "receipt (yubihsm.core.asymmetricauth property)": [[1, "yubihsm.core.AsymmetricAuth.receipt"]], "reset_device() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.reset_device"]], "result (yubihsm.core.logentry attribute)": [[1, "yubihsm.core.LogEntry.result"]], "rewrap_otp_aead() (yubihsm.objects.otpaeadkey method)": [[1, "yubihsm.objects.OtpAeadKey.rewrap_otp_aead"]], "second_key (yubihsm.core.logentry attribute)": [[1, "yubihsm.core.LogEntry.second_key"]], "send_cmd() (yubihsm.core.yubihsm method)": [[1, "yubihsm.core.YubiHsm.send_cmd"]], "send_secure_cmd() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.send_secure_cmd"]], "sequence (yubihsm.objects.objectinfo attribute)": [[1, "yubihsm.objects.ObjectInfo.sequence"]], "serial (yubihsm.core.deviceinfo attribute)": [[1, "yubihsm.core.DeviceInfo.serial"]], "session_counter (yubihsm.objects.otpdata attribute)": [[1, "yubihsm.objects.OtpData.session_counter"]], "session_key (yubihsm.core.logentry attribute)": [[1, "yubihsm.core.LogEntry.session_key"]], "set_command_audit() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.set_command_audit"]], "set_enabled_algorithms() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.set_enabled_algorithms"]], "set_fips_mode() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.set_fips_mode"]], "set_force_audit() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.set_force_audit"]], "set_log_index() (yubihsm.core.authsession method)": [[1, "yubihsm.core.AuthSession.set_log_index"]], "sid (yubihsm.core.authsession property)": [[1, "yubihsm.core.AuthSession.sid"]], "sign_ecdsa() (yubihsm.objects.asymmetrickey method)": [[1, "yubihsm.objects.AsymmetricKey.sign_ecdsa"]], "sign_eddsa() (yubihsm.objects.asymmetrickey method)": [[1, "yubihsm.objects.AsymmetricKey.sign_eddsa"]], "sign_hmac() (yubihsm.objects.hmackey method)": [[1, "yubihsm.objects.HmacKey.sign_hmac"]], "sign_pkcs1v1_5() (yubihsm.objects.asymmetrickey method)": [[1, "yubihsm.objects.AsymmetricKey.sign_pkcs1v1_5"]], "sign_pss() (yubihsm.objects.asymmetrickey method)": [[1, "yubihsm.objects.AsymmetricKey.sign_pss"]], "sign_ssh_certificate() (yubihsm.objects.asymmetrickey method)": [[1, "yubihsm.objects.AsymmetricKey.sign_ssh_certificate"]], "size (yubihsm.objects.objectinfo attribute)": [[1, "yubihsm.objects.ObjectInfo.size"]], "supported_algorithms (yubihsm.core.deviceinfo attribute)": [[1, "yubihsm.core.DeviceInfo.supported_algorithms"]], "target_key (yubihsm.core.logentry attribute)": [[1, "yubihsm.core.LogEntry.target_key"]], "tick (yubihsm.core.logentry attribute)": [[1, "yubihsm.core.LogEntry.tick"]], "timestamp_high (yubihsm.objects.otpdata attribute)": [[1, "yubihsm.objects.OtpData.timestamp_high"]], "timestamp_low (yubihsm.objects.otpdata attribute)": [[1, "yubihsm.objects.OtpData.timestamp_low"]], "to_curve() (yubihsm.defs.algorithm method)": [[1, "yubihsm.defs.ALGORITHM.to_curve"]], "to_hash_algorithm() (yubihsm.defs.algorithm method)": [[1, "yubihsm.defs.ALGORITHM.to_hash_algorithm"]], "to_key_size() (yubihsm.defs.algorithm method)": [[1, "yubihsm.defs.ALGORITHM.to_key_size"]], "unwrap_data() (yubihsm.objects.wrapkey method)": [[1, "yubihsm.objects.WrapKey.unwrap_data"]], "use_counter (yubihsm.objects.otpdata attribute)": [[1, "yubihsm.objects.OtpData.use_counter"]], "validate() (yubihsm.core.logentry method)": [[1, "yubihsm.core.LogEntry.validate"]], "verify_hmac() (yubihsm.objects.hmackey method)": [[1, "yubihsm.objects.HmacKey.verify_hmac"]], "version (yubihsm.core.deviceinfo attribute)": [[1, "yubihsm.core.DeviceInfo.version"]], "with_session() (yubihsm.objects.yhsmobject method)": [[1, "yubihsm.objects.YhsmObject.with_session"]], "wrap_data() (yubihsm.objects.wrapkey method)": [[1, "yubihsm.objects.WrapKey.wrap_data"]], "yubihsm": [[1, "module-yubihsm"]], "yubihsm.core": [[1, "module-yubihsm.core"]], "yubihsm.defs": [[1, "module-yubihsm.defs"]], "yubihsm.exceptions": [[1, "module-yubihsm.exceptions"]], "yubihsm.objects": [[1, "module-yubihsm.objects"]], "yubihsm.utils": [[1, "module-yubihsm.utils"]], "httpbackend (class in yubihsm.backends.http)": [[2, "yubihsm.backends.http.HttpBackend"]], "usbbackend (class in yubihsm.backends.usb)": [[2, "yubihsm.backends.usb.UsbBackend"]], "yhsmbackend (class in yubihsm.backends)": [[2, "yubihsm.backends.YhsmBackend"]], "close() (yubihsm.backends.yhsmbackend method)": [[2, "yubihsm.backends.YhsmBackend.close"]], "close() (yubihsm.backends.http.httpbackend method)": [[2, "yubihsm.backends.http.HttpBackend.close"]], "close() (yubihsm.backends.usb.usbbackend method)": [[2, "yubihsm.backends.usb.UsbBackend.close"]], "get_backend() (in module yubihsm.backends)": [[2, "yubihsm.backends.get_backend"]], "transceive() (yubihsm.backends.yhsmbackend method)": [[2, "yubihsm.backends.YhsmBackend.transceive"]], "transceive() (yubihsm.backends.http.httpbackend method)": [[2, "yubihsm.backends.http.HttpBackend.transceive"]], "transceive() (yubihsm.backends.usb.usbbackend method)": [[2, "yubihsm.backends.usb.UsbBackend.transceive"]], "yubihsm.backends": [[2, "module-yubihsm.backends"]], "yubihsm.backends.http": [[2, "module-yubihsm.backends.http"]], "yubihsm.backends.usb": [[2, "module-yubihsm.backends.usb"]]}})
\ No newline at end of file